From 1b2db5045a276d4fb6a4e07571a2fe1e8ef9b07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E7=AB=A0=E6=B5=A9?= Date: Tue, 1 Dec 2026 18:34:04 +0800 Subject: [PATCH] =?UTF-8?q?style(web):=20=E6=8C=89=20prettier=20=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E5=8F=91=E5=B8=83=E7=AE=A1=E7=90=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI format 检查报 src/ReleaseTargets.tsx 新出现未格式化;只跑了 prettier --write,无逻辑改动。 Co-Authored-By: Claude Opus 5.5 --- web/src/ReleaseTargets.tsx | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/web/src/ReleaseTargets.tsx b/web/src/ReleaseTargets.tsx index 99cd399..76b954d 100644 --- a/web/src/ReleaseTargets.tsx +++ b/web/src/ReleaseTargets.tsx @@ -1891,9 +1891,7 @@ export function ReleaseTargetsView(props: ViewProps) { : inSync ? { label: '✓ 已同步', - hint: canCapture - ? captureAction.hint - : `生产已是当前测试封存,无需同步。${captureHint(view, canWrite)}`, + hint: canCapture ? captureAction.hint : `生产已是当前测试封存,无需同步。${captureHint(view, canWrite)}`, disabled: true, run: () => {}, } @@ -1914,20 +1912,20 @@ export function ReleaseTargetsView(props: ViewProps) { ? captureAction : null : productionClass === 'nonempty' && baseline.canStart - ? { - label: baseline.pending ? '投递中…' : '建立目标权威基线(维护隔离)', - hint: '生产目标非空但还没有权威版本,先登记一份基线。', - disabled: baseline.pending, - run: baseline.onStart, - } - : !authorizationActive && sync.canSign ? { - label: sync.pendingGrant ? '签发中…' : '签发同步授权(30 分钟)', - hint: '授权后才允许写生产;一次授权只对当前目标+快照有效。', - disabled: sync.pendingGrant, - run: sync.onGrant, + label: baseline.pending ? '投递中…' : '建立目标权威基线(维护隔离)', + hint: '生产目标非空但还没有权威版本,先登记一份基线。', + disabled: baseline.pending, + run: baseline.onStart, } - : null + : !authorizationActive && sync.canSign + ? { + label: sync.pendingGrant ? '签发中…' : '签发同步授权(30 分钟)', + hint: '授权后才允许写生产;一次授权只对当前目标+快照有效。', + disabled: sync.pendingGrant, + run: sync.onGrant, + } + : null const productionText = productionClass === 'known' && production?.version @@ -2030,8 +2028,8 @@ export function ReleaseTargetsView(props: ViewProps) { : inSync ? '已同步,无需签发' : sync.canSign - ? '可在下方签发' - : '需管理员签发'} + ? '可在下方签发' + : '需管理员签发'}