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

- 新增 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
+2 -1
View File
@@ -101,7 +101,8 @@ header > * { pointer-events:auto; }
font-size:12px; letter-spacing:.08em; text-decoration:none;
transition:all .18s ease;
}
.explore-entry span { color:var(--accent); font-size:10px; }
.explore-entry .entry-icon { color:var(--accent); font-size:10px; }
.cabinet-entry .entry-icon { color:var(--c4); }
.explore-entry:hover {
color:var(--accent); border-color:var(--accent); transform:translateY(-1px);
}
+2 -1
View File
@@ -151,7 +151,8 @@
</div>
</div>
<div class="top-actions">
<a class="explore-entry" href="/explore/" title="探索开源仓库"><span aria-hidden="true">✦</span>探索</a>
<a class="explore-entry" href="/explore/" title="探索开源仓库"><span class="entry-icon" aria-hidden="true">✦</span><span class="entry-text">探索</span></a>
<a class="explore-entry cabinet-entry" href="/files/" title="拾匣 · 文件"><span class="entry-icon" aria-hidden="true">▤</span><span class="entry-text">拾匣</span></a>
<button class="icon-btn" id="btnSearch" title="搜索 (Ctrl+K)">⌕</button>
<button class="icon-btn" id="btnTheme" title="切换主题">◐</button>
</div>