Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 女优页头三栏:名字行、+N 别名浮层、纯图标外链、右侧资料表

longmeidaof404b3643a8d
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index f9c83e152..df2545c01 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -351,6 +351,77 @@ async function openPerformer(browser: Browser, viewport = DESKTOP): Promise<Visi
return opened;
}
+/** 有 minnano-av 资料的女优。`profile` 与 `name_groups` 照 `peach.entity_profile.header` 的形状写,
+ * 出道片名故意很长:资料表那一格要单行截断。 */
+const PROFILED = {
+ name: '篠田ゆう',
+ profile: {
+ birth_date: '1991-07-21', age: 35, height: 155, bust: 86, waist: 60, hip: 87, cup: 'F',
+ debut_date: '2010-12-02', debut_title: 'セキララ 〜今どき世代のゆるい性事情〜 03 はじめての撮影でとまどう素人娘の記録',
+ active: { from: '2010', to: '2023' },
+ tags: ['美乳', '美尻', 'レズ', 'アナル', '巨乳', '巨尻', '美人'],
+ },
+ name_groups: {
+ reading: 'しのだゆう', shown: ['篠崎ゆう子', '高木早希', '橋本真紀'], total: 7,
+ groups: [
+ { label: '旧名义', names: [{ name: '篠崎ゆう子', reading: 'しのざきゆうこ' }] },
+ { label: '舞ワイフ', names: [{ name: '橋本真紀' }, { name: '桧山彩音' }, { name: '篠田杏奈' }] },
+ { label: 'ラグジュTV', names: [{ name: '高木早希' }] },
+ { label: '其它', names: [{ name: '城田優子' }] },
+ ],
+ },
+};
+
+/** 打开一位有资料的女优:资料表、名字行和外链照服务端下发的形状写,主题按参数切好。 */
+async function openProfiledPerformer(browser: Browser, viewport = DESKTOP, theme: 'light' | 'dark' = 'light'): Promise<Visit> {
+ const opened = await visit(browser, '/', viewport);
+ await opened.page.route(/\/api\/entity\?/, (route) => route.fulfill({ json: {
+ id: 90_101, kind: 'performer', canonical_name: PROFILED.name, aliases: ['篠崎ゆう子'], display_aliases: ['篠崎ゆう子'],
+ user_aliases: [], asset_count: 42, tags: [], related_performers: [], metadata: {},
+ has_image: false, has_avatar: false, avatar_focus: null, representative_asset_id: null,
+ agency: { id: 90_102, canonical_name: 'New Actor eXperience', source: 'test', checked_at: '' },
+ links: [
+ { link_id: 90_201, link_kind: 'official', clickable: true, label: 'New Actor eXperience',
+ url: 'https://official.nax-pro.com/actress/shinoda' },
+ { link_id: 90_202, link_kind: 'social', clickable: true, label: 'X @shinoda_yu', url: 'https://x.com/shinoda_yu' },
+ ],
+ entry_links: [{ site: 'minnano-av', label: 'みんなのAV', ordinal: '', slot: 'pill', mark: 'brand-minnano',
+ url: 'https://www.minnano-av.com/actress12345.html' }],
+ profile: PROFILED.profile, name_groups: PROFILED.name_groups,
+ } }));
+ // 这几条链接是造出来的,服务端的圆标取不到;那是另一条判据,这里给一张能加载完的图。
+ await opened.page.route('**/link-mark**', (route) => route.fulfill({
+ status: 200, contentType: 'image/png', body: Buffer.from(PIXEL, 'base64'),
+ }));
+ await opened.page.goto(new URL(`/performers/${encodeURIComponent(PROFILED.name)}`, opened.page.url()).href, { waitUntil: 'load' });
+ await opened.page.locator('.entityhero .entitylinks').waitFor({ timeout: 15_000 });
+ await settle(opened.page);
+ await opened.page.evaluate((dark) => {
+ document.documentElement.dataset.theme = dark ? 'dark' : 'light';
+ document.documentElement.classList.toggle('dark', dark);
+ }, theme === 'dark');
+ return opened;
+}
+
+/** 资料卡此刻的几何:身份列、资料表与卡本身的外框,以及资料表那道分隔线落在哪一边。 */
+async function heroGeometry(page: Page) {
+ return page.evaluate(() => {
+ const rect = (selector: string) => {
+ const box = document.querySelector(selector)?.getBoundingClientRect();
+ return box ? { left: box.left, right: box.right, top: box.top, bottom: box.bottom } : null;
+ };
+ const hero = document.querySelector('.entityhero')!;
+ const facts = document.querySelector('.entityfacts');
+ const style = facts ? getComputedStyle(facts) : null;
+ return {
+ hero: rect('.entityhero'), identity: rect('.entityidentity'), facts: rect('.entityfacts'),
+ heroScrolls: hero.scrollWidth > hero.clientWidth + 1,
+ rule: style ? { left: style.borderLeftWidth, top: style.borderTopWidth } : null,
+ labels: [...document.querySelectorAll('.entityfacts dt')].map((dt) => dt.textContent!.trim()),
+ };
+ });
+}
+
/** 禁用档的三样颜色(peach-web-ui「按钮悬停只抬填充」那条):`--surface` 底、`--border-15` 边、`--muted` 字。 */
async function disabledTokens(page: Page) {
return {
@@ -1669,6 +1740,142 @@ describe('设计决定', () => {
});
}
+ for (const viewport of [DESKTOP, { name: 'wide', width: 1440, height: 900, mobile: false }, MOBILE]) {
+ it(`女优页头:宽屏资料表在身份信息右侧隔一道竖线,窄屏排到下面隔一道横线,整张卡不横向溢出(${viewport.name})`, { timeout: 60_000 }, async () => {
+ const opened = await openProfiledPerformer(browser, viewport);
+ try {
+ const geometry = await heroGeometry(opened.page);
+ assert.deepEqual(geometry.labels, ['生日', '身材', '出道', '出演期间', '标签'], '资料表不是那五项');
+ assert.ok(geometry.facts && geometry.identity && geometry.hero, '页头缺了资料表');
+ if (viewport.mobile) {
+ assert.ok(geometry.facts.top >= geometry.identity.bottom - 0.5, '窄屏下资料表没有排到身份信息下面');
+ assert.deepEqual(geometry.rule, { left: '0px', top: '1px' }, '窄屏下资料表该用横线和身份信息隔开');
+ } else {
+ assert.ok(geometry.facts.left >= geometry.identity.right - 0.5, '宽屏下资料表没有排在身份信息右侧');
+ assert.deepEqual(geometry.rule, { left: '1px', top: '0px' }, '宽屏下资料表该用竖线和身份信息隔开');
+ }
+ assert.ok(geometry.facts.right <= geometry.hero.right + 0.5, '资料表越出了资料卡');
+ assert.equal(geometry.heroScrolls, false, '资料卡里有东西被横向裁掉');
+ const debut = await opened.page.locator('.entityfacts dd[title]').evaluate((dd) => ({
+ title: dd.getAttribute('title'), wrap: getComputedStyle(dd).whiteSpace,
+ cut: getComputedStyle(dd).textOverflow, clipped: dd.scrollWidth > dd.clientWidth,
+ lines: Math.round(dd.getBoundingClientRect().height / parseFloat(getComputedStyle(dd).lineHeight)),
+ }));
+ assert.equal(debut.title, PROFILED.profile.debut_title, '出道那一格的 title 没给全名');
+ assert.deepEqual([debut.wrap, debut.cut, debut.lines], ['nowrap', 'ellipsis', 1], '出道片名没有单行截断');
+ const page_ = await layout(opened.page);
+ assert.ok(page_.scrollWidth <= page_.viewportWidth, `页头把页面撑出了横向滚动:${page_.offenders.join(',')}`);
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+ }
+
+ it('女优页头名字下面一行:视频数、事务所与读音加前三个别名,外链一律 36px 纯图标方块', { timeout: 60_000 }, async () => {
+ const opened = await openProfiledPerformer(browser, DESKTOP);
+ try {
+ const page = opened.page;
+ const line = await page.locator('.entityhero .alias').evaluate((alias) => ({
+ glyphs: [...alias.querySelectorAll(':scope > .metaitem > svg use')].map((use) => use.getAttribute('href')),
+ names: [...alias.querySelectorAll('.aliasnames > span')].map((span) => span.textContent!.trim()),
+ more: alias.querySelector('.aliasmore')?.textContent?.trim() ?? '',
+ agency: alias.querySelector('a[data-agency]')?.textContent?.trim() ?? '',
+ }));
+ assert.deepEqual(line.glyphs, ['#i-film', '#i-briefcase', '#i-id-card'], '名字那一行的三项不是视频、事务所、别名');
+ assert.deepEqual(line.names, ['しのだゆう', '篠崎ゆう子', '高木早希', '橋本真紀'], '读音没有排在别名最前,或别名不是前三个');
+ assert.equal(line.more, '+4', '「+N」数的不是剩下那几个别名');
+ assert.equal(line.agency, 'New Actor eXperience');
+ const links = await page.locator('.entityhero .entitylinks a').evaluateAll((anchors) => anchors.map((a) => {
+ const box = a.getBoundingClientRect();
+ return { size: `${Math.round(box.width)}x${Math.round(box.height)}`, cls: a.className, title: a.getAttribute('title'),
+ name: a.querySelector('.sr-only')?.textContent ?? '', visibleText: a.querySelector('.entitylinklabel') !== null };
+ }));
+ assert.equal(links.length, 3);
+ for (const link of links) {
+ assert.deepEqual([link.size, link.cls, link.visibleText], ['36x36', 'iconlink', false], `${link.title} 不是纯图标方块`);
+ assert.equal(link.name, link.title, `${link.title} 给读屏的名字和悬停提示不一致`);
+ }
+ assert.deepEqual(links.map((link) => link.title), ['みんなのAV', 'New Actor eXperience 官方资料', 'X @shinoda_yu']);
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ for (const viewport of [DESKTOP, MOBILE]) {
+ it(`别名的「+N」浮层进顶层按名义分组:悬停、聚焦都出,不被资料卡裁掉,Escape 收起(${viewport.name})`, { timeout: 60_000 }, async () => {
+ const opened = await openProfiledPerformer(browser, viewport);
+ try {
+ const page = opened.page;
+ const more = page.locator('.aliasmore');
+ const pop = page.locator('#entityAliasPop');
+ assert.equal(await pop.isVisible(), false);
+ await more.hover();
+ await pop.waitFor({ state: 'visible', timeout: 5_000 });
+ assert.equal(await more.getAttribute('aria-expanded'), 'true');
+ const shown = await pop.evaluate((element) => {
+ const box = element.getBoundingClientRect();
+ return {
+ topLayer: element.matches(':popover-open'),
+ inView: box.left >= 0 && box.right <= innerWidth && box.top >= 0 && box.bottom <= innerHeight,
+ title: element.querySelector('.aliaspophead')?.textContent?.trim(),
+ groups: [...element.querySelectorAll('dt')].map((dt) => dt.textContent!.trim()),
+ face: getComputedStyle(element).backgroundColor,
+ };
+ });
+ assert.equal(shown.topLayer, true, '别名浮层没进顶层,会被资料卡的 overflow:hidden 裁掉');
+ assert.ok(shown.inView, '别名浮层越出了视口');
+ assert.equal(shown.title, '7 个别名');
+ assert.deepEqual(shown.groups, ['旧名义', '舞ワイフ', 'ラグジュTV', '其它']);
+ assert.notEqual(shown.face, 'rgba(0, 0, 0, 0)', '别名浮层没有底色');
+ // 指针从按钮挪到浮层上读名字,浮层不能在半路收起。
+ const box = (await pop.boundingBox())!;
+ await page.mouse.move(box.x + box.width / 2, box.y + box.height / 2, { steps: 4 });
+ await page.waitForTimeout(300);
+ assert.equal(await pop.isVisible(), true, '指针移到浮层上它就收起了');
+ await page.mouse.move(1, 1);
+ await pop.waitFor({ state: 'hidden', timeout: 5_000 });
+ await more.focus();
+ await page.keyboard.press('Tab');
+ await page.keyboard.press('Shift+Tab');
+ await pop.waitFor({ state: 'visible', timeout: 5_000 });
+ await page.keyboard.press('Escape');
+ assert.equal(await pop.isVisible(), false, 'Escape 收不起别名浮层');
+ const page_ = await layout(page);
+ assert.ok(page_.scrollWidth <= page_.viewportWidth, '别名浮层把页面撑出了横向滚动');
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+ }
+
+ it('女优页头深色主题:资料表与别名浮层跟着主题取墨色和浮层底', { timeout: 60_000 }, async () => {
+ const opened = await openProfiledPerformer(browser, DESKTOP, 'dark');
+ try {
+ const page = opened.page;
+ const ink = await tokenColor(page, '#main', '--ink');
+ const muted = await tokenColor(page, '#main', '--muted');
+ const ground = await tokenColor(page, '#main', '--ground');
+ const facts = await page.locator('.entityfacts').evaluate((dl) => ({
+ dd: getComputedStyle(dl.querySelector('dd')!).color, dt: getComputedStyle(dl.querySelector('dt')!).color,
+ }));
+ assert.equal(facts.dd, ink, '深色下资料表的值不是墨色');
+ assert.equal(facts.dt, muted, '深色下资料表的项名不是次级字色');
+ await page.locator('.aliasmore').hover();
+ const pop = page.locator('#entityAliasPop');
+ await pop.waitFor({ state: 'visible', timeout: 5_000 });
+ const face = await pop.evaluate((element) => getComputedStyle(element).backgroundColor);
+ assert.notEqual(face, 'rgba(0, 0, 0, 0)');
+ assert.notEqual(face, 'rgb(255, 255, 255)', '深色下别名浮层还是白底');
+ assert.notEqual(ground, 'rgb(255, 255, 255)', '主题没有切到深色');
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+
it('人物页同台艺人的头像悬停和首页顶栏女优头像同一副:抬整格填充、不描圈', { timeout: 60_000 }, async () => {
const opened = await openPerformer(browser, DESKTOP);
try {
diff --git a/scripts/vendor_web_dependencies.mjs b/scripts/vendor_web_dependencies.mjs
index cdeef0336..aa668f77e 100644
--- a/scripts/vendor_web_dependencies.mjs
+++ b/scripts/vendor_web_dependencies.mjs
@@ -81,6 +81,9 @@ const lucideIcons = new Map([
["image","image"], ["gamepad-2","gamepad-2"],
["camera","camera"], ["video","video"], ["scan-search","scan-search"],
["clapperboard", "clapperboard"], ["briefcase", "briefcase"],
+ // 女优资料页头(ADR-0069):名字那一行的别名,右侧资料表的生日、身材、出道与出演期间。
+ ["id-card", "id-card"], ["cake", "cake"], ["ruler", "ruler"], ["flag", "flag"],
+ ["calendar-range", "calendar-range"],
["home", "home"], ["panel-left", "panel-left"], ["search", "search"],
["layout-grid", "layout-grid"], ["square-check-big", "square-check-big"],
["columns-2", "columns-2"],
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index dd578f914..d73843656 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -2181,10 +2181,11 @@ class WebUiSourceTests(unittest.TestCase):
def test_social_links_show_only_the_platform_mark_not_the_handle(self):
# handle 是网址的一部分,写出来只是把 URL 抄一遍:`X @remu19971203` 里真正有
- # 信息量的只有那个 X。图标本身就说明了去哪,名字留给官网那种「点之前看不出是谁」
- # 的链接。纯图标没有可读文字,所以标签必须留给辅助技术,不能整个丢掉。
+ # 信息量的只有那个 X。图标本身就说明了去哪,名字留给公司页官网那种「点之前看不出
+ # 是谁」的链接;女优页连官网也是图标(ADR-0069)。纯图标没有可读文字,所以标签必须
+ # 留给辅助技术,不能整个丢掉。
self.assertPageContains('<a class="iconlink" href="${esc(x.url)}"')
- self.assertPageContains('<span class="sr-only">${esc(x.label)}</span></a>')
+ self.assertPageContains('<span class="sr-only">${esc(name)}</span></a>')
self.assertPageContains('.entitylinks a.iconlink{width:36px;padding:0;gap:0;justify-content:center}')
# 悬停只让药丸的边显出来:这一排是图标,底色一换就读成「选中了这一个」。
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
@@ -2203,7 +2204,7 @@ class WebUiSourceTests(unittest.TestCase):
# 同一家站在别处以账本链接出现时,写的名字要和入口那枚药丸一致。
self.assertPageContains("['minnano-av.com','みんなのAV']")
self.assertPageContains(".entitylinks a.urllink{letter-spacing:.02em}")
- links = self.app_js[self.app_js.index("const siteLinks=(d.links||[]).map"):]
+ links = self.app_js[self.app_js.index("const siteMark=x=>"):]
links = links[:links.index(".join('');")]
official = links.split('class="iconlink"')[-1]
self.assertIn('<img class="entityfavicon" src="${esc(linkMarkUrl(x))}"', official)
@@ -2219,9 +2220,9 @@ class WebUiSourceTests(unittest.TestCase):
self.assertCode("const entryLinks=d.entry_links||[];")
# minnano-av 那一枚混进上面那排外链,排在最左。
self.assertCode("const links=entryLinks.filter(x=>x.slot==='pill').map(x=>")
+ # 它也是纯图标:名字在 title 和读屏文字里,与社媒那几枚同一个写法。
self.assertPageContains(
- '<span class="entitylinkicon brand">${icon(x.mark)}</span>'
- '<span class="entitylinklabel">${esc(x.label)}</span></a>')
+ "iconLink(x,`<span class=\"entitylinkicon brand\">${icon(x.mark)}</span>`,x.label)")
self.assertCode(").join('')+siteLinks;")
self.assertCode("const entryMarks=entryLinks.filter(x=>x.slot==='mark').map(x=>")
self.assertPageContains(
@@ -6784,7 +6785,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("entityPath('agency',agencyName)")
self.assertPageContains("${memberHtml}${agencyHtml}")
# 没有对应实体时仍写名字,但不做成链接——那会通向一个不存在的页面。
- self.assertCode(":` · ${esc(agencyName)}`;")
+ self.assertCode(":esc(agencyName);")
# 公司名自己说明了它是什么,这一行只出名字,不加类别名占横向空间。
self.assertPageLacks("· 事务所 ${esc(agencyName)}")
# 链接标签写的是那家站的短名(公司页上自家站写「官方网站」),全称留在 title 里。
@@ -9160,6 +9161,8 @@ class WebUiSourceTests(unittest.TestCase):
reviewed_end_selectors = {
".alphatag span:first-of-type", ".av .nm",
".entitylinklabel",
+ # 女优页头资料表的出道那一格:片名尾部省略,全名在 title 里。
+ ".entityfacts .clip",
# 作者是展示名,尾部省略;完整身份保留在 title。
".followbyline .followauthor",
".followpageaction .fmeta",
@@ -9569,7 +9572,17 @@ class WebUiSourceTests(unittest.TestCase):
'title="打开详情" aria-label="打开详情">${icon(\'expand\')}',
# 缩放条两端步进的是倍数,加减号没说清加减的是什么。
'data-zoom-step="-1" aria-label="缩小">${icon(\'zoom-out\')}',
- 'data-zoom-step="1" aria-label="放大">${icon(\'zoom-in\')}'):
+ 'data-zoom-step="1" aria-label="放大">${icon(\'zoom-in\')}',
+ # 女优页头(ADR-0069):名字下面那一行是胶片数视频、公文包标事务所(与事务所
+ # 索引同一枚)、证件标别名;资料表五项各一枚,标签与标签页同一枚。
+ "title=\"视频\">${icon('film')}<span>${count}</span>",
+ "title=\"事务所\">${icon('briefcase')}<span>${agencyLink}</span>",
+ "${icon('id-card')}<span class=\"aliasnames\" title=\"别名\">",
+ "row('cake','生日',",
+ "row('ruler','身材',",
+ "row('flag','出道',",
+ "row('calendar-range','出演期间',",
+ "row('tags','标签',"):
self.assertPageContains(needle)
# 关注来源那几处问的就是「有没有更新」,转圈归它们;页面归 React 之后是 Remix 的
# 同一枚字形,全选仍是双勾。
@@ -10980,9 +10993,11 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn("<a class=\"urllink\"", app)
urllink = app[app.index("<a class=\"urllink\""):]
urllink = urllink[:urllink.index("</a>")]
- self.assertIn("linkMarkUrl(x)", urllink)
- self.assertIn("data-drop=\"self\"", urllink)
- self.assertIn("officialLinkText(x,kind,", urllink)
+ mark = app[app.index("const siteMark=x=>"):]
+ mark = mark[:mark.index("\n")]
+ self.assertIn("linkMarkUrl(x)", mark)
+ self.assertIn("data-drop=\"self\"", mark)
+ self.assertIn("${siteMark(x)}<span class=\"entitylinklabel\">${esc(officialLinkText(x,kind,", urllink)
def test_a_collapsed_ranking_shows_a_fixed_preview_and_one_way_back(self):
"""收起的排名只露前十,展开与收起共用同一颗图标按钮。
diff --git a/web/app.js b/web/app.js
index d4311ae4f..462fe2e74 100644
--- a/web/app.js
+++ b/web/app.js
@@ -4831,6 +4831,9 @@ const COSTAR_SKELETON_PEOPLE=12;
const costarSkeletonFoot=()=>`<div class="entityfoot"><div class="relatedpeople">${
'<span class="av avskeleton"><span class="ring"></span><span class="nm">&#8203;</span></span>'
.repeat(COSTAR_SKELETON_PEOPLE)}</div></div>`;
+/* 资料表在骨架里占满五行:名单只说她有没有资料表,不说有几项,按最常见的五项都有留位。 */
+const factsSkeleton=()=>`<dl class="entityfacts">${
+ '<dt><span class="skeleton"></span></dt><dd><span class="skeleton"></span></dd>'.repeat(5)}</dl>`;
/* 最近一轮取封面断在连接上、这一行又还有没封面的卡时,行上方挂一条 Note 指去配连接方式。
中国移动宽带直连 DMM 图片主机大多在握手后被断开,官方其实有图;不说清楚的话,一排
@@ -4899,6 +4902,88 @@ const ENTITY_FEED_WAIT_TRIES=40;
const entityFeedTip=on=>on
?'已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。'
:'订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。';
+/* 女优页头右侧的资料表(ADR-0069):生日、身材、出道、出演期间和站上的标签。服务端只下发
+ 有值的项,这里有哪项画哪项,一项都没有就不出这张表。出道片名常有四五十个字,单行截断,
+ 全名放在 title 里。仍在活跃的写「至今」:服务端只给 `ongoing`,字归页面。 */
+function entityFactsHtml(p){
+ if(!p)return '';
+ const rows=[],row=(glyph,label,value,attrs='')=>rows.push(`<dt>${icon(glyph)}${label}</dt><dd${attrs}>${value}</dd>`);
+ const num=value=>`<span class="num">${esc(value)}</span>`,sub=value=>`<span class="sub">${value}</span>`;
+ if(p.birth_date)row('cake','生日',`${num(p.birth_date)} ${sub(`· ${p.age} 岁`)}`);
+ const size=[['T',p.height],['B',p.bust],['W',p.waist],['H',p.hip]].filter(([,value])=>value)
+ .map(([letter,value])=>`${letter}${value}`).join(' · ');
+ const cup=p.cup?sub(`${size?'· ':''}${esc(p.cup)} 罩杯`):'';
+ if(size||cup)row('ruler','身材',[size&&num(size),cup].filter(Boolean).join(' '));
+ if(p.debut_date||p.debut_title)row('flag','出道',[p.debut_date&&num(p.debut_date),p.debut_title&&sub(esc(p.debut_title))]
+ .filter(Boolean).join(' '),p.debut_title?` class="clip" title="${esc(p.debut_title)}"`:'');
+ const active=p.active||{};
+ if(active.from)row('calendar-range','出演期间',
+ esc(`${active.from}${active.ongoing?' – 至今':active.to?` – ${active.to}`:''}`),' class="num"');
+ if((p.tags||[]).length)row('tags','标签',p.tags.map(tag=>`<span class="facttag">${esc(tag)}</span>`).join(''),' class="facttags"');
+ return rows.length?`<dl class="entityfacts">${rows.join('')}</dl>`:'';
+}
+/* 名字下面那一行的别名:读音在最前,接着是前几个名义,余下的收进「+N」。浮层按名义分组
+ (现名、旧名义、各渠道、其它),同一个人用过的名字在这里一次看全。
+ `r18:performer` 的罗马字和作品起的一次性称呼由服务端排除,这里只排版。 */
+function entityNameLineHtml(g){
+ if(!g)return '';
+ const shown=g.shown||[],names=[g.reading,...shown].filter(Boolean),rest=(g.total||0)-shown.length;
+ const groups=(g.groups||[]).map(group=>`${group.label?`<dt>${esc(group.label)}</dt>`:''}<dd${group.label?'':' class="wide"'}>${
+ group.names.map(entry=>`<span>${esc(entry.name)}${entry.reading?`<small>${esc(entry.reading)}</small>`:''}</span>`).join('')}</dd>`).join('');
+ const more=rest>0?`<button type="button" class="aliasmore" aria-expanded="false" aria-controls="entityAliasPop"
+ aria-label="另外 ${rest} 个别名">+${rest}</button><div class="popmenu aliaspop" id="entityAliasPop" popover="manual"
+ role="group" aria-label="${g.total} 个别名"><p class="aliaspophead">${g.total} 个别名</p><dl>${groups}</dl></div>`:'';
+ return names.length||more?`<div class="metaitem aliasline">${icon('id-card')}<span class="aliasnames" title="别名">${
+ names.map(name=>`<span>${esc(name)}</span>`).join('')}</span>${more}</div>`:'';
+}
+/* 女优页外链一律是纯图标,名字只在 title 和读屏文字里。链到她所属事务所的那条(NAX 的
+ label 就是 `New Actor eXperience`)写「<事务所> 官方资料」:图标看不出那是她的官方档案页。 */
+function performerLinkName(link,agency){
+ const text=officialLinkText(link,'performer'),home=foldName(agency);
+ const own=home&&[link.label,text].map(foldName).some(said=>said&&(home.includes(said)||said.includes(home)));
+ return own?`${agency} 官方资料`:(text||link.label||'');
+}
+/* 「+N」的浮层与订阅新作的说明同一套:`popover` 进顶层,资料卡的 `overflow:hidden` 裁不到它;
+ 位置按视口算,默认贴按钮下方 8px,下面放不下翻上去,左右夹在视口内 8px。
+ 指针悬停或键盘聚焦就出,指针挪到浮层上读名字时不收;点一下钉住(触屏只有这一条路),
+ 再点、点别处或 Escape 收起。 */
+function wireAliasPop(){
+ const more=$('#index').querySelector('.aliasmore'),pop=$('#entityAliasPop');
+ if(!more||!pop)return;
+ const open=()=>pop.matches(':popover-open');
+ const place=()=>{
+ const anchor=more.getBoundingClientRect(),box=pop.getBoundingClientRect();
+ pop.style.left=`${Math.max(8,Math.min(innerWidth-box.width-8,anchor.left))}px`;
+ const below=anchor.bottom+8;
+ pop.style.top=`${below+box.height<=innerHeight-8?below:Math.max(8,anchor.top-box.height-8)}px`;
+ };
+ let pinned=false,closing=0;
+ const outside=event=>{if(!more.contains(event.target)&&!pop.contains(event.target))hide()};
+ const follow=()=>{if(pop.isConnected&&open())place();else hide()};
+ function hide(){
+ clearTimeout(closing);pinned=false;
+ removeEventListener('scroll',follow,true);removeEventListener('resize',follow);
+ removeEventListener('pointerdown',outside,true);
+ if(pop.isConnected&&open())pop.hidePopover();
+ more.setAttribute('aria-expanded','false');
+ }
+ const show=()=>{
+ clearTimeout(closing);if(open())return;
+ pop.showPopover();more.setAttribute('aria-expanded','true');place();
+ addEventListener('scroll',follow,{capture:true,passive:true});addEventListener('resize',follow,{passive:true});
+ addEventListener('pointerdown',outside,true);
+ };
+ const later=()=>{clearTimeout(closing);closing=setTimeout(()=>{
+ if(!pinned&&!more.matches(':hover,:focus-visible')&&!pop.matches(':hover'))hide()},150)};
+ more.addEventListener('pointerenter',event=>{if(event.pointerType==='mouse')show()});
+ more.addEventListener('pointerleave',later);
+ pop.addEventListener('pointerenter',()=>clearTimeout(closing));
+ pop.addEventListener('pointerleave',later);
+ more.addEventListener('focus',()=>{if(more.matches(':focus-visible'))show()});
+ more.addEventListener('blur',later);
+ more.addEventListener('click',()=>{if(pinned)hide();else{show();pinned=true}});
+ more.addEventListener('keydown',event=>{if(event.key==='Escape'&&open()){event.preventDefault();hide()}});
+}
function wireEntityFeed(entityId){
const toggle=$('#index').querySelector('[data-entity-feed]');
if(!toggle||!entityId)return;
@@ -8288,6 +8373,8 @@ function syncEntitySkeletonParts(kind,name){
()=>skeleton.querySelector('.entityhero')?.insertAdjacentHTML('beforeend',costarSkeletonFoot()));
sync(skeleton.querySelector('.feednew'),hasEntityPart(kind,name,'feed'),
()=>skeleton.querySelector('.entitysection')?.insertAdjacentHTML('beforebegin',feedNewSkeletonSection()));
+ sync(skeleton.querySelector('.entityfacts'),kind==='performer'&&hasEntityPart(kind,name,'facts'),
+ ()=>skeleton.querySelector('.entityprofile')?.insertAdjacentHTML('beforeend',factsSkeleton()));
}
/* 名字对不上任何一位时 `/api/entity` 回 `{error}`:骨架不换掉就一直在闪,读起来是还在取。 */
function showEntityMissing(kind){
@@ -8356,29 +8443,35 @@ async function openEntity(kind,name,push=true){
alt:esc(d.canonical_name),lazy:false,
style:company?'':facePos(d.avatar_focus),focus:company?null:d.avatar_focus,
dropStyle:true}):'';
- /* 链接按 beeg 的资料页形态:社媒收成纯图标,官网/事务所保留名字。
+ /* 链接按 beeg 的资料页形态:社媒收成纯图标,公司页的官网保留名字;女优页连官网也是图标,
+ 理由在 `iconLink` 那里。
社媒的 handle 是网址的一部分,写出来只是把 URL 抄一遍——`X @remu19971203` 里
真正有信息量的只有那个 X。图标本身就说明了去哪,名字留给官网那种「点之前看不出
是谁」的链接。外链箭头一并去掉:`target="_blank"` 已经是外链,箭头只是重复,
一排链接里还会挤掉本来就不多的横向空间。 */
+ const agencyHome=d.agency||null;
+ const agencyName=agencyHome?agencyHome.canonical_name:((d.metadata||{}).agency?.name||'');
+ /* 女优页的外链一律收成纯图标(`performerLinkName`):页头右边多了一张资料表,名字那一栏
+ 放不下一排带字的按钮,而图标本身就说清了去哪家。 */
+ const iconLink=(x,mark,name)=>`<a class="iconlink" href="${esc(x.url)}" target="_blank" rel="noreferrer" title="${esc(name)}">${mark}<span class="sr-only">${esc(name)}</span></a>`;
+ const siteMark=x=>`<span class="entitylinkicon">${icon('globe')}<img class="entityfavicon" src="${esc(linkMarkUrl(x))}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self"></span>`;
const siteLinks=(d.links||[]).map(x=>{
if(!(x.clickable&&/^https?:\/\//i.test(x.url||'')))
return `<span class="private" title="私人馆藏来源记录,不直接打开下载页"><span class="entitylinkicon">${icon('globe')}</span><span class="entitylinklabel">来源 · ${esc(x.label||x.hostname||'已记录')}</span></span>`;
+ if(kind==='performer'&&x.link_kind!=='social')return iconLink(x,siteMark(x),performerLinkName(x,agencyName));
/* 社媒的 handle 是网址的一部分,写出来只是把 URL 抄一遍——图标本身已经说明了去哪。 */
if(x.link_kind==='social'){
const brand=brandIcon(x.url);
- const mark=brand?`<span class="entitylinkicon brand">${icon(brand)}</span>`
- :`<span class="entitylinkicon">${icon('globe')}<img class="entityfavicon" src="${esc(linkMarkUrl(x))}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self"></span>`;
// 纯图标的链接自己不带可读文字,得把标签留给辅助技术。
- return `<a class="iconlink" href="${esc(x.url)}" target="_blank" rel="noreferrer" title="${esc(x.label)}">${mark}<span class="sr-only">${esc(x.label)}</span></a>`;
+ return iconLink(x,brand?`<span class="entitylinkicon brand">${icon(brand)}</span>`:siteMark(x),x.label);
}
/* 图标是站点自己的那枚,说的是「这是哪家」;取不到图时 `data-drop="self"` 把 img
撤掉,露出底下那枚地球。
文字是这家站平时被叫的那个短名(`siteName`),人物页和厂牌页同一张表。完整的
名称留在 `title` 里,点之前要看全称把指针停上去就有。公司页见 `officialLinkText`。 */
- return `<a class="urllink" href="${esc(x.url)}" target="_blank" rel="noreferrer" title="${esc(x.label)}"><span class="entitylinkicon">${icon('globe')}<img class="entityfavicon" src="${esc(linkMarkUrl(x))}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self"></span><span class="entitylinklabel">${esc(officialLinkText(x,kind,[d.canonical_name,...(d.aliases||[])]))}</span></a>`;
+ return `<a class="urllink" href="${esc(x.url)}" target="_blank" rel="noreferrer" title="${esc(x.label)}">${siteMark(x)}<span class="entitylinklabel">${esc(officialLinkText(x,kind,[d.canonical_name,...(d.aliases||[])]))}</span></a>`;
}).join('');
/* 外部入口:同一个人在 minnano-av、JavDB 与 MISSAV 的那几页。地址、位置和用哪枚标记
都由服务端下发(`peach.entry_links`),这里只排版——站点 id 缺席、或者这条实体不是
@@ -8393,8 +8486,7 @@ async function openEntity(kind,name,push=true){
演员页是常事,第二枚在标识后面缀服务端编好的序号。 */
const entryLinks=d.entry_links||[];
const links=entryLinks.filter(x=>x.slot==='pill').map(x=>
- `<a class="urllink" href="${esc(x.url)}" target="_blank" rel="noreferrer" title="${esc(x.label)}"><span class="entitylinkicon brand">${icon(x.mark)}</span><span class="entitylinklabel">${esc(x.label)}</span></a>`
- ).join('')+siteLinks;
+ iconLink(x,`<span class="entitylinkicon brand">${icon(x.mark)}</span>`,x.label)).join('')+siteLinks;
/* MISSAV 站上没有图形标识,它的标题就是排出来的字:Halant 500、`MISS` 用前景色、`AV`
用它的粉(`.text-primary` 的 rgb(254 98 142))。这里照它那套规则重排,字体退回本机
衬线体——为一枚标识把一份第三方字体收进仓库,不值当。前景色那半在它站上是近白,
@@ -8448,12 +8540,11 @@ async function openEntity(kind,name,push=true){
这一行不写类别名。`T-POWERS` 这样的公司名摆在别名和作品数中间,读的人一眼就知道
那是什么;多出来的两个字只占掉这行本来就不多的横向空间。 */
- const agencyHome=d.agency||null;
- const agencyName=agencyHome?agencyHome.canonical_name:((d.metadata||{}).agency?.name||'');
- const agencyHtml=!agencyName?''
- :agencyHome?` · <a class="entitylink" href="${esc(entityPath('agency',agencyName))}"
+ const agencyLink=!agencyName?''
+ :agencyHome?`<a class="entitylink" href="${esc(entityPath('agency',agencyName))}"
data-agency="${esc(agencyName)}">${esc(agencyName)}</a>`
- :` · ${esc(agencyName)}`;
+ :esc(agencyName);
+ const agencyHtml=agencyLink?` · ${agencyLink}`:'';
/* 事务所页数的是人,不是片。它名下那 N 个视频是成员拍的,只报视频数会让「这家有
几个人」这个它唯一独有的读数消失。 */
/* 片商页同理:视频数是旗下合计(ADR-0051 修订),旗下有几个 label 是它自己的读数。 */
@@ -8481,19 +8572,27 @@ async function openEntity(kind,name,push=true){
<hr aria-hidden="true">
<button type="button" role="menuitem" data-namepick-alias
>${icon('plus')}<span>添加别名…</span></button></div></div>`;
+ /* 女优页名字下面那一行分三项,各带一枚图标:视频数、事务所、别名(读音在最前);她的生日、
+ 身材这些进右边那张资料表(`entityFactsHtml`)。其余种类仍是一行字:别名 · 视频数 · 归属。 */
+ const count=`<b>${d.asset_count.toLocaleString()}</b> 个视频`;
+ const aliasLine=kind==='performer'
+ ?`<div class="alias metaline"><span class="metaitem" title="视频">${icon('film')}<span>${count}</span></span>${
+ agencyLink?`<span class="metaitem" title="事务所">${icon('briefcase')}<span>${agencyLink}</span></span>`:''}${
+ entityNameLineHtml(d.name_groups)}</div>`
+ :`<div class="alias">${(d.display_aliases||[]).length?`${d.display_aliases.map(esc).join(' / ')} · `:''}${count}${memberHtml}${agencyHtml}${makerHtml}</div>`;
$('#index').dataset.entityKind=kind;$('#index').dataset.entityName=name;
const people=kind==='performer'||kind==='creator';
/* 资料卡按 Board 的 profile 卡排:一块 secondary 底、18px 圆角的卡,正文是头像加身份三行
- (名字、别名与归属、外链),同台艺人收进卡底那条色阶带——那是这个人的附注,不是这一页
+ (名字、别名与归属、外链),女优有资料时右边再加一栏资料表,同台艺人收进卡底那条色阶带——那是这个人的附注,不是这一页
的正文;事务所的名册是正文,走筛选条左端圆键里那一档。卡外面依次是交集条、玻璃筛选条
和内容区,顶到底一条线。 */
$('#index').innerHTML=`<section class="entityhero" aria-label="资料">
<div class="entityprofile"><div class="entityportraitwrap"><div class="entityportrait ${people?'':'square'}" data-fit-native="${company?'mark':'portrait'}">${image}<span>${esc(name.slice(0,1))}</span></div>${
people?'<span data-avatar-picker></span>':''}</div>
<div class="entityidentity"><div class="entitytitle"><h2>${esc(d.canonical_name)}</h2>${namePick}</div>
- <div class="alias">${(d.display_aliases||[]).length?`${d.display_aliases.map(esc).join(' / ')} · `:''}<b>${d.asset_count.toLocaleString()}</b> 个视频${memberHtml}${agencyHtml}${makerHtml}</div>
+ ${aliasLine}
${links?`<div class="entitylinks">${links}</div>`:''}
- ${entryMarks?`<div class="entrymarks">${entryMarks}</div>`:''}</div></div>
+ ${entryMarks?`<div class="entrymarks">${entryMarks}</div>`:''}</div>${kind==='performer'?entityFactsHtml(d.profile):''}</div>
${related?`<div class="entityfoot" aria-label="同台艺人"><div class="relatedpeople">${related}</div></div>`:''}</section>
<div class="combo entitycombo"></div>
<section class="entitytagbar" aria-label="媒体与标签">${mediaToggle}${mediaToggle?'<span class="sep" aria-hidden="true"></span>':''}<div class="filterscroll"><div class="viewpills entityviews" role="group" aria-label="观看状态">${VIEW_PILLS.map(v=>`<button type="button" class="pill" data-entity-state="${v.k}" aria-pressed="${(filters.state||'')===v.k}">${v.label}</button>`).join('')}<span class="sep" aria-hidden="true"></span></div><div class="tagscroll entitytags">${tags}</div></div></section>
@@ -8535,6 +8634,7 @@ async function openEntity(kind,name,push=true){
wireHorizontalScroller($('#index').querySelector('.entitytagbar .filterscroll'));
wireNamePicker(kind,d.canonical_name,d.user_aliases||[]);
wireEntityFeed(Number(d.id));
+ wireAliasPop();
entityPhotos=photos&&!photos.error?photos:null;
if(entityMediaView.media==='photos'&&!photosAvailable())entityMediaView=emptyMediaView();
renderEntityMediaToggle(kind,name,filters);
diff --git a/web/css/07-entity.css b/web/css/07-entity.css
index b07d33837..8dca67e8a 100644
--- a/web/css/07-entity.css
+++ b/web/css/07-entity.css
@@ -10,6 +10,25 @@
.entityprofile{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;padding:20px;
align-items:center;min-width:0}
.entityprofile>.entityportraitwrap{align-self:stretch;display:flex;align-items:center}
+/* 女优有资料时多出第三栏:右边那张资料表(ADR-0069),和身份信息之间隔一道竖线。
+ 宽 300–400px:生日、身材一行放得下,出道片名截断后还剩一半字。900px 以下它排到身份信息
+ 下面,隔的线换成横的;760px 以下整张卡单列居中,表里仍左对齐,两列字才对得齐。 */
+@media(min-width:901px){.entityprofile:has(>.entityfacts){grid-template-columns:auto minmax(0,1fr) minmax(300px,400px)}}
+.entityfacts{margin:0;align-self:stretch;justify-self:stretch;align-content:center;display:grid;
+ grid-template-columns:auto minmax(0,1fr);gap:10px 16px;min-width:0;padding:2px 0 2px 24px;
+ border-left:1px solid var(--line-soft);font-size:var(--fs-sm);line-height:22px;text-align:left}
+@media(max-width:900px){.entityfacts{grid-column:1/-1;border-left:0;border-top:1px solid var(--line-soft);padding:14px 0 0}}
+.entityfacts dt{display:flex;align-items:center;align-self:start;gap:6px;color:var(--muted);white-space:nowrap}
+.entityfacts dd{margin:0;min-width:0;color:var(--ink)}
+.entityfacts .num{font-variant-numeric:tabular-nums}
+.entityfacts .sub{color:var(--muted)}
+.entityfacts .clip{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
+/* 站上的标签只是读数,不是这一页的筛选(那排在下面的筛选条里),所以是标签的脸、不接点击。 */
+.entityfacts .facttags{display:flex;flex-wrap:wrap;gap:6px}
+.facttag{padding:0 var(--tag-pad-x);border:1px solid var(--line);border-radius:var(--tag-radius);
+ background:var(--tag-fill);color:var(--ink-2);font-size:var(--fs-xs);line-height:20px;white-space:nowrap}
+.entityfacts dt svg,.entityhero .metaitem>svg{width:16px;height:16px;flex:none;color:var(--muted);
+ stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* 圆框外面这一层只为换头像那枚加号存在:圆框自己是 `overflow:hidden`(图要被裁成
圆的),贴在它边上的按钮放进去就没了。 */
.entityportraitwrap{position:relative;width:max-content;max-width:100%}
@@ -53,6 +72,26 @@
.npmenu button[role="menuitem"] svg{visibility:visible}
.entityhero .alias{color:var(--muted);
font-size:var(--fs-md);line-height:1.45;margin-bottom:0;overflow-wrap:anywhere}
+/* 女优页这一行是三项并排,各带一枚图标:视频数、事务所、别名。装不下就整项换行,不在项中间断。 */
+.entityhero .alias.metaline{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px}
+.metaitem{display:inline-flex;align-items:center;gap:6px;min-width:0}
+.aliasline{flex-wrap:wrap}
+.aliasnames>span+span::before,.aliaspop dd>span+span::before{content:"·";margin:0 6px;color:var(--muted)}
+.aliasmore{height:22px;margin-left:4px;padding:0 8px;border:1px solid var(--line);border-radius:var(--pill-radius);
+ background:transparent;color:var(--ink);font:inherit;font-size:var(--fs-xs);cursor:pointer}
+.aliasmore:hover,.aliasmore[aria-expanded="true"]{background:color-mix(in srgb,var(--ink) 8%,var(--ground))}
+/* 「+N」的浮层借锚定菜单那身盒子(`.popmenu`:底色、描边、圆角、投影与开合动效),它是
+ `popover`,进顶层才不被资料卡的 `overflow:hidden` 裁掉;`.popmenu` 的 `display:grid` 会压过
+ 浏览器给没打开的 popover 的 `display:none`,所以这里自己收起。位置由 `wireAliasPop` 算。 */
+.popmenu.aliaspop{width:max-content;max-width:min(440px,calc(100vw - 16px));padding:12px 14px;gap:8px;
+ color:var(--ink);font-size:var(--fs-sm);line-height:1.5;text-align:left}
+.popmenu.aliaspop:not(:popover-open){display:none}
+.aliaspophead{margin:0;font-weight:500}
+.aliaspop dl{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px}
+.aliaspop dt{color:var(--muted);white-space:nowrap}
+.aliaspop dd{margin:0;min-width:0;overflow-wrap:anywhere}
+.aliaspop dd.wide{grid-column:1/-1}
+.aliaspop small{margin-left:4px;color:var(--muted);font-size:inherit}
/* 外链排成一行次级按钮:36px 高、控件圆角、一圈线,跟 Board 的 secondary Button 同一个形。
它们是「去哪」的入口,不是标签,所以不画成药丸。 */
.entitylinks{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;max-width:100%}
@@ -132,6 +171,8 @@
.entityskeletontext .alias .skeleton{display:block;width:40%;height:20px}
.entityskeletontext .entitylinks .skeleton{width:180px;height:36px}
[data-skeleton^="entity/"] .entityportrait{height:auto}
+[data-skeleton^="entity/"] .entityfacts dt .skeleton{display:block;width:56px;height:16px;margin-block:3px}
+[data-skeleton^="entity/"] .entityfacts dd .skeleton{display:block;width:70%;height:16px;margin-block:3px}
[data-skeleton^="entity/"] .entitycollectionhead .skeleton{width:90px;height:20px}
@media(max-width:600px){.entityskeletontext .alias .skeleton{margin-inline:auto}}
.entitylinklabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
diff --git a/web/css/19-immersive.css b/web/css/19-immersive.css
index 749f029f2..1010a65c6 100644
--- a/web/css/19-immersive.css
+++ b/web/css/19-immersive.css
@@ -198,6 +198,8 @@ body:has(#batchbar:not([hidden])) #stage{padding-bottom:180px}
transform:translate(-50%,-50%)}
.npmenu button,.popmenu.gselectmenu button{min-height:44px}
.entityhero .alias{margin-bottom:10px}
+ /* 女优页那一行三项是 flex,`text-align:center` 同样管不到;别名那一项折行时「+N」也居中。 */
+ .entityhero .alias.metaline,.entityhero .aliasline{justify-content:center}
/* 这一排外链窄屏下横滚,不换行:十条链接摊成四行是 192px,顶着头像和名字
底下,把作品列表整个推到折线以外,而它是「顺便看一眼」的东西。收成一行加
滑动,跟筛选条那条 `.filterscroll` 同一个做法。
diff --git a/web/index.html b/web/index.html
index b6f65483a..9dbfdee35 100644
--- a/web/index.html
+++ b/web/index.html
@@ -90,6 +90,11 @@
<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-clapperboard" viewBox="0 0 24 24"><path d="m12.296 3.464 3.02 3.956" /><path d="M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z" /><path d="M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /><path d="m6.18 5.276 3.1 3.899" /></symbol>
<symbol id="i-briefcase" viewBox="0 0 24 24"><path d="M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16" /><rect width="20" height="14" x="2" y="6" rx="2" /></symbol>
+ <symbol id="i-id-card" viewBox="0 0 24 24"><path d="M13 19a4 4 0 00-8 0" /><path d="M16 10h2" /><path d="M16 14h2" /><circle cx="9" cy="12" r="3" /><rect x="2" y="5" width="20" height="14" rx="2" /></symbol>
+ <symbol id="i-cake" viewBox="0 0 24 24"><path d="M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8" /><path d="M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1" /><path d="M2 21h20" /><path d="M7 8v3" /><path d="M12 8v3" /><path d="M17 8v3" /><path d="M7 4h.01" /><path d="M12 4h.01" /><path d="M17 4h.01" /></symbol>
+ <symbol id="i-ruler" viewBox="0 0 24 24"><path d="M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z" /><path d="m14.5 12.5 2-2" /><path d="m11.5 9.5 2-2" /><path d="m8.5 6.5 2-2" /><path d="m17.5 15.5 2-2" /></symbol>
+ <symbol id="i-flag" viewBox="0 0 24 24"><path d="M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528" /></symbol>
+ <symbol id="i-calendar-range" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" /><path d="M16 2v3" /><path d="M3 9h18" /><path d="M8 2v3" /><path d="M17 13h-6" /><path d="M13 17H7" /><path d="M7 13h.01" /><path d="M17 17h.01" /></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>
<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-list-filter" viewBox="0 0 24 24"><path d="M2 5h20" /><path d="M6 12h12" /><path d="M9 19h6" /></symbol>
diff --git a/web/vendor/lucide-ORIGIN.md b/web/vendor/lucide-ORIGIN.md
index 06a212098..9b4c6aea6 100644
--- a/web/vendor/lucide-ORIGIN.md
+++ b/web/vendor/lucide-ORIGIN.md
@@ -3,7 +3,7 @@
- npm 包:`[email protected]`
- npm lock integrity:`sha512-yWIrkdXc688Feq5VjOktsKmV5Ikc7y5Nu3rrdtbr8nWjkJWk8QlnZfVtIak22Af+fNhZ7k4cTJpZo1zmj7X5sA==`
- 许可证:ISC;原文见 `lucide-LICENSE.txt`
-- 消费者:`web/index.html` 内联的 118 个 symbol
+- 消费者:`web/index.html` 内联的 123 个 symbol
雪碧图里另有 9 枚自绘 symbol(check-check-outline、shuffle、alert、pics、jav、theater-enter、theater-exit、brand-minnano、mark-javdb)与 16 枚 player-* 前缀的播放器图标,都没有上游可对。
RSS 与拖动点保留填充修正,避免小圆点在全局描边样式下消失。