diff --git a/apps/web/app/components/dashboard/home-runtime.tsx b/apps/web/app/components/dashboard/home-runtime.tsx index 304a5576..d486df44 100644 --- a/apps/web/app/components/dashboard/home-runtime.tsx +++ b/apps/web/app/components/dashboard/home-runtime.tsx @@ -171,7 +171,7 @@ function RuntimeOverview({ downloaders }: { downloaders?: Dashboard["sources"]["

) : ( - + )} ); @@ -192,18 +192,18 @@ function DownloaderOverview({ downloaders }: { downloaders?: Dashboard["sources" downloaders ?? instances.map((d) => ({ id: d.instanceId, name: d.name, enabled: true, health: "unknown", lastSeenAt: null })); return ( - + {q.isPending ? ( ) : q.isError ? ( q.refetch()} className="py-6" /> ) : !sources.length ? ( - + ) : ( <>

{board?.counts.active} - 项进行中 + 个下载进行中

    {sources.map((d) => { @@ -245,10 +245,10 @@ function DownloaderOverview({ downloaders }: { downloaders?: Dashboard["sources" })}

- 进行中含等待计划、暂停和异常任务 · 速度含下载器全部任务 + 进行中包括还没提交、已暂停和出错的下载 · 速度是下载器里全部任务的合计

{board?.liveAt ? ( -

速度采样于 {formatRelative(board.liveAt)}

+

速度更新于 {formatRelative(board.liveAt)}

) : null} )} diff --git a/apps/web/app/routes/console/home.tsx b/apps/web/app/routes/console/home.tsx index ec0d0e35..4bf2d276 100644 --- a/apps/web/app/routes/console/home.tsx +++ b/apps/web/app/routes/console/home.tsx @@ -121,7 +121,7 @@ function StatusLine({ d }: { d: Dashboard }) { await update.mutateAsync({ automation: { enabled } }); toast.success(enabled ? "自动化已恢复" : "自动化已暂停"); } catch (err) { - toast.error(errorMessage(err, "切换失败")); + toast.error(errorMessage(err, enabled ? "恢复失败" : "暂停失败")); throw err; } }; @@ -217,11 +217,11 @@ function Busy({ w }: { w: Dashboard["currentWork"] }) { ]); const empty = !downloads.length && !agents.length && !runs.length; return ( -
+
{running.isPending && !downloads.length ? ( ) : empty ? ( - + ) : (
    {downloads.map((t) => ( @@ -263,11 +263,11 @@ function NeedsMe() { const q = useAttention(); const rows = attentionRows(q.data); return ( -
    +
    {q.isPending ? ( ) : rows.length === 0 ? ( - + ) : ( )} @@ -282,7 +282,7 @@ function RecentImports({ d }: { d: Dashboard }) { return (
    {rows.length === 0 ? ( - + ) : (
      {rows.map((r) => ( @@ -294,7 +294,7 @@ function RecentImports({ d }: { d: Dashboard }) { {r.title ?? r.targetPath?.split("/").pop() ?? "未关联作品"} {r.status === "partial" ? ( - {r.counts.succeeded}/{r.counts.total} 个文件已整理 + 已整理 {r.counts.succeeded}/{r.counts.total} 个文件 ) : null} @@ -303,7 +303,7 @@ function RecentImports({ d }: { d: Dashboard }) { ))}
    )} - {today ?

    今天整理 {today} 个文件

    : null} + {today ?

    今天已整理 {today} 个文件

    : null}
    ); }