Peach: Local-first video metadata scraper and media manager.
style(web): 外链标全站统一成 Vercel 那一枚
longmeidao1b4ac8fbccb1
diff --git a/docs/reference-snapshots/vercel-geist-external-link-mark.md b/docs/reference-snapshots/vercel-geist-external-link-mark.mdnew file mode 100644index 000000000..92f5aee38--- /dev/null+++ b/docs/reference-snapshots/vercel-geist-external-link-mark.md@@ -0,0 +1,58 @@+# Geist 外链标实测++- 取证日期:2026-09-06+- URL:<https://vercel.com/geist/colors>+- 取证方式:内置浏览器打开该页,对页内 `Learn More` 链接读 `getComputedStyle` 与+ `getBoundingClientRect`,并遍历全页 `a > svg` 统计同族图标的尺寸与色值。+- **不在 `docs/reference-sources.json` 里登记**:这是 React 渲染的规格页,正文随发布变化、+ 没有可锁定的文件哈希。要复核就按上面的 URL 重抓一次。同 `vercel-geist-button-icons.md`。++## 量到的值++`Learn More` 是页脚那条离站链接(`href="https://vercel.com/"`),标在文字后面。++| 项 | 实测值 |+| --- | --- |+| 图标盒 | 16×16 px |+| 图标 viewBox | `0 0 16 16` |+| 图标绘制方式 | 单条 `path`,`fill="currentColor"`、`fill-rule="evenodd"`,**无描边** |+| 图标色 | `rgb(0, 104, 214)`,等于链接自己的 `color`(即 currentColor) |+| 文字 | 14px / 20px / 400 |+| 文字与图标间距 | 2 px(文字右边缘到图标左边缘实测 2.0) |+| 垂直关系 | 图标中心与文字中心相差 0.5 px,即与文字行居中对齐 |+| 链接容器 | `display:flex; align-items:center; gap:2px; text-decoration:none` |++同页其它同族图标(面包屑箭头、上一页/下一页、章节锚点)一律 `viewBox="0 0 16 16"`+加 `fill="currentColor"`,尺寸随所在位置 12~20 px 变化。也就是 Geist 图标是**实心字形**,+不是描边字形;尺寸不是全站一个常数,而是相对所在文字抬一档(16 / 14 ≈ 1.15)。++## 字形本身++字形是「一个缺了右上角的方框 + 一支从框心指向右上、带角括号箭头头」的构造。Peach 现有的+`#i-external-link` 是同一种构造(Lucide 一族的描边版),所以本轮**没有把 Vercel 的 path 数据+复制进仓库**:那是他们的资产,本仓库的依赖策略也要求登记归属。改的是可测量的呈现——尺寸、+粗细、间距、对齐、取色,字形沿用仓库里已有的那一枚。++描边粗细按等效视觉重量换算:Geist 的实心笔画约 1.5 / 16 单位;Peach 的 symbol 是 24 视框,+`stroke-width:2.25` 在 16 px 显示尺寸下正好落回 1.5 px。++## Peach 对应++改前八处各调一档,并排看就是同一枚标大小不一:++| 位置 | 改前尺寸 | 改前间距 | 改前对齐 |+| --- | --- | --- | --- |+| 死链表地址 | 13 px | 6 px | flex 居中 |+| 来源行站名 | 13 px | 5 px | flex 居中 |+| 凭据「去取」 | 13 px | 4 px | flex 居中 |+| 搜索直达 | 12 px | 5 px | flex 居中 |+| 关注资源链 | 未设 | 7 px | flex 居中 |+| 来源页链(纯图标) | 16 px | — | flex 居中 |+| 刮削登录页 | 14 px | 6 px | flex 居中 |+| 设置页说明、历史导入指南 | 14 px | 4 px | `vertical-align:-2px` |++改后全站两条规则:`.externallink` 负责「链接自己是一条 inline-flex、gap 2px」,+`.externalmark` 负责「1.15em 见方、跟文字居中、吃 currentColor、粗细 2.25」。++Peach 主动保留的差异:字形是描边版而不是实心版(理由见上);`.followorigin` 那一处是纯图标+链接,没有文字可跟,只吃尺寸和取色这两条。diff --git a/frontend/src/islands/configuration.tsx b/frontend/src/islands/configuration.tsxindex f1a7bfc02..ad485ded1 100644--- a/frontend/src/islands/configuration.tsx+++ b/frontend/src/islands/configuration.tsx@@ -94,7 +94,7 @@ function Facts({ facts }: { facts: ConfigurationFact[] }) {{facts.map((fact) => (<><dt>{fact.term}</dt>- <dd>{fact.value}{fact.download_url ? <span class="confighelp"> <a href={fact.download_url} target="_blank" rel="noreferrer">{fact.download_label}<svg aria-hidden="true" viewBox="0 0 24 24"><use href="#i-external-link" /></svg></a></span> : null}</dd>+ <dd>{fact.value}{fact.download_url ? <span class="confighelp"> <a class="externallink" href={fact.download_url} target="_blank" rel="noreferrer">{fact.download_label}<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a></span> : null}</dd></>))}</dl>@@ -303,8 +303,8 @@ function ConfigurationForm({ data, receipt }: { data: ConfigurationData; receipt))}</div><button type="button" class="geist-button configadd" onClick={add}>添加文件夹</button>- {kinds.some((kind) => kind === '115' || kind === 'pikpak') ? <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> : null}- {kinds.some((kind) => kind === '115' || kind === 'pikpak') ? data.mount_dependencies?.filter((dependency) => !dependency.available).map((dependency) => <p class="confighelp">未检测到 {dependency.name}。<a href={dependency.download_url} target="_blank" rel="noreferrer">下载 {dependency.name}<svg aria-hidden="true" viewBox="0 0 24 24"><use href="#i-external-link" /></svg></a></p>) : null}+ {kinds.some((kind) => kind === '115' || kind === 'pikpak') ? <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> : null}+ {kinds.some((kind) => kind === '115' || kind === 'pikpak') ? data.mount_dependencies?.filter((dependency) => !dependency.available).map((dependency) => <p class="confighelp">未检测到 {dependency.name}。<a class="externallink" href={dependency.download_url} target="_blank" rel="noreferrer">下载 {dependency.name}<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a></p>) : null}{data.windows === false ? <p class="confighelp">本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\ 对应本机挂载文件夹。</p> : null}</div>{data.port_editable !== false ? <div class="configfield">diff --git a/frontend/src/islands/release-updates.tsx b/frontend/src/islands/release-updates.tsxindex 9ea5bbed6..cc836c215 100644--- a/frontend/src/islands/release-updates.tsx+++ b/frontend/src/islands/release-updates.tsx@@ -103,7 +103,7 @@ export function ReleaseUpdates({ initial, initialJob }: { initial: ReleaseState;</div> : null}</div><div class="geist-fieldset-footer" data-geist-fieldset-footer>- <a class="geist-button" href={data.release_url} target="_blank" rel="noreferrer">查看发布页<svg aria-hidden="true" viewBox="0 0 24 24"><use href="#i-external-link" /></svg></a>+ <a class="geist-button externallink" href={data.release_url} target="_blank" rel="noreferrer">查看发布页<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a>{job.state === 'ready' ? <button type="button" class="geist-button primary" onClick={() => { void confirmModal({title:'更新已准备好',body:`Peach ${job.version || ''} 将在重启后安装。`,confirmLabel:'立即重启',cancelLabel:'稍后',onConfirm:restart}); }}>重启安装</button> : null}{data.state === 'available' && data.installation === '独立测试包' && job.state !== 'ready' ? <button ref={downloadButton} type="button" class="geist-button primary" onClick={(event) => download(event.currentTarget)}>下载并安装</button> : null}<button type="button" class="geist-button" disabled={active.has(job.state)} onClick={(event) => check(event.currentTarget)}>检查更新</button>diff --git a/frontend/src/islands/scraping.tsx b/frontend/src/islands/scraping.tsxindex 13b1d652a..537a98caf 100644--- a/frontend/src/islands/scraping.tsx+++ b/frontend/src/islands/scraping.tsx@@ -80,11 +80,11 @@ function SourceForm({ source, toast }: { source: Source } & ScrapingProps) {`vercel-geist-button-icons.md` 的「加图标」那一侧,中间的地址不重复说这两件事。图标直接取对方站点的 `/favicon.ico`:这一页配置的就是与这些站的连接,浏览器本来就要连它们,不必绕服务端。取不到时把 `<img>` 摘掉,不留破图。 */}- <a class="scraping-url" href={source.login} target="_blank" rel="noopener noreferrer">+ <a class="scraping-url externallink" href={source.login} target="_blank" rel="noopener noreferrer"><img src={faviconUrl(source.login)} alt="" width="16" height="16" loading="lazy"onError={event => event.currentTarget.remove()} /><span>{source.login}</span>- <svg aria-hidden="true"><use href="#i-external-link" /></svg>+ <svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a></div><div class="scraping-label">连接方式<NetworkSelect value={network} onChange={setNetwork} /></div>diff --git a/frontend/src/management.ts b/frontend/src/management.tsindex 014f927c2..a9709aca6 100644--- a/frontend/src/management.ts+++ b/frontend/src/management.ts@@ -33,14 +33,14 @@ export function cleanupSkeletonHtml(): string {/** 使用口味页现有读取/导入按钮,展开指南本身不发起读取。 */export function tasteHistoryGuideHtml(onboarding: boolean, completed = false, skipped = false): string {if (completed || skipped) return '';- const external = '<svg aria-hidden="true"><use href="#i-external-link"></use></svg>';+ const external = '<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link"></use></svg>';return `<details class="taste-history-guide"${onboarding ? ' open' : ''}><summary>浏览器历史记录导入指南</summary><div class="taste-history-guide-content"><p>在运行 Peach 的电脑上使用浏览器:点击上方「读取 Peach 主机」。</p><p>记录在其他设备上:导出文件后,点击上方「导入历史」。多台设备的文件分别导入。</p>- <ul><li>Chrome:在 <a href="https://takeout.google.com/" target="_blank" rel="noreferrer">Google Takeout${external}</a> 选择 Chrome 历史记录,下载 ZIP 后直接导入。</li>- <li>其他浏览器:使用 <a href="https://github.com/purarue/browserexport" target="_blank" rel="noreferrer">browserexport${external}</a> 导出历史记录,再导入导出文件。</li></ul>+ <ul><li>Chrome:在 <a class="externallink" href="https://takeout.google.com/" target="_blank" rel="noreferrer">Google Takeout${external}</a> 选择 Chrome 历史记录,下载 ZIP 后直接导入。</li>+ <li>其他浏览器:使用 <a class="externallink" href="https://github.com/purarue/browserexport" target="_blank" rel="noreferrer">browserexport${external}</a> 导出历史记录,再导入导出文件。</li></ul><p>需要刷新时再次读取或导入;数据源可在页面底部移除。</p><button type="button" class="geist-button taste-guide-skip">跳过</button></div></details>`;diff --git a/frontend/src/review-evidence.ts b/frontend/src/review-evidence.tsindex c15a4c455..0946b399f 100644--- a/frontend/src/review-evidence.ts+++ b/frontend/src/review-evidence.ts@@ -16,7 +16,7 @@ export function identityEvidenceHtml(row: IdentityEvidence) {const profile = webUrl(row.profile_url), samples = (row.preview_assets || []).slice(0, 6);const count = Math.max(0, Number(row.video_count || row.videos || 0));return `<section class="reviewidentityevidence"><h5>候选身份:${esc(row.babepedia_name || '未标注')}</h5>- <div class="reviewevidenceactions">${profile ? `<a class="geist-button" href="${esc(profile)}" target="_blank" rel="noopener noreferrer">来源资料 ↗</a>` : ''}+ <div class="reviewevidenceactions">${profile ? `<a class="geist-button externallink" href="${esc(profile)}" 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="${esc(row.creator || '')}">查看全部 ${count.toLocaleString()} 部作品</button></div>${reviewImageHtml(row.preview_url)}<p>通过后记录身份判断。</p>diff --git a/tests/test_follow_web.py b/tests/test_follow_web.pyindex cfc811950..66acbef30 100644--- a/tests/test_follow_web.py+++ b/tests/test_follow_web.py@@ -1666,7 +1666,7 @@ class FollowWebSourceTests(unittest.TestCase):self.assertPageContains("followAuthorGroups(sources).map(followAuthorBlock).join('')")self.assertNotIn(".fsources>.fauthor{display:grid", self.page,"多栏单位是作者组,不能拆开作者下面的来源行")- self.assertPageContains('class="fsourcelink" href="${esc(source.url)}"')+ self.assertPageContains('class="fsourcelink externallink" href="${esc(source.url)}"')self.assertPageContains('title="打开原来源"')self.assertPageContains('rel="noreferrer noopener"')author = self.page[self.page.index(".fauthor{"):]@@ -2179,7 +2179,7 @@ class FollowWebSourceTests(unittest.TestCase):self.assertPageContains('data-follow-detail="${item.id}"')self.assertPageContains("route(`/follow/item/${item.id}`)")self.assertPageContains('class="sgrid followdetailgrid${collection||embeddedQueue?\' mixgrid\':\'\'}"')- self.assertPageContains('class="followorigin" href="${esc(item.url)}" target="_blank"')+ self.assertPageContains('class="followorigin externallink" href="${esc(item.url)}" target="_blank"')self.assertPageContains('title="打开来源页面" aria-label="打开来源页面"')self.assertNotIn('打开来源页面</a>', self.page)self.assertPageContains(".followdetailtitle{display:flex;gap:5px")@@ -2648,7 +2648,7 @@ class FollowWebSourceTests(unittest.TestCase):def test_follow_external_links_have_a_real_icon_and_no_underlines(self):self.assertPageContains('<symbol id="i-external-link"')- self.assertPageContains("icon('external-link')")+ self.assertPageContains("icon('external-link','externalmark')")self.assertPageContains(".followresources a:hover")self.assertPageContains("text-decoration:none")diff --git a/tests/test_web_ui.py b/tests/test_web_ui.pyindex 5d113c5fa..96c080c98 100644--- a/tests/test_web_ui.py+++ b/tests/test_web_ui.py@@ -1610,19 +1610,30 @@ class WebUiSourceTests(unittest.TestCase):self.assertPageLacks(".reviewcontent .geist-scroller-container:has(>.reviewempty)")def test_links_that_leave_peach_carry_the_external_mark(self):- """走出 Peach 的链接带一枚外链标,站内跳转不带。+ """走出 Peach 的链接带一枚外链标,站内跳转不带,长相全站只有一个。2026-09-06 实测 vercel.com 团队页:站内链接(PR 号、部署 ID、项目名)一律裸- 文字,只有离站的部署域名挂一枚 14×14 的 external-link。标记的是「这一跳会- 离开当前应用」,不是「这是个链接」——每个链接都挂就等于谁都没标。- """- island = (Path(__file__).resolve().parents[1]- / 'frontend/src/islands/release-updates.tsx').read_text(encoding='utf-8')- self.assertIn('查看发布页<svg aria-hidden="true" viewBox="0 0 24 24">'- '<use href="#i-external-link" /></svg>', island)- self.assertPageContains('.geist-button svg{width:14px;height:14px;flex:none;'- 'stroke:currentColor;fill:none;stroke-width:2}')+ 文字,只有离站的部署域名挂一枚 external-link。标记的是「这一跳会离开当前+ 应用」,不是「这是个链接」——每个链接都挂就等于谁都没标。+ 尺寸和间距按同日实测的 vercel.com/geist/colors 的 `Learn More`:14px/20px 文字+ 配 16×16 图标(16/14≈1.15em)、紧跟文字 2px、与文字行居中、吃链接自己的+ currentColor(docs/reference-snapshots/vercel-geist-external-link-mark.md)。+ 尺寸写成 em 而不是常数:它每次说的是同一件事,跟着所在文字走比例才不变。+ """+ css = stylesheet_source()self.assertPageContains('<symbol id="i-external-link"')+ self.assertPageContains(".externallink{display:inline-flex;align-items:center;"+ "gap:2px;min-width:0}")+ self.assertPageContains("svg.externalmark{width:1.15em;height:1.15em;flex:none;"+ "align-self:center;")+ self.assertPageContains("stroke:currentColor;fill:none;stroke-width:2.25;"+ "stroke-linecap:round;stroke-linejoin:round}")+ # 尺寸和间距不许再按页面分档:差的不是 1px,是同一个意思有八个长相。+ for stale in (".fsourcelink svg{", ".fcredget svg{", ".fpicksearch b svg{",+ ".linktable .linkurl svg{", ".followorigin svg{",+ ".scraping-fields .scraping-url svg{",+ ".taste-history-guide-content a svg{", ".confighelp a svg{"):+ self.assertNotIn(stale, css, f"{stale} 已由 .externalmark 接管")def test_the_x_mark_is_a_full_disc_that_takes_the_current_ink(self):"""圆盘吃 currentColor,字形从圆里挖掉,两个主题下分量一样重。@@ -3674,17 +3685,18 @@ class WebUiSourceTests(unittest.TestCase):processing = (Path(__file__).resolve().parents[1] / 'frontend/src/islands/library-processing.tsx').read_text(encoding='utf-8')self.assertIn('href="/scraping"', processing)self.assertPageContains('.scraping-fields .gselectfield{justify-content:space-between;padding-right:16px;')- # 来源链接是站外地址:站标加箭头,读者不点也知道这一跳会离开 Peach。- self.assertPageContains('.scraping-fields .scraping-url{display:inline-flex;align-items:center;gap:6px;')+ # 来源链接是站外地址:站标加外链标,读者不点也知道这一跳会离开 Peach。+ # 站标和地址之间那 4px 挂在站标身上,行内的 gap 只管地址与外链标之间的 2px。+ self.assertPageContains('.scraping-fields .scraping-url{display:inline-flex;align-items:center;gap:2px;')+ self.assertPageContains('.scraping-fields .scraping-url img{flex:none;margin-inline-end:4px;')# 悬停只升亮,不划线:这一行本身就在标题下方单占一行,划线会和上面的标题挤在一起。self.assertPageContains('.scraping-fields .scraping-url:hover{color:var(--ink);text-decoration:none}')- self.assertPageContains('.scraping-fields .scraping-url svg{flex:none;width:14px;height:14px;')self.assertPageContains('.scraping-fields .scraping-cover-form{display:flex;align-items:center;')source = (Path(__file__).resolve().parents[1] / 'frontend/src/islands/scraping.tsx').read_text(encoding='utf-8')self.assertIn('wireSelectField(root.firstElementChild!)', source)self.assertNotIn('<select', source)self.assertIn('提供 Cookie 的方式(二选一)', source)- self.assertIn('class="scraping-url" href={source.login}', source)+ self.assertIn('class="scraping-url externallink" href={source.login}', source)def test_data_management_subpages_carry_geist_breadcrumbs(self):"""数据管理五张卡进的是它的子页,得有回去的路和自己的名字。@@ -7175,14 +7187,34 @@ class WebUiSourceTests(unittest.TestCase):2026-09-06 实测 vercel.com 团队页:站内链接(PR 号、部署 ID、项目名)一律裸文字,离站的部署域名带一枚 external-link;列表行左端的 provider 标是身份标记,不是动作图标。所以带了站标或品牌标的那一类(实体页的社媒、来源行)算已经有标,不再叠一枚。+ 每一枚都走同一对类名,包括 `来源资料` 那一处:箭头字符说的是同一件事,+ 但它不是那枚标,全站没有第二种写法。"""- self.assertPageContains("<span data-middle-truncate>${esc(item.url)}</span>"- "${icon('external-link')}", "死链表那一格整格就是外部地址")+ self.assertPageContains('<a class="externallink" href="${esc(item.url)}"',+ "死链表那一格整格就是外部地址")# 中缩靠改写 textContent 实现,图标留在被省略的节点外面才不会被抹掉。+ self.assertPageContains("<span data-middle-truncate>${esc(item.url)}</span>"+ "${icon('external-link','externalmark')}")self.assertPageContains(".linktable .linkurl a{display:grid;""grid-template-columns:minmax(0,1fr) auto;")- self.assertPageContains("title=\"打开原来源\">${esc(source.label)}${icon('external-link')}")- self.assertPageContains("<b>${esc(search.label)}${icon('external-link')}</b>")+ self.assertPageContains("title=\"打开原来源\">${esc(source.label)}"+ "${icon('external-link','externalmark')}")+ self.assertPageContains('<b class="externallink">${esc(search.label)}'+ "${icon('external-link','externalmark')}</b>")+ # 一处漏掉类名就又变成八档里的第九档,所以按调用点数,不按人工清单。+ self.assertEqual(self.app_js.count("icon('external-link'"),+ self.app_js.count("icon('external-link','externalmark')"),+ "web/app.js 里每一枚外链标都带 externalmark")+ root = Path(__file__).resolve().parents[1]+ for name in ('islands/scraping.tsx', 'islands/configuration.tsx',+ 'islands/release-updates.tsx', 'management.ts',+ 'review-evidence.ts'):+ source = (root / 'frontend/src' / name).read_text(encoding='utf-8')+ self.assertEqual(source.count('#i-external-link'),+ source.count('class="externalmark" viewBox="0 0 24 24"'),+ f"{name} 里每一枚外链标都带 externalmark")+ self.assertNotIn('↗', (root / 'frontend/src/review-evidence.ts').read_text(+ encoding='utf-8'), "外链标只有图标一种写法")def test_action_keys_in_every_bar_are_flat_fills_not_outlines(self):"""动作键一律不描边,自己是一块与条子/卡面不同的面。diff --git a/web/app.js b/web/app.jsindex eba99234c..c57e656a7 100644--- a/web/app.js+++ b/web/app.js@@ -3044,7 +3044,7 @@ async function wireLinkManager(){const row=item=>`<tr><td>${esc(item.entity)}</td><td>${esc(KINDS[item.link_kind]||item.link_kind)}</td><td>${esc(item.label||'')}</td><td class="linknote">${esc(item.note)}</td>- <td class="linkurl"><a href="${esc(item.url)}" target="_blank" rel="noreferrer"><span data-middle-truncate>${esc(item.url)}</span>${icon('external-link')}</a></td></tr>`;+ <td class="linkurl"><a class="externallink" href="${esc(item.url)}" target="_blank" rel="noreferrer"><span data-middle-truncate>${esc(item.url)}</span>${icon('external-link','externalmark')}</a></td></tr>`;const table=(title,items,hint)=>items.length?`<div class="linkgroup"><h4>${esc(title)} <b>${items.length}</b></h4><p>${esc(hint)}</p><div class="linktablewrap"><table class="linktable"><thead><tr><th>实体</th><th>类型</th><th>标签</th><th>结果</th><th>地址</th></tr></thead><tbody>${items.map(row).join('')}</tbody></table></div></div>`:'';@@ -4147,7 +4147,7 @@ function followResourceLinks(item){const links=item.resource_urls||[];if(!links.length)return '';return `<div class="followresources">${links.map(url=>- `<a href="${esc(url)}" target="_blank" rel="noreferrer noopener">${esc(followResourceLabel(url))}${icon('external-link')}</a>`+ `<a class="externallink" href="${esc(url)}" target="_blank" rel="noreferrer noopener">${esc(followResourceLabel(url))}${icon('external-link','externalmark')}</a>`).join('')}</div>`;}@@ -4293,7 +4293,7 @@ async function openFollowDetail(id,push=true,mediaIndex=null,preserveReturn=fals<div class="vwrap followdetailmedia${selectedKind==='image'?' image':''}">${selectedKind==='video'?'<canvas class="ambientcanvas" width="32" height="18"></canvas>':''}<button class="closestage" id="closeStage" title="关闭" aria-label="关闭">${icon('x')}</button>${selectedKind==='video'?playerStatsOverlayHtml():''}${media}${imageControls}</div>${embeddedQueue?followEmbeddedQueueHtml(item,selectedMedia.index):(collection?followQueueHtml(collection,item.id):'')}<div class="side followdetailside"><div class="sidecontent">- <div class="followdetailtitle"><div class="stitle">${esc(item.title)}</div>${item.url?`<a class="followorigin" href="${esc(item.url)}" target="_blank" rel="noreferrer noopener" title="打开来源页面" aria-label="打开来源页面">${icon('external-link')}</a>`:''}</div>+ <div class="followdetailtitle"><div class="stitle">${esc(item.title)}</div>${item.url?`<a class="followorigin externallink" href="${esc(item.url)}" target="_blank" rel="noreferrer noopener" title="打开来源页面" aria-label="打开来源页面">${icon('external-link','externalmark')}</a>`:''}</div><div class="followdetailidentity"><span class="mav fsourceavatar">${followAuthorAvatar(authorSources)}</span><div><b>${esc(author)}</b>${postedBy?`<span>发布者 ${esc(postedBy)}</span>`:''}</div></div><div class="smeta mono"><span>${followWhen(item)}</span>${realDuration(item.duration)?`<span>${fmtDur(item.duration)}</span>`:''}${badges?`<span class="fbadges">${badges}</span>`:''}</div>@@ -4933,8 +4933,8 @@ function followSourceRow(source){<label class="fchannelcheck" title="${source.enabled?'参与检查更新':'暂停检查更新'}">${checkboxHtml(`data-follow-enabled="${source.id}" ${source.enabled?'checked':''}`+` aria-label="${source.enabled?'暂停':'启用'} ${esc(source.label)} 的更新检查"`)}</label>- <b><a class="fsourcelink" href="${esc(source.url)}" target="_blank"- rel="noreferrer noopener" title="打开原来源">${esc(source.label)}${icon('external-link')}</a></b>+ <b><a class="fsourcelink externallink" href="${esc(source.url)}" target="_blank"+ rel="noreferrer noopener" title="打开原来源">${esc(source.label)}${icon('external-link','externalmark')}</a></b><span class="fmeta fprovider" title="${esc(source.provider_label)}">${sourceIcon(source.provider)}<span>${esc(source.provider_label)}</span></span><span class="fmeta fchecked">${source.last_checked_at?localTimeHtml(source.last_checked_at):'未检查'}</span>@@ -5004,7 +5004,7 @@ function followCredentialRow(row){:row.fields.includes(name)?'已保存,留空表示不改':'未填写'}"></label>`).join('');const body=row.requirement==='none'?'':row.requirement==='blocked'?`<p>${esc(row.why)}</p>`- :`<p>${esc(row.why)}${row.where?` <a class="fcredget" href="${esc(row.where)}" target="_blank" rel="noreferrer noopener">去取${icon('external-link')}</a>`:''}</p>+ :`<p>${esc(row.why)}${row.where?` <a class="fcredget externallink" href="${esc(row.where)}" target="_blank" rel="noreferrer noopener">去取${icon('external-link','externalmark')}</a>`:''}</p>${row.howto?`<p>${esc(row.howto)}</p>`:''}<form class="fcredform" data-cred-form="${esc(row.provider)}">${fields}<div class="fcredactions"><button type="submit">保存</button>@@ -5474,7 +5474,7 @@ function renderFollowPicks(results){<i>${esc(c.known?'已经关注':c.evidence)}</i></span></label>`).join('');const searches=(row.external_searches||[]).map(search=>`<a class="fpicksearch" href="${esc(search.url)}" target="_blank" rel="noreferrer noopener">- <b>${esc(search.label)}${icon('external-link')}</b><span>${esc(search.query)}</span>+ <b class="externallink">${esc(search.label)}${icon('external-link','externalmark')}</b><span>${esc(search.query)}</span><i>${esc(search.evidence)}</i></a>`).join('');return `<div class="fpick"><b>${esc(row.line)}</b>${items||'<p class="fpickempty">站内没有查到来源</p>'}diff --git a/web/css/01-base.css b/web/css/01-base.cssindex 7a8fc21fd..83c602f4f 100644--- a/web/css/01-base.css+++ b/web/css/01-base.css@@ -196,9 +196,19 @@ button,a,input,textarea,select,summary{touch-action:manipulation}transition:background-color .15s ease-in-out,color .15s ease-in-out}.geist-button:hover:not(:disabled){background:var(--surface)}.geist-button,.geist-button:hover{text-decoration:none}-/* 按钮里唯一还挂图标的一类是走出 Peach 的链接:实测 Geist 的外链标是 14px,- 跟着文字的 currentColor 走,落在文字后面。 */+/* 按钮里唯一还挂图标的一类是走出 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);color:var(--muted);cursor:default}/* Vercel/Geist loading actions look unavailable and reject repeat activation,diff --git a/web/css/04-manage.css b/web/css/04-manage.cssindex 40f9fdf3f..4bfcbad06 100644--- a/web/css/04-manage.css+++ b/web/css/04-manage.css@@ -133,7 +133,6 @@.statsdashboard .emptystate{border:0;background:var(--ground)}.taste-history-guide-content a{color:var(--tungsten);text-decoration:none}.taste-history-guide-content a:hover{text-decoration:underline;text-underline-offset:3px}-.taste-history-guide-content a svg{width:14px;height:14px;margin-left:4px;vertical-align:-2px;fill:none;stroke:currentColor}.stats h2{margin:0 0 4px;font-size:var(--fs-2xl)}.stats .sub{color:var(--muted);margin:0}/* 采集来源表单复用管理页 Fieldset。 */@@ -149,10 +148,9 @@.scraping-fields .geist-fieldset-title{margin:0}.scraping-fields label,.scraping-label{display:grid;gap:8px;min-width:0}.scraping-fields input:not([type=radio]):not([type=file]){width:100%;min-width:0;min-height:var(--control-h);box-sizing:border-box}-.scraping-fields .scraping-url{display:inline-flex;align-items:center;gap:6px;align-self:start;min-width:0;text-decoration:none;color:var(--muted);overflow-wrap:anywhere;font-size:var(--fs-md)}+.scraping-fields .scraping-url{display:inline-flex;align-items:center;gap:2px;align-self:start;min-width:0;text-decoration:none;color:var(--muted);overflow-wrap:anywhere;font-size:var(--fs-md)}.scraping-fields .scraping-url:hover{color:var(--ink);text-decoration:none}-.scraping-fields .scraping-url img{flex:none;width:16px;height:16px;border-radius:var(--badge-radius);object-fit:contain}-.scraping-fields .scraping-url svg{flex:none;width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}+.scraping-fields .scraping-url img{flex:none;margin-inline-end:4px;width:16px;height:16px;border-radius:var(--badge-radius);object-fit:contain}.scraping-fields .scraping-url>span{min-width:0;overflow-wrap:anywhere}.scraping-network,.scraping-network .gselect{width:100%;min-width:0}.scraping-fields .gselectfield{justify-content:space-between;padding-right:16px;border-color:var(--field-ring)}diff --git a/web/css/21-online.css b/web/css/21-online.cssindex cb0c27835..489e23c01 100644--- a/web/css/21-online.css+++ b/web/css/21-online.css@@ -88,10 +88,10 @@.followdetailtags .tg:hover{border-color:color-mix(in srgb,var(--r34-tag) 68%,transparent);background:color-mix(in srgb,var(--r34-tag) 18%,transparent);color:var(--ink)}.followqueue .mixitempic>.fnothumb{position:static;width:100%;height:100%}-.fnote.followmediaissue{margin:18px 0 8px;color:var(--drop)}.followresources{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.followresources a{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 11px;border:1px solid var(--border-15);border-radius:var(--control-radius);color:var(--ink-2);text-decoration:none}.followresources a:hover{background:var(--hover);color:var(--ink);text-decoration:none}.followresources svg{width:15px;height:15px;stroke:currentColor;fill:none}.followdetailactions{margin-top:2px}+.fnote.followmediaissue{margin:18px 0 8px;color:var(--drop)}.followresources{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.followresources a{align-items:center;gap:2px;height:34px;padding:0 11px;border:1px solid var(--border-15);border-radius:var(--control-radius);color:var(--ink-2);text-decoration:none}.followresources a:hover{background:var(--hover);color:var(--ink);text-decoration:none}.followresources svg{width:15px;height:15px;stroke:currentColor;fill:none}.followdetailactions{margin-top:2px}/* 标签沉到侧栏最后:来源站的标签动辄几十个,夹在正文和操作之间就得先滚过整片标签云才够得着「已看/忽略」。 */-.followdetailside .followdetailtags{margin:16px 0 0}.followdetailactions button:disabled{opacity:.45;cursor:default}.followorigin{display:inline-flex;align-items:center;gap:7px;width:max-content;margin-top:auto;color:var(--muted);text-decoration:none}.followorigin svg{width:16px;height:16px;stroke:currentColor;fill:none}.followorigin:hover{color:var(--ink);text-decoration:none}+.followdetailside .followdetailtags{margin:16px 0 0}.followdetailactions button:disabled{opacity:.45;cursor:default}.followorigin{width:max-content;margin-top:auto;color:var(--muted);text-decoration:none}.followorigin:hover{color:var(--ink);text-decoration:none}@media (max-width:640px){.followhead{align-items:center}.followauthors{margin-right:-12px;padding-top:3px}.followfilters{margin-right:-12px;padding-right:12px}.followlist.followphotowall{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}diff --git a/web/css/22-followmanage.css b/web/css/22-followmanage.cssindex aeb946a4a..9e2e49212 100644--- a/web/css/22-followmanage.css+++ b/web/css/22-followmanage.css@@ -171,8 +171,7 @@.frowerr{flex:1 1 100%;margin:2px 0 0;font-size:var(--fs-sm);line-height:1.6;color:var(--drop)}.fsource.bad>b{color:var(--drop)}/* 旁边那格的站标说的是「哪个平台」,这一枚说的是「点下去会离开 Peach」。 */-.fsourcelink{display:inline-flex;align-items:baseline;gap:5px;min-width:0;color:inherit;text-decoration:none}-.fsourcelink svg{align-self:center;width:13px;height:13px;flex:none;stroke:currentColor;fill:none;stroke-width:2}+.fsourcelink{color:inherit;text-decoration:none}.fsourcelink:hover{text-decoration:none;color:var(--tungsten)}/* 作者分组。同一个人在几个站上是几条来源、一个人,所以头像和名字只出现一次,@@ -293,8 +292,6 @@ details.fcred{display:block;min-width:0}.fcredfield input:focus-visible{outline:2px solid var(--tungsten);outline-offset:1px;border-color:var(--tungsten)}/* 「去取」指向站外的凭据页,后缀那枚外链箭头说明这一下会离开 Peach。 */-.fcredget{display:inline-flex;align-items:baseline;gap:4px}-.fcredget svg{align-self:center;width:13px;height:13px;flex:none;stroke:currentColor;fill:none;stroke-width:2}.fcredactions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:0}.fcredactions button{height:32px;box-sizing:border-box;padding:0 14px;border-radius:var(--control-radius);border:0;background:var(--ink);color:var(--ground);font-size:var(--fs-md);font-weight:500;@@ -362,8 +359,6 @@ details.fcred{display:block;min-width:0}align-items:baseline;margin:6px 0;padding:8px 10px;border:1px dashed var(--border-15);border-radius:var(--control-radius);color:var(--ink-2);text-decoration:none;font-size:var(--fs-xs)}.fpicksearch:hover{border-color:color-mix(in srgb,var(--ink) 28%,transparent);color:var(--ink)}-.fpicksearch b{display:inline-flex;align-items:baseline;gap:5px}-.fpicksearch b svg{align-self:center;width:12px;height:12px;flex:none;stroke:currentColor;fill:none;stroke-width:2}.fpicksearch span{min-width:0;overflow-wrap:anywhere;color:var(--ink)}.fpicksearch i{grid-column:1/-1;font-style:normal;color:var(--muted)}.fpickfail{color:var(--drop)!important}@@ -415,7 +410,5 @@ details.fcred{display:block;min-width:0}.linktable .linkurl{max-width:360px;overflow:hidden}/* 中缩要量可用宽度,量不出行内元素的:地址自己占一个 minmax(0,1fr) 的格子,外链标固定宽度排在它后面。 */-.linktable .linkurl a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;- gap:6px;color:var(--muted);text-decoration:none}+.linktable .linkurl a{display:grid;grid-template-columns:minmax(0,1fr) auto;color:var(--muted)}.linktable .linkurl a:hover{color:var(--ink)}-.linktable .linkurl svg{width:13px;height:13px;flex:none;stroke:currentColor;fill:none;stroke-width:2}diff --git a/web/css/23-configuration.css b/web/css/23-configuration.cssindex dc211364d..1b4345951 100644--- a/web/css/23-configuration.css+++ b/web/css/23-configuration.css@@ -42,7 +42,6 @@.confighelp{margin:8px 0 0;color:var(--muted);font-size:var(--fs-sm);line-height:1.5}.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 --git a/web/dist/peach-ui.js b/web/dist/peach-ui.jsindex e76d69b00..28aa20ec7 100644--- a/web/dist/peach-ui.js+++ b/web/dist/peach-ui.js@@ -730,13 +730,14 @@ function et({ initial: e, initialJob: t }) {"data-geist-fieldset-footer": !0,children: [/* @__PURE__ */ J("a", {- class: "geist-button",+ class: "geist-button externallink",href: r.release_url,target: "_blank",rel: "noreferrer",children: ["查看发布页", /* @__PURE__ */ J("svg", {- "aria-hidden": "true",+ class: "externalmark",viewBox: "0 0 24 24",+ "aria-hidden": "true",children: /* @__PURE__ */ J("use", { href: "#i-external-link" })})]}),@@ -1064,12 +1065,14 @@ function ft({ facts: e }) {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",children: [" ", /* @__PURE__ */ J("a", {+ class: "externallink",href: e.download_url,target: "_blank",rel: "noreferrer",children: [e.download_label, /* @__PURE__ */ J("svg", {- "aria-hidden": "true",+ class: "externalmark",viewBox: "0 0 24 24",+ "aria-hidden": "true",children: /* @__PURE__ */ J("use", { href: "#i-external-link" })})]})]@@ -1345,12 +1348,14 @@ function ht({ data: e, receipt: t }) {s.some((e) => e === "115" || e === "pikpak") ? /* @__PURE__ */ J("p", {class: "confighelp",children: ["先在 CloudDrive 登录网盘并完成挂载。", /* @__PURE__ */ J("a", {+ class: "externallink",href: "https://www.clouddrive2.com/help.html",target: "_blank",rel: "noreferrer",children: ["挂载帮助", /* @__PURE__ */ J("svg", {- "aria-hidden": "true",+ class: "externalmark",viewBox: "0 0 24 24",+ "aria-hidden": "true",children: /* @__PURE__ */ J("use", { href: "#i-external-link" })})]})]@@ -1362,6 +1367,7 @@ function ht({ data: e, receipt: t }) {e.name,"。",/* @__PURE__ */ J("a", {+ class: "externallink",href: e.download_url,target: "_blank",rel: "noreferrer",@@ -1369,8 +1375,9 @@ function ht({ data: e, receipt: t }) {"下载 ",e.name,/* @__PURE__ */ J("svg", {- "aria-hidden": "true",+ class: "externalmark",viewBox: "0 0 24 24",+ "aria-hidden": "true",children: /* @__PURE__ */ J("use", { href: "#i-external-link" })})]@@ -2111,7 +2118,7 @@ function fn({ source: e, toast: t }) {/* @__PURE__ */ J("div", {class: "geist-fieldset-heading",children: [/* @__PURE__ */ J("div", { dangerouslySetInnerHTML: { __html: i(`scraping-${e.source}`, e.label) } }), /* @__PURE__ */ J("a", {- class: "scraping-url",+ class: "scraping-url externallink",href: e.login,target: "_blank",rel: "noopener noreferrer",@@ -2126,6 +2133,8 @@ function fn({ source: e, toast: t }) {}),/* @__PURE__ */ J("span", { children: e.login }),/* @__PURE__ */ J("svg", {+ class: "externalmark",+ viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ J("use", { href: "#i-external-link" })})@@ -2438,7 +2447,7 @@ function bn(e = "") {function xn(e) {let t = yn(e.profile_url), n = (e.preview_assets || []).slice(0, 6), r = Math.max(0, Number(e.video_count || e.videos || 0));return `<section class="reviewidentityevidence"><h5>候选身份:${m(e.babepedia_name || "未标注")}</h5>- <div class="reviewevidenceactions">${t ? `<a class="geist-button" href="${m(t)}" target="_blank" rel="noopener noreferrer">来源资料 ↗</a>` : ""}+ <div class="reviewevidenceactions">${t ? `<a class="geist-button externallink" href="${m(t)}" 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="${m(e.creator || "")}">查看全部 ${r.toLocaleString()} 部作品</button></div>${bn(e.preview_url)}<p>通过后记录身份判断。</p>@@ -2889,14 +2898,14 @@ function Hn() {}function Un(e, t = !1, n = !1) {if (t || n) return "";- let r = "<svg aria-hidden=\"true\"><use href=\"#i-external-link\"></use></svg>";+ 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" : ""}><summary>浏览器历史记录导入指南</summary><div class="taste-history-guide-content"><p>在运行 Peach 的电脑上使用浏览器:点击上方「读取 Peach 主机」。</p><p>记录在其他设备上:导出文件后,点击上方「导入历史」。多台设备的文件分别导入。</p>- <ul><li>Chrome:在 <a href="https://takeout.google.com/" target="_blank" rel="noreferrer">Google Takeout${r}</a> 选择 Chrome 历史记录,下载 ZIP 后直接导入。</li>- <li>其他浏览器:使用 <a href="https://github.com/purarue/browserexport" target="_blank" rel="noreferrer">browserexport${r}</a> 导出历史记录,再导入导出文件。</li></ul>+ <ul><li>Chrome:在 <a class="externallink" href="https://takeout.google.com/" target="_blank" rel="noreferrer">Google Takeout${r}</a> 选择 Chrome 历史记录,下载 ZIP 后直接导入。</li>+ <li>其他浏览器:使用 <a class="externallink" href="https://github.com/purarue/browserexport" target="_blank" rel="noreferrer">browserexport${r}</a> 导出历史记录,再导入导出文件。</li></ul><p>需要刷新时再次读取或导入;数据源可在页面底部移除。</p><button type="button" class="geist-button taste-guide-skip">跳过</button></div></details>`;