Skip to content

armgit / peach

Public Imported from GitHub
0

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

Merge branch 'master' into agent/claude/vercel-button-fills

longmeidao21bd9853dd58
diff --cc docs/reference-snapshots/vercel-geist-semantics-measured.md
index 7fcc9053e,ee4fd88a7..1aedf0255
--- a/docs/reference-snapshots/vercel-geist-semantics-measured.md
+++ b/docs/reference-snapshots/vercel-geist-semantics-measured.md
@@@ -381,61 -381,14 +381,63 @@@ Peach 的两列侧栏导航按上表对
- 全站收成两张面。`--page` 是退到后面那张:`body`、框体里的操作条。`--ground` 是浮在它
上面那张:顶栏、窄栏、卡片、面板、按钮和输入框,外框 1px `--field-ring`、内部分隔线
`--line-soft`,不靠投影。暗色一档 Peach 的底带蓝,所以 `--page` 取 `#04060A` 而不是纯黑,
- 方向与 Vercel 一致(面比底亮)。`--surface` 不再当面用,只剩悬停与内嵌那一档。
+ 方向与 Vercel 一致(面比底亮)。`--surface` 不再当面用,只剩内嵌与控件禁用那一档。
- 顶栏与窄栏是有意与 Vercel 分开的一处:Vercel 的页头和页面底同色、不浮起,Peach 有一条
从上贯到底的窄栏,两条一起留在 `--ground` 才不会在左上角撞出两种白。
- - 按钮次级档填 `--ground` 而不是透明,悬停抬到 `--surface`;禁用落到 `--sunk`。
+ - 按钮次级档填 `--ground` 而不是透明,悬停抬到 Geist 的 gray-200 那一档,写作
+ `color-mix(in srgb,var(--ink) 8%,var(--ground))`:浅色落在 `#EBEBEB`、深色往亮处抬,
+ 两个主题共用一条规则;禁用落到 `--sunk`。
+- 动作按钮一律 `border:0`,两档只靠填充分:主动作 `--ink` 实底、次级 `--ground` 一块亮面。
+ 描边留给输入类控件和「点开会出一张面板」的触发器:`.gselectfield`、来源筛选的
+ `[data-srcfilter-toggle]`、排序方向的 `.fmanagedir` 保留 1px `--field-ring`,
+ 悬停走 `--field-ring-hover`、展开走 `--field-ring-focus` 加 4px 辉光。
+- 危险档静止态就是实底红 `--drop` 加白字,悬停把同一块红压深 18%:与 Geist 的 error
+ 变体(`rgb(217,48,54)` 实底白字)同构,站内只有 01-base 那一份定义。
+- 选中面 `--picked` 取 `--inset`:浅色 `#EBEBEB`(Geist 的 gray-200)、深色 9% 白。
+ 判据是「比脚下那张面往下压一档」,与实测 Tabs 的 `bg-gray-200` 一致;站在 `--ground`
+ 上的那一类控件(顶栏、窄栏、抽屉、浮层菜单)例外,选中走 `--hover` 加 `--ink` 字色。
- 滚动条不写任何自定义样式,交给 `html` 上的 `color-scheme`。
+## 2026-09-06 实测 vercel.com/<team> 的图标用法
+
+取证方式:内置浏览器登录态下打开团队 dashboard,遍历所有可见 `button` 与 `a`,
+统计每个控件里的 `svg` 数量、图标落在文字的哪一侧。
+
+### 按钮
+
+| 控件 | 文字 | 图标 | 位置 |
+| --- | --- | --- | --- |
+| All Projects | 有 | 1 | 后置 chevron(点开是菜单) |
+| Add New | 有 | 1 | 后置 chevron(点开是菜单) |
+| Upgrade | 有 | 0 | 纯文字 |
+| Upgrade to Pro | 有 | 0 | 纯文字 |
+| 其余 12 枚 | 无 | 1 | icon-only,24/32/36px 见方 |
+
+一屏 16 枚可见按钮里,**带文字的没有一枚挂前置图标**。
+
+### 链接
+
+站内链接(PR `#7`、部署 ID、项目名、用量项)不带图标;离站的部署域名
+`lmd-gg.vercel.app` 带一枚 14×14 的 Geist external-link(`viewBox="0 0 16 16"`、
+`fill:currentColor`)。列表行左端出现的图标是身份标记(用量项的 provider 标、
+提交行的 git 标),不是动作图标。
+
+### 判据
+
+图标只出现在三个位置:纯图标控件、菜单触发器的后置 chevron、以及「这一跳会离开当前
+应用」的外链标。带文字的动作按钮不加前置图标——文字已经说清动作,再加一个图标是把
+同一件事说两遍,一排按钮的左边缘还会被大小不一的图形推得参差。
+
+### Peach 对应
+
+- 保留:`chevron-down` 这类触发器标、`check` 这类选中标、`external-link`、侧栏与抽屉的
+ 导航标(那一层是 icon-only 加标签的列表,对应 Vercel 的左栏)、状态语义色块。
+- 去掉:带文字的动作按钮上的前置图标(`refresh-cw` + 检查死链/扫描差异/重试同步、
+ `upload` + 导入历史、`trash` + 删除空文件夹/移入回收站、`plus` + 新建播放列表、
+ `play` + 进入沉浸模式)。
+- 补上:任何跳出 Peach 的链接都要 external-link 标,站标(favicon)只在来源行这种
+ 「哪个站」本身是信息的位置用。
+
## 2026-09-05 实测 vercel.com/<team>/~/deployments 的筛选行
取证方式与上一节相同:内置浏览器登录态下打开该页,用 `getComputedStyle` 读实际值。
diff --cc frontend/src/islands/clouddrive-guide.tsx
index 962c996bf,a893e7390..3f7879b44
--- a/frontend/src/islands/clouddrive-guide.tsx
+++ b/frontend/src/islands/clouddrive-guide.tsx
@@@ -11,23 -11,28 +11,28 @@@ export function CloudDriveGuide()
const root = useRef<HTMLDivElement>(null);
useLayoutEffect(() => { if (root.current) wireCollapse(root.current, 'details', 'clouddrive-guide'); }, []);
return <div ref={root} class="cloudguide">
- <p class="confighelp">先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。<a href="https://www.clouddrive2.com/help.html" target="_blank" rel="noreferrer">挂载帮助<svg aria-hidden="true" viewBox="0 0 24 24"><use href="#i-external-link" /></svg></a></p>
+ <p class="confighelp">先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。<a class="externallink" href="https://www.clouddrive2.com/help.html" target="_blank" rel="noreferrer">挂载帮助<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a></p>
<details>
<summary>CloudDrive 速度与缓存建议</summary>
- <p class="confighelp">按缓存所在的硬盘选起步配置。优先保证播放流畅,再用同一视频比较冷启动、拖动和流量;参数越大不一定越快。</p>
- <div class="cloudguide-profiles">{CLOUDDRIVE_PROFILES.map(profile => <section aria-label={profile.name} key={profile.name}>
- <h4>{profile.name}</h4>
- <dl><dt>磁盘缓存上限</dt><dd>{profile.cache}</dd><dt>默认 / 最小读取长度</dt><dd>{profile.read}</dd><dt>Peach 并行任务</dt><dd>{profile.task}</dd></dl>
- <p class="confighelp">{profile.advice}</p>
- </section>)}</div>
+ <p class="confighelp">看缓存放在哪块硬盘上,照那一行填。先保证播放不卡,再拿同一个视频比较打开速度、拖动和流量;数值填得越大不一定越快。</p>
+ <div class="cloudguide-tablewrap">
+ <table class="cloudguide-table">
+ <thead><tr><th scope="col">缓存所在硬盘</th><th scope="col">缓存上限</th><th scope="col">读取长度(默认 / 最小)</th><th scope="col">同时处理视频</th></tr></thead>
+ <tbody>{CLOUDDRIVE_PROFILES.map(profile => <tr key={profile.name}>
+ <th scope="row">{profile.name}</th><td>{profile.cache}</td><td>{profile.read}</td><td>{profile.task}</td>
+ </tr>)}</tbody>
+ </table>
+ </div>
<ul class="cloudguide-notes">
- <li>在 CloudDrive「设置」中设置磁盘缓存上限和 LRU(优先清理最久没用的缓存)。系统盘至少留 40 GiB;上限不要填 0。设置后重新打开确认,并观察实际占盘。</li>
- <li>在各网盘的下载设置中调整读取长度和下载线程。115 从 2 线程开始,遵守当前客户端上限;PikPak / WebDAV 从 2 线程开始,带宽充足且速度确实提升时再试 4。开启支持的直链选项,确认播放可用。</li>
- <li>PikPak 按当前 CloudDrive 提供的接入方式配置;使用 WebDAV 时,先确认服务端允许直链。不能直接套用 115 的连接方式。</li>
- <li>看视频时暂停批量抽帧,关闭不用的播放页。下载速度应高于视频码率除以 8,并留出余量:80 Mbps 视频约需 10 MB/s,建议稳定达到 15 MB/s。</li>
- <li>Buffer Cache 的内存占用、磁盘缓存和文件夹缓存是不同设置。磁盘显示的逻辑大小也不等于实际占盘;只改一个上限不能限制所有缓存。</li>
+ <li>缓存尽量放在内置固态盘上。只有机械硬盘时先用按需读取,反复看同一批文件才打开文件夹缓存。</li>
+ <li>256 / 128 KB 适合扫描、抽帧和拖动播放。看高码率视频还是缓冲,就试 512 / 256 KB;速度没提上来就调回去。</li>
+ <li>缓存上限和清理方式在 CloudDrive「设置」里填。清理方式选 LRU,也就是空间不够时先删最久没用过的缓存。上限不要填 0,系统盘至少留 40 GiB。填完重新打开这一页确认存住了,再看硬盘实际少了多少。</li>
+ <li>读取长度和下载线程在每个网盘各自的下载设置里改,线程都从 2 开始。115 不要超过客户端标出的上限;PikPak 和 WebDAV 在带宽有余、加到 4 确实更快时才留 4。能开直链就开,开完放个视频确认还能播。</li>
+ <li>PikPak 按 CloudDrive 当前提供的接入方式配置。走 WebDAV 时先确认服务端允许直链;115 的连接方式不能照搬过来。</li>
+ <li>看视频时先暂停批量抽帧,关掉不用的播放页。码率按 Mbps 算,下载速度按 MB/s 算,除以 8 才能对上:80 Mbps 的视频要 10 MB/s 才够,留出余量建议稳定在 15 MB/s。</li>
+ <li>Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,三处是分开的设置,改一个管不住另外两个。文件显示的大小是逻辑大小,也不等于真正占掉的盘。</li>
</ul>
- <p class="confighelp">上表容量和并发是起步建议,按实际占盘与播放结果调整。直链和代理是不同设置;连接慢时分别比较,不能只看开关是否开启。<a class="externallink" href="https://www.clouddrive2.com/features.html" target="_blank" rel="noreferrer">缓存说明<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a></p>
- <p class="confighelp">表里的容量和并发是起步值,按实际占盘和播放效果再调。直链和代理是两个开关,连接慢时分别试一次比较,不能只看开关有没有打开。<a href="https://www.clouddrive2.com/features.html" target="_blank" rel="noreferrer">缓存说明<svg aria-hidden="true" viewBox="0 0 24 24"><use href="#i-external-link" /></svg></a></p>
++ <p class="confighelp">表里的容量和并发是起步值,按实际占盘和播放效果再调。直链和代理是两个开关,连接慢时分别试一次比较,不能只看开关有没有打开。<a class="externallink" href="https://www.clouddrive2.com/features.html" target="_blank" rel="noreferrer">缓存说明<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a></p>
</details>
</div>;
}
diff --cc tests/test_web_ui.py
index 38a60b245,3d94566ad..9b21563ed
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@@ -451,30 -451,33 +451,42 @@@ class WebUiSourceTests(unittest.TestCas
'aria-label="检查更新进度">')
def test_buttons_keep_two_tiers_a_solid_primary_and_a_bright_secondary(self):
- """按钮只有两档:主动作实底墨色,次级是比容器亮一档的面加一圈发丝边。
+ """按钮只有两档:主动作实底墨色,次级是比容器亮一档的实面;两档都不描边。
2026-09-05 实测 vercel.com 的仪表盘工具行,两档同屏并排:主动作 `#171717` 底
- 白字不带描边,次级 `#FFFFFF` 底 `#171717` 字加 `0 0 0 1px #EBEBEB`。次级不是透明的
- ——压在 `#FAFAFA` 的操作条上时,透明会让按钮和条子连成一片,只剩一条边框在飘。
+ 白字,次级 `#FFFFFF` 底 `#171717` 字。次级不是透明的——压在 `#FAFAFA` 的操作条上,
+ 透明会让按钮和条子连成一片。Geist 给次级另挂的那圈 `box-shadow:0 0 0 1px` 这里
+ 不画:描边档与实心档并排看着一大一小,差的是「一个是块面、一个是个框」,
+ 而次级只出现在操作条上,比条子亮一档本身就是边界。
+
+ 悬停按 Geist Button 源规则抬一档:secondary 走 gray-200(浅色 `#EBEBEB`、深色
+ `#1F1F1F`),即自己那块面上压 8% 墨。每一颗次级按钮都用同一个值,白底上才看得出
+ 鼠标停在哪一颗。
"""
+ css = stylesheet_source()
+ secondary_hover = "background:color-mix(in srgb,var(--ink) 8%,var(--ground))"
self.assertCode(".geist-button{box-sizing:border-box;height:32px;padding:0 14px;"
- "border:1px solid var(--line-soft);border-radius:var(--control-radius);"
+ "border:0;border-radius:var(--control-radius);"
"background:var(--ground);color:var(--ink);display:inline-flex;")
- self.assertPageContains(".geist-button:hover:not(:disabled){background:var(--surface)}")
+ self.assertPageContains(f".geist-button:hover:not(:disabled){{{secondary_hover}}}")
- self.assertPageContains(".geist-button.primary{border-color:var(--ink);background:var(--ink);color:var(--ground)}")
- for name in (".cleanupfieldset button{", "\n.fbtn{", ".resourceaction{"):
- start = css.index(name)
+ self.assertPageContains(".geist-button.primary{background:var(--ink);color:var(--ground)}")
- css = stylesheet_source()
+ # 找的是这三条基样式本身,不是别处以同名结尾的派生规则(`.fsecfoot .fbtn{`
+ # 也以 `.fbtn{` 收尾),所以选择器前面必须是上一条规则的边界。
+ for name in (".cleanupfieldset button:where(:not(.gselectfield)){",
+ ".fbtn{", ".resourceaction{"):
+ found = re.search(r"(?:^|[}\n])" + re.escape(name), css)
+ self.assertIsNotNone(found, f"{name} 找不到基样式")
+ start = found.end() - len(name)
rule = css[start:css.index("}", start)]
self.assertIn("background:var(--ground)", rule, f"{name} 是次级档,自己是一块亮面")
- self.assertIn("border:1px solid var(--line-soft)", rule, f"{name} 的边与次级档一致")
- for name in (".cleanupfieldset button:hover{", ".fbtn:hover:not(:disabled){",
- ".resourceaction:hover:not(:disabled){", ".dupactions.fsechead button:hover{"):
+ self.assertIn("border:0", rule, f"{name} 跟次级档一样不描边")
++ for name in (".cleanupfieldset button:where(:not(.gselectfield)):hover{",
++ ".fbtn:hover:not(:disabled){",
++ ".resourceaction:hover:not(:disabled){",
++ ".dupactions.fsechead button:hover{"):
+ start = css.index(name)
+ rule = css[start:css.index("}", start)]
+ self.assertIn(secondary_hover, rule, f"{name} 的悬停与次级档同抬一档")
def test_the_scrollbar_thumb_floats_over_the_content_and_takes_no_width(self):
"""滑块自绘、浮在内容上,一列宽度都不占;颜色取主题变量。
@@@ -6316,13 -6170,11 +6328,14 @@@
"min-height:var(--fieldset-bar-h);")
# 说明能被压窄并换行,按钮不参与压缩。
self.assertPageContains(".resourcesyncfooter>p,.resourceapplyrow>p{min-width:0;margin-right:auto}")
- self.assertPageContains(".cleanupfieldset button{box-sizing:border-box;flex:none;min-height:32px;")
+ # 排除下拉触发器:它是 .cleanupfieldset 里的一个 button,但形状属于输入控件,
+ # 那圈线要留着。零权重的 :where() 才不会反过来压过 .geist-button.primary。
+ self.assertPageContains(".cleanupfieldset button:where(:not(.gselectfield)){"
+ "box-sizing:border-box;flex:none;min-height:32px;")
self.assertPageContains("background:var(--ground);color:var(--ink-2);display:inline-flex;")
- self.assertPageContains(".cleanupfieldset button:hover{"
+ self.assertPageContains(".cleanupfieldset button:where(:not(.gselectfield)):hover{"
- "background:var(--surface);color:var(--ink)}")
+ "background:color-mix(in srgb,var(--ink) 8%,var(--ground));"
+ "color:var(--ink)}")
self.assertPageLacks(".resourcesyncfooter button{width:100%;justify-content:center}")
self.assertPageLacks(".resourcesync .resourcesyncfooter{align-items:stretch;flex-direction:column}")
self.assertPageLacks(".resourcesync .resourceapplyrow{align-items:stretch;flex-direction:column}")
diff --cc web/css/01-base.css
index 3e4cfa18f,2648e15c3..a1c86ed40
--- a/web/css/01-base.css
+++ b/web/css/01-base.css
@@@ -193,24 -183,14 +193,27 @@@ button,a,input,textarea,select,summary{
border-radius:var(--control-radius);background:var(--ground);color:var(--ink);display:inline-flex;
align-items:center;justify-content:center;gap:6px;font:inherit;font-size:var(--fs-md);font-weight:500;
line-height:1;white-space:nowrap;cursor:pointer;
- transition:background-color .15s ease-in-out,border-color .15s ease-in-out,color .15s ease-in-out}
+ transition:background-color .15s ease-in-out,color .15s ease-in-out}
- .geist-button:hover:not(:disabled){background:var(--surface)}
+ /* 次级的悬停抬到 Geist 实测的 gray-200 那一档(浅色 #EBEBEB、深色 #1F1F1F),墨色 8% 压在
+ 自己那块面上即是这个值。比它淡的一档在白底上与静止态只差两三个色阶,鼠标压在哪颗按钮
+ 上看不出来;用墨色混合而不是某个固定 token,是因为浅色要往下压、深色要往上抬。 */
+ .geist-button:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 8%,var(--ground))}
.geist-button,.geist-button:hover{text-decoration:none}
+/* 按钮里唯一还挂图标的一类是走出 Peach 的链接,那一枚的长相由下面两条说。 */
+.geist-button svg{width:14px;height:14px;flex:none;stroke:currentColor;fill:none;stroke-width:2}
+/* 走出 Peach 的那一枚标,全站一个写法。
+ 2026-09-06 实测 vercel.com/geist/colors 的 `Learn More`:14px/20px 的文字配 16×16 图标、
+ 紧跟文字 2px、与文字行居中、颜色就是链接自己的 currentColor
+ (docs/reference-snapshots/vercel-geist-external-link-mark.md)。尺寸不是全站一个常数,
+ 而是相对所在文字抬一档,16/14≈1.15em,所以 12px 小字旁边它也跟着小、比例不变。
+ 全站只有这两条,页面各自不再调档:这一枚每次说的都是同一件事,尺寸和间距按页面
+ 分档的话,同一个意思就有八个长相,并排放着像是八种不同的标。
+ 间距只由 .externallink 的 gap 说:挂在标自己身上会和容器的 gap 叠起来。 */
+.externallink{display:inline-flex;align-items:center;gap:2px;min-width:0}
+svg.externalmark{width:1.15em;height:1.15em;flex:none;align-self:center;
+ stroke:currentColor;fill:none;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.geist-button:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}
-.geist-button:disabled{background:var(--sunk);border-color:var(--line-soft);color:var(--muted);cursor:default}
+.geist-button:disabled{background:var(--sunk);color:var(--muted);cursor:default}
/* Vercel/Geist loading actions look unavailable and reject repeat activation,
but remain focusable; JS pairs this with aria-disabled instead of disabled. */
button[aria-busy="true"],[role="button"][aria-busy="true"]{
diff --cc web/css/04-manage.css
index e6000a851,b628cfeb4..f06d60ce1
--- a/web/css/04-manage.css
+++ b/web/css/04-manage.css
@@@ -107,18 -85,16 +107,20 @@@
/* 操作条上的按钮一律填 --ground:条子是 --page,按钮要比条子亮才分得出来,
与 .geist-button 的次级档同一套。hover 只提亮底色、描边和文字,不出蓝色。
- 危险按钮 hover 一律填 --drop、白字:只描红边、红字的话,静止态和悬停态在暗色底上
- 几乎一样亮,按下去之前看不出这是不可逆动作。Geist 的 error Button 同样是实心红填充
- (oklch(.5801 .227 25.12) 底、白字),只是它在静止态就红,Peach 把红留到悬停。 */
-.cleanupfieldset button{box-sizing:border-box;flex:none;min-height:32px;padding:0 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);
+ 危险按钮静止态就是 --drop 实底加白字,配方在 `01-base.css` 的 `button.danger`,
+ 全站一份。次级不描边,与 `.geist-button` 同一条:它自己是一块比操作条亮一档的面。 */
+/* 排除下拉触发器要用 `:where(:not(…))`,不能直接写 `:not(…)`。采集来源那张卡的下拉触发器
+ 正好是 `.cleanupfieldset` 里的一个 button,这条不排除它就把 `.gselectfield` 那圈线也去了
+ ——按钮不描边,输入类控件仍旧描边。而裸 `:not()` 会把这条抬到 0,2,1,反过来压过
+ `.geist-button.primary`(0,2,0),同一张卡上的主动作于是丢掉实底变成一行字;
+ `:where()` 权重恒为零,排除生效、层级不动。 */
+.cleanupfieldset button:where(:not(.gselectfield)){box-sizing:border-box;flex:none;min-height:32px;padding:0 12px;border:0;border-radius:var(--control-radius);
background:var(--ground);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;
- transition:border-color .15s ease-in-out,color .15s ease-in-out,background-color .15s ease-in-out}
-.cleanupfieldset button:hover{background:color-mix(in srgb,var(--ink) 8%,var(--ground));color:var(--ink)}
+ transition:color .15s ease-in-out,background-color .15s ease-in-out}
- .cleanupfieldset button:where(:not(.gselectfield)):hover{background:var(--surface);color:var(--ink)}
++.cleanupfieldset button:where(:not(.gselectfield)):hover{background:color-mix(in srgb,var(--ink) 8%,var(--ground));color:var(--ink)}
+ .cleanupfieldset button.danger{color:var(--drop)}
-.cleanupfieldset button.danger:hover{background:var(--drop);border-color:var(--drop);color:#fff}
-.cleanupfieldset button svg{width:16px;height:16px;stroke:currentColor;fill:none}
++.cleanupfieldset button.danger:hover{background:var(--drop);color:#fff}
+.cleanupfieldset button:where(:not(.gselectfield)) svg{width:16px;height:16px;stroke:currentColor;fill:none}
.cleanupfieldset .cleanupstate{margin-top:8px;font-size:var(--fs-sm);color:var(--ink-2)}
.cleanupfieldset .cleanupstate:empty{display:none}
.taste-history-guide{margin-top:16px;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground);padding:20px}
diff --cc web/css/12-cards.css
index 6b0f56f14,f2247637f..11fdcba8a
--- a/web/css/12-cards.css
+++ b/web/css/12-cards.css
@@@ -40,9 -40,9 +40,9 @@@ main{position:relative;z-index:1;paddin
.count.count-actions-only{position:relative;top:auto;min-height:0;margin:0 0 16px;padding:0;justify-content:flex-end}
.count.count-actions-only:empty{display:none}
.resourcesync{scroll-margin-top:calc(var(--topH) + 18px);display:grid;gap:16px}.resourcesync>h2{margin:0;font-size:var(--fs-xl)}
- .resourcesyncbox,.resourcepanel{overflow:clip;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground)}.resourcesyncbody{padding:20px}.resourcesyncbody p{max-width:760px;margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.resourcesyncfooter,.resourceapplyrow{box-sizing:border-box;min-height:var(--fieldset-bar-h);display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 12px 12px 20px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}.resourcesyncfooter p,.resourceapplyrow>p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.5}.resourceaction{box-sizing:border-box;height:36px;padding:0 12px;border:0;border-radius:var(--control-radius);background:var(--ground);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;font:inherit;font-size:var(--fs-sm);font-weight:500;cursor:pointer;transition:background-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:var(--surface);color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{background:var(--sunk);color:var(--muted);cursor:default}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#resourceSyncResult:empty{display:none}.resourcescanning{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);color:var(--muted)}.resourcesources{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.resourcesources article{display:grid;gap:4px;min-width:0;padding:16px}.resourcesources article+article{border-left:1px solid var(--line-soft)}.resourcesourcetitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.resourcesourcetitle span{font-size:var(--fs-xs)}.resourcesources .online{color:var(--success)}.resourcesources .offline{color:var(--drop)}.resourcesources strong{margin-top:10px;font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcesources small,.resourcecache small{color:var(--muted)}/* 这里是一排读数,不是又一个盒子。原先它自带填色和分格线,和下面的操作条同色,
-.resourcesyncbox,.resourcepanel{overflow:clip;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground)}.resourcesyncbody{padding:20px}.resourcesyncbody p{max-width:760px;margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.resourcesyncfooter,.resourceapplyrow{box-sizing:border-box;min-height:var(--fieldset-bar-h);display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 12px 12px 20px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}.resourcesyncfooter p,.resourceapplyrow>p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.5}.resourceaction{box-sizing:border-box;height:36px;padding:0 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--ground);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;font:inherit;font-size:var(--fs-sm);font-weight:500;cursor:pointer;transition:background-color .12s,border-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 8%,var(--ground));color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{background:var(--sunk);border-color:var(--line-soft);color:var(--muted);cursor:default}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#resourceSyncResult:empty{display:none}.resourcescanning{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);color:var(--muted)}.resourcesources{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.resourcesources article{display:grid;gap:4px;min-width:0;padding:16px}.resourcesources article+article{border-left:1px solid var(--line-soft)}.resourcesourcetitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.resourcesourcetitle span{font-size:var(--fs-xs)}.resourcesources .online{color:var(--success)}.resourcesources .offline{color:var(--drop)}.resourcesources strong{margin-top:10px;font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcesources small,.resourcecache small{color:var(--muted)}/* 这里是一排读数,不是又一个盒子。原先它自带填色和分格线,和下面的操作条同色,
++.resourcesyncbox,.resourcepanel{overflow:clip;border:1px solid var(--field-ring);border-radius:var(--floating-radius);background:var(--ground)}.resourcesyncbody{padding:20px}.resourcesyncbody p{max-width:760px;margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.resourcesyncfooter,.resourceapplyrow{box-sizing:border-box;min-height:var(--fieldset-bar-h);display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 12px 12px 20px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}.resourcesyncfooter p,.resourceapplyrow>p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.5}.resourceaction{box-sizing:border-box;height:36px;padding:0 12px;border:0;border-radius:var(--control-radius);background:var(--ground);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;font:inherit;font-size:var(--fs-sm);font-weight:500;cursor:pointer;transition:background-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 8%,var(--ground));color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{background:var(--sunk);color:var(--muted);cursor:default}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#resourceSyncResult:empty{display:none}.resourcescanning{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);color:var(--muted)}.resourcesources{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.resourcesources article{display:grid;gap:4px;min-width:0;padding:16px}.resourcesources article+article{border-left:1px solid var(--line-soft)}.resourcesourcetitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.resourcesourcetitle span{font-size:var(--fs-xs)}.resourcesources .online{color:var(--success)}.resourcesources .offline{color:var(--drop)}.resourcesources strong{margin-top:10px;font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcesources small,.resourcecache small{color:var(--muted)}/* 这里是一排读数,不是又一个盒子。原先它自带填色和分格线,和下面的操作条同色,
两条带子连在一起看不出边界;框里再套框也是多余的一层。 */
-.resourcecache{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 32px;border-top:1px solid var(--line-soft);padding:16px 20px}.resourcecache>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 16px}.resourcecache b{font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcecache span{font-weight:600}.resourcecache small{grid-column:1/-1}.resourceapplyrow .resourcesyncok{color:var(--success)}.resourcedanger{color:var(--drop)}.resourcedanger:hover:not(:disabled){background:var(--drop);border-color:var(--drop);color:#fff}.resourcesyncok{margin:0;color:var(--success)}
+.resourcecache{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 32px;border-top:1px solid var(--line-soft);padding:16px 20px}.resourcecache>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 16px}.resourcecache b{font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcecache span{font-weight:600}.resourcecache small{grid-column:1/-1}.resourceapplyrow .resourcesyncok{color:var(--success)}.resourcesyncok{margin:0;color:var(--success)}
.tagbar,.count,.entitytagbar,.entitycollectionhead{transition:background-color .16s ease,border-color .16s ease}
/* 吸顶那条是底色的半透明版,配方跟着 --ground 走:写死深色底会在浅色主题下
变成一条黑带压在白底内容上。 */
diff --cc web/css/22-followmanage.css
index e7a1c9c10,a3c244144..84fc492fc
--- a/web/css/22-followmanage.css
+++ b/web/css/22-followmanage.css
@@@ -24,9 -24,9 +24,9 @@@
/* 重复页的「操作」条独立于 .fsec 容器:自带卡面与边框,不用负边距。 */
.dupactions.fsechead{margin:0 0 14px;padding:10px 14px;background:var(--overlay-5);
border:1px solid var(--field-ring);border-radius:var(--surface-radius)}
-.dupactions.fsechead button{min-height:32px;padding:0 12px;border:1px solid var(--line-soft);
+.dupactions.fsechead button{min-height:32px;padding:0 12px;border:0;
border-radius:var(--control-radius);background:var(--ground);color:var(--ink-2);cursor:pointer;font-size:var(--fs-sm)}
- .dupactions.fsechead button:hover{background:var(--surface);color:var(--ink)}
+ .dupactions.fsechead button:hover{background:color-mix(in srgb,var(--ink) 8%,var(--ground));color:var(--ink)}
.fsechead h3{margin:0;font-size:var(--fs-md);font-weight:600;letter-spacing:.01em}
/* 说明文字是这一行里唯一可以缩的东西:标题、排序框和动作键都要完整读出来。
基准取 0 而不是 auto:这一行允许换行,按内容宽度参与排线的话它会先把整行挤断,
@@@ -130,19 -130,13 +130,19 @@@
.fcstate.none,.fcstate.blocked{color:var(--muted)}
.fbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;
- box-sizing:border-box;padding:0 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);
+ box-sizing:border-box;padding:0 12px;border:0;border-radius:var(--control-radius);
background:var(--ground);color:var(--ink);font-size:var(--fs-md);font-weight:500;font-family:inherit;cursor:pointer;
- white-space:nowrap;transition:border-color .15s ease-in-out,color .15s ease-in-out,background-color .15s ease-in-out}
+ white-space:nowrap;transition:color .15s ease-in-out,background-color .15s ease-in-out}
- .fbtn:hover:not(:disabled){background:var(--surface)}
+ .fbtn:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 8%,var(--ground))}
-.fbtn:disabled{background:var(--sunk);border-color:var(--line-soft);color:var(--muted);cursor:default}
-.fbtn.primary{background:var(--ink);border-color:var(--ink);color:var(--ground);font-weight:500}
+.fbtn:disabled{background:var(--sunk);color:var(--muted);cursor:default}
+.fbtn.primary{background:var(--ink);color:var(--ground);font-weight:500}
.fbtn.primary:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 88%,var(--ground));border-color:color-mix(in srgb,var(--ink) 88%,var(--ground));color:var(--ground)}
+/* 去边框那一条只针对动作按钮。这两枚不是动作:一枚点开是来源筛选菜单,一枚是排序
+ 方向的开关,它们跟旁边的下拉触发器是同一组控件,共用输入框那圈线。少了线,
+ 「全部来源」在白面上只剩一行字,升降序那枚只剩一个箭头浮在页面上。 */
+.fbtn[data-srcfilter-toggle],.fbtn.fmanagedir{border:1px solid var(--field-ring);background:var(--ground);color:var(--ink-2)}
+.fbtn[data-srcfilter-toggle]:hover:not(:disabled),.fbtn.fmanagedir:hover:not(:disabled){border-color:var(--field-ring-hover);background:var(--ground)}
+.fbtn[data-srcfilter-toggle][aria-expanded="true"]{border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)}
.fbtn.small{height:26px;padding:0 10px;font-size:var(--fs-sm)}
.fbtn.fquiet{border-color:transparent;color:var(--muted)}
.fbtn.fquiet:hover{background:var(--drop);border-color:var(--drop);color:#fff}
diff --cc web/css/23-configuration.css
index d95d1615c,fadf8353a..d0325dbfa
--- a/web/css/23-configuration.css
+++ b/web/css/23-configuration.css
@@@ -40,9 -40,10 +40,9 @@@
.configpage .geist-input[aria-invalid="true"]{border-color:var(--drop)}
.configpage .geist-input[aria-invalid="true"]:focus{box-shadow:0 0 0 4px color-mix(in srgb,var(--drop) 24%,transparent)}
.confighelp{margin:8px 0 0;color:var(--muted);font-size:var(--fs-sm);line-height:1.5}
- .cloudguide{min-width:0}.cloudguide details{margin-top:16px}.cloudguide summary{cursor:pointer;font-size:var(--fs-sm);min-height:var(--control-h);display:flex;align-items:center;gap:8px}.cloudguide summary:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.cloudguide-profiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:16px}.cloudguide-profiles section{min-width:0}.cloudguide h4{font-size:var(--fs-sm);font-weight:600;margin:0 0 12px}.cloudguide dl{margin:0;font-size:var(--fs-sm);line-height:1.5}.cloudguide dt{color:var(--muted);margin-top:8px}.cloudguide dd{margin:0;font-variant-numeric:tabular-nums}.cloudguide-notes{padding-left:20px;font-size:var(--fs-sm);line-height:1.6;color:var(--muted)}.cloudguide-notes li+li{margin-top:8px}@media(max-width:640px){.cloudguide-profiles{grid-template-columns:1fr}.cloudguide-profiles section+section{border-top:1px solid var(--line-soft);padding-top:16px}.cloudguide summary{min-height:44px}}
+ .cloudguide{min-width:0}.cloudguide details{margin-top:16px}.cloudguide summary{cursor:pointer;font-size:var(--fs-sm);min-height:var(--control-h);display:flex;align-items:center;gap:8px}.cloudguide summary:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.cloudguide-tablewrap{margin-top:16px;overflow-x:auto;overscroll-behavior-x:contain}.cloudguide-table{width:100%;min-width:520px;border-collapse:collapse;font-size:var(--fs-sm)}.cloudguide-table th,.cloudguide-table td{padding:10px 12px;border-bottom:1px solid var(--line-soft);text-align:right;font-weight:400;line-height:1.5}.cloudguide-table thead th{height:36px;padding-top:0;padding-bottom:0;color:var(--muted);font-size:var(--fs-xs)}.cloudguide-table th:first-child,.cloudguide-table td:first-child{text-align:left}.cloudguide-table tbody th{font-weight:600}.cloudguide-table tbody td{font-variant-numeric:tabular-nums;white-space:nowrap}.cloudguide-table tbody tr:last-child>*{border-bottom:0}.cloudguide-notes{padding-left:20px;font-size:var(--fs-sm);line-height:1.6;color:var(--muted)}.cloudguide-notes li+li{margin-top:8px}@media(max-width:640px){.cloudguide summary{min-height:44px}}
.confighelp a{color:var(--tungsten);text-decoration:none;margin-inline-start:6px}
.confighelp a:hover{text-decoration:underline;text-underline-offset:3px}
-.confighelp a svg{display:inline-block;width:14px;height:14px;margin-inline-start:4px;vertical-align:-2px;stroke:currentColor;fill:none;stroke-width:2}
.configbad{margin:8px 0 0;color:var(--drop);font-size:var(--fs-sm)}
/* 一行一个文件夹:输入框、选择文件夹、移除,三者共用 --control-h,差 3px 就不是一行了。
flex 而不是 grid:只剩一行时移除键不画,grid 的空轨道会留下一段 gap。 */
diff --cc web/dist/peach-ui.js
index b592b409e,b29b4b7d9..9d17729b6
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@@ -960,10 -955,10 +960,10 @@@ function ot({ startup: e, receipt: t }
change: r
}), /* @__PURE__ */ J("div", {
class: "configoption",
- children: [/* @__PURE__ */ J(it, {
+ children: [/* @__PURE__ */ J(at, {
label: "静默启动",
checked: i,
- disabled: !e.available,
+ disabled: !e.available || !n,
change: a
}), /* @__PURE__ */ J("p", {
class: "confighelp",
@@@ -1072,33 -1067,30 +1072,30 @@@ function ct({ uninstall: e })
}
//#endregion
//#region src/islands/clouddrive-guide.tsx
-var ct = [
+var lt = [
{
- name: "机械硬盘或内存不超过 8 GB",
+ name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
read: "256 / 128 KB",
- task: "同时处理 1 个视频",
- advice: "缓存优先放内置 SSD。只有机械硬盘时,先用按需读取;反复观看同一批文件才开启文件夹缓存。"
+ task: "1 个"
},
{
- name: "SATA SSD,8–16 GB 内存",
+ name: "SATA SSD,内存 8–16 GB",
cache: "20–50 GiB",
read: "256 / 128 KB",
- task: "同时处理 1–2 个视频",
- advice: "扫描、抽帧用小读块。观看高码率视频若仍缓冲,再试 512 / 256 KB。"
+ task: "1–2 个"
},
{
- name: "NVMe SSD,16 GB 以上内存",
+ name: "NVMe SSD,内存 16 GB 以上",
cache: "50–100 GiB",
read: "256 / 128 KB",
- task: "同时处理 2 个视频起步",
- advice: "以扫描和拖动播放为主时保留小读块。连续看高码率视频可试 512 / 256 KB,速度不升就调回。"
+ task: "2 个起步"
}
];
-function lt() {
+function ut() {
let e = q(null);
return K(() => {
- e.current && v(e.current, "details", "clouddrive-guide");
+ e.current && y(e.current, "details", "clouddrive-guide");
}, []), /* @__PURE__ */ J("div", {
ref: e,
class: "cloudguide",
@@@ -1120,28 -1110,39 +1117,39 @@@
/* @__PURE__ */ J("summary", { children: "CloudDrive 速度与缓存建议" }),
/* @__PURE__ */ J("p", {
class: "confighelp",
- children: "按缓存所在的硬盘选起步配置。优先保证播放流畅,再用同一视频比较冷启动、拖动和流量;参数越大不一定越快。"
+ children: "看缓存放在哪块硬盘上,照那一行填。先保证播放不卡,再拿同一个视频比较打开速度、拖动和流量;数值填得越大不一定越快。"
}),
/* @__PURE__ */ J("div", {
- class: "cloudguide-profiles",
- children: lt.map((e) => /* @__PURE__ */ J("section", {
- "aria-label": e.name,
- children: [
- /* @__PURE__ */ J("h4", { children: e.name }),
- /* @__PURE__ */ J("dl", { children: [
- /* @__PURE__ */ J("dt", { children: "磁盘缓存上限" }),
- /* @__PURE__ */ J("dd", { children: e.cache }),
- /* @__PURE__ */ J("dt", { children: "默认 / 最小读取长度" }),
- /* @__PURE__ */ J("dd", { children: e.read }),
- /* @__PURE__ */ J("dt", { children: "Peach 并行任务" }),
- /* @__PURE__ */ J("dd", { children: e.task })
- ] }),
- /* @__PURE__ */ J("p", {
- class: "confighelp",
- children: e.advice
+ class: "cloudguide-tablewrap",
+ children: /* @__PURE__ */ J("table", {
+ class: "cloudguide-table",
+ children: [/* @__PURE__ */ J("thead", { children: /* @__PURE__ */ J("tr", { children: [
+ /* @__PURE__ */ J("th", {
+ scope: "col",
+ children: "缓存所在硬盘"
+ }),
+ /* @__PURE__ */ J("th", {
+ scope: "col",
+ children: "缓存上限"
+ }),
+ /* @__PURE__ */ J("th", {
+ scope: "col",
+ children: "读取长度(默认 / 最小)"
+ }),
+ /* @__PURE__ */ J("th", {
+ scope: "col",
+ children: "同时处理视频"
})
- ]
- }, e.name))
- ] }) }), /* @__PURE__ */ J("tbody", { children: ct.map((e) => /* @__PURE__ */ J("tr", { children: [
++ ] }) }), /* @__PURE__ */ J("tbody", { children: lt.map((e) => /* @__PURE__ */ J("tr", { children: [
+ /* @__PURE__ */ J("th", {
+ scope: "row",
+ children: e.name
+ }),
+ /* @__PURE__ */ J("td", { children: e.cache }),
+ /* @__PURE__ */ J("td", { children: e.read }),
+ /* @__PURE__ */ J("td", { children: e.task })
+ ] }, e.name)) })]
+ })
}),
/* @__PURE__ */ J("ul", {
class: "cloudguide-notes",
@@@ -1155,8 -1158,7 +1165,8 @@@
}),
/* @__PURE__ */ J("p", {
class: "confighelp",
- children: ["上表容量和并发是起步建议,按实际占盘与播放结果调整。直链和代理是不同设置;连接慢时分别比较,不能只看开关是否开启。", /* @__PURE__ */ J("a", {
+ children: ["表里的容量和并发是起步值,按实际占盘和播放效果再调。直链和代理是两个开关,连接慢时分别试一次比较,不能只看开关有没有打开。", /* @__PURE__ */ J("a", {
+ class: "externallink",
href: "https://www.clouddrive2.com/features.html",
target: "_blank",
rel: "noreferrer",