Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat: align profile media toggle with Beeg

longmeidao3c77bc629740
diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md
index c3b33a5ca..e9162b1ca 100644
--- a/docs/HANDOFF.md
+++ b/docs/HANDOFF.md
@@ -77,7 +77,7 @@ Claude 的 `.claude/settings.json` 已配置 Stop、StopFailure、SessionEnd hoo
**Vercel Geist 控件(2026-08-28)**:官方 introduction 页实测普通操作使用 4/6px 圆角、图标操作为 32×32px,圆形留给 emoji 反馈等特殊语义。Peach 的普通操作和关闭按钮因此统一用 `--control-radius:6px`,菜单与 Modal 使用 `--floating-radius:12px`,状态标记使用 `--badge-radius:4px`;Tag 保持胶囊,媒体左右切换与头像保留圆形。全站字号、顶栏、搜索、播放列表、设置、管理、详情、关注与移动端共用这套语义 token;弹层自己的滚动容器必须使用 `overscroll-behavior:contain`,粘性标题栏要设置 `scroll-padding-top`,不能遮住键盘焦点。锁定版本、完整测量和有意差异见 `vercel-geist-controls-measured.md`。**Vercel Geist MiddleTruncate(2026-08-30)**:官方页 <https://vercel.com/geist/middle-truncate> 规定只对文件路径、URL、ID、SHA 等首尾都有信息的值做中间省略;单个 `…` 随容器宽度重算,复制和无障碍名称保留完整原文,外层不得再套 `text-overflow:ellipsis`。Peach 用原生 ES module 适配这套行为,不引入 React;资源标识必须显式使用 `data-middle-truncate`,标题、说明、人名和标签保留末尾省略;页面源门槛登记全部末尾省略选择器,任何新增截断都必须先分类。实时浏览器 DOM/CSS/JS 本轮未取得,通道错误与候选判断见 `vercel-geist-middle-truncate.md`。
**Vercel Tooltip/Collapse/Projects/Analytics 与 Geist Note/Progress/Switch/Fieldset/Scroller/Empty State(2026-08-30)**:登录态项目页确认搜索占剩余宽度、筛选为方形图标钮、主操作在右,菜单无展开动画且内部滚动;Analytics 使用全局筛选、摘要指标和带独立 header 的分区数据面板。Tooltip 固定在视口内,来源菜单不得套用 Collapse motion,作者别名才使用 Collapse;Note 只放字段/卡片/分区旁的持久上下文,页面问题用 Banner、瞬时回执用 Toast;Progress 必须有真实 value/max 和 ARIA,Switch 只用于 2–3 个互斥视图,布尔值用 Toggle;Fieldset 同组卡片固定同高,变化正文放单一 Scroller,Footer 保持固定动作区;Empty State 必须把图标、标题、说明和可选动作收在同一组件,且与上方工具条保持统一间距。完整 URL、HTML SHA、浏览器未取得面和 Peach 差异见 `vercel-geist-semantics-measured.md`、`vercel-geist-note-progress-switch-analytics.md` 与 `vercel-geist-fieldset-scroller-empty-state.md`;实现门槛见 `peach-web-ui`。
**Vercel Command Menu/Search Input/Spinner/Loading Dots(2026-08-30)**:设置覆盖层使用锁定 Dialog CSS 的 350ms、`cubic-bezier(.4,0,.2,1)` 与 -40px 淡入轨迹,普通菜单仍无动画;Search Input 的搜索图标在查询期间原位换成 Spinner。用户直接触发的检查、加载、保存与应用使用 Spinner,后台抓取和扫描进度使用 Loading Dots;“没有更多历史内容”是中性、可关闭的 Note,不得登记为红色故障。证据哈希、未取得面与 Peach 差异见 `vercel-geist-command-search-loading.md`。
-**Beeg 资料页(2026-08-29)**:Reislin 页面实测顺序是头像与名称、简介、外部链接、关联艺人、标签、内容。Peach 的女优/厂牌资料页和关注页复用这个阅读顺序,但媒体切换只按 Peach 的真实视频/图片数量出现;合集详情继续使用普通详情的左媒体、右信息,下方另设 Mix/分卷/播放列表/多视频的横向切换带。锁定样式摘要、截图摘要和主动差异见 `beeg-profile-layout.md`。
+**Beeg 资料页(2026-08-30)**:Reislin 与 SweetieFox 页面证据锁定的顺序是头像与名称、简介、外部链接、关联艺人轨道、标签轨道、内容;轨道不另加可见标题。Peach 的女优/厂牌资料页和关注页复用这个阅读顺序;资料页有照片时只显示一个 32×32px `PicsIcon`,放在标签左侧,选中代表照片视图,再点一次回到视频,不保留独立的「视频/照片」文字标签栏。合集详情继续使用普通详情的左媒体、右信息,下方另设 Mix/分卷/播放列表/多视频的横向切换带。锁定样式摘要、哈希、未取得面和主动差异见 `beeg-profile-layout.md`。
YouTube Shorts 沉浸页使用用户截图记录 `docs/reference-snapshots/youtube-shorts-immersive-user-screenshot.md`:竖屏复用中央 9:16 舞台和外置动作列,横屏使用在整个视口视觉居中的 16:9 舞台并把动作列收进视频右侧;Peach 保留自己的反馈语义,不复制订阅或社交动作。沉浸视频每次加载都要带独立 `session`,切片、关闭、失败和页面离开时取消旧会话;只清浏览器的 `src` 不足以停止 CloudDrive 预读或 FFmpeg。
F95 masked 链接与 Gofile 文件列表的凭据边界见 `f95-masked-gofile-media`;Mix 只按已解析且
可播放的视频计数,不按回复数或网盘页数计数。
diff --git a/docs/reference-snapshots/beeg-profile-layout.md b/docs/reference-snapshots/beeg-profile-layout.md
index bb16d9cc0..e9ed70189 100644
--- a/docs/reference-snapshots/beeg-profile-layout.md
+++ b/docs/reference-snapshots/beeg-profile-layout.md
@@ -1,11 +1,13 @@
-# Beeg 资料页布局实测
+# Beeg 资料页布局与媒体切换实测
-- 取证日期:2026-08-29
-- 页面:<https://beeg.com/Reislin>
-- 取证方式:在已加载页面读取实时 DOM、布局位置与样式资源,并与用户提供的原始截图交叉核对
+- 取证日期:2026-08-29、2026-08-30
+- 页面:<https://beeg.com/Reislin>、<https://beeg.com/SweetieFox>
+- 取证方式:Reislin 在已加载页面读取实时 DOM、布局位置与样式资源;SweetieFox 读取当前 HTML、JS、CSS,并与用户提供的 Comatozze/SweetieFox 截图交叉核对
- 页面截图:3675×1099,SHA-256 `8b181c1fd62e77a41459d5f0f6a51b82d8ebba627f154646fe8538f9e9550443`
- 样式资源:`main.9442c3b8.css`,359,506 字节,SHA-256 `e585b07ca0c312c28903db939144b26a3c4bfbc9499f5997bdde168a197cdb34`
- 补充样式:`5989.9442c3b8.css`,23,864 字节,SHA-256 `53f7f36df5af0341d95cccd42f47a2ff9142bf8c0be0fbf2970fc1437a1b14ae`
+- SweetieFox HTML:7,898 字节,SHA-256 `7659a2408aa7c9c4673a2f53ac0307cf6938f69227b296da57e38f0665b37fbf`
+- SweetieFox 主 JS:`main.9442c3b8.js`,758,494 字节,SHA-256 `a7321f6e84d97417b588b6e98eec86a15b30dc4c36b03537481cc55a4cf933e7`
## 可复用证据
@@ -18,10 +20,19 @@
5. 主题与标签使用可横向延伸的胶囊行。
6. 内容列表排在上述资料和筛选信息之后。
+SweetieFox 主 JS 提供了更明确的媒体切换证据:
+
+- `IndexInner` 把媒体切换作为 `ContentFilter` 的 `prepend-chips`,因此它位于标签/推荐胶囊左侧,不另起 Tab 行。
+- 页面只渲染一枚 `PicsIcon`。默认视频视图未选中;照片视图选中同一按钮,再次点击删除 `media=photos` 并返回视频。
+- 按钮使用 `IconButton size="s"`:32×32px、圆形、默认透明,选中时使用实底;标签行间距为 6px。
+- `PicsIcon` 是 16×16、`fill="currentColor"` 的三段路径,锁定于主 JS module `83646`。Peach 复用这份图形,不用原来的四宫格代替。
+- 内置浏览器读取 SweetieFox DOM 和截图分别在 30 秒、15 秒超时并重置控制连接;实时计算样式与本轮截图标记为“未取得”,没有据此补动画或其他数值。当前 HTML/JS/CSS 经代理下载成功,以上行为可由锁定 bundle 重放。
+
## Peach 复用与差异
-- 女优、厂牌资料页采用“头像与名称 → 简介 → 链接 → 关联艺人 → 标签 → 视频/照片”的顺序。
+- 女优、厂牌资料页采用“头像与名称 → 简介 → 链接 → 艺人轨道 → 标签与媒体切换 → 内容”的顺序;艺人轨道和标签行不显示重复标题。
+- 有照片时,在标签左侧显示同一枚图片按钮;按钮的按下态表示当前是照片视图,点击可在视频/照片间往返。没有照片时不显示按钮。
- 关注页复用相同的信息层级:“标题 → 作者 → 状态、来源和标签 → 视频/图片 → 内容”。
-- Beeg 当前 Reislin 页面只显示视频列表,没有可复核的照片切换;Peach 的视频/照片切换来自自身真实媒体数据,不宣称复制 Beeg 的不存在控件。
+- Reislin 页面只显示视频;SweetieFox bundle 证明只有 `tg_photo_sets` 时才插入媒体按钮。Peach 同样由真实照片数量决定是否显示,不伪造入口。
- Peach 保留自己的暗色变量、实体筛选、计数和操作语义,不复制 Beeg 品牌、关注按钮或外部商业链接。
- 用户提供的 Peach 详情截图明确了合集的适配方式:普通详情仍是左媒体、右信息,合集/Mix/分卷/播放列表/多媒体切换改为下方横向轨道,不使用原来的右侧竖向队列。
diff --git a/docs/reference-sources.json b/docs/reference-sources.json
index eba4f6f24..381b87fc7 100644
--- a/docs/reference-sources.json
+++ b/docs/reference-sources.json
@@ -123,15 +123,16 @@
},
{
"id": "beeg-profile-layout",
- "name": "Beeg Reislin 资料页布局证据",
- "url": "https://beeg.com/Reislin",
+ "name": "Beeg SweetieFox 资料页布局与媒体切换证据",
+ "url": "https://beeg.com/SweetieFox",
"snapshot": "docs/reference-snapshots/beeg-profile-layout.md",
- "checked_on": "2026-08-29",
- "sha256": "fee5f561e2dffcb15cba4be45115d927d37d2957fc23895ccf25809f16fb63da",
- "role": "女优、厂牌与关注页的信息顺序、头像轨道、标签位置和内容入口参考;合集详情按 Peach 现有详情结构适配。",
+ "checked_on": "2026-08-30",
+ "sha256": "4f3ae0154c3f5d2d9c8c42203557eb4498d98eff1412fdf2209b8e4c5a9ac386",
+ "role": "女优、厂牌与关注页的无标题信息轨道参考;资料页以单个 32px PicsIcon 在标签左侧切换视频与照片,合集详情按 Peach 现有详情结构适配。",
"consumers": [
"web/app.css",
"web/app.js",
+ "web/index.html",
"tests/test_follow_web.py",
"tests/test_web_ui.py"
]
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index ee90ab570..b5c5984ce 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -1079,10 +1079,11 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("data-related-performer")
profile = self.page[self.page.index("async function openEntity("):]
self.assertLess(profile.index("<div class=\"entityhero\">"),
- profile.index("关联艺人"))
- self.assertLess(profile.index("关联艺人"), profile.index("相关标签"))
- self.assertLess(profile.index("相关标签"),
- profile.index("<div class=\"mediatabs\" hidden>"))
+ profile.index('class="relatedpeople"'))
+ self.assertLess(profile.index('class="relatedpeople"'),
+ profile.index('class="entitytags"'))
+ self.assertNotIn("关联艺人", profile)
+ self.assertNotIn("相关标签", profile)
def test_every_home_navigation_restores_the_shared_facets(self):
self.assertPageContains("function showHomeSurfaces()")
@@ -1725,12 +1726,15 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageLacks('id="iClose"', "顶栏入口本身就是返回路径")
self.assertPageLacks("$('#iClose').onclick")
- def test_photo_tab_only_appears_when_the_entity_really_has_images(self):
- self.assertPageContains('<div class="mediatabs" hidden></div>')
- self.assertPageContains("tabs.hidden=!photos")
- self.assertPageContains("tab('photos','照片','layout-grid',photos)")
- self.assertPageContains("tab('videos','视频','play',entityVideoCount)")
- self.assertPageContains(".mediatabs[hidden]{display:none}")
+ def test_beeg_photo_toggle_precedes_tags_and_only_appears_with_images(self):
+ self.assertPageContains('id="i-pics" viewBox="0 0 16 16" fill="currentColor" stroke="none"')
+ self.assertPageContains('class="entitymediatoggle" type="button" data-media-toggle')
+ self.assertPageContains("const mediaToggle=photoCount?")
+ self.assertPageContains('<div class="entitytags">${mediaToggle}${tags}</div>')
+ self.assertPageContains("button.hidden=!photos")
+ self.assertPageContains("selected?'videos':'photos'")
+ self.assertPageContains(".entitytags .entitymediatoggle{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px")
+ self.assertPageLacks('<div class="mediatabs" hidden></div>')
def test_photo_wall_uses_cached_thumbnails_and_only_the_lightbox_reads_originals(self):
# 瀑布流铺原图等于一屏付几十兆 PikPak 流量;缩略图由服务端缓存一次。
diff --git a/web/app.css b/web/app.css
index 41c76d9d9..7ebbcaa15 100644
--- a/web/app.css
+++ b/web/app.css
@@ -347,11 +347,15 @@ button,a,input,textarea,select,summary{touch-action:manipulation}
stroke-width:1.8}.entitylinkicon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff}
.entitylinklabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entitylinkarrow{color:var(--muted);flex:none}
.entityterms{margin-top:13px;color:var(--muted);font-size:var(--fs-xs)}.entityterms code{color:var(--ink-2);margin-right:8px}
-.entitymeta{display:grid;gap:22px;margin:0 0 28px;min-width:0}.entitymeta section{min-width:0}.entitymeta h3,.entitysection h3{font-size:var(--fs-sm);letter-spacing:.08em;color:var(--muted);margin:0 0 12px}
-.entitytags{display:flex;flex-wrap:wrap;gap:7px}.entitytags button{height:34px;padding:0 14px;border-radius:var(--pill-radius);
+.entitymeta{display:grid;gap:22px;margin:0 0 28px;min-width:0}.entitymeta section{min-width:0}.entitysection h3{font-size:var(--fs-sm);letter-spacing:.08em;color:var(--muted);margin:0 0 12px}
+.entitytags{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.entitytags button{height:34px;padding:0 14px;border-radius:var(--pill-radius);
border:1px solid var(--border-15);background:transparent;color:var(--ink-2);cursor:pointer;max-width:100%;
overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.entitytags button:hover{background:var(--overlay-5);color:var(--ink)}.entitytags button[aria-pressed="true"]{background:var(--ink-2);border-color:var(--ink-2);color:var(--ground)}.entitytags small{color:var(--muted);margin-left:4px}
+.entitytags .entitymediatoggle{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:0;
+ border:0;background:transparent;color:var(--muted)}.entitytags .entitymediatoggle svg{width:16px;height:16px;
+ fill:currentColor;stroke:none}.entitytags .entitymediatoggle:hover{background:var(--overlay-5);color:var(--ink)}
+.entitytags .entitymediatoggle[aria-pressed="true"]{border-color:transparent;background:var(--ink-2);color:var(--ground)}
.relatedpeople{display:flex;gap:14px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.relatedpeople::-webkit-scrollbar{display:none}.relatedperson{flex:0 0 78px;border:0;background:transparent;color:inherit;
padding:0;cursor:pointer;text-align:center}.relatedperson .ring{display:grid;place-items:center;width:64px;height:64px;
@@ -362,7 +366,7 @@ button,a,input,textarea,select,summary{touch-action:manipulation}
.entitysection{min-width:0;max-width:100%}.entitysection h3{font-size:var(--fs-sm);letter-spacing:.08em;color:var(--muted);margin:0 0 12px}
.entitycollectionhead{display:flex;align-items:center;gap:10px;margin:0 0 12px;min-width:0}
.entitycollectionhead h3{margin:0;flex:0 0 auto}.entitycollectionhead .javlayout{display:inline-flex;gap:2px}
-/* 视频 / 照片切换。只有该实体真有图片时才出现,没有图片的资料页保持原样。 */
+/* 关注页的视频 / 图片切换;实体页按 Beeg 把单一图片按钮放进标签行。 */
.mediatabs{display:flex;gap:8px;margin:0 0 18px;border-bottom:1px solid var(--line-soft)}
.mediatabs[hidden]{display:none}
.mediatabs button{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--muted);
diff --git a/web/app.js b/web/app.js
index 2378e039a..920a8432b 100644
--- a/web/app.js
+++ b/web/app.js
@@ -3208,8 +3208,7 @@ async function updateEntityCollection(kind,name,filters,push=true){
const seq=++entityRequestSeq;
const items=await fetchEntityItems(kind,name,filters);
if(seq!==entityRequestSeq)return;
- entityVideoCount=items.total||0;
- renderMediaTabs(kind,name,filters);
+ renderEntityMediaToggle(kind,name,filters);
$('#index').querySelectorAll('[data-entity-tag]').forEach(b=>
b.setAttribute('aria-pressed',String(b.dataset.entityTag===filters.tag)));
renderEntityCollection(kind,name,items,filters)
@@ -3227,31 +3226,30 @@ const parseMediaView=search=>{const params=new URLSearchParams(search),set=param
const entityViewSearch=(filters,view)=>{const params=new URLSearchParams(entityFilterSearch(filters));
if(view&&view.media==='photos'){params.set('media','photos');if(view.set)params.set('set',String(view.set))}
return params.toString()};
-let entityPhotos=null,entityMediaView=emptyMediaView(),entityVideoCount=0,photoWallItems=[];
+let entityPhotos=null,entityMediaView=emptyMediaView(),photoWallItems=[];
const routeEntityView=(kind,name,view)=>{
const filters=barsContext.type==='entity'?barsContext.filters:emptyEntityFilters();
const search=entityViewSearch(filters,view);
route(entityPath(kind,name)+(search?'?'+search:''))};
const photoTotalOf=()=>entityPhotos&&!entityPhotos.error?(entityPhotos.total||0):0;
-function renderMediaTabs(kind,name,filters){
- const tabs=$('#index').querySelector('.mediatabs');if(!tabs)return;
+function renderEntityMediaToggle(kind,name,filters){
+ const button=$('#index').querySelector('[data-media-toggle]');if(!button)return;
const photos=photoTotalOf();
- tabs.hidden=!photos;
- if(!photos){tabs.innerHTML='';return}
- const tab=(media,label,glyph,count)=>`<button data-media="${media}"
- aria-pressed="${(entityMediaView.media==='photos')===(media==='photos')}">${icon(glyph)}<span>${label}</span>
- <b class="mono">${count.toLocaleString()}</b></button>`;
- tabs.innerHTML=tab('videos','视频','play',entityVideoCount)+tab('photos','照片','layout-grid',photos);
- tabs.querySelectorAll('[data-media]').forEach(b=>
- b.onclick=()=>switchEntityMedia(kind,name,filters,b.dataset.media));
+ button.hidden=!photos;
+ if(!photos)return;
+ const selected=entityMediaView.media==='photos';
+ const label=selected?'切换到视频':'切换到照片';
+ button.setAttribute('aria-pressed',String(selected));
+ button.setAttribute('aria-label',label);button.title=label;
+ button.onclick=()=>switchEntityMedia(kind,name,filters,selected?'videos':'photos');
}
async function switchEntityMedia(kind,name,filters,media){
if((entityMediaView.media==='photos')===(media==='photos')&&!entityMediaView.set)return;
entityMediaView=media==='photos'?{media:'photos',set:0}:emptyMediaView();
routeEntityView(kind,name,entityMediaView);
- renderMediaTabs(kind,name,filters);
+ renderEntityMediaToggle(kind,name,filters);
if(media==='photos'){renderPhotoWall(kind,name,filters,entityPhotos);return}
const seq=++entityRequestSeq;
const items=await fetchEntityItems(kind,name,filters);
@@ -3265,7 +3263,7 @@ async function openPhotoSet(kind,name,filters,setId,push=true){
if(seq!==entityRequestSeq||data.error)return;
entityMediaView={media:'photos',set:setId};
if(push)routeEntityView(kind,name,entityMediaView);
- renderMediaTabs(kind,name,filters);
+ renderEntityMediaToggle(kind,name,filters);
renderPhotoWall(kind,name,filters,data);
}
@@ -3554,6 +3552,11 @@ async function openEntity(kind,name,push=true,requestedTag){
<span class="ring"><span>${esc(x.k.slice(0,1))}</span><img src="/entity-image?kind=performer&id=${x.id}" alt="" loading="lazy"
onerror="${x.rep?`if(!this.dataset.f){this.dataset.f='1';this.src='/avatar?id=${x.rep}'}else{this.remove()}`:`this.remove()`}"></span>
<span class="nm">${esc(x.k)}</span><small>${x.n.toLocaleString()} 部</small></button>`).join('');
+ const photoCount=photos&&!photos.error?(photos.total||0):0;
+ const mediaSelected=entityMediaView.media==='photos';
+ const mediaLabel=mediaSelected?'切换到视频':'切换到照片';
+ const mediaToggle=photoCount?`<button class="entitymediatoggle" type="button" data-media-toggle
+ aria-pressed="${mediaSelected}" aria-label="${mediaLabel}" title="${mediaLabel}">${icon('pics')}</button>`:'';
$('#index').dataset.entityKind=kind;$('#index').dataset.entityName=name;
$('#index').innerHTML=`<div class="entityhero"><div class="entityportrait ${kind==='performer'||kind==='creator'?'':'square'}">${image}<span>${esc(name.slice(0,1))}</span></div>
<div><h2>${esc(d.canonical_name)}</h2>
@@ -3561,11 +3564,10 @@ async function openEntity(kind,name,push=true,requestedTag){
${d.summary?`<div class="entitysummary">${esc(d.summary)}</div>`:''}
${links?`<div class="entitylinks">${links}</div>`:''}
${terms?`<div class="entityterms">馆藏检索词 · ${terms}</div>`:''}</div></div>
- ${(tags||related)?`<div class="entitymeta">
- ${related?`<section><h3>关联艺人</h3><div class="relatedpeople">${related}</div></section>`:''}
- ${tags?`<section><h3>相关标签</h3><div class="entitytags">${tags}</div></section>`:''}
+ ${(tags||related||mediaToggle)?`<div class="entitymeta">
+ ${related?`<section aria-label="同台艺人"><div class="relatedpeople">${related}</div></section>`:''}
+ ${(tags||mediaToggle)?`<section aria-label="媒体与标签"><div class="entitytags">${mediaToggle}${tags}</div></section>`:''}
</div>`:''}
- <div class="mediatabs" hidden></div>
<div class="entitysection"></div>`;
$('#index').querySelectorAll('[data-entity-tag]').forEach(b=>b.onclick=()=>{
const next=b.dataset.entityTag===entityTag?'':b.dataset.entityTag;
@@ -3577,9 +3579,8 @@ async function openEntity(kind,name,push=true,requestedTag){
$('#index').querySelectorAll('[data-related-performer]').forEach(b=>b.onclick=()=>
openEntity('performer',b.dataset.relatedPerformer));
entityPhotos=photos&&!photos.error?photos:null;
- entityVideoCount=items.total||0;
if(entityMediaView.media==='photos'&&!photoTotalOf())entityMediaView=emptyMediaView();
- renderMediaTabs(kind,name,filters);
+ renderEntityMediaToggle(kind,name,filters);
if(entityMediaView.media!=='photos')renderEntityCollection(kind,name,items,filters);
else if(entityMediaView.set)await openPhotoSet(kind,name,filters,entityMediaView.set,false);
else renderPhotoWall(kind,name,filters,entityPhotos);
diff --git a/web/index.html b/web/index.html
index f6e392445..7696f6ad2 100644
--- a/web/index.html
+++ b/web/index.html
@@ -19,6 +19,8 @@
<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>
<symbol id="i-search" viewBox="0 0 24 24"><path d="m21 21-4.34-4.34"/><circle cx="11" cy="11" r="8"/></symbol>
<symbol id="i-layout-grid" viewBox="0 0 24 24"><rect width="7" height="7" x="3" y="3" rx="1"/><rect width="7" height="7" x="14" y="3" rx="1"/><rect width="7" height="7" x="14" y="14" rx="1"/><rect width="7" height="7" x="3" y="14" rx="1"/></symbol>
+ <!-- Beeg PicsIcon,取自 2026-08-30 锁定的 main.9442c3b8.js(module 83646)。 -->
+ <symbol id="i-pics" viewBox="0 0 16 16" fill="currentColor" stroke="none"><path d="M8 3.5C8 4.052 7.552 4.5 7 4.5C6.448 4.5 6 4.052 6 3.5C6 2.948 6.448 2.5 7 2.5C7.552 2.5 8 2.948 8 3.5Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3.49402 10.5C3.49402 11.605 4.38902 12.5 5.49402 12.5L14 12.501C15.105 12.501 16 11.606 16 10.501V2.001C16 0.896 15.105 0.001 14 0.001L5.49402 0C4.38902 0 3.49402 0.895 3.49402 2V10.5ZM4.49402 2C4.49402 1.448 4.94202 1 5.49402 1L14 1.001C14.552 1.001 15 1.449 15 2.001V5.84603L14.459 5.30103C14.045 4.88703 13.518 4.71503 13.045 4.71503C12.572 4.71503 12.063 4.87003 11.632 5.30103L9.04502 7.85603C8.91602 7.96603 8.78702 7.98303 8.71902 7.98303C8.64702 7.98303 8.48502 7.96603 8.35502 7.83203L7.64702 7.14803C7.26402 6.82503 6.87702 6.61403 6.23902 6.61403C5.83202 6.61403 5.27002 6.79003 4.87102 7.19903L4.49402 7.58003V2ZM4.49402 8.98503V10.5C4.49402 11.052 4.94202 11.5 5.49402 11.5L14 11.501C14.552 11.501 15 11.053 15 10.501V7.25603L13.752 6.00803C13.521 5.77703 13.23 5.71503 13.045 5.71503C12.85 5.71503 12.556 5.78603 12.339 6.00803L9.76602 8.55303C9.49302 8.82603 9.08202 8.98503 8.75102 8.98503C8.35402 8.98503 8.01102 8.86203 7.71302 8.60403L6.94102 7.86703C6.76302 7.71803 6.54702 7.61303 6.26102 7.61903C5.97402 7.62503 5.74102 7.74803 5.58102 7.90703L4.49402 8.98503Z"/><path d="M0.0310299 12.174C-0.16097 13.262 0.56503 14.299 1.65303 14.491L10.03 15.969C11.119 16.161 12.155 15.435 12.347 14.347L12.496 13.501H11.481L11.362 14.173C11.267 14.717 10.748 15.08 10.204 14.984L1.82703 13.506C1.28303 13.41 0.92003 12.891 1.01603 12.348L2.49203 3.97702C2.49203 3.97302 2.49303 3.96902 2.49403 3.96502V2.40802C1.99103 2.69202 1.61503 3.19002 1.50703 3.80302L0.0310299 12.174Z"/></symbol>
<symbol id="i-square-check-big" viewBox="0 0 24 24"><path d="m9 11 3 3L22 4"/><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/></symbol>
<symbol id="i-refresh-cw" viewBox="0 0 24 24"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></symbol>
<symbol id="i-user-round" viewBox="0 0 24 24"><circle cx="12" cy="8" r="5"/><path d="M20 21a8 8 0 0 0-16 0"/></symbol>