加入「拾匣」:密码保护的私有文件柜

- 新增 cabinet 应用:Folder / StoredFile 及迁移
- 浏览公开;下载、新建目录、上传需要密码解锁(session 120 分钟)
- 文件存放在 MEDIA_ROOT 之外的 storage/,下载必须经过视图鉴权
- 支持多级目录、文件名清洗、重名自动编号、分批上传与进度
- 页面:分类卡片、面包屑、文件行点击下载、上传进度、密码弹窗
- 修复弹窗命中测试:浮层移到 body、提升 z-index、去掉模糊与位移动画
- 首页新增「拾匣」入口
This commit is contained in:
2026-11-21 07:07:48 +08:00
parent 55e3478376
commit 48178fad50
17 changed files with 1776 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
from django.apps import AppConfig
class CabinetConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "cabinet"
verbose_name = "拾匣"