Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 字母表与播放列表换成 Phosphor 填充字形

longmeidao45cf52a9746a
diff --git a/docs/REUSE.md b/docs/REUSE.md
index b04fc240c..6b4d71f8a 100644
--- a/docs/REUSE.md
+++ b/docs/REUSE.md
@@ -62,7 +62,7 @@
| 分卷文件命名 | [Plex 官方命名](https://support.plex.tv/articles/naming-and-organizing-your-movie-media-files/)的 `cd/disc/disk/dvd/part/pt + 数字` 与 [Kodi 官方 File Stacking](https://kodi.wiki/view/File_stacking)只作行为证据;运行时复用当前树的 `part_marker`,不新增扫描器依赖 | 兼容馆藏已有的裸数字和 A–H 后缀;仅连续、唯一标记自动合卡,保留每个 asset 和播放会话,不拼接或改写媒体 |
| 照片灯箱轮播 | Swiper 14.2.0(MIT,本地固定版本,按需加载 CSS/JS)的 Thumbs / Keyboard / Zoom 模块 | 构造轮播前必须同时等到样式与脚本就绪,并保留 scoped 的单 slide 结构样式防止首载竞态重叠;Swiper 管轮播、键盘、缩放变换与缩略图,Peach 管图集来源与顺序、当前缩略图居中、相对原图百分比、适应窗口/原大小语义、缩略图缓存与计费口径。瀑布流本身继续用 CSS `column-count`,不经过 Swiper。 |
| 导航排序 | 浏览器原生 HTML Drag and Drop | 桌面鼠标直接拖动、落点提示、上下移动按钮作为键盘与触屏回退、`localStorage` 持久化;不为单列排序引入额外运行时依赖 |
-| 图标 | 固定版本的本地 Lucide 子集;Health Icons 24 px outline(CC0)用于领域图标 | 标签、状态和交互设计 |
+| 图标 | 固定版本的本地 Lucide 子集;Health Icons 24 px outline(CC0)用于领域图标;Phosphor regular 填充字形(MIT)只用在描边说不清的地方(字母表 Aa、播放列表) | 标签、状态和交互设计 |
| 资源文本中间省略 | Vercel Geist `MiddleTruncate` 行为契约 + 浏览器原生 `ResizeObserver`、`Intl.Segmenter`、Canvas 测量 | 文件名、路径、URL、ID 等资源标识用 `data-middle-truncate`;标题、说明、人名、标签等语义文本保留末尾省略;页面源测试登记全部末尾省略选择器,新增截断未先分类会失败 |
| 定时轮询 | APScheduler 3.11.3(MIT,固定稳定版;3.x `BackgroundScheduler` / interval trigger) | 只在 ledger writer 启动、持久频率、首次延迟、单实例、手动/自动互斥、运行状态与来源错误汇总 |
| 本地文件事件 | watchdog + 定期对账 | 媒体身份和漏报修复 |
diff --git a/package-lock.json b/package-lock.json
index 4366ba6f1..cd75949db 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -6,6 +6,7 @@
"": {
"name": "peach-web-vendor",
"devDependencies": {
+ "@phosphor-icons/core": "^2.1.1",
"healthicons": "2.0.0",
"lucide-static": "1.37.0",
"swiper": "14.2.0",
@@ -25,6 +26,13 @@
"node": ">=6.9.0"
}
},
+ "node_modules/@phosphor-icons/core": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/@phosphor-icons/core/-/core-2.1.1.tgz",
+ "integrity": "sha512-v4ARvrip4qBCImOE5rmPUylOEK4iiED9ZyKjcvzuezqMaiRASCHKcRIuvvxL/twvLpkfnEODCOJp5dM4eZilxQ==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@videojs/http-streaming": {
"version": "3.17.5",
"resolved": "https://registry.npmjs.org/@videojs/http-streaming/-/http-streaming-3.17.5.tgz",
diff --git a/package.json b/package.json
index c3772ac65..25efea5b0 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"check:vendor": "node scripts/vendor_web_dependencies.mjs --check"
},
"devDependencies": {
+ "@phosphor-icons/core": "2.1.1",
"healthicons": "2.0.0",
"lucide-static": "1.37.0",
"swiper": "14.2.0",
diff --git a/scripts/vendor_web_dependencies.mjs b/scripts/vendor_web_dependencies.mjs
index 2b9a15ed5..2d7930e19 100644
--- a/scripts/vendor_web_dependencies.mjs
+++ b/scripts/vendor_web_dependencies.mjs
@@ -92,12 +92,25 @@ for (const [symbol, icon] of lucideIcons) {
index = index.replace(pattern, `<symbol id="i-${symbol}" viewBox="0 0 24 24">${inner}</symbol>`);
}
+// Phosphor 是填充图标,Peach 全局是描边:填充声明写在 symbol 上,路径不改一个字,
+// 换版本时不必再核每条 path 有没有被补过 fill。viewBox 也和 Lucide 那套不同。
+const phosphorIcons = new Map([["text-aa", "text-aa"], ["playlist", "playlist"]]);
+const PHOSPHOR_ATTRS = 'viewBox="0 0 256 256" fill="currentColor" stroke="none"';
+for (const [symbol, icon] of phosphorIcons) {
+ const inner = svgInner(text("node_modules", "@phosphor-icons/core", "assets", "regular", `${icon}.svg`));
+ const pattern = new RegExp(`<symbol id="i-${symbol}" ${PHOSPHOR_ATTRS}>[\\s\\S]*?<\\/symbol>`);
+ if (!pattern.test(index)) throw new Error(`缺少 Phosphor symbol:${symbol}`);
+ index = index.replace(pattern, `<symbol id="i-${symbol}" ${PHOSPHOR_ATTRS}>${inner}</symbol>`);
+}
+
const healthInner = svgInner(text("node_modules", "healthicons", "public", "icons", "svg", "outline-24px", "contraceptives", "sperm.svg"));
index = index.replace(/<symbol id="i-sperm" viewBox="0 0 24 24">[\s\S]*?<\/symbol>/,
`<symbol id="i-sperm" viewBox="0 0 24 24">${healthInner}</symbol>`);
index = index.replace(/Lucide static [0-9.]+, ISC/, `Lucide static ${versions["lucide-static"]}, ISC`);
index = index.replace(/Health Icons sperm outline-24px, CC0\/public domain/,
`Health Icons ${versions.healthicons} 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"]}/`);
stage("web/index.html", index);
@@ -123,6 +136,15 @@ stage("web/vendor/lucide-ORIGIN.md",
`- 许可证:ISC;原文见 \`lucide-LICENSE.txt\`\n` +
`- 消费者:\`web/index.html\` 内联的 ${lucideIcons.size} 个 symbol\n\n` +
"`i-jav`、`i-alert` 是 Peach 自绘图标;RSS 与拖动点保留填充修正,避免小圆点在全局描边样式下消失。\n");
+stage("web/vendor/phosphor-LICENSE.txt", read("node_modules", "@phosphor-icons/core", "LICENSE"));
+stage("web/vendor/phosphor-ORIGIN.md",
+ `# Phosphor icons ${versions["@phosphor-icons/core"]}\n\n` +
+ `- npm 包:\`@phosphor-icons/core@${versions["@phosphor-icons/core"]}\`\n` +
+ `- npm lock integrity:\`${integrity("@phosphor-icons/core")}\`\n` +
+ `- 许可证:MIT;原文见 \`phosphor-LICENSE.txt\`\n` +
+ `- 消费者:\`web/index.html\` 内联的 ${phosphorIcons.size} 个 regular 权重 symbol\n\n` +
+ "只在描边画法说不清那件事时才用这一套:`text-aa` 是字母表,`playlist` 是播放列表。\n" +
+ "填充声明写在 symbol 上,压住全局的 `stroke:currentColor;fill:none`。\n");
stage("web/vendor/healthicons-LICENSE.txt", read("node_modules", "healthicons", "LICENSE"));
stage("web/vendor/healthicons-ORIGIN.md",
`# Health Icons ${versions.healthicons}\n\n` +
@@ -151,7 +173,7 @@ if (checkOnly) {
console.error(`前端固定依赖未同步:\n${problems.map(path => `- ${path}`).join("\n")}`);
process.exit(1);
}
- console.log(`前端固定依赖已同步:Video.js ${versions["video.js"]}、Swiper ${versions.swiper}、Lucide ${versions["lucide-static"]}、Health Icons ${versions.healthicons}`);
+ console.log(`前端固定依赖已同步:Video.js ${versions["video.js"]}、Swiper ${versions.swiper}、Lucide ${versions["lucide-static"]}、Phosphor ${versions["@phosphor-icons/core"]}、Health Icons ${versions.healthicons}`);
process.exit(0);
}
diff --git a/tests/test_dependency_policy.py b/tests/test_dependency_policy.py
index 80e4d54ca..865785ee8 100644
--- a/tests/test_dependency_policy.py
+++ b/tests/test_dependency_policy.py
@@ -74,7 +74,8 @@ class DependencyPolicyTests(unittest.TestCase):
manifest = json.loads((ROOT / "package.json").read_text(encoding="utf-8"))
self.assertTrue(manifest["private"])
versions = manifest["devDependencies"]
- self.assertEqual(set(versions), {"healthicons", "lucide-static", "swiper", "video.js"})
+ self.assertEqual(set(versions), {"@phosphor-icons/core", "healthicons",
+ "lucide-static", "swiper", "video.js"})
for version in versions.values():
self.assertRegex(version, r"^\d+\.\d+\.\d+$")
@@ -86,6 +87,7 @@ class DependencyPolicyTests(unittest.TestCase):
self.assertIn(f'/vendor/videojs/{versions["video.js"]}/video.min.js', app)
self.assertIn(f"Lucide static {versions['lucide-static']}", index)
self.assertIn(f"Health Icons {versions['healthicons']}", index)
+ self.assertIn(f"Phosphor {versions['@phosphor-icons/core']} regular", index)
self.assertIn(f"/vendor/swiper/{versions['swiper']}/", app)
def test_automation_monitors_all_dependency_manifests(self):
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 91e252040..3e312bd56 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -5089,19 +5089,25 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains(
" .index .ihead .tagmodes,.index .ihead .iconswitch{order:3;flex:none}")
- def test_the_alphabet_switch_is_labelled_with_the_aa_glyph(self):
- """字母表按钮的图标要说「按字母排」,不是三条粗细不同的横线。
-
- `list-filter` 是筛选,和它旁边的「标签云」讲的不是同一件事;Aa 取 vendored
- lucide-static 1.37.0 的 a-large-small,不另画。
- """
- self.assertPageContains("${icon('a-large-small')}字母表")
- self.assertPageContains(
- '<symbol id="i-a-large-small" viewBox="0 0 24 24">'
- '<path d="m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16" />'
- '<path d="M15.697 14h5.606" />'
- '<path d="m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16" />'
- '<path d="M3.304 13h6.392" /></symbol>')
+ def test_the_two_filled_glyph_icons_say_what_a_stroked_icon_cannot(self):
+ """字母表是 Aa,播放列表是队列。
+
+ `list-filter` 的本义是筛选,只有源筛选那一处该用它。这两枚取 Phosphor
+ regular,填充声明写在 symbol 上——全局 svg 是
+ `stroke:currentColor;fill:none`,只补 path 会让填充图标整枚不可见。
+ """
+ self.assertPageContains("${icon('text-aa')}字母表")
+ self.assertPageContains("['playlists','播放列表','playlist'],")
+ self.assertPageContains("emptyState('playlist','还没有播放列表'")
+ self.assertPageContains('aria-label="编辑播放列表">${icon(\'playlist\')}')
+ self.assertPageContains('title="加入播放列表">${icon(\'playlist\')}')
+ # 剩下的那一处 list-filter 是真的筛选,不能一起换掉。
+ self.assertPageContains("${icon('list-filter')}<span data-srcfilter-label>")
+ for symbol in ("text-aa", "playlist"):
+ self.assertPageContains(
+ f'<symbol id="i-{symbol}" viewBox="0 0 256 256" fill="currentColor" stroke="none">')
+ self.assertPageContains("Phosphor 2.1.1 regular, MIT")
+ self.assertPageLacks("i-a-large-small")
def test_an_online_tag_opens_the_follow_page_not_a_catalog_filter(self):
"""在线标签标注的是还没入库的在线更新,拿去筛目录必然一条不中。"""
diff --git a/web/app.js b/web/app.js
index ff466e521..6a5c8e81f 100644
--- a/web/app.js
+++ b/web/app.js
@@ -3127,7 +3127,7 @@ async function openPlaylists(push=true){
return `<article class="playlistcard" data-playlist-card="${list.id}"><button class="playlistcover" data-open-playlist="${list.id}" ${resume?'':'disabled'}>${poster}<span>${list.item_count} 个视频</span></button>
<div class="playlistmeta"><input data-playlist-name maxlength="80" value="${esc(list.name)}" aria-label="播放列表名称"><small>${list.source_kind==='mix'?'由 Mix 保存':'手动播放列表'}</small></div>
<div class="playlistactions"><button data-rename-playlist="${list.id}">保存名称</button><button data-open-playlist="${list.id}" ${resume?'':'disabled'}>继续播放</button><button class="danger" data-delete-playlist="${list.id}">删除</button></div></article>`}).join('');
- $('#stats').innerHTML=`<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><form class="playlistcreate" id="newPlaylist"><label>新播放列表<input name="name" maxlength="80" placeholder="输入名称" required></label><button type="submit">新建</button><span data-playlist-state></span></form></header><div class="playlistcards">${cards||emptyState('list-filter','还没有播放列表','保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。')}</div></section>`;
+ $('#stats').innerHTML=`<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><form class="playlistcreate" id="newPlaylist"><label>新播放列表<input name="name" maxlength="80" placeholder="输入名称" required></label><button type="submit">新建</button><span data-playlist-state></span></form></header><div class="playlistcards">${cards||emptyState('playlist','还没有播放列表','保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。')}</div></section>`;
$('#newPlaylist').onsubmit=async event=>{event.preventDefault();const form=event.currentTarget;
try{await api('/api/playlist',{method:'POST',body:JSON.stringify({action:'create',name:new FormData(form).get('name'),asset_ids:[]})});await openPlaylists(false);actionReceipt('已新建播放列表')}
catch(error){form.querySelector('[data-playlist-state]').textContent=error.message||'新建失败'}};
@@ -5239,7 +5239,7 @@ async function openIndex(kind,q,push=true,refine=false){
<h2 class="disp indexheading">${kind==='tags'?icon('tags'):''}${title}</h2>
<span class="mono" id="indexCount">${countText}</span>
${kind==='tags'?`<div class="tagmodes"><button data-tag-scope="local" aria-pressed="${!onlineTags}">${icon('database')}本地</button><button data-tag-scope="online" aria-pressed="${onlineTags}">${icon('globe')}在线</button></div>
- <div class="tagmodes"><button data-tag-view="cloud" aria-pressed="${tagIndexMode==='cloud'}">${icon('tags')}标签云</button><button data-tag-view="alphabet" aria-pressed="${tagIndexMode==='alphabet'}">${icon('a-large-small')}字母表</button></div>`:''}
+ <div class="tagmodes"><button data-tag-view="cloud" aria-pressed="${tagIndexMode==='cloud'}">${icon('tags')}标签云</button><button data-tag-view="alphabet" aria-pressed="${tagIndexMode==='alphabet'}">${icon('text-aa')}字母表</button></div>`:''}
${people?peopleLayoutButtons():''}
${searchInputHtml({id:'iq',label:'过滤'+title,value:q||''})}
</div><div id="indexFilters">${filters}</div><div id="indexBody">${body}</div><button class="indexmore" id="indexMore" type="button" ${d.has_more?'':'hidden'}>载入更多</button>`;
@@ -5859,7 +5859,7 @@ const EDGE_ICONS=[
['tags','标签','tags'],
['jav','JAV','jav'],
['flagged','已标记','star'],
- ['playlists','播放列表','list-filter'],
+ ['playlists','播放列表','playlist'],
['follow','关注','rss'],
['immerse','沉浸模式','play'],
['manage','管理','database'],
@@ -6533,7 +6533,7 @@ const EDITION_TONE={'中字':'subtitle','无码':'uncensored','无码破解':'cr
function queueHtml(queue,itemId){
const action=queue.kind==='mix'
? `<button data-save-mix title="保存为播放列表" aria-label="保存为播放列表">${icon('bookmark-plus')}</button>`
- : queue.kind==='playlist'?`<button data-edit-playlist title="编辑播放列表" aria-label="编辑播放列表">${icon('list-filter')}</button>`:'';
+ : queue.kind==='playlist'?`<button data-edit-playlist title="编辑播放列表" aria-label="编辑播放列表">${icon('playlist')}</button>`:'';
const countLabel=queue.kind==='parts'?`${queue.items.length} 卷`
:queue.kind==='editions'?`${queue.items.length} 个版本`:`${queue.items.length} 个视频`;
const kindLabel={mix:'Mix',parts:'分卷',editions:'版本',playlist:'播放列表'}[queue.kind]||'视频合集';
@@ -6755,7 +6755,7 @@ async function openItem(id,push=true,queueContext=null,anchor=null){
<button class="dislike" data-kind="dislike" aria-label="不合口味" title="不合口味 · 降低推荐权重" aria-pressed="${it.feedback==='dislike'}">${icon('thumbs-down')}</button>
<button class="seen" data-kind="seen" aria-label="看过了" title="看过了 · 只降低近期推荐" aria-pressed="${it.feedback==='seen'}">${icon('eye')}</button>
<button class="later" id="stageLater" aria-label="稍后看" title="稍后看 · 加入或移出队列" aria-pressed="${!!it.watch_later}">${it.watch_later?icon('check'):icon('bookmark-plus')}</button>
- <button class="playlistadd" id="addPlaylist" aria-label="加入播放列表" title="加入播放列表">${icon('list-filter')}</button>
+ <button class="playlistadd" id="addPlaylist" aria-label="加入播放列表" title="加入播放列表">${icon('playlist')}</button>
<button class="upgrade" id="betterVersion" aria-label="寻找更好版本" title="寻找高清、无水印或完整版" aria-pressed="${!!it.better_version}">${icon('sparkles')}</button>
<button class="dispose" data-kind="dispose" aria-label="加入回收站" title="加入回收站 · 文件仍保留,可从回收站永久清除" aria-pressed="${it.disposal==='trash'}">${icon('trash')}</button></div>
<div class="preference" id="preferencePanel" hidden>
diff --git a/web/index.html b/web/index.html
index f944ba11a..c323f05a9 100644
--- a/web/index.html
+++ b/web/index.html
@@ -13,7 +13,8 @@
<body>
<a class="skiplink" href="#main">跳到正文</a>
<!-- Lucide static 1.37.0, ISC. Local pinned subset; no CDN/runtime dependency.
- Climax uses Health Icons 2.0.0 sperm outline-24px, CC0/public domain. -->
+ Climax uses Health Icons 2.0.0 sperm outline-24px, CC0/public domain.
+ Phosphor 2.1.1 regular, MIT: filled glyphs where a stroked icon cannot say it. -->
<svg aria-hidden="true" width="0" height="0" style="position:absolute;overflow:hidden">
<symbol id="i-home" viewBox="0 0 24 24"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" /><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /></symbol>
<symbol id="i-sliders-horizontal" viewBox="0 0 24 24"><path d="M10 5H3" /><path d="M12 19H3" /><path d="M14 3v4" /><path d="M16 17v4" /><path d="M21 12h-9" /><path d="M21 19h-5" /><path d="M21 5h-7" /><path d="M8 10v4" /><path d="M8 12H3" /></symbol>
@@ -27,7 +28,8 @@
<symbol id="i-tags" viewBox="0 0 24 24"><path d="M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z" /><path d="M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193" /><circle cx="10.5" cy="6.5" r=".5" fill="currentColor" /></symbol>
<symbol id="i-star" viewBox="0 0 24 24"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" /></symbol>
<symbol id="i-list-filter" viewBox="0 0 24 24"><path d="M2 5h20" /><path d="M6 12h12" /><path d="M9 19h6" /></symbol>
- <symbol id="i-a-large-small" viewBox="0 0 24 24"><path d="m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16" /><path d="M15.697 14h5.606" /><path d="m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16" /><path d="M3.304 13h6.392" /></symbol>
+ <symbol id="i-text-aa" viewBox="0 0 256 256" fill="currentColor" stroke="none"><path d="M87.24,52.59a8,8,0,0,0-14.48,0l-64,136a8,8,0,1,0,14.48,6.81L39.9,160h80.2l16.66,35.4a8,8,0,1,0,14.48-6.81ZM47.43,144,80,74.79,112.57,144ZM200,96c-12.76,0-22.73,3.47-29.63,10.32a8,8,0,0,0,11.26,11.36c3.8-3.77,10-5.68,18.37-5.68,13.23,0,24,9,24,20v3.22A42.76,42.76,0,0,0,200,128c-22.06,0-40,16.15-40,36s17.94,36,40,36a42.73,42.73,0,0,0,24-7.25,8,8,0,0,0,16-.75V132C240,112.15,222.06,96,200,96Zm0,88c-13.23,0-24-9-24-20s10.77-20,24-20,24,9,24,20S213.23,184,200,184Z"/></symbol>
+ <symbol id="i-playlist" viewBox="0 0 256 256" fill="currentColor" stroke="none"><path d="M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72H160a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm72,48H40a8,8,0,0,0,0,16h72a8,8,0,0,0,0-16Zm135.66-57.7a8,8,0,0,1-10,5.36L208,122.75V192a32.05,32.05,0,1,1-16-27.69V112a8,8,0,0,1,10.3-7.66l40,12A8,8,0,0,1,247.66,126.3ZM192,192a16,16,0,1,0-16,16A16,16,0,0,0,192,192Z"/></symbol>
<symbol id="i-sort" viewBox="0 0 24 24"><path d="m3 16 4 4 4-4" /><path d="M7 20V4" /><path d="M11 4h10" /><path d="M11 8h7" /><path d="M11 12h4" /></symbol>
<symbol id="i-arrow-down" viewBox="0 0 24 24"><path d="M12 5v14" /><path d="m19 12-7 7-7-7" /></symbol>
<symbol id="i-arrow-up" viewBox="0 0 24 24"><path d="m5 12 7-7 7 7" /><path d="M12 19V5" /></symbol>
diff --git a/web/vendor/phosphor-LICENSE.txt b/web/vendor/phosphor-LICENSE.txt
new file mode 100644
index 000000000..78c981081
--- /dev/null
+++ b/web/vendor/phosphor-LICENSE.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Phosphor Icons
+
+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/phosphor-ORIGIN.md b/web/vendor/phosphor-ORIGIN.md
new file mode 100644
index 000000000..c43346740
--- /dev/null
+++ b/web/vendor/phosphor-ORIGIN.md
@@ -0,0 +1,9 @@
+# Phosphor icons 2.1.1
+
+- npm 包:`@phosphor-icons/[email protected]`
+- npm lock integrity:`sha512-v4ARvrip4qBCImOE5rmPUylOEK4iiED9ZyKjcvzuezqMaiRASCHKcRIuvvxL/twvLpkfnEODCOJp5dM4eZilxQ==`
+- 许可证:MIT;原文见 `phosphor-LICENSE.txt`
+- 消费者:`web/index.html` 内联的 2 个 regular 权重 symbol
+
+只在描边画法说不清那件事时才用这一套:`text-aa` 是字母表,`playlist` 是播放列表。
+填充声明写在 symbol 上,压住全局的 `stroke:currentColor;fill:none`。