Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 统一账号名册与订阅提示的验收

longmeidao91c24d1cf43d
diff --git a/docs/STATUS.md b/docs/STATUS.md
index 8a46bf08a..57cba9a6a 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -9,7 +9,7 @@
- 分类:女优、素人、西方可交叉;账号分网黄博主、卖家、动画作者。
- 目录归属修复 652 条;StraplessDildo 归厂牌并接官网标识,4 项来源未取得。回执见 `peach-data/review/`。
- 身份:18 组同人共用资料,旧址跳转;FC2 分段按作品计数,文件保留。
-- JAV 头像 816 张(中位脸宽 258px,38 张水印待复核);档案 16 位、14 位头像候选 253 张、2 张官方封面。
+- JAV 头像 816 张(中位脸宽 258px,38 张水印待复核);档案 17 位、14 位头像候选 253 张、2 张官方封面。
- 「整理」(ADR-0039)可预览、执行、回滚,真实库未跑过。
- 产地是独立维度、JAV 是其投影:`region` 空时按厂牌、创作者、番号逐层推断,不落库;韩国 MIB 不算 JAV。
- Windows writer 支持异常恢复;`restart_windows_tray.py --source` 重启。内置盘存代码数据,外置盘供媒体。
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index 95b0ea819..5e88ccf22 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -3300,7 +3300,7 @@ describe('设计决定', () => {
assert.equal(await tip.isVisible(), false);
await feed.hover();
assert.equal(await tip.isVisible(), true, '悬停没有说明这枚图标是干嘛的');
- assert.match(await tip.innerText(), /JavDB/);
+ assert.equal(await tip.innerText(), '订阅新作');
const placed = await tip.evaluate((element) => {
const box = element.getBoundingClientRect();
return box.left >= 0 && box.right <= innerWidth && box.bottom <= innerHeight;
diff --git a/frontend/e2e/smoke.test.ts b/frontend/e2e/smoke.test.ts
index 0f26486e0..64f2b3dc4 100644
--- a/frontend/e2e/smoke.test.ts
+++ b/frontend/e2e/smoke.test.ts
@@ -43,8 +43,8 @@ const statsInventoryTab = (page: Page): Locator =>
const ROUTES: readonly Route[] = [
{ path: '/', body: (page) => [page.locator('#grid [data-media-card]').first()] },
{ path: '/performers', body: (page) => [heading(page, '#index', '艺人'), indexEntries(page)] },
- { path: '/creators', body: (page) => [heading(page, '#index', '创作者'), indexEntries(page)] },
- { path: '/creators/', body: (page) => [heading(page, '#index', '创作者'), indexEntries(page)] },
+ { path: '/creators', body: (page) => [heading(page, '#index', '卖家与动画作者'), indexEntries(page)] },
+ { path: '/creators/', body: (page) => [heading(page, '#index', '卖家与动画作者'), indexEntries(page)] },
{ path: '/studios', body: (page) => [heading(page, '#index', '厂牌'), indexEntries(page)] },
{ path: '/agencies', body: (page) => [heading(page, '#index', '事务所'), indexEntries(page)] },
{ path: '/tags', body: (page) => [heading(page, '#index', '标签'), indexEntries(page)] },
diff --git a/frontend/src/catalog-onboarding.ts b/frontend/src/catalog-onboarding.ts
index 574d11d1c..c12e84fa6 100644
--- a/frontend/src/catalog-onboarding.ts
+++ b/frontend/src/catalog-onboarding.ts
@@ -30,7 +30,7 @@ export function catalogEmptyHtml({ kind = 'catalog', filtered = false, jav = fal
jav ? '已扫描但尚未补充发行资料的视频可在全部内容中查看。' : '清除筛选或搜索条件后查看全部内容。',
{ actions: '<a class="geist-button primary" href="/?loc=&thumb=0">查看全部内容</a>' });
if (kind !== 'catalog') {
- const labels: Record<string, string> = { tags: '标签', performers: '艺人', creators: '创作者', studios: '厂牌', agencies: '事务所', series: '系列' };
+ const labels: Record<string, string> = { tags: '标签', performers: '艺人', creators: '卖家与动画作者', studios: '厂牌', agencies: '事务所', series: '系列' };
// 在线那一档数的是来源上的东西,名字也跟着来源的说法:艺人页在线摆的是关注来源里的创作者。
const onlineLabels: Record<string, string> = { tags: '标签', performers: '创作者' };
const label = (online ? onlineLabels[kind] : '') || labels[kind] || '资料';
diff --git a/frontend/test/catalog-onboarding.test.ts b/frontend/test/catalog-onboarding.test.ts
index 332591626..6030e39e3 100644
--- a/frontend/test/catalog-onboarding.test.ts
+++ b/frontend/test/catalog-onboarding.test.ts
@@ -36,5 +36,6 @@ describe('馆藏与资料空状态', () => {
expect(catalogEmptyHtml({ kind })).toContain('data-geist-empty-state');
}
expect(catalogEmptyHtml({ kind: 'tags', online: true })).toContain('关注来源');
+ expect(catalogEmptyHtml({ kind: 'creators' })).toContain('还没有卖家与动画作者');
});
});
diff --git a/frontend/test/react/index-page.test.tsx b/frontend/test/react/index-page.test.tsx
index ba9aed9f4..752651bca 100644
--- a/frontend/test/react/index-page.test.tsx
+++ b/frontend/test/react/index-page.test.tsx
@@ -89,6 +89,7 @@ describe('名册', () => {
const fetcher = serve(() => ({ items: [person('卖家账号', { identity_labels: ['卖家'] })], categories:{ animation:1, seller:1 }, has_more: false }));
const given = props({ kind: 'creators' });
const host = await open(given);
+ expect(host.querySelector('[data-index-title]')?.textContent).toBe('卖家与动画作者');
expect(cells(host)[0]?.textContent).toContain('动画作者');
expect(host.querySelector('[aria-label="身份分类"]')?.textContent).toBe('全部卖家动画作者');
await click(buttonNamed('卖家', host));
diff --git a/web/app.js b/web/app.js
index fd31d33f4..fbd26ca3d 100644
--- a/web/app.js
+++ b/web/app.js
@@ -149,7 +149,7 @@ const ROUTES=[
{match:'/performers',nav:'performers',title:'艺人',
open:(params,push)=>openIndex('performers',push),
reload:()=>openIndex('performers',false)},
- {match:'/creators',title:'创作者',
+ {match:'/creators',title:'卖家与动画作者',
open:(params,push)=>openIndex('creators',push),
reload:()=>openIndex('creators',false)},
/* 厂牌出片、事务所出人,是两种实体,所以是两条路径;页内那个
@@ -2401,7 +2401,7 @@ document.addEventListener('click',event=>{
整页在 React(`frontend/src/react/index/`)。壳做三件事:从地址栏读出这一页的状态、铺骨架、
把遗留层唯一那一份取图链与去处当 props 递进去。换档(厂牌↔事务所、本地↔在线、类型、视图、
过滤词)由页面经 `route` 写回地址栏,不经过这里重挂。 */
-const INDEX_TITLES={performers:'艺人',creators:'创作者',studios:'厂牌',
+const INDEX_TITLES={performers:'艺人',creators:'卖家与动画作者',studios:'厂牌',
agencies:'事务所',tags:'标签'};
/* 艺人索引版式,思路同 JAV 大图:列宽不变、只把图从圆框拉成竖幅,一屏里的人数
不变而每张脸更大;紧凑就是圆头像那一屏。资料页的名册读的是同一个设置值。 */
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 3d8d4a0a2..06e093c37 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -4743,7 +4743,7 @@ function Os({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
}[e] : "") || {
tags: "标签",
performers: "艺人",
- creators: "创作者",
+ creators: "卖家与动画作者",
studios: "厂牌",
agencies: "事务所",
series: "系列"