Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(stats): 环图浮层读实际数量,不再读画图用的弧长

longmeidaob34f49ad8cae
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1b9d50094..ff1ad07e0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -32,6 +32,7 @@ Removed / Fixed / Security。
### 修复
+- **界面**:统计页「媒体库」「网盘与本地」环图的悬停浮层显示实际视频数,与卡片顶部和下方格子一致;数量很少的分段不再显示画图用的弧长(如 36 个视频显示成 `66.506`)。
- **采集**:云下载入库后的整理不再因为一个资料站限流或拒绝访问就整条失败、文件留在云下载目录:其余资料已经取到时照常整理,任务详情写明哪项等来源恢复后再采集。有码作品在片商官网已经给出标签时,JavDB 拒绝访问也不再算问题,先用官方标签(如 `MIAB-086`)。用户脚本可以直接重试失败的整理。
- **采集**:用户脚本浮卡标题的人物头像,在素人作品入库后不再变成两个人:馆藏里已经按资料站记下真名(如 `390JAC-059` 的夏希栗)时,详情页上的店铺艺名(れいか)不再另算一人;只有馆藏和资料都没有人物时才用页面上的出演者名。
- **桌面**:本机代理、加速器或安全软件改写了请求地址,或浏览器发出空来源时,首次设置不再报「请从 Peach 设置页提交」,配置页的保存也不再报「请从 Peach 配置页提交」;判断改以浏览器自己标注的同源信息为准,别的网站发来的提交照旧拒收。仍被拒绝时,诊断包会记下来源对不上的方式、浏览器标识、系统代理开关和默认浏览器,便于定位。
diff --git a/frontend/src/react/evilcharts/ORIGIN.md b/frontend/src/react/evilcharts/ORIGIN.md
index ce9e8241a..970ac91a8 100644
--- a/frontend/src/react/evilcharts/ORIGIN.md
+++ b/frontend/src/react/evilcharts/ORIGIN.md
@@ -45,7 +45,7 @@
| 组合 | 用到的上游 | 做法 |
| --- | --- | --- |
| `../charts/bar-card.tsx` 的 `BarCard` | `EvilBarChart` | 单系列,`ChartConfig` 只有 `value` 一个键;数值轴隐藏、留两成余量,数经 `barProps.label` 标在柱端,十万以上读成「万」「亿」(`shortCount`),横向布局经 `chartProps.margin` 右侧留 56px 给它;类别轴刻度换成 `../charts/chart-card.tsx` 的 `CategoryTick`,按刻度宽度截断加省略号、全名进 `<title>`,横向布局的轴宽跟着最长的名字走、封顶 104px;容器加 `flex-none`,否则在卡片的 flex 列里被压成 0 高;合计为 0 时整张图换成 `ChartEmpty` 说明卡。统计页的时长、画质、文件类型与播放次数 |
-| `../stats/radial-card.tsx` 的 `RadialCard` | `EvilRadialChart` | 键写成 `s0`…`sN`,名字放进 `label`:键会进 CSS 变量名与渐变 id,来源名、库名不能直接当键。圈的形状与点击走 `radialBarProps`,按 React 状态淡化其余段、点下钉住;图例格子由 Peach 自己画。超过六段时并掉尾部成「其余 N 项」(`radialSlices`);圈画的是 `arc` 列,不为 0 的段至少画满圈的 2%(`radialArc`),浮层经 `ChartTip` 的 `valueKey` 读原始 `value`;没有分段时换成 `ChartEmpty` 说明卡 |
+| `../stats/radial-card.tsx` 的 `RadialCard` | `EvilRadialChart` | 键写成 `s0`…`sN`,名字放进 `label`:键会进 CSS 变量名与渐变 id,来源名、库名不能直接当键。圈的形状与点击走 `radialBarProps`,按 React 状态淡化其余段、点下钉住;图例格子由 Peach 自己画。超过六段时并掉尾部成「其余 N 项」(`radialSlices`);圈画的是 `arc` 列,不为 0 的段至少画满圈的 2%(`radialArc`),浮层经 `ChartTip` 的 `valueKey` 读原始数那一列 `count`(Recharts 生成扇区时会用 `arc` 覆盖行里的 `value`);没有分段时换成 `ChartEmpty` 说明卡 |
| `../taste/charts.tsx` 的 `TasteRadar` | `EvilRadarChart` | 取分数最高的三到六个口味维度,少于三个画不成面,整块不出现,画像卡只留排行条。画的是 `radius = √(次数 / 最大次数)` 一列,半径轴定死 `[0, 1]`,最大的维度落在外圈;浮层经 `ChartTip` 的 `valueKey` 读原始次数。`chartProps.outerRadius` 压到 58%;顶点外侧的维度名换成自己的 `RadarTick`,按顶点到图框边的距离截断加省略号,全名进 `<title>` |
| `../taste/charts.tsx` 的 `RankedBars` | `EvilBarChart`(`layout="horizontal"`) | 前八个口味维度,柱端标数、右侧留白与类别轴刻度的写法同 `BarCard`;高度按条数取档 |
| `../settings/storage-charts.tsx` 的 `StorageOverview` | `EvilPieChart`、`EvilBarChart`(`layout="horizontal"`、`stackType="percent"`) | 设置页「存储空间」。环形图画数据目录各类占比,键用类别键(都是 ASCII 标识符),颜色按类别固定取 `chart-1`…`chart-9`,其余几类并成灰色的「其余」;总量写在圈中央,由 Peach 自己叠一层文字,不用上游 `Label`。磁盘那根横向百分比堆叠柱只有一行三段:Peach、其他文件、可用。两张图的浮层都经 `ChartTip` 的 `format` 写成字节读数 |
diff --git a/frontend/src/react/stats/radial-card.tsx b/frontend/src/react/stats/radial-card.tsx
index fed857e4c..783aa0497 100644
--- a/frontend/src/react/stats/radial-card.tsx
+++ b/frontend/src/react/stats/radial-card.tsx
@@ -49,8 +49,10 @@ export function RadialCard(
const shown = slices[focus];
const toggle = (index: number) => setPinned((at) => (at === index ? -1 : index));
const ceiling = radialCeiling(slices.map((row) => row.value));
+ /* 原始数放 `count` 列,不叫 `value`:Recharts 算扇区时把这一行展开后又写一遍 `value`,填的是
+ 画图那一列(`arc`),浮层读到的就成了垫高的弧长。 */
const data = slices.map((row, index) => (
- { slice: sliceKey(index), value: row.value, arc: radialArc(row.value, ceiling) }));
+ { slice: sliceKey(index), count: row.value, arc: radialArc(row.value, ceiling) }));
return (
<section className={CHART_CARD}>
@@ -78,7 +80,7 @@ export function RadialCard(
onClick: (_entry: unknown, index: number) => toggle(index),
onMouseEnter: (_entry: unknown, index: number) => setHovered(index),
}} />
- <ChartTip nameKey="slice" valueKey="value" hideLabel />
+ <ChartTip nameKey="slice" valueKey="count" hideLabel />
</EvilRadialChart>
</div>
<div className="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">
diff --git a/frontend/test/react/stats.test.tsx b/frontend/test/react/stats.test.tsx
index d7c5703e4..9d3162cd6 100644
--- a/frontend/test/react/stats.test.tsx
+++ b/frontend/test/react/stats.test.tsx
@@ -16,6 +16,7 @@ import {
fmtCount, lengthRows, mediumRows, percentOf, percentText, playedFor, prefetchStats, radialArc,
radialBarSize, radialCeiling, radialSlices, replayRows, STATS_URL, watchNote, type StatsData,
} from '../../src/react/stats/stats';
+import { RadialCard } from '../../src/react/stats/radial-card';
import { StatsPage } from '../../src/react/stats/stats-page';
import { actionOrder, buttonNamed, click, mount, mountRoot } from './render';
@@ -139,6 +140,38 @@ it('满圈是最长那段的 1.1 倍,圈数越多每圈越细', () => {
expect([2, 12, 40].map(radialBarSize)).toEqual([14, 8, 4]);
});
+it('指到垫到最小弧长的那一段,浮层读原始数,不读画图用的弧长', async () => {
+ // 拿掉 `ResizeObserver` 让 Recharts 按初始尺寸画;声明减少动态效果,圈直接是终态。
+ vi.stubGlobal('ResizeObserver', undefined);
+ vi.stubGlobal('matchMedia', (query: string) => ({
+ matches: query.includes('reduce'), media: query, addEventListener() {}, removeEventListener() {},
+ }));
+ // 满圈 3023 × 1.1,最小弧长是它的 2%:66.506,比欧美剧情的 36 大,那一段画的是垫高的弧。
+ const rows = [
+ { name: '单人剧情', value: 3023 }, { name: '共演剧情', value: 128 },
+ { name: '欧美剧情', value: 36 }, { name: '写真', value: 198 },
+ ];
+ const host = await mount(<RadialCard title="媒体库" rows={rows} empty="" />);
+ // 每圈的底色扇区:路径头一段是 `M cx,cy-外径`,第二段弧是内径,取中间那条半径指上去。
+ const rings = [...host.querySelectorAll('path.recharts-radial-bar-background-sector')].map((path) => {
+ const [outer, inner] = [...(path.getAttribute('d') ?? '').matchAll(/A ([\d.]+),/g)].map(([, r]) => Number(r));
+ return { cx: Number(path.getAttribute('cx')), cy: Number(path.getAttribute('cy')), r: (outer! + inner!) / 2 };
+ });
+ expect(rings).toHaveLength(rows.length);
+ const tipFor = async (index: number) => {
+ const { cx, cy, r } = rings[index]!;
+ await act(async () => {
+ host.querySelector('.recharts-wrapper')!.dispatchEvent(new MouseEvent('mousemove',
+ { bubbles: true, clientX: cx, clientY: cy - r }));
+ await new Promise((resolve) => setTimeout(resolve, 50));
+ });
+ const tip = host.querySelector('.recharts-tooltip-wrapper')!;
+ return [...tip.querySelectorAll('span')].map((span) => span.textContent);
+ };
+ expect(await tipFor(2)).toEqual(['欧美剧情', '36']);
+ expect(await tipFor(0)).toEqual(['单人剧情', '3,023']);
+});
+
it('点图例把那一段钉住,读数跟着换;再点一次放开', async () => {
const { host } = await open();
const card = radialCharts(host)[0]!.closest('section')!;
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index baa7edf33..00f9ddd6b 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "910b7443-a1a8-4395-ae58-02cc4c28ad22", e._sentryDebugIdIdentifier = "sentry-dbid-910b7443-a1a8-4395-ae58-02cc4c28ad22");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "124fa6c0-bded-4ace-b0a2-372292aca0a4", e._sentryDebugIdIdentifier = "sentry-dbid-124fa6c0-bded-4ace-b0a2-372292aca0a4");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
@@ -78427,7 +78427,7 @@ async function g6(e, t) {
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var _6 = h6(() => import("./peach-app.jav-page-DUZe3Cv7.js")), v6 = h6(() => import("./peach-app.stats-page-DhNggTPt.js")), y6 = h6(() => import("./peach-app.taste-page-O5P41pRb.js")), b6 = h6(() => import("./peach-app.review-page-kd1HFP2A.js")), x6 = h6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), S6 = h6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), C6 = h6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), w6 = h6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), T6 = h6(async () => {
+var _6 = h6(() => import("./peach-app.jav-page-DUZe3Cv7.js")), v6 = h6(() => import("./peach-app.stats-page-fAkPsLC6.js")), y6 = h6(() => import("./peach-app.taste-page-O5P41pRb.js")), b6 = h6(() => import("./peach-app.review-page-kd1HFP2A.js")), x6 = h6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), S6 = h6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), C6 = h6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), w6 = h6(() => import("./peach-app.scraping-page-Ddbx11Bn.js")), T6 = h6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-BkqUJk6k.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);
return {
ConfigurationPage: e,
@@ -83582,4 +83582,4 @@ if (!$9) throw Error("主界面宿主缺失");
KRe($9);
export { tR as $2ec61d1d4f780267$export$a8a3e93435678ff9, lR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Ez as $542a13ca2fa5b484$export$5b6b19405a83ff9d, AD as $72abaeab4d80592f$export$78efe591171d7d45, vB as $76d00c5a4edb230a$export$76ccd210b9029917, hB as $76d00c5a4edb230a$export$816b5d811295e6bc, xB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, CB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, mB as $76d00c5a4edb230a$export$f850895b287ef28e, fhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, dhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, che as $b4f18e3395fe64d7$export$b2539bed5023c21c, DB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, hhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, _E as $ea3928288112382f$export$439d29a4e110a164, zz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Kz as $fe21c36db05242bb$export$a98f0dcb43a68a25, qz as $fe21c36db05242bb$export$d7b12c4107be0d61, Yhe as $l, $j as ACCENTS, Tke as AMANE_BRIDGE_CHECK_URL, Y$ as AMANE_BRIDGE_KEY, Eke as AMANE_BRIDGE_REBUILD_URL, or as ApiError, oW as ArtSlot, p2 as BATCH_DELETE_TEXT, J as Button, NL as ButtonLink, iV as Bx, w$ as CLEANUP_ENTRY, C$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, Y1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, s1 as CONFIGURATION_KEY, iX as CONFIGURATION_URL, Dke as COOKIE_TEXT_LIMIT, J$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, W$ as CUSTOM_SOURCES_KEY, U$ as CUSTOM_SOURCES_URL, QV as Checkbox, ZV as CheckboxGlyph, HV as ChevronSortDown, aW as Chip, mW as CloudDownloadDialog, KH as CollapseChevron, GH as CollapseRegion, _$ as CollectionSummary, iwe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, UQ as DIAGNOSTICS_KEY, rTe as DIRECTORY_TEMPLATE_ERROR, A0 as DISCOVERY_SORTS, cW as DOWNLOADS_KEY, sW as DOWNLOADS_URL, wY as DUPLICATES_KEY, aY as DataTableFooter, tY as DataTableFrame, iY as DataTableSort, QH as Disclosure, Uve as DownloadsPanel, Bhe as E3, awe as ENTITY_REVIEW_KINDS, q1 as ENTRY_LINKS_HELP, J1 as ENTRY_LINKS_HINT, XB as Ea, bge as EmptyFocusButton, wV as EmptyState, XH as ErrorText, I_e as ExternalLink, Br as FEEDS_KEY, fX as FEED_SCHEDULE_KEY, x$ as FIELDSET_FOOT, NPe as FLOW_LABEL_X, q3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, A8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, KZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, dX as FOLLOW_SCHEDULE_KEY, z_e as Fact, R_e as FactList, ZH as FieldLabel, P$ as Fieldset, N$ as FieldsetTitle, lpe as FilterGlass, EL as FilterGlassRows, TL as FilterIconButton, DL as FilterPill, F_e as Footer, tV as Gg, OL as GlassPill, cV as HN, YH as Help, hV as HintText, TPe as IDLE_POLL_MS, qCe as IDLE_REPAIR, xL as IconButton, GQ as IndexSearch, bV as Input, yV as InputBase, I$ as IssueRow, _M as JAV_LAYOUTS, M0 as JAV_RECOMMENDATION_GRID, LX as JUNK_KEY, jW as JavHeader, VCe as KEEP_LABELS, Hr as LAYOUTS, K1 as LIBRARY_FOLDER_HELP, dH as LIBRARY_PROCESSING_KEY, XY as LINKS_KEY, ZY as LINK_CHECK_KEY, kwe as LINK_KINDS, QY as LINK_PRUNE_KEY, tr as LOC, mV as Label, z$ as LibraryProcessingCard, VV as LibraryShortcuts, DH as LinkButton, Zhe as Lo, BH as LoadingDots, Vhe as M6, Pwe as MEDIA_PROCESSING_KEY, mX as MEDIA_PROCESSING_URL, kY as MEDIA_REPAIR_KEY, OY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, KV as MENU_ITEM, qV as MENU_ITEM_INTERACTIVE, GV as MENU_POPOVER_SURFACE, $he as Ma, jH as MenuDialog, bK as MixCard, xV as ModalFrame, Tx as MotionConfigContext, fV as NR, F$ as NameLink, CV as Note, gge as OA, _X as ORGANIZE_KEY, u2 as ORGANIZE_PARAMETER_HINT, l2 as ORGANIZE_SCOPE_HINT, c2 as ORGANIZE_TEXT, bX as ORPHAN_RECORDS_KEY, f2 as ORPHAN_RECORDS_TEXT, $B as OV, RB as P7, PX as PERFORMER_DELETE_KEY, Qve as PHASES, aX as PICK_FOLDER_URL, E$ as PLAIN_STAT_STRIP, V$ as PLAYLISTS_KEY, kAe as POLICY_COLUMNS, jAe as POLICY_COVER_NOTE, AAe as POLICY_MATRIX, G1 as POLICY_SUMMARY, rY as Pagination, R$ as PathLine, uV as Pf, XI as PillTabList, qOe as PlainStat, HH as Progress, PY as QUALITY_GOALS_KEY, lV as RB, O$ as REPAIR_CARD_TEXT, AY as REPAIR_LIBRARIES_KEY, TX as RESOURCE_APPLY_KEY, wX as RESOURCE_SCAN_KEY, d2 as RESOURCE_SYNC_TEXT, $Oe as RESULT_PANEL, eke as RESULT_SECTION, rwe as REVIEW_CATEGORIES, IX as REVIEW_COUNTS_KEY, owe as REVIEW_DECISION_LABELS, LY as REVIEW_KEY, RY as REVIEW_LABELS, BY as REVIEW_QUEUES, VY as REVIEW_QUEUE_LABELS, GG as RetryNote, hge as Rf, pV as Rk, M_e as Rows, Cke as SCRAPING_CHECK_URL, K$ as SCRAPING_COVER_URL, q$ as SCRAPING_KEY, Ske as SCRAPING_SETTINGS_URL, vU as SEGMENT, _U as SEGMENTED_TRACK, uX as SETTINGS_KEY, oX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, v3 as STATS_KEY, GOe as STAT_STRIP, KOe as STAT_STRIP_SIX, j_e as Section, tke as SectionHeading, P_e as SectionSkeleton, gU as SegmentedRadioGroup, eve as SegmentedTabList, RG as Segments, nY as Select, nW as Select$1, d1 as SelectField, rW as SelectItem, fY as SelectionActions, jj as SelectionDock, pY as SelectionPopover, qH as SettingsCard, A_e as SettingsRow, JH as SettingsSectionLabel, U_e as SiteLabel, _G as SortDirectionIcon, BG as SortKeys, EQ as SourceAvatar, nU as SourceLabel, $H as SourceMark, N_e as Stack, JOe as StatCard, L$ as StatusLabel, fge as Su, X2 as Switch, aL as TASKS_KEY, mPe as TASTE_REFRESH_KEY, hPe as TASTE_WINDOWS, pX as THUMBNAIL_JOBS_KEY, zX as TRASH_KEY, Hfe as TRIGGER_LABELS, KJ as Table, mY as TableColumnControls, hY as TableColumnResizer, _Y as TableSelectionHeader, f$ as TagManager, L_e as TaskCenterLink, UH as TaskProgress, _V as TextField, gV as TextFieldContext, ZB as Un, gW as WANTS_KEY, d4 as WantMagnets, Gg as WithPromise, HB as Wt, YB as Xc, dV as Xf, WB as Xl, UB as Xt, BB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, mge as aB, Ti as addAlias, wi as addSource, vW as addWant, mS as animate, B as apiGet, V as apiSend, dM as appSettingsStore, STe as applyConfirmText, NX as applyLeftovers, xTe as applyPlanText, wTe as applyText, hM as applyTheme, yy as asNumber, uTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, Pq as autoResetPageIndex, go as avatarInner, w3 as bandRows, iTe as baseName, KCe as batchOperate, fue as beginPlayerGuidePreview, Ij as boundedPreference, UCe as bulkCloudPreferences, OV as busyProps, pge as cB, UMe as cachedMagnetStates, zg as calcGeneratorVelocity, pwe as canApprove, mg as cancelFrame, hTe as candidateText, IU as cardClass, AM as cardRatio, JB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Nwe as checkLine, Vi as checkReceipt, Hi as checkSummary, kke as checkText, Gi as checkedText, oK as clickedBlank, q5 as closeDrawerAfterNav, FCe as cloudLocations, E0 as cloudProxySkeleton, XC as clsx, nge as cn, cv as collectMotionValues, eJ as columnVisibilityFeature, VJ as column_getCanSort, LJ as column_getSortFn, dwe as commonReviewSources, Of as configurationSection, yPe as configureTasteBrowser, ol as confirmModal, Bfe as controlTask, gq as copyInstancePropertiesWithoutMemos, co as coverUrl, Gq as createColumnHelper, gke as createPlaylist, Yi as credentialDone, S0 as credentialsSkeleton, Swe as currentReviewRow, q as cx, rV as dZ, ywe as decisionPayload, bwe as decisionReceipt, vwe as defaultChoice, ETe as deletePerformerVideos, vke as deletePlaylist, x as diagnosticHeaders, W1 as diagnosticsSkeleton, EW as discoveryArtwork, wW as discoveryKey, tje as discoveryScore, i9 as disposeStage, zCe as distinctName, zi as dropSources, dge as du, WCe as duplicateVictims, fL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, Nq as expandRowModel, MB as f1, $r as feedIntervalText, Q$ as fetchAmaneBridge, _i as fetchCheckJob, c1 as fetchConfiguration, Z$ as fetchCoverJob, gi as fetchCredentials, G$ as fetchCustomSources, FX as fetchDeletePerformers, TTe as fetchDeletePlan, WQ as fetchDiagnostics, TW as fetchDiscoveries, EY as fetchDuplicates, Ife as fetchEarlier, Lwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, Iwe as fetchFollowSchedule, VX as fetchJunkSummary, yH as fetchLibraryProcessing, tX as fetchLinkCheck, nX as fetchLinkPrune, eX as fetchLinkStats, Fwe as fetchMediaProcessing, jY as fetchMediaRepair, yr as fetchMediaSources, vX as fetchOrganize, Xwe as fetchOrganizeExample, xX as fetchOrphanRecords, Ai as fetchPending, H$ as fetchPlaylists, FY as fetchQualityGoals, MY as fetchRepairLibraries, vi as fetchResolveJob, DX as fetchResourceApply, EX as fetchResourceScan, qY as fetchReview, BX as fetchReviewCounts, hX as fetchSettings, X$ as fetchSources, y3 as fetchStats, yi as fetchSuggestions, sL as fetchTasks, W3 as fetchTaste, bPe as fetchTasteJob, Rwe as fetchThumbnailJobs, HX as fetchTrashSummary, _W as fetchWants, lwe as filterReviewRows, $n as firstGrapheme, QK as flexRender, FPe as flowGraph, IPe as flowLabel, PNe as fmtCount, qn as fmtDur, Yn as fmtSize, Ffe as foldByKind, Qfe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, epe as followupDetail, Pfe as followupTally, pg as frame, IB as g4, rJ as getDefaultPaginationState, kM as gridLayout, ci as groupByAuthor, Zfe as groupFollowups, WY as groupReviewRows, yTe as hasChanges, OX as hasResourceRoots, lL as hasResultProblems, EPe as historySpan, NB as i2, wPe as importTasteExport, C0 as indexersSkeleton, Fg as interpolate, xW as invalidateWants, dL as isActive, Qr as isBroken, Kr as isLayout, yv as isMotionValue, zY as isReviewCategory, $fe as isRoutine, w0 as javBrowserSkeleton, P0 as javContentSkeleton, SM as javLayout, N0 as javTagSkeleton, jTe as junkBreakdown, yke as keepPlaylist, ke as keepPreviousData, fi as keepSelected, b3 as known, Ihe as l7, Xfe as latestOfKind, KNe as lengthRows, Sr as localTime, Fi as lookupFeedActor, LB as m7, nV as mM, En as mapLimit, ki as markItem, T3 as max, WNe as mediumRows, Lfe as mergeFinished, E3 as min, Dwe as mirrorText, XCe as missingToolText, DY as mixedCloudPreferences, gL as momentText, hS as motion, uv as motionValue, nn as nameFallback, He as notifyManager, Hhe as oe, oTe as organizeOutcome, X0 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, _we as pendingGenres, INe as percentText, $we as pickOrganizeFolder, T$ as plainStatClass, aTe as planSummary, x3 as playedFor, RNe as playedItemUrl, oL as pollInterval, Js as popCount, hke as posterUrl, Zye as previewLibraryColor, Qwe as previewOrganize, $Ce as previewUrl, Jfe as problemDestination, mH as processingActive, pL as progressText, tU as providerIcon, Mwe as pruneText, AX as purgeCount, dTe as purgeOrphan, aV as pv, uge as qE, H as queryClient, PB as r2, MPe as radarRows, VNe as radialArc, HNe as radialBarSize, BNe as radialCeiling, zNe as radialSlices, KN as randomId, APe as rankDetail, jPe as rankShares, C3 as reachedShare, mL as readableErrorHeadline, nje as recommendationScore, Cwe as recordGenre, pTe as recordsText, bke as recreatePlaylist, pke as refreshPlaylists, Cl as relayoutCovers, Bi as reloadFollowManage, Ewe as reloadReview, PAe as rememberShape, tTe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, CPe as removeTasteSource, yW as removeWants, Di as renameAliasGroup, _ke as renamePlaylist, Se as replaceEqualDeep, JNe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, fq as require_with_selector, bW as resetWants, pr as resolveFollowSort, Hg as resolveStartTime, f_e as restartEffectText, mke as resumeAssetId, cwe as reviewGroupingOptions, UY as reviewQueueData, HY as reviewQueueOf, ATe as reviewSummary, uwe as reviewWindow, hwe as rowEvidence, KY as rowFieldName, uJ as rowPaginationFeature, jJ as rowSelectionFeature, WJ as rowSortingFeature, GY as rowSubject, gwe as rowTags, mwe as rowTitle, Nhe as s5, Oi as saveCredential, bTe as scanLine, Uwe as schedulePollInterval, CW as searchNote, fwe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, Twe as settleReviewRows, RCe as sharedNamePrefix, Ep as shellNavigate, v8 as showToast, zn as siteMarkUrl, wq as skipFirstRun, JI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, CTe as sourceMeta, zs as spinnerHtml, Ng as spring, EV as spriteGlyph, bi as startCheck, Awe as startLinkCheck, jwe as startLinkPrune, eTe as startOrganize, xi as startResolve, _Te as startResourceApply, gTe as startResourceScan, SPe as startTasteRefresh, WOe as statCardClass, Wfe as statusLabel, YCe as statusLine, Zr as statusText, jM as storeJavLayout, xwe as submitDecision, _L as summaryItems, Kq as tableFeatures, Tq as tableMemo, ui as tableRows, qfe as taskIssues, Yfe as taskSubject, G3 as tasteDate, OPe as tasteDimensions, DPe as tasteHours, U3 as tasteKey, _Pe as tasteRefetchInterval, vPe as tasteTime, eL as textLang, $m as time, qhe as tl, mi as toggleGroup, K3 as topScores, ige as um, Qhe as uo, OH as useAction, VZ as useBackgroundJob, JU as useClientUpdates, dm as useConstant, vL as useEntityNames, wL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, aK as useLibraryTints, Ft as useMutation, $V as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, rS as useReducedMotion, Hwe as useRunSchedule, Bwe as useSaveFollowSchedule, gX as useSaveSettings, Wwe as useSaveThumbnailMode, GJ as useTable, cY as useTablePreferences, jL as useViewGlide, GCe as victimBytes, Jhe as vl, SW as wantName, LNe as watchNote, S3 as watchedShare, Dc as wireHorizontalScroller, nTe as withOrganizeJob };
-//# debugId=910b7443-a1a8-4395-ae58-02cc4c28ad22
\ No newline at end of file
+//# debugId=124fa6c0-bded-4ace-b0a2-372292aca0a4
\ No newline at end of file
diff --git a/web/dist/peach-app.stats-page-DhNggTPt.js b/web/dist/peach-app.stats-page-fAkPsLC6.js
similarity index 99%
rename from web/dist/peach-app.stats-page-DhNggTPt.js
rename to web/dist/peach-app.stats-page-fAkPsLC6.js
index e2163cd8a..bd208a859 100644
--- a/web/dist/peach-app.stats-page-DhNggTPt.js
+++ b/web/dist/peach-app.stats-page-fAkPsLC6.js
@@ -1,7 +1,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "d74bc9bc-ce18-4303-b11a-c29a44b68728", e._sentryDebugIdIdentifier = "sentry-dbid-d74bc9bc-ce18-4303-b11a-c29a44b68728");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "994f0254-5425-4c98-9acd-e046d82c113a", e._sentryDebugIdIdentifier = "sentry-dbid-994f0254-5425-4c98-9acd-e046d82c113a");
} catch {}
})();
import { AnimatedItems as e, CHART_CARD as t, CHART_COLORS as n, Cell as r, ChartBackground as i, ChartContainer as a, ChartEmpty as o, ChartLegend as s, ChartLegendContent as c, ChartTip as l, ChartTooltip as u, ChartTooltipContent as d, DefaultZIndexes as f, LabelListFromLabelProp as p, Layer as m, LoadingIndicator as h, PolarChart as g, PolarLabelListContextProvider as _, RegisterGraphicalItemId as v, Sector as y, SetPolarGraphicalItem as b, SetPolarLegendPayload as x, SetTooltipEntrySettings as S, Shape as C, ZIndexLayer as w, adaptEventsOfChild as T, arrayTooltipSearcher as E, combineAllBarPositions as ee, combineBarPosition as D, combineBarSizeList as te, combineDisplayedStackedData as ne, combineStackGroups as re, combineStackedData as ie, createSelector as O, defaultPolarChartProps as ae, findAllByType as oe, getBandSizeOfAxis as k, getBaseValueOfBar as se, getCateCoordinateOfBar as ce, getColorsCount as le, getNormalizedStackId as ue, getTooltipNameProp as de, getValueByDataKey as fe, getZIndexFromUnknown as pe, interpolate as me, isCategoricalAxis as he, isNullish as ge, isStacked as _e, matchAppend as ve, mathSign as ye, noop as be, resolveDefaultProps as xe, selectActiveTooltipIndex as Se, selectAngleAxis as Ce, selectBarCategoryGap as we, selectBarGap as Te, selectChartDataAndAlwaysIgnoreIndexes as Ee, selectChartDataWithIndexes as De, selectChartLayout as A, selectPolarItemsSettings as Oe, selectPolarViewBox as ke, selectRadiusAxis as Ae, selectReverseStackOrder as je, selectRootBarSize as Me, selectRootMaxBarSize as Ne, selectStackOffsetType as Pe, selectTooltipAxis as Fe, selectUnfilteredPolarItems as Ie, sliceConfig as Le, sliceKey as Re, svgPropertiesNoEvents as ze, svgPropertiesNoEventsFromUnknown as Be, truncateByDomain as Ve, useAnimationCallbacks as He, useAppSelector as j, useMouseClickItemDispatch as Ue, useMouseEnterItemDispatch as We, useMouseLeaveItemDispatch as Ge, usePolarChartLayout as Ke } from "./peach-app.chart-tip-CRxYp6KT.js";
@@ -803,7 +803,7 @@ function mr({ title: e, rows: n, empty: r, unit: i = "个视频" }) {
});
let f = c >= 0 ? c : a, p = d.reduce((e, t) => e + t.value, 0), m = d[f], h = (e) => s((t) => t === e ? -1 : e), g = Ct(d.map((e) => e.value)), _ = d.map((e, t) => ({
slice: Re(t),
- value: e.value,
+ count: e.value,
arc: xt(e.value, g)
}));
return /* @__PURE__ */ (0, Y.jsxs)("section", {
@@ -850,7 +850,7 @@ function mr({ title: e, rows: n, empty: r, unit: i = "个视频" }) {
}
}), /* @__PURE__ */ (0, Y.jsx)(l, {
nameKey: "slice",
- valueKey: "value",
+ valueKey: "count",
hideLabel: !0
})]
})
@@ -1473,4 +1473,4 @@ function Vr(e) {
}
export { Vr as StatsPage };
-//# debugId=d74bc9bc-ce18-4303-b11a-c29a44b68728
\ No newline at end of file
+//# debugId=994f0254-5425-4c98-9acd-e046d82c113a
\ No newline at end of file