diff --git a/web2/src/pages/Dashboard.tsx b/web2/src/pages/Dashboard.tsx index 641811f..e285815 100644 --- a/web2/src/pages/Dashboard.tsx +++ b/web2/src/pages/Dashboard.tsx @@ -10,7 +10,7 @@ import { useEffect, useState } from 'react' import { useNavigate } from 'react-router-dom' import { - ClipboardCheck, MessageSquare, Activity, ArrowRight, + ClipboardCheck, MessageSquare, ArrowRight, Radar, ShieldCheck, Scale, TrendingUp, Heart, Plus, ChevronRight, Sparkles, Clock, CircleAlert, } from 'lucide-react' @@ -25,32 +25,6 @@ import { api } from '@/lib/api' import { greeting, formatRelative, SCENE_LABELS, RISK_LABELS, MATTER_STATUS_LABELS, cn } from '@/lib/utils' import type { DashboardToday, DashboardSummary, TimelineItem, RiskAlert, Scene } from '@/types' -/** 环形进度条 */ -function RingProgress({ value, label, color }: { value: number; label: string; color: string }) { - const radius = 28 - const circumference = 2 * Math.PI * radius - const offset = circumference - (value / 100) * circumference - return ( -
0 ? 'text-emerald-700' : 'text-muted-foreground')}>{replyCount}
- -- {Math.round((data.health_score.legal + data.health_score.operation + data.health_score.compliance) / 3)} -
-