Skip to content

armgit / peach

Public Imported from GitHub
0

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

refine interface copy

Peach local maintenancec5a93664a23e
diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md
index 1ed1bbfd6..b1cacdb26 100644
--- a/docs/HANDOFF.md
+++ b/docs/HANDOFF.md
@@ -121,6 +121,7 @@ Claude 的 `.claude/settings.json` 已配置 Stop、StopFailure、SessionEnd hoo
- 喜欢与原因属于同一 profile 偏好;非空原因隐含喜欢,但原文不能直接冒充推荐特征。
- 详情实体采用一行一个身份,小头像/Logo 紧邻名称,不使用独立大边框卡片。旧短/中/长片标签不再显示,时长筛选只使用分钟区间。
- 反馈使用 Lucide 紧凑图标工具栏。“待删”只表示候选,真正删除必须经过复核 CSV 的独立 apply。
+- 界面文案不复述标题、控件或实现状态,不用随机示例占位符和模型自我声明;只保留影响决策、防止数据损失、说明隐私/费用或解释陌生状态的文字。
- 桌面筛选抽屉只在指针进入可见 72 px 侧栏后打开,不恢复内容区隐藏热区。
- 厂牌 Logo 使用带来源的官方缓存;缺失时显示首字母,不得用任意作品图冒充。当前规范厂牌覆盖 28/114,继续走复核队列。
- 实体头像优先 `generated/avatars/<kind>-<entity_id>.img`;Stash 默认剪影和搜索结果缩略图不能作为头像。
diff --git a/docs/STATUS.md b/docs/STATUS.md
index 987904bbf..e1bb86cc8 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -41,6 +41,7 @@
- 标签统一使用同一圆角和内边距 token;厂牌/来源保留独立身份样式。选中框改为内描边,不会被卡片边缘或 hover 样式裁掉。
- 顶栏提供显式多选模式;`Ctrl`/⌘ 单项切换,`Shift` 在当前可见网格中连续范围选择。选中标记位于右上角,不覆盖来源徽标;待删候选卡片会灰化并显示独立「待删」标记。
- 详情身份按名称去重,标签可逐项隐藏或手动添加;隐藏只写 profile 覆盖,不破坏原始来源断言。高潮按钮使用 Health Icons 的 CC0 领域图标和独立暖粉强调色。
+- 已完成首轮界面文案审计:删除标题复述、实现状态说明、随机示例占位符和模型自我声明;删除保护、隐私边界、流量成本及陌生状态说明继续保留。
- 侧栏、抽屉和粘性栏使用 Beeg 当前源码实测的透明层与 blur 数值;页面背景不再是纯黑,侧栏不再是纯灰。本轮没有为了装饰引入动画库,后续动效必须先复用审计并只表达状态/连续性。
## 数据与批处理
@@ -74,7 +75,6 @@
5. 增加 Media Engine stream-plan API,再复用 hls.js 或 Shaka Player 接入 HLS/DASH;不得自己造播放器协议层。
6. 配置并评估 Stash CommunityScrapers/元数据 Provider,确认缺口后才写新来源适配器。
7. 配置可复核的真实追更源,之后再接 APScheduler;AI 结果继续只作为候选。
-8. 发布前继续删减仅在构建阶段有用的解释性文字,只保留会影响决策、防止数据损失或解释陌生状态的内容。
## 批处理进度(自动生成)
diff --git a/web/index.html b/web/index.html
index fe690ebd1..3050070df 100644
--- a/web/index.html
+++ b/web/index.html
@@ -632,7 +632,7 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
<button class="ib" id="filterBtn" title="筛选"><svg viewBox="0 0 24 24"><use href="#i-sliders-horizontal"/></svg></button>
<a class="brand" href="#" id="brandHome"><svg class="mark" viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="pg" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#FF9A76"/><stop offset="1" stop-color="#F2557B"/></linearGradient></defs><path d="M16 29c-6.1 0-10.4-3.9-10.4-9.2 0-4.6 3-8.2 7-8.2 1.5 0 2.6.5 3.4 1.2.8-.7 1.9-1.2 3.4-1.2 4 0 7 3.6 7 8.2C26.4 25.1 22.1 29 16 29z" fill="url(#pg)"/><path d="M16 13.2V28" stroke="#0B0B0D" stroke-width="1.1" opacity=".28" stroke-linecap="round"/><path d="M17.2 11.4c.6-3 3-4.9 6-5.1-.2 3-2.4 5-6 5.1z" fill="#5FB95F"/><path d="M16 11.6c0-2 .5-3.6 1.6-4.8" stroke="#8A5A3B" stroke-width="1.5" stroke-linecap="round" fill="none"/></svg><h1 class="disp">Peach</h1><span class="sub mono">蜜桃</span></a>
<div class="search"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-search"/></svg>
- <input id="q" type="search" placeholder="搜名字 / 创作者 / 番号" autocomplete="off"></div>
+ <input id="q" type="search" placeholder="搜索名字、创作者或番号…" autocomplete="off"></div>
<button class="ib" id="immerseBtn" title="沉浸模式 · 随机连播"><svg viewBox="0 0 24 24"><use href="#i-play"/></svg></button>
<button class="ib" id="searchBtn" title="搜索"><svg viewBox="0 0 24 24"><use href="#i-search"/></svg></button>
@@ -1050,7 +1050,7 @@ async function openStats(push=true){
$('#stats').innerHTML=`
<div class="statshead"><button class="backbtn" id="statsBack" title="返回浏览">${icon('chevron-left')}<span>返回</span></button>
<div><h2 class="disp">统计与管理</h2>
- <div class="sub mono">馆藏、归属、加工与真实观看行为</div></div>
+ </div>
</div>
<div class="scards">
${card('库存', d.by_loc.map(l=>kv(LOC[l.k]||l.k, l.videos.toLocaleString(), gb(l.bytes))).join('')
@@ -1064,7 +1064,7 @@ async function openStats(push=true){
kv('已抽帧', a.thumb.toLocaleString(), pct(a.thumb,a.videos)+'%')+bar(a.thumb,a.videos)
+kv('已探测时长', a.duration.toLocaleString(), pct(a.duration,a.videos)+'%')+bar(a.duration,a.videos)
+kv('有内容标签', d.tag_cov.toLocaleString(), pct(d.tag_cov,a.videos)+'%')+bar(d.tag_cov,a.videos))}
- ${card('消费(推荐的燃料)',
+ ${card('观看',
`<div class="big">${cs.played.toLocaleString()}</div><div class="bigsub">看过的片子</div>`
+kv('累计观看', hrs(cs.play_seconds))
+kv('高潮计数', cs.o_total.toLocaleString())
@@ -1164,7 +1164,7 @@ async function openEntity(kind,name,push=true){
<div class="entityhero"><div class="entityportrait">${image}<span>${esc(name.slice(0,1))}</span></div>
<div><h2 class="disp">${esc(d.canonical_name)}</h2>
<div class="alias mono">${(d.aliases||[]).length?'别名 · '+d.aliases.map(esc).join(' / '):'暂无别名'} · ${d.asset_count.toLocaleString()} 个视频</div>
- <div class="entitysummary">${esc(d.summary||'简介尚未补齐;页面结构和来源边界已经就绪。')}</div>
+ ${d.summary?`<div class="entitysummary">${esc(d.summary)}</div>`:''}
${links?`<div class="entitylinks">${links}</div>`:''}
${terms?`<div class="entityterms">馆藏检索词 · ${terms}</div>`:''}</div></div>
<div class="entitysection"><h3>${labels[kind]||kind}的馆藏作品 · ${items.total.toLocaleString()}</h3>
@@ -1257,7 +1257,7 @@ async function load(reset){
if(state.state==='ads'){
const d=await api('/api/ads?limit=200'); cache(d.items);
$('#grid').innerHTML=d.items.map(it=>cardHtml(it)).join('');
- $('#count').innerHTML=`疑似广告 ${d.total} 个 · 看图确认后点「标记待删」,攒够走 CSV 流程再删`;
+ $('#count').innerHTML=`疑似广告 ${d.total} 个 · 标记后统一复核,不会直接删除`;
$('#loadSentinel').hidden=true; $('#shortsSec').hidden=true; wireCards($('#grid')); return;
}
const p=new URLSearchParams(Object.entries(state).filter(([,v])=>v));
@@ -1276,8 +1276,6 @@ const loadObserver=new IntersectionObserver(entries=>{
offset+=60;load(false)}
},{rootMargin:'320px'});
loadObserver.observe($('#loadSentinel'));
-const SEARCH_HINTS=['Prestige','FC2','Sakura Misaki','丝袜','足交','ABW 番号'];
-$('#q').placeholder='试试:'+SEARCH_HINTS[Math.floor(Math.random()*SEARCH_HINTS.length)];
const runSearch=()=>{state.q=$('#q').value.trim();route(state.q?'/?q='+encodeURIComponent(state.q):'/',true);load(true)};
let qt;$('#q').oninput=()=>{clearTimeout(qt);qt=setTimeout(runSearch,320)};
$('#q').onkeydown=e=>{if(e.key==='Enter'){e.preventDefault();clearTimeout(qt);runSearch();$('#q').blur()}};
@@ -1352,14 +1350,14 @@ async function openItem(id,push=true){
<button class="later" id="stageLater" aria-label="稍后看" title="稍后看 · 加入或移出队列" aria-pressed="${!!it.watch_later}">${it.watch_later?icon('check'):icon('bookmark-plus')}</button>
<button class="dispose" data-kind="dispose" aria-label="加入待删候选" title="加入待删候选 · 不立即删除;统一复核 CSV 后才执行" aria-pressed="${it.disposal==='pending'}">${icon('trash')}</button></div>
<div class="preference">
- <textarea id="likeReason" maxlength="2000" placeholder="为什么喜欢?例如节奏、人物、镜头、氛围……">${esc(it.like_reason||'')}</textarea>
- <div class="preference-foot"><span id="preferenceState">原文仅保存在本机</span>
+ <textarea id="likeReason" maxlength="2000" placeholder="为什么喜欢?">${esc(it.like_reason||'')}</textarea>
+ <div class="preference-foot"><span id="preferenceState">仅保存在本机</span>
<button class="savepreference" id="savePreference">保存原因</button></div>
</div>
<button class="obtn" data-kind="o">${icon('sperm')}<span>记一次高潮</span><b class="mono" id="oCount">${it.o_count||0}</b></button>
- <div class="hint mono">待删只加入候选,不会删除文件;实际删除需复核 CSV 后单独执行。</div>
+ <div class="hint mono">待删仅作标记,不会删除文件。</div>
</div></div>
- <div class="next"><h3>接着看 · 口味接近</h3><div class="nrow" id="nrow">载入中…</div></div>`;
+ <div class="next"><h3>接着看</h3><div class="nrow" id="nrow">载入中…</div></div>`;
$('#closeStage').onclick=()=>disposeStage(true);
const g=$('#gate'); if(g)g.onclick=()=>{const v=$('#vid');
@@ -1402,7 +1400,7 @@ async function openItem(id,push=true){
try{const r=await api('/api/preference',{method:'POST',body:JSON.stringify({id:it.id,liked,reason})});
it.liked=r.liked;it.like_reason=r.like_reason;
like.setAttribute('aria-pressed',r.liked);like.setAttribute('aria-label',r.liked?'取消喜欢':'喜欢');
- stateText.textContent='已保存 · AI 不会直接改写原文';
+ stateText.textContent='已保存';
}catch(e){stateText.textContent='保存失败 · 请重试'}finally{btn.disabled=false}
};
$('#likeBtn').onclick=async()=>{const b=$('#likeBtn');