style(web): 按 prettier 格式化发布管理页
build / build (push) Successful in 2m46s

CI format 检查报 src/ReleaseTargets.tsx 新出现未格式化;只跑了 prettier --write,无逻辑改动。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
姚章浩
2026-12-01 18:34:04 +08:00
parent f9e8e5e013
commit 1b2db5045a
+15 -17
View File
@@ -1891,9 +1891,7 @@ export function ReleaseTargetsView(props: ViewProps) {
: inSync : inSync
? { ? {
label: '✓ 已同步', label: '✓ 已同步',
hint: canCapture hint: canCapture ? captureAction.hint : `生产已是当前测试封存,无需同步。${captureHint(view, canWrite)}`,
? captureAction.hint
: `生产已是当前测试封存,无需同步。${captureHint(view, canWrite)}`,
disabled: true, disabled: true,
run: () => {}, run: () => {},
} }
@@ -1914,20 +1912,20 @@ export function ReleaseTargetsView(props: ViewProps) {
? captureAction ? captureAction
: null : null
: productionClass === 'nonempty' && baseline.canStart : productionClass === 'nonempty' && baseline.canStart
? {
label: baseline.pending ? '投递中…' : '建立目标权威基线(维护隔离)',
hint: '生产目标非空但还没有权威版本,先登记一份基线。',
disabled: baseline.pending,
run: baseline.onStart,
}
: !authorizationActive && sync.canSign
? { ? {
label: sync.pendingGrant ? '签发中…' : '签发同步授权(30 分钟)', label: baseline.pending ? '投递中…' : '建立目标权威基线(维护隔离)',
hint: '授权后才允许写生产;一次授权只对当前目标+快照有效。', hint: '生产目标非空但还没有权威版本,先登记一份基线。',
disabled: sync.pendingGrant, disabled: baseline.pending,
run: sync.onGrant, run: baseline.onStart,
} }
: null : !authorizationActive && sync.canSign
? {
label: sync.pendingGrant ? '签发中…' : '签发同步授权(30 分钟)',
hint: '授权后才允许写生产;一次授权只对当前目标+快照有效。',
disabled: sync.pendingGrant,
run: sync.onGrant,
}
: null
const productionText = const productionText =
productionClass === 'known' && production?.version productionClass === 'known' && production?.version
@@ -2030,8 +2028,8 @@ export function ReleaseTargetsView(props: ViewProps) {
: inSync : inSync
? '已同步,无需签发' ? '已同步,无需签发'
: sync.canSign : sync.canSign
? '可在下方签发' ? '可在下方签发'
: '需管理员签发'} : '需管理员签发'}
</small> </small>
</div> </div>
<div> <div>