fix(web): 加速 IwoooS 資安進度可視化
This commit is contained in:
@@ -69,7 +69,7 @@ export function CompliancePanel() {
|
||||
<div style={cardStyle}>
|
||||
<div style={{ fontSize: 11, color: '#87867f', marginBottom: 4, textTransform: 'uppercase', letterSpacing: '0.05em' }}>{t('totalIncidents')}</div>
|
||||
<div style={{ fontSize: 24, fontWeight: 700, color: '#141413' }}>{summary.total_incidents}</div>
|
||||
<div style={{ fontSize: 11, color: '#87867f', marginTop: 4 }}>30 days</div>
|
||||
<div style={{ fontSize: 11, color: '#87867f', marginTop: 4 }}>{t('window30Days')}</div>
|
||||
</div>
|
||||
<div style={cardStyle}>
|
||||
<div style={{ fontSize: 11, color: '#87867f', marginBottom: 4, textTransform: 'uppercase', letterSpacing: '0.05em' }}>{t('resolvedRate')}</div>
|
||||
@@ -102,7 +102,7 @@ export function CompliancePanel() {
|
||||
{summary && summary.severity_distribution.length > 0 && (
|
||||
<div style={{ background: '#fff', border: '0.5px solid #e0ddd4', borderRadius: 12, overflow: 'hidden' }}>
|
||||
<div style={{ fontSize: 13, fontWeight: 700, padding: '10px 14px', borderBottom: '0.5px solid #e0ddd4', background: '#faf9f3', color: '#141413' }}>
|
||||
Severity Distribution
|
||||
{t('severityDistribution')}
|
||||
</div>
|
||||
<div style={{ display: 'flex', gap: 0 }}>
|
||||
{summary.severity_distribution.map(({ severity, count }) => (
|
||||
|
||||
Reference in New Issue
Block a user