Peach: Local-first video metadata scraper and media manager.
fix(web): 按 Geist 收齐按钮描边、选中面与几处空态
longmeidao55cc3ff6e482
diff --git a/docs/reference-snapshots/vercel-geist-semantics-measured.md b/docs/reference-snapshots/vercel-geist-semantics-measured.mdindex ab392a93d..ecfb9557c 100644--- a/docs/reference-snapshots/vercel-geist-semantics-measured.md+++ b/docs/reference-snapshots/vercel-geist-semantics-measured.md@@ -385,6 +385,15 @@ Peach 的两列侧栏导航按上表对齐:`.edge button` 与 `.dnav button`- 顶栏与窄栏是有意与 Vercel 分开的一处:Vercel 的页头和页面底同色、不浮起,Peach 有一条从上贯到底的窄栏,两条一起留在 `--ground` 才不会在左上角撞出两种白。- 按钮次级档填 `--ground` 而不是透明,悬停抬到 `--surface`;禁用落到 `--sunk`。+- 动作按钮一律 `border:0`,两档只靠填充分:主动作 `--ink` 实底、次级 `--ground` 一块亮面。+ 描边留给输入类控件和「点开会出一张面板」的触发器:`.gselectfield`、来源筛选的+ `[data-srcfilter-toggle]`、排序方向的 `.fmanagedir` 保留 1px `--field-ring`,+ 悬停走 `--field-ring-hover`、展开走 `--field-ring-focus` 加 4px 辉光。+- 危险档静止态就是实底红 `--drop` 加白字,悬停把同一块红压深 18%:与 Geist 的 error+ 变体(`rgb(217,48,54)` 实底白字)同构,站内只有 01-base 那一份定义。+- 选中面 `--picked` 取 `--inset`:浅色 `#EBEBEB`(Geist 的 gray-200)、深色 9% 白。+ 判据是「比脚下那张面往下压一档」,与实测 Tabs 的 `bg-gray-200` 一致;站在 `--ground`+ 上的那一类控件(顶栏、窄栏、抽屉、浮层菜单)例外,选中走 `--hover` 加 `--ink` 字色。- 滚动条不写任何自定义样式,交给 `html` 上的 `color-scheme`。## 2026-09-05 实测 vercel.com/<team>/~/deployments 的筛选行diff --git a/frontend/src/islands/scraping.tsx b/frontend/src/islands/scraping.tsxindex 8477dc4ad..7bbf54e57 100644--- a/frontend/src/islands/scraping.tsx+++ b/frontend/src/islands/scraping.tsx@@ -1,6 +1,7 @@import { useEffect, useLayoutEffect, useRef, useState } from 'preact/hooks';import { apiGet, apiSend, errorMessage } from '../api';import { noteHtml, fieldsetTitle, setActionBusy, selectFieldHtml, wireSelectField } from '@peach/legacy/ui';+import { faviconUrl } from '@peach/legacy/core';import type { IslandState } from '../islands';import { watchJob } from '../jobs';import type { JobState } from '../jobs';@@ -75,7 +76,16 @@ function SourceForm({ source, toast }: { source: Source } & ScrapingProps) {<form ref={form} class="cleanupfieldset" data-geist-fieldset onSubmit={event => { event.preventDefault(); void action('save'); }}><div class="geist-fieldset-content scraping-fields"><div dangerouslySetInnerHTML={{ __html: fieldsetTitle(`scraping-${source.source}`, source.label) }} />- <a class="scraping-url" href={source.login} target="_blank" rel="noopener noreferrer">{source.login}</a>+ {/* 前面是站点自己的图标(指对象),后面是外链箭头(指形态)——两枚都在+ `vercel-geist-button-icons.md` 的「加图标」那一侧,中间的地址不重复说这两件事。+ 图标直接取对方站点的 `/favicon.ico`:这一页配置的就是与这些站的连接,+ 浏览器本来就要连它们,不必绕服务端。取不到时把 `<img>` 摘掉,不留破图。 */}+ <a class="scraping-url" href={source.login} target="_blank" rel="noopener noreferrer">+ <img src={faviconUrl(source.login)} alt="" width="16" height="16" loading="lazy"+ onError={event => event.currentTarget.remove()} />+ <span>{source.login}</span>+ <svg aria-hidden="true"><use href="#i-external-link" /></svg>+ </a><div class="scraping-label">连接方式<NetworkSelect value={network} onChange={setNetwork} /></div>{network === 'proxy' && <label>代理地址<input class="geist-input" type="password" autoComplete="off" value={proxy}placeholder={saved.proxy_saved ? '已保存,留空保留' : 'http://127.0.0.1:7890'} disabled={busy}@@ -112,10 +122,12 @@ function SourceForm({ source, toast }: { source: Source } & ScrapingProps) {+ (check.message ? `。${check.message}` : ''), { variant: check.ok ? 'success' : 'error' },) }} />)}</div>+ {/* 主体动作在最右。次级动作先出现,`保存` 是这张卡唯一的写入,放在一行的末尾。+ 表单里只有它一个 `type=submit`,所以挪位置不影响回车提交。 */}<footer class="geist-fieldset-footer" data-geist-fieldset-footer>- <button class="geist-button primary" type="submit">保存</button>- <button class="geist-button" type="button" onClick={() => void action('check')}>检查连接</button>{source.accepts_cookie && saved.cookie_saved && <button class="geist-button" type="button" onClick={() => void action('revoke')}>撤销 Cookie</button>}+ <button class="geist-button" type="button" onClick={() => void action('check')}>检查连接</button>+ <button class="geist-button primary" type="submit">保存</button></footer></form></section>;diff --git a/frontend/src/legacy/core.d.ts b/frontend/src/legacy/core.d.tsindex 96ce16b8b..d7757b3d0 100644--- a/frontend/src/legacy/core.d.ts+++ b/frontend/src/legacy/core.d.ts@@ -12,3 +12,6 @@ export declare function fmtDur(seconds: number | null | undefined): string;/** 字节格式化成 TB/GB/MB。 */export declare function fmtSize(bytes: number | null | undefined): string;++/** 站点图标地址:优先 `SITE_FAVICONS` 里登记的路径,否则同源的 `/favicon.ico`;解析失败给空串。 */+export declare function faviconUrl(url: string): string;diff --git a/frontend/test/stubs/legacy-core.ts b/frontend/test/stubs/legacy-core.tsindex 4bc6ec3ad..270689999 100644--- a/frontend/test/stubs/legacy-core.ts+++ b/frontend/test/stubs/legacy-core.ts@@ -27,3 +27,9 @@ export const fmtSize = (bytes: number | null | undefined): string => {if (value >= 1073741824) return `${(value / 1073741824).toFixed(1)} GB`;return `${Math.floor(value / 1048576)} MB`;};++/* 只复制行为,不复制 `SITE_FAVICONS` 那张表:island 用到的站点都不在表里,+ 抄一份过来只会在遗留层加条目时变成两份各自漂移的清单。 */+export const faviconUrl = (url: string): string => {+ try { return new URL('/favicon.ico', url).href; } catch { return ''; }+};diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex 6afe81635..cdcb28ed9 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -443,23 +443,30 @@ class WebUiSourceTests(unittest.TestCase):'aria-label="检查更新进度">')def test_buttons_keep_two_tiers_a_solid_primary_and_a_bright_secondary(self):- """按钮只有两档:主动作实底墨色,次级是比容器亮一档的面加一圈发丝边。+ """按钮只有两档:主动作实底墨色,次级是比容器亮一档的实面;两档都不描边。2026-09-05 实测 vercel.com 的仪表盘工具行,两档同屏并排:主动作 `#171717` 底- 白字不带描边,次级 `#FFFFFF` 底 `#171717` 字加 `0 0 0 1px #EBEBEB`。次级不是透明的- ——压在 `#FAFAFA` 的操作条上时,透明会让按钮和条子连成一片,只剩一条边框在飘。+ 白字,次级 `#FFFFFF` 底 `#171717` 字。次级不是透明的——压在 `#FAFAFA` 的操作条上,+ 透明会让按钮和条子连成一片。Geist 给次级另挂的那圈 `box-shadow:0 0 0 1px` 这里+ 不画:描边档与实心档并排看着一大一小,差的是「一个是块面、一个是个框」,+ 而次级只出现在操作条上,比条子亮一档本身就是边界。"""self.assertCode(".geist-button{box-sizing:border-box;height:32px;padding:0 14px;"- "border:1px solid var(--line-soft);border-radius:var(--control-radius);"+ "border:0;border-radius:var(--control-radius);""background:var(--ground);color:var(--ink);display:inline-flex;")self.assertPageContains(".geist-button:hover:not(:disabled){background:var(--surface)}")- self.assertPageContains(".geist-button.primary{border-color:var(--ink);background:var(--ink);color:var(--ground)}")+ self.assertPageContains(".geist-button.primary{background:var(--ink);color:var(--ground)}")css = stylesheet_source()- for name in (".cleanupfieldset button{", "\n.fbtn{", ".resourceaction{"):- start = css.index(name)+ # 找的是这三条基样式本身,不是别处以同名结尾的派生规则(`.fsecfoot .fbtn{`+ # 也以 `.fbtn{` 收尾),所以选择器前面必须是上一条规则的边界。+ for name in (".cleanupfieldset button:where(:not(.gselectfield)){",+ ".fbtn{", ".resourceaction{"):+ found = re.search(r"(?:^|[}\n])" + re.escape(name), css)+ self.assertIsNotNone(found, f"{name} 找不到基样式")+ start = found.end() - len(name)rule = css[start:css.index("}", start)]self.assertIn("background:var(--ground)", rule, f"{name} 是次级档,自己是一块亮面")- self.assertIn("border:1px solid var(--line-soft)", rule, f"{name} 的边与次级档一致")+ self.assertIn("border:0", rule, f"{name} 跟次级档一样不描边")def test_the_scrollbar_thumb_floats_over_the_content_and_takes_no_width(self):"""滑块自绘、浮在内容上,一列宽度都不占;颜色取主题变量。@@ -779,7 +786,7 @@ class WebUiSourceTests(unittest.TestCase):".playerstatsbtn", # 播放器覆盖层,悬停走 ::after 另一层".fb .like", # 这一排彩色反馈按钮的既有约定就是悬停预览按下后的颜色".tagpickitem", # 选中由图标换成对勾表达,填充留给悬停与键盘游标- ".gselectmenu button", # 同上;2026-09-04 实测 vercel.com 后台的菜单行,悬停与选中共用同一枚 5% 填充+ ".popmenu.gselectmenu button", # 同上;2026-09-04 实测 vercel.com 后台的菜单行,悬停与选中共用同一枚 5% 填充".edge button", # 窄栏,实测 vercel.com/geist 左栏就是悬停抬填充".dnav button", # 抽屉是窄栏的展开态,同一条例外)@@ -864,7 +871,7 @@ class WebUiSourceTests(unittest.TestCase):'.chip[aria-pressed="true"]', # 抽屉是一整张磨砂近白面'.dnav button[aria-pressed="true"]', # 同上,窄栏的展开态'.edge button[aria-pressed="true"]', # 窄栏填 --ground- '.gselectmenu button[aria-selected="true"]', # 浮层菜单填 --ground+ '.popmenu.gselectmenu button[aria-selected="true"]', # 浮层菜单填 --ground'.ib[aria-pressed="true"]', # 顶栏填 --ground'.managebar button[aria-pressed="true"]', # 管理导航容器填 --ground'.playerstatsbtn[aria-pressed="true"]', # 播放器蒙层恒为深色@@ -874,23 +881,23 @@ class WebUiSourceTests(unittest.TestCase):)def test_the_selected_face_is_one_token_that_flips_with_the_theme(self):- """选中填 --picked,它在两个主题里各取各的值,两边都比脚下那张面更亮一档。+ """选中填 --picked,它就是 --inset 那一档中间色,两个主题各取各的值。- 浅色一档页面底是 #FAFAFA,比它亮的只有纯白;深色一档底近黑,比它亮的是叠一层- 7% 白。这两件事没有共同的字面值,所以选中面只能是个随主题翻面的 token:写死- --hover,浅色下 5% 黑比页面底还深,选中读成「被按凹进去」;写死 --ground,- 深色下它比 --surface 还暗,选中等于没有高亮。站内两种写法各被推翻过一次,- `04b2438b` 与 `e5962ec7` 是同一个控件上的两次相反修改。+ 判据是「跟脚下那张面不同」,不是「更亮」:选中格多半站在白卡上,往亮里填等于+ 白叠白,一排 tab 里哪一枚被选中读不出来。2026-09-04 实测 vercel.com/geist 的+ Tabs:选中态只有一件事,`bg-gray-200`(#EBEBEB),比容器往下压一档。深色一档+ 叠 9% 白后本来就比面亮,同一个 token 两边都成立,三处声明写法完全一致。例外只有一类:控件自己就站在 --ground 上(顶栏、窄栏、抽屉、浮层菜单)。那里- 没有比脚下更亮的面可填,选中靠 --hover 那一档暗加上 --ink 的字色,与 2026-09-04- 实测 vercel.com/geist 左栏一致。这一类逐个登记在 SELECTED_ON_GROUND。+ 选中靠 --hover 那一档暗加上 --ink 的字色,与实测的 Geist 左栏一致。这一类逐个+ 登记在 SELECTED_ON_GROUND。"""css = stylesheet_source()- self.assertIn("--picked:var(--ground);", css, "浅色一档取纯白")- self.assertEqual(css.count("--picked:var(--hover);"), 2,- "深色两处声明(prefers-color-scheme 与 data-theme)各写一份")- self.assertNotIn("--picked:#", css, "选中面不写字面色,只引用已有的两张面")+ self.assertEqual(css.count("--picked:var(--inset);"), 3,+ "浅色一处、深色两处(prefers-color-scheme 与 data-theme)各写一份")+ self.assertIn("--inset:#EBEBEB;", css, "浅色一档就是 Geist 的 gray-200")+ self.assertIn("--inset:rgba(255,255,255,.09);", css, "深色一档在面上叠一层白")+ self.assertNotIn("--picked:#", css, "选中面不写字面色,只引用已有的那张中间面")on_ground = sorted(" ".join(leaf.split()) for leaf, body in self._leaf_rules()if any(state in leaf for state in self.STATE_TOKENS)and "background:var(--hover)" in body)@@ -1023,13 +1030,16 @@ class WebUiSourceTests(unittest.TestCase):css = re.sub(r"/\*.*?\*/", "", stylesheet_source(),flags=re.S)self.assertNotIn("scale:.96", css, "Geist 按下没有缩放,别再加回来")- disabled = ("{background:var(--sunk);border-color:var(--line-soft);"- "color:var(--muted);cursor:default}")+ # 描边那一档连边一起变灰;不描边的动作按钮只换填充和字色。+ ringed = ("{background:var(--sunk);border-color:var(--line-soft);"+ "color:var(--muted);cursor:default}")+ flat = "{background:var(--sunk);color:var(--muted);cursor:default}"+ for selector in (".tagselection button:disabled", ".fpickactions button:disabled",+ ".srctools button:disabled", ".frowicon:disabled"):+ self.assertPageContains(selector + ringed)for selector in (".geist-button:disabled", ".fbtn:disabled",- ".tagselection button:disabled", ".fpickactions button:disabled",- ".fcredactions button:disabled", ".srctools button:disabled",- ".frowicon:disabled", ".resourceaction:disabled"):- self.assertPageContains(selector + disabled)+ ".fcredactions button:disabled", ".resourceaction:disabled"):+ self.assertPageContains(selector + flat)def test_font_weights_stay_on_the_three_geist_steps(self):"""字重只有 400/500/600 三档。@@ -1824,7 +1834,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("setActionBusy(btn)")self.assertPageContains("spinnerHtml('正在提交喜爱理由')")self.assertPageContains("setActionBusy(btn,false);btn.innerHTML='<span>提交</span>'")- self.assertPageContains('.geist-button.primary{border-color:var(--ink);background:var(--ink);color:var(--ground)}')+ self.assertPageContains('.geist-button.primary{background:var(--ink);color:var(--ground)}')self.assertPageContains('.preference-foot>span{margin-right:auto')self.assertPageLacks('aria-label="保存喜爱理由">${icon(\'check\')}</button>')self.assertPageLacks("仅保存在本机")@@ -2204,6 +2214,7 @@ class WebUiSourceTests(unittest.TestCase):# 框体(数据管理的操作条、关注管理的头部条)不是待填内容,不参与微光。self.assertPageContains(".cleanup-skeleton .skeletoncard em::after,\n"+ ".review-skeleton .skeletoncard em::after,\n"".followmanage-skeleton .skeletoncard i::after{content:none}")def test_index_skeletons_share_final_geometry_and_keep_the_header(self):@@ -3612,8 +3623,10 @@ class WebUiSourceTests(unittest.TestCase):processing = (Path(__file__).resolve().parents[1] / 'frontend/src/islands/library-processing.tsx').read_text(encoding='utf-8')self.assertIn('href="/scraping"', processing)self.assertPageContains('.scraping-fields .gselectfield{justify-content:space-between;padding-right:16px;')- self.assertPageContains('.scraping-fields .scraping-url{text-decoration:none;')- self.assertPageContains('.scraping-fields .scraping-url:hover{color:var(--ink);text-decoration:none}')+ # 来源链接是站外地址:站标加箭头,读者不点也知道这一跳会离开 Peach。+ self.assertPageContains('.scraping-fields .scraping-url{display:inline-flex;align-items:center;gap:6px;')+ self.assertPageContains('.scraping-fields .scraping-url:hover{color:var(--ink);text-decoration:underline;')+ self.assertPageContains('.scraping-fields .scraping-url svg{flex:none;width:14px;height:14px;')self.assertPageContains('.scraping-fields .scraping-cover-form{display:flex;align-items:center;')source = (Path(__file__).resolve().parents[1] / 'frontend/src/islands/scraping.tsx').read_text(encoding='utf-8')self.assertIn('wireSelectField(root.firstElementChild!)', source)@@ -3754,7 +3767,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains('data-taste-route="${esc(item.route)}"')self.assertPageContains("route(button.dataset.tasteRoute);restoreRoute()")self.assertPageContains(".tasteinsights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px")- self.assertPageContains(".tastelead:hover{border-color:var(--border-15);background:var(--hover)}")+ self.assertPageContains(".tastelead:hover{background:color-mix(in srgb,var(--inset) 94%,var(--ink))}")self.assertPageLacks(".tasteanalysisbody")def test_stats_use_analytics_panels_and_real_determinate_progress(self):@@ -3877,8 +3890,7 @@ class WebUiSourceTests(unittest.TestCase):# 这一行的浮层与控件底色只走 token。self.assertPageLacks("background:#181a1d;box-shadow:0 16px 44px -20px #000}")self.assertPageContains(- ".geist-button.primary:disabled{border-color:var(--line-soft);"- "background:var(--sunk);color:var(--muted)}")+ ".geist-button.primary:disabled{background:var(--sunk);color:var(--muted)}")def test_edge_and_drawer_share_one_navigation_dispatch(self):"""窄栏和抽屉各写一份分支时,抽屉那份漏了追更和播放列表。@@ -4210,24 +4222,26 @@ class WebUiSourceTests(unittest.TestCase):分段器(Switch)只承担 2–3 项互斥视图,标签超过两三个字就要换 Tabs;复核分类 10 项、垃圾文件分类 7 项都在界外,所以这两条是 Tabs 不是分段器。几何取 secondary 变体:高 32px、左右 12px、6px 圆角、13px/400,hover 只换文字色,选中只抬底不动边框。- 描边是记录在案的有意偏离:上游 secondary 不描边,但它没有「必须放在容器内」这类- 条款(未取得),而 Peach 这两条直接坐在页面顶部、四周没有容器边线,不描边时只有- 选中那一枚有底色。描边一旦被后来的「对齐规范」顺手删掉,这个判据就没人记得了。- 描边之后相邻两枚不能再紧贴,否则两条 1px 边粘成一条 2px 的,所以 gap 从 0 抬到 5px。+ 两态都不描边,跟上游 secondary 一致:给每一枚都画一圈线之后,一排读起来是七个+ 一模一样的框,选中那一枚只能靠填充说话,而线比填充响得多,浅色一档上「哪一枚被+ 选中」根本读不出来。选中填 `--picked`,也就是 Geist 的 gray-200 那一档中间色。+ gap 留 5px:两枚填充块紧贴会连成一条,读成一个控件。"""self.assertPageContains(".reviewtabs,.junkfilters{display:flex;align-items:center;gap:5px;min-width:0;""overflow-x:auto;scrollbar-width:none}")self.assertCode(".reviewtabs button,.junkfilters a{box-sizing:border-box;height:32px;padding:0 12px;flex:none;"- "display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border-15);"+ "display:inline-flex;align-items:center;gap:6px;border:0;""border-radius:var(--control-radius);background:transparent;color:var(--muted);""text-decoration:none;font:inherit;font-size:var(--fs-sm);font-weight:400;""white-space:nowrap;cursor:pointer}")+ # 装不下时要能滚:这两条都靠覆盖式滑块给出可拖的抓手,系统滚动条已经关掉了。+ self.assertPageContains("'.reviewtabs','.junkfilters',")self.assertPageContains('.reviewtabs button[aria-selected="true"],.junkfilters a[aria-current="page"]''{background:var(--picked);color:var(--ink)}')- # 反相底色不能回来;描边只到 --border-15 那一档,不跟着选中态提亮。+ # 反相底色不能回来。self.assertPageLacks('.reviewtabs button[aria-pressed="true"]{background:var(--ink-2)')self.assertPageLacks('.junkfilters a[aria-current="page"]{border-color:var(--ink-2)')# 外观一样不代表语义一样。复核那条切的是 10 个互不相同的候选数据集,每个分类换掉@@ -4282,13 +4296,10 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains("['dismiss-junk','不是垃圾','check']")self.assertPageContains("<span>移入回收站</span>")self.assertPageContains('body[data-density="dense"] .junkcard .junkactions button span{display:none}')- # 三个按钮等宽,各自居中就让图标横向参差;靠左起排它们才落在一条竖线上。- # 紧凑密度隐掉标签后只剩图标,那时才回到居中。+ # 三个按钮等宽,图标加标签在各自那一格里居中。junk_button = self.css.split(".junkactions button{", 1)[1].split("}", 1)[0]- self.assertIn("justify-content:flex-start", junk_button)- self.assertNotIn("justify-content:center", junk_button)- self.assertPageContains(- 'body[data-density="dense"] .junkcard .junkactions button{justify-content:center}')+ self.assertIn("justify-content:center", junk_button)+ self.assertNotIn("justify-content:flex-start", junk_button)self.assertPageContains("function renderJunkNavigation(data)")self.assertPageContains("['video','视频','play'],['image','图片','pics']")self.assertPageContains("['archive','压缩包','file-archive'],['audio','音频','file-audio']")@@ -4371,8 +4382,9 @@ class WebUiSourceTests(unittest.TestCase):self.assertNotIn('id="emptyTrash"', sorts)self.assertPageContains(".pagelede-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}")- self.assertPageContains(- ".pagelede-actions .batchaction.danger{background:var(--drop);border-color:var(--drop);color:#fff}")+ # 危险档只有 01-base 那一份,页面各自的 .danger 覆盖已经收掉了。+ self.assertPageContains("button.danger:not(.frowicon),.resourcedanger{")+ self.assertPageLacks(".pagelede-actions .batchaction.danger{")self.assertPageLacks(".count .sorts .batchaction.danger{")# 桌面 32px 是 Geist 的控件高度,手机要回到本项目的 44px 命中区。self.assertPageContains(".pagelede-actions .batchaction{height:44px;padding-inline:16px}")@@ -4382,10 +4394,12 @@ class WebUiSourceTests(unittest.TestCase):`.cleanuppage` 把 hub 那一页收进 812px,标题和面包屑跟着收才对得齐。但同一个section 底下的垃圾文件、重复文件正文都是全宽网格:跟着收就是宽屏上标题凭空左缩- 一截,标题左边缘和第一张卡的左边缘对不上。判据必须是路径,不是 section。+ 一截,标题左边缘和第一张卡的左边缘对不上。判据是「这条路径的正文是不是窄列」,+ 不是 section——采集来源也是 812px 的窄列,它和 hub 归在同一个 section 下。"""+ self.assertPageContains("const CENTERED_CLEANUP_PAGES=new Set(['/data-cleanup','/scraping']);")self.assertCode("document.body.classList.toggle('cleanup-layout',"- "current==='cleanup'&&decodeURIComponent(location.pathname)==='/data-cleanup')")+ "CENTERED_CLEANUP_PAGES.has(decodeURIComponent(location.pathname)));")self.assertPageLacks("document.body.classList.toggle('cleanup-layout',current==='cleanup')")# 窄列本体仍在 hub 上,这两条规则本身不动。self.assertPageContains(".cleanuppage{width:min(812px,100%);margin:0 auto}")@@ -4825,7 +4839,9 @@ class WebUiSourceTests(unittest.TestCase):"width:44px;height:44px;")self.assertPageContains("transform:translate(-50%,-50%)}")self.assertPageLacks(".npbtn{width:44px;height:44px}")- self.assertPageContains(".npmenu button,.gselectmenu button{min-height:44px}")+ # 两个类一起写:任何一条 `.某工具条 button` 都比单类祖先更具体,会把菜单里的+ # 每一行也画成工具条按钮,连这条 44px 命中区一起压掉。+ self.assertPageContains(".npmenu button,.popmenu.gselectmenu button{min-height:44px}")def test_entity_name_picker_writes_through_the_server_before_repainting(self):self.assertCode("const rename=(from,to)=>api('/api/entity-name',")@@ -5744,7 +5760,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains(".sbadge.error i{background:var(--drop)}")# 清空回收站:danger 语义色。self.assertPageContains('class="batchaction danger" id="emptyTrash"')- self.assertPageContains(".pagelede-actions .batchaction.danger{background:var(--drop);border-color:var(--drop);color:#fff}")+ self.assertPageContains("button.danger:not(.frowicon),.resourcedanger{")# Geist 菜单:触发器和每个选项都有入口图标,菜单内部滚动且不加猜测动画。self.assertPageContains('data-sidebar-add-trigger aria-haspopup="listbox" aria-expanded="false"')self.assertPageContains('role="option" data-sidebar-add-option=')@@ -6128,10 +6144,13 @@ class WebUiSourceTests(unittest.TestCase):"min-height:var(--fieldset-bar-h);")# 说明能被压窄并换行,按钮不参与压缩。self.assertPageContains(".resourcesyncfooter>p,.resourceapplyrow>p{min-width:0;margin-right:auto}")- self.assertPageContains(".cleanupfieldset button{box-sizing:border-box;flex:none;min-height:32px;")+ # 排除下拉触发器:它是 .cleanupfieldset 里的一个 button,但形状属于输入控件,+ # 那圈线要留着。零权重的 :where() 才不会反过来压过 .geist-button.primary。+ self.assertPageContains(".cleanupfieldset button:where(:not(.gselectfield)){"+ "box-sizing:border-box;flex:none;min-height:32px;")self.assertPageContains("background:var(--ground);color:var(--ink-2);display:inline-flex;")- self.assertPageContains(".cleanupfieldset button:hover{background:var(--surface);"- "color:var(--ink)}")+ self.assertPageContains(".cleanupfieldset button:where(:not(.gselectfield)):hover{"+ "background:var(--surface);color:var(--ink)}")self.assertPageLacks(".resourcesyncfooter button{width:100%;justify-content:center}")self.assertPageLacks(".resourcesync .resourcesyncfooter{align-items:stretch;flex-direction:column}")self.assertPageLacks(".resourcesync .resourceapplyrow{align-items:stretch;flex-direction:column}")@@ -7039,21 +7058,27 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains(".fsechead .iconswitch label{width:34px;height:32px}")self.assertPageContains(".fsechead .fbtn,.fsecfoot .fbtn{height:var(--control-h)}")- def test_destructive_buttons_fill_red_on_hover(self):- """危险动作的悬停态一律是 --drop 实底加白字,全站一个写法。+ def test_destructive_buttons_are_solid_red_at_rest(self):+ """危险动作静止态就是 --drop 实底加白字,全站一个写法。只描红边、红字的话,静止态和悬停态在暗色底上几乎一样亮,按下去之前看不出这是- 不可逆动作。Geist 的 error Button 同样是实心红填充(oklch(.5801 .227 25.12) 底、- 白字),只是它静止态就红,Peach 把红留到悬停。- """- fill = "background:var(--drop);border-color:var(--drop);color:#fff}"- for selector in (".fbtn.fquiet:hover{", ".fcredactions button.fquiet:hover{",- ".cleanupfieldset button.danger:hover{",- ".dupbtns button.danger:hover{", ".resourcedanger:hover:not(:disabled){",- ".junkactions .junktrash:hover:not(:disabled){",- ".playlistactions .danger:hover{",- ".reviewactions .reject:hover{"):- self.assertPageContains(selector + fill, f"{selector} 的悬停态要填 --drop")+ 不可逆动作。Geist 的 error Button 就是实心红填充(实测 `rgb(217,48,54)` 底、白字),+ 静止态即红;Peach 按用户 2026-09-06 的取舍跟它走,悬停只把同一块红压深一档。+ 纯图标删除键不在此列——它们靠图标本身说明动作,实底红会在一行图标里炸出一块。+ """+ self.assertPageContains("button.danger:not(.frowicon),.resourcedanger{")+ self.assertPageContains("background:var(--drop);border-color:var(--drop);color:#fff}")+ for selector in (".reviewactions .reject{background:var(--drop);color:#fff}",+ ".junkactions .junktrash{background:var(--drop);color:#fff}"):+ self.assertPageContains(selector, "判定与销毁键静止态就是实底红")+ darker = "{background:color-mix(in srgb,var(--drop) 82%,#000);color:#fff}"+ for selector in (".reviewactions .reject:hover:not(:disabled)",+ ".junkactions .junktrash:hover:not(:disabled)"):+ self.assertPageContains(selector + darker, f"{selector} 悬停把同一块红压深")+ # 每个页面各写一份 .danger 的时代结束了:站里只留 01-base 那一条。+ for stale in (".pagelede-actions .batchaction.danger{", ".cleanupfieldset button.danger{",+ ".playlistactions .danger{", ".dupbtns button.danger{", ".batchbar .danger{"):+ self.assertPageLacks(stale, "危险档只有 01-base 里那一份")def test_bulk_footer_keeps_one_line_and_ellipsises_its_counts(self):"""底部批量条保持一行,宽度不够时省略说明文字,而不是把动作键甩到第二行。diff --git a/web/app.js b/web/app.jsindex fb4ec6c74..76cdf48e9 100644--- a/web/app.js+++ b/web/app.js@@ -247,7 +247,10 @@ const MANAGEMENT_PLACEHOLDERS={// /resource-sync 只是数据管理页上的一个锚点,启动时占位也该是数据管理那张。'/resource-sync':()=>MANAGEMENT_PLACEHOLDERS['/data-cleanup'](),'/duplicates':()=>pageSkeletonHtml('正在比对重复内容',{cards:true}),- '/review':()=>pageSkeletonHtml('正在读取复核队列',{cards:true}),+ /* 复核是一排分类 tab 加一格一格 440px 高的 Fieldset,不是海报网格:骨架照+ .reviewlist 的列宽和 .reviewitem 的轮廓画,顶上留出 tab 那一条。 */+ '/review':()=>`<div class="review">${pageSkeletonHtml('正在读取复核队列',+ {cards:true,count:6,fill:false,className:'review-skeleton'})}</div>`,'/quality-goals':()=>pageSkeletonHtml('正在读取高清版目标',{cards:true}),'/playlists':()=>pageSkeletonHtml('正在读取播放列表',{cards:true}),// 关注管理是三个大区(添加关注、关注列表、凭据),不是一屏同质卡片:@@ -257,6 +260,10 @@ const MANAGEMENT_PLACEHOLDERS={// 配置页是两块同宽的卡(表单、运行信息),骨架照数据管理那套单列卡片的轮廓画两块。'/configuration':()=>`<div class="configpage">${pageSkeletonHtml('正在读取配置',{cards:true,count:2,fill:false,className:'cleanup-skeleton'})}</div>`,+ /* 采集来源是 812px 窄列里一叠同宽的 Fieldset:一块高清封面加六个来源。骨架画四块,+ 那是首屏装得下的张数;说明那一句是静态文案,与数据无关,立刻显示。 */+ '/scraping':()=>`<div class="scraping-page"><p>高清图片可能需要代理才能下载,请先检查连接。</p>+ ${pageSkeletonHtml('正在读取采集来源',{cards:true,count:4,fill:false,className:'cleanup-skeleton'})}</div>`,};const managementPlaceholder=path=>(MANAGEMENT_PLACEHOLDERS[path]||(()=>pageSkeletonHtml('正在读取页面')))();@@ -3245,8 +3252,8 @@ function tasteAnalysisSection(analysis){.map(lead=>`<button type="button" class="tastelead" ${lead.attrs}><span><b>${esc(lead.title)}</b><small>${esc(lead.detail)}</small></span>${icon('chevron-right')}</button>`).join('');return `<section class="insightpanel tasteleads">- <header><div><h3>口味总结</h3><p>${esc(analysis.headline)}</p></div>- <span class="tasteconfidence ${esc(confidence.level||'early')}">${esc(confidence.label||'仍在学习')}</span></header>+ <header><div><h3>口味总结</h3><p>${esc(analysis.headline)}</p>+ <span class="tasteconfidence ${esc(confidence.level||'early')}"><i aria-hidden="true"></i>${esc(confidence.label||'仍在学习')}</span></div></header><div class="insightpanelbody">${points?`<div class="tasteinsights">${points}</div>`:''}<div class="tasteleadlist">${leads||emptyStateHtml('search','还没有可探索的入口','馆藏里暂时没有对得上浏览信号的标签。')}</div>@@ -3482,6 +3489,10 @@ const DATA_MANAGEMENT_ENTRIES=[['trash','回收站','查看回收站'],['quality','高清版','查看高清版'],];+/* 这一页按一条内容在库里的经过排:先进来(扫描与采集),再把它说清楚(人工复核、+ 高清版),然后把不该留的挑出去(重复文件、垃圾文件、空文件夹),最后是删掉的东西+ 还在哪儿(回收站)。复核紧跟采集,因为它是采集的下一步,不是清理的收尾。 */+const DATA_MANAGEMENT_ORDER=['scraping','review','quality','duplicates','junk','empty','trash'];async function openDataCleanup(push=true){releaseHoverPreviews();disposeStage(false);enterManagementSurface();@@ -3505,39 +3516,45 @@ async function openDataCleanup(push=true){const junkBreakdown=[...JUNK_KIND_OPTIONS.filter(([key])=>key&&Number(junkCounts[key])>0).map(([key,label])=>`${esc(label)} ${Number(junkCounts[key]).toLocaleString()}`),...(Number(junk.dismissed_total)>0?[`已忽略 ${Number(junk.dismissed_total).toLocaleString()}`]:[])].join(' · ');- $('#stats').innerHTML=`<div class="cleanuppage"><div class="cleanupgrid">- <section class="cleanupfieldset" id="libraryProcessing" data-geist-fieldset aria-labelledby="cleanupScrapingTitle">+ const entryCard=section=>{+ const [,title,label]=DATA_MANAGEMENT_ENTRIES.find(([key])=>key===section);+ return `<section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanup-${section}-title">+ <div class="geist-fieldset-content">${fieldsetTitle(`cleanup-${section}-title`,title)}+ <strong data-cleanup-count="${section}">—</strong>+ <p class="cleanupmeta" data-cleanup-meta="${section}"></p></div>+ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" data-cleanup-go="${section}">${esc(label)}</button></footer>+ </section>`;+ };+ const cleanupCards={+ scraping:`<section class="cleanupfieldset" id="libraryProcessing" data-geist-fieldset aria-labelledby="cleanupScrapingTitle"><div class="geist-fieldset-content">${fieldsetTitle('cleanupScrapingTitle','扫描与采集')}<p>扫描媒体文件夹,导入已有资料,采集缺失信息。</p></div><footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" disabled>扫描并补全资料</button></footer>- </section>- <section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanupJunkTitle">+ </section>`,+ junk:`<section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanupJunkTitle"><div class="geist-fieldset-content">${fieldsetTitle('cleanupJunkTitle','垃圾文件')}<strong>${Number(junk.pending_total||0).toLocaleString()} 个待判断</strong><p class="cleanupmeta">${junkBreakdown}</p></div><footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" data-cleanup-open="junk">查看垃圾文件</button></footer>- </section>- <section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanupDupTitle">+ </section>`,+ duplicates:`<section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanupDupTitle"><div class="geist-fieldset-content">${fieldsetTitle('cleanupDupTitle','重复文件')}<strong>${Number(duplicates.total||0)?`${Number(duplicates.total).toLocaleString()} 组 · ${Number(duplicates.files||0).toLocaleString()} 个文件`:'没有重复内容'}</strong><p class="cleanupmeta">${Number(duplicates.total||0)?`可回收 ${fmtSize(duplicates.reclaimable||0)}`:''}</p></div><footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" data-cleanup-open="duplicates">查看重复文件</button></footer>- </section>- <section class="cleanupfieldset cleanupemptyfolders" data-geist-fieldset aria-labelledby="cleanupEmptyTitle">+ </section>`,+ 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" class="danger" data-cleanup-empty>${icon('trash')}<span>删除空文件夹</span></button></footer>- </section>- ${DATA_MANAGEMENT_ENTRIES.map(([section,title,label])=>`- <section class="cleanupfieldset" data-geist-fieldset aria-labelledby="cleanup-${section}-title">- <div class="geist-fieldset-content">${fieldsetTitle(`cleanup-${section}-title`,title)}- <strong data-cleanup-count="${section}">—</strong>- <p class="cleanupmeta" data-cleanup-meta="${section}"></p></div>- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button" data-cleanup-go="${section}">${esc(label)}</button></footer>- </section>`).join('')}+ </section>`,+ review:entryCard('review'),quality:entryCard('quality'),trash:entryCard('trash'),+ };+ $('#stats').innerHTML=`<div class="cleanuppage"><div class="cleanupgrid">+ ${DATA_MANAGEMENT_ORDER.map(section=>cleanupCards[section]).join('')}</div>${linkManagerMarkup()}${cloudLocations(sources.sources||[]).length?resourceSyncMarkup():''}</div>`;@@ -3777,10 +3794,14 @@ async function openReview(push=true){? (assets.length?`<div class="reviewpick"><div class="reviewpickhead"><span class="mono" data-picked-count></span><button type="button" data-pick-all>全选</button><button type="button" data-pick-none>清空</button></div><div class="reviewasset-grid">${assets.map(asset=>`<button type="button" class="reviewasset picked" data-review-asset="${asset.id}" aria-pressed="true" title="${esc(asset.name)}"><img src="/poster?id=${asset.id}&c=4" alt="" loading="lazy"><span class="pickmark">${icon('check')}</span></button>`).join('')}</div></div>`- // 空白一片会被当成界面坏了。真实原因是这些作品还没抽帧,说清楚比留白好。- : `<p class="empty">这 ${esc(row.video_count||'')} 条作品尚未抽帧,暂无预览;批准后仍会按候选写入标签</p>`)+ /* 空白一片会被当成界面坏了。真实原因是这些作品还没抽帧,说清楚比留白好;+ 空状态铺满卡片中段,卡高不随「有没有预览」上下跳。 */+ : emptyStateHtml('pics','这批作品尚未抽帧',+ `${row.video_count||''} 条作品还没有可用预览;批准后仍会按候选写入标签。`,+ {className:'reviewempty'})): reviewCategory==='fc2_similarity'?''- : (row.preview_url?`<div class="reviewimage"><img src="${esc(row.preview_url)}" alt="" loading="lazy" data-drop="closest:.reviewimage"></div>`:'<p class="empty">未取得图片预览</p>');+ : (row.preview_url?`<div class="reviewimage"><img src="${esc(row.preview_url)}" alt="" loading="lazy" data-drop="closest:.reviewimage"></div>`+ :emptyStateHtml('eye-off','未取得图片预览','这条候选没有可展示的图片,判断请依据下面的证据。',{className:'reviewempty'}));const body=`${// 实体类卡片的名字已经写在创作者入口里,再画一个 h4 就是同一行字上下两遍。subjectKind&&subjectName?'':`<h4>${esc(titleText)}</h4>`}${@@ -3788,7 +3809,10 @@ async function openReview(push=true){row.source_name?`<p class="reviewalias">来源写法:${esc(row.source_name)}</p>`:''}${// 实体类卡片的作品数已经写在创作者入口里,这里再写一遍就是同一个数字两处。subjectKind&&subjectName?'':`<p>${esc(row.board||row.assets?`样本/资产:${row.video_count||row.assets||''}`:'')}</p>`}${origin}${tags?`<div class="reviewtags">${tags}</div>`:''}${preview}<p>${esc(evidence)}</p>`;- const actions=`<button class="approve" data-review-status="approved"${canApprove&&!locked?'':' disabled'}>${approveLabel}</button><button class="skip" data-review-status="skipped"${locked?' disabled':''}>跳过</button><button class="reject" data-review-status="rejected"${locked?' disabled':''}>拒绝</button><span class="reviewstate" aria-live="polite"></span>`;+ /* 主体动作在最右:一行里从左到右是「拒绝、跳过、通过」,读到最后一枚才是这张卡+ 真正要人做的判断。Geist 的弹层与 Fieldset 操作条都是这个方向——取消在左,+ 主动作靠 margin-left:auto 推到最右(vercel-geist-fieldset-scroller-empty-state.md)。 */+ const actions=`<button class="reject" data-review-status="rejected"${locked?' disabled':''}>拒绝</button><button class="skip" data-review-status="skipped"${locked?' disabled':''}>跳过</button><button class="approve" data-review-status="approved"${canApprove&&!locked?'':' disabled'}>${approveLabel}</button><span class="reviewstate" aria-live="polite"></span>`;return `<fieldset class="reviewitem" data-geist-fieldset data-review-key="${esc(key)}" data-decision="${esc(decision)}"><legend class="sr-only">${esc(titleText)}</legend><div class="geist-fieldset-content">${scrollerHtml(body,{className:'reviewcontent',label:`复核:${titleText}`})}</div><footer class="reviewactions geist-fieldset-footer" data-geist-fieldset-footer>${actions}</footer></fieldset>`}).join(''):emptyState('square-check-big','暂无候选','该分类当前没有待人工复核的项目。')}</div></section></div>`;wireReviewAssets($('#stats'));wireScrollers($('#stats'));@@ -3877,8 +3901,10 @@ async function openScraping(push=true){releaseHoverPreviews();disposeStage(false);enterManagementSurface();if(push)route('/scraping');const surface=claimSurface('/scraping');- showManagementBody({placeholder:pageSkeletonHtml('正在读取采集来源',{cards:true})});- $('#manageTitle').textContent='采集来源';+ /* 占位取共用那一份:这里另写一张时,整页刷新会先画深链启动那张、再画这一张,+ 同一段 shimmer 连放两遍。标题由 paintManageTitle 按 MANAGE_CRUMB_PAGES 认,+ 不在这里再赋一次值。 */+ showManagementBody({placeholder:managementPlaceholder('/scraping')});const ui=await import('/dist/peach-ui.js');await ui.mountIsland('scraping',$('#stats'),{toast},{isCurrent:()=>surfaceCurrent(surface)});}@@ -4946,7 +4972,7 @@ function followCredentialRow(row){:row.fields.includes(name)?'已保存,留空表示不改':'未填写'}"></label>`).join('');const body=row.requirement==='none'?'':row.requirement==='blocked'?`<p>${esc(row.why)}</p>`- :`<p>${esc(row.why)}${row.where?` <a href="${esc(row.where)}" target="_blank" rel="noreferrer noopener">去取</a>`:''}</p>+ :`<p>${esc(row.why)}${row.where?` <a class="fcredget" href="${esc(row.where)}" target="_blank" rel="noreferrer noopener">去取${icon('external-link')}</a>`:''}</p>${row.howto?`<p>${esc(row.howto)}</p>`:''}<form class="fcredform" data-cred-form="${esc(row.provider)}">${fields}<div class="fcredactions"><button type="submit">保存</button>@@ -6742,13 +6768,17 @@ const MANAGE_CRUMB_PAGES={'/quality-goals':'高清版','/scraping':'采集来源',};+//: 数据管理这一支里正文是 812px 窄列的页面,标题与面包屑要跟着居中。+const CENTERED_CLEANUP_PAGES=new Set(['/data-cleanup','/scraping']);function paintManageTitle(){const current=manageSection(),el=$('#manageTitle');if(!el)return;document.body.classList.toggle('insight-layout',current==='stats'||current==='taste');- /* 812px 居中是数据管理 hub 自己的窄列宽度(.cleanuppage)。它下面的垃圾文件、- 重复文件正文都是全宽网格,跟着居中就是标题在宽屏上凭空左缩一截、跟内容对不齐。 */- document.body.classList.toggle('cleanup-layout',current==='cleanup'&&decodeURIComponent(location.pathname)==='/data-cleanup');+ /* 812px 居中跟着正文走,不跟着 section 走。数据管理 hub(.cleanuppage)和采集来源+ (.scraping-page)的正文都是这个宽度的窄列,标题不居中就比正文左出去一截;同一个+ section 下的垃圾文件、重复文件正文是全宽网格,跟着居中反而对不齐。所以判据是+ 「这条路径的正文是不是窄列」,列在下面这张表里。 */+ document.body.classList.toggle('cleanup-layout',CENTERED_CLEANUP_PAGES.has(decodeURIComponent(location.pathname)));document.body.classList.toggle('follow-manage-layout',decodeURIComponent(location.pathname)==='/follow-manage');document.body.classList.toggle('configuration-layout',current==='configuration');const entry=MANAGE_SECTIONS.find(([k])=>k===current);diff --git a/web/css/01-base.css b/web/css/01-base.cssindex ea6342874..984f79d21 100644--- a/web/css/01-base.css+++ b/web/css/01-base.css@@ -10,6 +10,13 @@:root{--ground:#FFFFFF; --surface:#FAFAFA; --sunk:#F2F2F2; --hover:rgba(0,0,0,.05); --skeleton-sheen:#EBEBEB;--line:#E5E5E5; --line-soft:#EBEBEB;+ /* 白面与页面底之间的那一档,全站的「中间色」。分段器和 tab 的选中格、面板里嵌进去的+ 那些行都填它:白面上再叠一张白等于没填,填页面底那一档又跟页面本身同色——两种做法+ 在浅色一档上都读不出「这一格是被选中的」,也读不出「这一行是嵌进去的」。+ 取值是 Geist 的 gray-200:实测 vercel.com 的 Tabs secondary 选中态就是 `bg-gray-200`+ #EBEBEB(vercel-geist-semantics-measured.md「选中态与它的悬停」),暗色一档按同一+ 方向在面上叠 9% 白。 */+ --inset:#EBEBEB;--ink:#171717; --ink-2:#4D4D4D; --muted:#666666;/* 蓝只给焦点环、链接、进度/数据和 Toggle 开态;按下/选中态与主动作走 --ink/--ink-2 反相,其它选择器引用 --tungsten 由 tests/test_web_ui.py 拒绝。 */@@ -49,13 +56,10 @@顶栏与窄栏是与 Vercel 有意分开的一处:Vercel 的页头和页面底同色、不浮,Peach 有一条从上贯到底的窄栏,两条一起留在 --ground 才不会在左上角撞出两种白。 */--page:#FAFAFA;- /* 选中填的那张面。两个主题读出来是同一句「比脚下这张更亮一档」,取法却相反:- 浅色一档的底是 #FAFAFA,往上一档是纯白;深色一档的底近黑,往上一档是叠 7% 白。- 写死成其中任何一个,另一档就会反过来——填 --hover 在浅色是 5% 黑,比页面底还深,- 选中于是读成「被按凹进去」;填 --ground 在深色比 --surface 还暗,选中等于没高亮。- 只给站在 --page 或凹槽上的控件。顶栏图标键、窄栏、抽屉和浮层菜单本身就站在- --ground 上,白面上再叠一张白等于没填,那几处的选中仍旧是 --hover 的那一档。 */- --picked:var(--ground);+ /* 选中填的那张面,就是上面那个中间色。判据是「跟周围不同」,不是「更亮」:选中格多半+ 站在白卡上,往亮里填等于白叠白,一排 tab 里哪一枚被选中读不出来。Geist 的取法是往下+ 压一档到 gray-200。深色一档叠白后本来就比面亮,同一个 token 两边都成立。 */+ --picked:var(--inset);--layer-dialog:1000; --layer-popover:1100; --layer-tooltip:1200;--frost-panel:rgba(250,250,250,.92); --frost-light:rgba(255,255,255,.86);--overlay-5:rgba(0,0,0,.05);--border-10:rgba(0,0,0,.10);--border-15:rgba(0,0,0,.15);@@ -72,7 +76,7 @@}@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--ground:#080A0D; --surface:#0C0F14; --sunk:#0B0D11; --hover:rgba(255,255,255,.07); --skeleton-sheen:rgba(255,255,255,.12);- --line:#3A3A3D; --line-soft:#2C2C30;+ --line:#3A3A3D; --line-soft:#2C2C30; --inset:rgba(255,255,255,.09);--ink:#FFFFFF; --ink-2:#C9CDD4; --muted:#9AA0A8;--tungsten:#0095F6;--frost-panel:rgba(6,9,14,.94); --frost-light:rgba(14,18,24,.90);@@ -80,12 +84,12 @@--field-ring:rgba(255,255,255,.14);--field-ring-hover:rgba(255,255,255,.24);--field-ring-focus:rgba(255,255,255,.51);--field-glow:rgba(255,255,255,.24);--page:#04060A;- --picked:var(--hover);+ --picked:var(--inset);--rating:#E5B34A;--loupe:#6FD0C8; --keep:#5FB95F; --meter:#E0912F; --drop:#FF5252; --success:#5FB95F; --ambient-opacity:1;}}:root[data-theme="dark"]{--ground:#080A0D; --surface:#0C0F14; --sunk:#0B0D11; --hover:rgba(255,255,255,.07); --skeleton-sheen:rgba(255,255,255,.12);- --line:#3A3A3D; --line-soft:#2C2C30;+ --line:#3A3A3D; --line-soft:#2C2C30; --inset:rgba(255,255,255,.09);--ink:#FFFFFF; --ink-2:#C9CDD4; --muted:#9AA0A8;--tungsten:#0095F6;--frost-panel:rgba(6,9,14,.94); --frost-light:rgba(14,18,24,.90);@@ -93,7 +97,7 @@--field-ring:rgba(255,255,255,.14);--field-ring-hover:rgba(255,255,255,.24);--field-ring-focus:rgba(255,255,255,.51);--field-glow:rgba(255,255,255,.24);--page:#04060A;- --picked:var(--hover);+ --picked:var(--inset);--rating:#E5B34A;--loupe:#6FD0C8; --keep:#5FB95F; --meter:#E0912F; --drop:#FF5252; --success:#5FB95F; --ambient-opacity:1;}@@ -175,30 +179,42 @@ button,a,input,textarea,select,summary{touch-action:manipulation}.geist-input:hover{border-color:var(--field-ring-hover)}.geist-input:focus{outline:0;border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)}-/* 按钮只有两档,2026-09-05 实测 vercel.com 的仪表盘工具行同时摆着它们:- 次级是 --ds-background-100 的白面加一圈 1px #EBEBEB,主动作是 #171717 实底白字、- 不带描边,禁用态落到 #F2F2F2 底 #8F8F8F 字。所以次级不是透明的——它自己是一块面,- 压在 fieldset 的操作条上时要比条子亮,不能透出条子的底。 */-.geist-button{box-sizing:border-box;height:32px;padding:0 14px;border:1px solid var(--line-soft);+/* 按钮分档只靠填充,一条边框线都不画。Geist 的四个变体全部 `border-width:0`、字重全部 500+ (实测见 vercel-geist-semantics-measured.md「Button 全变体与状态」):primary 实底墨色、+ error 实底红、warning 实底琥珀,次级是与卡面同一档的实面。Geist 给次级另挂了一圈+ `box-shadow:0 0 0 1px`,那是把白面压在白底上时补的边;Peach 按用户 2026-09-06 的取舍+ 不要这条线——次级只在操作条(--overlay-5/--surface)上出现,比条子亮一档本身就是边界。+ 描边档与实心档并排时看着一大一小,差的从来不是那 1px,是「一个是块面、一个是个框」。 */+.geist-button{box-sizing:border-box;height:32px;padding:0 14px;border:0;border-radius:var(--control-radius);background:var(--ground);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-size:var(--fs-md);font-weight:500;line-height:1;white-space:nowrap;cursor:pointer;- transition:background-color .15s ease-in-out,border-color .15s ease-in-out,color .15s ease-in-out}+ transition:background-color .15s ease-in-out,color .15s ease-in-out}.geist-button:hover:not(:disabled){background:var(--surface)}.geist-button:is(a),.geist-button:is(a):hover{text-decoration:none}.geist-button:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}-.geist-button:disabled{background:var(--sunk);border-color:var(--line-soft);color:var(--muted);cursor:default}+.geist-button:disabled{background:var(--sunk);color:var(--muted);cursor:default}/* Vercel/Geist loading actions look unavailable and reject repeat activation,but remain focusable; JS pairs this with aria-disabled instead of disabled. */button[aria-busy="true"],[role="button"][aria-busy="true"]{cursor:wait!important;opacity:.55!important;filter:saturate(.35)}-.geist-button.primary{border-color:var(--ink);background:var(--ink);color:var(--ground)}-.geist-button.primary:hover:not(:disabled){border-color:color-mix(in srgb,var(--ink) 88%,var(--ground));+.geist-button.primary{background:var(--ink);color:var(--ground)}+.geist-button.primary:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 88%,var(--ground));color:var(--ground)}/* 实心档的禁用态要自己写:.geist-button:disabled 排在 .primary 前面,同权重下后者赢,不补这条的话禁用的主动作还是满格实底,看着可点。 */-.geist-button.primary:disabled{border-color:var(--line-soft);background:var(--sunk);color:var(--muted)}+.geist-button.primary:disabled{background:var(--sunk);color:var(--muted)}+/* 危险档静止就是实底红,不是描红边等悬停才填。只换描边和文字色的话,两个状态在暗色底上+ 几乎一样亮,按下去之前看不出这是不可逆动作;Geist 的 error 变体也是 `rgb(217,48,54)`+ 实底配纯白字,静止态就红。销毁按钮全站只有这一个写法,`.danger` 与 `.resourcedanger`+ 都并到这里,纯图标删除键不适用——它们靠图标本身说明动作。 */+button.danger:not(.frowicon),.resourcedanger{+ background:var(--drop);border-color:var(--drop);color:#fff}+button.danger:not(.frowicon):hover:not(:disabled),.resourcedanger:hover:not(:disabled){+ background:color-mix(in srgb,var(--drop) 82%,#000);border-color:transparent;color:#fff}+button.danger:not(.frowicon):disabled,.resourcedanger:disabled{+ background:var(--sunk);border-color:var(--line-soft);color:var(--muted)}.skiplink{position:fixed;z-index:1000;left:12px;top:8px;transform:translateY(-150%);padding:9px 13px;border-radius:var(--control-radius);background:var(--ink);color:var(--ground);text-decoration:none;transition:transform .12s ease}@@ -284,13 +300,13 @@ button[aria-busy="true"],[role="button"][aria-busy="true"]{box-shadow:0 0 0 4px var(--field-glow)}.gselectfield:disabled{background:var(--surface);color:var(--muted);cursor:default}.gselectfield:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}-.gselectmenu button{display:flex;align-items:center;gap:8px;width:100%;min-height:var(--control-h);+.popmenu.gselectmenu button{display:flex;align-items:center;gap:8px;width:100%;min-height:var(--control-h);padding:0 8px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--ink-2);font:inherit;font-size:var(--fs-md);text-align:left;cursor:pointer}-.gselectmenu button:hover{background:var(--hover);color:var(--ink)}-.gselectmenu button>svg{width:16px;height:16px;flex:none;visibility:hidden;stroke:currentColor;fill:none}-.gselectmenu button[aria-selected="true"]{background:var(--hover);color:var(--ink)}-.gselectmenu button[aria-selected="true"]>svg{visibility:visible}+.popmenu.gselectmenu button:hover{background:var(--hover);color:var(--ink)}+.popmenu.gselectmenu button>svg{width:16px;height:16px;flex:none;visibility:hidden;stroke:currentColor;fill:none}+.popmenu.gselectmenu button[aria-selected="true"]{background:var(--hover);color:var(--ink)}+.popmenu.gselectmenu button[aria-selected="true"]>svg{visibility:visible}/* Geist Modal:确认一次写操作。实测 https://vercel.com/geist/modal(2026-09-04):540px 宽、12px 圆角、窄屏两侧各留 10px,正文 20px 内边距,操作条粘在底、12px 内边距、diff --git a/web/css/03-filterbar.css b/web/css/03-filterbar.cssindex 725a0041c..7701df3ca 100644--- a/web/css/03-filterbar.css+++ b/web/css/03-filterbar.css@@ -43,7 +43,4 @@.pagelede-actions .batchaction{box-sizing:border-box;min-height:32px;padding:0 14px;flex:none;display:inline-flex;align-items:center;border:1px solid transparent;border-radius:var(--control-radius);background:var(--ink);color:var(--ground);font:inherit;font-size:var(--fs-xs);font-weight:500;cursor:pointer}-.pagelede-actions .batchaction.danger{background:var(--drop);border-color:var(--drop);color:#fff}-.pagelede-actions .batchaction.danger:hover{background:color-mix(in srgb,var(--drop) 82%,#000);- border-color:color-mix(in srgb,var(--drop) 82%,#000);color:#fff}.pagelede-actions .batchaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}diff --git a/web/css/04-manage.css b/web/css/04-manage.cssindex 1b0dbbc35..60aa82022 100644--- a/web/css/04-manage.css+++ b/web/css/04-manage.css@@ -6,14 +6,25 @@与输入框同高才算一行,和「添加关注」那张表也是同一档。 */.playlistcreate .geist-button{height:38px;padding:0 13px}.playlistactions button{border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:9px 12px;cursor:pointer}.playlistactions button:hover{background:var(--hover);color:var(--ink)}.playlistcreate [data-playlist-state]{flex-basis:100%;color:var(--drop);font-size:var(--fs-xs)}-.playlistcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.playlistcard{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--surface);min-width:0}.playlistcover{position:relative;aspect-ratio:16/10;border:0;border-radius:var(--surface-radius);background:#000;overflow:hidden;padding:0;cursor:pointer}.playlistcover:disabled{cursor:default}.playlistcover img{width:100%;height:100%;object-fit:cover}.playlistcover span{position:absolute;right:5px;bottom:5px;border-radius:var(--badge-radius);background:#000b;color:#fff;padding:3px 6px;font-size:var(--fs-xs)}.playlistmeta{display:grid;align-content:center;gap:6px;min-width:0}.playlistmeta input{font-weight:600}.playlistmeta small{color:var(--muted)}.playlistactions{grid-column:1/-1;display:flex;gap:7px;justify-content:flex-end}.playlistactions .danger{color:var(--drop)}.playlistactions .danger:hover{background:var(--drop);border-color:var(--drop);color:#fff}+.playlistcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.playlistcard{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--surface);min-width:0}.playlistcover{position:relative;aspect-ratio:16/10;border:0;border-radius:var(--surface-radius);background:#000;overflow:hidden;padding:0;cursor:pointer}.playlistcover:disabled{cursor:default}.playlistcover img{width:100%;height:100%;object-fit:cover}.playlistcover span{position:absolute;right:5px;bottom:5px;border-radius:var(--badge-radius);background:#000b;color:#fff;padding:3px 6px;font-size:var(--fs-xs)}.playlistmeta{display:grid;align-content:center;gap:6px;min-width:0}.playlistmeta input{font-weight:600}.playlistmeta small{color:var(--muted)}.playlistactions{grid-column:1/-1;display:flex;gap:7px;justify-content:flex-end}.playlistdialog{width:min(520px,calc(100vw - 28px));border:1px solid var(--line);border-radius:var(--floating-radius);background:var(--surface);color:var(--ink);padding:0;box-shadow:0 2px 4px #0003,0 24px 80px #000b}.playlistdialog::backdrop{background:#000a;backdrop-filter:blur(5px)}.playlistdialoghead{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;border-bottom:1px solid var(--line-soft)}.playlistdialoghead h2{margin:0;font-size:var(--fs-xl)}.playlistdialoghead button{width:34px;height:34px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer}.playlistdialoghead button:hover{background:var(--hover)}.playlistdialoghead svg{width:19px;height:19px;stroke:currentColor;fill:none}.playlistdialogbody{padding:17px}.playlistpicklist{display:grid;gap:7px;margin-top:16px;max-height:320px;overflow-y:auto;overscroll-behavior:contain}.playlistpickrow{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--border-10);border-radius:var(--control-radius);background:var(--overlay-5);color:var(--ink);padding:11px 12px;text-align:left;cursor:pointer}.playlistpickrow:hover{background:var(--hover)}.playlistpickrow small{color:var(--muted)}.runtimegate{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:12px;margin:0 0 12px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--meter) 35%,var(--line));border-radius:var(--control-radius);background:color-mix(in srgb,var(--meter) 8%,var(--surface));color:var(--ink);font-size:var(--fs-sm)}.runtimegate>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.runtimegate span{min-width:0}.runtimegate a{color:var(--ink);font-weight:600;text-decoration:none}.runtimegate a:hover{color:var(--ink-2)}.review{--review-fieldset-height:440px;padding:0 0 42px}.reviewsection{margin-bottom:20px}.reviewsection h3{margin:0 0 9px;font-size:var(--fs-lg)}.reviewlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px;align-items:start}/* 判定状态用左侧色条表达:整卡描边在一列里扫过去时反而认不出来 */.reviewitem{position:relative;display:flex;flex-direction:column;box-sizing:border-box;height:var(--review-fieldset-height);margin:0;padding:0;min-width:0;overflow:hidden;background:var(--ground);border:1px solid var(--field-ring);border-radius:var(--floating-radius)}.reviewitem::before{content:'';position:absolute;z-index:3;left:0;top:0;bottom:0;width:3px;background:transparent}.reviewitem[data-decision="approved"]::before{background:var(--keep)}.reviewitem[data-decision="rejected"]::before{background:var(--drop)}.reviewitem[data-decision="skipped"]::before{background:var(--muted)}.reviewitem[data-decision="rejected"],.reviewitem[data-decision="skipped"]{opacity:.6}.reviewitem h4{margin:0 0 6px;font-size:var(--fs-lg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reviewitem p{margin:4px 0;color:var(--muted);font-size:var(--fs-xs);line-height:1.55;overflow-wrap:anywhere}.reviewitem>.geist-fieldset-content{flex:1;min-height:0;padding:20px}.reviewcontent{height:100%}-.reviewitem .reviewactions{flex:0 0 auto;box-sizing:border-box;min-height:56px;margin:0;padding:12px 12px 12px 20px;background:var(--overlay-5);border-top:1px solid var(--line-soft);border-radius:0 0 var(--floating-radius) var(--floating-radius);display:flex;gap:8px}+.reviewitem .reviewactions{flex:0 0 auto;box-sizing:border-box;min-height:56px;margin:0;padding:12px 12px 12px 20px;background:var(--overlay-5);border-top:1px solid var(--line-soft);border-radius:0 0 var(--floating-radius) var(--floating-radius);display:flex;gap:8px;justify-content:flex-end}+/* 没抽帧、没取到图的那两种卡,中间用空状态铺满而不是留一行小字:一行字挂在+ 半屏留白上方,读起来像界面坏了,而这两种情况都是有原因、说得清的。 */+.reviewcontent .geist-scroller-container:has(>.reviewempty){display:flex;flex-direction:column;min-height:100%}+/* 两个类一起写:.emptystate 的 320px 下限排在这条之后,单类选择器压不过它,+ 空状态会撑到 320px 把卡里其余内容顶出可视区。 */+.emptystate.reviewempty{flex:1 1 auto;min-height:120px;margin:10px 0 0;padding:16px 14px;border:0;+ border-radius:var(--control-radius);background:var(--inset)}+.emptystate.reviewempty .es-icon{width:40px;height:40px;margin-bottom:2px}+.emptystate.reviewempty .es-icon svg{width:22px;height:22px}+.emptystate.reviewempty h3{font-size:var(--fs-sm)}+.emptystate.reviewempty p{max-width:30ch;font-size:var(--fs-xs)}.reviewtags{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.reviewtags span{padding:3px 9px;border:1px solid var(--border-15);border-radius:var(--pill-radius);font-size:var(--fs-xs);color:var(--ink-2)}/* 唯一候选:纯展示,几何对齐 .revieworigin,不画单选圈。radio 仍在 DOM 里,提交路径读的就是它;只是没什么可选的时候不该让人以为还有别的选项。 */@@ -27,12 +38,26 @@.metadatacandidates{display:grid;gap:7px;margin:10px 0}.metadatacandidate{display:flex;align-items:flex-start;gap:9px;padding:9px 10px;border:1px solid var(--border-10);border-radius:var(--surface-radius);background:var(--overlay-5);cursor:pointer}.metadatacandidate:has(input:checked){border-color:var(--ink-2);background:var(--hover)}.metadatacandidate input{margin-top:3px;accent-color:var(--ink)}.metadatacandidate>span{display:grid;gap:3px;min-width:0}.metadatacandidate b{font-size:var(--fs-xs);color:var(--ink)}.metadatacandidate span span{font-size:var(--fs-sm);line-height:1.45;overflow-wrap:anywhere}.metadatacandidate i{font-size:var(--fs-xs);line-height:1.4;color:var(--meter);font-style:normal}.metadataevidence{display:grid;gap:4px;margin:6px 0 0;padding:7px 0 0;border-top:1px solid var(--border-10);font-size:var(--fs-xs)}.metadataevidence>div{display:grid;grid-template-columns:68px minmax(0,1fr);gap:3px 8px;min-width:0}.metadataevidence dt{color:var(--muted)}.metadataevidence dd{min-width:0;margin:0;color:var(--ink-2);overflow-wrap:anywhere}.metadataevidence small{grid-column:2;color:var(--meter);line-height:1.4}/* 资产选择用换行网格而不是横向滚动条:一个创作者可能有几十条候选,横拉看不完 */-.reviewpick{margin:10px 0 4px;border:1px solid var(--border-10);border-radius:var(--surface-radius);background:var(--overlay-5);padding:8px}.reviewpickhead{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:var(--fs-xs);color:var(--muted)}.reviewpickhead button{border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:3px 10px;font-size:var(--fs-xs);cursor:pointer}.reviewpickhead button:hover{background:var(--hover);color:var(--ink)}.reviewpickhead [data-picked-count]{margin-right:auto}.reviewasset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:6px}.reviewasset{position:relative;aspect-ratio:16/10;border:0;padding:0;border-radius:var(--surface-radius);overflow:hidden;background:#000;cursor:pointer;opacity:.5;transition:opacity .12s ease}.reviewasset img{width:100%;height:100%;object-fit:cover;display:block}.reviewasset .pickmark{position:absolute;top:4px;right:4px;width:19px;height:19px;border-radius:50%;display:none;place-items:center;background:var(--ink);color:var(--ground)}.reviewasset .pickmark svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:3}.reviewasset.picked{opacity:1;outline:2px solid var(--ink);outline-offset:-2px}.reviewasset.picked .pickmark{display:grid}.reviewactions{display:flex;gap:7px;margin-top:12px;align-items:center;flex-wrap:wrap}+.reviewpick{margin:10px 0 4px;border:1px solid var(--border-10);border-radius:var(--surface-radius);background:var(--overlay-5);padding:8px}.reviewpickhead{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:var(--fs-xs);color:var(--muted)}.reviewpickhead button{border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:3px 10px;font-size:var(--fs-xs);cursor:pointer}.reviewpickhead button:hover{background:var(--hover);color:var(--ink)}.reviewpickhead [data-picked-count]{margin-right:auto}.reviewasset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:6px}.reviewasset{position:relative;aspect-ratio:16/10;border:0;padding:0;border-radius:var(--surface-radius);overflow:hidden;background:#000;cursor:pointer;opacity:.5;transition:opacity .12s ease}.reviewasset img{width:100%;height:100%;object-fit:cover;display:block}.reviewasset .pickmark{position:absolute;top:4px;right:4px;width:19px;height:19px;border-radius:50%;display:none;place-items:center;background:var(--ink);color:var(--ground)}.reviewasset .pickmark svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:3}.reviewasset.picked{opacity:1;outline:2px solid var(--ink);outline-offset:-2px}.reviewasset.picked .pickmark{display:grid}.reviewactions{display:flex;gap:7px;margin-top:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}/* 判定失败必须说出来:原来失败是静默的,按钮还卡在 disabled。 */.reviewstate{font-size:var(--fs-xs);color:var(--drop);min-width:0;flex:1 1 100%}.reviewstate:empty{display:none}.reviewalias{margin:2px 0 0;font-size:var(--fs-xs);color:var(--muted)}-.reviewactions button{box-sizing:border-box;height:32px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:0 12px;font-size:var(--fs-sm);cursor:pointer}.reviewactions button:hover{background:var(--hover);color:var(--ink)}.reviewactions .approve{background:var(--ink);border-color:var(--ink);color:var(--ground);font-weight:600}.reviewactions .approve:hover{background:color-mix(in srgb,var(--ink) 88%,var(--ground));border-color:color-mix(in srgb,var(--ink) 88%,var(--ground));color:var(--ground)}.reviewactions .skip{color:var(--meter)}.reviewactions .skip:hover{background:var(--meter);border-color:var(--meter);color:#fff}.reviewactions .reject{color:var(--drop)}.reviewactions .reject:hover{background:var(--drop);border-color:var(--drop);color:#fff}+/* 三枚判定键都不描边,各自直接把颜色填满:通过是墨色实底,跳过是琥珀实底,拒绝是红实底。+ 字重三枚同为 500——Geist 的四个变体全是 500,主动作靠填充与位置分出主次,不靠加粗+ (实测见 vercel-geist-semantics-measured.md)。加粗的那一枚在同一行里既比邻居重、+ 字形又比邻居宽,读起来像另一个字号。 */+.reviewactions button{box-sizing:border-box;height:32px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:0 12px;font-size:var(--fs-sm);font-weight:500;cursor:pointer}+.reviewactions button:hover:not(:disabled){background:var(--hover);color:var(--ink)}+.reviewactions .approve{background:var(--ink);color:var(--ground)}+.reviewactions .approve:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 88%,var(--ground));color:var(--ground)}+/* 琥珀档的字色跟着主题翻面,不写死。`--meter` 浅色一档是 #B26A10、深色一档是 #E0912F:+ 同一句白字压在深琥珀上站得住,压在亮琥珀上就糊了。`--ground` 恰好在两档各取一端。 */+.reviewactions .skip{background:var(--meter);color:var(--ground)}+.reviewactions .skip:hover:not(:disabled){background:color-mix(in srgb,var(--meter) 82%,#000);color:var(--ground)}+.reviewactions .reject{background:var(--drop);color:#fff}+.reviewactions .reject:hover:not(:disabled){background:color-mix(in srgb,var(--drop) 82%,#000);color:#fff}+.reviewactions button:disabled{background:var(--sunk);color:var(--muted);cursor:default}/* 数据管理整页收进一条窄列(vercel.com/geist/fieldset 实测示例块宽 812px),fieldset 一行一个,不再拼三列。 */.cleanuppage{width:min(812px,100%);margin:0 auto}@@ -63,16 +88,18 @@/* 操作条上的按钮一律填 --ground:条子是 --page,按钮要比条子亮才分得出来,与 .geist-button 的次级档同一套。hover 只提亮底色、描边和文字,不出蓝色。- 危险按钮 hover 一律填 --drop、白字:只描红边、红字的话,静止态和悬停态在暗色底上- 几乎一样亮,按下去之前看不出这是不可逆动作。Geist 的 error Button 同样是实心红填充- (oklch(.5801 .227 25.12) 底、白字),只是它在静止态就红,Peach 把红留到悬停。 */-.cleanupfieldset button{box-sizing:border-box;flex:none;min-height:32px;padding:0 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);+ 危险按钮静止态就是 --drop 实底加白字,配方在 `01-base.css` 的 `button.danger`,+ 全站一份。次级不描边,与 `.geist-button` 同一条:它自己是一块比操作条亮一档的面。 */+/* 排除下拉触发器要用 `:where(:not(…))`,不能直接写 `:not(…)`。采集来源那张卡的下拉触发器+ 正好是 `.cleanupfieldset` 里的一个 button,这条不排除它就把 `.gselectfield` 那圈线也去了+ ——按钮不描边,输入类控件仍旧描边。而裸 `:not()` 会把这条抬到 0,2,1,反过来压过+ `.geist-button.primary`(0,2,0),同一张卡上的主动作于是丢掉实底变成一行字;+ `:where()` 权重恒为零,排除生效、层级不动。 */+.cleanupfieldset button:where(:not(.gselectfield)){box-sizing:border-box;flex:none;min-height:32px;padding:0 12px;border:0;border-radius:var(--control-radius);background:var(--ground);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;- transition:border-color .15s ease-in-out,color .15s ease-in-out,background-color .15s ease-in-out}-.cleanupfieldset button:hover{background:var(--surface);color:var(--ink)}-.cleanupfieldset button.danger{color:var(--drop)}-.cleanupfieldset button.danger:hover{background:var(--drop);border-color:var(--drop);color:#fff}-.cleanupfieldset button svg{width:16px;height:16px;stroke:currentColor;fill:none}+ transition:color .15s ease-in-out,background-color .15s ease-in-out}+.cleanupfieldset button:where(:not(.gselectfield)):hover{background:var(--surface);color:var(--ink)}+.cleanupfieldset button:where(:not(.gselectfield)) svg{width:16px;height:16px;stroke:currentColor;fill:none}.cleanupfieldset .cleanupstate{margin-top:8px;font-size:var(--fs-sm);color:var(--ink-2)}.cleanupfieldset .cleanupstate:empty{display:none}.taste-history-guide{margin-top:16px;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground);padding:20px}@@ -100,8 +127,11 @@.scraping-fields{padding:20px;display:grid;gap:16px;min-width:0}.scraping-fields label,.scraping-label{display:grid;gap:8px;min-width:0}.scraping-fields input:not([type=radio]):not([type=file]){width:100%;min-width:0;min-height:var(--control-h);box-sizing:border-box}-.scraping-fields .scraping-url{text-decoration:none;color:var(--muted);overflow-wrap:anywhere;margin-top:-12px;font-size:var(--fs-md)}-.scraping-fields .scraping-url:hover{color:var(--ink);text-decoration:none}+.scraping-fields .scraping-url{display:inline-flex;align-items:center;gap:6px;align-self:start;min-width:0;text-decoration:none;color:var(--muted);overflow-wrap:anywhere;margin-top:-12px;font-size:var(--fs-md)}+.scraping-fields .scraping-url:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}+.scraping-fields .scraping-url img{flex:none;width:16px;height:16px;border-radius:var(--badge-radius);object-fit:contain}+.scraping-fields .scraping-url svg{flex:none;width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}+.scraping-fields .scraping-url>span{min-width:0;overflow-wrap:anywhere}.scraping-network,.scraping-network .gselect{width:100%;min-width:0}.scraping-fields .gselectfield{justify-content:space-between;padding-right:16px;border-color:var(--field-ring)}.scraping-fields .gselectmenu button{border:0;justify-content:flex-start;padding:0 8px;background:transparent}@@ -110,7 +140,11 @@.scraping-cookie-method label{display:block}.scraping-cookie-method input:checked+span{font-weight:400}.scraping-file-control{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:var(--control-h)}-.scraping-file-control>.geist-button{flex:none;height:var(--control-h)}+/* 这颗假按钮站在 --ground 的卡面上,而次级档填的也是 --ground:去掉边框之后它和卡面+ 同色,就只剩「选择文件」四个字。操作条上的次级不用管(条子是 --overlay-5,比它暗一档),+ 站在卡面上的这一颗要自己沉下去一档才有边界。 */+.scraping-file-control>.geist-button{flex:none;height:var(--control-h);background:var(--sunk)}+.scraping-file-control>.geist-button:hover{background:var(--hover)}.scraping-file-name{min-width:0;overflow-wrap:anywhere;color:var(--muted)}.scraping-file-control>input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.scraping-file-control:focus-within{outline:2px solid var(--tungsten);outline-offset:2px;border-radius:var(--control-radius)}diff --git a/web/css/05-insights.css b/web/css/05-insights.cssindex cd6c9e8c4..0ec04b0b0 100644--- a/web/css/05-insights.css+++ b/web/css/05-insights.css@@ -2,15 +2,16 @@.insightpage,.tastepage{width:min(1100px,100%);margin:0 auto;padding:0 0 48px;min-width:0}.statsdashboard{display:grid;gap:16px}.insighttoolbar,.tastehead{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap}.insighttoolbar p{margin:0;color:var(--muted);font-size:var(--fs-xs)}-.tasteactions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}.tasteactions .gselectfield,.tasteactions button{height:36px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:var(--surface);color:var(--ink);padding:0 11px;font:inherit;font-size:var(--fs-sm)}-.tasteactions button{display:inline-flex;align-items:center;gap:7px;cursor:pointer}.tasteactions button:hover{background:var(--hover);color:var(--ink)}.tasteactions button:disabled{opacity:.5;cursor:wait}.tasteactions svg{width:16px;height:16px;stroke:currentColor;fill:none}-.insightswitch{display:inline-flex;padding:3px;border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--surface)}.insightswitch label{cursor:pointer}.insightswitch input{position:absolute;opacity:0;pointer-events:none}.insightswitch span{height:30px;display:grid;place-items:center;padding:0 12px;border-radius:var(--control-radius);color:var(--muted);font-size:var(--fs-sm)}.insightswitch input:checked+span{background:var(--picked);color:var(--ink);font-weight:600}.insightswitch input:focus-visible+span{outline:2px solid var(--tungsten);outline-offset:-2px}+.tasteactions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}.tasteactions>.gselect>.gselectfield,.tasteactions>button{height:36px;border-radius:var(--control-radius);background:var(--ground);color:var(--ink);padding:0 11px;font:inherit;font-size:var(--fs-sm)}+.tasteactions>.gselect>.gselectfield{border:1px solid var(--field-ring)}.tasteactions>button{border:0}+.tasteactions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.tasteactions>button:hover{background:var(--inset);color:var(--ink)}.tasteactions>button:disabled{opacity:.5;cursor:wait}.tasteactions>button svg{width:16px;height:16px;stroke:currentColor;fill:none}+.insightswitch{display:inline-flex;padding:3px;border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--ground)}.insightswitch label{cursor:pointer}.insightswitch input{position:absolute;opacity:0;pointer-events:none}.insightswitch span{height:30px;display:grid;place-items:center;padding:0 12px;border-radius:var(--control-radius);color:var(--muted);font-size:var(--fs-sm)}.insightswitch input:checked+span{background:var(--picked);color:var(--ink);font-weight:500}.insightswitch input:focus-visible+span{outline:2px solid var(--tungsten);outline-offset:-2px}/* 下限按内容实测取:一格里最宽的是 24px 的数字和那行 12px 的补充说明,加左右各 16px 内边距是 140px。四格因此到 645px 视口仍是一整条,再窄由下面的手机规则接手改成露边滚动。写 190px 时窗口一收窄就先滚起来,横向滚动条压在一条本来能压扁的带子下面。 */-.metricstrip,.tastesummaries{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(140px,1fr);overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--surface)}-.metricstrip button,.tastesummary{position:relative;box-sizing:border-box;min-height:96px;min-width:0;display:grid;align-content:center;gap:4px;padding:14px 16px;border:0;border-right:1px solid var(--line-soft);border-radius:0;background:transparent;color:var(--ink);text-align:left}.metricstrip button{cursor:pointer}.metricstrip button:last-child,.tastesummary:last-child{border-right:0}.metricstrip button:hover{background:var(--overlay-5)}.metricstrip button[aria-selected="true"]{background:var(--ground)}.metricstrip button[aria-selected="true"]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--ink)}+.metricstrip,.tastesummaries{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(140px,1fr);overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground)}+.metricstrip button,.tastesummary{position:relative;box-sizing:border-box;min-height:96px;min-width:0;display:grid;align-content:center;gap:4px;padding:14px 16px;border:0;border-right:1px solid var(--line-soft);border-radius:0;background:transparent;color:var(--ink);text-align:left}.metricstrip button{cursor:pointer}.metricstrip button:last-child,.tastesummary:last-child{border-right:0}.metricstrip button:hover{background:var(--overlay-5)}.metricstrip button[aria-selected="true"]{background:var(--picked)}.metricstrip button[aria-selected="true"]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--ink)}.metricstrip span,.tastesummary>span{color:var(--muted);font-size:var(--fs-xs)}.metricstrip b,.tastesummary>b{font-size:var(--fs-2xl);line-height:1.15;font-variant-numeric:tabular-nums}.metricstrip small,.tastesummary>small{color:var(--ink-2);font-size:var(--fs-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tastestate{min-height:20px;color:var(--meter);font-size:var(--fs-xs);margin:8px 0}.tastesummaries{margin-bottom:16px}.insightdetail,.tastehero{overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground)}.insightdetailbody,.tastehero{min-height:330px;display:grid;grid-template-columns:minmax(260px,36%) minmax(0,1fr)}@@ -32,7 +33,16 @@.tastecovermetric{display:grid;gap:7px;padding:14px 0}.tastecovermetric+.tastecovermetric{border-top:1px solid var(--line-soft)}.tastecovermetric>span,.tastecovermetric>small{color:var(--muted);font-size:var(--fs-xs)}.tastecovermetric>b{font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.tastehero{margin-bottom:16px}.tasteanalysis{margin-bottom:16px}.tasteranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tasteranks-tags{grid-template-columns:repeat(4,minmax(0,1fr))}.tasterank{width:100%;min-width:0;min-height:58px;box-sizing:border-box;display:grid;grid-template-columns:32px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5);color:var(--ink);text-align:left}.tasterank-tag{min-height:54px;padding:8px 10px}.tasterank-visual{grid-template-columns:32px 30px minmax(0,1fr) 18px}.tasterank:is(button){cursor:pointer}.tasterank:is(button):hover{border-color:var(--border-15);background:var(--hover)}.tasterank:is(button):focus-visible{position:relative;z-index:1;outline:2px solid var(--tungsten);outline-offset:-2px}.tasterank>span:nth-last-child(2){min-width:0}.tasterank b,.tasterank small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tasterank small{margin-top:2px;color:var(--muted);font-size:var(--fs-xs);font-weight:400}.tasterank>svg{justify-self:end;width:16px;height:16px;stroke:currentColor;fill:none}.tastepos{width:100%;text-align:center;color:var(--muted);font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.tasteavatar{position:relative;width:30px;height:30px;overflow:hidden;border-radius:50%;background:var(--overlay-5);display:grid;place-items:center;color:var(--muted);font-size:var(--fs-xs);font-weight:600}.tasteavatar .ini{position:absolute;inset:0;display:grid;place-items:center}.tasteavatar img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}.tasteavatar.tastesite{border-radius:var(--surface-radius)}.tasteavatar.tastesite img{inset:5px;width:20px;height:20px;object-fit:contain}.tastesources{margin-top:16px}.tastesources>header{min-height:0;padding-block:14px}.tastesources .insightpanelbody{padding:16px}.tastesources .insightpanelbody>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tastesource{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5)}.tastebrowser{width:32px;height:32px;border-radius:var(--control-radius);background:var(--overlay-5);display:grid;place-items:center;color:var(--ink-2)}.tastebrowser svg,.tastesource>button svg{width:17px;height:17px;stroke:currentColor;fill:none}.tastesource b,.tastesource small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tastesource small{color:var(--muted);font-size:var(--fs-xs);margin-top:2px}.tastesource>button{width:32px;height:32px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}.tastesource>button:hover{background:var(--hover);color:var(--drop)}-.tasteleads{margin-bottom:16px}.tasteleads>header{gap:16px}.tasteleads>header>div{min-width:0}.tasteconfidence{flex:none;margin-left:auto;padding:3px 8px;border:1px solid var(--line-soft);border-radius:var(--badge-radius);color:var(--muted);font-size:var(--fs-xs)}.tasteinsights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.tasteinsight{min-width:0;display:grid;gap:3px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5)}.tasteinsight>span{color:var(--muted);font-size:var(--fs-xs)}.tasteinsight>b{font-size:var(--fs-sm);font-weight:500;overflow-wrap:anywhere}.tasteleadlist{display:grid;gap:8px}.tastelead{width:100%;min-width:0;box-sizing:border-box;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5);color:var(--ink);text-align:left;cursor:pointer}.tastelead:hover{border-color:var(--border-15);background:var(--hover)}.tastelead:focus-visible{position:relative;z-index:1;outline:2px solid var(--tungsten);outline-offset:-2px}.tastelead>span{min-width:0}.tastelead b,.tastelead small{display:block}.tastelead b{font-weight:500}.tastelead small{margin-top:3px;color:var(--muted);font-size:var(--fs-xs);line-height:1.4}.tastelead>svg{justify-self:end;width:16px;height:16px;stroke:currentColor;fill:none}+.tasteleads{margin-bottom:16px}+/* 可信度自成一行。原先它靠 margin-left:auto 顶在右上角,标题与那句摘要就得压在+ 52px 的一行里跟它对齐,两行字挤在一起没有呼吸;它本来也不是标题的同级信息,+ 是对上面那句话的限定。前面那颗点按档次上色,字本身留在 --muted。 */+.tasteleads>header{display:block;padding-top:14px;padding-bottom:14px}+.tasteleads>header>div{min-width:0;display:grid;gap:6px}+.tasteconfidence{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:var(--fs-xs)}+.tasteconfidence>i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--muted)}+.tasteconfidence.medium>i{background:var(--meter)}+.tasteconfidence.high>i{background:var(--keep)}.tasteinsights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.tasteinsight{min-width:0;display:grid;gap:3px;padding:10px 12px;border:0;border-radius:var(--control-radius);background:var(--inset)}.tasteinsight>span{color:var(--muted);font-size:var(--fs-xs)}.tasteinsight>b{font-size:var(--fs-sm);font-weight:500;overflow-wrap:anywhere}.tasteleadlist{display:grid;gap:8px}.tastelead{width:100%;min-width:0;box-sizing:border-box;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:10px;padding:9px 12px;border:0;border-radius:var(--control-radius);background:var(--inset);color:var(--ink);text-align:left;cursor:pointer}.tastelead:hover{background:color-mix(in srgb,var(--inset) 94%,var(--ink))}.tastelead:focus-visible{position:relative;z-index:1;outline:2px solid var(--tungsten);outline-offset:-2px}.tastelead>span{min-width:0}.tastelead b,.tastelead small{display:block}.tastelead b{font-weight:500}.tastelead small{margin-top:3px;color:var(--muted);font-size:var(--fs-xs);line-height:1.4}.tastelead>svg{justify-self:end;width:16px;height:16px;stroke:currentColor;fill:none}@media(max-width:900px){.insightdetailbody,.tastehero{grid-template-columns:minmax(220px,40%) minmax(0,1fr)}.tasteranks{grid-template-columns:repeat(2,minmax(0,1fr))}.tasteinsights{grid-template-columns:repeat(2,minmax(0,1fr))}.tasteranks-tags{grid-template-columns:repeat(3,minmax(0,1fr))}.tastesources .insightpanelbody>div{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.insighttoolbar,.tastehead{align-items:stretch}.tasteactions{display:grid;grid-template-columns:1fr 1fr;width:100%;margin-left:0}.tasteactions .gselect{grid-column:1/-1}.tasteactions button{justify-content:center}.insightswitch{align-self:flex-start}.metricstrip,.tastesummaries{grid-auto-columns:minmax(168px,82%)}.insightdetailbody,.tastehero{min-height:0;grid-template-columns:minmax(0,1fr)}.insightcopy{border-right:0;border-bottom:1px solid var(--line-soft);padding:22px 18px}.insightcopy h2{font-size:var(--fs-3xl)}.insightcopy p{max-width:none;margin-top:18px}.insightvisual,.insightfacts,.tastebars{padding:18px}.insightpanel>header{padding:0 14px}.insightpanelbody{padding:12px}.insighttablehead,.insighttablerow{grid-template-columns:minmax(0,1fr);gap:3px}.insighttablehead span:last-child{display:none}.insighttablerow b{text-align:left;font-size:var(--fs-xs)}.tasteranks,.tasteranks-tags,.tasteinsights,.tastesources .insightpanelbody>div{grid-template-columns:minmax(0,1fr)}.tastesummary>b{font-size:var(--fs-xl)}.tastesource{grid-template-columns:32px minmax(0,1fr) 32px}}@media(max-width:640px){.insightranking{grid-template-columns:minmax(0,1fr)}.insightstorage{padding:0}}diff --git a/web/css/09-skeleton.css b/web/css/09-skeleton.cssindex 140aafbec..45ace5703 100644--- a/web/css/09-skeleton.css+++ b/web/css/09-skeleton.css@@ -63,6 +63,20 @@.cleanup-skeleton .skeletoncard b{width:26%;height:16px;margin:12px 20px 20px}.cleanup-skeleton .skeletoncard em{width:100%;height:var(--fieldset-bar-h);margin:0;border-radius:0;border-top:1px solid var(--border-10);background:var(--overlay-5)}+/* 人工复核是一排分类 tab 加一格一格等高的 Fieldset:列宽取 .reviewlist 的+ minmax(360px,1fr),卡高取 .reviewitem 的 --review-fieldset-height,底部那条是+ 判定操作条的位置。tab 那一条画在网格前面,宽度按七枚分类估。+ 框体(操作条)不参与微光,它不是待填的内容。 */+.review-skeleton>div{grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px;align-items:start}+.review-skeleton>div::before{content:'';grid-column:1/-1;width:min(100%,760px);height:32px;+ border-radius:var(--control-radius);background:var(--hover)}+.review-skeleton .skeletoncard{gap:0;box-sizing:border-box;height:var(--review-fieldset-height);+ grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid var(--field-ring);+ border-radius:var(--floating-radius);background:var(--ground)}+.review-skeleton .skeletoncard i{aspect-ratio:auto;width:56%;height:22px;margin:20px 20px 0}+.review-skeleton .skeletoncard b{width:auto;height:auto;margin:16px 20px 20px}+.review-skeleton .skeletoncard em{width:100%;height:56px;margin:0;border-radius:0;+ border-top:1px solid var(--line-soft);background:var(--overlay-5)}/* 关注管理是一列三块(添加关注、关注列表、凭据)的行政界面:骨架照 .fsec 的轮廓画,一块对一块、宽度跟着 .followmanage 一起限到 812px。头部条是框体不是待填内容,跟 .fsechead 同高同底色,不参与微光。 */@@ -134,6 +148,7 @@ body.refreshing #tiers .brandpill::after{content:'';position:absolute;inset:0;rianimation:skeleton-sweep 1.5s ease-in-out infinite reverse}/* 框体不是待填的内容,本来就不参与呼吸,也不参与微光。 */.cleanup-skeleton .skeletoncard em::after,+.review-skeleton .skeletoncard em::after,.followmanage-skeleton .skeletoncard i::after{content:none}/* 计数骨架的宽高定死:跟着真实文本走的话,数字回来那一刻整行会横向弹一下。diff --git a/web/css/11-identity.css b/web/css/11-identity.cssindex 4f19ccf7f..7f5780c8b 100644--- a/web/css/11-identity.css+++ b/web/css/11-identity.css@@ -57,7 +57,6 @@ button.serieslink.entitylink:hover{color:var(--tungsten);text-decoration:none}border:1px solid var(--border-15);background:var(--surface);color:var(--ink);cursor:pointer;font-size:var(--fs-sm);line-height:1}.dupactions button:hover,.dupbtns button:hover{background:var(--hover);color:var(--ink)}-.dupbtns button.danger{color:var(--drop)}.dupbtns button.danger:hover{background:var(--drop);border-color:var(--drop);color:#fff}.dupactions button:disabled,.dupbtns button:disabled{opacity:.5;cursor:wait}.dupgroup{border:1px solid var(--overlay-10);border-radius:var(--surface-radius);margin-bottom:12px;overflow:hidden}.duphead{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--overlay-5);flex-wrap:wrap}diff --git a/web/css/12-cards.css b/web/css/12-cards.cssindex 1edaee7d2..4f45fbb1a 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:16px;padding:8px 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:1px solid var(--line-soft);border-radius:var(--control-radius);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,border-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:var(--surface);color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{background:var(--sunk);border-color:var(--line-soft);color:var(--muted);cursor:default}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#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-template-columns:repeat(3,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)}/* 这里是一排读数,不是又一个盒子。原先它自带填色和分格线,和下面的操作条同色,+.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:16px;padding:8px 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);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:var(--surface);color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{background:var(--sunk);color:var(--muted);cursor:default}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#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-template-columns:repeat(3,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)}.resourcedanger{color:var(--drop)}.resourcedanger:hover:not(:disabled){background:var(--drop);border-color:var(--drop);color:#fff}.resourcesyncok{margin:0;color:var(--success)}+.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)}.tagbar,.count,.entitytagbar,.entitycollectionhead{transition:background-color .16s ease,border-color .16s ease}/* 吸顶那条是底色的半透明版,配方跟着 --ground 走:写死深色底会在浅色主题下变成一条黑带压在白底内容上。 */@@ -216,8 +216,12 @@ img.hvframes{position:absolute;inset:0;width:100%;height:100%;object-fit:contain.reviewtabs,.junkfilters{display:flex;align-items:center;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none}.reviewtabs::-webkit-scrollbar,.junkfilters::-webkit-scrollbar{display:none}.reviewtabs{margin-bottom:16px}+/* 一枚也不描边。给每一枚都画一圈线之后,一排读起来是七个一模一样的框,选中那一枚+ 靠的是比页面底亮 2% 的填充——线比填充响得多,于是「选中」在浅色一档上根本看不出来。+ Geist Tabs secondary 两态都没有 border,选中只有 `aria-selected:bg-gray-200` 一件事+ (vercel-geist-semantics-measured.md「选中态与它的悬停」)。 */.reviewtabs button,.junkfilters a{box-sizing:border-box;height:32px;padding:0 12px;flex:none;- display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border-15);+ display:inline-flex;align-items:center;gap:6px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--muted);text-decoration:none;font:inherit;font-size:var(--fs-sm);font-weight:400;white-space:nowrap;cursor:pointer}@@ -243,19 +247,18 @@ button.junkcardtitle{cursor:pointer}button.junkcardtitle:hover{color:var(--ink-2button.junkcardtitle:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px;border-radius:var(--control-radius)}.junkactions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:auto;padding:10px 12px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}-/* 三个按钮等宽,内容却各自居中:标签 4/4/5 字长短不齐,三个图标就横向参差。- 靠左起排后,图标到各自左边框是同一段距离,落在一条竖线上。 */-.junkactions button{box-sizing:border-box;min-width:0;min-height:36px;padding:0 10px;display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;- border:1px solid var(--border-15);border-radius:var(--control-radius);background:var(--surface);color:var(--ink-2);+/* 三个按钮等宽,图标加标签在各自那一格里居中。 */+.junkactions button{box-sizing:border-box;min-width:0;min-height:36px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;+ border:0;border-radius:var(--control-radius);background:var(--ground);color:var(--ink-2);font:inherit;font-size:var(--fs-xs);white-space:nowrap;cursor:pointer}-.junkactions button:hover:not(:disabled){background:var(--hover);color:var(--ink)}+.junkactions button:hover:not(:disabled){background:var(--inset);color:var(--ink)}.junkactions button:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.junkactions button:disabled{cursor:wait;opacity:.64}.junkactions button svg{width:15px;height:15px;flex:none;stroke:currentColor;fill:none;stroke-width:2}-.junkactions .junktrash{color:var(--drop)}.junkactions .junktrash:hover:not(:disabled){background:var(--drop);border-color:var(--drop);color:#fff}+.junkactions .junktrash{background:var(--drop);color:#fff}+.junkactions .junktrash:hover:not(:disabled){background:color-mix(in srgb,var(--drop) 82%,#000);color:#fff}.junkstate{grid-column:1/-1;color:var(--drop);font-size:var(--fs-xs)}.junkstate:empty{display:none}-/* 紧凑密度下只剩图标,靠左会在按钮右侧留出一片空白,此时回到居中。 */+/* 紧凑密度下只剩图标。 */body[data-density="dense"] .junkcard .junkactions button span{display:none}-body[data-density="dense"] .junkcard .junkactions button{justify-content:center}.badge{position:absolute;top:6px;left:6px;display:flex;gap:4px;z-index:2;align-items:center;transition:opacity .15s ease}/* 首页流和详情只留来源图标;完整来源与费用通过 title/aria-label 提供。 */diff --git a/web/css/19-immersive.css b/web/css/19-immersive.cssindex 40d8b23ae..25d0c0291 100644--- a/web/css/19-immersive.css+++ b/web/css/19-immersive.css@@ -87,7 +87,6 @@.batchbar span{padding:0 8px;color:var(--ink-2);white-space:nowrap}.batchbar button{border:1px solid var(--line);border-radius:var(--floating-radius);background:var(--surface);color:var(--ink);padding:9px 12px;cursor:pointer}.batchbar button:hover{background:var(--hover);color:var(--ink)}.batchbar button svg{width:17px;height:17px;margin-right:6px;vertical-align:-4px;stroke:currentColor;fill:none;stroke-width:2}-.batchbar .danger{color:var(--drop)}@media (max-width:1080px){.sgrid,.sgrid.mixgrid{grid-template-columns:minmax(0,1fr)}.sgrid.mixgrid{grid-template-areas:"media" "side" "queue"}@@ -188,7 +187,7 @@.npbtn{position:relative}.npbtn::after{content:"";position:absolute;top:50%;left:50%;width:44px;height:44px;transform:translate(-50%,-50%)}- .npmenu button,.gselectmenu button{min-height:44px}+ .npmenu button,.popmenu.gselectmenu button{min-height:44px}.entityhero .alias{margin-bottom:10px}.entityhero .entitylinks{justify-content:center;margin-top:13px}.stats h2{font-size:var(--fs-xl)}.stats .insightcopy h2{font-size:var(--fs-3xl)}diff --git a/web/css/22-followmanage.css b/web/css/22-followmanage.cssindex a22bee09d..4b31cecee 100644--- a/web/css/22-followmanage.css+++ b/web/css/22-followmanage.css@@ -125,13 +125,19 @@.fcstate.none,.fcstate.blocked{color:var(--muted)}.fbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;- box-sizing:border-box;padding:0 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);+ box-sizing:border-box;padding:0 12px;border:0;border-radius:var(--control-radius);background:var(--ground);color:var(--ink);font-size:var(--fs-md);font-weight:500;font-family:inherit;cursor:pointer;- white-space:nowrap;transition:border-color .15s ease-in-out,color .15s ease-in-out,background-color .15s ease-in-out}+ white-space:nowrap;transition:color .15s ease-in-out,background-color .15s ease-in-out}.fbtn:hover:not(:disabled){background:var(--surface)}-.fbtn:disabled{background:var(--sunk);border-color:var(--line-soft);color:var(--muted);cursor:default}-.fbtn.primary{background:var(--ink);border-color:var(--ink);color:var(--ground);font-weight:500}+.fbtn:disabled{background:var(--sunk);color:var(--muted);cursor:default}+.fbtn.primary{background:var(--ink);color:var(--ground);font-weight:500}.fbtn.primary:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 88%,var(--ground));border-color:color-mix(in srgb,var(--ink) 88%,var(--ground));color:var(--ground)}+/* 去边框那一条只针对动作按钮。这两枚不是动作:一枚点开是来源筛选菜单,一枚是排序+ 方向的开关,它们跟旁边的下拉触发器是同一组控件,共用输入框那圈线。少了线,+ 「全部来源」在白面上只剩一行字,升降序那枚只剩一个箭头浮在页面上。 */+.fbtn[data-srcfilter-toggle],.fbtn.fmanagedir{border:1px solid var(--field-ring);background:var(--ground);color:var(--ink-2)}+.fbtn[data-srcfilter-toggle]:hover:not(:disabled),.fbtn.fmanagedir:hover:not(:disabled){border-color:var(--field-ring-hover);background:var(--ground)}+.fbtn[data-srcfilter-toggle][aria-expanded="true"]{border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)}.fbtn.small{height:26px;padding:0 10px;font-size:var(--fs-sm)}.fbtn.fquiet{border-color:transparent;color:var(--muted)}.fbtn.fquiet:hover{background:var(--drop);border-color:var(--drop);color:#fff}@@ -284,17 +290,18 @@ details.fcred{display:block}font-family:inherit;transition:border-color .12s ease}.fcredfield input:focus-visible{outline:2px solid var(--tungsten);outline-offset:1px;border-color:var(--tungsten)}+/* 「去取」指向站外的凭据页,后缀那枚外链箭头说明这一下会离开 Peach。 */+.fcredget{display:inline-flex;align-items:baseline;gap:4px}+.fcredget svg{align-self:center;width:13px;height:13px;flex:none;stroke:currentColor;fill:none;stroke-width:2}.fcredactions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:2px}.fcredactions button{height:32px;box-sizing:border-box;padding:0 14px;border-radius:var(--control-radius);- border:1px solid var(--ink);background:var(--ink);color:var(--ground);font-size:var(--fs-md);+ border:0;background:var(--ink);color:var(--ground);font-size:var(--fs-md);font-weight:500;font-family:inherit;cursor:pointer;- transition:background-color .15s ease-in-out,border-color .15s ease-in-out,color .15s ease-in-out}-.fcredactions button:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 88%,var(--ground));- border-color:color-mix(in srgb,var(--ink) 88%,var(--ground));color:var(--ground)}-.fcredactions button:disabled{background:var(--sunk);border-color:var(--line-soft);color:var(--muted);cursor:default}-.fcredactions button.fquiet{background:transparent;border-color:var(--border-15);- color:var(--muted)}-.fcredactions button.fquiet:hover{background:var(--drop);border-color:var(--drop);color:#fff}+ transition:background-color .15s ease-in-out,color .15s ease-in-out}+.fcredactions button:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 88%,var(--ground));color:var(--ground)}+.fcredactions button:disabled{background:var(--sunk);color:var(--muted);cursor:default}+.fcredactions button.fquiet{background:var(--inset);color:var(--ink-2)}+.fcredactions button.fquiet:hover{background:var(--drop);color:#fff}.fcredactions [data-cred-state]{font-size:var(--fs-xs);color:var(--muted)}@media (max-width:640px){diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.jsindex f004c3ba3..6c11c2fce 100644--- a/web/dist/peach-ui.js+++ b/web/dist/peach-ui.js@@ -1,18 +1,18 @@import { MEDIA_SOURCE_ICONS as e, emptyStateHtml as t, fieldsetTitle as n, loadingDotsHtml as r, noteHtml as i, progressHtml as a, selectFieldHtml as o, selectOptionIconHtml as s, setActionBusy as c, wireSelectField as l } from "/js/ui-components.js";-import { LOC as u, fmtDur as d, fmtSize as f } from "/js/core.js";+import { LOC as u, faviconUrl as d, fmtDur as f, fmtSize as p } from "/js/core.js";//#region node_modules/preact/dist/preact.module.js-var p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O = {}, k = [], ee = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, te = Array.isArray;-function A(e, t) {+var m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k = {}, A = [], ee = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, j = Array.isArray;+function M(e, t) {for (var n in t) e[n] = t[n];return e;}-function j(e) {+function te(e) {e && e.parentNode && e.parentNode.removeChild(e);}function ne(e, t, n) {var r, i, a, o = {};for (a in t) a == "key" ? r = t[a] : a == "ref" ? i = t[a] : o[a] = t[a];- if (arguments.length > 2 && (o.children = arguments.length > 3 ? p.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) o[a] === void 0 && (o[a] = e.defaultProps[a]);+ if (arguments.length > 2 && (o.children = arguments.length > 3 ? m.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) o[a] === void 0 && (o[a] = e.defaultProps[a]);return re(e, o, r, i, null);}function re(e, t, n, r, i) {@@ -27,16 +27,16 @@ function re(e, t, n, r, i) {__e: null,__c: null,constructor: void 0,- __v: i ?? ++h,+ __v: i ?? ++g,__i: -1,__u: 0};- return i == null && m.vnode != null && m.vnode(a), a;+ return i == null && h.vnode != null && h.vnode(a), a;}-function M(e) {+function N(e) {return e.children;}-function N(e, t) {+function ie(e, t) {this.props = e, this.context = t;}function P(e, t) {@@ -44,42 +44,42 @@ function P(e, t) {for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;return typeof e.type == "function" ? P(e) : null;}-function ie(e) {+function ae(e) {if (e.__P && e.__d) {- var t = e.__v, n = t.__e, r = [], i = [], a = A({}, t);- a.__v = t.__v + 1, m.vnode && m.vnode(a), he(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? P(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, _e(r, a, i), t.__e = t.__ = null, a.__e != n && ae(a);+ var t = e.__v, n = t.__e, r = [], i = [], a = M({}, t);+ a.__v = t.__v + 1, h.vnode && h.vnode(a), ge(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? P(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, ve(r, a, i), t.__e = t.__ = null, a.__e != n && oe(a);}}-function ae(e) {+function oe(e) {if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;- }), ae(e);+ }), oe(e);}-function oe(e) {- (!e.__d && (e.__d = !0) && _.push(e) && !se.__r++ || v != m.debounceRendering) && ((v = m.debounceRendering) || y)(se);+function se(e) {+ (!e.__d && (e.__d = !0) && v.push(e) && !ce.__r++ || y != h.debounceRendering) && ((y = h.debounceRendering) || b)(ce);}-function se() {+function ce() {try {- for (var e, t = 1; _.length;) _.length > t && _.sort(b), e = _.shift(), t = _.length, ie(e);+ for (var e, t = 1; v.length;) v.length > t && v.sort(x), e = v.shift(), t = v.length, ae(e);} finally {- _.length = se.__r = 0;+ v.length = ce.__r = 0;}}-function ce(e, t, n, r, i, a, o, s, c, l, u) {- var d, f, p, m, h, g, _ = r && r.__k || k, v = t.length;- for (c = le(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || O, p.__i = d, g = he(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && be(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = ue(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);+function le(e, t, n, r, i, a, o, s, c, l, u) {+ var d, f, p, m, h, g, _ = r && r.__k || A, v = t.length;+ for (c = ue(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || k, p.__i = d, g = ge(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && xe(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = de(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);return n.__e = h, c;}-function le(e, t, n, r, i) {+function ue(e, t, n, r, i) {var a, o, s, c, l, u = n.length, d = u, f = 0;- for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = re(null, o, null, null, null) : te(o) ? o = e.__k[a] = re(M, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = re(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = de(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;- if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = P(s)), xe(s, s));+ for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = re(null, o, null, null, null) : j(o) ? o = e.__k[a] = re(N, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = re(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = fe(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;+ if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = P(s)), Se(s, s));return r;}-function ue(e, t, n) {+function de(e, t, n) {var r, i;if (typeof e.type == "function") {- for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = ue(r[i], t, n));+ for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = de(r[i], t, n));return t;}e.__e != t && (t && e.type && !t.parentNode && (t = P(e)), t = n.insertBefore(e.__e, t || null));@@ -88,7 +88,7 @@ function ue(e, t, n) {while (t != null && t.nodeType == 8);return t;}-function de(e, t, n, r) {+function fe(e, t, n, r) {var i, a, o, s = e.key, c = e.type, l = t[n], u = l != null && !(2 & l.__u);if (l === null && s == null || u && s == l.key && c == l.type) return n;if (r > +!!u) {@@ -96,18 +96,18 @@ function de(e, t, n, r) {}return -1;}-function fe(e, t, n) {+function pe(e, t, n) {t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || ee.test(t) ? n : n + "px";}-function pe(e, t, n, r, i) {+function me(e, t, n, r, i) {var a, o;n: if (t == "style") {if (typeof n == "string") e.style.cssText = n;else {- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || fe(e.style, t, "");- if (n) for (t in n) r && n[t] == r[t] || fe(e.style, t, n[t]);+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || pe(e.style, t, "");+ if (n) for (t in n) r && n[t] == r[t] || pe(e.style, t, n[t]);}- } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(w, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[C] = r[C] : (n[C] = T, e.addEventListener(t, a ? D : E, a)) : e.removeEventListener(t, a ? D : E, a);+ } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(T, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[w] = r[w] : (n[w] = E, e.addEventListener(t, a ? O : D, a)) : e.removeEventListener(t, a ? O : D, a);else {if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {@@ -117,149 +117,149 @@ function pe(e, t, n, r, i) {typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));}}-function me(e) {+function he(e) {return function(t) {if (this.l) {var n = this.l[t.type + e];- if (t[S] == null) t[S] = T++;- else if (t[S] < n[C]) return;- return n(m.event ? m.event(t) : t);+ if (t[C] == null) t[C] = E++;+ else if (t[C] < n[w]) return;+ return n(h.event ? h.event(t) : t);}};}-function he(e, t, n, r, i, a, o, s, c, l) {- var u, d, f, p, h, g, _, v, y, b, x, S, C, w, T, E, D = t.type;+function ge(e, t, n, r, i, a, o, s, c, l) {+ var u, d, f, p, m, g, _, v, y, b, x, S, C, w, T, E, D = t.type;if (t.constructor !== void 0) return null;- 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = m.__b) && u(t);+ 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = h.__b) && u(t);n: if (typeof D == "function") {d = o.length;try {- if (y = t.props, b = D.prototype && D.prototype.render, x = (u = D.contextType) && r[u.__c], S = u ? x ? x.props.value : u.__ : r, n.__c ? v = (f = t.__c = n.__c).__ = f.__E : (b ? t.__c = f = new D(y, S) : (t.__c = f = new N(y, S), f.constructor = D, f.render = Se), x && x.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), b && f.__s == null && (f.__s = f.state), b && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = A({}, f.__s)), A(f.__s, D.getDerivedStateFromProps(y, f.__s))), h = f.props, g = f.state, f.__v = t, p) b && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), b && f.componentDidMount != null && f.__h.push(f.componentDidMount);+ if (y = t.props, b = D.prototype && D.prototype.render, x = (u = D.contextType) && r[u.__c], S = u ? x ? x.props.value : u.__ : r, n.__c ? v = (f = t.__c = n.__c).__ = f.__E : (b ? t.__c = f = new D(y, S) : (t.__c = f = new ie(y, S), f.constructor = D, f.render = Ce), x && x.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), b && f.__s == null && (f.__s = f.state), b && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = M({}, f.__s)), M(f.__s, D.getDerivedStateFromProps(y, f.__s))), m = f.props, g = f.state, f.__v = t, p) b && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), b && f.componentDidMount != null && f.__h.push(f.componentDidMount);else {- if (b && D.getDerivedStateFromProps == null && y !== h && f.componentWillReceiveProps != null && f.componentWillReceiveProps(y, S), t.__v == n.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(y, f.__s, S)) {+ if (b && D.getDerivedStateFromProps == null && y !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(y, S), t.__v == n.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(y, f.__s, S)) {t.__v != n.__v && (f.props = y, f.state = f.__s, f.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(e) {e && (e.__ = t);- }), k.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && o.push(f), s = P(n);+ }), A.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && o.push(f), s = P(n);break n;}f.componentWillUpdate != null && f.componentWillUpdate(y, f.__s, S), b && f.componentDidUpdate != null && f.__h.push(function() {- f.componentDidUpdate(h, g, _);+ f.componentDidUpdate(m, g, _);});}- if (f.context = S, f.props = y, f.__P = e, f.__e = !1, C = m.__r, w = 0, b) f.state = f.__s, f.__d = !1, C && C(t), u = f.render(f.props, f.state, f.context), k.push.apply(f.__h, f._sb), f._sb = [];+ if (f.context = S, f.props = y, f.__P = e, f.__e = !1, C = h.__r, w = 0, b) f.state = f.__s, f.__d = !1, C && C(t), u = f.render(f.props, f.state, f.context), A.push.apply(f.__h, f._sb), f._sb = [];else dof.__d = !1, C && C(t), u = f.render(f.props, f.state, f.context), f.state = f.__s;while (f.__d && ++w < 25);- f.state = f.__s, f.getChildContext != null && (r = A(A({}, r), f.getChildContext())), b && !p && f.getSnapshotBeforeUpdate != null && (_ = f.getSnapshotBeforeUpdate(h, g)), T = u != null && u.type === M && u.key == null ? ve(u.props.children) : u, s = ce(e, te(T) ? T : [T], t, n, r, i, a, o, s, c, l), f.base = t.__e, t.__u &= -161, f.__h.length && o.push(f), v && (f.__E = f.__ = null);+ f.state = f.__s, f.getChildContext != null && (r = M(M({}, r), f.getChildContext())), b && !p && f.getSnapshotBeforeUpdate != null && (_ = f.getSnapshotBeforeUpdate(m, g)), T = u != null && u.type === N && u.key == null ? ye(u.props.children) : u, s = le(e, j(T) ? T : [T], t, n, r, i, a, o, s, c, l), f.base = t.__e, t.__u &= -161, f.__h.length && o.push(f), v && (f.__E = f.__ = null);} catch (e) {if (o.length = d, t.__v = null, c || a != null) {if (e.then) {for (t.__u |= c ? 160 : 128; s && s.nodeType == 8 && s.nextSibling;) s = s.nextSibling;a != null && (a[a.indexOf(s)] = null), t.__e = s;- } else if (a != null) for (E = a.length; E--;) j(a[E]);+ } else if (a != null) for (E = a.length; E--;) te(a[E]);} else t.__e = n.__e;- t.__k ??= n.__k || [], e.then || ge(t), m.__e(e, t, n);+ t.__k ??= n.__k || [], e.then || _e(t), h.__e(e, t, n);}- } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = ye(n.__e, t, n, r, i, a, o, c, l);- return (u = m.diffed) && u(t), 128 & t.__u ? void 0 : s;+ } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = be(n.__e, t, n, r, i, a, o, c, l);+ return (u = h.diffed) && u(t), 128 & t.__u ? void 0 : s;}-function ge(e) {- e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(ge));+function _e(e) {+ e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(_e));}-function _e(e, t, n) {- for (var r = 0; r < n.length; r++) be(n[r], n[++r], n[++r]);- m.__c && m.__c(t, e), e.some(function(t) {+function ve(e, t, n) {+ for (var r = 0; r < n.length; r++) xe(n[r], n[++r], n[++r]);+ h.__c && h.__c(t, e), e.some(function(t) {try {e = t.__h, t.__h = [], e.some(function(e) {e.call(t);});} catch (e) {- m.__e(e, t.__v);+ h.__e(e, t.__v);}});}-function ve(e) {- return typeof e != "object" || !e || e.__b > 0 ? e : te(e) ? e.map(ve) : e.constructor === void 0 ? A({}, e) : null;+function ye(e) {+ return typeof e != "object" || !e || e.__b > 0 ? e : j(e) ? e.map(ye) : e.constructor === void 0 ? M({}, e) : null;}-function ye(e, t, n, r, i, a, o, s, c) {- var l, u, d, f, h, g, _, v = n.props || O, y = t.props, b = t.type;+function be(e, t, n, r, i, a, o, s, c) {+ var l, u, d, f, p, g, _, v = n.props || k, y = t.props, b = t.type;if (b == "svg" ? i = "http://www.w3.org/2000/svg" : b == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i ||= "http://www.w3.org/1999/xhtml", a != null) {- for (l = 0; l < a.length; l++) if ((h = a[l]) && "setAttribute" in h == !!b && (b ? h.localName == b : h.nodeType == 3)) {- e = h, a[l] = null;+ for (l = 0; l < a.length; l++) if ((p = a[l]) && "setAttribute" in p == !!b && (b ? p.localName == b : p.nodeType == 3)) {+ e = p, a[l] = null;break;}}if (e == null) {if (b == null) return document.createTextNode(y);- e = document.createElementNS(i, b, y.is && y), s &&= (m.__m && m.__m(t, a), !1), a = null;+ e = document.createElementNS(i, b, y.is && y), s &&= (h.__m && h.__m(t, a), !1), a = null;}if (b == null) v === y || s && e.data == y || (e.data = y);else {- if (a = b == "textarea" && y.defaultValue != null ? null : a && p.call(e.childNodes), !s && a != null) for (v = {}, l = 0; l < e.attributes.length; l++) v[(h = e.attributes[l]).name] = h.value;- for (l in v) h = v[l], l == "dangerouslySetInnerHTML" ? d = h : l == "children" || l in y || l == "value" && "defaultValue" in y || l == "checked" && "defaultChecked" in y || pe(e, l, null, h, i);- for (l in y) h = y[l], l == "children" ? f = h : l == "dangerouslySetInnerHTML" ? u = h : l == "value" ? g = h : l == "checked" ? _ = h : s && typeof h != "function" || v[l] === h || pe(e, l, h, v[l], i);+ if (a = b == "textarea" && y.defaultValue != null ? null : a && m.call(e.childNodes), !s && a != null) for (v = {}, l = 0; l < e.attributes.length; l++) v[(p = e.attributes[l]).name] = p.value;+ for (l in v) p = v[l], l == "dangerouslySetInnerHTML" ? d = p : l == "children" || l in y || l == "value" && "defaultValue" in y || l == "checked" && "defaultChecked" in y || me(e, l, null, p, i);+ for (l in y) p = y[l], l == "children" ? f = p : l == "dangerouslySetInnerHTML" ? u = p : l == "value" ? g = p : l == "checked" ? _ = p : s && typeof p != "function" || v[l] === p || me(e, l, p, v[l], i);if (u) s || d && (u.__html == d.__html || u.__html == e.innerHTML) || (e.innerHTML = u.__html), t.__k = [];- else if (d && (e.innerHTML = ""), ce(t.type == "template" ? e.content : e, te(f) ? f : [f], t, n, r, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && P(n, 0), s, c), a != null) for (l = a.length; l--;) j(a[l]);- s && b != "textarea" || (l = "value", b == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[l] || b == "progress" && !g || b == "option" && g != v[l]) && pe(e, l, g, v[l], i), l = "checked", _ != null && _ != e[l] && pe(e, l, _, v[l], i));+ else if (d && (e.innerHTML = ""), le(t.type == "template" ? e.content : e, j(f) ? f : [f], t, n, r, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && P(n, 0), s, c), a != null) for (l = a.length; l--;) te(a[l]);+ s && b != "textarea" || (l = "value", b == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[l] || b == "progress" && !g || b == "option" && g != v[l]) && me(e, l, g, v[l], i), l = "checked", _ != null && _ != e[l] && me(e, l, _, v[l], i));}return e;}-function be(e, t, n) {+function xe(e, t, n) {try {if (typeof e == "function") {var r = typeof e.__u == "function";r && e.__u(), r && t == null || (e.__u = e(t));} else e.current = t;} catch (e) {- m.__e(e, n);+ h.__e(e, n);}}-function xe(e, t, n) {+function Se(e, t, n) {var r, i;- if (m.unmount && m.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || be(r, null, t)), (r = e.__c) != null) {+ if (h.unmount && h.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || xe(r, null, t)), (r = e.__c) != null) {if (r.componentWillUnmount) try {r.componentWillUnmount();} catch (e) {- m.__e(e, t);+ h.__e(e, t);}r.base = r.__P = r.__n = null;}- if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && xe(r[i], t, n || typeof e.type != "function");- n || j(e.__e), e.__c = e.__ = e.__e = void 0;+ if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && Se(r[i], t, n || typeof e.type != "function");+ n || te(e.__e), e.__c = e.__ = e.__e = void 0;}-function Se(e, t, n) {+function Ce(e, t, n) {return this.constructor(e, n);}-function Ce(e, t, n) {+function we(e, t, n) {var r, i, a, o;- t == document && (t = document.documentElement), m.__ && m.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], he(t, e = (!r && n || t).__k = ne(M, null, [e]), i || O, O, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? p.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), _e(a, e, o), e.props.children = null;+ t == document && (t = document.documentElement), h.__ && h.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], ge(t, e = (!r && n || t).__k = ne(N, null, [e]), i || k, k, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? m.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), ve(a, e, o), e.props.children = null;}-p = k.slice, m = { __e: function(e, t, n, r) {+m = A.slice, h = { __e: function(e, t, n, r) {for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {if ((a = i.constructor) && a.getDerivedStateFromError != null && (i.setState(a.getDerivedStateFromError(e)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, r || {}), o = i.__d), o) return i.__E = i;} catch (t) {e = t;}throw e;-} }, h = 0, g = function(e) {+} }, g = 0, _ = function(e) {return e != null && e.constructor === void 0;-}, N.prototype.setState = function(e, t) {- var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = A({}, this.state);- typeof e == "function" && (e = e(A({}, n), this.props)), e && A(n, e), e != null && this.__v && (t && this._sb.push(t), oe(this));-}, N.prototype.forceUpdate = function(e) {- this.__v && (this.__e = !0, e && this.__h.push(e), oe(this));-}, N.prototype.render = M, _ = [], y = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, b = function(e, t) {+}, ie.prototype.setState = function(e, t) {+ var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = M({}, this.state);+ typeof e == "function" && (e = e(M({}, n), this.props)), e && M(n, e), e != null && this.__v && (t && this._sb.push(t), se(this));+}, ie.prototype.forceUpdate = function(e) {+ this.__v && (this.__e = !0, e && this.__h.push(e), se(this));+}, ie.prototype.render = N, v = [], b = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, x = function(e, t) {return e.__v.__b - t.__v.__b;-}, se.__r = 0, x = Math.random().toString(8), S = "__d" + x, C = "__a" + x, w = /(PointerCapture)$|Capture$/i, T = 0, E = me(!1), D = me(!0);+}, ce.__r = 0, S = Math.random().toString(8), C = "__d" + S, w = "__a" + S, T = /(PointerCapture)$|Capture$/i, E = 0, D = he(!1), O = he(!0);//#endregion//#region src/api.ts-var we = class extends Error {+var Te = class extends Error {status;body;constructor(e, t, n = null) {super(e), this.name = "ApiError", this.status = t, this.body = n;}-}, Te = (e) => {+}, Ee = (e) => {if (!e || typeof e != "object") return "";let t = e;for (let e of [@@ -281,7 +281,7 @@ async function I(e, t) {try {r = await n.json();} catch {}- if (!n.ok) throw new we(Te(r) || `请求失败(${n.status})`, n.status);+ if (!n.ok) throw new Te(Ee(r) || `请求失败(${n.status})`, n.status);return r;}async function L(e, t, n = "POST", r) {@@ -298,14 +298,14 @@ async function L(e, t, n = "POST", r) {try {a = await i.json();} catch {}- if (!i.ok) throw new we(Te(a) || `请求失败(${i.status})`, i.status, a);+ if (!i.ok) throw new Te(Ee(a) || `请求失败(${i.status})`, i.status, a);return a;}//#endregion//#region node_modules/preact/hooks/dist/hooks.module.js-var R, z, Ee, De, Oe = 0, ke = [], B = m, Ae = B.__b, je = B.__r, Me = B.diffed, Ne = B.__c, Pe = B.unmount, Fe = B.__;-function Ie(e, t) {- B.__h && B.__h(z, e, Oe || t), Oe = 0;+var R, z, De, Oe, ke = 0, Ae = [], B = h, je = B.__b, Me = B.__r, Ne = B.diffed, Pe = B.__c, Fe = B.unmount, Ie = B.__;+function Le(e, t) {+ B.__h && B.__h(z, e, ke || t), ke = 0;var n = z.__H || (z.__H = {__: [],__h: []@@ -313,10 +313,10 @@ function Ie(e, t) {return e >= n.__.length && n.__.push({}), n.__[e];}function V(e) {- return Oe = 1, Le(Ke, e);+ return ke = 1, Re(Ke, e);}-function Le(e, t, n) {- var r = Ie(R++, 2);+function Re(e, t, n) {+ var r = Le(R++, 2);if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Ke(void 0, t), function(e) {var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);t !== n && (r.__N = [n, r.__[1]], r.__c.setState({}));@@ -348,25 +348,25 @@ function Le(e, t, n) {}return r.__N || r.__;}-function Re(e, t) {- var n = Ie(R++, 3);+function H(e, t) {+ var n = Le(R++, 3);!B.__s && Ge(n.__H, t) && (n.__ = e, n.u = t, z.__H.__h.push(n));}-function H(e, t) {- var n = Ie(R++, 4);+function U(e, t) {+ var n = Le(R++, 4);!B.__s && Ge(n.__H, t) && (n.__ = e, n.u = t, z.__h.push(n));}-function U(e) {- return Oe = 5, ze(function() {+function W(e) {+ return ke = 5, ze(function() {return { current: e };}, []);}function ze(e, t) {- var n = Ie(R++, 7);+ var n = Le(R++, 7);return Ge(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;}function Be() {- for (var e; e = ke.shift();) {+ for (var e; e = Ae.shift();) {var t = e.__H;if (e.__P && t) try {t.__h.some(Ue), t.__h.some(We), t.__h = [];@@ -376,21 +376,21 @@ function Be() {}}B.__b = function(e) {- z = null, Ae && Ae(e);+ z = null, je && je(e);}, B.__ = function(e, t) {- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Fe && Fe(e, t);+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ie && Ie(e, t);}, B.__r = function(e) {- je && je(e), R = 0;+ Me && Me(e), R = 0;var t = (z = e.__c).__H;- t && (Ee === z ? (t.__h = [], z.__h = [], t.__.some(function(e) {+ t && (De === z ? (t.__h = [], z.__h = [], t.__.some(function(e) {e.__N && (e.__ = e.__N), e.u = e.__N = void 0;- })) : (t.__h.some(Ue), t.__h.some(We), t.__h = [], R = 0)), Ee = z;+ })) : (t.__h.some(Ue), t.__h.some(We), t.__h = [], R = 0)), De = z;}, B.diffed = function(e) {- Me && Me(e);+ Ne && Ne(e);var t = e.__c;- t && t.__H && (t.__H.__h.length && (ke.push(t) !== 1 && De === B.requestAnimationFrame || ((De = B.requestAnimationFrame) || He)(Be)), t.__H.__.some(function(e) {+ t && t.__H && (t.__H.__h.length && (Ae.push(t) !== 1 && Oe === B.requestAnimationFrame || ((Oe = B.requestAnimationFrame) || He)(Be)), t.__H.__.some(function(e) {e.u &&= (e.__H = e.u, void 0);- })), Ee = z = null;+ })), De = z = null;}, B.__c = function(e, t) {t.some(function(e) {try {@@ -402,9 +402,9 @@ B.__b = function(e) {e.__h &&= [];}), t = [], B.__e(n, e.__v);}- }), Ne && Ne(e, t);+ }), Pe && Pe(e, t);}, B.unmount = function(e) {- Pe && Pe(e);+ Fe && Fe(e);var t, n = e.__c;n && n.__H && (n.__H.__.some(function(e) {try {@@ -441,7 +441,7 @@ function Ke(e, t) {//#region node_modules/preact/jsx-runtime/dist/jsxRuntime.module.jsvar qe = 0;Array.isArray;-function W(e, t, n, r, i, a) {+function G(e, t, n, r, i, a) {t ||= {};var o, s, c = t;if ("ref" in c) for (s in c = {}, t) s == "ref" ? o = t[s] : c[s] = t[s];@@ -463,19 +463,19 @@ function W(e, t, n, r, i, a) {__self: a};if (typeof e == "function" && (o = e.defaultProps)) for (s in o) c[s] === void 0 && (c[s] = o[s]);- return m.vnode && m.vnode(l), l;+ return h.vnode && h.vnode(l), l;}//#endregion//#region src/islands/access-settings.tsxfunction Je({ id: e, label: t, value: n, onInput: r, error: i, help: a, current: o = !1 }) {- return /* @__PURE__ */ W("div", {+ return /* @__PURE__ */ G("div", {class: "configfield",children: [- /* @__PURE__ */ W("label", {+ /* @__PURE__ */ G("label", {for: e,children: t}),- /* @__PURE__ */ W("input", {+ /* @__PURE__ */ G("input", {id: e,class: "geist-input",type: "password",@@ -487,7 +487,7 @@ function Je({ id: e, label: t, value: n, onInput: r, error: i, help: a, current:"aria-invalid": !!i,"aria-describedby": i || a ? `${e}-hint` : void 0}),- i || a ? /* @__PURE__ */ W("p", {+ i || a ? /* @__PURE__ */ G("p", {id: `${e}-hint`,class: i ? "configbad" : "confighelp",role: i ? "alert" : void 0,@@ -497,8 +497,8 @@ function Je({ id: e, label: t, value: n, onInput: r, error: i, help: a, current:});}function Ye({ initial: e, receipt: t }) {- let [r, i] = V(e), [a, o] = V(""), [s, l] = V(""), [u, d] = V(""), [f, p] = V(!1), [m, h] = V(""), [g, _] = V({}), v = U(null), y = U(!1), b = U(null);- return /* @__PURE__ */ W("form", {+ let [r, i] = V(e), [a, o] = V(""), [s, l] = V(""), [u, d] = V(""), [f, p] = V(!1), [m, h] = V(""), [g, _] = V({}), v = W(null), y = W(!1), b = W(null);+ return /* @__PURE__ */ G("form", {class: "configfieldset",onSubmit: async (e) => {if (e.preventDefault(), y.current) return;@@ -520,7 +520,7 @@ function Ye({ initial: e, receipt: t }) {});i(e), o(""), l(""), d(""), p(!1), _({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存访问密码");} catch (e) {- let t = e instanceof we ? e.body : null, n = t?.errors || t?.detail?.errors;+ let t = e instanceof Te ? e.body : null, n = t?.errors || t?.detail?.errors;n ? _(n) : h(F(e));} finally {y.current = !1, c(b.current, !1);@@ -529,17 +529,17 @@ function Ye({ initial: e, receipt: t }) {"aria-labelledby": "accessTitle",noValidate: !0,ref: v,- children: [/* @__PURE__ */ W("div", {+ children: [/* @__PURE__ */ G("div", {class: "geist-fieldset-content",children: [- /* @__PURE__ */ W("div", {+ /* @__PURE__ */ G("div", {class: "configfieldset-heading",- children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: n("accessTitle", "访问密码") } }), /* @__PURE__ */ W("p", {+ children: [/* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: n("accessTitle", "访问密码") } }), /* @__PURE__ */ G("p", {class: "confighelp",children: r.mode === "open" ? "未设置密码,能连接到 Peach 的设备可直接访问。" : r.mode === "legacy" ? "当前使用系统生成的访问口令。你可以设置自己的密码,或关闭登录要求。" : r.mode === "locked" ? "访问设置无法读取,请在本机检查配置文件。" : "已设置密码。新设备需要登录,保持登录时间在登录页选择。"})]}),- r.mode === "password" ? /* @__PURE__ */ W(Je, {+ r.mode === "password" ? /* @__PURE__ */ G(Je, {id: "access-current",label: "当前访问密码",value: a,@@ -547,46 +547,46 @@ function Ye({ initial: e, receipt: t }) {error: g.current_password,current: !0}) : null,- !f && r.mode !== "locked" ? /* @__PURE__ */ W(M, { children: [/* @__PURE__ */ W(Je, {+ !f && r.mode !== "locked" ? /* @__PURE__ */ G(N, { children: [/* @__PURE__ */ G(Je, {id: "access-password",label: r.mode === "password" ? "新访问密码" : "设置访问密码",value: s,onInput: l,error: g.password,help: "至少 8 个字符。保存后其他设备需要重新登录。"- }), /* @__PURE__ */ W(Je, {+ }), /* @__PURE__ */ G(Je, {id: "access-confirm",label: "确认访问密码",value: u,onInput: d,error: g.confirmation})] }) : null,- r.mode === "password" || r.mode === "legacy" ? /* @__PURE__ */ W("label", {+ r.mode === "password" || r.mode === "legacy" ? /* @__PURE__ */ G("label", {class: "configcheck",- children: [/* @__PURE__ */ W("span", {+ children: [/* @__PURE__ */ G("span", {class: "pcheck",- children: [/* @__PURE__ */ W("input", {+ children: [/* @__PURE__ */ G("input", {type: "checkbox",checked: f,onChange: (e) => p(e.currentTarget.checked)- }), /* @__PURE__ */ W("span", {+ }), /* @__PURE__ */ G("span", {"aria-hidden": "true",- children: /* @__PURE__ */ W("svg", {+ children: /* @__PURE__ */ G("svg", {viewBox: "0 0 24 24",- children: /* @__PURE__ */ W("use", { href: "#i-check" })+ children: /* @__PURE__ */ G("use", { href: "#i-check" })})})]- }), /* @__PURE__ */ W("span", { children: "关闭访问密码,允许能连接到 Peach 的设备直接访问" })]+ }), /* @__PURE__ */ G("span", { children: "关闭访问密码,允许能连接到 Peach 的设备直接访问" })]}) : null,- m ? /* @__PURE__ */ W("p", {+ m ? /* @__PURE__ */ G("p", {class: "configbad",role: "alert",children: m}) : null]- }), r.mode === "locked" ? null : /* @__PURE__ */ W("div", {+ }), r.mode === "locked" ? null : /* @__PURE__ */ G("div", {class: "geist-fieldset-footer",- children: [/* @__PURE__ */ W("p", { children: "保存后立即生效。" }), /* @__PURE__ */ W("button", {+ children: [/* @__PURE__ */ G("p", { children: "保存后立即生效。" }), /* @__PURE__ */ G("button", {class: "geist-button primary",type: "submit",ref: b,@@ -644,8 +644,8 @@ function Ze(e) {//#region src/islands/library-processing.tsxvar Qe = (e, t) => I("/api/library-processing", t);function $e({ data: e, error: t, toast: o, onComplete: s, mode: l, monitor: u }) {- let [d, f] = V(e || { status: "idle" }), [p, m] = V(t), [h, g] = V(!1), [_, v] = V(!1), y = U(new AbortController()), b = U(0), x = U(d.status), S = U(null), C = h || d.status === "running";- H(() => c(S.current, C), [C]);+ let [d, f] = V(e || { status: "idle" }), [p, m] = V(t), [h, g] = V(!1), [_, v] = V(!1), y = W(new AbortController()), b = W(0), x = W(d.status), S = W(null), C = h || d.status === "running";+ U(() => c(S.current, C), [C]);async function w() {let e = ++b.current;await Xe({@@ -658,7 +658,7 @@ function $e({ data: e, error: t, toast: o, onComplete: s, mode: l, monitor: u })disconnected: () => m("连接中断,正在重新读取处理进度")});}- Re(() => ((d.status === "running" || l === "notice" || u) && w(), () => y.current.abort()), []);+ H(() => ((d.status === "running" || l === "notice" || u) && w(), () => y.current.abort()), []);async function T() {if (!C) {g(!0), m(""), v(!1);@@ -671,36 +671,36 @@ function $e({ data: e, error: t, toast: o, onComplete: s, mode: l, monitor: u })}}}- return l === "notice" ? !p && d.status !== "running" && d.status !== "failed" ? null : /* @__PURE__ */ W("div", {+ return l === "notice" ? !p && d.status !== "running" && d.status !== "failed" ? null : /* @__PURE__ */ G("div", {class: "library-processing-banner",role: "status",- children: [/* @__PURE__ */ W("span", { children: p || (d.status === "failed" ? "扫描与资料采集未完成" : `${d.stage || "正在整理馆藏"}${d.total ? ` · ${d.checked || 0} / ${d.total}` : ""}`) }), /* @__PURE__ */ W("a", {+ children: [/* @__PURE__ */ G("span", { children: p || (d.status === "failed" ? "扫描与资料采集未完成" : `${d.stage || "正在整理馆藏"}${d.total ? ` · ${d.checked || 0} / ${d.total}` : ""}`) }), /* @__PURE__ */ G("a", {class: "geist-button",href: "/configuration#libraryProcessing",children: p || d.status === "failed" ? "查看并处理" : "查看进度"})]- }) : /* @__PURE__ */ W(M, { children: [/* @__PURE__ */ W("div", {+ }) : /* @__PURE__ */ G(N, { children: [/* @__PURE__ */ G("div", {class: "geist-fieldset-content library-processing",children: [- /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: n("cleanupScrapingTitle", "扫描与采集") } }),- /* @__PURE__ */ W("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。" }),- /* @__PURE__ */ W("div", {+ /* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: n("cleanupScrapingTitle", "扫描与采集") } }),+ /* @__PURE__ */ G("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。" }),+ /* @__PURE__ */ G("div", {"aria-live": "polite",children: [- d.status === "running" && /* @__PURE__ */ W(M, { children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: r(`${d.stage || "正在处理"}${d.total ? ` · ${d.checked || 0} / ${d.total}` : ""}`) } }), !!d.total && /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: a(`已处理 ${d.checked || 0} / ${d.total} 个视频`, d.checked || 0, d.total) } })] }),- (p || d.status === "failed") && /* @__PURE__ */ W("div", {+ d.status === "running" && /* @__PURE__ */ G(N, { children: [/* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: r(`${d.stage || "正在处理"}${d.total ? ` · ${d.checked || 0} / ${d.total}` : ""}`) } }), !!d.total && /* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: a(`已处理 ${d.checked || 0} / ${d.total} 个视频`, d.checked || 0, d.total) } })] }),+ (p || d.status === "failed") && /* @__PURE__ */ G("div", {role: "alert",dangerouslySetInnerHTML: { __html: i(p || d.error || "处理未完成,请重试", { variant: "error" }) }}),- d.status === "failed" && !!d.issues?.length && /* @__PURE__ */ W("ul", { children: d.issues.slice(0, 20).map((e) => /* @__PURE__ */ W("li", { children: [- e.asset_id ? /* @__PURE__ */ W("a", {+ d.status === "failed" && !!d.issues?.length && /* @__PURE__ */ G("ul", { children: d.issues.slice(0, 20).map((e) => /* @__PURE__ */ G("li", { children: [+ e.asset_id ? /* @__PURE__ */ G("a", {href: `/item/${e.asset_id}`,children: "查看视频"}) : null,e.asset_id ? ":" : "",e.message] })) }),- _ && /* @__PURE__ */ W("p", { children: [+ _ && /* @__PURE__ */ G("p", { children: ["已扫描 ",d.scanned || 0," 个文件,识别 ",@@ -712,21 +712,21 @@ function $e({ data: e, error: t, toast: o, onComplete: s, mode: l, monitor: u })]})]- }), /* @__PURE__ */ W("footer", {+ }), /* @__PURE__ */ G("footer", {class: "geist-fieldset-footer","data-geist-fieldset-footer": !0,children: [- /* @__PURE__ */ W("a", {+ /* @__PURE__ */ G("a", {class: "geist-button",href: "/scraping",children: "采集来源"}),- !!d.candidates && /* @__PURE__ */ W("a", {+ !!d.candidates && /* @__PURE__ */ G("a", {class: "geist-button",href: "/review",children: "复核资料"}),- /* @__PURE__ */ W("button", {+ /* @__PURE__ */ G("button", {ref: S,type: "button",class: "geist-button primary",@@ -744,29 +744,29 @@ var et = "/api/configuration", tt = "/api/pick-folder", nt = 8e3, rt = (e, t) =>}))]).then(([e, t]) => ({...e,processing: t-})), G = ({ html: e, class: t }) => /* @__PURE__ */ W("div", {+})), K = ({ html: e, class: t }) => /* @__PURE__ */ G("div", {class: t,dangerouslySetInnerHTML: { __html: e }-}), it = (e) => !(e instanceof we) || e.status !== 400 ? null : e.body?.errors ?? null;+}), it = (e) => !(e instanceof Te) || e.status !== 400 ? null : e.body?.errors ?? null;function at({ facts: e }) {- return /* @__PURE__ */ W("section", {+ return /* @__PURE__ */ G("section", {class: "configfieldset","data-geist-fieldset": !0,"aria-labelledby": "configFactsTitle",- children: /* @__PURE__ */ W("div", {+ children: /* @__PURE__ */ G("div", {class: "geist-fieldset-content",- children: [/* @__PURE__ */ W(G, { html: n("configFactsTitle", "运行信息") }), /* @__PURE__ */ W("dl", {+ children: [/* @__PURE__ */ G(K, { html: n("configFactsTitle", "运行信息") }), /* @__PURE__ */ G("dl", {class: "configfacts",- children: e.map((e) => /* @__PURE__ */ W(M, { children: [/* @__PURE__ */ W("dt", { children: e.term }), /* @__PURE__ */ W("dd", { children: [e.value, e.download_url ? /* @__PURE__ */ W("span", {+ children: e.map((e) => /* @__PURE__ */ G(N, { children: [/* @__PURE__ */ G("dt", { children: e.term }), /* @__PURE__ */ G("dd", { children: [e.value, e.download_url ? /* @__PURE__ */ G("span", {class: "confighelp",- children: [" ", /* @__PURE__ */ W("a", {+ children: [" ", /* @__PURE__ */ G("a", {href: e.download_url,target: "_blank",rel: "noreferrer",- children: [e.download_label, /* @__PURE__ */ W("svg", {+ children: [e.download_label, /* @__PURE__ */ G("svg", {"aria-hidden": "true",viewBox: "0 0 24 24",- children: /* @__PURE__ */ W("use", { href: "#i-external-link" })+ children: /* @__PURE__ */ G("use", { href: "#i-external-link" })})]})]}) : null] })] }))@@ -775,8 +775,8 @@ function at({ facts: e }) {});}function ot({ data: t }) {- let [r, i] = V(t.media_sources), [a, o] = V(""), l = U(null);- Re(() => () => l.current?.abort(), []);+ let [r, i] = V(t.media_sources), [a, o] = V(""), l = W(null);+ H(() => () => l.current?.abort(), []);let u = async (e) => {if (l.current) return;let t = new AbortController();@@ -790,41 +790,41 @@ function ot({ data: t }) {l.current = null, c(e, !1);}};- return r ? /* @__PURE__ */ W("section", {+ return r ? /* @__PURE__ */ G("section", {class: "configfieldset","aria-labelledby": "configMountsTitle",- children: [/* @__PURE__ */ W("div", {+ children: [/* @__PURE__ */ G("div", {class: "geist-fieldset-content",children: [- /* @__PURE__ */ W(G, { html: n("configMountsTitle", "挂载状态") }),- /* @__PURE__ */ W("dl", {+ /* @__PURE__ */ G(K, { html: n("configMountsTitle", "挂载状态") }),+ /* @__PURE__ */ G("dl", {class: "configfacts",- children: r.map((t) => /* @__PURE__ */ W(M, { children: [/* @__PURE__ */ W("dt", { children: [/* @__PURE__ */ W("span", {+ children: r.map((t) => /* @__PURE__ */ G(N, { children: [/* @__PURE__ */ G("dt", { children: [/* @__PURE__ */ G("span", {"aria-hidden": "true",dangerouslySetInnerHTML: { __html: s(e[t.location]) }}), {local: "本地磁盘",115: "CloudDrive · 115",pikpak: "CloudDrive · PikPak"- }[t.location] || t.location] }), /* @__PURE__ */ W("dd", { children: [+ }[t.location] || t.location] }), /* @__PURE__ */ G("dd", { children: [t.path || "未配置挂载点"," ",- /* @__PURE__ */ W("span", {+ /* @__PURE__ */ G("span", {class: `configstatus ${t.online === !0 ? "online" : t.online === !1 ? "offline" : "unknown"}`,children: t.online === !0 ? "在线" : t.online === !1 ? "离线" : "未检测"})] })] }))}),- a ? /* @__PURE__ */ W("p", {+ a ? /* @__PURE__ */ G("p", {class: "configbad",role: "alert",children: a}) : null]- }), /* @__PURE__ */ W("div", {+ }), /* @__PURE__ */ G("div", {class: "geist-fieldset-footer","data-geist-fieldset-footer": !0,- children: /* @__PURE__ */ W("button", {+ children: /* @__PURE__ */ G("button", {type: "button",class: "geist-button",onClick: (e) => u(e.currentTarget),@@ -834,8 +834,8 @@ function ot({ data: t }) {}) : null;}function st({ value: t, label: n, onChange: r }) {- let i = U(null), a = U(null), s = U(r);- return s.current = r, H(() => {+ let i = W(null), a = W(null), s = W(r);+ return s.current = r, U(() => {let r = i.current;r.innerHTML = o([["local", "本地磁盘"],@@ -852,9 +852,9 @@ function st({ value: t, label: n, onChange: r }) {return c.addEventListener("change", u), () => {a.current = null, c.disabled = !0, c.removeEventListener("change", u), r.replaceChildren();};- }, [n]), H(() => {+ }, [n]), U(() => {a.current && (a.current.value = t);- }, [t]), /* @__PURE__ */ W("div", {+ }, [t]), /* @__PURE__ */ G("div", {ref: i,class: "configsourcecontrol"});@@ -864,59 +864,59 @@ function ct({ data: e, receipt: t }) {"local","115","pikpak"- ].includes(e.location)), [a, o] = V(r?.length ? r.map((e) => e.path) : e.media_dirs.length ? e.media_dirs : [""]), [s, l] = V(r?.map((e) => e.location) ?? []), [u, d] = V(r?.map((e) => e.root) ?? []), [f, p] = V(String(e.port)), [m, h] = V(!1), [g, _] = V([]), [v, y] = V(""), [b, x] = V(""), [S, C] = V(null), [w, T] = V(null), E = U(!1), D = U(e.revision), O = U([]), k = U(null);- H(() => {+ ].includes(e.location)), [a, o] = V(r?.length ? r.map((e) => e.path) : e.media_dirs.length ? e.media_dirs : [""]), [s, l] = V(r?.map((e) => e.location) ?? []), [u, d] = V(r?.map((e) => e.root) ?? []), [f, p] = V(String(e.port)), [m, h] = V(!1), [g, _] = V([]), [v, y] = V(""), [b, x] = V(""), [S, C] = V(null), [w, T] = V(null), E = W(!1), D = W(e.revision), O = W([]), k = W(null);+ U(() => {w !== null && (O.current[w]?.focus(), T(null));- }, [w]), Re(() => {+ }, [w]), H(() => {if (!S) return;let e = setTimeout(() => location.assign(S.url), nt);return () => clearTimeout(e);}, [S]);- let ee = (e, t) => {+ let A = (e, t) => {o((n) => n.map((n, r) => r === e ? t : n));- }, te = () => {+ }, ee = () => {T(a.length), o((e) => [...e, ""]);- }, A = (e) => {+ }, j = (e) => {l((t) => t.filter((t, n) => n !== e)), d((t) => t.filter((t, n) => n !== e)), o((t) => t.filter((t, n) => n !== e)), _((t) => t.filter((t, n) => n !== e));- }, j = (e, t) => {+ }, M = (e, t) => {_((n) => {let r = [...n];for (; r.length <= e;) r.push("");return r[e] = t, r;});- }, ne = async (e, t) => {+ }, te = async (e, t) => {if (t.getAttribute("aria-busy") !== "true") {c(t, !0);try {let { path: t } = await L(tt, { initial: a[e] ?? "" });- t && (ee(e, t), j(e, ""));+ t && (A(e, t), M(e, ""));} catch (t) {- j(e, F(t));+ M(e, F(t));} finally {c(t, !1);}}};- return S ? /* @__PURE__ */ W("div", {+ return S ? /* @__PURE__ */ G("div", {class: "configsaved",role: "status",- children: /* @__PURE__ */ W("div", {+ children: /* @__PURE__ */ G("div", {class: "geist-note geist-note-success",role: "note",- children: [/* @__PURE__ */ W("svg", {+ children: [/* @__PURE__ */ G("svg", {"aria-hidden": "true",viewBox: "0 0 24 24",- children: /* @__PURE__ */ W("use", { href: "#i-check" })- }), /* @__PURE__ */ W("p", { children: /* @__PURE__ */ W("span", { children: [+ children: /* @__PURE__ */ G("use", { href: "#i-check" })+ }), /* @__PURE__ */ G("p", { children: /* @__PURE__ */ G("span", { children: ["配置已保存,Peach 正在重新启动。稍后自动跳转,或点击",- /* @__PURE__ */ W("a", {+ /* @__PURE__ */ G("a", {href: S.url,children: "进入馆藏"}),"。"] }) })]})- }) : /* @__PURE__ */ W("form", {+ }) : /* @__PURE__ */ G("form", {class: "configfieldset","data-geist-fieldset": !0,"aria-labelledby": "configTitle",@@ -945,67 +945,67 @@ function ct({ data: e, receipt: t }) {}},noValidate: !0,- children: [/* @__PURE__ */ W("div", {+ children: [/* @__PURE__ */ G("div", {class: "geist-fieldset-content",children: [- /* @__PURE__ */ W(G, { html: n("configTitle", "这台电脑") }),- /* @__PURE__ */ W("div", {+ /* @__PURE__ */ G(K, { html: n("configTitle", "这台电脑") }),+ /* @__PURE__ */ G("div", {class: "configfield",children: [- /* @__PURE__ */ W("span", {+ /* @__PURE__ */ G("span", {class: "configlabel",id: "configDirsLabel",children: "媒体文件夹"}),- /* @__PURE__ */ W("div", {+ /* @__PURE__ */ G("div", {class: "configdirs",role: "group","aria-labelledby": "configDirsLabel",- children: a.map((t, n) => /* @__PURE__ */ W("div", {+ children: a.map((t, n) => /* @__PURE__ */ G("div", {class: "configdir",children: [- /* @__PURE__ */ W("span", {+ /* @__PURE__ */ G("span", {class: "configpathlabel",children: ["本机文件夹 ", n + 1]}),- /* @__PURE__ */ W("input", {+ /* @__PURE__ */ G("input", {class: "geist-input",type: "text",value: t,"aria-label": `媒体文件夹 ${n + 1}`,"aria-invalid": g[n] ? "true" : void 0,- onInput: (e) => ee(n, e.currentTarget.value),+ onInput: (e) => A(n, e.currentTarget.value),ref: (e) => {O.current[n] = e;}}),- /* @__PURE__ */ W("button", {+ /* @__PURE__ */ G("button", {type: "button",class: "geist-button configpick","aria-label": "选择文件夹",- onClick: (e) => ne(n, e.currentTarget),- children: /* @__PURE__ */ W("svg", {+ onClick: (e) => te(n, e.currentTarget),+ children: /* @__PURE__ */ G("svg", {viewBox: "0 0 24 24","aria-hidden": "true",- children: /* @__PURE__ */ W("use", { href: "#i-folder-search" })+ children: /* @__PURE__ */ G("use", { href: "#i-folder-search" })})}),- a.length > 1 ? /* @__PURE__ */ W("button", {+ a.length > 1 ? /* @__PURE__ */ G("button", {type: "button",class: "geist-button configrm","aria-label": "移除这个文件夹",- onClick: () => A(n),- children: /* @__PURE__ */ W("svg", {+ onClick: () => j(n),+ children: /* @__PURE__ */ G("svg", {viewBox: "0 0 24 24","aria-hidden": "true",- children: /* @__PURE__ */ W("use", { href: "#i-x" })+ children: /* @__PURE__ */ G("use", { href: "#i-x" })})}) : null,- /* @__PURE__ */ W("div", {+ /* @__PURE__ */ G("div", {class: "configsource",- children: [/* @__PURE__ */ W("div", {+ children: [/* @__PURE__ */ G("div", {class: "configsourcelabel",- children: ["媒体来源", /* @__PURE__ */ W(st, {+ children: ["媒体来源", /* @__PURE__ */ G(st, {label: `媒体来源 ${n + 1}`,value: s[n] || "local",onChange: (e) => {@@ -1013,7 +1013,7 @@ function ct({ data: e, receipt: t }) {t[n] = e, l(t);}})]- }), e.windows === !1 ? /* @__PURE__ */ W("label", { children: ["Windows 中的对应路径", /* @__PURE__ */ W("input", {+ }), e.windows === !1 ? /* @__PURE__ */ G("label", { children: ["Windows 中的对应路径", /* @__PURE__ */ G("input", {class: "geist-input","aria-label": `Windows 中的对应路径 ${n + 1}`,value: u[n] || "",@@ -1024,7 +1024,7 @@ function ct({ data: e, receipt: t }) {}})] }) : null]}),- g[n] ? /* @__PURE__ */ W("p", {+ g[n] ? /* @__PURE__ */ G("p", {class: "configbad",role: "alert",children: g[n]@@ -1032,61 +1032,61 @@ function ct({ data: e, receipt: t }) {]}, n))}),- /* @__PURE__ */ W("button", {+ /* @__PURE__ */ G("button", {type: "button",class: "geist-button configadd",- onClick: te,+ onClick: ee,children: "添加文件夹"}),- s.some((e) => e === "115" || e === "pikpak") ? /* @__PURE__ */ W("p", {+ s.some((e) => e === "115" || e === "pikpak") ? /* @__PURE__ */ G("p", {class: "confighelp",- children: ["先在 CloudDrive 登录网盘并完成挂载。", /* @__PURE__ */ W("a", {+ children: ["先在 CloudDrive 登录网盘并完成挂载。", /* @__PURE__ */ G("a", {href: "https://www.clouddrive2.com/help.html",target: "_blank",rel: "noreferrer",- children: ["挂载帮助", /* @__PURE__ */ W("svg", {+ children: ["挂载帮助", /* @__PURE__ */ G("svg", {"aria-hidden": "true",viewBox: "0 0 24 24",- children: /* @__PURE__ */ W("use", { href: "#i-external-link" })+ children: /* @__PURE__ */ G("use", { href: "#i-external-link" })})]})]}) : null,- s.some((e) => e === "115" || e === "pikpak") ? e.mount_dependencies?.filter((e) => !e.available).map((e) => /* @__PURE__ */ W("p", {+ s.some((e) => e === "115" || e === "pikpak") ? e.mount_dependencies?.filter((e) => !e.available).map((e) => /* @__PURE__ */ G("p", {class: "confighelp",children: ["未检测到 ",e.name,"。",- /* @__PURE__ */ W("a", {+ /* @__PURE__ */ G("a", {href: e.download_url,target: "_blank",rel: "noreferrer",children: ["下载 ",e.name,- /* @__PURE__ */ W("svg", {+ /* @__PURE__ */ G("svg", {"aria-hidden": "true",viewBox: "0 0 24 24",- children: /* @__PURE__ */ W("use", { href: "#i-external-link" })+ children: /* @__PURE__ */ G("use", { href: "#i-external-link" })})]})]})) : null,- e.windows === !1 ? /* @__PURE__ */ W("p", {+ e.windows === !1 ? /* @__PURE__ */ G("p", {class: "confighelp",children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。"}) : null]}),- e.port_editable === !1 ? null : /* @__PURE__ */ W("div", {+ e.port_editable === !1 ? null : /* @__PURE__ */ G("div", {class: "configfield",children: [- /* @__PURE__ */ W("label", {+ /* @__PURE__ */ G("label", {for: "configPort",children: "本机访问端口"}),- /* @__PURE__ */ W("input", {+ /* @__PURE__ */ G("input", {id: "configPort",class: "geist-input",type: "text",@@ -1095,43 +1095,43 @@ function ct({ data: e, receipt: t }) {"aria-invalid": v ? "true" : void 0,onInput: (e) => p(e.currentTarget.value)}),- v ? /* @__PURE__ */ W("p", {+ v ? /* @__PURE__ */ G("p", {class: "configbad",role: "alert",children: v}) : null,- /* @__PURE__ */ W("p", {+ /* @__PURE__ */ G("p", {class: "confighelp",children: "浏览器地址里冒号后面的数字,一般不用改。"})]}),- /* @__PURE__ */ W("label", {+ /* @__PURE__ */ G("label", {class: "configcheck",- children: [/* @__PURE__ */ W("span", {+ children: [/* @__PURE__ */ G("span", {class: "pcheck",- children: [/* @__PURE__ */ W("input", {+ children: [/* @__PURE__ */ G("input", {type: "checkbox",checked: m,onChange: (e) => h(e.currentTarget.checked)- }), /* @__PURE__ */ W("span", {+ }), /* @__PURE__ */ G("span", {"aria-hidden": "true",- children: /* @__PURE__ */ W("svg", {+ children: /* @__PURE__ */ G("svg", {viewBox: "0 0 24 24",- children: /* @__PURE__ */ W("use", { href: "#i-check" })+ children: /* @__PURE__ */ G("use", { href: "#i-check" })})})]- }), /* @__PURE__ */ W("span", { children: "保存后扫描并补全资料" })]+ }), /* @__PURE__ */ G("span", { children: "保存后扫描并补全资料" })]}),- b ? /* @__PURE__ */ W(G, { html: i(b, {+ b ? /* @__PURE__ */ G(K, { html: i(b, {variant: "error",label: "没有保存"}) }) : null]- }), /* @__PURE__ */ W("div", {+ }), /* @__PURE__ */ G("div", {class: "geist-fieldset-footer","data-geist-fieldset-footer": !0,- children: [/* @__PURE__ */ W("p", { children: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。" }), /* @__PURE__ */ W("button", {+ children: [/* @__PURE__ */ G("p", { children: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。" }), /* @__PURE__ */ G("button", {type: "submit",class: "geist-button primary",ref: k,@@ -1141,40 +1141,40 @@ function ct({ data: e, receipt: t }) {});}function lt({ receipt: e, data: t, error: n }) {- return n || !t ? /* @__PURE__ */ W(G, {+ return n || !t ? /* @__PURE__ */ G(K, {class: "configpage",html: i(n || "没有读到配置", {variant: "error",label: "打不开配置"})- }) : /* @__PURE__ */ W("div", {+ }) : /* @__PURE__ */ G("div", {class: "configpage",children: [- t.editable ? /* @__PURE__ */ W(ct, {+ t.editable ? /* @__PURE__ */ G(ct, {data: t,receipt: e- }) : /* @__PURE__ */ W(G, { html: i(t.notice, {+ }) : /* @__PURE__ */ G(K, { html: i(t.notice, {variant: "secondary",label: "只读"}) }),- t.access ? /* @__PURE__ */ W(Ye, {+ t.access ? /* @__PURE__ */ G(Ye, {initial: t.access,receipt: e}) : null,- /* @__PURE__ */ W("section", {+ /* @__PURE__ */ G("section", {id: "libraryProcessing",class: "configfieldset","data-geist-fieldset": !0,"aria-labelledby": "cleanupScrapingTitle",- children: /* @__PURE__ */ W($e, {+ children: /* @__PURE__ */ G($e, {data: t.processing || { status: "idle" },error: "",toast: e,monitor: !0})}),- /* @__PURE__ */ W(at, { facts: t.facts }),- /* @__PURE__ */ W(ot, { data: t })+ /* @__PURE__ */ G(at, { facts: t.facts }),+ /* @__PURE__ */ G(ot, { data: t })]});}@@ -1186,17 +1186,17 @@ function dt() {else {var e, t = !1;for ((function() {- var e = _t;- for (_t = void 0; e !== void 0;) {+ var e = vt;+ for (vt = void 0; e !== void 0;) {var t = e.S;if (t.v === e.v) for (var n = t.t; n !== void 0; n = n.x) n.i === e.i && (n.i = t.i);e = e.o;}- })(); J !== void 0;) {- var n = J;- for (J = void 0, mt++; n !== void 0;) {+ })(); mt !== void 0;) {+ var n = mt;+ for (mt = void 0, ht++; n !== void 0;) {var r = n.u;- if (n.u = void 0, n.f &= -3, !(8 & n.f) && xt(n)) try {+ if (n.u = void 0, n.f &= -3, !(8 & n.f) && St(n)) try {n.c();} catch (n) {t ||= (e = n, !0);@@ -1204,43 +1204,43 @@ function dt() {n = r;}}- if (mt = 0, Y--, t) throw e;+ if (ht = 0, Y--, t) throw e;}}function ft(e) {if (Y > 0) return e();- gt = ++ht, Y++;+ _t = ++gt, Y++;try {return e();} finally {dt();}}-var K, q = void 0;+var q, J = void 0;function pt(e) {- var t = q, n = K;- q = void 0, K = void 0;+ var t = J, n = q;+ J = void 0, q = void 0;try {return e();} finally {- q = t, K = n;+ J = t, q = n;}}-var J = void 0, Y = 0, mt = 0, ht = 0, gt = 0, _t = void 0, vt = 0;-function yt(e) {- if (q !== void 0) {+var mt = void 0, Y = 0, ht = 0, gt = 0, _t = 0, vt = void 0, yt = 0;+function bt(e) {+ if (J !== void 0) {var t = e.n;- if (t === void 0 || t.t !== q) return t = {+ if (t === void 0 || t.t !== J) return t = {i: 0,S: e,- p: q.s,+ p: J.s,n: void 0,- t: q,+ t: J,e: void 0,x: void 0,r: t- }, q.s !== void 0 && (q.s.n = t), q.s = t, e.n = t, 32 & q.f && e.S(t), t;- if (t.i === -1) return t.i = 0, t.n !== void 0 && (t.n.p = t.p, t.p !== void 0 && (t.p.n = t.n), t.p = q.s, t.n = void 0, q.s.n = t, q.s = t), t;+ }, J.s !== void 0 && (J.s.n = t), J.s = t, e.n = t, 32 & J.f && e.S(t), t;+ if (t.i === -1) return t.i = 0, t.n !== void 0 && (t.n.p = t.p, t.p !== void 0 && (t.p.n = t.n), t.p = J.s, t.n = void 0, J.s.n = t, J.s = t), t;}}function X(e, t) {@@ -1265,7 +1265,7 @@ X.prototype.brand = ut, X.prototype.h = function() {}}, X.prototype.subscribe = function(e) {var t = this;- return Ot(function() {+ return kt(function() {var n = t.value;pt(function() {return e(n);@@ -1284,20 +1284,20 @@ X.prototype.brand = ut, X.prototype.h = function() {});}, Object.defineProperty(X.prototype, "value", {get: function() {- var e = yt(this);+ var e = bt(this);return e !== void 0 && (e.i = this.i), this.v;},set: function(e) {if (e !== this.v) {- if (mt > 100) throw Error("Cycle detected");+ if (ht > 100) throw Error("Cycle detected");(function(e) {- Y !== 0 && mt === 0 && e.l !== gt && (e.l = gt, _t = {+ Y !== 0 && ht === 0 && e.l !== _t && (e.l = _t, vt = {S: e,v: e.v,i: e.i,- o: _t+ o: vt});- })(this), this.v = e, this.i++, vt++, Y++;+ })(this), this.v = e, this.i++, yt++, Y++;try {for (var t = this.t; t !== void 0; t = t.x) t.t.N();} finally {@@ -1306,14 +1306,14 @@ X.prototype.brand = ut, X.prototype.h = function() {}}});-function bt(e, t) {+function xt(e, t) {return new X(e, t);}-function xt(e) {+function St(e) {for (var t = e.s; t !== void 0; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return !0;return !1;}-function St(e) {+function Ct(e) {for (var t = e.s; t !== void 0; t = t.n) {var n = t.S.n;if (n !== void 0 && (t.r = n), t.S.n = t, t.i = -1, t.n === void 0) {@@ -1322,7 +1322,7 @@ function St(e) {}}}-function Ct(e) {+function wt(e) {for (var t = e.s, n = void 0; t !== void 0;) {var r = t.p;t.i === -1 ? (t.S.U(t), r !== void 0 && (r.n = t.n), t.n !== void 0 && (t.n.p = r)) : n = t, t.S.n = t.r, t.r !== void 0 && (t.r = void 0), t = r;@@ -1330,21 +1330,21 @@ function Ct(e) {e.s = n;}function Z(e, t) {- X.call(this, void 0, t), this.x = e, this.s = void 0, this.g = vt - 1, this.f = 4;+ X.call(this, void 0, t), this.x = e, this.s = void 0, this.g = yt - 1, this.f = 4;}Z.prototype = new X(), Z.prototype.h = function() {if (this.f &= -3, 1 & this.f) return !1;- if ((36 & this.f) == 32 || (this.f &= -5, this.g === vt)) return !0;- if (this.g = vt, this.f |= 1, this.i > 0 && !xt(this)) return this.f &= -2, !0;- var e = q;+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === yt)) return !0;+ if (this.g = yt, this.f |= 1, this.i > 0 && !St(this)) return this.f &= -2, !0;+ var e = J;try {- St(this), q = this;+ Ct(this), J = this;var t = this.x();(16 & this.f || this.v !== t || this.i === 0) && (this.v = t, this.f &= -17, this.i++);} catch (e) {this.v = e, this.f |= 16, this.i++;}- return q = e, Ct(this), this.f &= -2, !0;+ return J = e, wt(this), this.f &= -2, !0;}, Z.prototype.S = function(e) {if (this.t === void 0) {this.f |= 36;@@ -1363,38 +1363,38 @@ Z.prototype = new X(), Z.prototype.h = function() {}}, Object.defineProperty(Z.prototype, "value", { get: function() {if (1 & this.f) throw Error("Cycle detected");- var e = yt(this);+ var e = bt(this);if (this.h(), e !== void 0 && (e.i = this.i), 16 & this.f) throw this.v;return this.v;} });-function wt(e, t) {+function Tt(e, t) {return new Z(e, t);}-function Tt(e) {+function Et(e) {var t = e.m;if (e.m = void 0, typeof t == "function") {Y++;- var n = q;- q = void 0;+ var n = J;+ J = void 0;try {t();} catch (t) {- throw e.f &= -2, e.f |= 8, Et(e), t;+ throw e.f &= -2, e.f |= 8, Dt(e), t;} finally {- q = n, dt();+ J = n, dt();}}}-function Et(e) {+function Dt(e) {for (var t = e.s; t !== void 0; t = t.n) t.S.U(t);- e.x = void 0, e.s = void 0, Tt(e);+ e.x = void 0, e.s = void 0, Et(e);}-function Dt(e) {- if (q !== this) throw Error("Out-of-order effect");- Ct(this), q = e, this.f &= -2, 8 & this.f && Et(this), dt();+function Ot(e) {+ if (J !== this) throw Error("Out-of-order effect");+ wt(this), J = e, this.f &= -2, 8 & this.f && Dt(this), dt();}function Q(e, t) {- this.x = e, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name, K && K.push(this);+ this.x = e, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name, q && q.push(this);}Q.prototype.c = function() {var e = this.S();@@ -1407,17 +1407,17 @@ Q.prototype.c = function() {}}, Q.prototype.S = function() {if (1 & this.f) throw Error("Cycle detected");- this.f |= 1, this.f &= -9, Tt(this), St(this), Y++;- var e = q;- return q = this, Dt.bind(this, e);+ this.f |= 1, this.f &= -9, Et(this), Ct(this), Y++;+ var e = J;+ return J = this, Ot.bind(this, e);}, Q.prototype.N = function() {- 2 & this.f || (this.f |= 2, this.u = J, J = this);+ 2 & this.f || (this.f |= 2, this.u = mt, mt = this);}, Q.prototype.d = function() {- this.f |= 8, 1 & this.f || Et(this);+ this.f |= 8, 1 & this.f || Dt(this);}, Q.prototype.dispose = function() {this.d();};-function Ot(e, t) {+function kt(e, t) {var n = new Q(e, t);try {n.c();@@ -1429,35 +1429,35 @@ function Ot(e, t) {}//#endregion//#region node_modules/@preact/signals/dist/signals.module.js-var kt, At, jt = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, Mt = [];-Ot(function() {- kt = this.N;+var At, jt, Mt = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, Nt = [];+kt(function() {+ At = this.N;})();function $(e, t) {- m[e] = t.bind(null, m[e] || function() {});+ h[e] = t.bind(null, h[e] || function() {});}-function Nt(e) {- if (At) {- var t = At;- At = void 0, t();+function Pt(e) {+ if (jt) {+ var t = jt;+ jt = void 0, t();}- At = e && e.S();+ jt = e && e.S();}-function Pt(e) {- var t = this, n = e.data, r = It(n);+function Ft(e) {+ var t = this, n = e.data, r = Lt(n);r.name = "ReactiveDom", r.value = n;var i = ze(function() {for (var e = t, n = t.__v; n = n.__;) if (n.__c) {n.__c.__$f |= 4;break;}- var i = wt(function() {+ var i = Tt(function() {var e = r.value.value;return e === 0 ? 0 : !0 === e ? "" : e || "";- }), a = wt(function() {- return !Array.isArray(i.value) && !g(i.value);- }), o = Ot(function() {- if (this.N = zt, a.value) {+ }), a = Tt(function() {+ return !Array.isArray(i.value) && !_(i.value);+ }), o = kt(function() {+ if (this.N = Bt, a.value) {var t = i.value;e.__v && e.__v.__e && e.__v.__e.nodeType === 3 && (e.__v.__e.data = t);}@@ -1468,14 +1468,14 @@ function Pt(e) {}, []), a = i[0], o = i[1];return a.value ? o.peek() : o.value;}-Pt.displayName = "ReactiveTextNode", Object.defineProperties(X.prototype, {+Ft.displayName = "ReactiveTextNode", Object.defineProperties(X.prototype, {constructor: {configurable: !0,value: void 0},type: {configurable: !0,- value: Pt+ value: Ft},props: {configurable: !0,@@ -1500,25 +1500,25 @@ Pt.displayName = "ReactiveTextNode", Object.defineProperties(X.prototype, {}e(t);}), $("__r", function(e, t) {- if (e(t), t.type !== M) {- Nt();+ if (e(t), t.type !== N) {+ Pt();var n, r = t.__c;r && (r.__$f &= -2, (n = r.__$u) === void 0 && (r.__$u = n = function(e, t) {var n;- return Ot(function() {+ return kt(function() {n = this;}, { name: t }), n.c = e, n;}(function(e) {return function() {var t;- jt && ((t = this.y) == null || t.call(this)), e.__$f |= 1, e.setState({});+ Mt && ((t = this.y) == null || t.call(this)), e.__$f |= 1, e.setState({});};- }(r), typeof t.type == "function" ? t.type.displayName || t.type.name : ""))), Nt(n);+ }(r), typeof t.type == "function" ? t.type.displayName || t.type.name : ""))), Pt(n);}}), $("__e", function(e, t, n, r) {- Nt(), e(t, n, r);+ Pt(), e(t, n, r);}), $("diffed", function(e, t) {- Nt();+ Pt();var n;if (typeof t.type == "string" && (n = t.__e)) {var r = t.__np, i = t.props, a = n.U;@@ -1528,19 +1528,19 @@ Pt.displayName = "ReactiveTextNode", Object.defineProperties(X.prototype, {}if (r) for (var c in a || (a = {}, n.U = a), r) {var l = a[c], u = r[c];- l === void 0 ? (l = Ft(n, c, u, i), a[c] = l) : l.o(u, i);+ l === void 0 ? (l = It(n, c, u, i), a[c] = l) : l.o(u, i);}}e(t);});-function Ft(e, t, n, r) {- var i = t in e && e.ownerSVGElement === void 0, a = bt(n);+function It(e, t, n, r) {+ var i = t in e && e.ownerSVGElement === void 0, a = xt(n);return {o: function(e, t) {a.value = e, r = t;},- d: Ot(function() {- this.N = zt;+ d: kt(function() {+ this.N = Bt;var n = a.value.value;r[t] !== n && (r[t] = n, i ? e[t] = n : n != null && (!1 !== n || t[4] === "-") ? e.setAttribute(t, n) : e.removeAttribute(t));})@@ -1572,7 +1572,7 @@ $("unmount", function(e, t) {e(t);}), $("__h", function(e, t, n, r) {r < 3 && (t.__$f |= 2), e(t, n, r);-}), N.prototype.shouldComponentUpdate = function(e, t) {+}), ie.prototype.shouldComponentUpdate = function(e, t) {if (this.__R) return !0;var n = this.__$u, r = n && n.s !== void 0;for (var i in t) return !0;@@ -1584,44 +1584,44 @@ $("unmount", function(e, t) {for (var s in this.props) if (!(s in e)) return !0;return !1;};-function It(e, t) {+function Lt(e, t) {return ze(function() {- return bt(e, t);+ return xt(e, t);}, []);}-var Lt = function(e) {+var Rt = function(e) {queueMicrotask(function() {queueMicrotask(e);});};-function Rt() {+function zt() {ft(function() {- for (var e; e = Mt.shift();) kt.call(e);+ for (var e; e = Nt.shift();) At.call(e);});}-function zt() {- Mt.push(this) === 1 && (m.requestAnimationFrame || Lt)(Rt);+function Bt() {+ Nt.push(this) === 1 && (h.requestAnimationFrame || Rt)(zt);}//#endregion//#region src/state/quality-goals.ts-var Bt = "/api/quality-goals?limit=200", Vt = {+var Vt = "/api/quality-goals?limit=200", Ht = {data: null,error: ""-}, Ht = bt(Vt), Ut = 0, Wt = wt(() => Ht.value);-wt(() => Ht.value.data?.total ?? null);-function Gt() {- Ut += 1, Ht.value = Vt;+}, Ut = xt(Ht), Wt = 0, Gt = Tt(() => Ut.value);+Tt(() => Ut.value.data?.total ?? null);+function Kt() {+ Wt += 1, Ut.value = Ht;}-async function Kt(e) {- let t = Ut += 1;+async function qt(e) {+ let t = Wt += 1;try {- let n = await I(Bt, e);- return t === Ut && (Ht.value = {+ let n = await I(Vt, e);+ return t === Wt && (Ut.value = {data: n,error: ""}), n;} catch (n) {- throw !e?.aborted && t === Ut && (Ht.value = {+ throw !e?.aborted && t === Wt && (Ut.value = {data: null,error: F(n)}), n;@@ -1629,10 +1629,10 @@ async function Kt(e) {}//#endregion//#region src/islands/quality-goals.tsx-var qt = (e, t) => Kt(t), Jt = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;-function Yt({ openItem: e, javTitleHtml: n, javDisplayName: r, srcBadge: a }) {- let { data: o, error: s } = Wt.value;- if (s) return /* @__PURE__ */ W("div", {+var Jt = (e, t) => qt(t), Yt = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;+function Xt({ openItem: e, javTitleHtml: n, javDisplayName: r, srcBadge: a }) {+ let { data: o, error: s } = Gt.value;+ if (s) return /* @__PURE__ */ G("div", {class: "qualitylist",dangerouslySetInnerHTML: { __html: i(s, {variant: "error",@@ -1640,54 +1640,54 @@ function Yt({ openItem: e, javTitleHtml: n, javDisplayName: r, srcBadge: a }) {}) }});let c = o?.items ?? [];- return c.length ? /* @__PURE__ */ W("div", {+ return c.length ? /* @__PURE__ */ G("div", {class: "qualitylist",- children: c.map((t) => /* @__PURE__ */ W("article", {+ children: c.map((t) => /* @__PURE__ */ G("article", {class: "qualityitem",- children: [/* @__PURE__ */ W("button", {+ children: [/* @__PURE__ */ G("button", {class: "qualitycover",type: "button","aria-label": `打开 ${r(t)}`,onClick: () => e(t.id),- children: /* @__PURE__ */ W("img", {- src: Jt(t),+ children: /* @__PURE__ */ G("img", {+ src: Yt(t),alt: "",loading: "lazy",onError: (e) => e.currentTarget.remove()})- }), /* @__PURE__ */ W("div", { children: [- /* @__PURE__ */ W("h3", { children: /* @__PURE__ */ W("button", {+ }), /* @__PURE__ */ G("div", { children: [+ /* @__PURE__ */ G("h3", { children: /* @__PURE__ */ G("button", {type: "button","data-middle-truncate": !0,onClick: () => e(t.id),dangerouslySetInnerHTML: { __html: n(t) }}) }),- /* @__PURE__ */ W("p", {+ /* @__PURE__ */ G("p", {class: "mono",children: [- /* @__PURE__ */ W("span", {+ /* @__PURE__ */ G("span", {style: "display:contents",dangerouslySetInnerHTML: { __html: a(t.location, t.cost) }}),- /* @__PURE__ */ W("span", { children: u[t.location] ?? t.location }),- /* @__PURE__ */ W("span", { children: d(t.duration) }),- /* @__PURE__ */ W("span", { children: f(t.size ?? 0) })+ /* @__PURE__ */ G("span", { children: u[t.location] ?? t.location }),+ /* @__PURE__ */ G("span", { children: f(t.duration) }),+ /* @__PURE__ */ G("span", { children: p(t.size ?? 0) })]}),- t.reason ? /* @__PURE__ */ W("p", { children: t.reason }) : null+ t.reason ? /* @__PURE__ */ G("p", { children: t.reason }) : null] })]}, t.id))- }) : /* @__PURE__ */ W("div", {+ }) : /* @__PURE__ */ G("div", {class: "qualitylist",dangerouslySetInnerHTML: { __html: t("sparkles", "没有标记中的高清版目标", "现有版本都已满足条件,或还没有加入追踪。") }});}//#endregion//#region src/islands/scraping.tsx-var Xt = (e, t) => I("/api/scraping", t);-function Zt({ value: e, onChange: t }) {- let n = U(null), r = U(t);- return r.current = t, H(() => {+var Zt = (e, t) => I("/api/scraping", t);+function Qt({ value: e, onChange: t }) {+ let n = W(null), r = W(t);+ return r.current = t, U(() => {let t = n.current;t.innerHTML = o([["environment", "系统代理"],@@ -1698,138 +1698,152 @@ function Zt({ value: e, onChange: t }) {return i.addEventListener("change", a), () => {i.disabled = !0, i.removeEventListener("change", a), t.replaceChildren();};- }, []), /* @__PURE__ */ W("div", {+ }, []), /* @__PURE__ */ G("div", {ref: n,class: "scraping-network"});}-function Qt({ source: e, toast: t }) {- let [r, a] = V(e), [o, s] = V(e.network), [l, u] = V(""), [d, f] = V(""), [p, m] = V(""), [h, g] = V("paste"), [_, v] = V(""), [y, b] = V(!1), [x, S] = V(""), [C, w] = V([]), T = U(null), E = U(null);- H(() => {- E.current?.querySelectorAll("footer button").forEach((e) => c(e, y));- }, [y]);- let D = U(new AbortController());- Re(() => () => D.current.abort(), []);- async function O(n) {- if (!y) {- b(!0), S(""), w([]);+function $t({ source: e, toast: t }) {+ let [r, a] = V(e), [o, s] = V(e.network), [l, u] = V(""), [f, p] = V(""), [m, h] = V(""), [g, _] = V("paste"), [v, y] = V(""), [b, x] = V(!1), [S, C] = V(""), [w, T] = V([]), E = W(null), D = W(null);+ U(() => {+ D.current?.querySelectorAll("footer button").forEach((e) => c(e, b));+ }, [b]);+ let O = W(new AbortController());+ H(() => () => O.current.abort(), []);+ async function k(n) {+ if (!b) {+ x(!0), C(""), T([]);try {if (n === "check") {- let t = await L("/api/scraping/check", { source: e.source }, "POST", D.current.signal);- D.current.signal.aborted || w(t.results);+ let t = await L("/api/scraping/check", { source: e.source }, "POST", O.current.signal);+ O.current.signal.aborted || T(t.results);} else {let r = await L("/api/scraping/settings", {source: e.source,network: o,proxy: l,- cookie: d,- cookies_text: p,+ cookie: f,+ cookies_text: m,revoke: n === "revoke"- }, "POST", D.current.signal);- D.current.signal.aborted || (a(r.saved), u(""), f(""), m(""), v(""), T.current && (T.current.value = ""), t(n === "revoke" ? "Cookie 已撤销" : "来源设置已保存"));+ }, "POST", O.current.signal);+ O.current.signal.aborted || (a(r.saved), u(""), p(""), h(""), y(""), E.current && (E.current.value = ""), t(n === "revoke" ? "Cookie 已撤销" : "来源设置已保存"));}} catch (e) {- D.current.signal.aborted || S(F(e));+ O.current.signal.aborted || C(F(e));} finally {- D.current.signal.aborted || b(!1);+ O.current.signal.aborted || x(!1);}}}- return /* @__PURE__ */ W("section", {+ return /* @__PURE__ */ G("section", {class: "scraping-source",- children: /* @__PURE__ */ W("form", {- ref: E,+ children: /* @__PURE__ */ G("form", {+ ref: D,class: "cleanupfieldset","data-geist-fieldset": !0,onSubmit: (e) => {- e.preventDefault(), O("save");+ e.preventDefault(), k("save");},- children: [/* @__PURE__ */ W("div", {+ children: [/* @__PURE__ */ G("div", {class: "geist-fieldset-content scraping-fields",children: [- /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: n(`scraping-${e.source}`, e.label) } }),- /* @__PURE__ */ W("a", {+ /* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: n(`scraping-${e.source}`, e.label) } }),+ /* @__PURE__ */ G("a", {class: "scraping-url",href: e.login,target: "_blank",rel: "noopener noreferrer",- children: e.login+ children: [+ /* @__PURE__ */ G("img", {+ src: d(e.login),+ alt: "",+ width: "16",+ height: "16",+ loading: "lazy",+ onError: (e) => e.currentTarget.remove()+ }),+ /* @__PURE__ */ G("span", { children: e.login }),+ /* @__PURE__ */ G("svg", {+ "aria-hidden": "true",+ children: /* @__PURE__ */ G("use", { href: "#i-external-link" })+ })+ ]}),- /* @__PURE__ */ W("div", {+ /* @__PURE__ */ G("div", {class: "scraping-label",- children: ["连接方式", /* @__PURE__ */ W(Zt, {+ children: ["连接方式", /* @__PURE__ */ G(Qt, {value: o,onChange: s})]}),- o === "proxy" && /* @__PURE__ */ W("label", { children: ["代理地址", /* @__PURE__ */ W("input", {+ o === "proxy" && /* @__PURE__ */ G("label", { children: ["代理地址", /* @__PURE__ */ G("input", {class: "geist-input",type: "password",autoComplete: "off",value: l,placeholder: r.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890",- disabled: y,+ disabled: b,onInput: (e) => u(e.currentTarget.value)})] }),- e.accepts_cookie && /* @__PURE__ */ W(M, { children: [- /* @__PURE__ */ W("p", { children: r.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。" }),- /* @__PURE__ */ W("div", {+ e.accepts_cookie && /* @__PURE__ */ G(N, { children: [+ /* @__PURE__ */ G("p", { children: r.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。" }),+ /* @__PURE__ */ G("div", {class: "insightswitch scraping-cookie-method",role: "radiogroup","aria-label": "提供 Cookie 的方式(二选一)",- children: [["paste", "粘贴 Cookie"], ["file", "导入文件"]].map(([t, n]) => /* @__PURE__ */ W("label", { children: [/* @__PURE__ */ W("input", {+ children: [["paste", "粘贴 Cookie"], ["file", "导入文件"]].map(([t, n]) => /* @__PURE__ */ G("label", { children: [/* @__PURE__ */ G("input", {type: "radio",name: `cookie-method-${e.source}`,value: t,- checked: h === t,+ checked: g === t,onChange: () => {- g(t), f(""), m(""), v("");+ _(t), p(""), h(""), y("");}- }), /* @__PURE__ */ W("span", { children: n })] }, t))+ }), /* @__PURE__ */ G("span", { children: n })] }, t))}),- h === "paste" ? /* @__PURE__ */ W("label", { children: ["Cookie", /* @__PURE__ */ W("input", {+ g === "paste" ? /* @__PURE__ */ G("label", { children: ["Cookie", /* @__PURE__ */ G("input", {class: "geist-input",type: "password",autoComplete: "off",- value: d,- disabled: y,- onInput: (e) => f(e.currentTarget.value)- })] }) : /* @__PURE__ */ W("label", {+ value: f,+ disabled: b,+ onInput: (e) => p(e.currentTarget.value)+ })] }) : /* @__PURE__ */ G("label", {class: "scraping-file",- children: ["Netscape Cookie 文件(.txt)", /* @__PURE__ */ W("span", {+ children: ["Netscape Cookie 文件(.txt)", /* @__PURE__ */ G("span", {class: "scraping-file-control",children: [- /* @__PURE__ */ W("span", {+ /* @__PURE__ */ G("span", {class: "geist-button",children: "选择文件"}),- /* @__PURE__ */ W("span", {+ /* @__PURE__ */ G("span", {class: "scraping-file-name",- children: _ || "未选择文件"+ children: v || "未选择文件"}),- /* @__PURE__ */ W("input", {- ref: T,+ /* @__PURE__ */ G("input", {+ ref: E,type: "file",accept: ".txt",- disabled: y,+ disabled: b,onChange: async (e) => {let t = e.currentTarget.files?.[0];if (!t) {- m(""), v("");+ h(""), y("");return;}- if (m(""), t.size > 262144) {- S("Cookie 文本超过 256 KiB"), e.currentTarget.value = "";+ if (h(""), t.size > 262144) {+ C("Cookie 文本超过 256 KiB"), e.currentTarget.value = "";return;}- b(!0);+ x(!0);try {let e = await t.text();- D.current.signal.aborted || (m(e), v(t.name));+ O.current.signal.aborted || (h(e), y(t.name));} catch {- D.current.signal.aborted || S("Cookie 文件未读取,请重新选择");+ O.current.signal.aborted || C("Cookie 文件未读取,请重新选择");} finally {- D.current.signal.aborted || b(!1);+ O.current.signal.aborted || x(!1);}}})@@ -1837,45 +1851,45 @@ function Qt({ source: e, toast: t }) {})]})] }),- x && /* @__PURE__ */ W("div", {+ S && /* @__PURE__ */ G("div", {role: "alert",- dangerouslySetInnerHTML: { __html: i(x, { variant: "error" }) }+ dangerouslySetInnerHTML: { __html: i(S, { variant: "error" }) }}),- C.map((t) => /* @__PURE__ */ W("div", {+ w.map((t) => /* @__PURE__ */ G("div", {role: "status",dangerouslySetInnerHTML: { __html: i(`${e.label}${t.label === "来源页面" ? "" : " 高清图片"}:${t.ok ? "可连接" : "不能连接"}` + (t.width ? ` · ${t.width} × ${t.height}` : "") + (t.message ? `。${t.message}` : ""), { variant: t.ok ? "success" : "error" }) }}, t.label))]- }), /* @__PURE__ */ W("footer", {+ }), /* @__PURE__ */ G("footer", {class: "geist-fieldset-footer","data-geist-fieldset-footer": !0,children: [- /* @__PURE__ */ W("button", {- class: "geist-button primary",- type: "submit",- children: "保存"- }),- /* @__PURE__ */ W("button", {+ e.accepts_cookie && r.cookie_saved && /* @__PURE__ */ G("button", {class: "geist-button",type: "button",- onClick: () => void O("check"),- children: "检查连接"+ onClick: () => void k("revoke"),+ children: "撤销 Cookie"}),- e.accepts_cookie && r.cookie_saved && /* @__PURE__ */ W("button", {+ /* @__PURE__ */ G("button", {class: "geist-button",type: "button",- onClick: () => void O("revoke"),- children: "撤销 Cookie"+ onClick: () => void k("check"),+ children: "检查连接"+ }),+ /* @__PURE__ */ G("button", {+ class: "geist-button primary",+ type: "submit",+ children: "保存"})]})]})});}-function $t({ data: e, error: t, toast: r }) {- let [a, o] = V(""), [s, l] = V(!1), [u, d] = V(""), f = U(null);- H(() => c(f.current, s), [s]);- let p = U(new AbortController()), m = U(0);+function en({ data: e, error: t, toast: r }) {+ let [a, o] = V(""), [s, l] = V(!1), [u, d] = V(""), f = W(null);+ U(() => c(f.current, s), [s]);+ let p = W(new AbortController()), m = W(0);async function h(e = !1) {let t = ++m.current;await Xe({@@ -1887,7 +1901,7 @@ function $t({ data: e, error: t, toast: r }) {disconnected: () => d("连接中断,正在重新读取后台进度")});}- Re(() => (h(!0), () => p.current.abort()), []);+ H(() => (h(!0), () => p.current.abort()), []);async function g() {if (!s) {m.current++, l(!0), d("");@@ -1898,26 +1912,26 @@ function $t({ data: e, error: t, toast: r }) {}}}- return t ? /* @__PURE__ */ W("div", {+ return t ? /* @__PURE__ */ G("div", {role: "alert",dangerouslySetInnerHTML: { __html: i(t, { variant: "error" }) }- }) : /* @__PURE__ */ W("div", {+ }) : /* @__PURE__ */ G("div", {class: "scraping-page",children: [- /* @__PURE__ */ W("p", { children: "高清图片可能需要代理才能下载,请先检查连接。" }),- /* @__PURE__ */ W("section", {+ /* @__PURE__ */ G("p", { children: "高清图片可能需要代理才能下载,请先检查连接。" }),+ /* @__PURE__ */ G("section", {class: "cleanupfieldset scraping-source","data-geist-fieldset": !0,- children: /* @__PURE__ */ W("div", {+ children: /* @__PURE__ */ G("div", {class: "geist-fieldset-content scraping-fields",children: [- /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: n("scraping-cover", "高清封面") } }),- /* @__PURE__ */ W("form", {+ /* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: n("scraping-cover", "高清封面") } }),+ /* @__PURE__ */ G("form", {class: "scraping-cover-form",onSubmit: (e) => {e.preventDefault(), g();},- children: [/* @__PURE__ */ W("input", {+ children: [/* @__PURE__ */ G("input", {class: "geist-input","aria-label": "馆藏番号",required: !0,@@ -1925,21 +1939,21 @@ function $t({ data: e, error: t, toast: r }) {disabled: s,placeholder: "输入馆藏番号,如 ABW-232",onInput: (e) => o(e.currentTarget.value)- }), /* @__PURE__ */ W("button", {+ }), /* @__PURE__ */ G("button", {ref: f,class: "geist-button primary",type: "submit",children: "抓取封面"})]}),- u && /* @__PURE__ */ W("div", {+ u && /* @__PURE__ */ G("div", {role: "alert",dangerouslySetInnerHTML: { __html: i(u, { variant: "error" }) }})]})}),- e?.sources.map((e) => /* @__PURE__ */ W(Qt, {+ e?.sources.map((e) => /* @__PURE__ */ G($t, {source: e,toast: r}, e.source))@@ -1948,12 +1962,12 @@ function $t({ data: e, error: t, toast: r }) {}//#endregion//#region src/state/index.ts-var en = { "quality-goals": {- refresh: Kt,- reset: Gt-} }, tn = () => Object.keys(en);-async function nn(e) {- let t = en[e];+var tn = { "quality-goals": {+ refresh: qt,+ reset: Kt+} }, nn = () => Object.keys(tn);+async function rn(e) {+ let t = tn[e];if (!t) throw Error(`未登记的共享 store:${String(e)}`);try {return await t.refresh(), !0;@@ -1963,10 +1977,10 @@ async function nn(e) {}//#endregion//#region src/native-image.ts-function rn(e, t, n, r) {+function an(e, t, n, r) {return e > 0 && t > 0 && e === n && t === r;}-function an(e, t, n, r, i = 1) {+function on(e, t, n, r, i = 1) {let a = Number.isFinite(i) && i > 0 ? i : 1;e /= a, t /= a;let o = [@@ -1983,7 +1997,7 @@ function an(e, t, n, r, i = 1) {}//#endregion//#region src/entity-skeleton.ts-function on(e, t) {+function sn(e, t) {return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料"><span class="sr-only">正在读取资料</span><div aria-hidden="true"><div class="entityhero"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>@@ -1995,7 +2009,7 @@ function on(e, t) {}//#endregion//#region src/catalog-onboarding.ts-var sn = [+var cn = ["loc","creator","performer",@@ -2012,7 +2026,7 @@ var sn = ["jav","thumb"];-function cn() {+function ln() {let e = (e) => [,,@@ -2023,9 +2037,9 @@ function cn() {tags: "<span class=\"catalog-placeholder placeholder-tags\" aria-hidden=\"true\">" + e("<span class=\"pill\"> </span>") + "</span>"};}-async function ln(e, t) {+async function un(e, t) {let n = new URLSearchParams();- for (let t of sn) e[t] && n.set(t, e[t]);+ for (let t of cn) e[t] && n.set(t, e[t]);let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([...r.creators || [],...r.tagperformers || [],@@ -2036,7 +2050,7 @@ async function ln(e, t) {return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";}))).filter(Boolean);}-function un({ kind: e = "catalog", filtered: n = !1, jav: r = !1, configurable: i = !1, online: a = !1 } = {}) {+function dn({ kind: e = "catalog", filtered: n = !1, jav: r = !1, configurable: i = !1, online: a = !1 } = {}) {let o = i ? "<a class=\"geist-button primary\" href=\"/configuration\">添加内容</a>" : "", s = "<a class=\"geist-button\" href=\"/follow-manage\">添加来源</a>";return n || r ? t("search", r ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", r ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" }) : e === "catalog" ? t("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: o + s }) : t(e === "tags" ? "tags" : "user-round", "还没有" + ({tags: "标签",@@ -2049,7 +2063,7 @@ function un({ kind: e = "catalog", filtered: n = !1, jav: r = !1, configurable:}//#endregion//#region src/sidebar.ts-function dn(e) {+function fn(e) {return ["/","/unseen",@@ -2059,23 +2073,23 @@ function dn(e) {"/junk-files"].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);}-function fn(e, t) {+function pn(e, t) {return e.dataset.surface === t && e.querySelector(".dnav") ? !1 : (e.dataset.surface = t, e.replaceChildren(), !0);}-function pn(e) {+function mn(e) {let t = /* @__PURE__ */ new Map();for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);}//#endregion//#region src/management.ts-function mn(e) {+function hn(e) {return e.filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location);}-function hn(e, t) {+function gn(e, t) {return t.filter((t) => e.some((e) => e.location === t));}-function gn() {+function _n() {return `<div class="cleanuppage" data-skeleton="cleanup" aria-busy="true" aria-label="正在读取数据管理状态"><div class="cleanupgrid">${[[@@ -2121,7 +2135,7 @@ function gn() {<footer class="geist-fieldset-footer" data-geist-fieldset-footer><button type="button"${r === 3 ? " class=\"danger\"" : ""} disabled>${r === 3 ? "<svg aria-hidden=\"true\"><use href=\"#i-trash\"></use></svg><span>" + t + "</span>" : t}</button></footer></section>`).join("")}</div></div>`;}-function _n(e, t = !1, n = !1) {+function vn(e, t = !1, n = !1) {if (t || n) return "";let r = "<svg aria-hidden=\"true\"><use href=\"#i-external-link\"></use></svg>";return `<details class="taste-history-guide"${e ? " open" : ""}>@@ -2135,69 +2149,69 @@ function _n(e, t = !1, n = !1) {<button type="button" class="geist-button taste-guide-skip">跳过</button></div></details>`;}-var vn = "peach-taste-guide-dismissed";-function yn(e, t) {+var yn = "peach-taste-guide-dismissed";+function bn(e, t) {let n = e.querySelector(".taste-history-guide");n?.querySelector(".taste-guide-skip")?.addEventListener("click", () => {- t.setItem(vn, "1"), n.remove();+ t.setItem(yn, "1"), n.remove();});}//#endregion//#region src/jav-artwork.ts-function bn(e) {+function xn(e) {return ["small","sleeve","preview"].includes(String(e)) ? "small" : "big";}-function xn(e) {+function Sn(e) {return {- javLayout: bn(e.javLayout),- javImage: Sn(e.javLayout === "preview" ? "thumbnail" : e.javImage)+ javLayout: xn(e.javLayout),+ javImage: Cn(e.javLayout === "preview" ? "thumbnail" : e.javImage)};}-function Sn(e) {+function Cn(e) {return e === "thumbnail" ? "thumbnail" : "cover";}-function Cn(e, t) {- return e.is_jav && e.code && e.has_cover && (Sn(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";-}function wn(e, t) {+ return e.is_jav && e.code && e.has_cover && (Cn(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";+}+function Tn(e, t) {e.querySelectorAll("img[data-jav-image]").forEach((e) => {- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Sn(t) === "cover" || !r)), a = i ? n : r;+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Cn(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.removeAttribute("style"), a && e.getAttribute("src") !== a && (e.src = a);});}//#endregion//#region src/islands.ts-var Tn = {+var En = {"library-processing": {load: Qe,component: $e},scraping: {- load: Xt,- component: $t+ load: Zt,+ component: en},"quality-goals": {- load: qt,- component: Yt+ load: Jt,+ component: Xt},configuration: {load: rt,component: lt}-}, En = () => Object.keys(Tn), Dn = /* @__PURE__ */ new Map();-async function On(e, t, n, r = {}) {- let i = Tn[e];+}, Dn = () => Object.keys(En), On = /* @__PURE__ */ new Map();+async function kn(e, t, n, r = {}) {+ let i = En[e];if (!i) throw Error(`未注册的 island:${String(e)}`);- kn(t);+ An(t);let a = {controller: new AbortController(),painted: !1};- Dn.set(t, a);+ On.set(t, a);let o;try {o = {@@ -2211,9 +2225,9 @@ async function On(e, t, n, r = {}) {error: F(e)};}- if (Dn.get(t) !== a) return;+ if (On.get(t) !== a) return;if (r.isCurrent && !r.isCurrent()) {- Dn.delete(t);+ On.delete(t);return;}t.textContent = "", a.painted = !0;@@ -2221,11 +2235,11 @@ async function On(e, t, n, r = {}) {...n,...o};- Ce(ne(i.component, s), t);+ we(ne(i.component, s), t);}-function kn(e) {- let t = Dn.get(e);- t && (t.controller.abort(), Dn.delete(e), t.painted && Ce(null, e));+function An(e) {+ let t = On.get(e);+ t && (t.controller.abort(), On.delete(e), t.painted && we(null, e));}//#endregion-export { vn as TASTE_GUIDE_KEY, un as catalogEmptyHtml, ln as catalogSuggestions, gn as cleanupSkeletonHtml, mn as cloudLocations, hn as cloudPreferenceLocations, cn as emptyCatalogLayout, on as entitySkeletonHtml, Ze as followJobProgress, En as islandNames, Cn as javImageKind, rn as matchesFaceSource, On as mountIsland, an as nativeImageFit, Sn as normalizeJavImage, bn as normalizeJavLayout, xn as normalizeJavPreferences, nn as refreshStore, dn as sidebarHasCatalogContent, pn as sidebarTagCounts, tn as storeNames, wn as syncJavImages, fn as syncSidebarSurface, _n as tasteHistoryGuideHtml, kn as unmountIsland, Xe as watchJob, yn as wireTasteHistoryGuide };+export { yn as TASTE_GUIDE_KEY, dn as catalogEmptyHtml, un as catalogSuggestions, _n as cleanupSkeletonHtml, hn as cloudLocations, gn as cloudPreferenceLocations, ln as emptyCatalogLayout, sn as entitySkeletonHtml, Ze as followJobProgress, Dn as islandNames, wn as javImageKind, an as matchesFaceSource, kn as mountIsland, on as nativeImageFit, Cn as normalizeJavImage, xn as normalizeJavLayout, Sn as normalizeJavPreferences, rn as refreshStore, fn as sidebarHasCatalogContent, mn as sidebarTagCounts, nn as storeNames, Tn as syncJavImages, pn as syncSidebarSurface, vn as tasteHistoryGuideHtml, An as unmountIsland, Xe as watchJob, bn as wireTasteHistoryGuide };diff --git a/web/js/ui-components.js b/web/js/ui-components.jsindex 79f6f3a37..f0d33c906 100644--- a/web/js/ui-components.js+++ b/web/js/ui-components.js@@ -277,6 +277,7 @@ const OVERLAY_SCROLLERS=['.settingsscroll','.sidecontent','.tagpickbody','.mixlist','.playlistpicklist','.playerstats','.vjs-peach-settings-menu','.geist-scroller-container','.metricstrip','.tastesummaries','.insighttabs','.insightstorage','.skeletondashstrip','.followpagination','.linktablewrap',+ '.reviewtabs','.junkfilters',].join(',');/**