Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(tasks): 失败任务卡恢复红框,结束原因写进正文

longmeidao26a4b130f15f
diff --git a/frontend/e2e/design-activity.test.ts b/frontend/e2e/design-activity.test.ts
index e4c1b3c8b..4d647d60b 100644
--- a/frontend/e2e/design-activity.test.ts
+++ b/frontend/e2e/design-activity.test.ts
@@ -74,7 +74,12 @@ describe('任务页云下载布局', () => {
const opened = await visit(browser, '/tasks', viewport, async page => {
await page.route('**/api/downloads?*', route => route.fulfill({ json: { available: false, tasks: [], providers: [] } }));
await page.route('**/api/tasks*', route => route.fulfill({ json: {
- available: true, skipped: [], finished: [], running: [{
+ available: true, skipped: [], finished: [{
+ id: 8, task_key: 'amane-bridge', task_label: '重建 amane 桥', trigger: 'manual', status: 'failed',
+ host: 'desk', started_at: '2026-11-03T07:00:00Z', finished_at: '2026-11-03T07:00:01Z', elapsed_seconds: 1,
+ progress_current: 0, progress_total: null, progress_label: '', result_summary: { ok: false },
+ error: 'uv sync 失败(exit 1):× Failed to fetch amane\n…\n fatal: missing object', parent_run_id: null, followup_key: '',
+ }], running: [{
id: 7, task_key: 'mp4-header-repair', task_label: '播放文件头修复', trigger: 'manual', status: 'running',
host: 'desk', started_at: '2026-11-03T08:00:00Z', finished_at: null, elapsed_seconds: 140,
progress_current: 0, progress_total: null, progress_label: '读取帧时间戳',
@@ -108,6 +113,13 @@ describe('任务页云下载布局', () => {
return { fits: document.documentElement.scrollWidth <= innerWidth, inside: link.right <= box.right };
});
assert.deepEqual(geometry, { fits: true, inside: true });
+ // 失败卡:框线是 danger 色且有宽度;结束原因在正文,全文收在底部那一行可展开的明细里。
+ const failed = page.locator('#run-8');
+ const frame = await failed.evaluate((node) => ({ width: getComputedStyle(node).borderTopWidth, color: getComputedStyle(node).borderTopColor }));
+ assert.deepEqual(frame, { width: '1px', color: await tokenColor(page, '#run-8', '--color-border-error-default') });
+ assert.equal(await failed.locator('[data-task-error]').count(), 1);
+ assert.equal(await failed.locator('details [data-error-details]').count(), 1);
+ assert.equal(await failed.locator('[data-error-excerpt]').count(), 0);
assert.deepEqual(opened.problems, []);
} finally { await opened.close() }
});
diff --git a/frontend/src/react/activity/activity-page.tsx b/frontend/src/react/activity/activity-page.tsx
index c1a50e858..545187aaa 100644
--- a/frontend/src/react/activity/activity-page.tsx
+++ b/frontend/src/react/activity/activity-page.tsx
@@ -41,7 +41,7 @@ import { TaskResources } from './task-resources';
import {
elapsedText, fetchEarlier, fetchTasks, foldByKind, foldRoutine, followupDetail, followupTally, groupFollowups, isActive,
hasResultProblems, isRoutine, latestOfKind, mergeFinished, momentText, pollInterval, problemDestination, progressText,
- statusLabel, summaryItems, taskIssues, taskSubject, TASKS_KEY, TRIGGER_LABELS, type FollowupCounts, type TaskControlState, type TaskRunPayload,
+ readableErrorHeadline, statusLabel, summaryItems, taskIssues, taskSubject, TASKS_KEY, TRIGGER_LABELS, type FollowupCounts, type TaskControlState, type TaskRunPayload,
} from './tasks';
/** 一张卡里最多列多少条后继。几批合成一张卡时会有上千条,全画出来一屏都是同一句。 */
@@ -121,8 +121,8 @@ function FollowupList({ rows }: { rows: TaskRunPayload[] }) {
/** 一轮任务一张卡。失败时整张卡的框线换成 danger 色,不给结束原因那行字上色——
* 一屏十几行里逐行读红字,比看一眼哪张卡的框是红的慢得多。 */
function RunCard(
- { run, meta, children, footer, issues, followups, followupTotal = 0, badge, resourceActive }:
- { run: TaskRunPayload; meta: string; children?: ReactNode; footer?: string; issues?: ReactNode;
+ { run, meta, children, error, issues, followups, followupTotal = 0, badge, resourceActive }:
+ { run: TaskRunPayload; meta: string; children?: ReactNode; error?: string; issues?: ReactNode;
followups?: TaskRunPayload[]; followupTotal?: number; badge?: ReactNode; resourceActive?: boolean },
) {
/* 一轮派出上千条后继时只下发最近几十条,合并的几批又可能各带几十条:标题写全数,
@@ -134,12 +134,13 @@ function RunCard(
const shown = listed.length;
const total = Math.max(followups?.length || 0, followupTotal);
const subject = taskSubject(run);
+ const errorFull = String(error || '').trim();
+ const errorHead = readableErrorHeadline(errorFull);
return (
// `id` 让「需要处理」那一行的「查看失败记录」能直接滚到这张卡。
<li id={`run-${run.id}`} data-status={run.status} data-task-key={run.task_key} data-run-id={run.id}
className={cardClass({
- padding: 'none',
- className: run.status === 'failed' ? 'flex flex-col border-border-error-default' : 'flex flex-col',
+ padding: 'none', bordered: run.status === 'failed' ? 'error' : undefined, className: 'flex flex-col',
})}>
{/* 卡片标题比分段标题(「正在进行」)低一档,标题、时间与摘要之间同一个行距。 */}
<div className="flex flex-col gap-2 px-5 py-4">
@@ -159,10 +160,17 @@ function RunCard(
className="min-w-0 max-w-full self-start truncate text-text-primary">
{subject.label}
</NameLink> : null}
+ {/* 结束原因是这一轮的结论,和摘要一样写在正文里;全文是明细,收进下面的「错误详情」。 */}
+ {errorHead ? <p data-task-error="" className="text-caption-1-regular text-text-secondary wrap-anywhere">{errorHead}</p> : null}
{children}
</div>
- {/* 问题详情、任务明细、技术详情都是可展开的明细,同样排成卡片底部带分隔线的一行,按这个顺序。 */}
+ {/* 问题详情、错误详情、任务明细、技术详情都是可展开的明细,同样排成卡片底部带分隔线的一行,按这个顺序。 */}
{issues ? <div className="border-t border-separator-border px-5 py-2.5">{issues}</div> : null}
+ {errorHead && errorFull !== errorHead ? <div className="border-t border-separator-border px-5 py-2.5">
+ <Disclosure summary="错误详情" contentClassName="pb-2.5">
+ <ErrorDetails label={`${run.task_label}错误详情`}>{errorFull}</ErrorDetails>
+ </Disclosure>
+ </div> : null}
{shown ? <div className="border-t border-separator-border px-5 py-2.5">
<Disclosure summary={`任务明细 · ${total.toLocaleString()} 项`}
contentClassName="pb-2.5"
@@ -181,11 +189,6 @@ function RunCard(
label={`${run.task_label}技术详情`} />
</Disclosure>
</div> : null}
- {footer
- ? <div className="flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3">
- <ErrorExcerpt text={footer} className="text-caption-1-regular text-text-secondary" />
- </div>
- : null}
</li>
);
}
@@ -229,7 +232,8 @@ function SettledRun(
.filter(Boolean)
// 作品链接已写出文件名,摘要不再列「名称」。
: summaryItems(taskSubject(run) ? { ...run.result_summary, name: '' } : run.result_summary)
- .filter((line) => line !== run.error);
+ // 结束原因由卡片单独写一行,摘要里同一句不再重复。
+ .filter((line) => line !== run.error && line !== readableErrorHeadline(run.error));
const issues = taskIssues(run);
const destination = problemDestination(run, latest);
const elapsed = elapsedText(run.elapsed_seconds);
@@ -240,7 +244,7 @@ function SettledRun(
: [TRIGGER_LABELS[run.trigger] || run.trigger, momentText(run.finished_at),
elapsed && `用时 ${elapsed}`]).filter(Boolean).join(' · ');
return (
- <RunCard run={run} meta={meta} footer={run.error} followups={followups} followupTotal={followupTotal}
+ <RunCard run={run} meta={meta} error={run.error} followups={followups} followupTotal={followupTotal}
issues={issues.length ? <Disclosure summary={`问题详情 · ${issues.length} 项`} contentClassName="pb-2.5">
<ErrorDetails label="任务问题详情">
<ul className="flex min-w-0 flex-col gap-3" data-task-issues="">
diff --git a/frontend/src/react/activity/downloads-panel.tsx b/frontend/src/react/activity/downloads-panel.tsx
index 1e585009f..aab650980 100644
--- a/frontend/src/react/activity/downloads-panel.tsx
+++ b/frontend/src/react/activity/downloads-panel.tsx
@@ -126,8 +126,7 @@ function TaskCard({ task, writable }: { task: DownloadTask; writable: boolean })
return (
<li data-download-state={task.state} data-download-id={task.id}
className={cardClass({
- padding: 'none',
- className: failed ? 'flex flex-col border-border-error-default' : 'flex flex-col',
+ padding: 'none', bordered: failed ? 'error' : undefined, className: 'flex flex-col',
})}>
<div className="flex items-stretch gap-3 px-5 pt-5 pb-4">
<div data-download-cover="" data-media-pic=""
diff --git a/frontend/src/react/components/card.tsx b/frontend/src/react/components/card.tsx
index 10c170065..a6cbc9dea 100644
--- a/frontend/src/react/components/card.tsx
+++ b/frontend/src/react/components/card.tsx
@@ -43,8 +43,9 @@ export type CardOptions = {
/** 卡片带互斥选中态:选中时换成浮层那一档面、收掉接触阴影,最上层压一圈 2px 的焦点环色描边。 */
selectable?: boolean;
/** 填充之上另加的那条描边,只给底色和所在表面分不开的卡:灰卡里的白卡用 `--line`,
- * 嵌在卡里的代码块与错误摘录用 `--line-soft`。`outlined` 自带描边,不必再给。 */
- bordered?: 'line' | 'soft';
+ * 嵌在卡里的代码块与错误摘录用 `--line-soft`。`outlined` 自带描边,不必再给。
+ * `error` 是失败的那一轮:整张卡的框线换成 danger 色,不给卡里的字上色。 */
+ bordered?: 'line' | 'soft' | 'error';
className?: string;
};
@@ -69,6 +70,7 @@ const RADIUS: Record<CardRadius, string> = {
const BORDER = {
line: 'border border-border-button-default',
soft: 'border border-separator-border',
+ error: 'border border-border-error-default',
};
const PADDING: Record<CardPadding, string> = {
diff --git a/frontend/test/card.test.ts b/frontend/test/card.test.ts
index 3db5b6edb..a184dceaa 100644
--- a/frontend/test/card.test.ts
+++ b/frontend/test/card.test.ts
@@ -57,6 +57,8 @@ it('填充卡之上另加的那条描边不换底', () => {
expect(fieldset).toContain('bg-background-secondary-default');
expect(fieldset).toContain('border-border-button-default');
expect(classes({ bordered: 'soft' })).toContain('border-separator-border');
+ // 失败卡的框线要有宽度:只给 danger 色而没有 `border` 时,那条线不会画出来。
+ expect([...classes({ bordered: 'error' })].filter((name) => name.startsWith('border'))).toEqual(['border', 'border-border-error-default']);
});
/* 环画在 `::after` 覆盖层上:inset 的 box-shadow 画在子元素底下,脚注带一铺底色就盖掉环的下半截。 */
diff --git a/web/dist/peach-app.activity-page-BrQ26smt.js b/web/dist/peach-app.activity-page-jwNyYMn1.js
similarity index 57%
rename from web/dist/peach-app.activity-page-BrQ26smt.js
rename to web/dist/peach-app.activity-page-jwNyYMn1.js
index a316b0b90..5fa59fcb5 100644
--- a/web/dist/peach-app.activity-page-BrQ26smt.js
+++ b/web/dist/peach-app.activity-page-jwNyYMn1.js
@@ -1,68 +1,68 @@
(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] = "6e009742-5bfc-4ad6-a459-a7dabd93019b", e._sentryDebugIdIdentifier = "sentry-dbid-6e009742-5bfc-4ad6-a459-a7dabd93019b");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ee0e8cef-2e66-487d-bc9a-cc020ce6040f", e._sentryDebugIdIdentifier = "sentry-dbid-ee0e8cef-2e66-487d-bc9a-cc020ce6040f");
} catch {}
})();
-import { Button as e, Bx as t, Chip as n, Disclosure as r, DownloadsPanel as i, EmptyState as a, Gg as o, HN as s, LinkButton as c, Lo as l, LoadingDots as u, Ma as d, NameLink as f, Note as p, OV as m, Pf as h, Progress as g, RB as _, Rk as v, Su as y, TASKS_KEY as b, TRIGGER_LABELS as x, Xl as ee, __toESM as S, apiGet as C, apiSend as w, busyProps as T, cardClass as E, confirmModal as te, controlTask as D, cx as O, elapsedText as k, errorMessage as A, f1 as ne, fetchEarlier as re, fetchTasks as ie, fmtSize as j, foldByKind as ae, foldRoutine as oe, followupDetail as M, followupTally as N, groupFollowups as se, hasResultProblems as P, i2 as F, isActive as I, isRoutine as ce, latestOfKind as le, mergeFinished as L, momentText as R, notifyManager as z, oe as B, pollInterval as ue, problemDestination as V, progressText as H, replaceEqualDeep as de, require_jsx_runtime as fe, require_react as pe, statusLabel as me, summaryItems as he, taskIssues as ge, taskSubject as _e, um as ve, uo as ye, useMutation as U, useQuery as be, useQueryClient as W, vl as xe } from "./peach-app.js";
-import { CodeBlock as Se } from "./peach-app.code-block-CyDva4Ms.js";
-import { Page as Ce } from "./peach-app.page-QAncjzM1.js";
-import { ErrorDetails as we, ErrorExcerpt as G } from "./peach-app.error-excerpt-B8v2xEIP.js";
+import { Button as e, Bx as t, Chip as n, Disclosure as r, DownloadsPanel as i, EmptyState as a, Gg as o, HN as s, LinkButton as c, Lo as l, LoadingDots as u, Ma as d, NameLink as f, Note as p, OV as m, Pf as h, Progress as g, RB as _, Rk as v, Su as y, TASKS_KEY as b, TRIGGER_LABELS as x, Xl as ee, __toESM as S, apiGet as C, apiSend as w, busyProps as T, cardClass as E, confirmModal as D, controlTask as O, cx as k, elapsedText as A, errorMessage as j, f1 as te, fetchEarlier as ne, fetchTasks as re, fmtSize as M, foldByKind as ie, foldRoutine as ae, followupDetail as N, followupTally as P, groupFollowups as oe, hasResultProblems as F, i2 as I, isActive as L, isRoutine as se, latestOfKind as ce, mergeFinished as R, momentText as z, notifyManager as B, oe as V, pollInterval as le, problemDestination as H, progressText as U, readableErrorHeadline as W, replaceEqualDeep as ue, require_jsx_runtime as de, require_react as fe, statusLabel as pe, summaryItems as me, taskIssues as he, taskSubject as ge, um as _e, uo as ve, useMutation as G, useQuery as ye, useQueryClient as K, vl as be } from "./peach-app.js";
+import { CodeBlock as xe } from "./peach-app.code-block-CyDva4Ms.js";
+import { Page as Se } from "./peach-app.page-QAncjzM1.js";
+import { ErrorDetails as Ce, ErrorExcerpt as we } from "./peach-app.error-excerpt-B8v2xEIP.js";
// node_modules/@tanstack/react-query/build/modern/useMutationState.js
-var K = /* @__PURE__ */ S(pe(), 1);
+var q = /* @__PURE__ */ S(fe(), 1);
function Te() {
let e;
return (t, n) => {
let r = [], i;
return () => {
let a = t.findAll(n.filters), o = a.flatMap((e) => [e, e.state]);
- return (!i || o.length !== r.length || o.some((e, t) => !Object.is(e, r[t]))) && (r = o, i = de(e, a.map((e) => n.select ? n.select(e) : e.state)), e = i), i;
+ return (!i || o.length !== r.length || o.some((e, t) => !Object.is(e, r[t]))) && (r = o, i = ue(e, a.map((e) => n.select ? n.select(e) : e.state)), e = i), i;
};
};
}
function Ee(e = {}, t) {
- let n = W(t).getMutationCache(), [r] = K.useState(() => Te()), i = r(n, e);
- return K.useSyncExternalStore(K.useCallback((e) => n.subscribe(z.batchCalls(e)), [n]), i, i);
+ let n = K(t).getMutationCache(), [r] = q.useState(() => Te()), i = r(n, e);
+ return q.useSyncExternalStore(q.useCallback((e) => n.subscribe(B.batchCalls(e)), [n]), i, i);
}
// src/react/activity/background-issues.tsx
-var q = fe(), J = ["background-issues"];
-function De() {
- let e = (0, K.useId)(), t = be({
- queryKey: J,
+var J = de(), De = ["background-issues"];
+function Oe() {
+ let e = (0, q.useId)(), t = ye({
+ queryKey: De,
queryFn: ({ signal: e }) => C("/api/background-issues", e),
refetchInterval: 3e4
}).data?.issues || [];
- return t.length ? /* @__PURE__ */ (0, q.jsxs)("section", {
+ return t.length ? /* @__PURE__ */ (0, J.jsxs)("section", {
"aria-labelledby": e,
className: "flex min-w-0 flex-col gap-3",
- children: [/* @__PURE__ */ (0, q.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, J.jsx)("h3", {
id: e,
className: "text-title-2-medium text-text-primary",
children: "需要处理"
- }), /* @__PURE__ */ (0, q.jsx)("ul", {
+ }), /* @__PURE__ */ (0, J.jsx)("ul", {
className: "flex min-w-0 flex-col gap-3",
- children: t.map((e) => /* @__PURE__ */ (0, q.jsx)("li", { children: /* @__PURE__ */ (0, q.jsx)(Oe, { issue: e }) }, e.key))
+ children: t.map((e) => /* @__PURE__ */ (0, J.jsx)("li", { children: /* @__PURE__ */ (0, J.jsx)(ke, { issue: e }) }, e.key))
})]
}) : null;
}
-function Oe({ issue: t }) {
- let n = W(), r = U({
+function ke({ issue: t }) {
+ let n = K(), r = G({
mutationFn: () => w(t.retry, {}),
onSuccess: () => {
- n.invalidateQueries({ queryKey: J });
+ n.invalidateQueries({ queryKey: De });
}
- }), i = t.since ? `自 ${R(t.since)} 起` : `发现于 ${R(t.noticed_at)}`;
- return /* @__PURE__ */ (0, q.jsx)(p, {
+ }), i = t.since ? `自 ${z(t.since)} 起` : `发现于 ${z(t.noticed_at)}`;
+ return /* @__PURE__ */ (0, J.jsx)(p, {
tone: "error",
title: t.title,
- action: /* @__PURE__ */ (0, q.jsxs)("div", {
+ action: /* @__PURE__ */ (0, J.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, q.jsx)(c, {
+ children: [/* @__PURE__ */ (0, J.jsx)(c, {
href: t.href,
size: "small",
- trailingIcon: F,
+ trailingIcon: I,
children: t.link_label
- }), t.retry ? /* @__PURE__ */ (0, q.jsx)(e, {
+ }), t.retry ? /* @__PURE__ */ (0, J.jsx)(e, {
variant: "secondary",
size: "small",
disabled: !t.retry_available,
@@ -71,24 +71,24 @@ function Oe({ issue: t }) {
children: "立即重试"
}) : null]
}),
- children: r.error ? `${i}\n没有重试:${A(r.error)}` : i
+ children: r.error ? `${i}\n没有重试:${j(r.error)}` : i
});
}
// src/react/activity/task-controls.tsx
-var Y = ["task-control"], ke = {
+var Y = ["task-control"], Ae = {
pause: m,
resume: o,
cancel: s
-}, Ae = {
+}, je = {
pause: "暂停",
resume: "继续",
cancel: "取消"
-}, je = {
+}, Me = {
pause: "暂停后续任务",
resume: "继续后续任务",
cancel: "取消后续任务"
};
-function Me() {
+function Ne() {
let e = Ee({
filters: { mutationKey: Y },
select: (e) => ({
@@ -108,24 +108,24 @@ function Me() {
});
}
let n = [...t.values()].filter((e) => e.status === "error");
- return n.length ? /* @__PURE__ */ (0, q.jsx)("div", {
+ return n.length ? /* @__PURE__ */ (0, J.jsx)("div", {
"data-task-control-feedback": "",
className: "flex min-w-0 flex-col gap-2",
- children: n.map(({ command: e, error: t }) => /* @__PURE__ */ (0, q.jsx)(p, {
+ children: n.map(({ command: e, error: t }) => /* @__PURE__ */ (0, J.jsx)(p, {
tone: "error",
- title: `${e.label}:${(e.followups ? je : Ae)[e.action]}未完成`,
- children: A(t)
+ title: `${e.label}:${(e.followups ? Me : je)[e.action]}未完成`,
+ children: j(t)
}, e.id))
}) : null;
}
-function Ne({ run: t }) {
- let n = W(), r = (0, K.useRef)({
+function Pe({ run: t }) {
+ let n = K(), r = (0, q.useRef)({
change: !1,
cancel: !1,
confirmation: !1
}), i = () => {
n.invalidateQueries({ queryKey: b });
- }, a = (e) => D(e.id, e.action), o = U({
+ }, a = (e) => O(e.id, e.action), o = G({
mutationKey: [
...Y,
t.id,
@@ -135,7 +135,7 @@ function Ne({ run: t }) {
onSettled: () => {
r.current.change = !1, i();
}
- }), s = U({
+ }), s = G({
mutationKey: [
...Y,
t.id,
@@ -145,7 +145,7 @@ function Ne({ run: t }) {
onSettled: () => {
r.current.cancel = !1, i();
}
- }), c = t.control?.actions || [], l = !I(t), u = s.isPending || s.isSuccess;
+ }), c = t.control?.actions || [], l = !L(t), u = s.isPending || s.isSuccess;
if (!c.length) return null;
let d = (e) => {
let n = {
@@ -156,7 +156,7 @@ function Ne({ run: t }) {
};
if (e === "cancel") {
if (r.current.cancel || r.current.confirmation || s.isSuccess) return;
- r.current.confirmation = !0, te({
+ r.current.confirmation = !0, D({
title: l ? `取消「${t.task_label}」的全部后续任务` : `取消任务「${t.task_label}」`,
body: l ? "将停止这轮已派出的全部后续任务,包括正在处理和排队的项目。已保存的资料和结果会保留。这批后续任务取消后不能继续,需要时重新发起。" : "将停止这轮剩余的处理及其后续任务。已保存的资料和结果会保留。这轮任务取消后不能继续,需要时重新发起。",
confirmLabel: l ? "取消后续任务" : "取消任务",
@@ -170,21 +170,21 @@ function Ne({ run: t }) {
r.current.change = !0, o.mutate(n);
}
};
- return /* @__PURE__ */ (0, q.jsx)("div", {
+ return /* @__PURE__ */ (0, J.jsx)("div", {
className: "ml-auto shrink-0",
"data-task-controls": t.id,
- children: /* @__PURE__ */ (0, q.jsx)("div", {
+ children: /* @__PURE__ */ (0, J.jsx)("div", {
role: "group",
"aria-label": `${t.task_label}${l ? "后续任务" : "任务"}控制`,
className: "flex items-center justify-end gap-2",
children: c.map((t) => {
- let n = (l ? je : Ae)[t], r = t === "cancel" ? s.isPending : o.isPending && o.variables?.action === t, i = t === "cancel" ? u : o.isPending || u;
- return /* @__PURE__ */ (0, q.jsx)(e, {
+ let n = (l ? Me : je)[t], r = t === "cancel" ? s.isPending : o.isPending && o.variables?.action === t, i = t === "cancel" ? u : o.isPending || u;
+ return /* @__PURE__ */ (0, J.jsx)(e, {
type: "button",
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ke[t],
+ leadingIcon: Ae[t],
"aria-label": n,
title: n,
...T(r),
@@ -197,7 +197,7 @@ function Ne({ run: t }) {
});
}
// src/react/activity/task-icon.tsx
-var Pe = new Map([
+var Fe = new Map([
[t, [
"follow-check",
"follow-resolve",
@@ -214,7 +214,7 @@ var Pe = new Map([
"resource-apply",
"seed-import"
]],
- [xe, [
+ [be, [
"scrape-codes",
"jav-discovery-metadata",
"want-scrape",
@@ -234,8 +234,8 @@ var Pe = new Map([
"studio-mark"
]],
[ee, ["media-repair", "mp4-header-repair"]],
- [ve, ["link-check", "link-prune"]],
- [B, ["download-postprocess"]],
+ [_e, ["link-check", "link-prune"]],
+ [V, ["download-postprocess"]],
[l, ["taste-refresh"]],
[_, [
"upgrade-repairs",
@@ -244,31 +244,31 @@ var Pe = new Map([
"face-models"
]]
].flatMap(([e, t]) => t.map((t) => [t, e])));
-function Fe({ taskKey: e, className: t }) {
- let n = Pe.get(e) ?? y;
- return /* @__PURE__ */ (0, q.jsx)(n, {
+function Ie({ taskKey: e, className: t }) {
+ let n = Fe.get(e) ?? y;
+ return /* @__PURE__ */ (0, J.jsx)(n, {
className: t,
"aria-hidden": !0
});
}
// src/react/activity/resource-chip.tsx
-var Ie = {
+var Le = {
blue: "bg-status-blue-text text-background-primary-default",
purple: "bg-status-purple-text text-background-primary-default",
cyan: "bg-status-cyan-text text-background-primary-default"
};
-function Le({ color: e, high: t, ...r }) {
- return t ? /* @__PURE__ */ (0, q.jsx)("span", {
+function Re({ color: e, high: t, ...r }) {
+ return t ? /* @__PURE__ */ (0, J.jsx)("span", {
...r,
- className: O("inline-flex items-center justify-center rounded-md px-1.5 py-1 whitespace-nowrap text-caption-1-medium", Ie[e])
- }) : /* @__PURE__ */ (0, q.jsx)(n, {
+ className: k("inline-flex items-center justify-center rounded-md px-1.5 py-1 whitespace-nowrap text-caption-1-medium", Le[e])
+ }) : /* @__PURE__ */ (0, J.jsx)(n, {
variant: "caption",
color: e,
...r
});
}
// src/react/activity/task-resources.tsx
-var Re = {
+var ze = {
cpu: {
name: "CPU",
color: "blue",
@@ -285,16 +285,16 @@ var Re = {
description: "网络速率显示该任务已观测的下载速度,达到 10 MiB/s 时加深显示。从网盘挂载读取时显示网盘读取,SMB 或无法准确归属的传输显示未取得。"
}
};
-function ze(e) {
+function Be(e) {
return e.state === "sampling" ? "采样中" : e.via === "cloud" ? "网盘读取" : "未取得";
}
-function Be(e, t) {
- return t === 0 ? "未使用" : e === "network" ? `${j(t)}/s` : `${t.toLocaleString(void 0, { maximumFractionDigits: 1 })}%`;
+function Ve(e, t) {
+ return t === 0 ? "未使用" : e === "network" ? `${M(t)}/s` : `${t.toLocaleString(void 0, { maximumFractionDigits: 1 })}%`;
}
-function Ve({ run: e, active: t = I(e) || !!e.control }) {
+function He({ run: e, active: t = L(e) || !!e.control }) {
if (!t || !e.resources) return null;
let n = e.resources;
- return /* @__PURE__ */ (0, q.jsx)("div", {
+ return /* @__PURE__ */ (0, J.jsx)("div", {
"data-task-resources": e.id,
className: "flex min-w-0 flex-wrap items-center gap-2",
children: [
@@ -302,13 +302,13 @@ function Ve({ run: e, active: t = I(e) || !!e.control }) {
"gpu",
"network"
].map((e) => {
- let t = n[e], r = Re[e], i = e === "network" ? n.network.bytes_per_second : n[e].percent, a = t.state === "ready" && i !== null, o = a && t.high, s = a ? Be(e, i) : ze(t), c = [
+ let t = n[e], r = ze[e], i = e === "network" ? n.network.bytes_per_second : n[e].percent, a = t.state === "ready" && i !== null, o = a && t.high, s = a ? Ve(e, i) : Be(t), c = [
t.reason,
o ? "当前为高占用。" : "",
r.description,
n.detail
].filter(Boolean).join("\n");
- return /* @__PURE__ */ (0, q.jsxs)(Le, {
+ return /* @__PURE__ */ (0, J.jsxs)(Re, {
color: r.color,
high: o,
tabIndex: 0,
@@ -330,14 +330,14 @@ function Ve({ run: e, active: t = I(e) || !!e.control }) {
});
}
// src/react/activity/activity-page.tsx
-var He = 50, Ue = /* @__PURE__ */ new Set(["upgrade-repairs"]), We = /* @__PURE__ */ new Set(["asset_id", "name"]), Ge = {
+var Ue = 50, We = /* @__PURE__ */ new Set(["upgrade-repairs"]), Ge = /* @__PURE__ */ new Set(["asset_id", "name"]), Ke = {
succeeded: "lime",
failed: "rose",
cancelled: "rose",
interrupted: "yellow",
running: "blue",
pending: "neutral"
-}, Ke = {
+}, qe = {
running: "进行中",
pausing: "正在暂停",
paused: "已暂停",
@@ -345,57 +345,57 @@ var He = 50, Ue = /* @__PURE__ */ new Set(["upgrade-repairs"]), We = /* @__PURE_
};
function X({ run: e }) {
let t = e.control?.state;
- if (t && (t !== "running" || !I(e))) return /* @__PURE__ */ (0, q.jsx)(n, {
+ if (t && (t !== "running" || !L(e))) return /* @__PURE__ */ (0, J.jsx)(n, {
color: t === "running" ? "blue" : "neutral",
- children: /* @__PURE__ */ (0, q.jsx)("span", {
+ children: /* @__PURE__ */ (0, J.jsx)("span", {
"data-copy-key": `tasks.control.state.${t}`,
- children: Ke[t]
+ children: qe[t]
})
});
- let r = e.status === "failed" && e.task_key === "library-processing" && e.result_summary?.outcome === "partial", i = r || e.status === "succeeded" && P(e);
- return /* @__PURE__ */ (0, q.jsx)(n, {
- color: i ? "yellow" : Ge[e.status] ?? "neutral",
- children: r ? "部分项目需处理" : i ? "发现问题" : me(e.status)
+ let r = e.status === "failed" && e.task_key === "library-processing" && e.result_summary?.outcome === "partial", i = r || e.status === "succeeded" && F(e);
+ return /* @__PURE__ */ (0, J.jsx)(n, {
+ color: i ? "yellow" : Ke[e.status] ?? "neutral",
+ children: r ? "部分项目需处理" : i ? "发现问题" : pe(e.status)
});
}
-function qe({ rows: e }) {
- return /* @__PURE__ */ (0, q.jsx)("ul", {
+function Je({ rows: e }) {
+ return /* @__PURE__ */ (0, J.jsx)("ul", {
className: "-mr-5 flex min-w-0 flex-col",
children: e.map((e) => {
- let t = M(e);
- return /* @__PURE__ */ (0, q.jsxs)("li", {
+ let t = N(e);
+ return /* @__PURE__ */ (0, J.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
className: "flex min-w-0 flex-col gap-1 border-t border-separator-border py-2.5 pr-10 pl-5",
children: [
- /* @__PURE__ */ (0, q.jsxs)("div", {
+ /* @__PURE__ */ (0, J.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-3",
- children: [/* @__PURE__ */ (0, q.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, J.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",
children: [
- /* @__PURE__ */ (0, q.jsx)(Fe, {
+ /* @__PURE__ */ (0, J.jsx)(Ie, {
taskKey: e.task_key,
className: "size-4 shrink-0 text-text-secondary"
}),
- /* @__PURE__ */ (0, q.jsx)("span", {
+ /* @__PURE__ */ (0, J.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, q.jsx)(X, { run: e }),
- t ? /* @__PURE__ */ (0, q.jsx)("span", {
+ /* @__PURE__ */ (0, J.jsx)(X, { run: e }),
+ t ? /* @__PURE__ */ (0, J.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
}) : null
]
- }), /* @__PURE__ */ (0, q.jsx)(Ne, { run: e })]
+ }), /* @__PURE__ */ (0, J.jsx)(Pe, { run: e })]
}),
- /* @__PURE__ */ (0, q.jsx)(Ve, { run: e }),
- Object.keys(e.result_summary || {}).length ? /* @__PURE__ */ (0, q.jsx)("div", {
+ /* @__PURE__ */ (0, J.jsx)(He, { run: e }),
+ Object.keys(e.result_summary || {}).length ? /* @__PURE__ */ (0, J.jsx)("div", {
className: "w-full min-w-0",
- children: /* @__PURE__ */ (0, q.jsx)(r, {
+ children: /* @__PURE__ */ (0, J.jsx)(r, {
summary: "技术详情",
contentClassName: "pb-2.5",
- children: /* @__PURE__ */ (0, q.jsx)(Se, {
+ children: /* @__PURE__ */ (0, J.jsx)(xe, {
code: JSON.stringify(e.result_summary, null, 2),
language: "json",
label: `${e.task_label}技术详情`
@@ -407,163 +407,173 @@ function qe({ rows: e }) {
})
});
}
-function Z({ run: e, meta: t, children: n, footer: i, issues: a, followups: o, followupTotal: s = 0, badge: c, resourceActive: l }) {
- let u = (e) => e.status === "running" ? 3 : e.status === "pending" ? 2 : +(e.status === "failed" || e.status === "interrupted"), d = o ? [...o].sort((e, t) => u(t) - u(e) || t.id - e.id).slice(0, He) : [], p = d.length, m = Math.max(o?.length || 0, s), h = _e(e);
- return /* @__PURE__ */ (0, q.jsxs)("li", {
+function Z({ run: e, meta: t, children: n, error: i, issues: a, followups: o, followupTotal: s = 0, badge: c, resourceActive: l }) {
+ let u = (e) => e.status === "running" ? 3 : e.status === "pending" ? 2 : +(e.status === "failed" || e.status === "interrupted"), d = o ? [...o].sort((e, t) => u(t) - u(e) || t.id - e.id).slice(0, Ue) : [], p = d.length, m = Math.max(o?.length || 0, s), h = ge(e), g = String(i || "").trim(), _ = W(g);
+ return /* @__PURE__ */ (0, J.jsxs)("li", {
id: `run-${e.id}`,
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
className: E({
padding: "none",
- className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
+ bordered: e.status === "failed" ? "error" : void 0,
+ className: "flex flex-col"
}),
children: [
- /* @__PURE__ */ (0, q.jsxs)("div", {
+ /* @__PURE__ */ (0, J.jsxs)("div", {
className: "flex flex-col gap-2 px-5 py-4",
children: [
- /* @__PURE__ */ (0, q.jsxs)("div", {
+ /* @__PURE__ */ (0, J.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-3",
- children: [/* @__PURE__ */ (0, q.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, J.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, q.jsx)(Fe, {
+ /* @__PURE__ */ (0, J.jsx)(Ie, {
taskKey: e.task_key,
className: "size-5 shrink-0 text-text-secondary"
}),
- /* @__PURE__ */ (0, q.jsx)("strong", {
+ /* @__PURE__ */ (0, J.jsx)("strong", {
className: "min-w-0 break-words text-title-3-medium text-text-primary",
children: e.task_label
}),
- c ?? /* @__PURE__ */ (0, q.jsx)(X, { run: e })
+ c ?? /* @__PURE__ */ (0, J.jsx)(X, { run: e })
]
- }), /* @__PURE__ */ (0, q.jsx)(Ne, { run: e })]
+ }), /* @__PURE__ */ (0, J.jsx)(Pe, { run: e })]
}),
- /* @__PURE__ */ (0, q.jsx)("p", {
+ /* @__PURE__ */ (0, J.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: t
}),
- /* @__PURE__ */ (0, q.jsx)(Ve, {
+ /* @__PURE__ */ (0, J.jsx)(He, {
run: e,
active: l
}),
- h ? /* @__PURE__ */ (0, q.jsx)(f, {
+ h ? /* @__PURE__ */ (0, J.jsx)(f, {
href: h.href,
"data-task-subject": e.id,
title: h.label,
className: "min-w-0 max-w-full self-start truncate text-text-primary",
children: h.label
}) : null,
+ _ ? /* @__PURE__ */ (0, J.jsx)("p", {
+ "data-task-error": "",
+ className: "text-caption-1-regular text-text-secondary wrap-anywhere",
+ children: _
+ }) : null,
n
]
}),
- a ? /* @__PURE__ */ (0, q.jsx)("div", {
+ a ? /* @__PURE__ */ (0, J.jsx)("div", {
className: "border-t border-separator-border px-5 py-2.5",
children: a
}) : null,
- p ? /* @__PURE__ */ (0, q.jsx)("div", {
+ _ && g !== _ ? /* @__PURE__ */ (0, J.jsx)("div", {
+ className: "border-t border-separator-border px-5 py-2.5",
+ children: /* @__PURE__ */ (0, J.jsx)(r, {
+ summary: "错误详情",
+ contentClassName: "pb-2.5",
+ children: /* @__PURE__ */ (0, J.jsx)(Ce, {
+ label: `${e.task_label}错误详情`,
+ children: g
+ })
+ })
+ }) : null,
+ p ? /* @__PURE__ */ (0, J.jsx)("div", {
className: "border-t border-separator-border px-5 py-2.5",
- children: /* @__PURE__ */ (0, q.jsxs)(r, {
+ children: /* @__PURE__ */ (0, J.jsxs)(r, {
summary: `任务明细 · ${m.toLocaleString()} 项`,
contentClassName: "pb-2.5",
- defaultOpen: d.some((e) => I(e)),
- children: [p < m ? /* @__PURE__ */ (0, q.jsxs)("p", {
+ defaultOpen: d.some((e) => L(e)),
+ children: [p < m ? /* @__PURE__ */ (0, J.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
children: [
"列出其中 ",
p.toLocaleString(),
" 项,正在处理的排在前面"
]
- }) : null, /* @__PURE__ */ (0, q.jsx)(qe, { rows: d })]
+ }) : null, /* @__PURE__ */ (0, J.jsx)(Je, { rows: d })]
})
}) : null,
- Object.keys(e.result_summary || {}).some((e) => !(h && We.has(e))) ? /* @__PURE__ */ (0, q.jsx)("div", {
+ Object.keys(e.result_summary || {}).some((e) => !(h && Ge.has(e))) ? /* @__PURE__ */ (0, J.jsx)("div", {
className: "border-t border-separator-border px-5 py-2.5",
- children: /* @__PURE__ */ (0, q.jsx)(r, {
+ children: /* @__PURE__ */ (0, J.jsx)(r, {
summary: "技术详情",
contentClassName: "pb-2.5",
- children: /* @__PURE__ */ (0, q.jsx)(Se, {
+ children: /* @__PURE__ */ (0, J.jsx)(xe, {
code: JSON.stringify(e.result_summary, null, 2),
language: "json",
label: `${e.task_label}技术详情`
})
})
- }) : null,
- i ? /* @__PURE__ */ (0, q.jsx)("div", {
- className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
- children: /* @__PURE__ */ (0, q.jsx)(G, {
- text: i,
- className: "text-caption-1-regular text-text-secondary"
- })
}) : null
]
});
}
-function Je({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.control?.state, a = i && i !== "running", o = a ? Ke[i] : e.progress_label || "正在进行", s = k(e.elapsed_seconds), c = [x[e.trigger] || e.trigger, s && `已跑 ${s}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, q.jsx)(Z, {
+function Ye({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.control?.state, a = i && i !== "running", o = a ? qe[i] : e.progress_label || "正在进行", s = A(e.elapsed_seconds), c = [x[e.trigger] || e.trigger, s && `已跑 ${s}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, J.jsx)(Z, {
run: e,
meta: c,
followups: t,
- children: n > 0 ? /* @__PURE__ */ (0, q.jsxs)("div", {
+ children: n > 0 ? /* @__PURE__ */ (0, J.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, q.jsx)(g, {
+ children: [/* @__PURE__ */ (0, J.jsx)(g, {
label: o,
value: Math.min(r, n),
max: n
- }), /* @__PURE__ */ (0, q.jsxs)("p", {
+ }), /* @__PURE__ */ (0, J.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: [
o,
" · ",
- H(r, n),
+ U(r, n),
" 项"
]
})]
- }) : a ? /* @__PURE__ */ (0, q.jsx)("p", {
+ }) : a ? /* @__PURE__ */ (0, J.jsx)("p", {
"data-copy-key": `tasks.control.state.${i}`,
className: "text-caption-1-regular text-text-secondary",
children: o
- }) : /* @__PURE__ */ (0, q.jsx)(u, { label: o })
+ }) : /* @__PURE__ */ (0, J.jsx)(u, { label: o })
});
}
-function Ye({ run: e, followups: t, runs: i, latest: a, followupTotal: o, followupFailed: s = 0, followupCancelled: l = 0 }) {
- let u = !!(i && i.length > 1 && o), d = u ? [`共处理 ${o.toLocaleString()} 项`, s ? `其中 ${s.toLocaleString()} 项失败` : ""].filter(Boolean) : he(_e(e) ? {
+function Xe({ run: e, followups: t, runs: i, latest: a, followupTotal: o, followupFailed: s = 0, followupCancelled: l = 0 }) {
+ let u = !!(i && i.length > 1 && o), d = u ? [`共处理 ${o.toLocaleString()} 项`, s ? `其中 ${s.toLocaleString()} 项失败` : ""].filter(Boolean) : me(ge(e) ? {
...e.result_summary,
name: ""
- } : e.result_summary).filter((t) => t !== e.error), f = ge(e), p = V(e, a), m = k(e.elapsed_seconds), h = i && i.length > 1 ? i[i.length - 1] : void 0, g = (h ? [
+ } : e.result_summary).filter((t) => t !== e.error && t !== W(e.error)), f = he(e), p = H(e, a), m = A(e.elapsed_seconds), h = i && i.length > 1 ? i[i.length - 1] : void 0, g = (h ? [
x[e.trigger] || e.trigger,
`近 ${i.length} 轮`,
- `${R(h.finished_at)} – ${R(e.finished_at)}`
+ `${z(h.finished_at)} – ${z(e.finished_at)}`
] : [
x[e.trigger] || e.trigger,
- R(e.finished_at),
+ z(e.finished_at),
m && `用时 ${m}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, q.jsxs)(Z, {
+ return /* @__PURE__ */ (0, J.jsxs)(Z, {
run: e,
meta: g,
- footer: e.error,
+ error: e.error,
followups: t,
followupTotal: o,
- issues: f.length ? /* @__PURE__ */ (0, q.jsx)(r, {
+ issues: f.length ? /* @__PURE__ */ (0, J.jsx)(r, {
summary: `问题详情 · ${f.length} 项`,
contentClassName: "pb-2.5",
- children: /* @__PURE__ */ (0, q.jsx)(we, {
+ children: /* @__PURE__ */ (0, J.jsx)(Ce, {
label: "任务问题详情",
- children: /* @__PURE__ */ (0, q.jsx)("ul", {
+ children: /* @__PURE__ */ (0, J.jsx)("ul", {
className: "flex min-w-0 flex-col gap-3",
"data-task-issues": "",
- children: f.map((e, t) => /* @__PURE__ */ (0, q.jsxs)("li", {
+ children: f.map((e, t) => /* @__PURE__ */ (0, J.jsxs)("li", {
className: "flex min-w-0 flex-col gap-1 text-body-2-regular wrap-anywhere",
- children: [/* @__PURE__ */ (0, q.jsx)("p", {
+ children: [/* @__PURE__ */ (0, J.jsx)("p", {
className: "text-body-regular text-text-primary",
children: [
e.label,
e.provider,
e.kind
].filter(Boolean).join(" · ")
- }), /* @__PURE__ */ (0, q.jsx)(G, {
+ }), /* @__PURE__ */ (0, J.jsx)(we, {
text: e.error,
className: "text-text-primary"
})]
@@ -571,18 +581,18 @@ function Ye({ run: e, followups: t, runs: i, latest: a, followupTotal: o, follow
})
})
}) : void 0,
- badge: l && e.status === "succeeded" ? /* @__PURE__ */ (0, q.jsx)(n, {
+ badge: l && e.status === "succeeded" ? /* @__PURE__ */ (0, J.jsx)(n, {
color: "rose",
- children: /* @__PURE__ */ (0, q.jsx)("span", {
+ children: /* @__PURE__ */ (0, J.jsx)("span", {
"data-copy-key": `tasks.followups.cancelled.${l === o ? "all" : "partial"}`,
children: l === o ? "后续任务已取消" : "部分后续任务已取消"
})
- }) : u && s ? /* @__PURE__ */ (0, q.jsx)(n, {
+ }) : u && s ? /* @__PURE__ */ (0, J.jsx)(n, {
color: "yellow",
children: "发现问题"
}) : void 0,
children: [
- l ? /* @__PURE__ */ (0, q.jsxs)("p", {
+ l ? /* @__PURE__ */ (0, J.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
children: [
"后续任务已取消 ",
@@ -590,54 +600,54 @@ function Ye({ run: e, followups: t, runs: i, latest: a, followupTotal: o, follow
" 项"
]
}) : null,
- d.length === 1 ? /* @__PURE__ */ (0, q.jsx)("p", {
+ d.length === 1 ? /* @__PURE__ */ (0, J.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: d[0]
- }) : d.length ? /* @__PURE__ */ (0, q.jsx)("ul", {
+ }) : d.length ? /* @__PURE__ */ (0, J.jsx)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-caption-1-regular text-text-secondary wrap-anywhere",
- children: d.map((e, t) => /* @__PURE__ */ (0, q.jsx)("li", { children: e }, t))
+ children: d.map((e, t) => /* @__PURE__ */ (0, J.jsx)("li", { children: e }, t))
}) : null,
- !f.length && P(e) && ["follow-check", "feed-check"].includes(e.task_key) ? /* @__PURE__ */ (0, q.jsx)("p", {
+ !f.length && F(e) && ["follow-check", "feed-check"].includes(e.task_key) ? /* @__PURE__ */ (0, J.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "未取得本轮逐项详情,可到来源列表查看检查结果。"
}) : null,
- p ? /* @__PURE__ */ (0, q.jsx)(c, {
+ p ? /* @__PURE__ */ (0, J.jsx)(c, {
href: p.href,
size: "small",
- trailingIcon: F,
+ trailingIcon: I,
className: "self-start",
children: p.label
}) : null
]
});
}
-function Xe({ runs: e, followups: t, counts: r }) {
- let i = e[0], a = e[e.length - 1], o = N(r, e), s = Math.max(o.total, t.length), c = o.total ? o.settled : t.filter((e) => !I(e)).length, l = o.total ? o.failed : t.filter((e) => e.status === "failed" || e.status === "interrupted").length, u = [
+function Ze({ runs: e, followups: t, counts: r }) {
+ let i = e[0], a = e[e.length - 1], o = P(r, e), s = Math.max(o.total, t.length), c = o.total ? o.settled : t.filter((e) => !L(e)).length, l = o.total ? o.failed : t.filter((e) => e.status === "failed" || e.status === "interrupted").length, u = [
x[i.trigger] || i.trigger,
e.length > 1 ? `${e.length} 批` : "",
- `${R(a.started_at || a.finished_at)} 开始`
+ `${z(a.started_at || a.finished_at)} 开始`
].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, q.jsx)(Z, {
+ return /* @__PURE__ */ (0, J.jsx)(Z, {
run: i,
meta: u,
followups: t,
followupTotal: s,
resourceActive: !0,
- badge: i.control ? /* @__PURE__ */ (0, q.jsx)(X, { run: i }) : /* @__PURE__ */ (0, q.jsx)(n, {
+ badge: i.control ? /* @__PURE__ */ (0, J.jsx)(X, { run: i }) : /* @__PURE__ */ (0, J.jsx)(n, {
color: "blue",
children: "进行中"
}),
- children: /* @__PURE__ */ (0, q.jsxs)("div", {
+ children: /* @__PURE__ */ (0, J.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, q.jsx)(g, {
+ children: [/* @__PURE__ */ (0, J.jsx)(g, {
label: `${i.task_label}进度`,
value: c,
max: s
- }), /* @__PURE__ */ (0, q.jsxs)("p", {
+ }), /* @__PURE__ */ (0, J.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
children: [
"已处理 ",
- H(c, s),
+ U(c, s),
" 项",
l ? ` · 其中 ${l.toLocaleString()} 项失败` : ""
]
@@ -646,11 +656,11 @@ function Xe({ runs: e, followups: t, counts: r }) {
});
}
function Q({ title: e, children: t }) {
- let n = (0, K.useId)();
- return /* @__PURE__ */ (0, q.jsxs)("section", {
+ let n = (0, q.useId)();
+ return /* @__PURE__ */ (0, J.jsxs)("section", {
"aria-labelledby": n,
className: "flex min-w-0 flex-col gap-3",
- children: [/* @__PURE__ */ (0, q.jsx)("h3", {
+ children: [/* @__PURE__ */ (0, J.jsx)("h3", {
id: n,
className: "text-title-2-medium text-text-primary",
children: e
@@ -658,124 +668,124 @@ function Q({ title: e, children: t }) {
});
}
function $({ live: e = !1, children: t }) {
- return /* @__PURE__ */ (0, q.jsx)("ul", {
+ return /* @__PURE__ */ (0, J.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Ze() {
- let t = be({
+function Qe() {
+ let t = ye({
queryKey: b,
- queryFn: ({ signal: e }) => ie(e),
- refetchInterval: (e) => ue(e.state.data)
- }), n = t.data, r = n?.finished, [o, s] = (0, K.useState)([]), [c, l] = (0, K.useState)(!1), [u, d] = (0, K.useState)({}), [f, m] = (0, K.useState)(r);
- r !== f && (m(r), o.length && f && s(L(o, f)));
- let h = U({
- mutationFn: ({ oldest: e }) => re(e),
+ queryFn: ({ signal: e }) => re(e),
+ refetchInterval: (e) => le(e.state.data)
+ }), n = t.data, r = n?.finished, [o, s] = (0, q.useState)([]), [c, l] = (0, q.useState)(!1), [u, d] = (0, q.useState)({}), [f, m] = (0, q.useState)(r);
+ r !== f && (m(r), o.length && f && s(R(o, f)));
+ let h = G({
+ mutationFn: ({ oldest: e }) => ne(e),
onSuccess: (e, { shown: t }) => {
- s((n) => L(n, t, e.finished || [])), l(!!e.finished_has_more), d((t) => ({
+ s((n) => R(n, t, e.finished || [])), l(!!e.finished_has_more), d((t) => ({
...t,
...e.followup_counts
}));
}
- }), g = t.error ? A(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, q.jsx)(Ce, { children: /* @__PURE__ */ (0, q.jsx)(p, {
+ }), g = t.error ? j(t.error) : "";
+ if (!n) return /* @__PURE__ */ (0, J.jsx)(Se, { children: /* @__PURE__ */ (0, J.jsx)(p, {
tone: "error",
children: g || "读取任务中心失败"
}) });
- let _ = L(n.finished || [], o), v = n.working_parents || [], y = [
+ let _ = R(n.finished || [], o), v = n.working_parents || [], y = [
...n.running || [],
...n.skipped || [],
..._,
...v
- ], x = se(y), ee = new Set(y.map((e) => e.id)), S = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && ee.has(e.parent_run_id))), C = S(_), w = C[C.length - 1], E = !!w && (o.length ? c : !!n.finished_has_more), te = () => {
+ ], x = oe(y), ee = new Set(y.map((e) => e.id)), S = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && ee.has(e.parent_run_id))), C = S(_), w = C[C.length - 1], E = !!w && (o.length ? c : !!n.finished_has_more), D = () => {
!h.isPending && w && h.mutate({
oldest: w,
shown: _
});
- }, D = {
+ }, O = {
...u,
...n.followup_counts
- }, O = (e) => e.flatMap((e) => x.get(e.id) || []), k = [...C, ...S(v)].filter((e) => N(D, [e]).active > 0 || x.get(e.id)?.some(I)).sort((e, t) => t.id - e.id), j = S(n.running || []), M = S(n.skipped || []), F = C.filter((e) => !k.includes(e) && !M.some((t) => t.id === e.id)), R = (e) => (x.get(e.id) || []).every((e) => e.status === "succeeded" && !P(e)) && N(D, [e]).failed === 0, z = oe(F, (e) => ce(e) && (R(e) || Ue.has(e.task_key))), B = [...ae(k.filter((e) => !e.control)), ...k.filter((e) => e.control).map((e) => ({
+ }, k = (e) => e.flatMap((e) => x.get(e.id) || []), A = [...C, ...S(v)].filter((e) => P(O, [e]).active > 0 || x.get(e.id)?.some(L)).sort((e, t) => t.id - e.id), M = S(n.running || []), N = S(n.skipped || []), I = C.filter((e) => !A.includes(e) && !N.some((t) => t.id === e.id)), z = (e) => (x.get(e.id) || []).every((e) => e.status === "succeeded" && !F(e)) && P(O, [e]).failed === 0, B = ae(I, (e) => se(e) && (z(e) || We.has(e.task_key))), V = [...ie(A.filter((e) => !e.control)), ...A.filter((e) => e.control).map((e) => ({
run: e,
runs: [e]
- }))].sort((e, t) => t.run.id - e.run.id), V = le(y), H = !j.length && !k.length && !M.length && !F.length;
- return /* @__PURE__ */ (0, q.jsxs)(Ce, { children: [
- g ? /* @__PURE__ */ (0, q.jsx)(p, {
+ }))].sort((e, t) => t.run.id - e.run.id), H = ce(y), U = !M.length && !A.length && !N.length && !I.length;
+ return /* @__PURE__ */ (0, J.jsxs)(Se, { children: [
+ g ? /* @__PURE__ */ (0, J.jsx)(p, {
tone: "error",
children: g
}) : null,
- /* @__PURE__ */ (0, q.jsx)(Me, {}),
- n.available === !1 ? /* @__PURE__ */ (0, q.jsx)(p, {
+ /* @__PURE__ */ (0, J.jsx)(Ne, {}),
+ n.available === !1 ? /* @__PURE__ */ (0, J.jsx)(p, {
tone: "warning",
children: n.message || "数据库尚未准备好任务记录表"
}) : null,
- /* @__PURE__ */ (0, q.jsx)(De, {}),
- H ? /* @__PURE__ */ (0, q.jsx)(a, {
- icon: ye,
+ /* @__PURE__ */ (0, J.jsx)(Oe, {}),
+ U ? /* @__PURE__ */ (0, J.jsx)(a, {
+ icon: ve,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
- }) : /* @__PURE__ */ (0, q.jsxs)(q.Fragment, { children: [
- /* @__PURE__ */ (0, q.jsx)(Q, {
+ }) : /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [
+ /* @__PURE__ */ (0, J.jsx)(Q, {
title: "正在进行",
- children: j.length || k.length ? /* @__PURE__ */ (0, q.jsxs)($, {
+ children: M.length || A.length ? /* @__PURE__ */ (0, J.jsxs)($, {
live: !0,
- children: [j.map((e) => /* @__PURE__ */ (0, q.jsx)(Je, {
+ children: [M.map((e) => /* @__PURE__ */ (0, J.jsx)(Ye, {
run: e,
followups: x.get(e.id)
- }, e.id)), B.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, q.jsx)(Xe, {
+ }, e.id)), V.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, J.jsx)(Ze, {
runs: t,
- followups: O(t),
- counts: D
+ followups: k(t),
+ counts: O
}, e.id))]
- }) : /* @__PURE__ */ (0, q.jsx)(p, {
+ }) : /* @__PURE__ */ (0, J.jsx)(p, {
tone: "neutral",
children: "没有任务在跑。"
})
}),
- M.length ? /* @__PURE__ */ (0, q.jsx)(Q, {
+ N.length ? /* @__PURE__ */ (0, J.jsx)(Q, {
title: "本次未执行",
- children: /* @__PURE__ */ (0, q.jsx)($, { children: M.map((e) => /* @__PURE__ */ (0, q.jsx)(Ye, {
+ children: /* @__PURE__ */ (0, J.jsx)($, { children: N.map((e) => /* @__PURE__ */ (0, J.jsx)(Xe, {
run: e,
- latest: V.has(e.id),
+ latest: H.has(e.id),
followups: x.get(e.id)
}, e.id)) })
}) : null,
- F.length || E ? /* @__PURE__ */ (0, q.jsxs)(Q, {
+ I.length || E ? /* @__PURE__ */ (0, J.jsxs)(Q, {
title: "最近完成",
children: [
- F.length ? /* @__PURE__ */ (0, q.jsx)($, { children: z.map(({ run: e, runs: t }) => {
- let n = N(D, t);
- return /* @__PURE__ */ (0, q.jsx)(Ye, {
+ I.length ? /* @__PURE__ */ (0, J.jsx)($, { children: B.map(({ run: e, runs: t }) => {
+ let n = P(O, t);
+ return /* @__PURE__ */ (0, J.jsx)(Xe, {
run: e,
runs: t,
- latest: V.has(e.id),
- followups: O(t),
+ latest: H.has(e.id),
+ followups: k(t),
followupTotal: n.total,
followupFailed: n.failed,
followupCancelled: n.cancelled
}, e.id);
}) }) : null,
- h.error ? /* @__PURE__ */ (0, q.jsx)(p, {
+ h.error ? /* @__PURE__ */ (0, J.jsx)(p, {
tone: "error",
- children: A(h.error)
+ children: j(h.error)
}) : null,
- E ? /* @__PURE__ */ (0, q.jsx)(e, {
+ E ? /* @__PURE__ */ (0, J.jsx)(e, {
variant: "secondary",
size: "small",
- leadingIcon: ne,
+ leadingIcon: te,
className: "self-start",
...T(h.isPending),
- onClick: te,
+ onClick: D,
children: "加载更早"
}) : null
]
}) : null
] }),
- /* @__PURE__ */ (0, q.jsx)(i, {})
+ /* @__PURE__ */ (0, J.jsx)(i, {})
] });
}
-export { Ze as ActivityPage };
+export { Qe as ActivityPage };
-//# debugId=6e009742-5bfc-4ad6-a459-a7dabd93019b
\ No newline at end of file
+//# debugId=ee0e8cef-2e66-487d-bc9a-cc020ce6040f
\ No newline at end of file
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index fb1e4c567..efb3e6c29 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] = "0d77473d-6f95-4dfc-93c5-95cf4f3e0ffc", e._sentryDebugIdIdentifier = "sentry-dbid-0d77473d-6f95-4dfc-93c5-95cf4f3e0ffc");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "95d2ae41-204e-437f-9596-f82778eeacc8", e._sentryDebugIdIdentifier = "sentry-dbid-95d2ae41-204e-437f-9596-f82778eeacc8");
} 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) => {
@@ -45991,7 +45991,8 @@ var T_e = "min-w-0", E_e = {
plain: "rounded-2xl"
}, O_e = {
line: "border border-border-button-default",
- soft: "border border-separator-border"
+ soft: "border border-separator-border",
+ error: "border border-border-error-default"
}, k_e = {
none: "",
default: "p-5"
@@ -49053,7 +49054,8 @@ function Vve({ task: e, writable: t }) {
"data-download-id": e.id,
className: HH({
padding: "none",
- className: p ? "flex flex-col border-border-error-default" : "flex flex-col"
+ bordered: p ? "error" : void 0,
+ className: "flex flex-col"
}),
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -78408,7 +78410,7 @@ var b6 = v6(() => import("./peach-app.jav-page-C2bS144a.js")), x6 = v6(() => imp
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), k6 = v6(() => import("./peach-app.activity-page-BrQ26smt.js")), A6 = v6(() => import("./peach-app.follow-manage-page-Bvnaf0EO.js")), j6 = v6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
+}), k6 = v6(() => import("./peach-app.activity-page-jwNyYMn1.js")), A6 = v6(() => import("./peach-app.follow-manage-page-Bvnaf0EO.js")), j6 = v6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
function mFe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
@@ -83471,4 +83473,4 @@ if (!$9) throw Error("主界面宿主缺失");
ERe($9);
export { rR as $2ec61d1d4f780267$export$a8a3e93435678ff9, dR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Oz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, MD as $72abaeab4d80592f$export$78efe591171d7d45, bB as $76d00c5a4edb230a$export$76ccd210b9029917, _B as $76d00c5a4edb230a$export$816b5d811295e6bc, CB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, TB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, gB as $76d00c5a4edb230a$export$f850895b287ef28e, uhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, lhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, ohe as $b4f18e3395fe64d7$export$b2539bed5023c21c, kB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, phe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, yE as $ea3928288112382f$export$439d29a4e110a164, Vz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Jz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Yz as $fe21c36db05242bb$export$d7b12c4107be0d61, Khe as $l, nM as ACCENTS, yke as AMANE_BRIDGE_CHECK_URL, Q$ as AMANE_BRIDGE_KEY, bke as AMANE_BRIDGE_REBUILD_URL, or as ApiError, uW as ArtSlot, g2 as BATCH_DELETE_TEXT, J as Button, FL as ButtonLink, oV as Bx, O$ as CLEANUP_ENTRY, D$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, Q1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, u1 as CONFIGURATION_KEY, uX as CONFIGURATION_URL, xke as COOKIE_TEXT_LIMIT, Z$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, q$ as CUSTOM_SOURCES_KEY, K$ as CUSTOM_SOURCES_URL, eH as Checkbox, $V as CheckboxGlyph, WV as ChevronSortDown, lW as Chip, vW as CloudDownloadDialog, YH as CollapseChevron, JH as CollapseRegion, x$ as CollectionSummary, $Ce as DEFAULT_CATEGORY, ur as DEFAULT_SORT, JQ as DIAGNOSTICS_KEY, Qwe as DIRECTORY_TEMPLATE_ERROR, N0 as DISCOVERY_SORTS, fW as DOWNLOADS_KEY, dW as DOWNLOADS_URL, AY as DUPLICATES_KEY, dY as DataTableFooter, sY as DataTableFrame, uY as DataTableSort, yU as Disclosure, Bve as DownloadsPanel, Lhe as E3, ewe as ENTITY_REVIEW_KINDS, X1 as ENTRY_LINKS_HELP, Z1 as ENTRY_LINKS_HINT, Zhe as Ea, vge as EmptyFocusButton, EV as EmptyState, _U as ErrorText, $_e as ExternalLink, Br as FEEDS_KEY, vX as FEED_SCHEDULE_KEY, T$ as FIELDSET_FOOT, EPe as FLOW_LABEL_X, X3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, N8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, QZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, _X as FOLLOW_SCHEDULE_KEY, nve as Fact, tve as FactList, vU as FieldLabel, R$ as Fieldset, L$ as FieldsetTitle, spe as FilterGlass, OL as FilterGlassRows, DL as FilterIconButton, kL as FilterPill, Q_e as Footer, rV as Gg, AL as GlassPill, uV as HN, gU as Help, _V as HintText, vPe as IDLE_POLL_MS, HCe as IDLE_REPAIR, CL as IconButton, XQ as IndexSearch, SV as Input, xV as InputBase, bM as JAV_LAYOUTS, F0 as JAV_RECOMMENDATION_GRID, UX as JUNK_KEY, RW as JavHeader, ICe as KEEP_LABELS, Hr as LAYOUTS, Y1 as LIBRARY_FOLDER_HELP, pH as LIBRARY_PROCESSING_KEY, nX as LINKS_KEY, rX as LINK_CHECK_KEY, wwe as LINK_KINDS, iX as LINK_PRUNE_KEY, tr as LOC, gV as Label, H$ as LibraryProcessingCard, UV as LibraryShortcuts, kH as LinkButton, Jhe as Lo, UH as LoadingDots, Rhe as M6, kwe as MEDIA_PROCESSING_KEY, bX as MEDIA_PROCESSING_URL, FY as MEDIA_REPAIR_KEY, PY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, JV as MENU_ITEM, YV as MENU_ITEM_INTERACTIVE, qV as MENU_POPOVER_SURFACE, Xhe as Ma, NH as MenuDialog, EK as MixCard, CV as ModalFrame, Ex as MotionConfigContext, mV as NR, z$ as NameLink, TV as Note, mge as OA, CX as ORGANIZE_KEY, p2 as ORGANIZE_PARAMETER_HINT, f2 as ORGANIZE_SCOPE_HINT, d2 as ORGANIZE_TEXT, EX as ORPHAN_RECORDS_KEY, h2 as ORPHAN_RECORDS_TEXT, tV as OV, VB as P7, BX as PERFORMER_DELETE_KEY, xW as PHASES, dX as PICK_FOLDER_URL, A$ as PLAIN_STAT_STRIP, W$ as PLAYLISTS_KEY, CAe as POLICY_COLUMNS, TAe as POLICY_COVER_NOTE, wAe as POLICY_MATRIX, J1 as POLICY_SUMMARY, lY as Pagination, V$ as PathLine, fV as Pf, QI as PillTabList, VOe as PlainStat, GH as Progress, BY as QUALITY_GOALS_KEY, dV as RB, M$ as REPAIR_CARD_TEXT, IY as REPAIR_LIBRARIES_KEY, jX as RESOURCE_APPLY_KEY, AX as RESOURCE_SCAN_KEY, m2 as RESOURCE_SYNC_TEXT, qOe as RESULT_PANEL, JOe as RESULT_SECTION, QCe as REVIEW_CATEGORIES, HX as REVIEW_COUNTS_KEY, twe as REVIEW_DECISION_LABELS, UY as REVIEW_KEY, WY as REVIEW_LABELS, KY as REVIEW_QUEUES, qY as REVIEW_QUEUE_LABELS, ZG as RetryNote, pge as Rf, hV as Rk, Y_e as Rows, _ke as SCRAPING_CHECK_URL, Y$ as SCRAPING_COVER_URL, X$ as SCRAPING_KEY, gke as SCRAPING_SETTINGS_URL, zU as SEGMENT, RU as SEGMENTED_TRACK, gX as SETTINGS_KEY, fX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, x3 as STATS_KEY, zOe as STAT_STRIP, BOe as STAT_STRIP_SIX, J_e as Section, YOe as SectionHeading, Z_e as SectionSkeleton, LU as SegmentedRadioGroup, _ve as SegmentedTabList, WG as Segments, cY as Select, oW as Select$1, m1 as SelectField, sW as SelectItem, vY as SelectionActions, Mj as SelectionDock, yY as SelectionPopover, XH as SettingsCard, F_e as SettingsRow, ZH as SettingsSectionLabel, ove as SiteLabel, CG as SortDirectionIcon, KG as SortKeys, jQ as SourceAvatar, CU as SourceLabel, bU as SourceMark, X_e as Stack, HOe as StatCard, B$ as StatusLabel, uge as Su, $2 as Switch, sL as TASKS_KEY, sPe as TASTE_REFRESH_KEY, cPe as TASTE_WINDOWS, yX as THUMBNAIL_JOBS_KEY, GX as TRASH_KEY, Bfe as TRIGGER_LABELS, QJ as Table, bY as TableColumnControls, xY as TableColumnResizer, CY as TableSelectionHeader, g$ as TagManager, eve as TaskCenterLink, KH as TaskProgress, yV as TextField, vV as TextFieldContext, $B as Un, bW as WANTS_KEY, m4 as WantMagnets, Gg as WithPromise, GB as Wt, QB as Xc, pV as Xf, qB as Xl, KB as Xt, UB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, fge as aB, Ti as addAlias, wi as addSource, TW as addWant, hS as animate, B as apiGet, V as apiSend, mM as appSettingsStore, _Te as applyConfirmText, zX as applyLeftovers, gTe as applyPlanText, yTe as applyText, vM as applyTheme, yy as asNumber, aTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, Bq as autoResetPageIndex, go as avatarInner, D3 as bandRows, $we as baseName, VCe as batchOperate, lue as beginPlayerGuidePreview, Rj as boundedPreference, RCe as bulkCloudPreferences, AV as busyProps, dge as cB, LMe as cachedMagnetStates, zg as calcGeneratorVelocity, cwe as canApprove, mg as cancelFrame, uTe as candidateText, HH as cardClass, NM as cardRatio, ZB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Owe as checkLine, Vi as checkReceipt, Hi as checkSummary, Cke as checkText, Gi as checkedText, fK as clickedBlank, X5 as closeDrawerAfterNav, ACe as cloudLocations, k0 as cloudProxySkeleton, QC as clsx, ege as cn, cv as collectMotionValues, oJ as columnVisibilityFeature, qJ as column_getCanSort, UJ as column_getSortFn, owe as commonReviewSources, Of as configurationSection, fPe as configureTasteBrowser, ol as confirmModal, Rfe as controlTask, Sq as copyInstancePropertiesWithoutMemos, co as coverUrl, Zq as createColumnHelper, uke as createPlaylist, Yi as credentialDone, T0 as credentialsSkeleton, _we as currentReviewRow, q as cx, aV as dZ, mwe as decisionPayload, hwe as decisionReceipt, pwe as defaultChoice, xTe as deletePerformerVideos, fke as deletePlaylist, x as diagnosticHeaders, q1 as diagnosticsSkeleton, NW as discoveryArtwork, jW as discoveryKey, YAe as discoveryScore, s9 as disposeStage, PCe as distinctName, zi as dropSources, lge as du, zCe as duplicateVictims, mL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, zq as expandRowModel, FB as f1, $r as feedIntervalText, t1 as fetchAmaneBridge, _i as fetchCheckJob, d1 as fetchConfiguration, e1 as fetchCoverJob, gi as fetchCredentials, J$ as fetchCustomSources, VX as fetchDeletePerformers, bTe as fetchDeletePlan, YQ as fetchDiagnostics, MW as fetchDiscoveries, MY as fetchDuplicates, Pfe as fetchEarlier, Mwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, jwe as fetchFollowSchedule, qX as fetchJunkSummary, xH as fetchLibraryProcessing, sX as fetchLinkCheck, cX as fetchLinkPrune, oX as fetchLinkStats, Awe as fetchMediaProcessing, LY as fetchMediaRepair, yr as fetchMediaSources, wX as fetchOrganize, Gwe as fetchOrganizeExample, DX as fetchOrphanRecords, Ai as fetchPending, G$ as fetchPlaylists, VY as fetchQualityGoals, RY as fetchRepairLibraries, vi as fetchResolveJob, NX as fetchResourceApply, MX as fetchResourceScan, $Y as fetchReview, KX as fetchReviewCounts, xX as fetchSettings, $$ as fetchSources, S3 as fetchStats, yi as fetchSuggestions, lL as fetchTasks, q3 as fetchTaste, pPe as fetchTasteJob, Nwe as fetchThumbnailJobs, JX as fetchTrashSummary, SW as fetchWants, iwe as filterReviewRows, $n as firstGrapheme, iq as flexRender, OPe as flowGraph, kPe as flowLabel, DNe as fmtCount, qn as fmtDur, Yn as fmtSize, Nfe as foldByKind, Xfe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, Qfe as followupDetail, Mfe as followupTally, pg as frame, zB as g4, lJ as getDefaultPaginationState, MM as gridLayout, ci as groupByAuthor, Yfe as groupFollowups, XY as groupReviewRows, mTe as hasChanges, PX as hasResourceRoots, dL as hasResultProblems, yPe as historySpan, IB as i2, _Pe as importTasteExport, E0 as indexersSkeleton, Fg as interpolate, OW as invalidateWants, pL as isActive, Qr as isBroken, Kr as isLayout, yv as isMotionValue, GY as isReviewCategory, Zfe as isRoutine, D0 as javBrowserSkeleton, L0 as javContentSkeleton, TM as javLayout, I0 as javTagSkeleton, ETe as junkBreakdown, pke as keepPlaylist, ke as keepPreviousData, fi as keepSelected, C3 as known, Nhe as l7, Jfe as latestOfKind, zNe as lengthRows, Sr as localTime, Fi as lookupFeedActor, BB as m7, iV as mM, En as mapLimit, ki as markItem, O3 as max, LNe as mediumRows, Ffe as mergeFinished, k3 as min, Swe as mirrorText, GCe as missingToolText, NY as mixedCloudPreferences, vL as momentText, gS as motion, uv as motionValue, nn as nameFallback, He as notifyManager, zhe as oe, tTe as organizeOutcome, $0 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, fwe as pendingGenres, kNe as percentText, Jwe as pickOrganizeFolder, k$ as plainStatClass, eTe as planSummary, w3 as playedFor, jNe as playedItemUrl, cL as pollInterval, Js as popCount, lke as posterUrl, Kye as previewLibraryColor, qwe as previewOrganize, JCe as previewUrl, Kfe as problemDestination, gH as processingActive, hL as progressText, SU as providerIcon, Dwe as pruneText, IX as purgeCount, oTe as purgeOrphan, sV as pv, cge as qE, H as queryClient, LB as r2, TPe as radarRows, PNe as radialArc, FNe as radialBarSize, NNe as radialCeiling, MNe as radialSlices, YN as randomId, CPe as rankDetail, wPe as rankShares, E3 as reachedShare, gL as readableErrorHeadline, XAe as recommendationScore, vwe as recordGenre, cTe as recordsText, mke as recreatePlaylist, ske as refreshPlaylists, Cl as relayoutCovers, Bi as reloadFollowManage, xwe as reloadReview, OAe as rememberShape, Xwe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, gPe as removeTasteSource, EW as removeWants, Di as renameAliasGroup, dke as renamePlaylist, Se as replaceEqualDeep, VNe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, vq as require_with_selector, DW as resetWants, pr as resolveFollowSort, Hg as resolveStartTime, u_e as restartEffectText, cke as resumeAssetId, rwe as reviewGroupingOptions, YY as reviewQueueData, JY as reviewQueueOf, TTe as reviewSummary, awe as reviewWindow, uwe as rowEvidence, QY as rowFieldName, gJ as rowPaginationFeature, LJ as rowSelectionFeature, XJ as rowSortingFeature, ZY as rowSubject, dwe as rowTags, lwe as rowTitle, Ahe as s5, Oi as saveCredential, hTe as scanLine, Rwe as schedulePollInterval, AW as searchNote, swe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, bwe as settleReviewRows, NCe as sharedNamePrefix, Ep as shellNavigate, x8 as showToast, zn as siteMarkUrl, Aq as skipFirstRun, XI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, vTe as sourceMeta, zs as spinnerHtml, Ng as spring, OV as spriteGlyph, bi as startCheck, Twe as startLinkCheck, Ewe as startLinkPrune, Ywe as startOrganize, xi as startResolve, fTe as startResourceApply, dTe as startResourceScan, hPe as startTasteRefresh, ROe as statCardClass, Hfe as statusLabel, WCe as statusLine, Zr as statusText, PM as storeJavLayout, gwe as submitDecision, yL as summaryItems, Qq as tableFeatures, jq as tableMemo, ui as tableRows, Gfe as taskIssues, qfe as taskSubject, J3 as tasteDate, xPe as tasteDimensions, bPe as tasteHours, K3 as tasteKey, uPe as tasteRefetchInterval, dPe as tasteTime, nL as textLang, $m as time, Whe as tl, mi as toggleGroup, Y3 as topScores, nge as um, Yhe as uo, AH as useAction, qZ as useBackgroundJob, QU as useClientUpdates, dm as useConstant, bL as useEntityNames, EL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, dK as useLibraryTints, Ft as useMutation, tH as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, iS as useReducedMotion, Lwe as useRunSchedule, Fwe as useSaveFollowSchedule, SX as useSaveSettings, zwe as useSaveThumbnailMode, ZJ as useTable, mY as useTablePreferences, NL as useViewGlide, BCe as victimBytes, Ghe as vl, kW as wantName, ANe as watchNote, T3 as watchedShare, Dc as wireHorizontalScroller, Zwe as withOrganizeJob };
-//# debugId=0d77473d-6f95-4dfc-93c5-95cf4f3e0ffc
\ No newline at end of file
+//# debugId=95d2ae41-204e-437f-9596-f82778eeacc8
\ No newline at end of file