Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

feat(web): 数据管理页来源标官方站标,操作键统一主按钮,忙态各自适配

longmeidaoba8508421f27
diff --git a/frontend/src/management.ts b/frontend/src/management.ts
index 8404a91de..208c0c123 100644
--- a/frontend/src/management.ts
+++ b/frontend/src/management.ts
@@ -25,7 +25,7 @@ export function cleanupSkeletonHtml(): string {
<section class="cleanupfieldset board-processing-skeleton" data-geist-fieldset aria-labelledby="cleanup-loading-scan">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-scan">扫描与采集</h3>
<p>扫描媒体文件夹,导入已有资料,采集缺失信息。</p></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><a class="board-link-button" href="/scraping"><span>来源和凭证</span><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-arrow-up"></use></svg></a><div class="splitbutton board-button-group"><button type="button" class="splitmain geist-button" disabled><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-database"></use></svg>扫描并补全资料</button><button type="button" class="splittoggle" disabled aria-label="更多扫描与采集方式"><svg aria-hidden="true"><use href="#i-chevron-down"></use></svg></button></div></footer>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><a class="board-link-button" href="/scraping"><span>来源和凭证</span><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-arrow-up"></use></svg></a><div class="splitbutton board-button-group primary"><button type="button" class="splitmain geist-button primary" disabled><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-database"></use></svg>扫描并补全资料</button><button type="button" class="splittoggle geist-button primary" disabled aria-label="更多扫描与采集方式"><svg aria-hidden="true"><use href="#i-chevron-down"></use></svg></button></div></footer>
</section>
<section class="cleanupfieldset cleanupemptyfolders" data-geist-fieldset aria-labelledby="cleanup-loading-empty">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-empty">空文件夹</h3>
@@ -37,14 +37,14 @@ export function cleanupSkeletonHtml(): string {
<div class="resourcesyncbox" data-geist-fieldset>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">站外链接</h3>
<div class="linksummary"><div class="linkstats">${['链接总数','官网/事务所','社交账号','作品资料站','资料出处'].map(title=>`<div><span>${title}</span><b>${bar}</b></div>`).join('')}</div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction" type="button" disabled>检查死链</button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查死链</button></div>
</div></section>
<section class="resourcesync" aria-labelledby="cleanup-loading-sync">
<h2 id="cleanup-loading-sync">资源同步</h2>
<div class="resourcesyncbox" data-geist-fieldset>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
<p>${bar}</p></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction" type="button" disabled>检查文件</button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查文件</button></div>
</div></section></div>`;
}
diff --git a/frontend/src/resource-sync.ts b/frontend/src/resource-sync.ts
index 4a69530fd..7a615ecbe 100644
--- a/frontend/src/resource-sync.ts
+++ b/frontend/src/resource-sync.ts
@@ -1,4 +1,4 @@
-import { noteHtml } from '@peach/legacy/ui';
+import { MEDIA_SOURCE_ICONS, noteHtml, selectOptionIconHtml } from '@peach/legacy/ui';
export interface ResourceSource {
location: string; online: boolean; checked: number; total: number; missing: number; unreadable?: number;
@@ -8,16 +8,26 @@ export interface ResourceScan {
}
const count = (value = 0) => Number(value).toLocaleString();
const labels: Record<string, string> = {local: '本地磁盘', '115': '115', pikpak: 'PikPak'};
+/* 来源角标问的是「这是哪个网盘」,答案只有一份:品牌取 MEDIA_SOURCE_ICONS 的官方站标,
+ 与配置页、媒体库切换器同一取图入口;认不出的来源退回 database 字形。 */
+const sourceMark = (location: string) => selectOptionIconHtml(MEDIA_SOURCE_ICONS[location] ?? 'database');
+/* 结果照 Board 的 stat cards 排:和数据管理顶上一排读数同一副卡片,五个读数一行。 */
+const statCard = (head: string, value: string, detail: string) => `<article class="board-plain-stat resourcestat">
+ <span class="board-plain-stat-head">${head}</span>
+ <strong>${value}</strong>
+ <span class="cleanupmeta">${detail}</span></article>`;
export function resourceScanHtml(scan: ResourceScan, formatSize: (bytes: number) => string): string {
const cache = scan.cache || {files: 0, bytes: 0};
const changes = Boolean(scan.missing || cache.files);
- return `<div class="resourcepanel" data-geist-fieldset><div class="resourcesources">${(scan.sources || []).map(source => `<article>
- <div class="resourcesourcetitle"><b>${labels[source.location] || '媒体来源'}</b><span class="${source.online ? 'online' : 'offline'}">${source.online ? '可访问' : '离线,已跳过'}</span></div>
- <strong>${source.online ? `${count(source.missing)} 项` : '—'}</strong>
- <small>${source.online ? `找不到文件 · 已检查 ${count(source.checked)} 项` : `馆藏中有 ${count(source.total)} 项`}</small>
- ${source.unreadable ? `<small>${count(source.unreadable)} 项读取失败,已跳过</small>` : ''}</article>`).join('')}</div>
- <div class="resourcecache"><div><span>可清理的缓存</span><b>${count(cache.files)} 个</b><small>${formatSize(cache.bytes)}</small></div>
- <div><span>待移入回收站</span><b>${count(scan.missing)} 项</b></div></div>
+ const sources = (scan.sources || []).map(source => statCard(
+ `<span class="board-stat-tile resourcestat-tile">${sourceMark(source.location)}</span>${labels[source.location] || '媒体来源'}`
+ + `<span class="resourcestat-state ${source.online ? 'online' : 'offline'}">${source.online ? '可访问' : '离线,已跳过'}</span>`,
+ source.online ? `${count(source.missing)} 项` : '—',
+ [source.online ? `找不到文件 · 已检查 ${count(source.checked)} 项` : `馆藏中有 ${count(source.total)} 项`,
+ source.unreadable ? `${count(source.unreadable)} 项读取失败,已跳过` : ''].filter(Boolean).join(' · ')));
+ return `<div class="cleanupstats resourcestats">${sources.join('')}
+ ${statCard('待移入回收站', `${count(scan.missing)} 项`, '')}
+ ${statCard('可清理的缓存', `${count(cache.files)} 个`, cache.files ? formatSize(cache.bytes) : '')}</div>
${changes ? noteHtml(`将把找不到文件的 ${count(scan.missing)} 项馆藏记录移入回收站,并清理 ${count(cache.files)} 个闲置缓存。`, {label: '清理内容'}) : ''}
- <div class="resourceapplyrow geist-fieldset-footer" data-geist-fieldset-footer>${changes ? '<button class="geist-button primary" type="button" id="resourceApply">清理失效记录与缓存</button>' : '<p class="resourcesyncok">已检查可访问的来源,没有待清理的记录或缓存。</p>'}</div></div>`;
+ <div class="resourceapplyrow geist-fieldset-footer" data-geist-fieldset-footer>${changes ? '<button class="geist-button primary" type="button" id="resourceApply">清理失效记录与缓存</button>' : '<p class="resourcesyncok">已检查可访问的来源,没有待清理的记录或缓存。</p>'}</div>`;
}
diff --git a/frontend/src/split-action.tsx b/frontend/src/split-action.tsx
index cfc0cb183..ec38c7a63 100644
--- a/frontend/src/split-action.tsx
+++ b/frontend/src/split-action.tsx
@@ -16,7 +16,7 @@ export function SplitAction({ id, label, actions, busy }: { id: string; label: s
}, [busy]);
const glyph = (name: string) => <svg viewBox="0 0 24 24" aria-hidden="true"><use href={`#i-${name}`} /></svg>;
const run = (action: Action) => { if (busy) return; floating.current?.setOpen(false); action.run(); };
- return <div ref={root} class="splitbutton board-button-group" onClickCapture={event => {if(busy){event.preventDefault();event.stopPropagation();}}} onKeyDown={event => {
+ return <div ref={root} class="splitbutton board-button-group primary" onClickCapture={event => {if(busy){event.preventDefault();event.stopPropagation();}}} onKeyDown={event => {
const items = Array.from(root.current!.querySelectorAll<HTMLButtonElement>('[role=menuitem]'));
if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
event.preventDefault(); if (busy) return;
@@ -28,8 +28,8 @@ export function SplitAction({ id, label, actions, busy }: { id: string; label: s
}
if (event.key === 'Tab') floating.current?.setOpen(false);
}}>
- <button type="button" class="splitmain geist-button" onClick={() => run(actions[0])}>{glyph(actions[0].icon)}{actions[0].label}</button>
- <button type="button" class="splittoggle" aria-label={label} aria-haspopup="menu" aria-expanded="false" aria-controls={id}>{glyph('chevron-down')}</button>
+ <button type="button" class="splitmain geist-button primary" onClick={() => run(actions[0])}>{glyph(actions[0].icon)}{actions[0].label}</button>
+ <button type="button" class="splittoggle geist-button primary" aria-label={label} aria-haspopup="menu" aria-expanded="false" aria-controls={id}>{glyph('chevron-down')}</button>
<div class="popmenu cardmenupanel" id={id} role="menu" hidden>
{actions.map(action => <button key={action.label} type="button" role="menuitem" onClick={() => run(action)}>{glyph(action.icon)}<span>{action.label}</span></button>)}
</div>
diff --git a/frontend/test/resource-sync.test.ts b/frontend/test/resource-sync.test.ts
index b12019cce..80a46be73 100644
--- a/frontend/test/resource-sync.test.ts
+++ b/frontend/test/resource-sync.test.ts
@@ -5,7 +5,7 @@ const source = (location: string, online = true): ResourceSource => ({location,
describe('文件检查结果', () => {
it.each([['local'], ['115', 'pikpak'], ['local', '115', 'pikpak']])('呈现实际来源 %s', (...locations) => {
document.body.innerHTML = resourceScanHtml({sources: locations.map(location => source(location)), missing: 2}, () => '0 B');
- expect(document.querySelectorAll('.resourcesources article')).toHaveLength(locations.length);
+ expect(document.querySelectorAll('.resourcestats .board-plain-stat')).toHaveLength(locations.length + 2);
expect(document.body.textContent).toContain('找不到文件');
expect(document.body.textContent).toContain('2 项读取失败,已跳过');
expect(document.querySelector('#resourceApply')?.textContent).toBe('清理失效记录与缓存');
diff --git a/scripts/vendor_web_dependencies.mjs b/scripts/vendor_web_dependencies.mjs
index 4a2310a37..e532a56ae 100644
--- a/scripts/vendor_web_dependencies.mjs
+++ b/scripts/vendor_web_dependencies.mjs
@@ -157,6 +157,18 @@ for (const [symbol, icon] of lucideIcons) {
let inner = svgInner(text("node_modules", "lucide-static", "icons", `${icon}.svg`));
if (symbol === "rss") inner = inner.replace('<circle cx="5" cy="19" r="1" />', '<circle cx="5" cy="19" r="1" fill="currentColor" stroke="none"/>');
if (symbol === "grip-vertical") inner = inner.replaceAll(' r="1" />', ' r="1" fill="currentColor" stroke="none"/>');
+ /* 忙态动画的挂点:class 与 pathLength 只服务 dasharray 动画,静止时没有任何效果。
+ 上游不会带这些标注,换版本一刷新就会被抹掉,所以和 shuffle 的 strand 一样在这里补。 */
+ if (symbol === "git-compare") inner = inner
+ .replace('<circle cx="18" cy="18" r="3" />', '<circle class="gc-part gc-end-a" pathLength="100" cx="18" cy="18" r="3"/>')
+ .replace('<path d="M13 6h3a2 2 0 0 1 2 2v7" />', '<path class="gc-part gc-line-a" pathLength="100" d="M13 6h3a2 2 0 0 1 2 2v7"/>')
+ .replace('<path d="M11 18H8a2 2 0 0 1-2-2V9" />', '<path class="gc-part gc-line-b" pathLength="100" d="M11 18H8a2 2 0 0 1-2-2V9"/>')
+ .replace('<circle cx="6" cy="6" r="3" />', '<circle class="gc-part gc-end-b" pathLength="100" cx="6" cy="6" r="3"/>');
+ if (symbol === "scan-search") inner = inner
+ .replace('<path d="M3 7V5a2 2 0 0 1 2-2h2" />', '<path class="scan-corner scan-corner-a" d="M3 7V5a2 2 0 0 1 2-2h2"/>')
+ .replace('<path d="M17 3h2a2 2 0 0 1 2 2v2" />', '<path class="scan-corner scan-corner-b" d="M17 3h2a2 2 0 0 1 2 2v2"/>')
+ .replace('<path d="M21 17v2a2 2 0 0 1-2 2h-2" />', '<path class="scan-corner scan-corner-a" d="M21 17v2a2 2 0 0 1-2 2h-2"/>')
+ .replace('<path d="M7 21H5a2 2 0 0 1-2-2v-2" />', '<path class="scan-corner scan-corner-b" d="M7 21H5a2 2 0 0 1-2-2v-2"/>');
const pattern = new RegExp(`<symbol id="i-${symbol}" viewBox="0 0 24 24">[\\s\\S]*?<\\/symbol>`);
if (!pattern.test(index)) throw new Error(`缺少 Lucide symbol:${symbol}`);
index = index.replace(pattern, `<symbol id="i-${symbol}" viewBox="0 0 24 24">${inner}</symbol>`);
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.py
index 9202a7cd7..39a5ba418 100644
--- a/tests/test_follow_web.py
+++ b/tests/test_follow_web.py
@@ -2733,6 +2733,10 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageContains('<div class="fauthorsources" id="follow-author-${group[0].id}"'
' aria-label="${esc(name)} 的关注来源">${sourceRows}</div>')
self.assertBoardContains(".followmanage .fauthorsources{height:auto;max-height:none;overflow:visible}")
+ # 末位作者卡与批量条之间隔着分页条,卡的四角都圆回去,不再与底条做拼角。
+ self.assertBoardContains(".followmanage .fmain>.fsec:has(>.fsecfoot)>.frows,.followmanage "
+ ".fmain>.fsec:has(>.fsecfoot) .board-follow-list{border-bottom-left-radius:0;border-bottom-right-radius:0}")
+ self.assertPageLacks(".fmain>.fsec:has(>.fsecfoot) .fauthor:last-child")
def test_source_actions_are_icon_only_and_stay_on_one_row(self):
row = self.page[self.page.index("function followSourceCells(source,selectable=false)"):]
@@ -3871,9 +3875,11 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageContains("followCheckReport=report.status==='failed'")
self.assertPageContains("${followCheckReport?followCheckFailNote(followCheckReport):''}")
for needle in ("新增 <b>", "更新 <b>", "个来源没有更新", "没有任何更新",
- "个失败", "fcheckfail", "没有更多历史内容",
- "geist-note"):
+ "个失败", "fcheckfail", "geist-note",
+ # 「没有更多内容」的摘要只跟着右下角回执走,页内不铺它的明细条。
+ "个没有更多内容"):
self.assertPageContains(needle)
+ self.assertPageLacks("没有更多历史内容")
# 失败要说清是哪个站,不能让用户去猜 `rule34xxx` 是什么。
self.assertPageContains("row.provider_label||row.provider")
# 回执带一个具名的后续动作:光摆数字会让人去点「…条详情」那半句,
diff --git a/tests/test_frontend_build.py b/tests/test_frontend_build.py
index 75d09c7bb..15c211209 100644
--- a/tests/test_frontend_build.py
+++ b/tests/test_frontend_build.py
@@ -272,10 +272,13 @@ class VitestTests(unittest.TestCase):
capture_output=True, text=True, encoding="utf-8", errors="replace",
cwd=str(FRONTEND), check=False)
output = f"{completed.stdout}\n{completed.stderr}"
+ # vitest 的着色随宿主终端能力漂移,计数断言只认去码后的纯文本;
+ # 退出码与用例数两道判据不受着色影响。
+ plain = re.sub(r"\x1b\[[0-9;]*m", "", output)
self.assertEqual(completed.returncode, 0, output)
- self.assertRegex(output, r"Tests\s+\d+ passed", output)
- self.assertNotRegex(output, r"Tests\s+0 passed", "vitest 一个用例都没跑")
- counted = re.search(r"Tests\s+(\d+) passed", output)
+ self.assertRegex(plain, r"Tests\s+\d+ passed", output)
+ self.assertNotRegex(plain, r"Tests\s+0 passed", "vitest 一个用例都没跑")
+ counted = re.search(r"Tests\s+(\d+) passed", plain)
assert counted is not None
self.assertGreaterEqual(int(counted.group(1)), 10, output)
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 0e9108671..76475e66c 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -3121,6 +3121,104 @@ class WebUiSourceTests(unittest.TestCase):
'.entitycollectionhead[aria-busy="true"] .entitybatch svg{\n'
" --strand-dash:100;--strand-cycle:2.2s}")
+ def test_data_page_scan_buttons_animate_their_own_glyphs_while_busy(self):
+ """「扫一遍」的两枚键各自适配忙态,不统一转圈。
+
+ 检查文件的 git-compare 照 lucide-animated 的 GitCompare 逐笔描画(右下圆→两条
+ 枝→左上圆,画完停住再一起淡出);扫描空文件夹的 scan-search 四角按对角两拍
+ 轮流亮,放大镜保持不动。动效只能挂在 symbol 自己的零件上:`<use>` 的影子树
+ 里选不到外层的忙态标记,继承的自定义属性进得去,所以忙态把动画名和周期传
+ 下去,空闲时名字是 none。这些标注上游不会带,补丁必须住在 vendor 脚本里,
+ 否则换版本一刷新就被抹掉。
+ """
+ self.assertPageContains(
+ '<circle class="gc-part gc-end-a" pathLength="100" cx="18" cy="18" r="3"/>')
+ self.assertPageContains(
+ '<path class="gc-part gc-line-a" pathLength="100" d="M13 6h3a2 2 0 0 1 2 2v7"/>')
+ self.assertPageContains(
+ '<circle class="gc-part gc-end-b" pathLength="100" cx="6" cy="6" r="3"/>')
+ self.assertPageContains(
+ '<path class="scan-corner scan-corner-a" d="M3 7V5a2 2 0 0 1 2-2h2"/>')
+ self.assertPageContains(
+ '<path class="scan-corner scan-corner-b" d="M17 3h2a2 2 0 0 1 2 2v2"/>')
+ self.assertPageContains(
+ "@keyframes peach-gc-draw-a{\n"
+ " 0%{stroke-dashoffset:100;opacity:1}\n"
+ " 17%,86%{stroke-dashoffset:0;opacity:1}\n"
+ " 100%{stroke-dashoffset:0;opacity:0}}")
+ self.assertPageContains(
+ "@keyframes peach-scan-corner-a{\n"
+ " 0%,40%{opacity:1}\n"
+ " 50%,90%{opacity:.25}\n"
+ " 100%{opacity:1}}")
+ self.assertPageContains(
+ "#i-git-compare .gc-part{stroke-dasharray:var(--gc-dash,none);\n"
+ " animation-name:var(--gc-anim,none);animation-duration:var(--gc-cycle,1.8s);\n"
+ " animation-timing-function:linear;animation-iteration-count:infinite}")
+ self.assertPageContains(
+ "#i-git-compare .gc-line-a,#i-git-compare .gc-line-b{animation-name:var(--gc-anim-b,none)}")
+ self.assertPageContains(
+ "#i-git-compare .gc-end-b{animation-name:var(--gc-anim-c,none)}")
+ self.assertPageContains(
+ "#i-scan-search .scan-corner{animation-name:var(--scan-anim,none);\n"
+ " animation-duration:var(--scan-cycle,1.2s);animation-timing-function:ease-in-out;animation-iteration-count:infinite}")
+ self.assertPageContains(
+ '#resourceScan[aria-busy="true"] svg,[data-cleanup-empty-scan][aria-busy="true"] svg{\n'
+ " --gc-dash:100;--gc-anim:peach-gc-draw-a;--gc-anim-b:peach-gc-draw-b;--gc-anim-c:peach-gc-draw-c;\n"
+ " --scan-anim:peach-scan-corner-a;--scan-anim-b:peach-scan-corner-b}")
+ vendor = (Path(__file__).resolve().parents[1] / "scripts/vendor_web_dependencies.mjs").read_text(encoding="utf-8")
+ self.assertIn('if (symbol === "git-compare") inner = inner', vendor)
+ self.assertIn('if (symbol === "scan-search") inner = inner', vendor)
+
+ def test_resource_sync_sources_share_the_official_marks_and_board_stat_cards(self):
+ """数据管理页「这是哪个网盘」的答案只有一份,结果照 Board 的 stat cards 排。
+
+ 115 与 PikPak 取 `MEDIA_SOURCE_ICONS` 的官方站标,不是 globe 字形:来源角标、
+ 媒体库切换器和配置页问的是同一件事,同一个答案不该因为取图入口不同而长成
+ 两枚图形(SRCICON 的注释)。结果读数和数据管理顶上一排同一副卡片,三个来源
+ 带站标 tile,缓存与回收站两张读数凑成同一行;清理内容 Note 与操作行独立成层。
+ 空文件夹卡片的来源行取同一份站标,扫描结果与失败都落在 Note 里。操作键统一
+ Board primary,销毁键维持 danger 实底红;顶栏密度键与筛选框的版式开关问同一
+ 件事「现在是哪种排法」,字形取同一份 PHOTO_SIZES 映射,按下去换成当前状态的图标。
+ """
+ renderer = (Path(__file__).resolve().parents[1] / "frontend/src/resource-sync.ts").read_text(encoding="utf-8")
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
+ self.assertIn("selectOptionIconHtml(MEDIA_SOURCE_ICONS[location] ?? 'database')", renderer)
+ self.assertNotIn("'globe'", renderer,
+ "115/PikPak 用官方站标,不退回 globe 字形")
+ self.assertIn('class="board-plain-stat resourcestat"', renderer)
+ self.assertIn('class="resourcestat-state', renderer)
+ self.assertIn(".resourcestat-tile img{width:20px;height:20px;object-fit:contain}", board)
+ self.assertIn(".resourcestat-state.online{color:var(--success)}", board)
+ # 扫描中的环形进度独居在结果槽里,自己带框才和链接检查里住在面板中的进度一个形状。
+ self.assertPageContains(
+ "#resourceSyncResult>.board-job-progress{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius)}")
+ # 空文件夹来源行取同一份站标;扫描结果与失败提示是 Note,不是裸文本。
+ self.assertPageContains(
+ 'const sourceBadge=source=>`<span class="cleanupsourcemark">'
+ "${selectOptionIconHtml(MEDIA_SOURCE_ICONS[source.location]||'database')}"
+ '${sourceName(source)}</span>`;')
+ self.assertIn(".cleanupsourcemark{display:inline-flex;align-items:center;gap:6px}", board)
+ self.assertPageContains("status.innerHTML=noteHtml(`已检查 ${Number(result.scanned||0).toLocaleString()} 个目录,发现 ${Number(result.empty||0).toLocaleString()} 个空文件夹")
+ self.assertPageContains("status.innerHTML=noteHtml(error.message,{variant:'error',label:'扫描失败'})")
+ # 检查结果 Note 在空文件夹卡里顶满左右,状态容器也得是能装 Note 的块级元素。
+ self.assertPageContains('<div class="cleanupstate" aria-live="polite"></div>')
+ self.assertIn(".cleanupgrid>.cleanupemptyfolders .cleanupstate .geist-note{margin-inline:-24px;border-inline:0;border-radius:0}", board)
+ # 操作键统一 Board primary;销毁键另有一副实底红,不掺进来。
+ for needle in (
+ 'id="linkCheck">',
+ 'id="linkRetryPicked" disabled>',
+ 'id="linkRetryAll">',
+ 'id="resourceScan">'):
+ self.assertIn(f'class="resourceaction primary" type="button" {needle}', self.app_js)
+ self.assertIn('class="geist-button primary" data-cleanup-empty-scan', self.app_js)
+ self.assertIn('class="danger" data-cleanup-empty hidden', self.app_js)
+ self.assertIn("body .splitbutton.primary{border:0;box-shadow:none}", board)
+ # 顶栏密度键跟筛选框的版式开关取同一份字形映射。
+ self.assertPageContains("const glyph=PHOTO_SIZES.find(([key])=>key===size)?.[2];if(!glyph)return;")
+ self.assertPageContains("syncDensityIcon(density==='big'?'big':'small')}")
+ self.assertPageContains(" }else applyDensity();")
+
def test_skeletons_shimmer_by_sweeping_instead_of_breathing(self):
"""微光是横向扫光,不是整块呼吸。
@@ -5120,7 +5218,9 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("noteHtml(error.message,{variant:'error',label:'扫描失败'})")
self.assertPageContains("noteHtml(error.message||'分析未取得',{variant:'error',label:'分析未取得'})")
self.assertPageContains('class="geist-note geist-note-error fcheckreport" role="alert"')
- self.assertPageContains('class="geist-note geist-note-secondary fcheckreport" role="note"')
+ # 「没有更多内容」的抓取完摘要跟着检查完成的右下角 notification 走,页内只剩失败与取证缺档。
+ self.assertPageLacks('class="geist-note geist-note-secondary fcheckreport" role="note"')
+ self.assertPageLacks('个来源没有更多内容</b>')
# 每一条失败都进 Note,没有第二套「红字一行」的写法:红色文字既没有图标
# 也没有边框,在暗色底上和普通说明文字只差一个色相,扫读时整条会被跳过。
self.assertPageContains('class="geist-note geist-note-error fwarn" role="alert"')
@@ -5133,7 +5233,6 @@ class WebUiSourceTests(unittest.TestCase):
def test_note_and_info_surfaces_reuse_the_photo_detail_info_icon(self):
self.assertPageContains('<symbol id="i-info" viewBox="0 0 24 24">')
- self.assertPageContains("${icon('info')}<div><p><b>${exhausted.length} 个来源没有更多内容</b>")
self.assertPageContains('aria-label="凭据存放位置说明">${icon(\'info\')}</button>')
self.assertPageContains('aria-label="图片详情" title="图片详情">${icon(\'info\')}</button>')
self.assertPageContains('.geist-note>svg{width:16px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}')
@@ -6569,6 +6668,10 @@ class WebUiSourceTests(unittest.TestCase):
# test_the_stats_and_taste_dimensions_switch_as_a_segmented_control 与
# test_the_review_categories_look_like_a_secondary_menu。
self.assertIn(".insighttabs button[aria-selected=\"true\"]{background:none;color:var(--color-text-primary);font:var(--board-body-medium)}", board)
+ # 统计维度的轨道不裁剪:滑块冲过落点的那一下要能超出轨道,跟其他分段器同一个动法。
+ self.assertIn(".insighttabs{position:relative;display:inline-flex;align-items:center;gap:2px;width:auto;"
+ "max-width:100%;min-height:0;margin:0;padding:4px;border:0;border-radius:10px;"
+ "background:var(--color-background-tertiary-default);overflow:visible}", board)
self.assertIn(".insightpanel>header h3,.insightcopy>span{margin:0;font:var(--board-heading);color:var(--color-text-primary)}", board)
self.assertIn("body .tasterank:is(button):hover,body .board-rank-list .tasterank:hover{border-color:transparent;"
"background:transparent}", board)
@@ -8335,10 +8438,10 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn("`占用 ${fmtSize(data.bytes||0)}`", counts, "回收站要说清空能腾出多少")
self.assertPageContains(".cleanupmeta:empty{display:none}")
# 三个「· 在线」徽章换成一行来源名:在线与否是资源同步那块的读数,
- # 在空文件夹卡上只有离线时才改变结论。
+ # 在空文件夹卡上只有离线时才改变结论。来源行带官方站标,离线的归到同一枚标记后。
self.assertPageLacks("class=\"cleanupsource\"")
self.assertPageLacks(".cleanupsources{")
- self.assertIn("`${offline.map(sourceName).join(' · ')} 离线`", cleanup)
+ self.assertIn("offline.length?`${offline.map(sourceBadge).join('')}<span class=\"cleanupsourcemark cleanupsourcelost\">离线</span>`", cleanup)
self.assertIn("<strong>${online.length.toLocaleString()} 个来源可扫描</strong>", cleanup)
# 单列布局里高度由内容决定,和同页「网盘与账本」一致;三列时的对齐地板
# 到了单列只剩下把每张卡撑出一段空白。
@@ -11078,7 +11181,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn('<div class="fsrcfilter" id="followSrcFilter"></div>', form)
# 别名表单那个提交键是活的,别顺手一起删。
self.assertPageContains(".faliasform .fbtn{height:38px;min-height:38px}")
- self.assertPageContains('<button class="fbtn" type="submit">保存别名</button>')
+ self.assertPageContains('<button class="fbtn primary" type="submit">保存别名</button>')
def test_follow_filter_buttons_write_the_url_before_refetching(self):
"""先写 URL 再重取。反过来的话 openFollow 会照旧 URL 把状态推回去。"""
@@ -11703,9 +11806,12 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains('class="resourcepanel"')
self.assertPageContains('class="resourceapplyrow"')
self.assertPageContains(".resourceaction{box-sizing:border-box;height:36px")
- self.assertPageContains("@media(max-width:640px){.resourcesync .resourcesources{grid-auto-flow:row;grid-template-columns:1fr}")
+ board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
self.assertPageContains(".resourcesyncbox,.resourcepanel{overflow:clip;border:1px solid var(--field-ring);border-radius:var(--floating-radius)")
- self.assertPageContains(".resourcesources article+article{border-left:1px solid var(--line-soft)}")
+ self.assertIn(".resourcestat{cursor:default}", board,
+ "结果读数卡不是入口,不接悬停抬色")
+ self.assertIn("#resourceSyncResult>.resourceapplyrow{margin:16px 0 0;min-height:0;border:0;background:none;padding:0}", board,
+ "读数卡、Note 与操作行各是独立一层,不再共享一只面板框")
self.assertPageContains(".resourceapplyrow .resourcesyncok{color:var(--success)}")
self.assertPageContains(".resourcesync{scroll-margin-top:calc(var(--topH) + 18px);display:grid;gap:16px}")
self.assertPageLacks(".resourcesync{scroll-margin-top:calc(var(--topH) + 18px);display:grid;gap:16px;margin-top:32px;padding-top:24px;border-top:1px solid var(--line-soft)}")
diff --git a/web/app.js b/web/app.js
index e279ec2a5..722d50963 100644
--- a/web/app.js
+++ b/web/app.js
@@ -16,7 +16,7 @@ import { mountIsland, unmountIsland, islandMounted, createReviewSelection, wireR
import { catalogSuggestions, catalogEmptyHtml, emptyCatalogLayout, syncSidebarSurface, sidebarTagCounts, sidebarHasCatalogContent, cleanupSkeletonHtml, cloudLocations, cloudPreferenceLocations, tasteHistoryGuideHtml, wireTasteHistoryGuide, TASTE_GUIDE_KEY } from './dist/peach-ui.js';
import { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, syncJavImages, nativeImageFit, matchesFaceSource, entitySkeletonHtml } from './dist/peach-ui.js';
import {
- attachOverlayScrollbar, breadcrumbHtml, checkboxHtml, collectionSummaryHtml, closeAnchoredMenu, confirmModal, dismissMenu, emptyStateHtml, fieldsetTitle,
+ attachOverlayScrollbar, breadcrumbHtml, checkboxHtml, collectionSummaryHtml, closeAnchoredMenu, confirmModal, dismissMenu, emptyStateHtml, fieldsetTitle, selectOptionIconHtml,
fillSkeletonTier, fitSkeleton, formModal, iconSwitchHtml, indexSkeletonHtml, loadingDotsHtml,
mediaViewButtonsHtml, boardTabsHtml, mountFilterFrame, filterChipHtml, moveGlidePane, glideEase, sortControlsHtml, collectionHeaderHtml, wireHorizontalScroller, noteHtml, presentMenu, progressHtml, gaugeHtml, scrollerHtml, searchInputHtml, selectFieldHtml,
setActionBusy, skeletonHtml, spinnerHtml, wireAnchoredMenu, wireBusyActions, wireCollapse, wireDragReorder,
@@ -2476,10 +2476,18 @@ $('#batchbar').querySelectorAll('[data-junk-batch]').forEach(button=>button.oncl
/* 密度:大图为主,密集为辅 */
const TILES={big:'336px',dense:'168px'}; /* 168px 模块单位 */
let density=localStorage.getItem('density')||'big';
+/* 顶栏这颗键和筛选框里的版式开关问同一件事「现在是哪种排法」,所以字形也取同一份
+ 映射(PHOTO_SIZES 的第三位),按下去跟着换成当前状态的图标。 */
+function syncDensityIcon(size){
+ const button=$('#density');if(!button)return;
+ const glyph=PHOTO_SIZES.find(([key])=>key===size)?.[2];if(!glyph)return;
+ button.querySelector('use')?.setAttribute('href',`#i-${glyph}`);
+ button.setAttribute('aria-label',size==='big'?'切换为小图':'切换为大图')}
function applyDensity(){document.documentElement.style.setProperty('--tile',TILES[density]);
document.body.dataset.density=density;
$('#density').setAttribute('aria-pressed',density==='dense');
- $('#density').title='当前:'+(density==='big'?'大图':'密集')}
+ $('#density').title='当前:'+(density==='big'?'大图':'密集');
+ syncDensityIcon(density==='big'?'big':'small')}
$('#density').onclick=()=>{if(photoViewActive()){
setPhotoSize(photoSize()==='big'?'small':'big');return}
density=density==='big'?'dense':'big';
@@ -4216,7 +4224,7 @@ function linkManagerMarkup(){
<div class="resourcesyncbody geist-fieldset-content">${fieldsetTitle('linkBoxTitle','站外链接')}
<div id="linkSummary" class="linksummary"></div></div>
<div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer>
- <button class="resourceaction" type="button" id="linkCheck">${icon('unlink')}<span>检查死链</span></button></div></div>
+ <button class="resourceaction primary" type="button" id="linkCheck">${icon('unlink')}<span>检查死链</span></button></div></div>
<div id="linkCheckResult" aria-live="polite"></div></section>`;
}
async function wireLinkManager(){
@@ -4262,8 +4270,8 @@ async function wireLinkManager(){
分钟,所以这里能挑着重试:勾中哪几条就只问哪几条,别的结论原样留着。 */
const retryable=done?(payload.unclear||[]):[];
const retryRow=retryable.length?`<div class="linkretryrow">
- <button class="resourceaction" type="button" id="linkRetryPicked" disabled>${icon('rotate-cw')}<span>重试选中的链接</span></button>
- <button class="resourceaction" type="button" id="linkRetryAll">${icon('rotate-cw')}<span>全部重试(${retryable.length})</span></button></div>`:'';
+ <button class="resourceaction primary" type="button" id="linkRetryPicked" disabled>${icon('rotate-cw')}<span>重试选中的链接</span></button>
+ <button class="resourceaction primary" type="button" id="linkRetryAll">${icon('rotate-cw')}<span>全部重试(${retryable.length})</span></button></div>`:'';
const unclear=table('本次未访问成功',payload.unclear||[],'未必失效:部分站点拒绝程序访问,也可能是临时故障。这些链接保留,可勾选后单独重试。',{pick:retryable.length>0,footer:retryRow});
const apply=(done&&(payload.gone||[]).length)?`<div class="resourceapplyrow"><p>删除前会逐条重验一次;此操作不可撤销。</p>
<button class="resourceaction danger" type="button" id="linkPrune">删除 ${payload.gone.length} 条失效链接</button></div>`:'';
@@ -4336,7 +4344,7 @@ function resourceSyncMarkup(){
<div class="resourcesyncbody geist-fieldset-content">${fieldsetTitle('resourceBoxTitle','文件与记录核对')}
<p>按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录,以及不再被引用的缓存。</p></div>
<div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer>
- <button class="resourceaction" type="button" id="resourceScan">${icon('git-compare')}<span>检查文件</span></button></div></div>
+ <button class="resourceaction primary" type="button" id="resourceScan">${icon('git-compare')}<span>检查文件</span></button></div></div>
<div id="resourceSyncResult" aria-live="polite"></div></section>`;
}
async function wireResourceSync(){
@@ -4882,8 +4890,10 @@ async function openDataCleanup(push=true){
const scanSources=(sources.sources||[]).filter(source=>['local','115','pikpak'].includes(source.location));
const sourceName=source=>esc(LOC[source.location]||source.location);
const online=scanSources.filter(source=>source.online),offline=scanSources.filter(source=>!source.online);
- const sourceLine=[online.map(sourceName).join(' · '),
- offline.length?`${offline.map(sourceName).join(' · ')} 离线`:''].filter(Boolean).join(' · ');
+ /* 来源行的站标和资源同步结果面板同一份(MEDIA_SOURCE_ICONS);离线的归到同一枚标记后。 */
+ const sourceBadge=source=>`<span class="cleanupsourcemark">${selectOptionIconHtml(MEDIA_SOURCE_ICONS[source.location]||'database')}${sourceName(source)}</span>`;
+ const sourceLine=[online.map(sourceBadge).join(''),
+ offline.length?`${offline.map(sourceBadge).join('')}<span class="cleanupsourcemark cleanupsourcelost">离线</span>`:''].filter(Boolean).join('');
const junkCounts=junk.counts||{};
const junkBreakdown=[...JUNK_KIND_OPTIONS.filter(([key])=>key&&Number(junkCounts[key])>0)
.map(([key,label])=>`${esc(label)} ${Number(junkCounts[key]).toLocaleString()}`),
@@ -4915,8 +4925,8 @@ async function openDataCleanup(push=true){
empty:`<section class="cleanupfieldset cleanupemptyfolders" data-geist-fieldset aria-labelledby="cleanupEmptyTitle">
<div class="geist-fieldset-content">${fieldsetTitle('cleanupEmptyTitle','空文件夹')}
<strong>${online.length.toLocaleString()} 个来源可扫描</strong>
- <p class="cleanupmeta">${sourceLine}</p><p class="cleanupstate" aria-live="polite"></p></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" data-cleanup-empty-scan ${online.length?'':'disabled'}>${icon('scan-search')}<span>扫描空文件夹</span></button><button type="button" class="danger" data-cleanup-empty hidden>${icon('trash')}<span>删除空文件夹</span></button></footer>
+ <p class="cleanupmeta">${sourceLine}</p><div class="cleanupstate" aria-live="polite"></div></div>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" class="geist-button primary" data-cleanup-empty-scan ${online.length?'':'disabled'}>${icon('scan-search')}<span>扫描空文件夹</span></button><button type="button" class="danger" data-cleanup-empty hidden>${icon('trash')}<span>删除空文件夹</span></button></footer>
</section>`,
review:entryCard('review'),quality:entryCard('quality'),trash:entryCard('trash'),
};
@@ -4939,12 +4949,14 @@ async function openDataCleanup(push=true){
const emptyScan=$('#stats').querySelector('[data-cleanup-empty-scan]');
emptyScan.onclick=async()=>{
const status=$('#stats').querySelector('.cleanupstate');setActionBusy(emptyScan);emptyButton.hidden=true;
- status.textContent='正在检查空文件夹…';
+ /* 空文件夹扫描是挂载点上的慢活,接口只有跑完才回话:状态行用 Loading Dots 说
+ 「还在推进」,不假装有百分比。 */
+ status.innerHTML=loadingDotsHtml('正在检查空文件夹…');
try{const result=await api('/api/data-cleanup/empty-folders',{method:'POST',body:JSON.stringify({dry_run:true})});
if(!surfaceCurrent(surface))return;
- status.textContent=`已检查 ${Number(result.scanned||0).toLocaleString()} 个目录,发现 ${Number(result.empty||0).toLocaleString()} 个空文件夹${result.errors?`,${result.errors} 个目录读取失败`:''}。`;
+ status.innerHTML=noteHtml(`已检查 ${Number(result.scanned||0).toLocaleString()} 个目录,发现 ${Number(result.empty||0).toLocaleString()} 个空文件夹${result.errors?`,${result.errors} 个目录读取失败`:''}。`,{label:'检查结果'});
emptyButton.hidden=!(result.empty>0);
- }catch(error){status.textContent=`扫描失败:${error.message}`}finally{setActionBusy(emptyScan,false)}
+ }catch(error){status.innerHTML=noteHtml(error.message,{variant:'error',label:'扫描失败'})}finally{setActionBusy(emptyScan,false)}
};
emptyButton.onclick=async()=>{
return confirmModal({title:'删除空文件夹',body:'将删除已连接磁盘和网盘中的空文件夹,保留来源根目录。',confirmLabel:'删除空文件夹',danger:true,onConfirm:async()=>{
@@ -4953,7 +4965,7 @@ async function openDataCleanup(push=true){
status.textContent='正在自底向上检查已挂载来源…';
try{
const result=await api('/api/data-cleanup/empty-folders',{method:'POST',body:'{}'});
- status.textContent=`已检查 ${Number(result.scanned||0).toLocaleString()} 个目录,删除 ${Number(result.removed||0).toLocaleString()} 个${result.errors?`,${Number(result.errors).toLocaleString()} 个读取或删除失败`:''}。`;
+ status.innerHTML=noteHtml(`已检查 ${Number(result.scanned||0).toLocaleString()} 个目录,删除 ${Number(result.removed||0).toLocaleString()} 个${result.errors?`,${Number(result.errors).toLocaleString()} 个读取或删除失败`:''}。`,{label:'清理结果',variant:result.errors?'warning':'success'});
if(result.errors)actionFailure('空文件夹清理',new Error(`${result.errors} 个目录处理失败`));
else actionReceipt(`已删除 ${Number(result.removed||0).toLocaleString()} 个空文件夹`);
}finally{setActionBusy(emptyButton,false);emptyButton.innerHTML=original;emptyButton.hidden=true}
@@ -6009,19 +6021,15 @@ function followCheckToast(report){
{warn:!!failed,timeout:failed?8000:6000,
action:{label:'去看更新',run:()=>openFollow()}});
}
-/* 页内持久行:只装失败与取证缺档,渲染在管理页自己的检查区里。全部成功时
- 返回空串——成功摘要整条交给 toast,页面上不再出现通栏横条。关注页不渲染
- 这块:那里的持久行是 .fwarn,带「去管理关注」的恢复入口。 */
+/* 页内持久行:只装失败与取证缺档,渲染在管理页自己的检查区里。「没有更多内容」
+ 一类的抓取完摘要不落页内——它跟着检查完成的右下角 notification(followCheckToast)
+ 走,页内只留要处理的东西。全部成功时返回空串。关注页不渲染这块:那里的持久行
+ 是 .fwarn,带「去管理关注」的恢复入口。 */
function followCheckFailNote(report){
const rows=report.results||[];
const failed=rows.filter(r=>!r.ok);
- const exhausted=rows.filter(r=>r.exhausted);
const evidence=rows.filter(r=>r.evidence_error);
- if(!failed.length&&!evidence.length&&!exhausted.length)return '';
- const ended=exhausted.length?`<div class="geist-note geist-note-secondary fcheckreport" role="note">
- ${icon('info')}<div><p><b>${exhausted.length} 个来源没有更多内容</b></p>
- ${exhausted.map(row=>`<p class="fchecknote">${esc([row.provider_label||row.provider,row.ref]
- .filter(Boolean).join(' '))}:没有更多历史内容</p>`).join('')}</div></div>`:'';
+ if(!failed.length&&!evidence.length)return '';
const errors=failed.length||evidence.length?`<div class="geist-note geist-note-error fcheckreport" role="alert">${icon('alert')}<div>
${failed.length?`<p><b>${failed.length} 个来源检查失败</b></p>`:''}
${failed.map(row=>`<p class="fcheckfail"><strong>${esc(row.provider_label||row.provider||'')}</strong>
@@ -6029,7 +6037,7 @@ function followCheckFailNote(report){
${evidence.length?`<p class="fchecknote">候选已入库,但这一次的原始响应没有留档:${
esc(evidence[0].evidence_error)}</p>`:''}
</div></div>`:'';
- return `<div class="fcheckreports">${ended}${errors}</div>`;
+ return `<div class="fcheckreports">${errors}</div>`;
}
/* ── 看的那一页 ── */
@@ -6792,9 +6800,9 @@ function followAliasManager(groups,suggestions){
<form class="faliasform" id="followAliasAdd">
<input class="geist-input" name="canonical" required placeholder="规范创作者名" aria-label="规范创作者名">
<input class="geist-input" name="alias" required placeholder="平台别名" aria-label="平台别名">
- <button class="fbtn" type="submit">保存别名</button>
+ <button class="fbtn primary" type="submit">保存别名</button>
</form>
- ${detected?`<div class="faliasheading"><h4>待合并</h4><div class="faliasactions"><button type="button" class="fbtn" data-follow-alias-selected disabled>合并所选(0)</button><button type="button" class="fbtn" data-follow-alias-all>全部合并(${suggestions.length})</button></div></div>
+ ${detected?`<div class="faliasheading"><h4>待合并</h4><div class="faliasactions"><button type="button" class="fbtn" data-follow-alias-selected disabled>合并所选(0)</button><button type="button" class="fbtn primary" data-follow-alias-all>全部合并(${suggestions.length})</button></div></div>
<div class="ftableframe"><div class="ftablewrap"><table class="ftable faliastable" aria-label="待合并创作者别名"><thead><tr><th scope="col" class="faliascheck"><label>${checkboxHtml('data-follow-alias-select-all aria-label="全选待合并别名"')}</label></th><th scope="col">规范创作者</th><th scope="col">平台别名</th><th scope="col">依据</th><th scope="col">操作</th></tr></thead><tbody>${detected}</tbody></table></div></div>`:''}
<div class="faliasheading"><h4>已保存别名</h4><span>${groups.length} 组</span></div>
${saved?`<div class="ftableframe"><div class="ftablewrap"><table class="ftable faliastable faliassaved" aria-label="已保存创作者别名"><thead><tr><th scope="col">规范创作者</th><th scope="col">平台别名</th></tr></thead><tbody>${saved}</tbody></table></div></div>`:emptyState('users','还没有保存创作者别名','填写规范创作者名和平台别名以添加。',{className:'compact'})}
@@ -8271,6 +8279,7 @@ function syncPhotoWalls(){
if(photoViewActive()){
$('#density').setAttribute('aria-pressed',String(photoSize()==='small'));
$('#density').title='当前:'+(photoSize()==='big'?'大图':'小图');
+ syncDensityIcon(photoSize());
}else applyDensity();
}
function wirePhotoControls(root){
diff --git a/web/board.css b/web/board.css
index 6f8e5a29f..c5e525c1b 100644
--- a/web/board.css
+++ b/web/board.css
@@ -465,6 +465,30 @@ body :is(#manageTitle,#manageCrumb,#manageLede){max-width:var(--board-content);w
.cleanupgrid>.cleanupemptyfolders>.geist-fieldset-content{min-height:0;padding:24px}
.cleanupgrid>.cleanupemptyfolders>.geist-fieldset-footer{border:0;padding:24px;background:none;display:flex;gap:8px;flex-wrap:wrap}
.cleanupgrid>.cleanupemptyfolders strong{font:var(--board-body);color:var(--color-text-secondary);letter-spacing:0}
+/* 来源行和资源同步结果面板取同一份站标;离线那枚跟着结果面板的 offline 用色。 */
+.cleanupgrid>.cleanupemptyfolders .cleanupmeta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
+.cleanupsourcemark{display:inline-flex;align-items:center;gap:6px}
+.cleanupsourcemark .gselectmark{width:14px;height:14px}
+.cleanupsourcemark.cleanupsourcelost{color:var(--drop)}
+/* 资源同步的结果照 Board 的 stat cards 排:和数据管理顶上一排读数同一副卡片,
+ 三个来源带官方站标,缓存与回收站两张读数跟在后面凑成同一行节奏。卡片不是入口,
+ 不接悬停抬色;在线状态挂在标题行最右,标题行放不下的说明在窄屏折行。 */
+.resourcestats{margin:0}
+.resourcestat{cursor:default}
+.resourcestat:hover{background:var(--color-background-secondary-default)}
+.resourcestat-tile svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
+.resourcestat-tile img{width:20px;height:20px;object-fit:contain}
+.resourcestat-state{margin-left:auto;font:var(--board-caption)}
+.resourcestat-state.online{color:var(--success)}
+.resourcestat-state.offline{color:var(--drop)}
+.resourcestat .cleanupmeta{white-space:normal}
+/* 检查结果 Note 在空文件夹卡里顶满左右:两侧吃掉内容区的内边距直抵框边,
+ 侧边不再自带圆角和描边,读起来是卡片自己的一条结果带。 */
+.cleanupgrid>.cleanupemptyfolders .cleanupstate .geist-note{margin-inline:-24px;border-inline:0;border-radius:0}
+#resourceSyncResult>.cleanupstats{margin:0}
+/* 结果槽里三层各管各的间距:读数卡、说明 Note、操作行都不再共享一只面板框。 */
+#resourceSyncResult>.geist-note{margin:16px 0 0}
+#resourceSyncResult>.resourceapplyrow{margin:16px 0 0;min-height:0;border:0;background:none;padding:0}
.library-processing-outcome:empty{display:none}
/* 首页那条整理提示是正文列里的一条 Note,上下两条线是它自己的收口。少了这个空当,
两条线一边挨着身份行、一边挨着筛选浮层,看着像三块东西粘在一起。下面照浮层那个数
@@ -1106,7 +1130,8 @@ body :is(button.danger:not(.frowicon),.reviewactions button.error,.batchbar butt
.followmanage .fsec>.faliasmanager,.followmanage .fsec>.faliasmanager[open]{background:transparent}
.followmanage .fcred{box-sizing:border-box;min-height:64px;padding:16px}.followmanage .fcred summary{box-sizing:border-box;min-height:32px;margin:0;padding:0}.followmanage .fcred.none{height:64px;align-items:center}
.followmanage .fmain>.fsec:has(>.fsecfoot){overflow:hidden;border-radius:18px}
-.followmanage .fmain>.fsec:has(>.fsecfoot)>.frows,.followmanage .fmain>.fsec:has(>.fsecfoot) .board-follow-list,.followmanage .fmain>.fsec:has(>.fsecfoot) .fauthor:last-child{border-bottom-left-radius:0;border-bottom-right-radius:0}
+/* 末位作者卡下面还隔着分页条才到批量条,卡不再与条子相接,四角都圆回去。 */
+.followmanage .fmain>.fsec:has(>.fsecfoot)>.frows,.followmanage .fmain>.fsec:has(>.fsecfoot) .board-follow-list{border-bottom-left-radius:0;border-bottom-right-radius:0}
.followmanage .fmain>.fsec>.fsecfoot{border-top-left-radius:0;border-top-right-radius:0}
.configfieldset>.geist-fieldset-footer,.cleanupfieldset>.geist-fieldset-footer,.resourcesyncfooter,.resourceapplyrow{border-top-left-radius:0;border-top-right-radius:0;background:var(--board-card-foot)}
.followmanage .board-follow-list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:0;background:none}
@@ -1195,7 +1220,7 @@ body :is(.sbadge,.faliasbadge,.tasteconfidence,.board-chip,.badge){display:inlin
body :is(.sbadge.ok,.board-chip.success){background:color-mix(in srgb,#84cc16 16%,var(--color-background-primary-default));color:#4d7c0f}body :is(.sbadge.error,.board-chip.error){background:color-mix(in srgb,#f43f5e 12%,var(--color-background-primary-default));color:#e11d48}.sbadge i,.tasteconfidence i{display:none}
.fprovider{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.fprovider .sbadge{flex:none}.followmanage .fsource.frow{grid-template-columns:20px minmax(120px,1fr) minmax(100px,auto) auto auto}
.board-sankey-card :is([data-flow-node],[data-flow-source]){outline:none}.board-sankey-card :is([data-flow-node],[data-flow-source]):focus-visible{outline:2px solid var(--color-border-focus-ring);outline-offset:3px}
-.board-button-group{display:inline-flex;align-items:center;overflow:hidden;border:1px solid var(--color-border-button-default);border-radius:10px;background:var(--color-background-primary-default);box-shadow:0 1px 2px #0000000d}.board-button-group>button{height:34px;padding:0 12px;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--color-text-secondary);font:var(--board-body)}.board-button-group>button+button{border-left:1px solid var(--color-border-button-default)}.board-button-group>button:is(:hover,[aria-pressed=true]){background:var(--control-hover);color:var(--color-text-primary)}
+.board-button-group{display:inline-flex;align-items:center;overflow:hidden;border:1px solid var(--color-border-button-default);border-radius:10px;background:var(--color-background-primary-default);box-shadow:0 1px 2px #0000000d}.board-button-group>button{height:34px;padding:0 12px;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--color-text-secondary);font:var(--board-body)}.board-button-group>button+button{border-left:1px solid var(--color-border-button-default)}.board-button-group>button:is(:hover,[aria-pressed=true]):not(.primary){background:var(--control-hover);color:var(--color-text-primary)}
.followmanage .fpickactions .fbtn{height:36px;min-height:36px;padding:8px 12px}
.photolight .photonav{width:36px;height:36px;border:1px solid var(--color-border-button-default);border-radius:10px;background:var(--color-background-primary-default);color:var(--color-text-secondary);box-shadow:0 1px 2px #0000000d}.photolight .photonav:hover{background:var(--color-background-primary-hover)}.photolight .photonav svg{width:20px;height:20px}.photolight .photonav.swiper-button-disabled{opacity:.4;pointer-events:none}
.board-carousel-pagination{display:flex;align-items:center;justify-content:center;gap:8px;max-width:160px;margin-inline:auto;overflow:hidden;height:28px}.board-carousel-pagination .swiper-pagination-bullet{width:6px;height:6px;flex:none;margin:0!important;border:0;padding:0;border-radius:999px;background:#a3a3a3;opacity:1;transition:width .2s ease-out,background .2s ease-out}.board-carousel-pagination .swiper-pagination-bullet-active{width:16px;background:#fafafa}
@@ -1265,7 +1290,13 @@ body [data-board-tabs] button[aria-selected=true],body .managebar [data-board-ta
.splitbutton.board-button-group>.splittoggle{border-left:1px solid var(--color-border-button-default)}
/* 这两半压上去换的那一面跟站内其他次级按钮是同一个 token。基线那条按 `--inset` 填,
特指度还比这一组的规则高,两处今天算出来是同一个值,改其中一个就会分家。 */
-.splitbutton.board-button-group>button:hover:not(:disabled){background:var(--control-hover)}
+.splitbutton.board-button-group>button:is(:hover,[aria-pressed=true]):not(.primary){background:var(--control-hover)}
+/* 分隔按钮的强调档:主钮与箭头钮各挂 `geist-button primary`,那一面由全站唯一那条
+ 强调档规则给,悬停的淡入也是。箭头钮是展开不是操作,但它跟主钮长在同一颗键上,
+ 半蓝半灰读起来像坏了一半;中缝那条线换成压暗的蓝,整颗仍是同一枚实底键。 */
+body .splitbutton.primary{border:0;box-shadow:none}
+body .splitbutton.primary>button:disabled{background:var(--sunk);color:var(--muted)}
+body .splitbutton.primary>.splittoggle{border-left-color:color-mix(in srgb,#000 20%,var(--board-blue))}
body [data-cleanup-empty][hidden]{display:none}
dialog.board-icon-popover{position:fixed;inset:auto;margin:0;width:min(360px,calc(100vw - 16px));max-height:calc(100dvh - 16px);box-sizing:border-box;padding:8px;border:0;border-radius:24px;background:var(--color-background-secondary-default);color:var(--ink);box-shadow:0 12px 40px #00000024;overflow:auto}
.board-icon-popover::backdrop{background:transparent}.board-icon-panel{padding:12px;border-radius:20px;background:var(--color-background-primary-default);box-shadow:0 1px 2px #0000000d}.board-icon-panel h3{font:var(--board-body-medium);margin:0 0 10px;padding:0 4px}.board-icon-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.board-icon-grid label{position:relative;display:grid;place-items:center;height:40px;border-radius:8px;cursor:pointer}.board-icon-grid label:hover{background:var(--color-background-primary-hover)}.board-icon-grid label.selected{background:var(--picked);color:var(--tungsten)}.board-icon-grid input{position:absolute;opacity:0;width:1px;height:1px}.board-icon-grid label:focus-within{outline:2px solid var(--tungsten)}.board-icon-popover footer{display:flex;justify-content:flex-end;gap:8px;padding:8px 4px 0}
@@ -1348,7 +1379,9 @@ html.board-high-contrast :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgrou
10px 圆角,滑块 6px 圆角、transform/width/height 各 200ms cubic-bezier(.4,0,.2,1))。
这三四个面板是同一份数据的互斥视图,一条横线会把它读成页面层级的导航。 */
.insightpanel>header:has(.insighttabs){padding:12px 16px;min-height:0}
-.insighttabs{position:relative;display:inline-flex;align-items:center;gap:2px;width:auto;max-width:100%;min-height:0;margin:0;padding:4px;border:0;border-radius:10px;background:var(--color-background-tertiary-default);overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
+/* 轨道不裁剪:滑块换位带着冲过落点再荡回的那一下,裁了就跟其他分段器两个动法。
+ 统计维度只有三个短标签,窄屏也摆得下,横滚的裁剪在这里没有存在的理由。 */
+.insighttabs{position:relative;display:inline-flex;align-items:center;gap:2px;width:auto;max-width:100%;min-height:0;margin:0;padding:4px;border:0;border-radius:10px;background:var(--color-background-tertiary-default);overflow:visible}
.insighttabs button{position:relative;z-index:1;display:inline-flex;flex:none;align-items:center;gap:6px;height:auto;min-height:28px;margin:0;padding:4px 10px;border:0;border-radius:6px;background:none;box-shadow:none;color:var(--color-text-secondary);font:var(--board-body);white-space:nowrap;transition:color .2s cubic-bezier(.4,0,.2,1)}
/* 取消基线那条下划线要连选中态一起写:`web/css` 那份把线挂在
`.insighttabs button[aria-selected="true"]:after` 上,只写 `button::after` 权重更低,
diff --git a/web/css/11-identity.css b/web/css/11-identity.css
index 728231b26..736bd8f9a 100644
--- a/web/css/11-identity.css
+++ b/web/css/11-identity.css
@@ -117,7 +117,6 @@ button.serieslink.entitylink:hover{color:var(--tungsten);text-decoration:none}
.revieworigin>div button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:var(--control-radius);background:var(--hover);padding:6px 9px;color:var(--ink-2);cursor:pointer}
.revieworigin>div button:hover{color:var(--ink)}.revieworigin>div button svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2}
@media(max-width:640px){.qualitylist{grid-template-columns:1fr}.qualityitem{grid-template-columns:110px minmax(0,1fr)}.qualitycover{width:110px}.reviewcompare{grid-template-columns:1fr}.revieworigin{grid-template-columns:110px minmax(0,1fr)}.revieworigincover{width:110px}}
-@media(max-width:640px){.resourcesync .resourcesources{grid-auto-flow:row;grid-template-columns:1fr}.resourcesync .resourcesources article+article{border-left:0;border-top:1px solid var(--line-soft)}.resourcesync .resourcecache{grid-template-columns:1fr}.resourcesync .resourcecache>div+div{border-left:0;border-top:1px solid var(--line-soft)}}
.indexmore[hidden],.entitymore[hidden]{display:none}
.indexmore,.entitymore{display:flex;align-items:center;justify-content:center;margin:20px auto 0;min-width:124px;
diff --git a/web/css/12-cards.css b/web/css/12-cards.css
index 014783abd..a26831471 100644
--- a/web/css/12-cards.css
+++ b/web/css/12-cards.css
@@ -40,9 +40,9 @@ main{position:relative;z-index:1;padding:14px 16px 90px}
.count.count-actions-only{position:relative;top:auto;min-height:0;margin:0 0 16px;padding:0;justify-content:flex-end}
.count.count-actions-only:empty{display:none}
.resourcesync{scroll-margin-top:calc(var(--topH) + 18px);display:grid;gap:16px}.resourcesync>h2{margin:0;font-size:var(--fs-xl)}
-.resourcesyncbox,.resourcepanel{overflow:clip;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground)}.resourcesyncbody{padding:20px}.resourcesyncbody p{max-width:760px;margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.resourcesyncfooter,.resourceapplyrow{box-sizing:border-box;min-height:var(--fieldset-bar-h);display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}.resourcesyncfooter p,.resourceapplyrow>p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.5}.resourceaction{box-sizing:border-box;height:36px;padding:0 12px;border:0;border-radius:var(--control-radius);box-shadow:0 0 0 1px var(--line-soft);background:var(--ground);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;font:inherit;font-size:var(--fs-sm);font-weight:500;cursor:pointer;transition:background-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 8%,var(--ground));color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{background:var(--sunk);color:var(--muted);cursor:not-allowed}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#linkCheckResult:empty,#resourceSyncResult:empty{display:none}.resourcescanning{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);color:var(--muted)}.resourcesources{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.resourcesources article{display:grid;gap:4px;min-width:0;padding:16px}.resourcesources article+article{border-left:1px solid var(--line-soft)}.resourcesourcetitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.resourcesourcetitle span{font-size:var(--fs-xs)}.resourcesources .online{color:var(--success)}.resourcesources .offline{color:var(--drop)}.resourcesources strong{margin-top:10px;font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcesources small,.resourcecache small{color:var(--muted)}/* 这里是一排读数,不是又一个盒子。原先它自带填色和分格线,和下面的操作条同色,
- 两条带子连在一起看不出边界;框里再套框也是多余的一层。 */
-.resourcecache{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 32px;border-top:1px solid var(--line-soft);padding:16px 20px}.resourcecache>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 16px}.resourcecache b{font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcecache span{font-weight:600}.resourcecache small{grid-column:1/-1}.resourceapplyrow .resourcesyncok{color:var(--success)}.resourcesyncok{margin:0;color:var(--success)}
+.resourcesyncbox,.resourcepanel{overflow:clip;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground)}.resourcesyncbody{padding:20px}.resourcesyncbody p{max-width:760px;margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.resourcesyncfooter,.resourceapplyrow{box-sizing:border-box;min-height:var(--fieldset-bar-h);display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}.resourcesyncfooter p,.resourceapplyrow>p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.5}.resourceaction{box-sizing:border-box;height:36px;padding:0 12px;border:0;border-radius:var(--control-radius);box-shadow:0 0 0 1px var(--line-soft);background:var(--ground);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;font:inherit;font-size:var(--fs-sm);font-weight:500;cursor:pointer;transition:background-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 8%,var(--ground));color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{background:var(--sunk);color:var(--muted);cursor:not-allowed}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#linkCheckResult:empty,#resourceSyncResult:empty{display:none}.resourcescanning{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);color:var(--muted)}/* 扫描中的环形进度和加载点同一只框:链接检查的进度住在 resourcepanel 里有边,
+ 这条独居在结果槽里,自己带框才和页面其他进度一个形状。 */
+#resourceSyncResult>.board-job-progress{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius)}.resourceapplyrow .resourcesyncok{color:var(--success)}.resourcesyncok{margin:0;color:var(--success)}
.tagbar,.count,.entitytagbar,.entitycollectionhead{transition:background-color .16s ease,border-color .16s ease}
/* 吸顶那条是底色的半透明版,配方跟着 --ground 走:写死深色底会在浅色主题下
变成一条黑带压在白底内容上。 */
@@ -72,6 +72,42 @@ main{position:relative;z-index:1;padding:14px 16px 90px}
body.refreshing #batchAction svg,
.entitycollectionhead[aria-busy="true"] .entitybatch svg{
--strand-dash:100;--strand-cycle:2.2s}
+/* 数据管理里两枚「扫一遍」的键各自适配忙态,不统一转圈:检查文件的 git-compare 照
+ lucide-animated 的 GitCompare 逐笔描画(右下圆→两条枝→左上圆,画完停住再一起淡出),
+ 扫描空文件夹的 scan-search 四角按左上右下/右上左下两拍轮流亮,放大镜保持不动。
+ 机制同换批键:动效写在 symbol 自己的零件上,忙态把动画名和周期传下去;空闲时名字是
+ none,什么都不动。全局的 prefers-reduced-motion 规则会关掉它们。 */
+@keyframes peach-gc-draw-a{
+ 0%{stroke-dashoffset:100;opacity:1}
+ 17%,86%{stroke-dashoffset:0;opacity:1}
+ 100%{stroke-dashoffset:0;opacity:0}}
+@keyframes peach-gc-draw-b{
+ 0%,25%{stroke-dashoffset:100;opacity:1}
+ 42%,86%{stroke-dashoffset:0;opacity:1}
+ 100%{stroke-dashoffset:0;opacity:0}}
+@keyframes peach-gc-draw-c{
+ 0%,50%{stroke-dashoffset:100;opacity:1}
+ 67%,86%{stroke-dashoffset:0;opacity:1}
+ 100%{stroke-dashoffset:0;opacity:0}}
+@keyframes peach-scan-corner-a{
+ 0%,40%{opacity:1}
+ 50%,90%{opacity:.25}
+ 100%{opacity:1}}
+@keyframes peach-scan-corner-b{
+ 0%,40%{opacity:.25}
+ 50%,90%{opacity:1}
+ 100%{opacity:.25}}
+#i-git-compare .gc-part{stroke-dasharray:var(--gc-dash,none);
+ animation-name:var(--gc-anim,none);animation-duration:var(--gc-cycle,1.8s);
+ animation-timing-function:linear;animation-iteration-count:infinite}
+#i-git-compare .gc-line-a,#i-git-compare .gc-line-b{animation-name:var(--gc-anim-b,none)}
+#i-git-compare .gc-end-b{animation-name:var(--gc-anim-c,none)}
+#i-scan-search .scan-corner{animation-name:var(--scan-anim,none);
+ animation-duration:var(--scan-cycle,1.2s);animation-timing-function:ease-in-out;animation-iteration-count:infinite}
+#i-scan-search .scan-corner-b{animation-name:var(--scan-anim-b,none)}
+#resourceScan[aria-busy="true"] svg,[data-cleanup-empty-scan][aria-busy="true"] svg{
+ --gc-dash:100;--gc-anim:peach-gc-draw-a;--gc-anim-b:peach-gc-draw-b;--gc-anim-c:peach-gc-draw-c;
+ --scan-anim:peach-scan-corner-a;--scan-anim-b:peach-scan-corner-b}
.count .sorts,.entitycollectionhead .sorts{display:flex;gap:5px;margin-left:auto;flex-wrap:nowrap;
overflow-x:auto;scrollbar-width:none;min-width:0}
.count .sorts::-webkit-scrollbar,.entitycollectionhead .sorts::-webkit-scrollbar{display:none}
diff --git a/web/css/22-followmanage.css b/web/css/22-followmanage.css
index 9dd40cffc..4d07db825 100644
--- a/web/css/22-followmanage.css
+++ b/web/css/22-followmanage.css
@@ -481,7 +481,6 @@ details.fcred{display:block;min-width:0}
.linkstats b{font-size:var(--fs-xl);font-variant-numeric:tabular-nums}
.linkstats small{color:var(--muted);font-size:var(--fs-xs)}
.linkhosts{margin-top:16px}.linkhosts b{font-weight:500;font-size:var(--fs-sm);overflow-wrap:anywhere}
-.linksummary .resourcecache b{font-size:var(--fs-lg)}
.linkgroup{padding:16px;border-top:1px solid var(--line-soft)}.linkgroup:first-child{border-top:0}
.linkgroup h4{margin:0 0 4px;font-size:var(--fs-md);font-weight:600}
.linkgroup h4 b{margin-left:6px;color:var(--muted);font-weight:inherit;font-variant-numeric:tabular-nums}
diff --git a/web/css/23-configuration.css b/web/css/23-configuration.css
index b2682d79a..3d6c57a99 100644
--- a/web/css/23-configuration.css
+++ b/web/css/23-configuration.css
@@ -89,9 +89,6 @@ body .configpage :is(.configrm,.configpick).geist-button{width:var(--control-h);
.configtoggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:32px;font-size:var(--fs-sm);cursor:pointer}
.configtoggle:has(:disabled),.configcheck:has(:disabled){cursor:not-allowed;color:var(--muted)}
.configtoggle>span{min-width:0}
-/* 危险区和警告区那一副面写在 `board.css` 末尾:这一层里给卡描边和给底栏铺面的通用规则
- 有好几条,随后都被 Board 那一层按自己的面色重写过一遍,色写在这里会被逐条盖掉。 */
-.resourcepanel>.geist-note{margin:16px 20px}
.configfacts{margin:0;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:10px 24px;align-items:baseline}
.configfacts dt{color:var(--muted);font-size:var(--fs-sm)}.configfacts dd{margin:0;overflow-wrap:anywhere}
.configfacts dt .gselectmark{vertical-align:-3px;margin-inline-end:8px}
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index f40df2208..c77d3fca5 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -695,7 +695,7 @@ function vt({ id: e, label: t, actions: n, busy: r }) {
};
return /* @__PURE__ */ q("div", {
ref: i,
- class: "splitbutton board-button-group",
+ class: "splitbutton board-button-group primary",
onClickCapture: (e) => {
r && (e.preventDefault(), e.stopPropagation());
},
@@ -712,13 +712,13 @@ function vt({ id: e, label: t, actions: n, busy: r }) {
children: [
/* @__PURE__ */ q("button", {
type: "button",
- class: "splitmain geist-button",
+ class: "splitmain geist-button primary",
onClick: () => s(n[0]),
children: [o(n[0].icon), n[0].label]
}),
/* @__PURE__ */ q("button", {
type: "button",
- class: "splittoggle",
+ class: "splittoggle geist-button primary",
"aria-label": t,
"aria-haspopup": "menu",
"aria-expanded": "false",
@@ -924,7 +924,7 @@ function Tt() {
<section class="cleanupfieldset board-processing-skeleton" data-geist-fieldset aria-labelledby="cleanup-loading-scan">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-scan">扫描与采集</h3>
<p>扫描媒体文件夹,导入已有资料,采集缺失信息。</p></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><a class="board-link-button" href="/scraping"><span>来源和凭证</span><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-arrow-up"></use></svg></a><div class="splitbutton board-button-group"><button type="button" class="splitmain geist-button" disabled><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-database"></use></svg>扫描并补全资料</button><button type="button" class="splittoggle" disabled aria-label="更多扫描与采集方式"><svg aria-hidden="true"><use href="#i-chevron-down"></use></svg></button></div></footer>
+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><a class="board-link-button" href="/scraping"><span>来源和凭证</span><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-arrow-up"></use></svg></a><div class="splitbutton board-button-group primary"><button type="button" class="splitmain geist-button primary" disabled><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-database"></use></svg>扫描并补全资料</button><button type="button" class="splittoggle geist-button primary" disabled aria-label="更多扫描与采集方式"><svg aria-hidden="true"><use href="#i-chevron-down"></use></svg></button></div></footer>
</section>
<section class="cleanupfieldset cleanupemptyfolders" data-geist-fieldset aria-labelledby="cleanup-loading-empty">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-empty">空文件夹</h3>
@@ -942,14 +942,14 @@ function Tt() {
"作品资料站",
"资料出处"
].map((e) => `<div><span>${e}</span><b>${t}</b></div>`).join("")}</div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction" type="button" disabled>检查死链</button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查死链</button></div>
</div></section>
<section class="resourcesync" aria-labelledby="cleanup-loading-sync">
<h2 id="cleanup-loading-sync">资源同步</h2>
<div class="resourcesyncbox" data-geist-fieldset>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
<p>${t}</p></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction" type="button" disabled>检查文件</button></div>
+ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查文件</button></div>
</div></section></div>`;
}
function Et(e, t = !1, n = !1) {
@@ -5069,44 +5069,43 @@ var pa = (e = 0) => Number(e).toLocaleString(), ma = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-};
-function ha(e, t) {
+}, ha = (e) => b(s[e] ?? "database"), ga = (e, t, n) => `<article class="board-plain-stat resourcestat">
+ <span class="board-plain-stat-head">${e}</span>
+ <strong>${t}</strong>
+ <span class="cleanupmeta">${n}</span></article>`;
+function _a(e, t) {
let n = e.cache || {
files: 0,
bytes: 0
}, r = !!(e.missing || n.files);
- return `<div class="resourcepanel" data-geist-fieldset><div class="resourcesources">${(e.sources || []).map((e) => `<article>
- <div class="resourcesourcetitle"><b>${ma[e.location] || "媒体来源"}</b><span class="${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span></div>
- <strong>${e.online ? `${pa(e.missing)} 项` : "—"}</strong>
- <small>${e.online ? `找不到文件 · 已检查 ${pa(e.checked)} 项` : `馆藏中有 ${pa(e.total)} 项`}</small>
- ${e.unreadable ? `<small>${pa(e.unreadable)} 项读取失败,已跳过</small>` : ""}</article>`).join("")}</div>
- <div class="resourcecache"><div><span>可清理的缓存</span><b>${pa(n.files)} 个</b><small>${t(n.bytes)}</small></div>
- <div><span>待移入回收站</span><b>${pa(e.missing)} 项</b></div></div>
+ return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => ga(`<span class="board-stat-tile resourcestat-tile">${ha(e.location)}</span>${ma[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${pa(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${pa(e.checked)} 项` : `馆藏中有 ${pa(e.total)} 项`, e.unreadable ? `${pa(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
+ ${ga("待移入回收站", `${pa(e.missing)} 项`, "")}
+ ${ga("可清理的缓存", `${pa(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
${r ? g(`将把找不到文件的 ${pa(e.missing)} 项馆藏记录移入回收站,并清理 ${pa(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}
- <div class="resourceapplyrow geist-fieldset-footer" data-geist-fieldset-footer>${r ? "<button class=\"geist-button primary\" type=\"button\" id=\"resourceApply\">清理失效记录与缓存</button>" : "<p class=\"resourcesyncok\">已检查可访问的来源,没有待清理的记录或缓存。</p>"}</div></div>`;
+ <div class="resourceapplyrow geist-fieldset-footer" data-geist-fieldset-footer>${r ? "<button class=\"geist-button primary\" type=\"button\" id=\"resourceApply\">清理失效记录与缓存</button>" : "<p class=\"resourcesyncok\">已检查可访问的来源,没有待清理的记录或缓存。</p>"}</div>`;
}
//#endregion
//#region src/jav-artwork.ts
-function ga(e) {
+function va(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function _a(e) {
+function ya(e) {
return {
- javLayout: ga(e.javLayout),
- javImage: va(e.javLayout === "preview" ? "thumbnail" : e.javImage)
+ javLayout: va(e.javLayout),
+ javImage: ba(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
-function va(e) {
+function ba(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function ya(e, t) {
- return e.is_jav && e.code && e.has_cover && (va(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function xa(e, t) {
+ return e.is_jav && e.code && e.has_cover && (ba(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function ba(e, t) {
+function Sa(e, t) {
let n = Number(e?.px?.[0]), r = Number(e?.px?.[1]), i = Number(e?.x0);
if (!(n > 0 && r > 0 && t > 0) || !Number.isFinite(i)) return null;
let a = Math.min(1, Math.max(0, i / n)), o = n / r / t, s = (1 - a) * o;
@@ -5117,15 +5116,15 @@ function ba(e, t) {
left: l(c)
};
}
-function xa(e, t) {
+function Ca(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (va(t) === "cover" || !r)), a = i ? n : r;
+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (ba(t) === "cover" || !r)), a = i ? n : r;
e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);
});
}
//#endregion
//#region src/islands.ts
-var Sa = {
+var wa = {
"library-processing": {
load: yt,
component: St
@@ -5146,16 +5145,16 @@ var Sa = {
load: ii,
component: _i
}
-}, Ca = () => Object.keys(Sa), wa = /* @__PURE__ */ new Map();
-async function Ta(e, t, n, r = {}) {
- let i = Sa[e];
+}, Ta = () => Object.keys(wa), Ea = /* @__PURE__ */ new Map();
+async function Da(e, t, n, r = {}) {
+ let i = wa[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
- Da(t);
+ ka(t);
let a = {
controller: new AbortController(),
painted: !1
};
- wa.set(t, a);
+ Ea.set(t, a);
let o;
try {
o = {
@@ -5169,9 +5168,9 @@ async function Ta(e, t, n, r = {}) {
error: W(e)
};
}
- if (wa.get(t) !== a) return;
+ if (Ea.get(t) !== a) return;
if (r.isCurrent && !r.isCurrent()) {
- wa.delete(t);
+ Ea.delete(t);
return;
}
t.textContent = "", a.painted = !0;
@@ -5181,10 +5180,10 @@ async function Ta(e, t, n, r = {}) {
};
Ne(ue(i.component, s), t);
}
-var Ea = (e) => !!e && wa.has(e);
-function Da(e) {
- let t = wa.get(e);
- t && (t.controller.abort(), wa.delete(e), t.painted && Ne(null, e));
+var Oa = (e) => !!e && Ea.has(e);
+function ka(e) {
+ let t = Ea.get(e);
+ t && (t.controller.abort(), Ea.delete(e), t.painted && Ne(null, e));
}
//#endregion
-export { Dt as TASTE_GUIDE_KEY, En as activityChartsHtml, aa as boardPageSkeleton, Ie as boundedPreference, la as catalogEmptyHtml, ca as catalogSuggestions, zi as clampPage, Tt as cleanupSkeletonHtml, Ct as cloudLocations, wt as cloudPreferenceLocations, ki as createReviewSelection, bn as creatorSankeyHtml, ia as detailSkeletonHtml, Ve as distributionChart, sa as emptyCatalogLayout, qi as entitySkeletonHtml, ht as followJobProgress, Mi as groupReviewRows, Ci as identityEvidenceHtml, Nt as initBoardControls, Ea as islandMounted, Ca as islandNames, ya as javImageKind, pt as jobActivityHtml, Be as jobProgressHtml, Vi as matchesFaceSource, Gi as mountAvatarPicker, jt as mountBoardStatePreview, Ta as mountIsland, Re as mountNumberSetting, Hi as nativeImageFit, va as normalizeJavImage, ga as normalizeJavLayout, _a as normalizeJavPreferences, Ri as pageCount, Bi as paginationHtml, ba as panelFrame, Pe as preferredDirection, Ue as radarChart, Cn as radialCardHtml, He as rankedChart, bi as refreshStore, ha as resourceScanHtml, Si as reviewImageHtml, Di as selectGroup, Ti as selectRange, Ei as selectionSummary, ua as sidebarHasCatalogContent, kn as sidebarSectionHtml, fa as sidebarTagCounts, ze as statCardBody, yi as storeNames, Mt as syncBoardRange, xa as syncJavImages, Le as syncNumberSetting, Oi as syncSelectionToolbar, da as syncSidebarSurface, Et as tasteHistoryGuideHtml, Mn as transitionTheme, Ki as unmountAvatarPicker, Da as unmountIsland, Ai as updateReviewSticky, mt as watchJob, Dn as wireActivityCharts, xn as wireCreatorSankey, zt as wireExpandableRanks, Rt as wireGrowingCharts, wn as wireRadialCards, wi as wireReviewPictures, Ii as wireReviewSelection, An as wireSidebarGroups, Ot as wireTasteHistoryGuide };
+export { Dt as TASTE_GUIDE_KEY, En as activityChartsHtml, aa as boardPageSkeleton, Ie as boundedPreference, la as catalogEmptyHtml, ca as catalogSuggestions, zi as clampPage, Tt as cleanupSkeletonHtml, Ct as cloudLocations, wt as cloudPreferenceLocations, ki as createReviewSelection, bn as creatorSankeyHtml, ia as detailSkeletonHtml, Ve as distributionChart, sa as emptyCatalogLayout, qi as entitySkeletonHtml, ht as followJobProgress, Mi as groupReviewRows, Ci as identityEvidenceHtml, Nt as initBoardControls, Oa as islandMounted, Ta as islandNames, xa as javImageKind, pt as jobActivityHtml, Be as jobProgressHtml, Vi as matchesFaceSource, Gi as mountAvatarPicker, jt as mountBoardStatePreview, Da as mountIsland, Re as mountNumberSetting, Hi as nativeImageFit, ba as normalizeJavImage, va as normalizeJavLayout, ya as normalizeJavPreferences, Ri as pageCount, Bi as paginationHtml, Sa as panelFrame, Pe as preferredDirection, Ue as radarChart, Cn as radialCardHtml, He as rankedChart, bi as refreshStore, _a as resourceScanHtml, Si as reviewImageHtml, Di as selectGroup, Ti as selectRange, Ei as selectionSummary, ua as sidebarHasCatalogContent, kn as sidebarSectionHtml, fa as sidebarTagCounts, ze as statCardBody, yi as storeNames, Mt as syncBoardRange, Ca as syncJavImages, Le as syncNumberSetting, Oi as syncSelectionToolbar, da as syncSidebarSurface, Et as tasteHistoryGuideHtml, Mn as transitionTheme, Ki as unmountAvatarPicker, ka as unmountIsland, Ai as updateReviewSticky, mt as watchJob, Dn as wireActivityCharts, xn as wireCreatorSankey, zt as wireExpandableRanks, Rt as wireGrowingCharts, wn as wireRadialCards, wi as wireReviewPictures, Ii as wireReviewSelection, An as wireSidebarGroups, Ot as wireTasteHistoryGuide };
diff --git a/web/index.html b/web/index.html
index 4cac633c9..85178baa6 100644
--- a/web/index.html
+++ b/web/index.html
@@ -68,7 +68,7 @@
<symbol id="i-bed-double" viewBox="0 0 24 24"><path d="M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8" /><path d="M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4" /><path d="M12 4v6" /><path d="M2 18h20" /></symbol>
<symbol id="i-camera" viewBox="0 0 24 24"><path d="M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z" /><circle cx="12" cy="13" r="3" /></symbol>
<symbol id="i-video" viewBox="0 0 24 24"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5" /><rect x="2" y="6" width="14" height="12" rx="2" /></symbol>
-<symbol id="i-scan-search" viewBox="0 0 24 24"><path d="M3 7V5a2 2 0 0 1 2-2h2" /><path d="M17 3h2a2 2 0 0 1 2 2v2" /><path d="M21 17v2a2 2 0 0 1-2 2h-2" /><path d="M7 21H5a2 2 0 0 1-2-2v-2" /><circle cx="12" cy="12" r="3" /><path d="m16 16-1.9-1.9" /></symbol>
+<symbol id="i-scan-search" viewBox="0 0 24 24"><path class="scan-corner scan-corner-a" d="M3 7V5a2 2 0 0 1 2-2h2"/><path class="scan-corner scan-corner-b" d="M17 3h2a2 2 0 0 1 2 2v2"/><path class="scan-corner scan-corner-a" d="M21 17v2a2 2 0 0 1-2 2h-2"/><path class="scan-corner scan-corner-b" d="M7 21H5a2 2 0 0 1-2-2v-2"/><circle cx="12" cy="12" r="3" /><path d="m16 16-1.9-1.9" /></symbol>
<symbol id="i-home" viewBox="0 0 24 24"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" /><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /></symbol>
<symbol id="i-panel-left" viewBox="0 0 24 24"><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M9 3v18" /></symbol>
<symbol id="i-search" viewBox="0 0 24 24"><path d="m21 21-4.34-4.34" /><circle cx="11" cy="11" r="8" /></symbol>
@@ -130,7 +130,7 @@
<symbol id="i-thumbs-up" viewBox="0 0 24 24"><path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z" /><path d="M7 10v12" /></symbol>
<symbol id="i-thumbs-down" viewBox="0 0 24 24"><path d="M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z" /><path d="M17 14V2" /></symbol>
<symbol id="i-eye" viewBox="0 0 24 24"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" /><circle cx="12" cy="12" r="3" /></symbol>
- <symbol id="i-eye-off" viewBox="0 0 24 24"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" /><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242" /><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" /><path d="m2 2 20 20" /></symbol><symbol id="i-ellipsis" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1" /><circle cx="19" cy="12" r="1" /><circle cx="5" cy="12" r="1" /></symbol><symbol id="i-pencil" viewBox="0 0 24 24"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></symbol><symbol id="i-shuffle" viewBox="0 0 24 24"><path class="strand strand-a" pathLength="100" d="M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22M18 2l4 4-4 4" /><path class="strand strand-b" pathLength="100" d="M2 6h1.972a4 4 0 0 1 3.6 2.2M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45M18 14l4 4-4 4" /></symbol><symbol id="i-unlink" viewBox="0 0 24 24"><path d="m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" /><path d="m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" /><line x1="8" x2="8" y1="2" y2="5" /><line x1="2" x2="5" y1="8" y2="8" /><line x1="16" x2="16" y1="19" y2="22" /><line x1="19" x2="22" y1="16" y2="16" /></symbol><symbol id="i-git-compare" viewBox="0 0 24 24"><circle cx="18" cy="18" r="3" /><circle cx="6" cy="6" r="3" /><path d="M13 6h3a2 2 0 0 1 2 2v7" /><path d="M11 18H8a2 2 0 0 1-2-2V9" /></symbol><symbol id="i-compass" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" /><path d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z" /></symbol><symbol id="i-folder-sync" viewBox="0 0 24 24"><path d="M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5" /><path d="M12 10v4h4" /><path d="m12 14 1.535-1.605a5 5 0 0 1 8 1.5" /><path d="M22 22v-4h-4" /><path d="m22 18-1.535 1.605a5 5 0 0 1-8-1.5" /></symbol><symbol id="i-expand" viewBox="0 0 24 24"><path d="m15 15 6 6" /><path d="m15 9 6-6" /><path d="M21 16v5h-5" /><path d="M21 8V3h-5" /><path d="M3 16v5h5" /><path d="m3 21 6-6" /><path d="M3 8V3h5" /><path d="M9 9 3 3" /></symbol><symbol id="i-zoom-in" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8" /><line x1="21" x2="16.65" y1="21" y2="16.65" /><line x1="11" x2="11" y1="8" y2="14" /><line x1="8" x2="14" y1="11" y2="11" /></symbol><symbol id="i-zoom-out" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8" /><line x1="21" x2="16.65" y1="21" y2="16.65" /><line x1="8" x2="14" y1="11" y2="11" /></symbol>
+ <symbol id="i-eye-off" viewBox="0 0 24 24"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" /><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242" /><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" /><path d="m2 2 20 20" /></symbol><symbol id="i-ellipsis" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1" /><circle cx="19" cy="12" r="1" /><circle cx="5" cy="12" r="1" /></symbol><symbol id="i-pencil" viewBox="0 0 24 24"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></symbol><symbol id="i-shuffle" viewBox="0 0 24 24"><path class="strand strand-a" pathLength="100" d="M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22M18 2l4 4-4 4" /><path class="strand strand-b" pathLength="100" d="M2 6h1.972a4 4 0 0 1 3.6 2.2M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45M18 14l4 4-4 4" /></symbol><symbol id="i-unlink" viewBox="0 0 24 24"><path d="m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" /><path d="m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" /><line x1="8" x2="8" y1="2" y2="5" /><line x1="2" x2="5" y1="8" y2="8" /><line x1="16" x2="16" y1="19" y2="22" /><line x1="19" x2="22" y1="16" y2="16" /></symbol><symbol id="i-git-compare" viewBox="0 0 24 24"><circle class="gc-part gc-end-a" pathLength="100" cx="18" cy="18" r="3"/><circle class="gc-part gc-end-b" pathLength="100" cx="6" cy="6" r="3"/><path class="gc-part gc-line-a" pathLength="100" d="M13 6h3a2 2 0 0 1 2 2v7"/><path class="gc-part gc-line-b" pathLength="100" d="M11 18H8a2 2 0 0 1-2-2V9"/></symbol><symbol id="i-compass" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" /><path d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z" /></symbol><symbol id="i-folder-sync" viewBox="0 0 24 24"><path d="M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5" /><path d="M12 10v4h4" /><path d="m12 14 1.535-1.605a5 5 0 0 1 8 1.5" /><path d="M22 22v-4h-4" /><path d="m22 18-1.535 1.605a5 5 0 0 1-8-1.5" /></symbol><symbol id="i-expand" viewBox="0 0 24 24"><path d="m15 15 6 6" /><path d="m15 9 6-6" /><path d="M21 16v5h-5" /><path d="M21 8V3h-5" /><path d="M3 16v5h5" /><path d="m3 21 6-6" /><path d="M3 8V3h5" /><path d="M9 9 3 3" /></symbol><symbol id="i-zoom-in" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8" /><line x1="21" x2="16.65" y1="21" y2="16.65" /><line x1="11" x2="11" y1="8" y2="14" /><line x1="8" x2="14" y1="11" y2="11" /></symbol><symbol id="i-zoom-out" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8" /><line x1="21" x2="16.65" y1="21" y2="16.65" /><line x1="8" x2="14" y1="11" y2="11" /></symbol>
<symbol id="i-grip-vertical" viewBox="0 0 24 24"><circle cx="9" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="9" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="9" cy="19" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="19" r="1" fill="currentColor" stroke="none"/></symbol>
<!-- 图标库里没有表示广告的图形;按 Lucide 的 24×24 描边风格自绘一个感叹号圆标,
线宽、圆角端点与其余图标一致,不至于在同一条导航里显得格格不入。 -->
diff --git a/web/vendor/lucide-ORIGIN.md b/web/vendor/lucide-ORIGIN.md
index f2a0dcc46..4932c3f94 100644
--- a/web/vendor/lucide-ORIGIN.md
+++ b/web/vendor/lucide-ORIGIN.md
@@ -3,7 +3,7 @@
- npm 包:`[email protected]`
- npm lock integrity:`sha512-ln37Ng6A709exLQH4pBxrbl6FAUk/ZBLTJnLrj02HN/Bb84eUGzlA2JjMglScI0TEab6vH2UVs0hm4vGgLzTrQ==`
- 许可证:ISC;原文见 `lucide-LICENSE.txt`
-- 消费者:`web/index.html` 内联的 118 个 symbol
+- 消费者:`web/index.html` 内联的 119 个 symbol
雪碧图里另有 7 枚自绘 symbol(check-check-outline、shuffle、alert、pics、jav、theater-enter、theater-exit)与 16 枚 player-* 前缀的播放器图标,都没有上游可对。
RSS 与拖动点保留填充修正,避免小圆点在全局描边样式下消失。