mirror of
https://github.com/hongguang1994/SimNexus.git
synced 2026-11-22 04:36:58 +08:00
- 新增 GET /api/dashboard/stats 接口,返回 7 天 SMS 趋势、本月成功率、任务状态分布 - 前端安装 recharts,重写 Dashboard 页面: - 短信发送趋势折线图(近 7 天成功/失败对比) - 发送成功率环形图(本月累计) - 定时任务状态横向柱状图(活跃/完成/失败/暂停) - 设备信号强度柱状图(实时,绿/黄/红阈值着色) - 保留顶部三统计卡(总数/在线/离线) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
743 B
JSON
33 lines
743 B
JSON
{
|
|
"name": "simnexus-frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.7.7",
|
|
"clsx": "^2.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"lucide-react": "^0.447.0",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-query": "^3.39.3",
|
|
"react-router-dom": "^6.26.2",
|
|
"recharts": "^3.9.0",
|
|
"zustand": "^5.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^18.3.10",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@vitejs/plugin-react": "^4.3.1",
|
|
"autoprefixer": "^10.4.20",
|
|
"postcss": "^8.4.47",
|
|
"tailwindcss": "^3.4.13",
|
|
"typescript": "^5.5.4",
|
|
"vite": "^5.4.8"
|
|
}
|
|
}
|