Peach: Local-first video metadata scraper and media manager.
feat(ui): 迁移 Board 界面与设置控件
longmeidaod04d16cd9b8d
diff --git a/README.en.md b/README.en.mdindex 07974935d..b58e5d08b 100644--- a/README.en.md+++ b/README.en.md@@ -40,6 +40,8 @@ Follow sources include FANBOX, Patreon, SubscribeStar, Kemono, Pawchive, Coomer,Interface preferences are saved in the current browser and live under Settings: default sort, official covers or preview images for JAV works, autoplay when details open, and SFW mode, which blurs, desaturates and dims images and video and stops hover previews.+The interface uses Board styling. Select “Use classic UI” in Settings and apply with a refresh to use the classic interface. “Increase contrast” disables navigation transparency and refraction. Numeric preferences accept custom values within their supported ranges, with switches for optional features.+## Quick startPeach is **pre-1.0**. The application interface is currently Chinese only.diff --git a/README.md b/README.mdindex bcdd79a47..1303edb9b 100644--- a/README.md+++ b/README.md@@ -40,6 +40,8 @@ Peach 是单用户、本地优先的个人媒体系统。在自己的电脑上界面偏好保存在当前浏览器,在右上角「设置」里改:默认排序、JAV 封面用官方封面还是预览图、打开详情是否自动播放,以及把图像模糊降饱和、关掉悬停预览的「SFW 模式」。+界面采用 Board 风格。设置中可选择「使用旧版 UI」并应用刷新;「增加对比度」关闭导航玻璃的透明与折射。数量和时间支持范围内自定义,可关闭的功能使用开关控制。+## 快速开始Peach 处于 **pre-1.0** 阶段,界面目前只有中文。diff --git a/docs/BOARD_UI.md b/docs/BOARD_UI.mdnew file mode 100644index 000000000..e3655ffe3--- /dev/null+++ b/docs/BOARD_UI.md@@ -0,0 +1,56 @@+# BoardUI 适配++Peach 使用 Board 的视觉与组件语义,保留 Vite、Preact、FastAPI 和现有媒体行为。Board 的公开实现依赖 React Aria,不能把组件名称相同当作 Preact 可直接替换的证明。本次由共享 HTML 控件、原生键盘行为与 Preact 数值控件适配;没有新增 React 运行时。++## 控件对应++| Peach / Geist 语义 | Board 对应 | 实施方式 |+| --- | --- | --- |+| Toggle,布尔开关 | Switch | 42×24 轨道、18px 滑块、内嵌标记;保留 checkbox 与 switch 语义 |+| Switch,互斥分段 | Segmented Control | 单选 radio,轨道内选中背景;方向键沿用原生行为 |+| Button / Icon Button | Button / Icon Button | 主动作蓝色,危险操作沿用危险色;纯图标按钮清除默认内边距 |+| Input / Input 前后缀 | Input adornment | 单位在框内尾部,分隔背景;独立数字输入保持可访问名称 |+| 数值范围说明 | Invalid + HintText | 合法范围验证;错误时显示锚定字段的小提示,修正后消失 |+| Select | Select | 保留已实现的列表键盘、焦点与菜单定位,使用 Board 尺寸与表面 |+| Checkbox / Radio | Checkbox / Radio | 保留原生状态与选择范围;共享颜色与焦点 |+| Tabs / 页面导航 | Tabs | 管理导航下划线,配置与设置按内容分区 |+| Fieldset | 卡片正文与操作区组合 | 标题在框内,操作区用相邻色阶,不增加框中框 |+| Modal | Settings Modal / Dialog | 设置左侧分区、右侧标题及独立滚动;业务确认保留后果和错误恢复 |+| Toast | Notification | 短暂操作回执沿用现有通知通道 |+| Note / Banner | 字段反馈 / Announcement | 数据错误与恢复动作留在发生位置 |+| Tooltip | Tooltip | 保留含义与键盘焦点可见性 |+| Table | Table / Data Table | 保留选择、排序、批处理和实际数据 |+| Tag / Badge | Chip / Badge | 标签与状态语义分开,保留可操作范围 |+| Sidebar / Drawer | Sidebar 的收起与展开 | 一个按钮控制同一导航,移动端使用遮罩 |+| Spinner / Skeleton / Progress | 原有等价反馈 | 不虚构进度,保持业务请求时机 |+| Scroller / Collapse | 溢出滚动 / 展开分组 | 保留键盘、溢出和展开行为 |+| 视频播放器、照片灯箱、沉浸队列 | 无直接替代 | 保留专用交互,仅统一外围卡片与控件 |++## 设计边界++- `web/board.css` 是可独立关闭的视觉层。设置「使用旧版 UI」后应用并刷新,首屏加载前决定是否启用。+- 「增加对比度」关闭透明与折射;系统降低透明度偏好也使用实色。折射只作用于导航背景,不扭曲文字。+- 设置标题与控件在桌面同排,手机宽度不足时换行。单位与数值属于同一输入框;可关闭的功能显示开关,关闭时隐藏数值。+- 数值非法时不保存;关闭搜索记录后不读取或记入搜索记录,关闭相关推荐后不请求该模块。+- Board 免费源码以官网声明的 MIT 条款使用;Pro 图表与模板不取用收费源码。项目自有图表不宣称来自 Pro,也不承诺 Pro 更新权益。+- Remix Icon 固定为 4.9.1,按包内 Remix Icon License v1.0 登记;官网所写的 Apache 2.0 不代替实际包许可证。保留已确认图标,候选由 `attic/evidence/20260908-boardui-preview/boardui-full/icon-review.html` 审查。++## 参考证据++2026-09-08 读取官方公开注册表,原始文件在 `attic/evidence/20260908-boardui-preview/board-reference/`。++| 来源 | SHA-256 |+| --- | --- |+| https://www.boardui.com/r/input.json | ac1e66c9ed15f9db2750dd528bc894c856ac84e79f72ff4acb96f14b1ab9c249 |+| https://www.boardui.com/r/switch.json | 3412c1910b2fa7f5d17404bf50bd2503e9ca097cf9d741366379cf18e09ebeb6 |+| https://www.boardui.com/r/segmented-control.json | 62300be25310fef31962ddc237818739a2efd0d0143dd0832f3d1a2166c28e38 |+| https://www.boardui.com/r/button.json | 89cc2c176d1d94d481bbfc6e34f233ccf109c10d319533cc7c1e98923b6e7d69 |++Input 的上游错误信息位于字段下方,并通过 `errorMessage` 关联;锚定的小提示是用户指定的 Peach 差异。设置布局来自公开 `settings-modal.json`:871×614、274px 导航、32px 内容边距、24px 外圆角。原始设置参考保存在同目录下 `boardui-full/settings-reference.json`。++## 验收边界++- 数值设置的 155 项前端测试通过,包含非法值不保存、关闭恢复、异步读取值恢复;构建与类型检查通过。+- 18984 直接服务正式工作树。桌面已检查设置、首页、详情、统计、口味、数据管理、关注管理、配置与复核;390×844 已检查设置、详情、标签与事务所索引,没有页面横向溢出。+- 设置关闭图标中心偏差为 0;纯图标控件不覆盖工具栏业务显隐。旧版模式关闭 Board 样式,增加对比度时导航 `backdrop-filter` 为 `none`,退出两种状态均已核对。+- 预览只读,未写真实 ledger、配置或凭据;脱盘状态下真实播放未验证。生产入口与版本号未改。diff --git a/docs/HANDOFF.md b/docs/HANDOFF.mdindex e9cfa7503..547cfa21e 100644--- a/docs/HANDOFF.md+++ b/docs/HANDOFF.md@@ -72,6 +72,8 @@## 参考产品证据登记+- [BoardUI 适配与控件对应](BOARD_UI.md):2026-09-08 的公开注册表证据、固定哈希、Switch 与 Segmented Control 的语义区别。用户指定 Board 视觉,旧版样式通过设置保留;字段错误锚定提示和媒体播放器是 Peach 差异。+- [Geist 控件](reference-snapshots/vercel-geist-controls-measured.md);[复核操作](reference-snapshots/vercel-review-actions.md);[README 维护](README_MAINTENANCE.md)。- 设置:`reference-snapshots/geist-settings.md`。diff --git a/docs/PRODUCT_BACKLOG.md b/docs/PRODUCT_BACKLOG.mdindex fe0872b0e..aedd5d2ef 100644--- a/docs/PRODUCT_BACKLOG.md+++ b/docs/PRODUCT_BACKLOG.md@@ -2,6 +2,12 @@更新时间:2026-09-08。这里只记录尚未完成或只完成一部分的需求;运行数字以 `peach-data/state/job-status.md` 的自动区块为准。+## BoardUI 正式前端迁移++用户已授权正式前端全量迁移,保留设置中的「使用旧版 UI」,应用后刷新生效。以现有 Preact/Vite 架构实施;审查所有页面和原有设计意图,覆盖管理、视频详情、设置、响应式布局及关联选项。布尔开关对应 Board Switch,互斥选择对应 Segmented Control;其余控件逐项取证与映射。玻璃默认折射,「增加对比度」使用实色背景。数值配置支持合法范围内自定义,可关闭功能用 Switch,开启才展示数字输入。++正式工作树已实现共享视觉层、管理与详情卡片、设置布局、数值输入和旧版隔离;18984 直接读取该工作树用于只读验收。生产尚未切换。Remix Icon 候选审查在预览 `/icon-review.html`,现有已选图标保留至用户筛选。迁移不包含版本号或其他分支发布工作。+## 已有骨架、尚未完成(6 项)- Windows 独立测试包的局域网访问与 mDNS:按用户要求先恢复本机访问,后续加入此功能;测试域名与开发环境隔离。首启页的局域网选项与当前测试包限制不一致,也在此项闭环。diff --git a/docs/REUSE.md b/docs/REUSE.mdindex 361757c14..65173df4c 100644--- a/docs/REUSE.md+++ b/docs/REUSE.md@@ -1,5 +1,11 @@# 复用清单+## Board 界面与数值设置++- 组件映射、官方公开注册表证据与许可证见 [Board 界面](BOARD_UI.md)。`web/board.css` 共用正式页面结构,设置可关闭该视觉层;登录和首启页共用 `board_entry_style()`。+- `frontend/src/number-setting.ts` 共用带单位输入、可选 Switch、整数边界和锚定错误提示。关闭保留上次合法值,异步读取后切换也恢复实际值;业务保存仍由调用方负责。+- 图标按钮统一清除浏览器内边距并居中 SVG,不覆盖业务显隐。Remix Icon 由 `vendor_web_dependencies.mjs` 生成设置导航 symbol;随机按钮保留原有双路径动画。+复核复用 Checkbox、Button、Badge、Select 与 `/api/review/decision`,默认勾选并沿用馆藏页 Shift 连选语义;支持跨组通过/拒绝与无歧义的共同来源选择。按候选数量、来源组合或字段分组,每项仅出现一次,切组保留选择;成功移出、失败保留,页面离开后停止后续提交。正文使用不占宽度的 Scroller,完成结果复用成功 Note。身份候选复用创作者页、作品详情与 revealSource 核对样本;来源图片和缺图占位共用 220px 预览区,加载失败保留占位。样本读取支持无缩略图作品,回收站不参与。## 本机设置与卸载diff --git a/docs/STATUS.md b/docs/STATUS.mdindex 2b5ad7bee..b2923d0af 100644--- a/docs/STATUS.md+++ b/docs/STATUS.md@@ -4,11 +4,10 @@索引:`PRODUCT_BACKLOG.md`、`REUSE.md`、`HANDOFF.md`。-- 自启、代理、卸载设置已上线,见 `REUSE.md`。-## 运行态-- 复核分组吸附、取证及多选浮窗见 `REUSE.md`。+- BoardUI:只读验收 18984;生产未切换,见 `BOARD_UI.md`。+- 设置与反馈已部署;预览 18976。骨架桌面及 390px 验收通过,生产浏览器超时。- 女优头像 545 张:2026-09-06 经用户批准换上 54 张 Gfriends 正脸照,脸宽中位数 148px → 320px;被顶掉的整套留在 `avatars-superseded/`,挑图与换源判据见 `SOURCING.md`。diff --git a/frontend/src/islands.ts b/frontend/src/islands.tsindex df06ebb32..8f5b30b99 100644--- a/frontend/src/islands.ts+++ b/frontend/src/islands.ts@@ -14,6 +14,7 @@* 都先自我卸载,`unmountIsland` 也不假设 DOM 还在原处。 */import { h, render } from 'preact';export { preferredDirection } from './sort-preferences';+export { boundedPreference, mountNumberSetting, syncNumberSetting } from './number-setting';import type { Attributes, ComponentType } from 'preact';import { errorMessage } from './api';diff --git a/frontend/src/number-setting.ts b/frontend/src/number-setting.tsnew file mode 100644index 000000000..f7596e2da--- /dev/null+++ b/frontend/src/number-setting.ts@@ -0,0 +1,56 @@+/** 带单位、可选开关及字段错误反馈的数值设置。 */+export interface NumberSettingSpec { min: number; max: number; unit: string; optional?: boolean; fallback: number }+const specs: Record<string, NumberSettingSpec> = {+ batchSizeSetting: { min: 1, max: 200, unit: '个', fallback: 60 },+ hoverDelaySetting: { min: 1, max: 60, unit: '秒', optional: true, fallback: 5 },+ seekSecondsSetting: { min: 1, max: 300, unit: '秒', fallback: 10 },+ relatedLimitSetting: { min: 1, max: 60, unit: '个', optional: true, fallback: 20 },+ searchHistoryLimitSetting: { min: 1, max: 50, unit: '条', optional: true, fallback: 10 },+ followScheduleSetting: { min: 15, max: 10080, unit: '分钟', optional: true, fallback: 60 },+};+export function boundedPreference(value: number, min: number, max: number, fallback: number): number {+ return Number.isInteger(value) && value >= min && value <= max ? value : fallback;+}+export function syncNumberSetting(mount: HTMLElement, value: number | null, disabled: boolean): void {+ const input=mount.querySelector<HTMLInputElement>('input[type=number]');+ const toggle=mount.querySelector<HTMLInputElement>('[role=switch]');+ const fields=mount.querySelector<HTMLElement>('.board-number-fields');+ if(input){input.disabled=disabled;if(value!==null&&value>0)input.value=String(value)}+ if(toggle){toggle.disabled=disabled;if(value!==null)toggle.checked=value>0}+ if(fields&&value!==null)fields.hidden=value===0;+}+export function mountNumberSetting(mount: HTMLElement, id: string, label: string, value: number, apply: (value: string) => void): boolean {+ const spec=specs[id]; if(!spec) return false;+ const {min,max,unit,optional,fallback}=spec;+ const storageKey=`peach.number.${id}`;+ let remembered=boundedPreference(Number(localStorage.getItem(storageKey)),min,max,value>0?value:fallback);+ const control=document.createElement('div'); control.className='board-optional-number';+ const fields=document.createElement('div'); fields.className='board-number-fields'; fields.hidden=!!optional&&value===0;+ const frame=document.createElement('div'); frame.className='board-number-control';+ const input=document.createElement('input'); input.type='number'; input.className='geist-input'; input.min=String(min); input.max=String(max); input.step='1'; input.value=String(value>0?value:remembered); input.setAttribute('aria-label',label);+ const suffix=document.createElement('span'); suffix.textContent=unit; suffix.setAttribute('aria-hidden','true');+ const error=document.createElement('small'); error.id=`${id}-error`; error.className='board-number-error'; error.setAttribute('role','status'); error.hidden=true;+ input.setAttribute('aria-describedby',error.id);+ frame.append(input,suffix); fields.append(frame,error); control.append(fields); mount.replaceChildren(control);+ const clear=()=>{input.removeAttribute('aria-invalid');error.hidden=true;error.textContent=''};+ const commit=()=>{+ if(!input.value||!input.checkValidity()) { input.setAttribute('aria-invalid','true');error.textContent=`请输入 ${min}–${max} 的整数(${unit})`;error.hidden=false;return; }+ clear(); remembered=Number(input.value);localStorage.setItem(storageKey,String(remembered));apply(input.value);+ };+ input.addEventListener('change',commit);+ input.addEventListener('keydown',event=>{if(event.key==='Enter'){event.preventDefault();commit()}});+ input.addEventListener('input',()=>{if(input.value&&input.checkValidity())clear()});+ if(optional){+ const toggle=document.createElement('input');toggle.type='checkbox';toggle.className='ptoggle';toggle.setAttribute('role','switch');toggle.setAttribute('aria-label',`启用${label}`);toggle.checked=value>0;+ toggle.onchange=()=>{+ clear();fields.hidden=!toggle.checked;+ if(toggle.checked){input.value=String(remembered);commit()}+ else{+ if(input.value&&input.checkValidity())remembered=Number(input.value);+ localStorage.setItem(storageKey,String(remembered));apply('0');+ }+ };+ control.prepend(toggle);+ }+ return true;+}diff --git a/frontend/test/number-setting.test.ts b/frontend/test/number-setting.test.tsnew file mode 100644index 000000000..474c4986c--- /dev/null+++ b/frontend/test/number-setting.test.ts@@ -0,0 +1,23 @@+import { beforeEach, expect, it, vi } from 'vitest';+import { boundedPreference, mountNumberSetting, syncNumberSetting } from '../src/number-setting';++beforeEach(()=>{document.body.replaceChildren();localStorage.clear()});+function setup(value=10){const node=document.createElement('div');document.body.append(node);const apply=vi.fn();mountNumberSetting(node,'searchHistoryLimitSetting','搜索记录',value,apply);return {node,apply,input:node.querySelector<HTMLInputElement>('input[type=number]')!,toggle:node.querySelector<HTMLInputElement>('[role=switch]')!}}+it('rejects invalid numbers without saving and clears feedback after correction',()=>{+ const {node,input,apply}=setup();input.value='51';input.dispatchEvent(new Event('change'));+ expect(apply).not.toHaveBeenCalled();expect(input.getAttribute('aria-invalid')).toBe('true');+ expect(node.querySelector<HTMLElement>('[role=status]')!.hidden).toBe(false);+ input.value='17';input.dispatchEvent(new Event('change'));expect(apply).toHaveBeenLastCalledWith('17');expect(input.hasAttribute('aria-invalid')).toBe(false);+});+it('disabling hides the field and enabling restores its last valid number',()=>{+ const {node,input,toggle,apply}=setup();input.value='23';input.dispatchEvent(new Event('change'));+ toggle.checked=false;toggle.dispatchEvent(new Event('change'));expect(apply).toHaveBeenLastCalledWith('0');expect(node.querySelector<HTMLElement>('.board-number-fields')!.hidden).toBe(true);+ toggle.checked=true;toggle.dispatchEvent(new Event('change'));expect(input.value).toBe('23');expect(apply).toHaveBeenLastCalledWith('23');+});+it('bounds stored values and rejects fractional preferences',()=>{expect(boundedPreference(0,0,50,10)).toBe(0);expect(boundedPreference(2.5,1,50,10)).toBe(10);expect(boundedPreference(99,1,50,10)).toBe(10)});+it('restores a value received asynchronously after toggling off and on',()=>{+ const {node,input,toggle,apply}=setup();syncNumberSetting(node,37,false);+ toggle.checked=false;toggle.dispatchEvent(new Event('change'));+ toggle.checked=true;toggle.dispatchEvent(new Event('change'));+ expect(input.value).toBe('37');expect(apply).toHaveBeenLastCalledWith('37');+});diff --git a/package-lock.json b/package-lock.jsonindex 31d8aac58..ae5547dd9 100644--- a/package-lock.json+++ b/package-lock.json@@ -9,6 +9,7 @@"@phosphor-icons/core": "2.1.1","healthicons": "2.0.0","lucide-static": "1.40.0",+ "remixicon": "4.9.1","swiper": "14.2.0","video.js": "8.24.0"},@@ -224,6 +225,13 @@"node": ">= 0.6.0"}},+ "node_modules/remixicon": {+ "version": "4.9.1",+ "resolved": "https://registry.npmjs.org/remixicon/-/remixicon-4.9.1.tgz",+ "integrity": "sha512-36gLSoujkabnCFZFDyP17VNh9piuBA/rsXUb4auSJWLGsHVXtmxLj/EM5FjaEAGnk8oIAj1Azob/DZ2N+90lAQ==",+ "dev": true,+ "license": "Apache-2.0"+ },"node_modules/swiper": {"version": "14.2.0","resolved": "https://registry.npmjs.org/swiper/-/swiper-14.2.0.tgz",diff --git a/package.json b/package.jsonindex 71177c3d0..6a09e9c19 100644--- a/package.json+++ b/package.json@@ -13,6 +13,7 @@"@phosphor-icons/core": "2.1.1","healthicons": "2.0.0","lucide-static": "1.40.0",+ "remixicon": "4.9.1","swiper": "14.2.0","video.js": "8.24.0"}diff --git a/scripts/vendor_web_dependencies.mjs b/scripts/vendor_web_dependencies.mjsindex 39714a81d..9e17e85d4 100644--- a/scripts/vendor_web_dependencies.mjs+++ b/scripts/vendor_web_dependencies.mjs@@ -110,6 +110,7 @@ const lucideIcons = new Map([// 这张名单只收 `i-` 开头、能被 `<use>` 引用的图标;symbol 内部的遮罩、渐变一类// 零件不带那个前缀,也就不进这张名单。const handDrawnIcons = new Set([+ "shuffle", // 两条带 pathLength 的动画路径由 Peach 维护。"alert", "pics", "jav", "theater-enter", "theater-exit", "brand-x",// 「换一批」:Lucide shuffle 的线条拆成 strand-a/strand-b 两条 path 供忙态逐条画出,// 上游一刷新就会把两条并回五条,所以由手工维护。@@ -159,6 +160,16 @@ index = index.replace(/Health Icons sperm outline-24px, CC0\/public domain/,index = index.replace(/Phosphor [0-9.]+ regular, MIT/,`Phosphor ${versions["@phosphor-icons/core"]} regular, MIT`);index = index.replaceAll(/\/vendor\/videojs\/[0-9.]+\//g, `/vendor/videojs/${versions["video.js"]}/`);+const remixIcons = ["palette-line", "layout-grid-line", "play-circle-line", "search-line", "rss-line", "shield-check-line"];+const remixSprite = lfText("node_modules", "remixicon", "fonts", "remixicon.symbol.svg");+for (const name of remixIcons) {+ const pattern = new RegExp(`<symbol[^>]*id="ri-${name}"[^>]*>[\\s\\S]*?<\\/symbol>`);+ const symbol = remixSprite.match(pattern)?.[0];+ if (!symbol || !pattern.test(index)) throw new Error(`缺少 Remix symbol:${name}`);+ index = index.replace(pattern, symbol);+}+stage("web/vendor/remixicon-LICENSE.txt", lfText("node_modules", "remixicon", "License"));+stage("web/vendor/remixicon-ORIGIN.md", `# Remix Icon ${versions.remixicon}\n\n- npm 包:\`remixicon@${versions.remixicon}\`\n- npm lock integrity:\`${integrity("remixicon")}\`\n- 许可证:Remix Icon License v1.0,见 \`remixicon-LICENSE.txt\`。\n- 消费者:设置导航六枚内联 symbol。完整候选由本地 HTML 审查。\n`);stage("web/index.html", index);let app = text("web", "app.js");diff --git a/src/peach/routes_auth.py b/src/peach/routes_auth.pyindex a3402fb66..dfd1d64fd 100644--- a/src/peach/routes_auth.py+++ b/src/peach/routes_auth.py@@ -118,6 +118,7 @@ def set_auth_cookie(response: Response, request: Request, *, days: int = 30, logdef login_html(next_path: str, *, invalid: bool = False) -> str:+ from .routes_pages import board_entry_stylesafe_next = html.escape(next_path, quote=True)error = '<p role="alert">访问密码不正确</p>' if invalid else ""return (@@ -161,7 +162,7 @@ def login_html(next_path: str, *, invalid: bool = False) -> str:'button{width:100%;height:44px;margin-top:16px;border:0;border-radius:11px;cursor:pointer;''background:var(--ink);color:var(--bg);font:500 15px system-ui,sans-serif}''button:hover{background:color-mix(in srgb,var(--ink) 88%,var(--bg));color:var(--bg)}p[role=alert]{margin:0 0 14px;color:var(--alert)}'- '</style><body><main><div class="brand"><img src="/peach-logo.png" alt=""><h1>Peach</h1></div>'+ f'</style>{board_entry_style()}<body><main><div class="brand"><img src="/peach-logo.png" alt=""><h1>Peach</h1></div>'f'{error}<form method="post" action="/login">''<label>访问密码 <input name="token" type="password" maxlength="256" ''autocomplete="current-password" required></label>'diff --git a/src/peach/routes_pages.py b/src/peach/routes_pages.pyindex 578bc69a3..534a6ef8c 100644--- a/src/peach/routes_pages.py+++ b/src/peach/routes_pages.py@@ -327,7 +327,15 @@ def _document(title: str, body: str) -> str:index = (PROJECT_ROOT / "web/index.html").read_text(encoding="utf-8")symbols = ''.join(re.findall(r'<symbol id="i-(?:check|chevron-down|hard-drive)"[^>]*>.*?</symbol>', index))return (f"{_SETUP_HEAD}<title>{title}</title><style>{_theme_tokens()}{_scrollbar_rules()}</style>"- f'{_SETUP_STYLE}<style>{_button_rules()}</style></head><body><svg width="0" height="0" aria-hidden="true" style="position:absolute">{symbols}</svg><main>{body}</main>{_SETUP_SCRIPT}{_SHARED_SCRIPT}</body></html>\n')+ f'{_SETUP_STYLE}<style>{_button_rules()}</style>{board_entry_style()}</head><body><svg width="0" height="0" aria-hidden="true" style="position:absolute">{symbols}</svg><main>{body}</main>{_SETUP_SCRIPT}{_SHARED_SCRIPT}</body></html>\n')+++def board_entry_style() -> str:+ """入口页内联公共视觉层,保留设备上的旧版界面偏好。"""+ css = (PROJECT_ROOT / "web/board-entry.css").read_text(encoding="utf-8")+ return (f'<style id="boardEntryStyles">{css}</style>'+ '<script>try{document.getElementById("boardEntryStyles").disabled='+ 'localStorage.getItem("peach.legacy-ui")==="true"}catch(e){}</script>')def _check_html(name: str, text_html: str, *, checked: bool) -> str:@@ -790,6 +798,7 @@ def _read_answers(@router.api_route("/app.css", methods=["GET", "HEAD"])[email protected]_route("/board.css", methods=["GET", "HEAD"])@router.api_route("/app.js", methods=["GET", "HEAD"])def app_asset(request: Request, args: dict[str, str] = Depends(require_asset_auth)):"""页面拆出来的样式与入口脚本。样式在 `web/css/`,脚本和 index.html 同目录,同一套口令。@@ -805,7 +814,7 @@ def app_asset(request: Request, args: dict[str, str] = Depends(require_asset_autpath = web / nameif not path.is_file():return PlainTextResponse("missing", status_code=404)- return asset_response(request, path, "text/javascript")+ return asset_response(request, path, "text/css" if name == "board.css" else "text/javascript")@router.api_route("/js/{name}", methods=["GET", "HEAD"])diff --git a/tests/test_dependency_policy.py b/tests/test_dependency_policy.pyindex 171054b06..e10028b94 100644--- a/tests/test_dependency_policy.py+++ b/tests/test_dependency_policy.py@@ -81,7 +81,7 @@ class DependencyPolicyTests(unittest.TestCase):self.assertTrue(manifest["private"])versions = manifest["devDependencies"]self.assertEqual(set(versions), {"@phosphor-icons/core", "healthicons",- "lucide-static", "swiper", "video.js"})+ "lucide-static", "swiper", "video.js", "remixicon"})for version in versions.values():self.assertRegex(version, r"^\d+\.\d+\.\d+$")diff --git a/tests/test_fastapi_api.py b/tests/test_fastapi_api.pyindex 06a388f42..0e888f675 100644--- a/tests/test_fastapi_api.py+++ b/tests/test_fastapi_api.py@@ -380,6 +380,8 @@ class FastApiContractTests(unittest.IsolatedAsyncioTestCase):async def test_front_end_modules_need_the_same_token_as_the_page(self):unauthorized = await self.client.get("/js/core.js")self.assertEqual(unauthorized.status_code, 401)+ unauthorized_board = await self.client.get("/board.css")+ self.assertEqual(unauthorized_board.status_code, 401)async def test_island_bundle_is_served_with_the_same_guards_as_the_modules(self):"""`/dist/{name}` 提供 `frontend/` 的构建产物(ADR-0022)。diff --git a/tests/test_web_perf.py b/tests/test_web_perf.pyindex a91ec2db8..c4aa7172c 100644--- a/tests/test_web_perf.py+++ b/tests/test_web_perf.py@@ -195,6 +195,7 @@ class PageAssetDeliveryTests(unittest.IsolatedAsyncioTestCase):self.css_parts[0].write_text("body{margin:0}\n" + "/* filler */\n" * 200,encoding="utf-8")self.css_parts[1].write_text(".card{display:grid}\n", encoding="utf-8")+ (root / "board.css").write_text(".ptoggle{width:42px}\n", encoding="utf-8")page = root / "index.html"page.write_text("<!doctype html><title>Peach test</title>", encoding="utf-8")(root / "js").mkdir()@@ -230,7 +231,7 @@ class PageAssetDeliveryTests(unittest.IsolatedAsyncioTestCase):self.assertIn("const peach=2", updated.text)async def test_every_asset_route_shares_the_same_revalidation_contract(self):- for path in ("/app.css", "/js/core.js", "/dist/peach-ui.js"):+ for path in ("/app.css", "/board.css", "/js/core.js", "/dist/peach-ui.js"):first = await self.client.get(path)self.assertEqual(first.status_code, 200, path)self.assertEqual(first.headers["cache-control"], "no-cache", path)diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex ed8672ae3..f37f087c5 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -5677,7 +5677,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains('class="mixqueue"')self.assertPageContains('class="mixitem ${x.id===itemId?\'current\':\'\'}"')self.assertPageContains("data-queue-item")- self.assertPageContains("if(!queueContext)api('/api/related?id='")+ self.assertPageContains("if(!queueContext&&appSettings.relatedLimit>0)api('/api/related?id='")self.assertPageContains("async function openPlaylists(push=true)")self.assertPageContains("const surface=claimSurface('/playlists')")self.assertPageContains("async function openPlaylist(playlistId,itemId=null,push=true)")@@ -7369,7 +7369,7 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageContains('class="settingsortcontrols"')self.assertPageContains("field.disabled=appSettings.defaultSort==='seed'")self.assertPageContains("['hoverDelaySetting','悬停放大',[['0','关闭']")- self.assertPageContains('allowedSetting(+appSettings.hoverDelaySeconds,[0,3,5,8],5)')+ self.assertPageContains('boundedPreference(+appSettings.hoverDelaySeconds,0,60,5)')self.assertPageContains('if(!appSettings.hoverDelaySeconds)return;')self.assertPageContains("if(appSettings.hoverDelaySeconds)el.classList.add('longhover')")@@ -8332,5 +8332,26 @@ class CoverSleeveThresholdTests(unittest.TestCase):self.assertLess(low, high)+class BoardStyleIsolationTests(unittest.TestCase):+ def test_board_assets_and_legacy_choice_are_available_before_app_start(self):+ root = Path(__file__).resolve().parents[1]+ html = (root / "web/index.html").read_text(encoding="utf-8")+ self.assertIn('id="boardStyles"', html)+ self.assertIn('href="/board.css"', html)+ self.assertLess(html.index('peach.legacy-ui'), html.index('src="/app.js"'))+ css = (root / "web/css/16-settings.css").read_text(encoding="utf-8")+ self.assertIn('#applyUISetting[hidden]{display:none}', css)++ def test_icon_centering_does_not_override_toolbar_visibility(self):+ root = Path(__file__).resolve().parents[1]+ css = (root / "web/board.css").read_text(encoding="utf-8")+ rules = re.findall(r'([^{}]+)\{([^{}]*)\}', css)+ centering = [selector for selector, body in rules+ if 'display:inline-grid' in body and 'place-items:center' in body]+ self.assertTrue(any('.settingshead button' in selector for selector in centering))+ self.assertFalse(any('.ib,' in selector or '.sidebaraddmenu button' in selector+ for selector in centering))++if __name__ == "__main__":unittest.main()diff --git a/web/app.js b/web/app.jsindex 7064dbde3..2a93c0c90 100644--- a/web/app.js+++ b/web/app.js@@ -1,4 +1,4 @@-import { resourceScanHtml } from './dist/peach-ui.js';+import { resourceScanHtml, boundedPreference, mountNumberSetting, syncNumberSetting } from './dist/peach-ui.js';import {$, ENTITY_ROUTES, LOC, ROUTE_ENTITIES, ROUTE_STATES, SITE_FAVICONS, STATE_LABELS, STATE_ROUTES, api, isAbort, mapLimit, brandIcon, entityPath, esc, faviconFallbackUrl, faviconUrl, linkHost, linkMarkUrl, fmtClock, fmtDur, fmtSize, foldName, icon, isCatalogPath, realDuration} from './js/core.js';import { faceFrame } from './js/face-frame.js';import { imageFallbackAttrs, wireImageFallbacks } from './js/image-fallback.js';@@ -421,17 +421,17 @@ if((+appSettings.sortDefaultsVersion||0)<3&&SORT_ALIASES[appSettings.defaultSortappSettings.defaultSort=SORT_ALIASES[appSettings.defaultSort][0];sortDefaultsMigrated=true}appSettings.sortDefaultsVersion=3;-appSettings.batchSize=allowedSetting(+appSettings.batchSize,[30,60,90],60);+appSettings.batchSize=boundedPreference(+appSettings.batchSize,1,200,60);appSettings.defaultSort=allowedSetting(appSettings.defaultSort,SORT_KEYS,'seed');-appSettings.hoverDelaySeconds=allowedSetting(+appSettings.hoverDelaySeconds,[0,3,5,8],5);-appSettings.seekSeconds=allowedSetting(+appSettings.seekSeconds,[5,10,30],10);+appSettings.hoverDelaySeconds=boundedPreference(+appSettings.hoverDelaySeconds,0,60,5);+appSettings.seekSeconds=boundedPreference(+appSettings.seekSeconds,1,300,10);appSettings.ambientMode=appSettings.ambientMode!==false;appSettings.theaterMode=appSettings.theaterMode===true;appSettings.groupCollapse=appSettings.groupCollapse!==false;appSettings.detailAutoplay=appSettings.detailAutoplay!==false;appSettings.miniplayer=appSettings.miniplayer!==false;-appSettings.searchHistoryLimit=allowedSetting(+appSettings.searchHistoryLimit,[5,10,20],10);-appSettings.relatedLimit=allowedSetting(+appSettings.relatedLimit,[12,20,30],20);+appSettings.searchHistoryLimit=boundedPreference(+appSettings.searchHistoryLimit,0,50,10);+appSettings.relatedLimit=boundedPreference(+appSettings.relatedLimit,0,60,20);const METADATA_REFRESH_DAYS=[0,7,30,90];appSettings.metadataRefreshDays=allowedSetting(+appSettings.metadataRefreshDays,METADATA_REFRESH_DAYS,30);Object.assign(appSettings,normalizeJavPreferences(appSettings));@@ -496,7 +496,7 @@ const SETTING_SELECTS=[value=>{appSettings.defaultSortDirection=value;syncSortDirectionSetting();saveSettings();state.dir=preferredDirection(state.sort,appSettings.defaultSort,appSettings.defaultSortDirection);if(location.pathname==='/')load(true)}],['hoverDelaySetting','悬停放大',[['0','关闭'],['3','3 秒'],['5','5 秒'],['8','8 秒']],()=>appSettings.hoverDelaySeconds,- value=>{appSettings.hoverDelaySeconds=allowedSetting(+value,[0,3,5,8],5);+ value=>{appSettings.hoverDelaySeconds=boundedPreference(+value,0,60,5);if(!appSettings.hoverDelaySeconds)document.querySelectorAll('.previewing,.longhover').forEach(el=>el.classList.remove('previewing','longhover'));document.documentElement.style.setProperty('--hover-delay',`${appSettings.hoverDelaySeconds}s`);saveSettings()}],['seekSecondsSetting','快进 / 快退',[['5','5 秒'],['10','10 秒'],['30','30 秒']],@@ -504,10 +504,10 @@ const SETTING_SELECTS=[value=>{appSettings.seekSeconds=+value||10;saveSettings()}],['relatedLimitSetting','相关推荐',[['12','12 个'],['20','20 个'],['30','30 个']],()=>appSettings.relatedLimit,- value=>{appSettings.relatedLimit=+value||20;saveSettings()}],+ value=>{appSettings.relatedLimit=+value;saveSettings()}],['searchHistoryLimitSetting','搜索记录',[['5','最近 5 条'],['10','最近 10 条'],['20','最近 20 条']],()=>appSettings.searchHistoryLimit,- value=>{appSettings.searchHistoryLimit=+value||10;saveSettings();writeSearchHistory(readSearchHistory())}],+ value=>{appSettings.searchHistoryLimit=+value;saveSettings();writeSearchHistory(readSearchHistory())}],['followScheduleSetting','关注自动更新',[['0','关闭'],['15','每 15 分钟'],['30','每 30 分钟'],['60','每小时'],['180','每 3 小时'],['360','每 6 小时'],['720','每 12 小时'],['1440','每天']],()=>'0',value=>saveFollowSchedule(+value)],@@ -518,6 +518,8 @@ const SETTING_SELECTS=[api('/api/settings',{method:'POST',body:JSON.stringify({metadataRefreshDays:appSettings.metadataRefreshDays})}).catch(()=>{})}],];function syncSortDirectionSetting(){+ const directionMount=$('#defaultSortDirectionSetting');+ if(directionMount)directionMount.hidden=appSettings.defaultSort==='seed';const field=$('#defaultSortDirectionSetting .gselect');if(field){field.disabled=appSettings.defaultSort==='seed';@@ -530,6 +532,7 @@ function syncSortDirectionSetting(){function renderSettingSelects(){for(const [id,label,options,read,apply] of SETTING_SELECTS){const mount=$(`#${id}`);if(!mount)continue;+ if(mountNumberSetting(mount,id,label,+read(),apply))continue;mount.innerHTML=selectFieldHtml(options,read(),{label});const field=wireSelectField(mount.firstElementChild);field.addEventListener('change',()=>apply(field.value));@@ -594,24 +597,25 @@ const followScheduleCopy=status=>{if(status.next_run_at)return `下次 ${localTime(status.next_run_at)}`;return status.enabled?'等待首次运行':'已关闭';};-const followScheduleField=()=>$('#followScheduleSetting .gselect');+const followScheduleField=()=>$('#followScheduleSetting input[type=number]');async function loadFollowScheduleSetting(){const field=followScheduleField(),state=$('#followScheduleState'),request=++followScheduleRequest;- field.disabled=true;state.innerHTML=loadingDotsHtml('正在读取状态');+ syncNumberSetting($('#followScheduleSetting'),null,true);state.innerHTML=loadingDotsHtml('正在读取状态');try{const status=await api('/api/follow/schedule');if(request!==followScheduleRequest)return;field.value=status.enabled?String(status.interval_minutes):'0';+ syncNumberSetting($('#followScheduleSetting'),status.enabled?status.interval_minutes:0,!status.available);field.disabled=!status.available;state.textContent=followScheduleCopy(status);}catch(error){if(request===followScheduleRequest)state.textContent=`状态未取得:${error.message||error}`}}async function saveFollowSchedule(minutes){- const field=followScheduleField(),state=$('#followScheduleState');field.disabled=true;+ const field=followScheduleField(),state=$('#followScheduleState');syncNumberSetting($('#followScheduleSetting'),null,true);state.innerHTML=`${spinnerHtml('保存中')}<span>正在保存…</span>`;try{const status=await api('/api/follow/schedule',{method:'POST',body:JSON.stringify({enabled:minutes>0,interval_minutes:minutes||60})});state.textContent=followScheduleCopy(status);}catch(error){state.textContent=error.message||'保存失败'}- finally{field.disabled=false}+ finally{syncNumberSetting($('#followScheduleSetting'),null,false)}}/* 来源图标:品牌使用已缓存的官方资产;通用操作图标统一使用本地 Lucide 子集。 */const SRCICON={@@ -7123,9 +7127,9 @@ function renderFollowDrawer(items){followTags=new Set([b.dataset.followDrawerTag]);openDrawer(false);route(followViewPath());openFollow(false)});}-function openDrawer(v){$('#drawer').classList.toggle('open',v);$('#scrim').classList.toggle('on',v);- document.body.classList.toggle('drawer-open',!!v)}-function closeDrawerAfterNav(){drawerSuppressUntil=Date.now()+650;openDrawer(false)}+function openDrawer(v){const drawer=$('#drawer');if(!v&&drawer.contains(document.activeElement))$('#filterBtn').focus();drawer.inert=!v;drawer.classList.toggle('open',v);$('#scrim').classList.toggle('on',v);+ document.body.classList.toggle('drawer-open',!!v);$('#filterBtn').setAttribute('aria-expanded',String(!!v));$('#filterBtn').setAttribute('aria-controls','drawer');$('#filterBtn').setAttribute('aria-label',v?'收起侧栏':'展开侧栏');sessionStorage.setItem('board.sidebar',v?'open':'closed')}+function closeDrawerAfterNav(){drawerSuppressUntil=Date.now()+650;if(innerWidth<=760||document.documentElement.classList.contains('original-design'))openDrawer(false)}$('#filterBtn').onclick=()=>openDrawer(!$('#drawer').classList.contains('open'));/* 常驻窄图标条:点即切视图,鼠标停留 180ms 展开完整抽屉 */const EDGE_ICONS=[@@ -7578,7 +7582,7 @@ function buildEdge(){wireNavigationDrag($('#edge'));syncHeaderActions();}-$('#edge').addEventListener('mouseenter',()=>{if(Date.now()<drawerSuppressUntil)return;+$('#edge').addEventListener('mouseenter',()=>{if(!document.documentElement.classList.contains('original-design')||Date.now()<drawerSuppressUntil)return;edgeT=setTimeout(()=>openDrawer(true),180)});/* 滚动期间挂起悬停预览:内容在鼠标下滑过会连续触发 mouseenter,每次都新建 video 并发起 /stream 请求,直接把页面拖垮。 */@@ -7609,7 +7613,7 @@ window.addEventListener('resize',()=>{scheduleStickySurfaces();alignFollowImageC/* 只在真正进入 72 px 图标栏时展开;内容区左缘不再设隐形热区。 */$('#edge').addEventListener('mouseleave',()=>clearTimeout(edgeT));-$('#drawer').addEventListener('mouseleave',()=>{+$('#drawer').addEventListener('mouseleave',()=>{if(!document.documentElement.classList.contains('original-design'))return;setTimeout(()=>{if(!$('#drawer').matches(':hover')&&!$('#edge').matches(':hover'))openDrawer(false)},240)});$('#scrim').onclick=()=>openDrawer(false);@@ -7713,11 +7717,11 @@ async function loadSearchPool(){$('#q').dataset.suggestion='';$('#q').placeholder='搜索馆藏';let searchHistory=[];function readSearchHistory(){return searchHistory.slice(0,appSettings.searchHistoryLimit)}-const loadSearchHistory=()=>api('/api/search-history?limit='+appSettings.searchHistoryLimit).then(d=>{searchHistory=Array.isArray(d.items)?d.items:[];return searchHistory}).catch(()=>searchHistory);+const loadSearchHistory=()=>!appSettings.searchHistoryLimit?Promise.resolve([]):api('/api/search-history?limit='+appSettings.searchHistoryLimit).then(d=>{searchHistory=Array.isArray(d.items)?d.items:[];return searchHistory}).catch(()=>searchHistory);function writeSearchHistory(list){searchHistory=list.slice(0,appSettings.searchHistoryLimit);return searchHistory}// 搜索本身是只读能力;账本暂时只读时,历史记录降级为本次页面内存,不能让一个// 非关键 POST 变成未处理异常或妨碍搜索结果。-const rememberSearch=async query=>{if(!query)return;+const rememberSearch=async query=>{if(!query||!appSettings.searchHistoryLimit)return;writeSearchHistory([query,...readSearchHistory().filter(x=>foldName(x)!==foldName(query))]);await api('/api/search-history',{method:'POST',body:JSON.stringify({query})}).catch(()=>null)};function renderSearchMenu(){const menu=$('#searchMenu'),history=readSearchHistory();@@ -8382,7 +8386,7 @@ async function openItem(id,push=true,queueContext=null,anchor=null){buildBars();scrollItemDetailIntoView();- if(!queueContext)api('/api/related?id='+it.id+'&limit='+appSettings.relatedLimit).then(d=>{+ if(!queueContext&&appSettings.relatedLimit>0)api('/api/related?id='+it.id+'&limit='+appSettings.relatedLimit).then(d=>{const n=$('#nrow'); if(!n)return; cache(d.items);n.innerHTML=d.items.length?d.items.map(x=>cardHtml(x,'ncard')).join(''):'<span class="empty">暂无</span>';wireCards(n);});@@ -9018,3 +9022,158 @@ loadSourceStatus().then(()=>wantsDiscoveryBars()?buildBars():null).then(async()=>{buildEdge();wireAllDrag();await restoreRoute();scheduleStickySurfaces()}).then(loadSyncedSettings);++;(()=>{+/* Board 外壳与设置导航。 */+const legacyUI=localStorage.getItem('peach.legacy-ui')==='true';+document.documentElement.classList.toggle('board-high-contrast',localStorage.getItem('peach.high-contrast')==='true');+document.documentElement.classList.toggle('original-design',legacyUI);++function installUISetting(){+ const group=document.querySelector('.settingsscroll .settinggroup');+ if(!group||document.getElementById('legacyUISetting'))return;+ const row=document.createElement('div');row.className='settingrow';+ row.innerHTML='<label for="legacyUISetting"><b>使用旧版 UI</b><small style="display:block">保留 Peach 原有界面,刷新页面后生效。</small></label><input type="checkbox" id="legacyUISetting" class="ptoggle" role="switch"><button type="button" class="geist-button" id="applyUISetting" hidden>应用并刷新</button>';+ group.querySelector('.settingrow').after(row);+ const field=row.querySelector('input'),apply=row.querySelector('button');field.checked=legacyUI;+ field.onchange=()=>{localStorage.setItem('peach.legacy-ui',String(field.checked));apply.hidden=field.checked===legacyUI};+ apply.onclick=()=>location.reload();+ const contrastRow=document.createElement('div');contrastRow.className='settingrow';+ contrastRow.innerHTML='<label for="glassContrastSetting"><b>增加对比度</b><small style="display:block">关闭玻璃折射与透明效果,使用实色背景。</small></label><input type="checkbox" id="glassContrastSetting" class="ptoggle" role="switch">';+ row.after(contrastRow);+ const contrast=contrastRow.querySelector('input');contrast.checked=document.documentElement.classList.contains('board-high-contrast');+ contrast.onchange=()=>{localStorage.setItem('peach.high-contrast',String(contrast.checked));document.documentElement.classList.toggle('board-high-contrast',contrast.checked)};+}+let tabSequence=0;+function localTabs(root,groups,titles,host=root){+ if(!groups.length||host.querySelector(':scope > .board-local-nav'))return;+ const prefix=`board-tabs-${++tabSequence}`;+ const nav=document.createElement('div');nav.className='board-local-nav';nav.setAttribute('role','tablist');nav.setAttribute('aria-label',host===root?'配置分区':'设置分区');+ const choose=index=>{+ if(host!==root){const heading=host.querySelector('.settingshead h2');if(heading)heading.textContent=titles[index];root.scrollTop=0}+ groups.forEach((nodes,i)=>nodes.forEach(node=>node.classList.toggle('board-group-active',i===index)));+ [...nav.children].forEach((button,i)=>{button.setAttribute('aria-selected',String(i===index));button.tabIndex=i===index?0:-1});+ };+ groups.forEach((nodes,i)=>{+ const button=document.createElement('button');button.type='button';button.role='tab';button.id=`${prefix}-tab-${i}`;button.textContent=titles[i];+ nodes.forEach((node,j)=>{node.dataset.boardGroup=String(i);node.id||=`${prefix}-panel-${i}-${j}`;node.setAttribute('role','tabpanel');node.setAttribute('aria-labelledby',button.id)});+ if(host!==root){const iconId=['palette-line','layout-grid-line','play-circle-line','search-line','rss-line','shield-check-line'][i];const svg=document.createElementNS('http://www.w3.org/2000/svg','svg');svg.setAttribute('viewBox','0 0 24 24');svg.setAttribute('aria-hidden','true');svg.style.fill='currentColor';svg.style.stroke='none';svg.innerHTML=`<use href="#ri-${iconId}"/>`;button.prepend(svg)}+ button.setAttribute('aria-controls',nodes.map(node=>node.id).join(' '));button.onclick=()=>choose(i);+ button.onkeydown=event=>{let next=i;if(event.key==='ArrowRight'||event.key==='ArrowDown')next=(i+1)%groups.length;else if(event.key==='ArrowLeft'||event.key==='ArrowUp')next=(i+groups.length-1)%groups.length;else if(event.key==='Home')next=0;else if(event.key==='End')next=groups.length-1;else return;event.preventDefault();choose(next);nav.children[next].focus()};+ nav.append(button);+ });+ host===root?root.prepend(nav):host.insertBefore(nav,root);+ choose(0);+}+function decorate(){+ installUISetting();+ if(legacyUI)return;+ const config=document.querySelector('.configpage');+ if(config&&!config.querySelector(':scope > .board-local-nav')){+ const groups=[],titles=[];+ [...config.children].forEach(node=>{if(node.matches('.configgroup')){titles.push(node.textContent);groups.push([])}else if(groups.length)groups.at(-1).push(node)});+ localTabs(config,groups,titles);+ }+ const settings=document.querySelector('.settingsscroll');+ if(settings){const groups=[...settings.querySelectorAll(':scope > .settinggroup')];localTabs(settings,groups.map(x=>[x]),groups.map(x=>x.querySelector('h3').textContent),settings.parentElement)}+ const icons={'人工复核':'square-check-big','高清版':'sparkles','重复文件':'file-stack','垃圾文件':'file-archive','空文件夹':'folder','回收站':'trash','扫描与采集':'hard-drive'};+ document.querySelectorAll('.cleanupfieldset h2,.cleanupfieldset h3').forEach(heading=>{+ if(heading.querySelector('.board-card-icon'))return;+ const id=icons[heading.textContent.trim()];if(!id||!document.getElementById(`i-${id}`))return;+ const tile=document.createElement('span');tile.className='board-card-icon';tile.setAttribute('aria-hidden','true');tile.innerHTML=`<svg viewBox="0 0 24 24"><use href="#i-${id}"/></svg>`;heading.prepend(tile);+ });+ document.querySelectorAll('#managebar [data-manage]').forEach(button=>{if(button.getAttribute('aria-pressed')==='true')button.setAttribute('aria-current','page');else button.removeAttribute('aria-current')});+}+function syncSortVisibility(){+ const direction=document.querySelector('#defaultSortDirectionSetting');+ const field=direction?.querySelector('.gselect');+ if(direction&&field)direction.hidden=field.disabled;+}+const sortDirection=document.querySelector('#defaultSortDirectionSetting');+if(sortDirection){+ new MutationObserver(syncSortVisibility).observe(sortDirection,{childList:true,subtree:true,attributes:true,attributeFilter:['disabled']});+ syncSortVisibility();+}+let filterFrame;+const boardBrand=document.querySelector('#brandHome');+function placeBrand(){+ if(legacyUI)return;+ const close=document.querySelector('#drawerClose');+ if(close&&boardBrand.parentElement!==close.parentElement){+ const heading=close.parentElement.querySelector('h2,h3,strong,b');if(heading)heading.hidden=true;+ close.before(boardBrand);+ }+}+placeBrand();+new MutationObserver(placeBrand).observe(document.querySelector('#drawer'),{childList:true,subtree:true});+const overflowObservers=new WeakMap();+const boardTagbar=document.querySelector('#tagbar'),countbar=document.querySelector('#count');+const tagHome=document.createComment('filter position');boardTagbar.before(tagHome);+const countHome=document.createComment('sort position');countbar.before(countHome);+function syncFilterFrame(){+ if(legacyUI)return;+ const catalog=!boardTagbar.hidden&&!countbar.hidden&&getComputedStyle(boardTagbar).display!=='none'&&getComputedStyle(countbar).display!=='none';+ if(catalog&&!filterFrame){filterFrame=document.createElement('div');filterFrame.className='board-filter-frame';countHome.after(filterFrame);filterFrame.append(boardTagbar,countbar)}+ else if(!catalog&&filterFrame){tagHome.after(boardTagbar);countHome.after(countbar);filterFrame.remove();filterFrame=null}+ if(filterFrame)[boardTagbar,countbar.querySelector('.sorts')].filter(Boolean).forEach(scroller=>{+ if(!overflowObservers.has(scroller)){+ const update=()=>{scroller.dataset.overflowLeft=String(scroller.scrollLeft>2);scroller.dataset.overflowRight=String(scroller.scrollWidth-scroller.clientWidth-scroller.scrollLeft>2)};+ overflowObservers.set(scroller,update);scroller.addEventListener('scroll',update,{passive:true});new ResizeObserver(update).observe(scroller);+ }+ overflowObservers.get(scroller)();+ });+}+syncFilterFrame();+new MutationObserver(syncFilterFrame).observe(countbar,{childList:true,subtree:true});+new MutationObserver(syncFilterFrame).observe(boardTagbar,{childList:true});+new MutationObserver(syncFilterFrame).observe(boardTagbar,{attributes:true,attributeFilter:['hidden','style']});+new MutationObserver(syncFilterFrame).observe(countbar,{attributes:true,attributeFilter:['hidden','style']});+decorate();+new MutationObserver(decorate).observe(document.querySelector('#stats'),{childList:true,subtree:true});+new MutationObserver(decorate).observe(document.querySelector('#managebar'),{childList:true});+/* The selected design is loaded on refresh, not hot-swapped in a running page. */++let floatingScheduled=false;+function updateFloating(){+ floatingScheduled=false;+ document.body.classList.toggle('board-scrolled',scrollY>8);+ if(filterFrame){const top=parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--topH'))||64;filterFrame.classList.toggle('board-is-stuck',filterFrame.getBoundingClientRect().top<=top+9)}+}+if(!legacyUI){addEventListener('scroll',()=>{if(!floatingScheduled){floatingScheduled=true;requestAnimationFrame(updateFloating)}},{passive:true});addEventListener('resize',updateFloating);updateFloating()}++/* Generate an edge-normal displacement field; only the backdrop is refracted. */+if(!legacyUI && /Chrome|Chromium|Edg\//.test(navigator.userAgent)){+ const ns='http://www.w3.org/2000/svg';+ const svg=document.createElementNS(ns,'svg');svg.setAttribute('width','0');svg.setAttribute('height','0');svg.setAttribute('aria-hidden','true');svg.style.position='fixed';svg.style.pointerEvents='none';+ const defs=document.createElementNS(ns,'defs');svg.append(defs);document.body.append(svg);+ const attached=new WeakSet();let sequence=0;+ function attach(node){+ if(attached.has(node))return;attached.add(node);+ const id=`peach-optic-${++sequence}`;const filter=document.createElementNS(ns,'filter');filter.id=id;filter.setAttribute('filterUnits','userSpaceOnUse');filter.setAttribute('color-interpolation-filters','sRGB');+ const map=document.createElementNS(ns,'feImage');map.setAttribute('result','edge-map');map.setAttribute('preserveAspectRatio','none');+ const displacement=document.createElementNS(ns,'feDisplacementMap');displacement.setAttribute('in','SourceGraphic');displacement.setAttribute('in2','edge-map');displacement.setAttribute('xChannelSelector','R');displacement.setAttribute('yChannelSelector','G');displacement.setAttribute('scale','24');filter.append(map,displacement);defs.append(filter);+ let previous='';+ const draw=()=>{+ const width=Math.round(node.clientWidth),height=Math.round(node.clientHeight);if(!width||!height)return;+ const radius=Math.min(parseFloat(getComputedStyle(node).borderRadius)||22,width/2,height/2);const key=`${width}:${height}:${radius}`;if(previous===key)return;previous=key;+ const ratio=Math.min(1,600/width,600/height);const w=Math.max(2,Math.round(width*ratio)),h=Math.max(2,Math.round(height*ratio));+ const canvas=document.createElement('canvas');canvas.width=w;canvas.height=h;const ctx=canvas.getContext('2d');const pixels=ctx.createImageData(w,h);+ const distance=(x,y)=>{const qx=Math.abs(x-width/2)-(width/2-radius),qy=Math.abs(y-height/2)-(height/2-radius);return Math.hypot(Math.max(qx,0),Math.max(qy,0))+Math.min(Math.max(qx,qy),0)-radius};+ const depth=Math.min(24,Math.min(width,height)/3);+ for(let y=0;y<h;y++)for(let x=0;x<w;x++){+ const px=(x+.5)/ratio,py=(y+.5)/ratio,inside=-distance(px,py);let dx=0,dy=0;+ if(inside>0&&inside<depth){const gx=distance(px+.5,py)-distance(px-.5,py),gy=distance(px,py+.5)-distance(px,py-.5),length=Math.hypot(gx,gy)||1;const bend=Math.sin(Math.PI*inside/depth);dx=gx/length*bend;dy=gy/length*bend}+ const i=(y*w+x)*4;pixels.data[i]=128+dx*116;pixels.data[i+1]=128+dy*116;pixels.data[i+2]=128;pixels.data[i+3]=255;+ }+ ctx.putImageData(pixels,0,0);map.setAttribute('href',canvas.toDataURL());map.setAttribute('width',width);map.setAttribute('height',height);filter.setAttribute('x','0');filter.setAttribute('y','0');filter.setAttribute('width',width);filter.setAttribute('height',height);+ node.style.setProperty('--glass-optic',`url("#${id}") blur(2px)`);node.dataset.opticGlass='true';+ };+ new ResizeObserver(draw).observe(node);draw();+ }+ const sync=()=>document.querySelectorAll('.board-filter-frame,.top .search,.edge,.drawer').forEach(attach);+ new MutationObserver(sync).observe(document.querySelector('#main'),{childList:true,subtree:true});sync();+}++})();++if(!document.documentElement.classList.contains('original-design'))openDrawer(innerWidth>760&&sessionStorage.getItem('board.sidebar')!=='closed');diff --git a/web/board-entry.css b/web/board-entry.cssnew file mode 100644index 000000000..460f15376--- /dev/null+++ b/web/board-entry.css@@ -0,0 +1,12 @@+/* 未登录与首启页面共用的 Board 表面;无需访问受保护的资产。 */+:root{--bg:#f7f7f7;--page:#f7f7f7;--ground:#fff;--card:#fff;--field:#fafafa;--surface:#fafafa;--line:#e5e5e5;--line-soft:#ebebeb;--ink:#171717;--ink-2:#525252;--tungsten:#2563eb;--control-radius:10px}+@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#111;--page:#111;--ground:#1c1c1c;--card:#1c1c1c;--field:#232323;--surface:#232323;--line:#383838;--line-soft:#303030;--ink:#fafafa;--ink-2:#a3a3a3}}+:root[data-theme=dark]{--bg:#111;--page:#111;--ground:#1c1c1c;--card:#1c1c1c;--field:#232323;--surface:#232323;--line:#383838;--line-soft:#303030;--ink:#fafafa;--ink-2:#a3a3a3}+body{background:var(--page)}+main{background:var(--ground);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 4px 16px #00000008}+h1{font-weight:500}+input[type=text],input[type=password],input[type=number],select,.affix{background:var(--field);border-radius:10px}+button[type=submit],form>button,.geist-button.primary{background:linear-gradient(#3986ff,#1760ef);color:#fff;border:1px solid #3986ff;box-shadow:inset 0 1px 1px #ffffff60;border-radius:10px}+button[type=submit]:hover,form>button:hover,.geist-button.primary:hover{background:linear-gradient(#2879fa,#1459df);color:#fff}+.switch label:has(input:checked){background:var(--ground);box-shadow:0 1px 3px #0002}+@media(max-width:480px){main{padding:20px}}diff --git a/web/board.css b/web/board.cssnew file mode 100644index 000000000..353e89d0c--- /dev/null+++ b/web/board.css@@ -0,0 +1,286 @@+/* BoardUI surface tokens; Peach retains its layouts and specialized media UI. */+.settingscard .settingsscroll .sidebarsetting{padding:16px 12px 12px 0!important;margin:0!important}+.settingscard .settingsscroll .settingrow.settingsortrow{grid-template-columns:1fr;gap:12px;padding-block:12px 16px;align-items:start}+.settingscard .settingsscroll .settingsortcontrols>[hidden]{display:none}+.settingscard .settingsscroll .settingsortcontrols{display:flex;gap:8px;justify-content:flex-end}.settingscard .settingsscroll .settingsortcontrols>div{flex:1}+.board-optional-number{display:flex;align-items:center;gap:12px;flex-direction:row-reverse}.board-number-fields[hidden]{display:none}+.board-number-control input::-webkit-inner-spin-button,.board-number-control input::-webkit-outer-spin-button{appearance:none;margin:0}.board-number-control input{appearance:textfield;-moz-appearance:textfield}+.settingspanel.settingspanel{background:rgba(0,0,0,.7);backdrop-filter:none}+.settingscard.settingscard{width:871px;max-width:calc(100vw - 32px);height:614px;max-height:calc(100dvh - 32px);border-radius:24px;grid-template-columns:274px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);overflow:clip;background:var(--page)}+.settingscard.settingscard>.board-local-nav{grid-column:1;grid-row:1/3;padding:10px;gap:4px;background:var(--ground)}+.settingscard.settingscard>.board-local-nav:before{content:'设置';font-size:13px;color:var(--muted);padding:4px 8px 8px}+.settingscard.settingscard>.board-local-nav button{padding:8px;border-radius:10px;font-size:14px;min-height:36px;font-weight:500}+.settingscard.settingscard>.board-local-nav button{display:flex;align-items:center;gap:8px}.settingscard.settingscard>.board-local-nav button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}+.settingscard.settingscard>.board-local-nav button[aria-selected=true]{background:var(--picked);box-shadow:none}+.settingscard.settingscard .settingshead{grid-column:2;grid-row:1;padding:32px 32px 12px;background:transparent;border:0}+.settingscard .settingshead h2{font-size:20px;font-weight:500;line-height:28px}+.settingscard .settingshead button{width:24px;height:24px;border-radius:50%;background:var(--surface)}+.settingscard .settingshead button svg{width:16px;height:16px}+.settingscard.settingscard .settingsscroll{padding:0 32px 32px;min-height:0;overflow-y:auto}+.settingscard .settingsscroll>.settinggroup{background:var(--ground);border-radius:16px;padding:0 0 0 12px}+.settingscard .settingsscroll>.settinggroup>h3{display:none}+.settingscard .settingsscroll .settingrow{min-height:52px;padding:10px 10px 10px 0;gap:16px;border-top:0;border-bottom:1px solid var(--line-soft)}+.settingscard .settingsscroll .settingrow:last-child{border-bottom:0}+.settingscard .settingsscroll .settingrow b{font-size:14px;line-height:20px;font-weight:400}+.settingscard .settingsscroll .settingrow small{font-size:12px;line-height:18px;margin-top:2px;max-width:none}+.settingscard .settingsscroll .gselect{min-width:90px;min-height:32px;height:32px;padding:6px 8px;font-size:13px;border-radius:8px}+.settingscard .board-number-control{gap:5px;font-size:12px}.settingscard .board-number-control input{width:64px;height:32px;padding:6px;border-radius:8px;font-size:13px}+.settingscard .board-number-control button{min-height:32px;padding:4px 8px;font-size:12px}+@media(max-width:760px){.settingscard.settingscard{display:flex;flex-direction:column;width:calc(100vw - 24px);max-width:calc(100vw - 24px)}.settingscard.settingscard>.board-local-nav{flex-direction:row;flex-shrink:0;overflow-x:auto;border-right:0}.settingscard.settingscard>.board-local-nav:before{display:none}.settingscard.settingscard .settingshead{padding:16px 20px 12px}.settingscard.settingscard .settingsscroll{padding:0 20px 20px;flex:1}}+/* Translucent navigation experiment, using browser-native backdrop compositing. */+:root{--glass-fill:rgba(248,250,255,.72);--glass-rim:rgba(255,255,255,.76);--glass-low:rgba(70,80,100,.12);--glass-text:#242830;--glass-shadow:0 5px 20px #11182714;--glass-sheen:rgba(255,255,255,.38)}+:root[data-theme="dark"]{--glass-fill:rgba(29,32,39,.68);--glass-rim:rgba(255,255,255,.23);--glass-low:rgba(255,255,255,.055);--glass-text:#e7e9ee;--glass-shadow:0 5px 20px #00000026;--glass-sheen:rgba(230,239,255,.08)}+@media(prefers-color-scheme:dark){:root:not([data-theme]){--glass-fill:rgba(29,32,39,.68);--glass-rim:rgba(255,255,255,.23);--glass-low:rgba(255,255,255,.055);--glass-text:#e7e9ee;--glass-shadow:0 5px 20px #00000026;--glass-sheen:rgba(230,239,255,.08)}}+.board-filter-frame.board-filter-frame.board-filter-frame,.drawer.drawer,.drawer.drawer.open,.edge.edge,.top .search.search{+ background:linear-gradient(125deg,var(--glass-sheen),transparent 42%,var(--glass-low)),var(--glass-fill);+ backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);+ border:0;box-shadow:inset 0 1px 0 var(--glass-rim),inset 1px 0 0 var(--glass-low),inset -1px 0 0 var(--glass-low),inset 0 -1px 0 var(--glass-low),var(--glass-shadow);+}+.board-filter-frame.board-filter-frame{border-radius:22px;isolation:isolate;color:var(--glass-text)}+.board-filter-frame.board-is-stuck::before,.board-filter-frame.board-is-stuck::after{display:none}+.board-filter-frame.board-filter-frame .tagbar{border-radius:22px 22px 0 0}+.board-filter-frame.board-filter-frame .count{border-radius:0 0 22px 22px}+.board-filter-frame.board-filter-frame .pill,.board-filter-frame.board-filter-frame .sorts button{color:var(--glass-text)}+.board-filter-frame.board-filter-frame #tagbar .pill[data-tag]:not([aria-pressed="true"]){border-color:var(--glass-low)}+.board-filter-frame.board-filter-frame #tagbar .pill[data-state][aria-pressed="true"],.board-filter-frame.board-filter-frame .sorts button[aria-pressed="true"]{background:color-mix(in srgb,var(--ink) 10%,transparent)}+.board-filter-frame.board-filter-frame .sorts #batchAction{color:var(--ground);background:var(--ink)}+.top.top,body.board-scrolled .top.top{background:transparent;box-shadow:none;backdrop-filter:none;border:0}+.top .search.search{border-radius:999px;padding-left:16px}+.top.top>.ib{border-radius:50%;background:var(--glass-fill);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 var(--glass-low)}+.drawer.drawer{border-radius:26px}.edge.edge{border-radius:24px}+.drawer.drawer .dnav button:not([aria-pressed="true"]),.edge.edge button:not([aria-pressed="true"]){color:var(--glass-text)}+@supports not (backdrop-filter:blur(1px)){.board-filter-frame.board-filter-frame.board-filter-frame,.drawer.drawer,.drawer.drawer.open,.edge.edge,.top .search.search{background:var(--ground)}}+@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.board-filter-frame.board-filter-frame.board-filter-frame,.drawer.drawer,.drawer.drawer.open,.edge.edge,.top .search.search,.top.top>.ib{background:var(--ground);backdrop-filter:none;-webkit-backdrop-filter:none}}+/* Peach-owned media and analytics layouts. */+html.board-high-contrast .board-filter-frame.board-filter-frame.board-filter-frame,html.board-high-contrast .drawer.drawer,html.board-high-contrast .edge.edge,html.board-high-contrast .top .search.search,html.board-high-contrast .top.top>.ib{background:var(--ground);backdrop-filter:none;-webkit-backdrop-filter:none}+:root{--board-card-foot:color-mix(in srgb,var(--ground) 92%,var(--ink))}+.followmanage.followmanage{width:100%;max-width:1120px}+.followmanage .fmain{width:100%;max-width:1120px;margin-inline:auto;gap:20px}+.followmanage .fmain>.fsec{border:1px solid var(--line);border-radius:18px;background:var(--ground);overflow:visible}+.followmanage .fmain>.fsec>.fsechead{background:var(--ground);padding:20px 24px;border:0;border-bottom:1px solid var(--line-soft);border-radius:18px 18px 0 0;min-height:68px}+.followmanage .fsechead h3{font-size:16px;font-weight:500;letter-spacing:0;line-height:24px}+.followmanage .fmain>.fsec>.fsecfoot,.followmanage .fmain>.fsec>.fdesc,.followmanage .fmain>.fsec>.falias{background:var(--board-card-foot);border-top:1px solid var(--line-soft);border-radius:0 0 17px 17px;padding:16px 24px;margin:0}+.configfieldset.configfieldset>.geist-fieldset-footer,.cleanupfieldset.cleanupfieldset>.geist-fieldset-footer{background:var(--board-card-foot)}+.followmanage .fmain>.fsec>.frows{padding:8px 24px}+@media(max-width:760px){.followmanage .fmain>.fsec>.fsechead{padding:16px}.followmanage .fmain>.fsec>.frows{padding:8px 16px}.followmanage .fmain>.fsec>.fsecfoot,.followmanage .fmain>.fsec>.fdesc,.followmanage .fmain>.fsec>.falias{padding:14px 16px}}+.gridstack .card:not(.junkcard) .pic{border-radius:12px;overflow:hidden}+.gridstack>.grid{row-gap:24px;column-gap:16px}+.top{isolation:isolate}+body.board-scrolled .top{box-shadow:none;border-bottom:0}+.board-filter-frame.board-is-stuck{box-shadow:0 0 24px 4px #00000038,0 8px 20px #00000026}+.board-filter-frame.board-is-stuck::before{content:'';position:absolute;left:-16px;right:-16px;top:-9px;height:9px;z-index:-1;background:var(--page);mask-image:linear-gradient(to right,transparent,#000 24px,#000 calc(100% - 24px),transparent);pointer-events:none}+.board-filter-frame .tagbar.is-stuck,.board-filter-frame .count.is-stuck{backdrop-filter:none;-webkit-backdrop-filter:none}+.peach-insights{max-width:1120px;margin:0 auto 40px;color:var(--ink)}+.peach-insights[hidden]{display:none}+:root,[data-theme="light"]{--page:#f7f7f7;--ground:#fff;--surface:#fafafa;--sunk:#f2f2f2;--ink:#171717;--ink-2:#525252;--muted:#737373;--line:#e5e5e5;--line-soft:#ebebeb;--inset:#f0f0f0;--picked:#f0f0f0;--tungsten:#3b82f6;--control-radius:10px;--surface-radius:14px;--floating-radius:20px;--railW:272px;--board-blue:linear-gradient(180deg,#3b82f6,#2563eb)}+[data-theme="dark"]{--page:#111;--ground:#1c1c1c;--surface:#232323;--sunk:#171717;--ink:#fafafa;--ink-2:#d4d4d4;--muted:#a3a3a3;--line:#383838;--line-soft:#303030;--inset:#303030;--picked:#303030;--hover:rgba(255,255,255,.07)}+body{background:var(--page)}+.top{background:var(--page);backdrop-filter:none;border-bottom:0;height:64px}+:root{--topH:64px}+.top .search{background:var(--ground);border:1px solid var(--line);border-radius:var(--control-radius)}+.edge{left:12px;top:12px;bottom:12px;width:248px;border:1px solid var(--line);border-radius:24px;padding:14px 12px;gap:4px;background:var(--ground);overflow-y:auto;align-items:stretch}+.edge::before{content:'Peach';font-size:21px;font-weight:600;padding:8px 12px 22px;letter-spacing:.02em}+.edge button{flex:none;width:100%;height:40px;justify-content:flex-start;padding:0 12px;gap:12px;border-radius:10px;font-size:14px}+.edge button::after{content:attr(title);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}+.edge button svg{width:19px;height:19px;flex:none}+.edge button[aria-pressed="true"],.dnav button[aria-pressed="true"]{background:var(--board-blue);color:white;box-shadow:inset 0 1px 1px #ffffff50,0 1px 2px #00000016}+.edge button:hover:not([aria-pressed="true"]){background:var(--surface)}+.tiers,.tagbar,.javbar{background:var(--page)}+.managebar{background:var(--ground);border:1px solid var(--line);border-radius:14px;padding:6px}+.stats>section,.stats>.fieldset,.fieldset{border-radius:var(--surface-radius)}+.settingscard,.drawer{box-shadow:0 12px 40px #0000000d}+.settingscard{border:1px solid var(--line)}+.gridstack .card:not(.junkcard){background:transparent}+.geist-button.primary:not(:disabled),.tagselection button.primary:not(:disabled){background:var(--board-blue);color:#fff;border:1px solid #2563eb;box-shadow:inset 0 1px 1px #ffffff50,0 1px 2px #00000016}+.geist-button.primary:hover:not(:disabled),.tagselection button.primary:hover:not(:disabled){background:#2563eb;color:#fff}+.geist-input,.geist-select,.configfield input,.search{box-shadow:0 1px 2px #00000004}+.configfieldset,[data-geist-fieldset]{border-radius:var(--surface-radius);overflow:hidden}+@media(prefers-color-scheme:dark){:root:not([data-theme]){--page:#111;--ground:#1c1c1c;--surface:#232323;--sunk:#171717;--ink:#fafafa;--ink-2:#d4d4d4;--muted:#a3a3a3;--line:#383838;--line-soft:#303030;--inset:#303030;--picked:#303030;--hover:rgba(255,255,255,.07)}}+.edge{padding-bottom:72px}++/* One sidebar, two states. Navigation and filters share the expanded panel. */+.followmanage .fmain>.fsec{padding:0}+.followmanage .fmain>.fsec>.fsechead{margin:0}+.followmanage .fsec>.faddform,.followmanage .fsec>.fguess,.followmanage .fsec>#followPicks:not(:empty),.followmanage .fsec>.fnote:not(:empty){margin:16px 24px}+.followmanage .fsec>.faliasmanager{margin:16px 0 0;background:var(--board-card-foot);border-radius:0 0 17px 17px}+.followmanage .faliasmanager>summary{padding:14px 24px}+.followmanage .faliasmanager .fcollapsebody{padding:4px 24px 20px}+@media(max-width:760px){.followmanage .fsec>.faddform,.followmanage .fsec>.fguess,.followmanage .fsec>#followPicks:not(:empty),.followmanage .fsec>.fnote:not(:empty){margin:16px}.followmanage .faliasmanager>summary{padding:14px 16px}}+:root{--railW:88px;--board-content:1120px}+body.drawer-open{--railW:296px}+.edge{left:12px;top:12px;bottom:12px;width:64px;padding:16px 7px;align-items:center;gap:6px;border-radius:20px}+.edge::before{content:'P';font-size:20px;padding:4px 0 16px}+.edge button{width:48px;height:40px;padding:0;justify-content:center}+.edge button::after{display:none}+body.drawer-open .edge{display:none}+.drawer{left:12px;top:12px;bottom:12px;width:272px;background:var(--ground);backdrop-filter:none;border:1px solid var(--line);border-radius:24px;transform:translateX(calc(-100% - 16px));box-shadow:0 2px 4px #00000003;transition:none}+.drawer.open{transform:none;box-shadow:0 2px 4px #00000003}+.drawerscroll{padding:20px 12px 24px}+.drawer .dnav{gap:4px;margin:16px 0 24px}+.drawer .dnav button{height:40px;padding:8px 12px;gap:12px;font-size:14px;border-radius:10px;line-height:20px;font-weight:400}+.drawer .dnav svg{margin:0;width:18px;height:18px}+.drawer .dnav button[aria-pressed="true"]{background:var(--board-blue);color:white;box-shadow:inset 0 1px 1px #ffffff50,0 1px 2px #00000014}+.drawer h3{font-size:12px;color:var(--muted);font-weight:500}+.drawer .drawertitle,.drawer .drawerhead{font-size:16px}+.scrim.on{display:none}+.top .brand .sub{display:none}++/* Routed management navigation uses BoardUI's underline treatment. */+.managebar{display:block;width:calc(100% - 48px);max-width:var(--board-content);margin:20px auto 28px;padding:0;background:none;border:0;border-radius:0;overflow:visible}+.managebar .managebar-toggle{display:none!important}+.managebar .managebar-menu{display:flex!important;position:static;flex-direction:row;flex-wrap:nowrap;gap:4px;width:100%;padding:0;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;overflow-x:auto;scrollbar-width:none}+.managebar .managebar-menu button{position:relative;display:inline-flex;flex:none;width:auto;align-items:center;gap:7px;padding:12px 10px;margin:0;min-height:44px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--ink-2);font-size:14px;font-weight:400;white-space:nowrap}+.managebar .managebar-menu button svg{width:16px;height:16px}+.managebar .managebar-menu button[aria-pressed="true"]{background:none;color:var(--tungsten);border-bottom-color:var(--tungsten);font-weight:500}+.managebar .managebar-menu button:hover{background:none;color:var(--ink)}+.managebar .managebar-menu button[aria-pressed="true"]:hover{color:var(--tungsten)}+body.cleanup-layout #manageTitle,body.cleanup-layout #manageCrumb,body.cleanup-layout #manageLede,body.configuration-layout #manageTitle{max-width:var(--board-content);width:calc(100% - 48px);margin-left:auto;margin-right:auto}+#manageTitle{font-size:26px;line-height:34px;margin-bottom:24px}++/* Task entry cards and editing panels have different information density. */+.cleanuppage,.configpage{width:100%;max-width:var(--board-content)}+.cleanupgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-bottom:32px}+.cleanupfieldset{border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px #00000003}+.cleanupfieldset>.geist-fieldset-content{padding:20px 20px 16px;min-height:120px}+.cleanupfieldset h3,.cleanupfieldset h2{font-size:16px;line-height:24px;font-weight:500;margin:0 0 12px}+.cleanupfieldset strong{font-size:24px;line-height:32px;font-weight:500;color:var(--ink);letter-spacing:-.02em}+.cleanupfieldset .cleanupmeta{font-size:12px;line-height:18px;margin-top:8px}+.cleanupfieldset>.geist-fieldset-footer{background:transparent;border-top:1px solid var(--line-soft);padding:12px 20px;min-height:56px}+.cleanupfieldset>.geist-fieldset-footer button{font-size:13px}+.cleanupgrid>#libraryProcessing{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center}+.cleanupgrid>#libraryProcessing>.geist-fieldset-content{min-height:0;padding:24px}+.cleanupgrid>#libraryProcessing>.geist-fieldset-footer{border:0;padding:24px;background:none;display:flex;gap:8px;flex-wrap:wrap}+.board-card-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--line-soft);background:var(--surface);border-radius:10px;margin-right:10px;vertical-align:middle;color:var(--ink-2)}+.board-card-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}+.configfieldset{border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px #00000003}+.configfieldset>.geist-fieldset-content{padding:24px;gap:20px}+.configfieldset>.geist-fieldset-footer{background:var(--ground);border-top:1px solid var(--line-soft);padding:14px 24px}+.configfieldset h2,.configfieldset h3{font-size:16px;font-weight:500;line-height:24px}+.configfieldset-heading{padding-bottom:16px;border-bottom:1px solid var(--line-soft)}+.configpage>.configgroup{display:none}+.board-local-nav{display:flex;gap:4px;overflow-x:auto;flex:none;border-bottom:1px solid var(--line);margin:0 0 24px;padding:0;scrollbar-width:none}+.board-local-nav button{flex:none;background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 12px;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;color:var(--ink-2);cursor:pointer;white-space:nowrap}+.board-local-nav button[aria-selected="true"]{border-bottom-color:var(--tungsten);color:var(--tungsten);font-weight:500}+.board-local-nav button:focus-visible{outline:2px solid var(--tungsten);outline-offset:-3px}+[data-board-group]:not(.board-group-active){display:none!important}+.settingscard{width:min(900px,calc(100vw - 40px));max-width:900px;border-radius:24px;display:grid;grid-template-columns:180px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);overflow:hidden}+.settingshead{grid-column:1/-1;padding:20px 24px;background:var(--ground)}+.settingscard>.board-local-nav{grid-column:1;grid-row:2;flex-direction:column;gap:4px;padding:16px 12px;margin:0;background:var(--surface);border:0;border-right:1px solid var(--line);overflow-y:auto}+.settingscard>.board-local-nav button{border:0;border-radius:10px;text-align:left;padding:10px 12px}+.settingscard>.board-local-nav button[aria-selected="true"]{background:var(--ground);color:var(--ink);box-shadow:0 1px 3px #0000000a}+.settingsscroll{grid-column:2;grid-row:2;min-height:320px;padding:24px}+.settingsscroll>.settinggroup{border:0;background:none;border-radius:0;margin:0;padding:0}+.settingsscroll>.settinggroup>h3{font-size:18px;margin:0 0 20px}+.settingsscroll .settingrow{padding:18px 0}+.settingsscroll .settingrow small{max-width:none;line-height:1.5}+.settingsscroll .settingrow{grid-template-columns:minmax(0,1fr) auto;column-gap:32px}+.board-number-control{display:flex;align-items:center;gap:8px}.board-number-control input{width:96px;padding:8px 10px}.board-number-help{font-size:11px!important}.board-number-error{color:#ef6868!important;font-size:12px!important}.board-number-error:empty{display:none}+@media(max-width:600px){.settingsscroll .settingrow{grid-template-columns:1fr;gap:12px}.settingsscroll .settingrow:has(input[type=checkbox]){grid-template-columns:minmax(0,1fr) auto}.board-number-control input{width:110px}}+.pselect,.popmenu{border-radius:12px;border-color:var(--line);box-shadow:0 8px 24px #00000012}+.geist-switch,.switchgroup{background:var(--surface);border-radius:10px}+.reviewitem,.followtask{border-color:var(--line);border-radius:16px}+:root[data-theme="dark"]{--page:#111;--ground:#1c1c1c;--surface:#232323;--sunk:#171717;--ink:#fafafa;--ink-2:#d4d4d4;--muted:#a3a3a3;--line:#383838;--line-soft:#303030;--inset:#303030;--picked:#303030;--hover:rgba(255,255,255,.07);--tungsten:#60a5fa}+body::before{display:none}+.tiers{background:transparent}+.board-filter-frame{position:sticky;top:calc(var(--topH) + 8px);z-index:60;border:0;border-radius:16px;background:var(--ground);margin:8px 0 20px;box-shadow:0 2px 14px #00000014}+.board-filter-frame .tagbar,.board-filter-frame .count{position:relative;top:auto;left:auto;width:auto;margin:0;background:transparent;box-shadow:none;border:0;padding:10px 16px}+.board-filter-frame .tagbar{border-bottom:0;border-radius:16px 16px 0 0}+.board-filter-frame .count{border-radius:0 0 16px 16px;min-width:0}+.board-filter-frame .sorts{position:relative;min-width:0;overflow-x:auto;scrollbar-width:none}+@media(max-width:760px){.board-filter-frame .count{display:flex;flex-wrap:wrap;gap:8px;overflow:visible}.board-filter-frame .count>.mono{width:100%}.board-filter-frame .sorts{flex:1 1 100%;width:100%;margin:0}}+[data-overflow-right="true"]{mask-image:linear-gradient(to right,#000 calc(100% - 18px),transparent)}+[data-overflow-left="true"]{mask-image:linear-gradient(to right,transparent,#000 18px)}+[data-overflow-left="true"][data-overflow-right="true"]{mask-image:linear-gradient(to right,transparent,#000 18px,#000 calc(100% - 18px),transparent)}+.drawer #brandHome{display:flex;gap:10px;align-items:center;margin-right:auto;text-decoration:none;color:var(--ink)}+.drawer #brandHome .mark{width:28px;height:28px}.drawer #brandHome h1{font-size:20px;letter-spacing:.02em}.drawer #brandHome .sub{display:none}+.edge::before{content:'';width:28px;height:28px;background:url('/peach-logo.png') center/contain no-repeat;padding:0;margin:4px 0 16px}+.top .search{max-width:760px;margin-left:0;margin-right:auto}+.board-filter-frame #tagbar{height:48px;gap:6px;padding:8px 12px}+.board-filter-frame #tagbar .pill{height:30px;padding:0 10px;font-size:13px;line-height:20px;border-radius:8px;border:1px solid transparent}+.board-filter-frame #tagbar .pill[data-state]{border:0;background:none}+.board-filter-frame #tagbar .pill[data-state][aria-pressed="true"]{background:var(--picked);color:var(--ink)}+.board-filter-frame #tagbar .pill[data-tag]:not([aria-pressed="true"]){border:1px solid var(--line);background:transparent}+.board-filter-frame .count{padding:8px 12px;min-height:46px;gap:12px}+.board-filter-frame .sorts{gap:4px}.board-filter-frame .sorts button{height:30px;min-height:30px;font-size:12px;padding:0 8px;border:0;border-radius:7px;background:transparent}+.board-filter-frame .sorts button[aria-pressed="true"]{background:var(--picked)}+#grid.gridstack{border:0;background:transparent;padding:0;box-shadow:none;border-radius:0}+#grid.gridstack>.grid{border:0;background:transparent;padding:0;box-shadow:none;border-radius:0}+@media(pointer:coarse){.board-filter-frame #tagbar .pill{height:36px}.board-filter-frame #tagbar{height:52px}.board-filter-frame .sorts button{height:36px}}+#applyUISetting{padding:8px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}+#applyUISetting[hidden]{display:none}+.settingspanel{background:rgba(0,0,0,.38);backdrop-filter:blur(4px)}++@media(max-width:1000px){.cleanupgrid>#libraryProcessing{display:flex}.cleanupgrid>#libraryProcessing>.geist-fieldset-footer{padding:12px 20px;border-top:1px solid var(--line-soft)}.settingscard{width:calc(100vw - 32px)}}+@media(max-width:760px){+ :root,body.drawer-open{--railW:0px}+ .drawer{top:64px;bottom:12px;width:min(320px,calc(100vw - 24px));border-radius:20px;z-index:97}+ .scrim.on{display:block;top:56px}+ .top{z-index:98;background:var(--page)}+ .managebar{width:100%;margin:16px 0 24px}.managebar .managebar-menu{padding:0;gap:0}+ .managebar .managebar-menu button{padding:10px 9px;font-size:13px}.managebar .managebar-menu button svg{display:none}+ .cleanupgrid{grid-template-columns:1fr;gap:12px}+ body.cleanup-layout #manageTitle,body.configuration-layout #manageTitle,body.cleanup-layout #manageCrumb{width:100%;font-size:22px}+ .cleanupfieldset>.geist-fieldset-content{min-height:0;padding:18px}+ .cleanupfieldset strong{font-size:22px}.cleanupfieldset>.geist-fieldset-footer{padding:12px 18px}+ .settingscard{display:flex;flex-direction:column;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}+ .settingshead{padding:16px 20px}+ .settingscard>.board-local-nav{flex-direction:row;border-right:0;border-bottom:1px solid var(--line);padding:8px 12px;background:var(--ground);overflow-x:auto}+ .settingsscroll{min-height:0;padding:20px;overflow:auto}.settingsscroll .settingrow{gap:16px;flex-wrap:wrap}+ .configfieldset>.geist-fieldset-content{padding:20px}.board-local-nav{gap:0}.board-local-nav button{padding:10px 9px;font-size:13px}+}++/* Settings rows use a shared baseline; controls wrap only on narrow screens. */+.settingscard .settingsscroll .settingrow.settingsortrow{grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding-block:12px}+.settingscard .settingsscroll .settingsortcontrols{gap:8px;justify-content:end}+.settingscard .settingsscroll .settingsortcontrols>div{flex:0 1 112px;min-width:0}+.settingscard .settingsscroll .settingsortcontrols .gselect{width:112px;min-width:0;padding:0}+.settingscard .settingsscroll .gselectfield{height:32px;padding:0 8px;border-radius:8px;font-size:13px;gap:6px}+.settingscard .settingsscroll .board-number-help{display:none}+.board-number-fields{position:relative}+.settingscard .board-number-control{display:flex;gap:0;height:32px;border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden;align-items:stretch}+.settingscard .board-number-control input{border:0;box-shadow:none;background:transparent;width:64px;min-width:0;height:30px;border-radius:0;padding:6px 8px;font:inherit;outline:none}+.settingscard .board-number-control:focus-within{box-shadow:0 0 0 3px var(--line);border-color:var(--muted)}+.settingscard .board-number-control>span{display:flex;align-items:center;padding:0 8px;border-left:1px solid var(--line);color:var(--muted);font-size:12px;background:var(--ground)}+.settingscard .board-number-control:has([aria-invalid=true]){border-color:var(--error,#e5484d);box-shadow:0 0 0 2px color-mix(in srgb,var(--error,#e5484d) 15%,transparent)}+.settingscard .board-number-error:not(:empty){position:absolute;z-index:10;right:0;top:calc(100% + 6px);width:max-content;max-width:240px;padding:6px 10px;background:var(--ground);border:1px solid color-mix(in srgb,var(--error,#e5484d) 35%,var(--line));border-radius:8px;box-shadow:0 4px 14px #0002;color:var(--error,#e5484d);font-size:12px;line-height:18px;margin:0}+.settingscard .board-number-error[hidden]{display:none}+.settingscard .board-optional-number{position:relative}+.ptoggle{width:42px;height:24px;background:var(--surface);border:0;border-radius:999px;transition:background .2s}+.ptoggle::after{width:18px;height:18px;top:3px;left:3px;background:linear-gradient(#fff 44%,#f3f3f3);box-shadow:0 3px 3px #00000008;transition:transform .2s;transform:none}+.ptoggle::before{content:'';position:absolute;z-index:1;left:8.25px;top:8.25px;width:7.5px;height:7.5px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 .375px var(--line);transition:transform .2s}+.ptoggle:checked{background:linear-gradient(#3986ff,#1760ef);box-shadow:inset 0 1.5px 0 #ffffff40,inset 0 0 0 .75px #3986ff}+.ptoggle:checked::after{left:3px;transform:translateX(18px)}+.ptoggle:checked::before{transform:translateX(18px);background:linear-gradient(#0450e2,#2473fe)}+.ptoggle:disabled{opacity:.5}+#applyUISetting{grid-column:1/-1;width:100%;background:linear-gradient(#3986ff,#1760ef);color:#fff;border:1px solid #3986ff;box-shadow:inset 0 1px 1px #ffffff60}+#applyUISetting:hover{background:linear-gradient(#2879fa,#1459df);color:#fff}+@media(max-width:760px){.settingscard .settingsscroll .settingrow.settingsortrow{grid-template-columns:1fr;gap:10px}.settingscard .settingsscroll .settingsortcontrols{width:100%}.settingscard .settingsscroll .settingsortcontrols>div{flex:1}.settingscard .settingsscroll .settingsortcontrols .gselect{width:100%}}+@media(prefers-reduced-motion:reduce){.ptoggle,.ptoggle::after,.ptoggle::before{transition:none}}++/* 媒体详情、实体与管理共享卡片层级,播放器仍使用原有播放交互。 */+.stage{border:1px solid var(--line);border-radius:var(--surface-radius);overflow:clip;background:var(--ground);box-shadow:0 2px 8px #0000000a;--detail-surface:var(--ground)}+.stage:not(.ambient-on){background:var(--ground)}+.stage .side{background:var(--ground);backdrop-filter:none;border-color:var(--line-soft)}+.sidecontent{padding:20px;gap:4px}+.stitle{font-weight:500;line-height:1.5}+.detailtag{border-radius:8px;background:var(--surface);border-color:var(--line-soft)}+.detailtag .tagfilter{padding-inline:8px}+.srctools button,.detailtitletools button{border-radius:8px;background:var(--surface)}+.geist-fieldset,.configfieldset,.cleanupfieldset,.resourcepanel,.resourcesyncbox{border-color:var(--line);border-radius:var(--surface-radius);background:var(--ground);overflow:clip}+.geist-fieldset-footer,.configfieldset>.geist-fieldset-footer{background:var(--surface);border-top:1px solid var(--line-soft)}+.geist-input,.geist-select,.gselectfield,.configfield input,.configfield select,.configfield textarea{background:var(--surface);border-color:var(--line);border-radius:10px}+.iconswitch{padding:3px;background:var(--surface);border:1px solid var(--line-soft);border-radius:10px}+.iconswitch label{border-radius:8px}+.iconswitch label:has(input:checked){background:var(--ground);box-shadow:0 1px 3px #0002}+.card{overflow:clip;border-radius:var(--surface-radius)}+.card .pic{border-radius:var(--surface-radius)}+.card .info{background:transparent}+@media(max-width:760px){.sidecontent{padding:16px}.stage{border-radius:12px}.stage .side{border-left:0;border-top:1px solid var(--line-soft)}}+@media(max-width:760px){.settingspanel.settingspanel{padding:12px;grid-template-columns:minmax(0,1fr)}.settingscard.settingscard{width:calc(100vw - 24px);max-width:calc(100vw - 24px);min-width:0}.settingscard .settingsscroll .settingrow:has(.board-optional-number){grid-template-columns:minmax(0,1fr) auto;gap:12px}.settingscard>.board-local-nav{min-width:0;max-width:100%}}+/* 纯图标按钮不继承浏览器按钮的水平内边距。 */+:is(.settingshead button,.srctools button,.detailtitletools button,.sidebarorderrow button,#drawerClose){padding:0;display:inline-grid;place-items:center;line-height:1;flex-shrink:0}+:is(.settingshead button,.srctools button,.detailtitletools button,.sidebarorderrow button,#drawerClose)>svg{display:block;margin:0;flex-shrink:0;align-self:center;justify-self:center}+:is(.settingshead button,.srctools button,.detailtitletools button,.sidebarorderrow button,#drawerClose)[hidden]{display:none}+.closestage{padding:0;display:grid;place-items:center;line-height:1;border-radius:50%;background:var(--surface);color:var(--ink)}+.closestage svg{display:block;margin:0;justify-self:center;align-self:center}+diff --git a/web/css/16-settings.css b/web/css/16-settings.cssindex 3ad96af10..ebd581356 100644--- a/web/css/16-settings.css+++ b/web/css/16-settings.css@@ -34,8 +34,10 @@ body.settings-open{overflow:hidden}.settinggroup>h3+.settingrow{border-top:0}.settingrow b{display:block;font-size:var(--fs-md)}.settingrow small{display:block;color:var(--muted);margin-top:8px;line-height:1.45}.settingrow .gselect{min-width:148px}.settingrow.settingrelated{border-top:0}-.settingsortrow{grid-template-columns:minmax(0,1fr)}-.settingsortcontrols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}+.settinggroup .settingrow.settingsortrow{grid-template-columns:minmax(0,1fr);gap:12px;padding-block:14px 16px}+.settingsortcontrols{display:flex;gap:8px;min-width:0}+.settingsortcontrols>div{flex:1;min-width:0}+.settingsortcontrols>[hidden]{display:none}.settingsortcontrols .gselect{min-width:0;width:100%}.settinggroup{margin:16px 0 0;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground);padding:0 16px 12px}@@ -90,4 +92,4 @@ body.settings-open{overflow:hidden}.settingrow:has(input[type="checkbox"]){grid-template-columns:minmax(0,1fr) auto;gap:12px}.settingrow .gselect{width:100%;min-width:0}.settingrow .pcheck{justify-self:start}}.sidebaradd .sidebaraddmenu button{justify-items:start}-+#applyUISetting[hidden]{display:none}diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.jsindex ee2dd32a4..7b66231b0 100644--- a/web/dist/peach-ui.js+++ b/web/dist/peach-ui.js@@ -1,7 +1,7 @@import { LOC as e, esc as t, faviconUrl as n, fmtDur as r, fmtSize as i, icon as a, requestErrorMessage as o } from "/js/core.js";import { MEDIA_SOURCE_ICONS as s, checkboxHtml as c, confirmModal as l, emptyStateHtml as u, fieldsetTitle as d, loadingDotsHtml as f, noteHtml as p, progressHtml as m, projectBannerHtml as h, selectFieldHtml as g, selectOptionIconHtml as _, setActionBusy as v, wireCollapse as y, wireSelectField as b } from "/js/ui-components.js";//#region node_modules/preact/dist/preact.module.js-var x, S, C, w, T, E, D, O, k, A, j, ee, M, te, N, P = {}, ne = [], re = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ie = Array.isArray;+var x, S, C, w, T, E, D, O, k, A, j, ee, M, N, P, te = {}, ne = [], re = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ie = Array.isArray;function F(e, t) {for (var n in t) e[n] = t[n];return e;@@ -67,7 +67,7 @@ function fe() {}function pe(e, t, n, r, i, a, o, s, c, l, u) {var d, f, p, m, h, g, _ = r && r.__k || ne, v = t.length;- for (c = me(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || P, p.__i = d, g = be(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && Te(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = he(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);+ for (c = me(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || te, p.__i = d, g = be(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && Te(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = he(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 me(e, t, n, r, i) {@@ -107,7 +107,7 @@ function ve(e, t, n, r, i) {if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || _e(e.style, t, "");if (n) for (t in n) r && n[t] == r[t] || _e(e.style, t, n[t]);}- } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(ee, "$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[j] = r[j] : (n[j] = M, e.addEventListener(t, a ? N : te, a)) : e.removeEventListener(t, a ? N : te, a);+ } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(ee, "$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[j] = r[j] : (n[j] = M, e.addEventListener(t, a ? P : N, a)) : e.removeEventListener(t, a ? P : N, 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 {@@ -182,7 +182,7 @@ function Ce(e) {return typeof e != "object" || !e || e.__b > 0 ? e : ie(e) ? e.map(Ce) : e.constructor === void 0 ? F({}, e) : null;}function we(e, t, n, r, i, a, o, s, c) {- var l, u, d, f, p, m, h, g = n.props || P, _ = t.props, v = t.type;+ var l, u, d, f, p, m, h, g = n.props || te, _ = t.props, v = t.type;if (v == "svg" ? i = "http://www.w3.org/2000/svg" : v == "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 ((p = a[l]) && "setAttribute" in p == !!v && (v ? p.localName == v : p.nodeType == 3)) {e = p, a[l] = null;@@ -232,7 +232,7 @@ function De(e, t, n) {}function Oe(e, t, n) {var r, i, a, o;- t == document && (t = document.documentElement), S.__ && S.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], be(t, e = (!r && n || t).__k = oe(I, null, [e]), i || P, P, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? x.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), Se(a, e, o), e.props.children = null;+ t == document && (t = document.documentElement), S.__ && S.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], be(t, e = (!r && n || t).__k = oe(I, null, [e]), i || te, te, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? x.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), Se(a, e, o), e.props.children = null;}x = ne.slice, S = { __e: function(e, t, n, r) {for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {@@ -250,21 +250,108 @@ x = ne.slice, S = { __e: function(e, t, n, r) {this.__v && (this.__e = !0, e && this.__h.push(e), de(this));}, ce.prototype.render = I, T = [], D = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, O = function(e, t) {return e.__v.__b - t.__v.__b;-}, fe.__r = 0, k = Math.random().toString(8), A = "__d" + k, j = "__a" + k, ee = /(PointerCapture)$|Capture$/i, M = 0, te = ye(!1), N = ye(!0);+}, fe.__r = 0, k = Math.random().toString(8), A = "__d" + k, j = "__a" + k, ee = /(PointerCapture)$|Capture$/i, M = 0, N = ye(!1), P = ye(!0);//#endregion//#region src/sort-preferences.tsfunction ke(e, t, n) {return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";}//#endregion+//#region src/number-setting.ts+var Ae = {+ batchSizeSetting: {+ min: 1,+ max: 200,+ unit: "个",+ fallback: 60+ },+ hoverDelaySetting: {+ min: 1,+ max: 60,+ unit: "秒",+ optional: !0,+ fallback: 5+ },+ seekSecondsSetting: {+ min: 1,+ max: 300,+ unit: "秒",+ fallback: 10+ },+ relatedLimitSetting: {+ min: 1,+ max: 60,+ unit: "个",+ optional: !0,+ fallback: 20+ },+ searchHistoryLimitSetting: {+ min: 1,+ max: 50,+ unit: "条",+ optional: !0,+ fallback: 10+ },+ followScheduleSetting: {+ min: 15,+ max: 10080,+ unit: "分钟",+ optional: !0,+ fallback: 60+ }+};+function je(e, t, n, r) {+ return Number.isInteger(e) && e >= t && e <= n ? e : r;+}+function Me(e, t, n) {+ let r = e.querySelector("input[type=number]"), i = e.querySelector("[role=switch]"), a = e.querySelector(".board-number-fields");+ r && (r.disabled = n, t !== null && t > 0 && (r.value = String(t))), i && (i.disabled = n, t !== null && (i.checked = t > 0)), a && t !== null && (a.hidden = t === 0);+}+function Ne(e, t, n, r, i) {+ let a = Ae[t];+ if (!a) return !1;+ let { min: o, max: s, unit: c, optional: l, fallback: u } = a, d = `peach.number.${t}`, f = je(Number(localStorage.getItem(d)), o, s, r > 0 ? r : u), p = document.createElement("div");+ p.className = "board-optional-number";+ let m = document.createElement("div");+ m.className = "board-number-fields", m.hidden = !!l && r === 0;+ let h = document.createElement("div");+ h.className = "board-number-control";+ let g = document.createElement("input");+ g.type = "number", g.className = "geist-input", g.min = String(o), g.max = String(s), g.step = "1", g.value = String(r > 0 ? r : f), g.setAttribute("aria-label", n);+ let _ = document.createElement("span");+ _.textContent = c, _.setAttribute("aria-hidden", "true");+ let v = document.createElement("small");+ v.id = `${t}-error`, v.className = "board-number-error", v.setAttribute("role", "status"), v.hidden = !0, g.setAttribute("aria-describedby", v.id), h.append(g, _), m.append(h, v), p.append(m), e.replaceChildren(p);+ let y = () => {+ g.removeAttribute("aria-invalid"), v.hidden = !0, v.textContent = "";+ }, b = () => {+ if (!g.value || !g.checkValidity()) {+ g.setAttribute("aria-invalid", "true"), v.textContent = `请输入 ${o}–${s} 的整数(${c})`, v.hidden = !1;+ return;+ }+ y(), f = Number(g.value), localStorage.setItem(d, String(f)), i(g.value);+ };+ if (g.addEventListener("change", b), g.addEventListener("keydown", (e) => {+ e.key === "Enter" && (e.preventDefault(), b());+ }), g.addEventListener("input", () => {+ g.value && g.checkValidity() && y();+ }), l) {+ let e = document.createElement("input");+ e.type = "checkbox", e.className = "ptoggle", e.setAttribute("role", "switch"), e.setAttribute("aria-label", `启用${n}`), e.checked = r > 0, e.onchange = () => {+ y(), m.hidden = !e.checked, e.checked ? (g.value = String(f), b()) : (g.value && g.checkValidity() && (f = Number(g.value)), localStorage.setItem(d, String(f)), i("0"));+ }, p.prepend(e);+ }+ return !0;+}+//#endregion//#region src/api.ts-var Ae = class extends Error {+var Pe = class extends Error {status;body;constructor(e, t, n = null) {super(o(e, t)), this.name = "ApiError", this.status = t, this.body = n;}-}, je = (e) => {+}, Fe = (e) => {if (!e || typeof e != "object") return "";let t = e;for (let e of [@@ -286,7 +373,7 @@ async function z(e, t) {try {r = await n.json();} catch {}- if (!n.ok) throw new Ae(je(r) || `请求失败(${n.status})`, n.status);+ if (!n.ok) throw new Pe(Fe(r) || `请求失败(${n.status})`, n.status);return r;}async function B(e, t, n = "POST", r) {@@ -303,14 +390,14 @@ async function B(e, t, n = "POST", r) {try {a = await i.json();} catch {}- if (!i.ok) throw new Ae(je(a) || `请求失败(${i.status})`, i.status, a);+ if (!i.ok) throw new Pe(Fe(a) || `请求失败(${i.status})`, i.status, a);return a;}//#endregion//#region node_modules/preact/hooks/dist/hooks.module.js-var V, H, Me, Ne, Pe = 0, Fe = [], U = S, Ie = U.__b, Le = U.__r, Re = U.diffed, ze = U.__c, Be = U.unmount, Ve = U.__;-function He(e, t) {- U.__h && U.__h(H, e, Pe || t), Pe = 0;+var V, H, Ie, Le, Re = 0, ze = [], U = S, Be = U.__b, Ve = U.__r, He = U.diffed, Ue = U.__c, We = U.unmount, Ge = U.__;+function Ke(e, t) {+ U.__h && U.__h(H, e, Re || t), Re = 0;var n = H.__H || (H.__H = {__: [],__h: []@@ -318,11 +405,11 @@ function He(e, t) {return e >= n.__.length && n.__.push({}), n.__[e];}function W(e) {- return Pe = 1, Ue(Ze, e);+ return Re = 1, qe(tt, e);}-function Ue(e, t, n) {- var r = He(V++, 2);- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Ze(void 0, t), function(e) {+function qe(e, t, n) {+ var r = Ke(V++, 2);+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : tt(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({}));}], r.__c = H, !H.__f)) {@@ -354,97 +441,97 @@ function Ue(e, t, n) {return r.__N || r.__;}function G(e, t) {- var n = He(V++, 3);- !U.__s && Xe(n.__H, t) && (n.__ = e, n.u = t, H.__H.__h.push(n));+ var n = Ke(V++, 3);+ !U.__s && et(n.__H, t) && (n.__ = e, n.u = t, H.__H.__h.push(n));}function K(e, t) {- var n = He(V++, 4);- !U.__s && Xe(n.__H, t) && (n.__ = e, n.u = t, H.__h.push(n));+ var n = Ke(V++, 4);+ !U.__s && et(n.__H, t) && (n.__ = e, n.u = t, H.__h.push(n));}function q(e) {- return Pe = 5, We(function() {+ return Re = 5, Je(function() {return { current: e };}, []);}-function We(e, t) {- var n = He(V++, 7);- return Xe(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;+function Je(e, t) {+ var n = Ke(V++, 7);+ return et(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;}-function Ge() {- for (var e; e = Fe.shift();) {+function Ye() {+ for (var e; e = ze.shift();) {var t = e.__H;if (e.__P && t) try {- t.__h.some(Je), t.__h.some(Ye), t.__h = [];+ t.__h.some(Qe), t.__h.some($e), t.__h = [];} catch (n) {t.__h = [], U.__e(n, e.__v);}}}U.__b = function(e) {- H = null, Ie && Ie(e);+ H = null, Be && Be(e);}, U.__ = function(e, t) {- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ve && Ve(e, t);+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ge && Ge(e, t);}, U.__r = function(e) {- Le && Le(e), V = 0;+ Ve && Ve(e), V = 0;var t = (H = e.__c).__H;- t && (Me === H ? (t.__h = [], H.__h = [], t.__.some(function(e) {+ t && (Ie === H ? (t.__h = [], H.__h = [], t.__.some(function(e) {e.__N && (e.__ = e.__N), e.u = e.__N = void 0;- })) : (t.__h.some(Je), t.__h.some(Ye), t.__h = [], V = 0)), Me = H;+ })) : (t.__h.some(Qe), t.__h.some($e), t.__h = [], V = 0)), Ie = H;}, U.diffed = function(e) {- Re && Re(e);+ He && He(e);var t = e.__c;- t && t.__H && (t.__H.__h.length && (Fe.push(t) !== 1 && Ne === U.requestAnimationFrame || ((Ne = U.requestAnimationFrame) || qe)(Ge)), t.__H.__.some(function(e) {+ t && t.__H && (t.__H.__h.length && (ze.push(t) !== 1 && Le === U.requestAnimationFrame || ((Le = U.requestAnimationFrame) || Ze)(Ye)), t.__H.__.some(function(e) {e.u &&= (e.__H = e.u, void 0);- })), Me = H = null;+ })), Ie = H = null;}, U.__c = function(e, t) {t.some(function(e) {try {- e.__h.some(Je), e.__h = e.__h.filter(function(e) {- return !e.__ || Ye(e);+ e.__h.some(Qe), e.__h = e.__h.filter(function(e) {+ return !e.__ || $e(e);});} catch (n) {t.some(function(e) {e.__h &&= [];}), t = [], U.__e(n, e.__v);}- }), ze && ze(e, t);+ }), Ue && Ue(e, t);}, U.unmount = function(e) {- Be && Be(e);+ We && We(e);var t, n = e.__c;n && n.__H && (n.__H.__.some(function(e) {try {- Je(e);+ Qe(e);} catch (e) {t = e;}}), n.__H = void 0, t && U.__e(t, n.__v));};-var Ke = typeof requestAnimationFrame == "function";-function qe(e) {+var Xe = typeof requestAnimationFrame == "function";+function Ze(e) {var t, n = function() {- clearTimeout(r), Ke && cancelAnimationFrame(t), setTimeout(e);+ clearTimeout(r), Xe && cancelAnimationFrame(t), setTimeout(e);}, r = setTimeout(n, 35);- Ke && (t = requestAnimationFrame(n));+ Xe && (t = requestAnimationFrame(n));}-function Je(e) {+function Qe(e) {var t = H, n = e.__c;typeof n == "function" && (e.__c = void 0, n()), H = t;}-function Ye(e) {+function $e(e) {var t = H;e.__c = e.__(), H = t;}-function Xe(e, t) {+function et(e, t) {return !e || e.length !== t.length || t.some(function(t, n) {return t !== e[n];});}-function Ze(e, t) {+function tt(e, t) {return typeof t == "function" ? t(e) : t;}//#endregion//#region node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js-var Qe = 0;+var nt = 0;Array.isArray;function J(e, t, n, r, i, a) {t ||= {};@@ -461,7 +548,7 @@ function J(e, t, n, r, i, a) {__e: null,__c: null,constructor: void 0,- __v: --Qe,+ __v: --nt,__i: -1,__u: 0,__source: i,@@ -472,7 +559,7 @@ function J(e, t, n, r, i, a) {}//#endregion//#region src/islands/access-settings.tsx-function $e({ id: e, label: t, value: n, onInput: r, error: i, help: a, current: o = !1, disabled: s = !1 }) {+function rt({ id: e, label: t, value: n, onInput: r, error: i, help: a, current: o = !1, disabled: s = !1 }) {return /* @__PURE__ */ J("div", {class: "configfield",children: [@@ -502,7 +589,7 @@ function $e({ id: e, label: t, value: n, onInput: r, error: i, help: a, current:]});}-function et({ initial: e, receipt: t }) {+function it({ initial: e, receipt: t }) {let [n, r] = W(e), [i, a] = W(""), [o, s] = W(""), [c, l] = W(""), [u, f] = W(!1), [m, h] = W(""), [g, _] = W({}), y = q(null), b = q(!1), x = q(null);return /* @__PURE__ */ J("form", {class: "configfieldset",@@ -527,7 +614,7 @@ function et({ initial: e, receipt: t }) {});r(e), a(""), s(""), l(""), f(!1), _({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存访问密码");} catch (e) {- let t = e instanceof Ae ? e.body : null, n = t?.errors || t?.detail?.errors;+ let t = e instanceof Pe ? e.body : null, n = t?.errors || t?.detail?.errors;n ? _(n) : h(R(e));} finally {b.current = !1, v(x.current, !1);@@ -563,7 +650,7 @@ function et({ initial: e, receipt: t }) {})]}), /* @__PURE__ */ J("span", { children: "关闭访问密码,允许能连接到 Peach 的设备直接访问" })]}) : null,- n.mode === "password" ? /* @__PURE__ */ J($e, {+ n.mode === "password" ? /* @__PURE__ */ J(rt, {id: "access-current",label: "当前访问密码",value: i,@@ -571,7 +658,7 @@ function et({ initial: e, receipt: t }) {error: g.current_password,current: !0}) : null,- n.mode === "locked" ? null : /* @__PURE__ */ J(I, { children: [/* @__PURE__ */ J($e, {+ n.mode === "locked" ? null : /* @__PURE__ */ J(I, { children: [/* @__PURE__ */ J(rt, {id: "access-password",label: n.mode === "password" ? "新访问密码" : "设置访问密码",value: o,@@ -579,7 +666,7 @@ function et({ initial: e, receipt: t }) {disabled: u,error: u ? void 0 : g.password,help: u ? "关闭访问密码时无需填写。" : "至少 8 个字符。保存后其他设备需要重新登录。"- }), /* @__PURE__ */ J($e, {+ }), /* @__PURE__ */ J(rt, {id: "access-confirm",label: "确认访问密码",value: c,@@ -610,7 +697,7 @@ function et({ initial: e, receipt: t }) {}//#endregion//#region src/islands/release-updates.tsx-var tt = /* @__PURE__ */ new Set([+var at = /* @__PURE__ */ new Set(["downloading","verifying","extracting",@@ -618,13 +705,13 @@ var tt = /* @__PURE__ */ new Set(["restarting","installing"]);-function nt({ initial: e, initialJob: t }) {+function ot({ initial: e, initialJob: t }) {let [n, r] = W(e), [i, a] = W(t || {state: "idle",progress: 0}), [o, s] = W(""), c = q(null), u = q(!0), f = q(!1), h = q(null);G(() => {- v(h.current, tt.has(i.state));+ v(h.current, at.has(i.state));}, [i.state]), G(() => () => {u.current = !1, c.current?.abort();}, []);@@ -641,7 +728,7 @@ function nt({ initial: e, initialJob: t }) {onConfirm: g}));}, [i.state]), G(() => {- if (!tt.has(i.state)) return;+ if (!at.has(i.state)) return;let e = new AbortController(), t, n = 0, o = async () => {try {let t = await z("/api/configuration/update-status", e.signal);@@ -661,7 +748,7 @@ function nt({ initial: e, initialJob: t }) {};}, [i.state]);let _ = async (e) => {- if (c.current || tt.has(i.state)) return;+ if (c.current || at.has(i.state)) return;let t = new AbortController();c.current = t, f.current = !1, s(""), v(e, !0);try {@@ -788,7 +875,7 @@ function nt({ initial: e, initialJob: t }) {/* @__PURE__ */ J("button", {type: "button",class: "geist-button",- disabled: tt.has(i.state),+ disabled: at.has(i.state),onClick: (e) => y(e.currentTarget),children: "检查更新"})@@ -798,7 +885,7 @@ function nt({ initial: e, initialJob: t }) {}//#endregion//#region src/islands/peach-proxy.tsx-function rt({ initial: e, receipt: t }) {+function st({ initial: e, receipt: t }) {let [n, r] = W(e), [i, a] = W(e.mode), [o, s] = W(""), [c, l] = W(""), u = q(!1), f = q(null), p = q(null), m = q(new AbortController());G(() => () => m.current.abort(), []), K(() => {let t = f.current;@@ -889,7 +976,7 @@ function rt({ initial: e, receipt: t }) {}//#endregion//#region src/islands/desktop-settings.tsx-function it({ label: e, checked: t, disabled: n, change: r }) {+function ct({ label: e, checked: t, disabled: n, change: r }) {return /* @__PURE__ */ J("label", {class: "configcheck",children: [/* @__PURE__ */ J("span", {@@ -909,7 +996,7 @@ function it({ label: e, checked: t, disabled: n, change: r }) {}), /* @__PURE__ */ J("span", { children: e })]});}-function at({ label: e, checked: t, disabled: n, change: r }) {+function lt({ label: e, checked: t, disabled: n, change: r }) {return /* @__PURE__ */ J("label", {class: "configtoggle",children: [/* @__PURE__ */ J("span", { children: e }), /* @__PURE__ */ J("input", {@@ -922,7 +1009,7 @@ function at({ label: e, checked: t, disabled: n, change: r }) {})]});}-function ot({ startup: e, receipt: t }) {+function ut({ startup: e, receipt: t }) {let [n, r] = W(e.enabled), [i, a] = W(e.silent), [o, s] = W(e.desktop), [c, l] = W(""), u = q(!1), f = q(null), p = e.available && !e.desktop_message;async function m() {if (!u.current) {@@ -955,7 +1042,7 @@ function ot({ startup: e, receipt: t }) {role: "group","aria-labelledby": "startupTitle",children: [- /* @__PURE__ */ J(at, {+ /* @__PURE__ */ J(lt, {label: "开机后启动 Peach",checked: n,disabled: !e.available,@@ -963,7 +1050,7 @@ function ot({ startup: e, receipt: t }) {}),/* @__PURE__ */ J("div", {class: "configoption",- children: [/* @__PURE__ */ J(at, {+ children: [/* @__PURE__ */ J(lt, {label: "静默启动",checked: i,disabled: !e.available || !n,@@ -975,7 +1062,7 @@ function ot({ startup: e, receipt: t }) {}),/* @__PURE__ */ J("div", {class: "configoption",- children: [/* @__PURE__ */ J(at, {+ children: [/* @__PURE__ */ J(lt, {label: "在桌面创建快捷方式",checked: o,disabled: !p,@@ -1010,7 +1097,7 @@ function ot({ startup: e, receipt: t }) {})]});}-function st({ data: e }) {+function dt({ data: e }) {let t = q(null);return K(() => {let n = t.current, r = document.createElement("details");@@ -1024,7 +1111,7 @@ function st({ data: e }) {return n.replaceChildren(r), y(n, "details", "uninstall-data"), () => n.replaceChildren();}, [e]), /* @__PURE__ */ J("div", { ref: t });}-function ct({ uninstall: e }) {+function ft({ uninstall: e }) {let [t, n] = W(!1), [r, i] = W("");async function a() {await l({@@ -1056,13 +1143,13 @@ function ct({ uninstall: e }) {children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。"})]}),- /* @__PURE__ */ J(it, {+ /* @__PURE__ */ J(ct, {label: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存",checked: t,disabled: !e.full_available || !!r,change: n}),- /* @__PURE__ */ J(st, { data: e }),+ /* @__PURE__ */ J(dt, { data: e }),e.message && /* @__PURE__ */ J("p", {class: "confighelp",children: e.message@@ -1088,7 +1175,7 @@ function ct({ uninstall: e }) {}//#endregion//#region src/islands/clouddrive-guide.tsx-var lt = [+var pt = [{name: "机械硬盘,或内存 8 GB 以内",cache: "10–20 GiB",@@ -1108,7 +1195,7 @@ var lt = [task: "2 个起步"}];-function ut() {+function mt() {let e = q(null);return K(() => {e.current && y(e.current, "details", "clouddrive-guide");@@ -1160,7 +1247,7 @@ function ut() {scope: "col",children: "同时处理视频"})- ] }) }), /* @__PURE__ */ J("tbody", { children: lt.map((e) => /* @__PURE__ */ J("tr", { children: [+ ] }) }), /* @__PURE__ */ J("tbody", { children: pt.map((e) => /* @__PURE__ */ J("tr", { children: [/* @__PURE__ */ J("th", {scope: "row",children: e.name@@ -1204,18 +1291,18 @@ function ut() {}//#endregion//#region src/islands/configuration.tsx-var dt = "/api/configuration", ft = "/api/pick-folder", pt = 8e3, mt = (e, t) => z(dt, t), ht = ({ html: e, class: t }) => /* @__PURE__ */ J("div", {+var ht = "/api/configuration", gt = "/api/pick-folder", _t = 8e3, vt = (e, t) => z(ht, t), yt = ({ html: e, class: t }) => /* @__PURE__ */ J("div", {class: t,dangerouslySetInnerHTML: { __html: e }-}), gt = (e) => !(e instanceof Ae) || e.status !== 400 ? null : e.body?.errors ?? null;-function _t({ facts: e }) {+}), bt = (e) => !(e instanceof Pe) || e.status !== 400 ? null : e.body?.errors ?? null;+function xt({ facts: e }) {return /* @__PURE__ */ J("section", {class: "configfieldset","data-geist-fieldset": !0,"aria-labelledby": "configFactsTitle",children: /* @__PURE__ */ J("div", {class: "geist-fieldset-content",- children: [/* @__PURE__ */ J(ht, { html: d("configFactsTitle", "运行信息") }), /* @__PURE__ */ J("dl", {+ children: [/* @__PURE__ */ J(yt, { html: d("configFactsTitle", "运行信息") }), /* @__PURE__ */ J("dl", {class: "configfacts",children: e.map((e) => /* @__PURE__ */ J(I, { children: [/* @__PURE__ */ J("dt", { children: e.term }), /* @__PURE__ */ J("dd", { children: [e.value, e.download_url ? /* @__PURE__ */ J("span", {class: "confighelp",@@ -1236,7 +1323,7 @@ function _t({ facts: e }) {})});}-function vt({ data: e }) {+function St({ data: e }) {let [t, n] = W(e.media_sources), [r, i] = W(""), a = q(null);G(() => () => a.current?.abort(), []);let o = async (e) => {@@ -1244,7 +1331,7 @@ function vt({ data: e }) {let t = new AbortController();a.current = t, v(e, !0), i("");try {- let e = await z(dt, t.signal);+ let e = await z(ht, t.signal);t.signal.aborted || n(e.media_sources);} catch (e) {t.signal.aborted || i(R(e));@@ -1258,7 +1345,7 @@ function vt({ data: e }) {children: [/* @__PURE__ */ J("div", {class: "geist-fieldset-content",children: [- /* @__PURE__ */ J(ht, { html: d("configMountsTitle", "挂载状态") }),+ /* @__PURE__ */ J(yt, { html: d("configMountsTitle", "挂载状态") }),/* @__PURE__ */ J("dl", {class: "configfacts",children: t.map((e) => /* @__PURE__ */ J(I, { children: [/* @__PURE__ */ J("dt", { children: [/* @__PURE__ */ J("span", {@@ -1295,7 +1382,7 @@ function vt({ data: e }) {})]}) : null;}-function yt({ value: e, label: t, onChange: n }) {+function Ct({ value: e, label: t, onChange: n }) {let r = q(null), i = q(null), a = q(n);return a.current = n, K(() => {let n = r.current;@@ -1321,7 +1408,7 @@ function yt({ value: e, label: t, onChange: n }) {class: "configsourcecontrol"});}-function bt({ data: e, receipt: t }) {+function wt({ data: e, receipt: t }) {let n = e.media_sources?.filter((e) => ["local","115",@@ -1331,7 +1418,7 @@ function bt({ data: e, receipt: t }) {w !== null && (O.current[w]?.focus(), T(null));}, [w]), G(() => {if (!S) return;- let e = setTimeout(() => location.assign(S.url), pt);+ let e = setTimeout(() => location.assign(S.url), _t);return () => clearTimeout(e);}, [S]);let A = (e, t) => {@@ -1346,11 +1433,11 @@ function bt({ data: e, receipt: t }) {for (; r.length <= e;) r.push("");return r[e] = t, r;});- }, te = async (e, t) => {+ }, N = async (e, t) => {if (t.getAttribute("aria-busy") !== "true") {v(t, !0);try {- let { path: t } = await B(ft, { initial: r[e] ?? "" });+ let { path: t } = await B(gt, { initial: r[e] ?? "" });t && (A(e, t), M(e, ""));} catch (t) {M(e, R(t));@@ -1386,7 +1473,7 @@ function bt({ data: e, receipt: t }) {if (n.preventDefault(), !E.current) {E.current = !0, v(k.current, !0), x("");try {- let n = await B(dt, {+ let n = await B(ht, {revision: D.current,media_dirs: r,...e.media_sources ? { media_sources: r.map((e, t) => ({@@ -1399,7 +1486,7 @@ function bt({ data: e, receipt: t }) {});D.current = n.revision, g([]), y(""), t("已保存配置"), C(n);} catch (e) {- let t = gt(e);+ let t = bt(e);t ? (g(t.media_dirs ?? []), y(t.port ?? "")) : (g([]), y(""), x(R(e)));} finally {E.current = !1, v(k.current, !1);@@ -1410,7 +1497,7 @@ function bt({ data: e, receipt: t }) {children: [/* @__PURE__ */ J("div", {class: "geist-fieldset-content",children: [- /* @__PURE__ */ J(ht, { html: d("configTitle", "这台电脑") }),+ /* @__PURE__ */ J(yt, { html: d("configTitle", "这台电脑") }),/* @__PURE__ */ J("div", {class: "configfield",children: [@@ -1445,7 +1532,7 @@ function bt({ data: e, receipt: t }) {type: "button",class: "geist-button configpick","aria-label": "选择文件夹",- onClick: (e) => te(n, e.currentTarget),+ onClick: (e) => N(n, e.currentTarget),children: /* @__PURE__ */ J("svg", {viewBox: "0 0 24 24","aria-hidden": "true",@@ -1467,7 +1554,7 @@ function bt({ data: e, receipt: t }) {class: "configsource",children: [/* @__PURE__ */ J("div", {class: "configsourcelabel",- children: ["媒体来源", /* @__PURE__ */ J(yt, {+ children: ["媒体来源", /* @__PURE__ */ J(Ct, {label: `媒体来源 ${n + 1}`,value: a[n] || "local",onChange: (e) => {@@ -1500,7 +1587,7 @@ function bt({ data: e, receipt: t }) {onClick: j,children: "添加文件夹"}),- a.some((e) => e === "115" || e === "pikpak") ? /* @__PURE__ */ J(ut, {}) : null,+ a.some((e) => e === "115" || e === "pikpak") ? /* @__PURE__ */ J(mt, {}) : null,a.some((e) => e === "115" || e === "pikpak") ? e.mount_dependencies?.filter((e) => !e.available).map((e) => /* @__PURE__ */ J("p", {class: "confighelp",children: [@@ -1575,7 +1662,7 @@ function bt({ data: e, receipt: t }) {})]}), /* @__PURE__ */ J("span", { children: "保存后扫描并补全资料" })]}),- b ? /* @__PURE__ */ J(ht, { html: p(b, {+ b ? /* @__PURE__ */ J(yt, { html: p(b, {variant: "error",label: "没有保存"}) }) : null@@ -1592,8 +1679,8 @@ function bt({ data: e, receipt: t }) {})]});}-function xt({ receipt: e, data: t, error: n }) {- return n || !t ? /* @__PURE__ */ J(ht, {+function Tt({ receipt: e, data: t, error: n }) {+ return n || !t ? /* @__PURE__ */ J(yt, {class: "configpage",html: p(n || "没有读到配置", {variant: "error",@@ -1606,7 +1693,7 @@ function xt({ receipt: e, data: t, error: n }) {class: "configgroup",children: "通用"}) : null,- t.startup ? /* @__PURE__ */ J(ot, {+ t.startup ? /* @__PURE__ */ J(ut, {startup: t.startup,receipt: e}) : null,@@ -1614,23 +1701,23 @@ function xt({ receipt: e, data: t, error: n }) {class: "configgroup",children: "媒体"}),- t.editable ? /* @__PURE__ */ J(bt, {+ t.editable ? /* @__PURE__ */ J(wt, {data: t,receipt: e- }) : /* @__PURE__ */ J(ht, { html: p(t.notice, {+ }) : /* @__PURE__ */ J(yt, { html: p(t.notice, {variant: "secondary",label: "只读"}) }),- /* @__PURE__ */ J(vt, { data: t }),+ /* @__PURE__ */ J(St, { data: t }),t.peach_proxy || t.access ? /* @__PURE__ */ J("h2", {class: "configgroup",children: "网络与访问"}) : null,- t.peach_proxy ? /* @__PURE__ */ J(rt, {+ t.peach_proxy ? /* @__PURE__ */ J(st, {initial: t.peach_proxy,receipt: e}) : null,- t.access ? /* @__PURE__ */ J(et, {+ t.access ? /* @__PURE__ */ J(it, {initial: t.access,receipt: e}) : null,@@ -1638,34 +1725,34 @@ function xt({ receipt: e, data: t, error: n }) {class: "configgroup",children: "更新与维护"}),- t.updates ? /* @__PURE__ */ J(nt, {+ t.updates ? /* @__PURE__ */ J(ot, {initial: t.updates,initialJob: t.update_job}) : null,- /* @__PURE__ */ J(_t, { facts: t.facts }),- t.uninstall ? /* @__PURE__ */ J(ct, { uninstall: t.uninstall }) : null+ /* @__PURE__ */ J(xt, { facts: t.facts }),+ t.uninstall ? /* @__PURE__ */ J(ft, { uninstall: t.uninstall }) : null]});}//#endregion//#region node_modules/@preact/signals-core/dist/signals-core.module.js-var St = Symbol.for("preact-signals");-function Ct() {+var Et = Symbol.for("preact-signals");+function Dt() {if (X > 1) X--;else {var e, t = !1;for ((function() {- var e = jt;- for (jt = void 0; e !== void 0;) {+ var e = Ft;+ for (Ft = 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;}- })(); Dt !== void 0;) {- var n = Dt;- for (Dt = void 0, Ot++; n !== void 0;) {+ })(); jt !== void 0;) {+ var n = jt;+ for (jt = void 0, Mt++; n !== void 0;) {var r = n.u;- if (n.u = void 0, n.f &= -3, !(8 & n.f) && Ft(n)) try {+ if (n.u = void 0, n.f &= -3, !(8 & n.f) && zt(n)) try {n.c();} catch (n) {t ||= (e = n, !0);@@ -1673,30 +1760,30 @@ function Ct() {n = r;}}- if (Ot = 0, X--, t) throw e;+ if (Mt = 0, X--, t) throw e;}}-function wt(e) {+function Ot(e) {if (X > 0) return e();- At = ++kt, X++;+ Pt = ++Nt, X++;try {return e();} finally {- Ct();+ Dt();}}-var Tt, Y = void 0;-function Et(e) {- var t = Y, n = Tt;- Y = void 0, Tt = void 0;+var kt, Y = void 0;+function At(e) {+ var t = Y, n = kt;+ Y = void 0, kt = void 0;try {return e();} finally {- Y = t, Tt = n;+ Y = t, kt = n;}}-var Dt = void 0, X = 0, Ot = 0, kt = 0, At = 0, jt = void 0, Mt = 0;-function Nt(e) {+var jt = void 0, X = 0, Mt = 0, Nt = 0, Pt = 0, Ft = void 0, It = 0;+function Lt(e) {if (Y !== void 0) {var t = e.n;if (t === void 0 || t.t !== Y) return t = {@@ -1715,11 +1802,11 @@ function Nt(e) {function Z(e, t) {this.v = e, this.i = 0, this.n = void 0, this.t = void 0, this.l = 0, this.W = t?.watched, this.Z = t?.unwatched, this.name = t?.name;}-Z.prototype.brand = St, Z.prototype.h = function() {+Z.prototype.brand = Et, Z.prototype.h = function() {return !0;}, Z.prototype.S = function(e) {var t = this, n = this.t;- n !== e && e.e === void 0 && (e.x = n, this.t = e, n === void 0 ? Et(function() {+ n !== e && e.e === void 0 && (e.x = n, this.t = e, n === void 0 ? At(function() {var e;(e = t.W) == null || e.call(t);}) : n.e = e);@@ -1727,16 +1814,16 @@ Z.prototype.brand = St, Z.prototype.h = function() {var t = this;if (this.t !== void 0) {var n = e.e, r = e.x;- n !== void 0 && (n.x = r, e.e = void 0), r !== void 0 && (r.e = n, e.x = void 0), e === this.t && (this.t = r, r === void 0 && Et(function() {+ n !== void 0 && (n.x = r, e.e = void 0), r !== void 0 && (r.e = n, e.x = void 0), e === this.t && (this.t = r, r === void 0 && At(function() {var e;(e = t.Z) == null || e.call(t);}));}}, Z.prototype.subscribe = function(e) {var t = this;- return Ut(function() {+ return qt(function() {var n = t.value;- Et(function() {+ At(function() {return e(n);});}, { name: "sub" });@@ -1748,41 +1835,41 @@ Z.prototype.brand = St, Z.prototype.h = function() {return this.value;}, Z.prototype.peek = function() {var e = this;- return Et(function() {+ return At(function() {return e.value;});}, Object.defineProperty(Z.prototype, "value", {get: function() {- var e = Nt(this);+ var e = Lt(this);return e !== void 0 && (e.i = this.i), this.v;},set: function(e) {if (e !== this.v) {- if (Ot > 100) throw Error("Cycle detected");+ if (Mt > 100) throw Error("Cycle detected");(function(e) {- X !== 0 && Ot === 0 && e.l !== At && (e.l = At, jt = {+ X !== 0 && Mt === 0 && e.l !== Pt && (e.l = Pt, Ft = {S: e,v: e.v,i: e.i,- o: jt+ o: Ft});- })(this), this.v = e, this.i++, Mt++, X++;+ })(this), this.v = e, this.i++, It++, X++;try {for (var t = this.t; t !== void 0; t = t.x) t.t.N();} finally {- Ct();+ Dt();}}}});-function Pt(e, t) {+function Rt(e, t) {return new Z(e, t);}-function Ft(e) {+function zt(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 It(e) {+function Bt(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) {@@ -1791,7 +1878,7 @@ function It(e) {}}}-function Lt(e) {+function Vt(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;@@ -1799,21 +1886,21 @@ function Lt(e) {e.s = n;}function Q(e, t) {- Z.call(this, void 0, t), this.x = e, this.s = void 0, this.g = Mt - 1, this.f = 4;+ Z.call(this, void 0, t), this.x = e, this.s = void 0, this.g = It - 1, this.f = 4;}Q.prototype = new Z(), Q.prototype.h = function() {if (this.f &= -3, 1 & this.f) return !1;- if ((36 & this.f) == 32 || (this.f &= -5, this.g === Mt)) return !0;- if (this.g = Mt, this.f |= 1, this.i > 0 && !Ft(this)) return this.f &= -2, !0;+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === It)) return !0;+ if (this.g = It, this.f |= 1, this.i > 0 && !zt(this)) return this.f &= -2, !0;var e = Y;try {- It(this), Y = this;+ Bt(this), Y = 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 Y = e, Lt(this), this.f &= -2, !0;+ return Y = e, Vt(this), this.f &= -2, !0;}, Q.prototype.S = function(e) {if (this.t === void 0) {this.f |= 36;@@ -1832,14 +1919,14 @@ Q.prototype = new Z(), Q.prototype.h = function() {}}, Object.defineProperty(Q.prototype, "value", { get: function() {if (1 & this.f) throw Error("Cycle detected");- var e = Nt(this);+ var e = Lt(this);if (this.h(), e !== void 0 && (e.i = this.i), 16 & this.f) throw this.v;return this.v;} });-function Rt(e, t) {+function Ht(e, t) {return new Q(e, t);}-function zt(e) {+function Ut(e) {var t = e.m;if (e.m = void 0, typeof t == "function") {X++;@@ -1848,24 +1935,24 @@ function zt(e) {try {t();} catch (t) {- throw e.f &= -2, e.f |= 8, Bt(e), t;+ throw e.f &= -2, e.f |= 8, Wt(e), t;} finally {- Y = n, Ct();+ Y = n, Dt();}}}-function Bt(e) {+function Wt(e) {for (var t = e.s; t !== void 0; t = t.n) t.S.U(t);- e.x = void 0, e.s = void 0, zt(e);+ e.x = void 0, e.s = void 0, Ut(e);}-function Vt(e) {+function Gt(e) {if (Y !== this) throw Error("Out-of-order effect");- Lt(this), Y = e, this.f &= -2, 8 & this.f && Bt(this), Ct();+ Vt(this), Y = e, this.f &= -2, 8 & this.f && Wt(this), Dt();}-function Ht(e, t) {- this.x = e, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name, Tt && Tt.push(this);+function Kt(e, t) {+ this.x = e, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name, kt && kt.push(this);}-Ht.prototype.c = function() {+Kt.prototype.c = function() {var e = this.S();try {if (8 & this.f || this.x === void 0) return;@@ -1874,20 +1961,20 @@ Ht.prototype.c = function() {} finally {e();}-}, Ht.prototype.S = function() {+}, Kt.prototype.S = function() {if (1 & this.f) throw Error("Cycle detected");- this.f |= 1, this.f &= -9, zt(this), It(this), X++;+ this.f |= 1, this.f &= -9, Ut(this), Bt(this), X++;var e = Y;- return Y = this, Vt.bind(this, e);-}, Ht.prototype.N = function() {- 2 & this.f || (this.f |= 2, this.u = Dt, Dt = this);-}, Ht.prototype.d = function() {- this.f |= 8, 1 & this.f || Bt(this);-}, Ht.prototype.dispose = function() {+ return Y = this, Gt.bind(this, e);+}, Kt.prototype.N = function() {+ 2 & this.f || (this.f |= 2, this.u = jt, jt = this);+}, Kt.prototype.d = function() {+ this.f |= 8, 1 & this.f || Wt(this);+}, Kt.prototype.dispose = function() {this.d();};-function Ut(e, t) {- var n = new Ht(e, t);+function qt(e, t) {+ var n = new Kt(e, t);try {n.c();} catch (e) {@@ -1898,35 +1985,35 @@ function Ut(e, t) {}//#endregion//#region node_modules/@preact/signals/dist/signals.module.js-var Wt, Gt, Kt = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, qt = [];-Ut(function() {- Wt = this.N;+var Jt, Yt, Xt = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, Zt = [];+qt(function() {+ Jt = this.N;})();-function Jt(e, t) {+function Qt(e, t) {S[e] = t.bind(null, S[e] || function() {});}-function Yt(e) {- if (Gt) {- var t = Gt;- Gt = void 0, t();+function $t(e) {+ if (Yt) {+ var t = Yt;+ Yt = void 0, t();}- Gt = e && e.S();+ Yt = e && e.S();}-function Xt(e) {- var t = this, n = e.data, r = Qt(n);+function en(e) {+ var t = this, n = e.data, r = nn(n);r.name = "ReactiveDom", r.value = n;- var i = We(function() {+ var i = Je(function() {for (var e = t, n = t.__v; n = n.__;) if (n.__c) {n.__c.__$f |= 4;break;}- var i = Rt(function() {+ var i = Ht(function() {var e = r.value.value;return e === 0 ? 0 : !0 === e ? "" : e || "";- }), a = Rt(function() {+ }), a = Ht(function() {return !Array.isArray(i.value) && !w(i.value);- }), o = Ut(function() {- if (this.N = tn, a.value) {+ }), o = qt(function() {+ if (this.N = on, a.value) {var t = i.value;e.__v && e.__v.__e && e.__v.__e.nodeType === 3 && (e.__v.__e.data = t);}@@ -1937,14 +2024,14 @@ function Xt(e) {}, []), a = i[0], o = i[1];return a.value ? o.peek() : o.value;}-Xt.displayName = "ReactiveTextNode", Object.defineProperties(Z.prototype, {+en.displayName = "ReactiveTextNode", Object.defineProperties(Z.prototype, {constructor: {configurable: !0,value: void 0},type: {configurable: !0,- value: Xt+ value: en},props: {configurable: !0,@@ -1959,7 +2046,7 @@ Xt.displayName = "ReactiveTextNode", Object.defineProperties(Z.prototype, {configurable: !0,value: 1}-}), Jt("__b", function(e, t) {+}), Qt("__b", function(e, t) {if (typeof t.type == "string") {var n, r = t.props;for (var i in r) if (i !== "children") {@@ -1968,26 +2055,26 @@ Xt.displayName = "ReactiveTextNode", Object.defineProperties(Z.prototype, {}}e(t);-}), Jt("__r", function(e, t) {+}), Qt("__r", function(e, t) {if (e(t), t.type !== I) {- Yt();+ $t();var n, r = t.__c;r && (r.__$f &= -2, (n = r.__$u) === void 0 && (r.__$u = n = function(e, t) {var n;- return Ut(function() {+ return qt(function() {n = this;}, { name: t }), n.c = e, n;}(function(e) {return function() {var t;- Kt && ((t = this.y) == null || t.call(this)), e.__$f |= 1, e.setState({});+ Xt && ((t = this.y) == null || t.call(this)), e.__$f |= 1, e.setState({});};- }(r), typeof t.type == "function" ? t.type.displayName || t.type.name : ""))), Yt(n);+ }(r), typeof t.type == "function" ? t.type.displayName || t.type.name : ""))), $t(n);}-}), Jt("__e", function(e, t, n, r) {- Yt(), e(t, n, r);-}), Jt("diffed", function(e, t) {- Yt();+}), Qt("__e", function(e, t, n, r) {+ $t(), e(t, n, r);+}), Qt("diffed", function(e, t) {+ $t();var n;if (typeof t.type == "string" && (n = t.__e)) {var r = t.__np, i = t.props, a = n.U;@@ -1997,25 +2084,25 @@ Xt.displayName = "ReactiveTextNode", Object.defineProperties(Z.prototype, {}if (r) for (var c in a || (a = {}, n.U = a), r) {var l = a[c], u = r[c];- l === void 0 ? (l = Zt(n, c, u, i), a[c] = l) : l.o(u, i);+ l === void 0 ? (l = tn(n, c, u, i), a[c] = l) : l.o(u, i);}}e(t);});-function Zt(e, t, n, r) {- var i = t in e && e.ownerSVGElement === void 0, a = Pt(n);+function tn(e, t, n, r) {+ var i = t in e && e.ownerSVGElement === void 0, a = Rt(n);return {o: function(e, t) {a.value = e, r = t;},- d: Ut(function() {- this.N = tn;+ d: qt(function() {+ this.N = on;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));})};}-Jt("unmount", function(e, t) {+Qt("unmount", function(e, t) {if (typeof t.type == "string") {var n = t.__e;if (n) {@@ -2039,7 +2126,7 @@ Jt("unmount", function(e, t) {}}e(t);-}), Jt("__h", function(e, t, n, r) {+}), Qt("__h", function(e, t, n, r) {r < 3 && (t.__$f |= 2), e(t, n, r);}), ce.prototype.shouldComponentUpdate = function(e, t) {if (this.__R) return !0;@@ -2053,44 +2140,44 @@ Jt("unmount", function(e, t) {for (var s in this.props) if (!(s in e)) return !0;return !1;};-function Qt(e, t) {- return We(function() {- return Pt(e, t);+function nn(e, t) {+ return Je(function() {+ return Rt(e, t);}, []);}-var $t = function(e) {+var rn = function(e) {queueMicrotask(function() {queueMicrotask(e);});};-function en() {- wt(function() {- for (var e; e = qt.shift();) Wt.call(e);+function an() {+ Ot(function() {+ for (var e; e = Zt.shift();) Jt.call(e);});}-function tn() {- qt.push(this) === 1 && (S.requestAnimationFrame || $t)(en);+function on() {+ Zt.push(this) === 1 && (S.requestAnimationFrame || rn)(an);}//#endregion//#region src/state/quality-goals.ts-var nn = "/api/quality-goals?limit=200", rn = {+var sn = "/api/quality-goals?limit=200", cn = {data: null,error: ""-}, an = Pt(rn), on = 0, sn = Rt(() => an.value);-Rt(() => an.value.data?.total ?? null);-function cn() {- on += 1, an.value = rn;+}, ln = Rt(cn), un = 0, dn = Ht(() => ln.value);+Ht(() => ln.value.data?.total ?? null);+function fn() {+ un += 1, ln.value = cn;}-async function ln(e) {- let t = on += 1;+async function pn(e) {+ let t = un += 1;try {- let n = await z(nn, e);- return t === on && (an.value = {+ let n = await z(sn, e);+ return t === un && (ln.value = {data: n,error: ""}), n;} catch (n) {- throw !e?.aborted && t === on && (an.value = {+ throw !e?.aborted && t === un && (ln.value = {data: null,error: R(n)}), n;@@ -2098,9 +2185,9 @@ async function ln(e) {}//#endregion//#region src/islands/quality-goals.tsx-var un = (e, t) => ln(t), dn = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;-function fn({ openItem: t, javTitleHtml: n, javDisplayName: a, srcBadge: o }) {- let { data: s, error: c } = sn.value;+var mn = (e, t) => pn(t), hn = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;+function gn({ openItem: t, javTitleHtml: n, javDisplayName: a, srcBadge: o }) {+ let { data: s, error: c } = dn.value;if (c) return /* @__PURE__ */ J("div", {class: "qualitylist",dangerouslySetInnerHTML: { __html: p(c, {@@ -2119,7 +2206,7 @@ function fn({ openItem: t, javTitleHtml: n, javDisplayName: a, srcBadge: o }) {"aria-label": `打开 ${a(s)}`,onClick: () => t(s.id),children: /* @__PURE__ */ J("img", {- src: dn(s),+ src: hn(s),alt: "",loading: "lazy",onError: (e) => e.currentTarget.remove()@@ -2153,7 +2240,7 @@ function fn({ openItem: t, javTitleHtml: n, javDisplayName: a, srcBadge: o }) {}//#endregion//#region src/jobs.ts-async function pn(e) {+async function _n(e) {let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;for (; e.active();) {let r;@@ -2168,11 +2255,11 @@ async function pn(e) {await t(2e3);}}-function mn(e) {+function vn(e) {let t = document.createElement("div");e.host.hidden = !0, t.dataset.followJob = "", t.setAttribute("aria-live", "polite"), e.host.prepend(t);let n = e.storageKey || "peach-follow-job", r = sessionStorage.getItem(n) || void 0, i = !1;- pn({+ _n({read: e.read,active: () => !i && e.active() && t.isConnected,keepWatching: e.watchIdle !== !1,@@ -2198,8 +2285,8 @@ function mn(e) {}//#endregion//#region src/islands/scraping.tsx-var hn = (e, t) => z("/api/scraping", t);-function gn({ value: e, onChange: t }) {+var yn = (e, t) => z("/api/scraping", t);+function bn({ value: e, onChange: t }) {let n = q(null), r = q(t);return r.current = t, K(() => {let t = n.current;@@ -2213,7 +2300,7 @@ function gn({ value: e, onChange: t }) {class: "scraping-network"});}-function _n({ source: e, toast: t }) {+function xn({ source: e, toast: t }) {let [r, i] = W(e), [a, o] = W(e.network), [s, c] = W(""), [l, u] = W(""), [f, m] = W("paste"), [h, g] = W(""), [_, y] = W(!1), [b, x] = W(""), [S, C] = W([]), w = q(null), T = q(null);K(() => {T.current?.querySelectorAll("footer button").forEach((e) => v(e, _));@@ -2284,7 +2371,7 @@ function _n({ source: e, toast: t }) {}),/* @__PURE__ */ J("div", {class: "scraping-label",- children: ["连接方式", /* @__PURE__ */ J(gn, {+ children: ["连接方式", /* @__PURE__ */ J(bn, {value: a,onChange: o})]@@ -2395,13 +2482,13 @@ function _n({ source: e, toast: t }) {})});}-function vn({ data: e, error: t, toast: n }) {+function Sn({ data: e, error: t, toast: n }) {let [r, i] = W(""), [a, o] = W(!1), [s, c] = W(""), l = q(null);K(() => v(l.current, a), [a]);let u = q(new AbortController()), f = q(0);async function m(e = !1) {let t = ++f.current;- await pn({+ await _n({read: (e) => z("/api/scraping/cover", e),active: () => !u.current.signal.aborted && t === f.current,render: (t) => {@@ -2462,7 +2549,7 @@ function vn({ data: e, error: t, toast: n }) {]})}),- e?.sources.map((e) => /* @__PURE__ */ J(_n, {+ e?.sources.map((e) => /* @__PURE__ */ J(xn, {source: e,toast: n}, e.source))@@ -2471,13 +2558,13 @@ function vn({ data: e, error: t, toast: n }) {}//#endregion//#region src/islands/library-processing.tsx-var yn = (e, t) => z("/api/library-processing", t);-function bn({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a }) {+var Cn = (e, t) => z("/api/library-processing", t);+function wn({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a }) {let [o, s] = W(e || { status: "idle" }), [c, l] = W(t), [u, g] = W(!1), [_, y] = W(!1), b = q(new AbortController()), x = q(0), S = q(o.status), C = q(null), w = u || o.status === "running";K(() => v(C.current, w), [w]);async function T() {let e = ++x.current;- await pn({+ await _n({read: (e) => z("/api/library-processing", e),active: () => !b.current.signal.aborted && x.current === e,keepWatching: i === "notice" || !!a,@@ -2575,12 +2662,12 @@ function bn({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a })}//#endregion//#region src/state/index.ts-var xn = { "quality-goals": {- refresh: ln,- reset: cn-} }, Sn = () => Object.keys(xn);-async function Cn(e) {- let t = xn[e];+var Tn = { "quality-goals": {+ refresh: pn,+ reset: fn+} }, En = () => Object.keys(Tn);+async function Dn(e) {+ let t = Tn[e];if (!t) throw Error(`未登记的共享 store:${String(e)}`);try {return await t.refresh(), !0;@@ -2590,24 +2677,24 @@ async function Cn(e) {}//#endregion//#region src/review-evidence.ts-var wn = (e = "") => /^https?:\/\//i.test(e) ? e : "";-function Tn(e = "") {- let n = wn(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");+var On = (e = "") => /^https?:\/\//i.test(e) ? e : "";+function kn(e = "") {+ let n = On(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");return `<div class="reviewimage" data-review-picture><span class="reviewimageempty"${n ? " hidden" : ""}>未取得来源图片</span>${n ? `<img src="${t(n)}" alt="来源候选图片" loading="lazy">` : ""}</div>`;}-function En(e) {- let n = wn(e.profile_url), r = (e.preview_assets || []).slice(0, 6), i = Math.max(0, Number(e.video_count || e.videos || 0));+function An(e) {+ let n = On(e.profile_url), r = (e.preview_assets || []).slice(0, 6), i = Math.max(0, Number(e.video_count || e.videos || 0));return `<section class="reviewidentityevidence"><h5>候选身份:${t(e.babepedia_name || "未标注")}</h5><div class="reviewevidenceactions">${n ? `<a class="geist-button externallink" href="${t(n)}" target="_blank" rel="noopener noreferrer">来源资料<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a>` : ""}<button type="button" class="geist-button" data-entity-kind="creator" data-entity-name="${t(e.creator || "")}">查看全部 ${i.toLocaleString()} 部作品</button></div>- ${Tn(e.preview_url)}+ ${kn(e.preview_url)}<p>通过后记录身份判断。</p>${r.length ? `<h5>本地作品样本</h5><div class="reviewevidencesamples">${r.map((e) => `<div class="reviewevidencesample"><button class="geist-button" type="button" data-review-open-item="${e.id}"><span data-middle-truncate title="${t(e.name)}">${t(e.name)}</span></button><button class="geist-button" type="button" data-review-reveal="${e.id}" aria-label="打开 ${t(e.name)} 的文件位置">文件位置</button></div>`).join("")}</div>` : "<p>暂无本地作品样本,打开全部作品核对。</p>"}</section>`;}-function Dn(e) {+function jn(e) {for (let t of e.querySelectorAll("[data-review-picture] img")) {let e = () => {t.hidden = !0;@@ -2619,7 +2706,7 @@ function Dn(e) {}//#endregion//#region src/review-bulk.ts-var On = () => ({+var Mn = () => ({busy: !1,category: "",filter: "",@@ -2630,7 +2717,7 @@ var On = () => ({assets: /* @__PURE__ */ new Map(),errors: /* @__PURE__ */ new Map()});-function kn(e) {+function Nn(e) {let t = e?.querySelector(".reviewcontrols");if (!e || !t || t.offsetParent === null) return;let n = e.closest("main");@@ -2640,7 +2727,7 @@ function kn(e) {n.classList.toggle("is-stuck", n.offsetParent !== null && window.scrollY > 0 && Number.isFinite(e) && Math.abs(n.getBoundingClientRect().top - e) <= 1);}}-function An(e, t) {+function Pn(e, t) {let n = [["candidates",t ? "按候选数量" : "全部待复核",@@ -2656,7 +2743,7 @@ function An(e, t) {"list-filter"]), n;}-function jn(e, t) {+function Fn(e, t) {let n = /* @__PURE__ */ new Map();for (let r of e) {let e, i;@@ -2673,11 +2760,11 @@ function jn(e, t) {}return [...n.values()];}-function Mn(e, t, n, r, i) {+function In(e, t, n, r, i) {let a = e.anchor === null ? -1 : t.indexOf(e.anchor), o = t.indexOf(n);r && a >= 0 && o >= 0 ? t.slice(Math.min(a, o), Math.max(a, o) + 1).forEach((t) => e.selected.add(t)) : i ? e.selected.add(n) : e.selected.delete(n), e.anchor = n;}-async function Nn(e, t, n, r) {+async function Ln(e, t, n, r) {let i = [], a = 0;for (let o of e) {if (!r()) break;@@ -2697,17 +2784,17 @@ async function Nn(e, t, n, r) {failures: i};}-function Pn(e) {+function Rn(e) {return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];}-function Fn(e, t) {+function zn(e, t) {let n = e.querySelector(".reviewlist");if (!n || !t.rows.length || t.locked) return;let r = t.state, i = [...n.querySelectorAll("[data-review-key]")];t.category !== void 0 && r.category !== t.category && (r.category = t.category, r.filter = "", r.groupBy = "candidates", r.anchor = null);- let a = An(t.rows, t.metadata);+ let a = Pn(t.rows, t.metadata);a.some((e) => e[0] === r.groupBy) || (r.groupBy = "candidates", r.filter = "");- let o = jn(t.rows, r.groupBy);+ let o = Fn(t.rows, r.groupBy);o.some((e) => e.key === r.filter) || (r.filter = "");let s = () => [...n.querySelectorAll("[data-review-key]")].filter((e) => !e.closest("[hidden]")), l = () => s().filter((e) => r.selected.has(e.dataset.reviewKey)), u = () => t.rows.filter((e) => l().some((t) => t.dataset.reviewKey === e.item_key)), d = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, f = (e, t = "") => {let n = document.createElement("button");@@ -2762,15 +2849,15 @@ function Fn(e, t) {let j = e.querySelector(".reviewcontrols");j ? j.append(p) : n.before(p), e.append(k), n.classList.add("reviewgroups");let ee = () => {- r.selected.clear(), r.anchor = null, N();+ r.selected.clear(), r.anchor = null, P();};A.onclick = () => {r.busy || (ee(), S.focus({ preventScroll: !0 }));}, S.onclick = () => {if (r.busy) return;let e = s(), t = l().length === e.length;- e.forEach((e) => t ? r.selected.delete(e.dataset.reviewKey) : r.selected.add(e.dataset.reviewKey)), N();- }, C.onclick = () => P("approved", C), w.onclick = () => P("rejected", w);+ e.forEach((e) => t ? r.selected.delete(e.dataset.reviewKey) : r.selected.add(e.dataset.reviewKey)), P();+ }, C.onclick = () => te("approved", C), w.onclick = () => te("rejected", w);let M = [];for (let e of o) {let t = e.rows.map((e) => i.find((t) => t.dataset.reviewKey === e.item_key)).filter((e) => !!e), a = document.createElement("section");@@ -2783,7 +2870,7 @@ function Fn(e, t) {d.className = "reviewlist", o.append(l, u), a.append(o, d), n.append(a), u.onclick = () => {if (r.busy) return;let e = t.every((e) => r.selected.has(e.dataset.reviewKey));- t.forEach((t) => e ? r.selected.delete(t.dataset.reviewKey) : r.selected.add(t.dataset.reviewKey)), N();+ t.forEach((t) => e ? r.selected.delete(t.dataset.reviewKey) : r.selected.add(t.dataset.reviewKey)), P();}, M.push(() => {u.textContent = t.every((e) => r.selected.has(e.dataset.reviewKey)) ? "清空本组" : "全选本组";});@@ -2799,7 +2886,7 @@ function Fn(e, t) {e.className = "reviewpickname", e.append(...n.childNodes), n.classList.add("reviewpickheading"), n.append(i, e);} else e.prepend(i);let o = (e, n) => {- Mn(r, s().map((e) => e.dataset.reviewKey), t, e, n), N();+ In(r, s().map((e) => e.dataset.reviewKey), t, e, n), P();};if (i.addEventListener("mousedown", (e) => {e.shiftKey && e.preventDefault();@@ -2813,7 +2900,7 @@ function Fn(e, t) {else if (n.key === "ArrowDown" || n.key === "ArrowUp") {n.preventDefault();let i = s(), a = i[i.indexOf(e) + (n.key === "ArrowDown" ? 1 : -1)];- a && (r.anchor === null && (r.anchor = t), Mn(r, i.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), N(), a.querySelector(".reviewpickitem input")?.focus());+ a && (r.anchor === null && (r.anchor = t), In(r, i.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), P(), a.querySelector(".reviewpickitem input")?.focus());}}}), M.push(() => {@@ -2831,25 +2918,25 @@ function Fn(e, t) {n.target.closest("[data-review-asset],[data-pick-all],[data-pick-none]") && r.assets.set(t, [...e.querySelectorAll("[data-review-asset][aria-pressed=\"true\"]")].map((e) => Number(e.dataset.reviewAsset)));});for (let n of e.querySelectorAll("input[type=\"radio\"]")) r.choices.has(t) && (n.checked = r.choices.get(t) === n.value), n.addEventListener("change", () => {- n.checked && r.choices.set(t, n.value), N();+ n.checked && r.choices.set(t, n.value), P();});}}e.addEventListener("keydown", (t) => {- r.busy || !e.contains(n) || (t.key === "Escape" && r.selected.size && (t.preventDefault(), t.stopPropagation(), ee()), (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && !t.target.matches("textarea,input:not([type=\"checkbox\"]):not([type=\"radio\"])") && (t.preventDefault(), t.stopPropagation(), s().forEach((e) => r.selected.add(e.dataset.reviewKey)), N()));+ r.busy || !e.contains(n) || (t.key === "Escape" && r.selected.size && (t.preventDefault(), t.stopPropagation(), ee()), (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && !t.target.matches("textarea,input:not([type=\"checkbox\"]):not([type=\"radio\"])") && (t.preventDefault(), t.stopPropagation(), s().forEach((e) => r.selected.add(e.dataset.reviewKey)), P()));});- let te = "";- function N() {+ let N = "";+ function P() {let e = l();S.textContent = e.length === s().length ? "清空当前选择" : r.filter ? "全选当前分类" : "全选本页", k.hidden = !e.length, T.textContent = `已选 ${e.length} 项`, C.disabled = !e.length || e.some((e) => !d(e)), w.disabled = !e.length;- let n = Pn(u());+ let n = Rn(u());E.hidden = !t.metadata || !u().some((e) => (e.candidates?.length || 0) > 1);let i = e.length && !n.length ? "所选项目无共同来源" : "统一选择来源", a = JSON.stringify([i, n]);- if (a !== te) {- te = a, E.innerHTML = g([["", i], ...n.map((e) => [e, e])], "", { label: "统一选择来源" });+ if (a !== N) {+ N = a, E.innerHTML = g([["", i], ...n.map((e) => [e, e])], "", { label: "统一选择来源" });let e = b(E.firstElementChild);e.disabled = !n.length, e.addEventListener("change", () => {- if (!(r.busy || !Pn(u()).includes(e.value))) {+ if (!(r.busy || !Rn(u()).includes(e.value))) {for (let n of l()) {let i = t.rows.find((e) => e.item_key === n.dataset.reviewKey).candidates.find((t) => t.source === e.value);n.querySelectorAll("input[type=\"radio\"]").forEach((e) => {@@ -2862,7 +2949,7 @@ function Fn(e, t) {}M.forEach((e) => e());}- async function P(n, i) {+ async function te(n, i) {if (r.busy || !l().length) return;let a = l().map((e) => ({key: e.dataset.reviewKey,@@ -2882,7 +2969,7 @@ function Fn(e, t) {e instanceof KeyboardEvent && e.key === "Tab" || (e.preventDefault(), e.stopImmediatePropagation());};e.addEventListener("click", c, !0), e.addEventListener("keydown", c, !0);- let u = 0, d = await Nn(a, async (e) => {+ let u = 0, d = await Ln(a, async (e) => {try {return await t.submit(e);} finally {@@ -2899,14 +2986,14 @@ function Fn(e, t) {let f = e.parentElement;t.refresh(), f?.querySelector(".reviewbulktoolbar button")?.focus({ preventScroll: !0 });}- N(), kn(e);+ P(), Nn(e);}//#endregion//#region src/native-image.ts-function In(e, t, n, r) {+function Bn(e, t, n, r) {return e > 0 && t > 0 && e === n && t === r;}-function Ln(e, t, n, r, i = 1) {+function Vn(e, t, n, r, i = 1) {let a = Number.isFinite(i) && i > 0 ? i : 1;e /= a, t /= a;let o = [@@ -2923,7 +3010,7 @@ function Ln(e, t, n, r, i = 1) {}//#endregion//#region src/entity-skeleton.ts-function Rn(e, t) {+function Hn(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>@@ -2935,7 +3022,7 @@ function Rn(e, t) {}//#endregion//#region src/catalog-onboarding.ts-var zn = [+var Un = ["loc","creator","performer",@@ -2952,16 +3039,16 @@ var zn = ["jav","thumb"];-function Bn() {+function Wn() {let e = (e) => Array(64).fill(e).join("");return {tiers: "<div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"av\"><span class=\"ring\"></span><span class=\"nm\"> </span></span>") + "</div><div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"brandpill\"><span class=\"mk\"></span><span class=\"placeholder-name\"> </span></span>") + "</div>",tags: "<span class=\"catalog-placeholder placeholder-tags\" aria-hidden=\"true\">" + e("<span class=\"pill\"> </span>") + "</span>"};}-async function Vn(e, t) {+async function Gn(e, t) {let n = new URLSearchParams();- for (let t of zn) e[t] && n.set(t, e[t]);+ for (let t of Un) 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 || [],@@ -2972,7 +3059,7 @@ async function Vn(e, t) {return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";}))).filter(Boolean);}-function Hn({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {+function Kn({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {let a = r ? "<a class=\"geist-button primary\" href=\"/configuration\">添加内容</a>" : "", o = "<a class=\"geist-button\" href=\"/follow-manage\">添加来源</a>";return t || n ? u("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" }) : e === "catalog" ? u("play", "还没有视频", "添加媒体文件夹或关注来源,开始建立你的馆藏。", { actions: a + o }) : u(e === "tags" ? "tags" : "user-round", "还没有" + ({tags: "标签",@@ -2985,7 +3072,7 @@ function Hn({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:}//#endregion//#region src/sidebar.ts-function Un(e) {+function qn(e) {return ["/","/unseen",@@ -2995,23 +3082,23 @@ function Un(e) {"/junk-files"].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);}-function Wn(e, t) {+function Jn(e, t) {return e.dataset.surface === t && e.querySelector(".dnav") ? !1 : (e.dataset.surface = t, e.replaceChildren(), !0);}-function Gn(e) {+function Yn(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 Kn(e) {+function Xn(e) {return e.filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location);}-function qn(e, t) {+function Zn(e, t) {return t.filter((t) => e.some((e) => e.location === t));}-function Jn() {+function Qn() {return `<div class="cleanuppage" data-skeleton="cleanup" aria-busy="true" aria-label="正在读取数据管理状态"><div class="cleanupgrid">${[[@@ -3057,7 +3144,7 @@ function Jn() {<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 Yn(e, t = !1, n = !1) {+function $n(e, t = !1, n = !1) {if (t || n) return "";let r = "<svg class=\"externalmark\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-external-link\"></use></svg>";return `<details class="taste-history-guide"${e ? " open" : ""}>@@ -3071,28 +3158,28 @@ function Yn(e, t = !1, n = !1) {<button type="button" class="geist-button taste-guide-skip">跳过</button></div></details>`;}-var Xn = "peach-taste-guide-dismissed";-function Zn(e, t) {+var er = "peach-taste-guide-dismissed";+function tr(e, t) {y(e, ".taste-history-guide", "taste-guide-collapse");let n = e.querySelector(".taste-history-guide");n?.querySelector(".taste-guide-skip")?.addEventListener("click", () => {- t.setItem(Xn, "1"), n.remove();+ t.setItem(er, "1"), n.remove();});}//#endregion//#region src/resource-sync.ts-var $ = (e = 0) => Number(e).toLocaleString(), Qn = {+var $ = (e = 0) => Number(e).toLocaleString(), nr = {local: "本地磁盘",115: "115",pikpak: "PikPak"};-function $n(e, t) {+function rr(e, t) {let n = e.cache || {files: 0,bytes: 0}, r = !!(e.missing || n.files);return `<div class="resourcepanel" data-geist-fieldset><div class="resourcesources">${(e.sources || []).map((e) => `<article>- <div class="resourcesourcetitle"><b>${Qn[e.location] || "媒体来源"}</b><span class="${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span></div>+ <div class="resourcesourcetitle"><b>${nr[e.location] || "媒体来源"}</b><span class="${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span></div><strong>${e.online ? `${$(e.missing)} 项` : "—"}</strong><small>${e.online ? `找不到文件 · 已检查 ${$(e.checked)} 项` : `馆藏中有 ${$(e.total)} 项`}</small>${e.unreadable ? `<small>${$(e.unreadable)} 项读取失败,已跳过</small>` : ""}</article>`).join("")}</div>@@ -3103,60 +3190,60 @@ function $n(e, t) {}//#endregion//#region src/jav-artwork.ts-function er(e) {+function ir(e) {return ["small","sleeve","preview"].includes(String(e)) ? "small" : "big";}-function tr(e) {+function ar(e) {return {- javLayout: er(e.javLayout),- javImage: nr(e.javLayout === "preview" ? "thumbnail" : e.javImage)+ javLayout: ir(e.javLayout),+ javImage: or(e.javLayout === "preview" ? "thumbnail" : e.javImage)};}-function nr(e) {+function or(e) {return e === "thumbnail" ? "thumbnail" : "cover";}-function rr(e, t) {- return e.is_jav && e.code && e.has_cover && (nr(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";+function sr(e, t) {+ return e.is_jav && e.code && e.has_cover && (or(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";}-function ir(e, t) {+function cr(e, t) {e.querySelectorAll("img[data-jav-image]").forEach((e) => {- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (nr(t) === "cover" || !r)), a = i ? n : r;+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (or(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 ar = {+var lr = {"library-processing": {- load: yn,- component: bn+ load: Cn,+ component: wn},scraping: {- load: hn,- component: vn+ load: yn,+ component: Sn},"quality-goals": {- load: un,- component: fn+ load: mn,+ component: gn},configuration: {- load: mt,- component: xt+ load: vt,+ component: Tt}-}, or = () => Object.keys(ar), sr = /* @__PURE__ */ new Map();-async function cr(e, t, n, r = {}) {- let i = ar[e];+}, ur = () => Object.keys(lr), dr = /* @__PURE__ */ new Map();+async function fr(e, t, n, r = {}) {+ let i = lr[e];if (!i) throw Error(`未注册的 island:${String(e)}`);- lr(t);+ pr(t);let a = {controller: new AbortController(),painted: !1};- sr.set(t, a);+ dr.set(t, a);let o;try {o = {@@ -3170,9 +3257,9 @@ async function cr(e, t, n, r = {}) {error: R(e)};}- if (sr.get(t) !== a) return;+ if (dr.get(t) !== a) return;if (r.isCurrent && !r.isCurrent()) {- sr.delete(t);+ dr.delete(t);return;}t.textContent = "", a.painted = !0;@@ -3182,9 +3269,9 @@ async function cr(e, t, n, r = {}) {};Oe(oe(i.component, s), t);}-function lr(e) {- let t = sr.get(e);- t && (t.controller.abort(), sr.delete(e), t.painted && Oe(null, e));+function pr(e) {+ let t = dr.get(e);+ t && (t.controller.abort(), dr.delete(e), t.painted && Oe(null, e));}//#endregion-export { Xn as TASTE_GUIDE_KEY, Hn as catalogEmptyHtml, Vn as catalogSuggestions, Jn as cleanupSkeletonHtml, Kn as cloudLocations, qn as cloudPreferenceLocations, On as createReviewSelection, Bn as emptyCatalogLayout, Rn as entitySkeletonHtml, mn as followJobProgress, En as identityEvidenceHtml, or as islandNames, rr as javImageKind, In as matchesFaceSource, cr as mountIsland, Ln as nativeImageFit, nr as normalizeJavImage, er as normalizeJavLayout, tr as normalizeJavPreferences, ke as preferredDirection, Cn as refreshStore, $n as resourceScanHtml, Tn as reviewImageHtml, Un as sidebarHasCatalogContent, Gn as sidebarTagCounts, Sn as storeNames, ir as syncJavImages, Wn as syncSidebarSurface, Yn as tasteHistoryGuideHtml, lr as unmountIsland, kn as updateReviewSticky, pn as watchJob, Dn as wireReviewPictures, Fn as wireReviewSelection, Zn as wireTasteHistoryGuide };+export { er as TASTE_GUIDE_KEY, je as boundedPreference, Kn as catalogEmptyHtml, Gn as catalogSuggestions, Qn as cleanupSkeletonHtml, Xn as cloudLocations, Zn as cloudPreferenceLocations, Mn as createReviewSelection, Wn as emptyCatalogLayout, Hn as entitySkeletonHtml, vn as followJobProgress, An as identityEvidenceHtml, ur as islandNames, sr as javImageKind, Bn as matchesFaceSource, fr as mountIsland, Ne as mountNumberSetting, Vn as nativeImageFit, or as normalizeJavImage, ir as normalizeJavLayout, ar as normalizeJavPreferences, ke as preferredDirection, Dn as refreshStore, rr as resourceScanHtml, kn as reviewImageHtml, qn as sidebarHasCatalogContent, Yn as sidebarTagCounts, En as storeNames, cr as syncJavImages, Me as syncNumberSetting, Jn as syncSidebarSurface, $n as tasteHistoryGuideHtml, pr as unmountIsland, Nn as updateReviewSticky, _n as watchJob, jn as wireReviewPictures, zn as wireReviewSelection, tr as wireTasteHistoryGuide };diff --git a/web/index.html b/web/index.htmlindex 10ff74c9c..5a8e05702 100644--- a/web/index.html+++ b/web/index.html@@ -9,12 +9,17 @@<link rel="stylesheet" href="/vendor/videojs/8.24.0/video-js.min.css"><title>Peach · 蜜桃</title><link rel="stylesheet" href="/app.css">+<link rel="stylesheet" href="/board.css" id="boardStyles"><!-- 主题必须在第一次绘制之前定下来。app.js 是 module,等同 defer:轮到它跑的时候浏览器已经按系统色画过一帧,手动选了浅色的人每次进页面都要先看一下深色。这段只做两件事——把选择写到 <html> 的 data-theme、把地址栏色块切到同一档;色板只在 web/css/01-base.css 一份,切换逻辑只在 app.js 的 applyTheme() 一份。 --><script>(()=>{try{+ const legacy=localStorage.getItem('peach.legacy-ui')==='true';+ document.documentElement.classList.toggle('original-design',legacy);+ document.getElementById('boardStyles').disabled=legacy;+ document.documentElement.classList.toggle('board-high-contrast',localStorage.getItem('peach.high-contrast')==='true');const choice=JSON.parse(localStorage.getItem('peach.settings.v1')||'{}').theme;if(choice!=='light'&&choice!=='dark')return;document.documentElement.dataset.theme=choice;@@ -264,5 +269,6 @@<!-- video.js(676KB)首屏用不上,与 Swiper 同一口径:由 app.js 的 ensureVideojs()在首次挂播放器时才拉。版本钉在那个加载器里。 --><script type="module" src="/app.js"></script>+<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" aria-hidden="true"><symbol viewBox="0 0 24 24" id="ri-palette-line"><path d="M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z"></path></symbol><symbol viewBox="0 0 24 24" id="ri-layout-grid-line"><path d="M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z"></path></symbol><symbol viewBox="0 0 24 24" id="ri-play-circle-line"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z"></path></symbol><symbol viewBox="0 0 24 24" id="ri-search-line"><path d="M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"></path></symbol><symbol viewBox="0 0 24 24" id="ri-rss-line"><path d="M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z"></path></symbol><symbol viewBox="0 0 24 24" id="ri-shield-check-line"><path d="M12 1L20.2169 2.82598C20.6745 2.92766 21 3.33347 21 3.80217V13.7889C21 15.795 19.9974 17.6684 18.3282 18.7812L12 23L5.6718 18.7812C4.00261 17.6684 3 15.795 3 13.7889V3.80217C3 3.33347 3.32553 2.92766 3.78307 2.82598L12 1ZM12 3.04879L5 4.60434V13.7889C5 15.1263 5.6684 16.3752 6.7812 17.1171L12 20.5963L17.2188 17.1171C18.3316 16.3752 19 15.1263 19 13.7889V4.60434L12 3.04879ZM16.4524 8.22183L17.8666 9.63604L11.5026 16L7.25999 11.7574L8.67421 10.3431L11.5019 13.1709L16.4524 8.22183Z"></path></symbol></svg></body></html>diff --git a/web/vendor/boardui-LICENSE.txt b/web/vendor/boardui-LICENSE.txtnew file mode 100644index 000000000..581b462f3--- /dev/null+++ b/web/vendor/boardui-LICENSE.txt@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 Mertcan Dundar Esmergul (BoardUI)++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/web/vendor/lucide-ORIGIN.md b/web/vendor/lucide-ORIGIN.mdindex de9d5f2c3..b4469a537 100644--- a/web/vendor/lucide-ORIGIN.md+++ b/web/vendor/lucide-ORIGIN.md@@ -5,5 +5,5 @@- 许可证:ISC;原文见 `lucide-LICENSE.txt`- 消费者:`web/index.html` 内联的 77 个 symbol-雪碧图里另有 7 枚自绘 symbol(alert、pics、jav、theater-enter、theater-exit、brand-x、shuffle)与 16 枚 player-* 前缀的播放器图标,都没有上游可对。+雪碧图里另有 7 枚自绘 symbol(shuffle、alert、pics、jav、theater-enter、theater-exit、brand-x)与 16 枚 player-* 前缀的播放器图标,都没有上游可对。RSS 与拖动点保留填充修正,避免小圆点在全局描边样式下消失。diff --git a/web/vendor/remixicon-LICENSE.txt b/web/vendor/remixicon-LICENSE.txtnew file mode 100644index 000000000..996917ee6--- /dev/null+++ b/web/vendor/remixicon-LICENSE.txt@@ -0,0 +1,186 @@+Remix Icon License v1.0+Version 1.0 – January 2026+Copyright (c) 2017–2026 Remix Design++ This License governs the use of the Remix Icon library, including all icons,+ SVG files, font files, and related assets (collectively, the "Icons").++1. Grant of License++ Subject to the terms and conditions of this License, Remix Design grants you+ a worldwide, royalty-free, non-exclusive license to use, copy, modify,+ merge, and distribute the Icons, as permitted below.++2. Permitted Uses++ You are permitted to:++ 2.1 Commercial and Non-Commercial Use+ Use the Icons in personal, commercial, and client projects, including+ but not limited to:+ - Websites, web applications, and mobile applications+ - Software products and SaaS platforms+ - User interface designs, design systems, and UI kits+ - Presentations, documentation, and marketing materials+ - Physical or digital products where the Icons are decorative or+ functional elements++ 2.2 Modification and Derivative Works+ - Modify, adapt, or customize the Icons+ - Change colors, sizes, stroke styles, or other visual attributes+ to fit your project needs++ 2.3 Distribution as Part of a Larger Work+ Include the Icons (modified or unmodified) as part of a larger product,+ provided that:+ - The Icons are functional or decorative components of the product, and+ - The Icons are not marketed or sold as the primary value of the product++ 2.4 Attribution (Optional)+ Attribution to Remix Icon is appreciated but not required.+ Suggested attribution:+ "Icons by Remix Icon (https://remixicon.com)"++3. Restrictions++ 3.1 Prohibited: Standalone Icon Sales+ You may NOT:+ - Sell, sublicense, or distribute the Icons as a standalone product+ - Package the Icons as an independent icon pack, icon library, or+ icon font for sale+ - Offer the Icons as a downloadable asset collection where the Icons+ themselves constitute the primary product value++ Clarification:+ A product is considered a prohibited standalone icon sale if:+ - The Icons are the primary advertised feature, or+ - Removing the Icons would eliminate the core value of the product++ Examples:+ - Prohibited: "Premium Icon Pack – 2,000+ Icons for $29"+ - Prohibited: "Extended Remix Icon Library (Paid)"+ - Permitted: Website or app templates that include Icons as UI elements+ - Permitted: Design systems or UI kits where Icons are a minor component++ 3.2 Prohibited: Competing Icon Libraries+ You may NOT use the Icons to create, distribute, or sell a competing+ icon library or icon set, even if the Icons are modified with only+ minor or superficial changes (such as color, size, stroke width,+ corner radius, or layout).++ 3.3 Prohibited: Logo, Trademark, and Brand Identity Use+ You may NOT use the Icons, whether modified or unmodified, as:+ - A logo, trademark, or brand identifier+ - The primary visual identity of a company, product, or service++ This includes, but is not limited to:+ - Creating a logo by applying simple modifications such as color changes,+ rotation, combination, or layout+ - Using an Icon as a brand mark, app icon, or identity symbol where the+ Icon itself represents the brand++ Rationale:+ Remix Icon is designed for functional and informational use. Using the+ Icons as brand identifiers may impair their recognizability and neutrality+ in other functional contexts.++4. Brand Icons and Trademarks++ Some Icons represent third-party brands or services.++ 4.1 Permitted Use of Brand Icons+ You may use brand icons solely to represent or link to the corresponding+ brand, product, or service.+ Examples:+ - Using a GitHub icon to link to a GitHub repository+ - Displaying social media icons in a website footer++ 4.2 Prohibited Use of Brand Icons+ You may NOT:+ - Use brand icons as your own logo or trademark+ - Modify brand icons to create a new brand identity+ - Use brand icons in a way that implies endorsement or affiliation+ by the brand owner+ - Use brand icons for purposes unrelated to the represented brand++ 4.3 Trademark Responsibility+ All brand icons are subject to the trademark rights of their respective+ owners. This License does not grant any trademark rights.+ Users are responsible for ensuring that their use of brand icons complies+ with applicable trademark laws.++5. Copyright and License Notice++ When distributing the complete Icon library or substantial portions thereof:++ - You must retain existing copyright notices in source files+ - You should include a copy of this License or a link to it++ For individual use of Icons within projects (e.g., compiled apps, websites,+ presentations), no copyright notice is required.++6. No Trademark Rights++ This License does not grant permission to use:++ - The "Remix Icon" name, logo, or trademarks+ - Any trademarks represented by brand icons++ You may refer to Remix Icon by name solely for attribution purposes.++7. Disclaimer of Warranty++ THE ICONS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+ IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,+ FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.++8. Limitation of Liability++ IN NO EVENT SHALL REMIX DESIGN BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING+ FROM, OUT OF, OR IN CONNECTION WITH THE ICONS OR THEIR USE.++9. License Compatibility++ You may integrate the Icons into projects under permissive licenses+ (such as MIT, BSD, or Apache 2.0), provided that:++ - The Icons themselves remain governed by this License+ - The restrictions in Section 3 continue to apply++ This License may be incompatible with licenses that require unrestricted+ redistribution of assets as standalone products or mandatory application+ of strong copyleft or share-alike terms.++10. Termination++ Your rights under this License terminate automatically if you breach its+ terms.++ Upon termination:++ - You must cease any distribution that violates this License+ - You may continue to use the Icons in projects already distributed+ prior to termination+ - End users who received such projects are not affected++11. License Versioning++ Remix Design may publish revised versions of this License.++ You may choose to use the Icons under:++ - The version of this License under which you received them, or+ - Any later version published by Remix Design++ Once chosen, that version may be used indefinitely.++How to Apply This License++ Include the following notice in your documentation when appropriate:++ "This project uses icons from Remix Icon (https://remixicon.com),+ licensed under the Remix Icon License v1.0."++ When distributing the complete Icon library or substantial portions of it,+ include a copy of this License.diff --git a/web/vendor/remixicon-ORIGIN.md b/web/vendor/remixicon-ORIGIN.mdnew file mode 100644index 000000000..c78348934--- /dev/null+++ b/web/vendor/remixicon-ORIGIN.md@@ -0,0 +1,6 @@+# Remix Icon 4.9.1++- npm 包:`[email protected]`+- npm lock integrity:`sha512-36gLSoujkabnCFZFDyP17VNh9piuBA/rsXUb4auSJWLGsHVXtmxLj/EM5FjaEAGnk8oIAj1Azob/DZ2N+90lAQ==`+- 许可证:Remix Icon License v1.0,见 `remixicon-LICENSE.txt`。+- 消费者:设置导航六枚内联 symbol。完整候选由本地 HTML 审查。