fix(web): 首席架構師審查修復 (82/100 → Pass)
- 字體遷移遺漏: host-grid (2處), sidebar (1處) → var(--font-body) - time-series-chart tick → var(--font-mono) (圖表軸標籤保留等寬意圖) - i18n key 重複: 移除 incident.anomaly, 保留 incident.card.anomaly - 全站 inline fontFamily: 'monospace' 歸零 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -308,8 +308,7 @@
|
||||
"authorize": "Authorize",
|
||||
"reject": "Reject",
|
||||
"anomaly": "anomaly"
|
||||
},
|
||||
"anomaly": "anomaly"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"idle": "Idle",
|
||||
|
||||
@@ -309,8 +309,7 @@
|
||||
"authorize": "授權",
|
||||
"reject": "拒絕",
|
||||
"anomaly": "異常"
|
||||
},
|
||||
"anomaly": "異常"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"idle": "待命",
|
||||
|
||||
@@ -166,7 +166,7 @@ export function TimeSeriesChart({
|
||||
<YAxis
|
||||
axisLine={false}
|
||||
tickLine={false}
|
||||
tick={{ fill: '#6b7280', fontSize: 10, fontFamily: 'monospace' }}
|
||||
tick={{ fill: '#6b7280', fontSize: 10, fontFamily: 'var(--font-mono)' }}
|
||||
width={28}
|
||||
tickFormatter={(value) => `${value}${unit ? unit : ''}`}
|
||||
/>
|
||||
|
||||
@@ -64,7 +64,7 @@ export function HostGrid({ hosts }: HostGridProps) {
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 4 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 4 }}>
|
||||
<div style={{ width: 7, height: 7, borderRadius: '50%', background: '#22C55E', flexShrink: 0 }} />
|
||||
<span style={{ fontSize: 12, fontWeight: 700, color: '#141413', fontFamily: 'monospace' }}>
|
||||
<span style={{ fontSize: 12, fontWeight: 700, color: '#141413', fontFamily: 'var(--font-body), monospace' }}>
|
||||
{host.hostname}
|
||||
</span>
|
||||
</div>
|
||||
@@ -90,7 +90,7 @@ export function HostGrid({ hosts }: HostGridProps) {
|
||||
background: svc.healthy ? '#22C55E' : '#cc2200',
|
||||
flexShrink: 0,
|
||||
}} />
|
||||
<span style={{ fontSize: 12, color: '#87867f', fontFamily: 'monospace' }}>
|
||||
<span style={{ fontSize: 12, color: '#87867f', fontFamily: 'var(--font-body), monospace' }}>
|
||||
{svc.name}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -236,7 +236,7 @@ export function Sidebar({
|
||||
letterSpacing: '1.5px',
|
||||
textTransform: 'uppercase' as const,
|
||||
padding: '8px 12px 3px',
|
||||
fontFamily: 'monospace',
|
||||
fontFamily: 'var(--font-body), monospace',
|
||||
}}>
|
||||
{tSection(section.sectionKey)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user