From 058519fa0e16f2f72316f84b6288e291f844eb97 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 7 Oct 2026 01:52:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=88:=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E6=9C=AC=E8=BD=AE=E6=94=B9=E5=8A=A8=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei --- apps/web/app/components/files/dialogs.tsx | 31 +++++++------------ .../organize-wizard/organize-wizard.tsx | 8 ++--- .../organize/file-source-selection.tsx | 4 +-- .../components/organize/organize-queue.tsx | 4 +-- .../components/organize/source-selection.tsx | 4 +-- 5 files changed, 16 insertions(+), 35 deletions(-) diff --git a/apps/web/app/components/files/dialogs.tsx b/apps/web/app/components/files/dialogs.tsx index f9398f73..59525b02 100644 --- a/apps/web/app/components/files/dialogs.tsx +++ b/apps/web/app/components/files/dialogs.tsx @@ -599,7 +599,8 @@ export function TransferDialog({ {mode === "move" ? "移动到…" : "复制到…"} - {items.length === 1 ? baseName(items[0]?.path ?? "") : `${items.length} 项`} · 跨卷移动会先复制、核验,再删除源文件。 + {items.length === 1 ? baseName(items[0]?.path ?? "") : `${items.length} 项`} · + 跨卷移动会先复制、核验,再删除源文件。
@@ -635,9 +636,7 @@ export function TransferDialog({ }} className="max-h-72 md:max-h-96" /> -

- 目标可以是可写的媒体库目录或 Alist 存储。 -

+

目标可以是可写的媒体库目录或 Alist 存储。

{target && targetRoot ? ( @@ -687,9 +686,7 @@ export function TransferDialog({ ) : null} - {plan.truncated ? ( - 文件太多,只列出前一部分。执行时全部处理。 - ) : null} + {plan.truncated ? 文件太多,只列出前一部分。执行时全部处理。 : null}
    {plan.pairs.map((p) => { const sr = rootById.get(p.source.root); @@ -875,9 +872,7 @@ export function DeleteDialog({ {d.hnr === "satisfied" ? "已满足" : d.hnr === "unsatisfied" ? "未满足" : "未知"}

    ))} - {c.assets.length ? ( -

    含 {c.assets.length} 个已整理文件

    - ) : null} + {c.assets.length ?

    含 {c.assets.length} 个已整理文件

    : null} {c.bindings.map((bd) => (

    路径绑定:{bd.title} @@ -907,9 +902,7 @@ export function DeleteDialog({ setUnbind(e.target.checked)} /> 解除路径绑定 - - 绑定作废,这个作品下次整理时重新选目录。 - + 绑定作废,这个作品下次整理时重新选目录。 ) : null} @@ -943,7 +936,9 @@ export function DeleteDialog({ 永久删除 - {isAdmin ? "无法恢复。部署时设置 FILES_ALLOW_PERMANENT_DELETE=true 才能用。" : "只有管理员会话可用。"} + {isAdmin + ? "无法恢复。部署时设置 FILES_ALLOW_PERMANENT_DELETE=true 才能用。" + : "只有管理员会话可用。"} @@ -1051,9 +1046,7 @@ export function RefreshMetadataDialog({ items, onClose }: { items: FileEntry[]; onSuccess: (r) => { setResult(r); const skipped = r.skipped.length ? `,${r.skipped.length} 个跳过` : ""; - (r.skipped.length ? toast.warning : toast.success)( - `已提交 ${r.submitted.length} 个作品${skipped}`, - ); + (r.skipped.length ? toast.warning : toast.success)(`已提交 ${r.submitted.length} 个作品${skipped}`); }, onError: (e) => toast.error(filesErrorText(e, "提交失败")), }, @@ -1177,9 +1170,7 @@ export function ScrapeDialog({ items, root, onClose }: { items: FileEntry[]; roo 刮削{single ? ` · ${single.name}` : ` · ${items.length} 项`} - - 按路径识别作品,在文件所在目录写 NFO 和图片。没整理过的文件也能刮削。 - + 按路径识别作品,在文件所在目录写 NFO 和图片。没整理过的文件也能刮削。 {!started ? (

    diff --git a/apps/web/app/components/organize-wizard/organize-wizard.tsx b/apps/web/app/components/organize-wizard/organize-wizard.tsx index 761663ca..910add78 100644 --- a/apps/web/app/components/organize-wizard/organize-wizard.tsx +++ b/apps/web/app/components/organize-wizard/organize-wizard.tsx @@ -398,9 +398,7 @@ export function OrganizeWizard({ source, onClose }: { source: OrganizeSource; on

    {baseName(r.path)}

    -

    - {r.entity ? entityLabel(r.entity) : "未识别"} -

    +

    {r.entity ? entityLabel(r.entity) : "未识别"}

    {rowProblem(r) ?

    {rowProblem(r)}

    : null}
    ), @@ -711,9 +709,7 @@ export function OrganizeWizard({ source, onClose }: { source: OrganizeSource; on
    整理后刮削 - - 整理完成后写 NFO 和图片 - + 整理完成后写 NFO 和图片 {profiles.isPending ? "读取整理来源…" : "选择整理来源"} - - 整理时沿用所选整理来源的整理方式、目标目录和分类。 - + 整理时沿用所选整理来源的整理方式、目标目录和分类。 {profiles.isPending ? (

    diff --git a/apps/web/app/components/organize/organize-queue.tsx b/apps/web/app/components/organize/organize-queue.tsx index 03c86f74..de8d04a1 100644 --- a/apps/web/app/components/organize/organize-queue.tsx +++ b/apps/web/app/components/organize/organize-queue.tsx @@ -98,9 +98,7 @@ function QueueItem({ run }: { run: EngineRun }) { 来源

    {source ?? - (detail.isFetching || download.isFetching || recordQuery.isFetching - ? "加载中…" - : "读取不到来源")} + (detail.isFetching || download.isFetching || recordQuery.isFetching ? "加载中…" : "读取不到来源")}

    diff --git a/apps/web/app/components/organize/source-selection.tsx b/apps/web/app/components/organize/source-selection.tsx index 72921db3..c2363a3d 100644 --- a/apps/web/app/components/organize/source-selection.tsx +++ b/apps/web/app/components/organize/source-selection.tsx @@ -85,9 +85,7 @@ export function SourceSelection({ onSuccess: (r) => r.items.length ? onSelect(stockWizardSource(p, r)) - : toast.info( - `没有可整理的文件${stockNotes(r)}`, - ), + : toast.info(`没有可整理的文件${stockNotes(r)}`), onError: (e) => toast.error(filesErrorText(e, "扫描存量失败")), }, )