feat(album): 相册文件夹模式 + 固化可靠性修复(v1.2.0)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 41s

宿主:
- wCleanIdb 保留集改为递归整个 node.data(原只扫 data/url/result,漏 items[].src ⇒ 固化后的 blob 被当孤儿删,实测 18 个条目丢 16 个)
- 收藏组同步修复;新增 tests/idb-gc-plugin-refs-test.js 防回退

插件 album 1.2.0:
- 来源徽标(已固化/引用/网络/丢失)
- 固化计数只算本地路径引用,批量跳过已固化并提示
- 单删/清空时清理 ctx.files 缩略图
- 文件夹模式:单图任务 + 文件夹监控两个开关、模式说明、按模式隐藏控件、刷新(增量 diff)、全部重载(二次确认)、忽略名单 folderSkip、底部路径与已忽略计数

计划与复盘:docs/plans/album-folder-mode.md(含勾选状态与优化总结)
This commit is contained in:
qiqi committed 2026-11-30 09:54:01 +08:00
1 parent 03191d24dc
commit a4dc50ed5e
10 files changed
+289 -25

No files matched your search

+6
View File
@@ -37,6 +37,12 @@
.iwb-album-cell:hover { transform: scale(1.08); outline: 2px solid var(--iwb-hover-border, var(--iwb-brand)); outline-offset: -2px; box-shadow: 0 10px 26px rgba(0, 0, 0, .42), 0 2px 6px rgba(0, 0, 0, .28); z-index: var(--iwb-z-ctx, 90); }
@media (prefers-reduced-motion: reduce) { .iwb-album-cell { transition: none; } .iwb-album-cell:hover { transform: none; } }
.iwb-album-cell img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
/* v1.2.0:来源徽标 + 文件夹模式说明/路径 */
.iwb-album-src { position: absolute; left: var(--iwb-space-4); bottom: var(--iwb-space-4); padding: 0 var(--iwb-space-4); border-radius: var(--iwb-radius-chip); font-size: var(--iwb-font-xs); line-height: 1.2; background: color-mix(in srgb, var(--iwb-text) 62%, transparent); color: var(--iwb-bg); pointer-events: none; }
.iwb-album-src.is-missing { background: color-mix(in srgb, var(--iwb-danger, #d33) 78%, transparent); color: var(--iwb-bg); }
.iwb-album-foldernote { font-size: var(--iwb-font-xs); color: var(--iwb-text2); padding: 0 var(--iwb-space-2); }
.iwb-album-folderpath { font-size: var(--iwb-font-xs); color: var(--iwb-text2); padding: var(--iwb-space-2); word-break: break-all; opacity: .9; }
.iwb-album-folder-toggle.on .iwb-album-track i { transform: translateX(10px); }
.iwb-album-cell.off img { opacity: .38; }
/* 选中线 2px → 1px(用户:太粗)。1px 在浅底上仍分得清「选中」与「描边」。 */
.iwb-album-cell.sel { outline: 1px solid var(--iwb-brand); outline-offset: -1px; }