Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(stats): 空间使用率、覆盖率与占比读作 meter

longmeidao5140571e5bdf
diff --git a/frontend/e2e/design-settings.test.ts b/frontend/e2e/design-settings.test.ts
index 511512567..0f10d4d7c 100644
--- a/frontend/e2e/design-settings.test.ts
+++ b/frontend/e2e/design-settings.test.ts
@@ -33,14 +33,14 @@ describe('设计决定:设置、口味、统计与筛选玻璃', () => {
await page.reload({ waitUntil: 'load' });
await page.getByRole('tab', { name: /使用空间/ }).click();
const panel = page.locator('[role="tabpanel"]').first();
- await panel.locator('[role="progressbar"]').first().waitFor({ state: 'visible', timeout: 15_000 });
+ await panel.locator('[role="meter"]').first().waitFor({ state: 'visible', timeout: 15_000 });
await settle(page);
const shown = await panel.evaluate((element) => {
const card = element.firstElementChild!;
const cardBox = card.getBoundingClientRect();
const detail = card.lastElementChild!.getBoundingClientRect();
return {
- filled: [...element.querySelectorAll('[role="progressbar"]')].map((bar) =>
+ filled: [...element.querySelectorAll('[role="meter"]')].map((bar) =>
Math.round(bar.querySelectorAll('rect')[1]!.getBoundingClientRect().width / bar.getBoundingClientRect().width * 100)),
rows: [...element.querySelectorAll('article')].map((row) => getComputedStyle(row).borderBottomWidth),
overflow: detail.right - (cardBox.right - parseFloat(getComputedStyle(card).paddingRight)),
diff --git a/frontend/src/react/components/progress.tsx b/frontend/src/react/components/progress.tsx
index 01d7f986e..451b15e4e 100644
--- a/frontend/src/react/components/progress.tsx
+++ b/frontend/src/react/components/progress.tsx
@@ -11,16 +11,19 @@ const SCALE = 100;
/** 一道刻度的宽度,按 `SCALE` 计。 */
const STOP_WIDTH = 0.4;
-/** `tinted`:放在提示条那种灰底上时,轨道用文字色叠一层浅色,比底色略深(暗色下略亮),不和底色融成一片。 */
-export function Progress({ label, value, max = 100, stops = [], tinted = false }: {
- label: string; value: number; max?: number; stops?: number[]; tinted?: boolean;
+/** `tinted`:放在提示条那种灰底上时,轨道用文字色叠一层浅色,比底色略深(暗色下略亮),不和底色融成一片。
+ *
+ * `meter`:画的是已知范围里的一个量(空间使用率、覆盖率、占比),不是在往完成走的任务。读屏把
+ * `progressbar` 念成「进行中」,所以这类读数改用 `meter`;画法不变(同 BoardUI Meter)。 */
+export function Progress({ label, value, max = 100, stops = [], tinted = false, meter = false }: {
+ label: string; value: number; max?: number; stops?: number[]; tinted?: boolean; meter?: boolean;
}) {
const total = max > 0 ? max : 1;
const clamp = (at: number) => Math.min(Math.max(Number.isFinite(at) ? at : 0, 0), total);
const share = (at: number) => (clamp(at) / total) * SCALE;
/* 读屏值同画面一样夹在 [0, max]:超额完成读成「150 / 100」会被当成算错。 */
return (
- <svg role="progressbar" aria-label={label} aria-valuemin={0} aria-valuemax={total} aria-valuenow={clamp(value)}
+ <svg role={meter ? 'meter' : 'progressbar'} aria-label={label} aria-valuemin={0} aria-valuemax={total} aria-valuenow={clamp(value)}
viewBox={`0 0 ${SCALE} 1`} preserveAspectRatio="none" className="h-1.5 w-full overflow-hidden rounded-full">
<rect width={SCALE} height={1} className={tinted ? 'fill-text-primary/10' : 'fill-background-tertiary-default'} />
<rect width={share(value)} height={1} className="fill-border-focus-ring" />
diff --git a/frontend/src/react/stats/stats-page.tsx b/frontend/src/react/stats/stats-page.tsx
index b2b9d462e..597b5b2f5 100644
--- a/frontend/src/react/stats/stats-page.tsx
+++ b/frontend/src/react/stats/stats-page.tsx
@@ -93,7 +93,7 @@ function Coverage({ term, value, total }: { term: string; value: Count; total: n
: null}
</b>
</p>
- <Progress label={`${term}:${fmtCount(value)} / ${total.toLocaleString()}`}
+ <Progress meter label={`${term}:${fmtCount(value)} / ${total.toLocaleString()}`}
value={known(value) ? within(value, max) : 0} max={max} />
</div>
);
@@ -197,7 +197,7 @@ function VolumeRow({ volume }: { volume: StorageVolume }) {
) : volume.online ? <StatusLabel>容量未取得</StatusLabel> : <ConnectionStatus online={false} />}
</header>
{total != null
- ? <Progress label={`${volume.label}空间使用率`} value={within(used, Math.max(total, 1))} max={Math.max(total, 1)} />
+ ? <Progress meter label={`${volume.label}空间使用率`} value={within(used, Math.max(total, 1))} max={Math.max(total, 1)} />
: null}
<p className="flex justify-between gap-3 text-caption-1-regular text-text-secondary">
<span className="min-w-0 break-words">{volume.root ?? '未映射'}</span>
@@ -272,7 +272,7 @@ function RecentWatches({ rows, hasMedia }: { rows: RecentPlay[]; hasMedia: boole
</p>
</div>
<div className="min-w-0 basis-40">
- <Progress label={`真实观看 ${real.toFixed(0)}%`} value={real} />
+ <Progress meter label={`真实观看 ${real.toFixed(0)}%`} value={real} />
<small className="mt-1.5 block text-caption-1-regular text-text-secondary">
{`真实 ${real.toFixed(0)}% · 到达 ${reachedShare(row).toFixed(0)}%`}
</small>
@@ -302,7 +302,7 @@ function TagSources({ sources, videos }: { sources: TagSource[]; videos: number
<small className="ml-1 text-caption-1-regular font-normal text-text-secondary">个视频</small>
</b>
</header>
- <Progress label={`${source.k} 覆盖视频`} value={within(source.assets, Math.max(videos, 1))}
+ <Progress meter label={`${source.k} 覆盖视频`} value={within(source.assets, Math.max(videos, 1))}
max={Math.max(videos, 1)} />
<small className="text-caption-1-regular text-text-secondary">{source.n.toLocaleString()} 条标签</small>
</article>
diff --git a/frontend/src/react/taste/taste-page.tsx b/frontend/src/react/taste/taste-page.tsx
index 505021257..e82a70662 100644
--- a/frontend/src/react/taste/taste-page.tsx
+++ b/frontend/src/react/taste/taste-page.tsx
@@ -631,7 +631,7 @@ function CoverageMetric({ term, value, rest }: { term: string; value: number; re
<span className="ml-1.5 text-caption-1-regular text-text-secondary">{`${rest.toLocaleString()} 项待补`}</span>
</b>
</p>
- <Progress label={`${term}:${value.toLocaleString()} / ${total.toLocaleString()}`}
+ <Progress meter label={`${term}:${value.toLocaleString()} / ${total.toLocaleString()}`}
value={value} max={total} />
</div>
);
diff --git a/frontend/test/react/stats.test.tsx b/frontend/test/react/stats.test.tsx
index 9d3162cd6..3cf2a39bc 100644
--- a/frontend/test/react/stats.test.tsx
+++ b/frontend/test/react/stats.test.tsx
@@ -304,7 +304,7 @@ it('类别名放不下就截断加省略号,轴宽跟着最长的名字走并
it('覆盖率那一层的每条进度用同一对分子分母,不另算一遍', async () => {
const { host } = await open();
await click(tabNamed(host, '内容标签'));
- const bars = [...host.querySelectorAll('[role=progressbar]')];
+ const bars = [...host.querySelectorAll('[role=meter]')];
expect(bars.map((bar) => bar.getAttribute('aria-label'))).toEqual([
'有创作者:3 / 4', '有番号:2 / 4', '有厂牌:1 / 4', '已抽帧:4 / 4', '已探测时长:4 / 4',
]);
@@ -319,7 +319,7 @@ it('取不到容量的卷不画使用率,只说取不到', async () => {
const panel = host.querySelectorAll('[role=tabpanel]')[0]!;
expect(panel.textContent).toContain('容量未取得');
expect(panel.textContent).toContain('未映射');
- expect(panel.querySelector('[role=progressbar]')).toBeNull();
+ expect(panel.querySelector('[role=meter]')).toBeNull();
});
it('按字节计的卷在百格画布上按真实比例画出已用那一段,读屏值仍是字节', async () => {
@@ -330,7 +330,7 @@ it('按字节计的卷在百格画布上按真实比例画出已用那一段,
storage_summary: { volumes: 1, online: 1, measured: 1, free: total - used, used, total },
}));
await click(tabNamed(host, '使用空间'));
- const bar = host.querySelectorAll('[role=tabpanel]')[0]!.querySelector('[role=progressbar]')!;
+ const bar = host.querySelectorAll('[role=tabpanel]')[0]!.querySelector('[role=meter]')!;
expect(bar.getAttribute('aria-valuemax')).toBe(String(total));
expect(bar.getAttribute('aria-valuenow')).toBe(String(used));
expect(bar.getAttribute('viewBox')).toBe('0 0 100 1');
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index dd331816b..973996106 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] = "d1b7d4c8-5cb7-4187-9894-40c71bb5fdce", e._sentryDebugIdIdentifier = "sentry-dbid-d1b7d4c8-5cb7-4187-9894-40c71bb5fdce");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6ac720ac-5b6d-4b44-8e09-b880517462b4", e._sentryDebugIdIdentifier = "sentry-dbid-6ac720ac-5b6d-4b44-8e09-b880517462b4");
} 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) => {
@@ -46045,14 +46045,14 @@ function DH({ label: e }) {
}
// src/react/components/progress.tsx
var OH = 100, W_e = .4;
-function kH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1 }) {
- let a = n > 0 ? n : 1, o = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), a), s = (e) => o(e) / a * OH;
+function kH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, meter: a = !1 }) {
+ let o = n > 0 ? n : 1, s = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), o), c = (e) => s(e) / o * OH;
return /* @__PURE__ */ (0, I.jsxs)("svg", {
- role: "progressbar",
+ role: a ? "meter" : "progressbar",
"aria-label": e,
"aria-valuemin": 0,
- "aria-valuemax": a,
- "aria-valuenow": o(t),
+ "aria-valuemax": o,
+ "aria-valuenow": s(t),
viewBox: `0 0 ${OH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
@@ -46063,12 +46063,12 @@ function kH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1 })
className: i ? "fill-text-primary/10" : "fill-background-tertiary-default"
}),
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: s(t),
+ width: c(t),
height: 1,
className: "fill-border-focus-ring"
}),
r.map((e) => /* @__PURE__ */ (0, I.jsx)("rect", {
- x: s(e),
+ x: c(e),
width: W_e,
height: 1,
className: "fill-background-secondary-default"
@@ -79004,7 +79004,7 @@ async function y6(e, t) {
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var b6 = v6(() => import("./peach-app.jav-page-CvsnSwyE.js")), x6 = v6(() => import("./peach-app.stats-page-fAkPsLC6.js")), S6 = v6(() => import("./peach-app.taste-page-O5P41pRb.js")), C6 = v6(() => import("./peach-app.review-page-DL1KGdJQ.js")), w6 = v6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), T6 = v6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), E6 = v6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), D6 = v6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), O6 = v6(async () => {
+var b6 = v6(() => import("./peach-app.jav-page-CvsnSwyE.js")), x6 = v6(() => import("./peach-app.stats-page-XSybs-4I.js")), S6 = v6(() => import("./peach-app.taste-page-D_ZxnloB.js")), C6 = v6(() => import("./peach-app.review-page-DL1KGdJQ.js")), w6 = v6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), T6 = v6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), E6 = v6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), D6 = v6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), O6 = v6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-BY1Gq6Cj.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);
return {
ConfigurationPage: e,
@@ -84204,4 +84204,4 @@ if (!$9) throw Error("主界面宿主缺失");
Jze($9);
export { VL as $2ec61d1d4f780267$export$a8a3e93435678ff9, YL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, fz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, wD as $72abaeab4d80592f$export$78efe591171d7d45, iB as $76d00c5a4edb230a$export$76ccd210b9029917, tB as $76d00c5a4edb230a$export$816b5d811295e6bc, sB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, lB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, eB as $76d00c5a4edb230a$export$f850895b287ef28e, Ahe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, khe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Ehe as $b4f18e3395fe64d7$export$b2539bed5023c21c, pB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Nhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, dE as $ea3928288112382f$export$439d29a4e110a164, Tz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Mz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Nz as $fe21c36db05242bb$export$d7b12c4107be0d61, fge as $l, Kj as ACCENTS, pAe as AMANE_BRIDGE_CHECK_URL, R$ as AMANE_BRIDGE_KEY, mAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, qU as ArtSlot, g2 as BATCH_DELETE_TEXT, J as Button, yL as ButtonLink, GB as Bx, p$ as CLEANUP_ENTRY, f$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, U1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, t1 as CONFIGURATION_KEY, qY as CONFIGURATION_URL, hAe as COOKIE_TEXT_LIMIT, L$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, N$ as CUSTOM_SOURCES_KEY, M$ as CUSTOM_SOURCES_URL, dG as CatalogViewToggle, zV as Checkbox, RV as CheckboxGlyph, kV as ChevronSortDown, KU as Chip, nW as CloudDownloadDialog, NH as CollapseChevron, MH as CollapseRegion, o$ as CollectionSummary, Kwe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, MQ as DIAGNOSTICS_KEY, GTe as DIRECTORY_TEMPLATE_ERROR, lW as DISCOVERY_SORTS, YU as DOWNLOADS_KEY, JU as DOWNLOADS_URL, pY as DUPLICATES_KEY, qJ as DataTableFooter, UJ as DataTableFrame, KJ as DataTableSort, zH as Disclosure, oye as DownloadsPanel, rge as E3, qwe as ENTITY_REVIEW_KINDS, V1 as ENTRY_LINKS_HELP, H1 as ENTRY_LINKS_HINT, LB as Ea, Lge as EmptyFocusButton, dV as EmptyState, LH as ErrorText, $_e as ExternalLink, Vr as FEEDS_KEY, tX as FEED_SCHEDULE_KEY, u$ as FIELDSET_FOOT, NFe as FLOW_LABEL_X, X3 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, N8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, FZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, eX as FOLLOW_SCHEDULE_KEY, nve as Fact, tve as FactList, RH as FieldLabel, C$ as Fieldset, S$ as FieldsetTitle, Dpe as FilterGlass, fL as FilterGlassRows, dL as FilterIconButton, pL as FilterPill, Q_e as Footer, HB as Gg, mL as GlassPill, YB as HN, IH as Help, nV as HintText, TFe as IDLE_POLL_MS, Fwe as IDLE_REPAIR, sL as IconButton, PQ as IndexSearch, sV as Input, oV as InputBase, T$ as IssueRow, uM as JAV_LAYOUTS, F0 as JAV_RECOMMENDATION_GRID, EX as JUNK_KEY, vW as JavHeader, kwe as KEEP_LABELS, Ur as LAYOUTS, B1 as LIBRARY_FOLDER_HELP, QV as LIBRARY_PROCESSING_KEY, zY as LINKS_KEY, BY as LINK_CHECK_KEY, _Te as LINK_KINDS, VY as LINK_PRUNE_KEY, nr as LOC, tV as Label, O$ as LibraryProcessingCard, OV as LibraryShortcuts, mH as LinkButton, mge as Lo, DH as LoadingDots, ige as M6, STe as MEDIA_PROCESSING_KEY, rX as MEDIA_PROCESSING_URL, vY as MEDIA_REPAIR_KEY, _Y as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, NV as MENU_ITEM, PV as MENU_ITEM_INTERACTIVE, MV as MENU_POPOVER_SURFACE, gge as Ma, vH as MenuDialog, xK as MixCard, cV as ModalFrame, xx as MotionConfigContext, $B as NR, w$ as NameLink, uV as Note, Nge as OA, oX as ORGANIZE_KEY, p2 as ORGANIZE_PARAMETER_HINT, f2 as ORGANIZE_SCOPE_HINT, d2 as ORGANIZE_TEXT, lX as ORPHAN_RECORDS_KEY, h2 as ORPHAN_RECORDS_TEXT, BB as OV, TB as P7, CX as PERFORMER_DELETE_KEY, hye as PHASES, JY as PICK_FOLDER_URL, h$ as PLAIN_STAT_STRIP, A$ as PLAYLISTS_KEY, bje as POLICY_COLUMNS, Sje as POLICY_COVER_NOTE, xje as POLICY_MATRIX, z1 as POLICY_SUMMARY, GJ as Pagination, D$ as PathLine, ZB as Pf, II as PillTabList, Fke as PlainStat, kH as Progress, CY as QUALITY_GOALS_KEY, XB as RB, M0 as RELEASE_COLUMN_VISIBILITY_KEY, j0 as RELEASE_COLUMN_WIDTHS_KEY, uW as RELEASE_SORTS, Xje as RELEASE_SORT_COLUMNS, _$ as REPAIR_CARD_TEXT, yY as REPAIR_LIBRARIES_KEY, mX as RESOURCE_APPLY_KEY, pX as RESOURCE_SCAN_KEY, m2 as RESOURCE_SYNC_TEXT, Vke as RESULT_PANEL, Hke as RESULT_SECTION, Gwe as REVIEW_CATEGORIES, TX as REVIEW_COUNTS_KEY, Jwe as REVIEW_DECISION_LABELS, EY as REVIEW_KEY, DY as REVIEW_LABELS, kY as REVIEW_QUEUES, AY as REVIEW_QUEUE_LABELS, HG as RetryNote, Mge as Rf, eV as Rk, Y_e as Rows, dAe as SCRAPING_CHECK_URL, F$ as SCRAPING_COVER_URL, I$ as SCRAPING_KEY, uAe as SCRAPING_SETTINGS_URL, aU as SEGMENT, iU as SEGMENTED_TRACK, $Y as SETTINGS_KEY, YY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, x3 as STATS_KEY, Nke as STAT_STRIP, Pke as STAT_STRIP_SIX, J_e as Section, Uke as SectionHeading, Z_e as SectionSkeleton, rU as SegmentedRadioGroup, _ve as SegmentedTabList, FG as Segments, WJ as Select, UU as Select$1, a1 as SelectField, WU as SelectItem, eY as SelectionActions, wj as SelectionDock, tY as SelectionPopover, PH as SettingsCard, q_e as SettingsRow, FH as SettingsSectionLabel, IG as Shuffle, ove as SiteLabel, pG as SortDirectionIcon, LG as SortKeys, hQ as SourceAvatar, UH as SourceLabel, BH as SourceMark, X_e as Stack, Ike as StatCard, E$ as StatusLabel, kge as Su, $2 as Switch, GI as TASKS_KEY, mFe as TASTE_REFRESH_KEY, hFe as TASTE_WINDOWS, nX as THUMBNAIL_JOBS_KEY, OX as TRASH_KEY, ope as TRIGGER_LABELS, MJ as Table, nY as TableColumnControls, rY as TableColumnResizer, aY as TableSelectionHeader, t$ as TagManager, eve as TaskCenterLink, AH as TaskProgress, iV as TextField, rV as TextFieldContext, RB as Un, iW as WANTS_KEY, m4 as WantMagnets, Kg as WithPromise, kB as Wt, IB as Xc, QB as Xf, jB as Xl, AB as Xt, DB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, jge as aB, Ei as addAlias, Ti as addSource, oW as addWant, uS as animate, B as apiGet, V as apiSend, iM as appSettingsStore, uEe as applyConfirmText, SX as applyLeftovers, lEe as applyPlanText, fEe as applyText, cM as applyTheme, vy as asNumber, QTe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, bq as autoResetPageIndex, _o as avatarInner, D3 as bandRows, KTe as baseName, Pwe as batchOperate, wue as beginPlayerGuidePreview, kj as boundedPreference, jwe as bulkCloudPreferences, hV as busyProps, Age as cB, UNe as cachedMagnetStates, Bg as calcGeneratorVelocity, tTe as canApprove, mg as cancelFrame, rEe as candidateText, CU as cardClass, CM as cardRatio, BJ as catalogListSkeletonCellHtml, FB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, xTe as checkLine, Hi as checkReceipt, Ui as checkSummary, _Ae as checkText, Ki as checkedText, cK as clickedBlank, K5 as closeDrawerAfterNav, Cwe as cloudLocations, b0 as cloudProxySkeleton, WC as clsx, yge as cn, sv as collectMotionValues, Bq as columnVisibilityFeature, DJ as column_getCanSort, CJ as column_getSortFn, $we as commonReviewSources, tW as composingKey, Af as configurationSection, yFe as configureTasteBrowser, ll as confirmModal, ipe as controlTask, nq as copyInstancePropertiesWithoutMemos, lo as coverUrl, jq as createColumnHelper, iAe as createPlaylist, Xi as credentialDone, g0 as credentialsSkeleton, uTe as currentReviewRow, q as cx, WB as dZ, sTe as decisionPayload, cTe as decisionReceipt, oTe as defaultChoice, mEe as deletePerformerVideos, oAe as deletePlaylist, x as diagnosticHeaders, R1 as diagnosticsSkeleton, wye as discoveryArtwork, dW as discoveryKey, xye as discoveryScore, r9 as disposeStage, Dwe as distinctName, Bi as dropSources, Oge as du, Mwe as duplicateVictims, QI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, yq as expandRowModel, vB as f1, bo as facePos, ei as feedIntervalText, V$ as fetchAmaneBridge, vi as fetchCheckJob, n1 as fetchConfiguration, B$ as fetchCoverJob, _i as fetchCredentials, P$ as fetchCustomSources, wX as fetchDeletePerformers, pEe as fetchDeletePlan, NQ as fetchDiagnostics, fW as fetchDiscoveries, hY as fetchDuplicates, epe as fetchEarlier, TTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, wTe as fetchFollowSchedule, AX as fetchJunkSummary, oH as fetchLibraryProcessing, WY as fetchLinkCheck, GY as fetchLinkPrune, UY as fetchLinkStats, CTe as fetchMediaProcessing, bY as fetchMediaRepair, br as fetchMediaSources, sX as fetchOrganize, RTe as fetchOrganizeExample, uX as fetchOrphanRecords, ji as fetchPending, j$ as fetchPlaylists, wY as fetchQualityGoals, hW as fetchReleases, xY as fetchRepairLibraries, yi as fetchResolveJob, gX as fetchResourceApply, hX as fetchResourceScan, IY as fetchReview, kX as fetchReviewCounts, iX as fetchSettings, z$ as fetchSources, S3 as fetchStats, bi as fetchSuggestions, qI as fetchTasks, q3 as fetchTaste, bFe as fetchTasteJob, ETe as fetchThumbnailJobs, jX as fetchTrashSummary, aW as fetchWants, Zwe as filterReviewRows, er as firstGrapheme, RK as flexRender, FFe as flowGraph, IFe as flowLabel, PPe as fmtCount, Jn as fmtDur, Xn as fmtSize, $fe as foldByKind, gpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, vpe as followupDetail, Qfe as followupTally, pg as frame, CB as g4, Uq as getDefaultPaginationState, SM as gridLayout, li as groupByAuthor, hpe as groupFollowups, NY as groupReviewRows, sEe as hasChanges, _X as hasResourceRoots, YI as hasResultProblems, EFe as historySpan, yB as i2, wFe as importTasteExport, _0 as indexersSkeleton, Ig as interpolate, cW as invalidateWants, ZI as isActive, $r as isBroken, qr as isLayout, vv as isMotionValue, OY as isReviewCategory, _pe as isRoutine, v0 as javBrowserSkeleton, L0 as javContentSkeleton, hM as javLayout, I0 as javTagSkeleton, yEe as junkBreakdown, sAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, C3 as known, $he as l7, mpe as latestOfKind, $n as leadingGraphemes, KPe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, wB as m7, UB as mM, Dn as mapLimit, Ai as markItem, O3 as max, WPe as mediumRows, tpe as mergeFinished, k3 as min, hTe as mirrorText, Rwe as missingToolText, gY as mixedCloudPreferences, nL as momentText, dS as motion, lv as motionValue, rn as nameFallback, Ue as notifyManager, age as oe, JTe as organizeOutcome, $0 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Op as peachHistory, Op as peachHistory$1, aTe as pendingGenres, IPe as percentText, VTe as pickOrganizeFolder, m$ as plainStatClass, qTe as planSummary, w3 as playedFor, RPe as playedItemUrl, KI as pollInterval, Ys as popCount, rAe as posterUrl, qbe as previewLibraryColor, BTe as previewOrganize, Vwe as previewUrl, fpe as problemDestination, tH as processingActive, $I as progressText, HH as providerIcon, bTe as pruneText, yX as purgeCount, $Te as purgeOrphan, KB as pv, Dge as qE, H as queryClient, bB as r2, MFe as radarRows, VPe as radialArc, HPe as radialBarSize, BPe as radialCeiling, zPe as radialSlices, RN as randomId, AFe as rankDetail, jFe as rankShares, E3 as reachedShare, eL as readableErrorHeadline, Sye as recommendationScore, dTe as recordGenre, tEe as recordsText, cAe as recreatePlaylist, tAe as refreshPlaylists, El as relayoutCovers, N0 as releaseColumns, pW as releaseFilters, mW as releaseKey, Vi as reloadFollowManage, mTe as reloadReview, Tje as rememberShape, UTe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, CFe as removeTasteSource, sW as removeWants, Oi as renameAliasGroup, aAe as renamePlaylist, Se as replaceEqualDeep, JPe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, QK as require_with_selector, vye as resetWants, mr as resolveFollowSort, Ug as resolveStartTime, k_e as restartEffectText, nAe as resumeAssetId, Xwe as reviewGroupingOptions, MY as reviewQueueData, jY as reviewQueueOf, vEe as reviewSummary, Qwe as reviewWindow, rTe as rowEvidence, FY as rowFieldName, Xq as rowPaginationFeature, _J as rowSelectionFeature, AJ as rowSortingFeature, PY as rowSubject, iTe as rowTags, nTe as rowTitle, Xhe as s5, ki as saveCredential, cEe as scanLine, jTe as schedulePollInterval, bye as searchNote, eTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, pTe as settleReviewRows, Ewe as sharedNamePrefix, kp as shellNavigate, x8 as showToast, Bn as siteMarkUrl, uq as skipFirstRun, PI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, dEe as sourceMeta, Bs as spinnerHtml, Pg as spring, pV as spriteGlyph, xi as startCheck, vTe as startLinkCheck, yTe as startLinkPrune, HTe as startOrganize, Si as startResolve, aEe as startResourceApply, iEe as startResourceScan, SFe as startTasteRefresh, Mke as statCardClass, cpe as statusLabel, Lwe as statusLine, Qr as statusText, wM as storeJavLayout, lTe as submitDecision, rL as summaryItems, Mq as tableFeatures, dq as tableMemo, di as tableRows, dpe as taskIssues, ppe as taskSubject, J3 as tasteDate, OFe as tasteDimensions, DFe as tasteHours, K3 as tasteKey, _Fe as tasteRefetchInterval, vFe as tasteTime, BI as textLang, A0 as tierPlaceholdersHtml, rh as time, uge as tl, hi as toggleGroup, Y3 as topScores, xge as um, hge as uo, hH as useAction, AZ as useBackgroundJob, uG as useCatalogView, FU as useClientUpdates, hm as useConstant, iL as useEntityNames, uL as useHorizontalScroller, gm as useIsomorphicLayoutEffect, sK as useLibraryTints, It as useMutation, BV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, $x as useReducedMotion, ATe as useRunSchedule, OTe as useSaveFollowSchedule, aX as useSaveSettings, MTe as useSaveThumbnailMode, jJ as useTable, XJ as useTablePreferences, _L as useViewGlide, Nwe as victimBytes, dge as vl, yye as wantName, LPe as watchNote, T3 as watchedShare, Ac as wireHorizontalScroller, WTe as withOrganizeJob, Cye as writeJavQuery };
-//# debugId=d1b7d4c8-5cb7-4187-9894-40c71bb5fdce
\ No newline at end of file
+//# debugId=6ac720ac-5b6d-4b44-8e09-b880517462b4
\ No newline at end of file
diff --git a/web/dist/peach-app.stats-page-fAkPsLC6.js b/web/dist/peach-app.stats-page-XSybs-4I.js
similarity index 99%
rename from web/dist/peach-app.stats-page-fAkPsLC6.js
rename to web/dist/peach-app.stats-page-XSybs-4I.js
index bd208a859..5004a6584 100644
--- a/web/dist/peach-app.stats-page-fAkPsLC6.js
+++ b/web/dist/peach-app.stats-page-XSybs-4I.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] = "994f0254-5425-4c98-9acd-e046d82c113a", e._sentryDebugIdIdentifier = "sentry-dbid-994f0254-5425-4c98-9acd-e046d82c113a");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e0888090-de36-44b0-bc48-c2b4410cf740", e._sentryDebugIdIdentifier = "sentry-dbid-e0888090-de36-44b0-bc48-c2b4410cf740");
} 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";
@@ -919,6 +919,7 @@ function Q({ term: e, value: t, total: n }) {
}) : null]
})]
}), /* @__PURE__ */ (0, Y.jsx)(I, {
+ meter: !0,
label: `${e}:${L(t)} / ${n.toLocaleString()}`,
value: gt(t) ? Ar(t, r) : 0,
max: r
@@ -1097,6 +1098,7 @@ function Ir({ volume: e }) {
})]
}),
t == null ? null : /* @__PURE__ */ (0, Y.jsx)(I, {
+ meter: !0,
label: `${e.label}空间使用率`,
value: Ar(n, Math.max(t, 1)),
max: Math.max(t, 1)
@@ -1195,6 +1197,7 @@ function zr({ rows: e, hasMedia: t }) {
}), /* @__PURE__ */ (0, Y.jsxs)("div", {
className: "min-w-0 basis-40",
children: [/* @__PURE__ */ (0, Y.jsx)(I, {
+ meter: !0,
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, Y.jsx)("small", {
@@ -1236,6 +1239,7 @@ function Br({ sources: e, videos: t }) {
})]
}),
/* @__PURE__ */ (0, Y.jsx)(I, {
+ meter: !0,
label: `${e.k} 覆盖视频`,
value: Ar(e.assets, Math.max(t, 1)),
max: Math.max(t, 1)
@@ -1473,4 +1477,4 @@ function Vr(e) {
}
export { Vr as StatsPage };
-//# debugId=994f0254-5425-4c98-9acd-e046d82c113a
\ No newline at end of file
+//# debugId=e0888090-de36-44b0-bc48-c2b4410cf740
\ No newline at end of file
diff --git a/web/dist/peach-app.taste-page-O5P41pRb.js b/web/dist/peach-app.taste-page-D_ZxnloB.js
similarity index 99%
rename from web/dist/peach-app.taste-page-O5P41pRb.js
rename to web/dist/peach-app.taste-page-D_ZxnloB.js
index 74daa29e8..ce9d8cfa2 100644
--- a/web/dist/peach-app.taste-page-O5P41pRb.js
+++ b/web/dist/peach-app.taste-page-D_ZxnloB.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] = "9b65577e-8550-4492-95cf-43eb640447a0", e._sentryDebugIdIdentifier = "sentry-dbid-9b65577e-8550-4492-95cf-43eb640447a0");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "276385a8-67cc-4297-9d17-11a30f8381c0", e._sentryDebugIdIdentifier = "sentry-dbid-276385a8-67cc-4297-9d17-11a30f8381c0");
} catch {}
})();
import { ActivePoints as e, AnimatedItems as t, CHART_CARD as n, CHART_COLORS as r, CartesianLabelListContextProvider as i, CategoryTick as a, ChartBackground as o, ChartContainer as s, ChartHead as c, ChartLegend as l, ChartLegendContent as u, ChartTip as d, ChartTooltip as f, ChartTooltipContent as p, DefaultZIndexes as m, Dots as h, EvilBarChart as g, LabelListFromLabelProp as _, Layer as v, LoadingIndicator as y, PolarChart as b, PolarLabelContextProvider as x, PolarLabelFromLabelProp as S, RegisterGraphicalItemId as C, SetPolarGraphicalItem as ee, SetPolarLegendPayload as w, SetTooltipEntrySettings as T, Text as te, ZIndexLayer as E, adaptEventsOfChild as ne, addRadiusAxis as re, arrayTooltipSearcher as ie, categoryAxisWidth as ae, cn as oe, createSelector as D, defaultPolarChartProps as se, defaultPolarRadiusAxisProps as ce, fitLabel as le, getAxisTypeBasedOnLayout as ue, getBandSizeOfAxis as de, getClassNameFromUnknown as fe, getColorsCount as pe, getTooltipNameProp as me, getValueByDataKey as he, identity as ge, interpolate as _e, isArrayLike as ve, isCategoricalAxis as ye, isNullish as be, iteratee as xe, matchAnimationItems as Se, matchByIndex as Ce, noop as we, polarToCartesian as O, removeRadiusAxis as Te, resolveDefaultProps as Ee, selectAngleAxis as De, selectChartDataAndAlwaysIgnoreIndexes as Oe, selectChartLayout as ke, selectPolarViewBox as Ae, selectRadiusAxis as je, selectUnfilteredPolarItems as Me, svgPropertiesAndEvents as Ne, svgPropertiesNoEvents as k, svgPropertiesNoEventsFromUnknown as Pe, tone as Fe, useAnimationCallbacks as Ie, useAnimationStartSnapshot as Le, useAppDispatch as Re, useAppSelector as A, useIsPanorama as ze, usePolarChartLayout as Be } from "./peach-app.chart-tip-CRxYp6KT.js";
@@ -3301,6 +3301,7 @@ function ha({ term: e, value: t, rest: n }) {
})]
})]
}), /* @__PURE__ */ (0, Y.jsx)(at, {
+ meter: !0,
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -3309,4 +3310,4 @@ function ha({ term: e, value: t, rest: n }) {
}
export { ra as TASTE_GUIDE_KEY, ma as TastePage };
-//# debugId=9b65577e-8550-4492-95cf-43eb640447a0
\ No newline at end of file
+//# debugId=276385a8-67cc-4297-9d17-11a30f8381c0
\ No newline at end of file