- Created EnhancedInsightsDashboard with multiple chart types: - Area charts with gradients for activity trends - Radar chart for weekly activity patterns - 24-hour heatmap visualization - Bubble/scatter chart for correlations - Time of day distribution bar chart - Added toggle between basic and enhanced chart views - Implemented chart export functionality (PNG/PDF) - Fixed API endpoint URLs (circadian-rhythm, query params) - Fixed component library conflicts (shadcn/ui → MUI) - Added comprehensive null safety for timestamp handling - Added alert type translations in all 5 languages - Installed html2canvas and jspdf for export features - Applied consistent minimum width styling to all charts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
85 lines
2.1 KiB
JSON
85 lines
2.1 KiB
JSON
{
|
||
"title": "洞察与分析",
|
||
"subtitle": "跟踪模式并获取关于您孩子活动的洞察",
|
||
"filters": {
|
||
"child": "孩子",
|
||
"dateRange": {
|
||
"7days": "7天",
|
||
"30days": "30天",
|
||
"3months": "3个月"
|
||
}
|
||
},
|
||
"stats": {
|
||
"feedings": {
|
||
"title": "喂养",
|
||
"subtitle": "总次数"
|
||
},
|
||
"sleep": {
|
||
"title": "睡眠",
|
||
"subtitle": "每日平均"
|
||
},
|
||
"diapers": {
|
||
"title": "尿布",
|
||
"subtitle": "总更换次数"
|
||
},
|
||
"topActivity": {
|
||
"title": "主要活动",
|
||
"subtitle": "最频繁"
|
||
}
|
||
},
|
||
"charts": {
|
||
"feedingFrequency": "喂养频率",
|
||
"sleepDuration": "睡眠时长(小时)",
|
||
"diaperChangesByType": "按类型分类的尿布更换",
|
||
"activityTimeline": "活动时间线",
|
||
"activityDistribution": "活动分布",
|
||
"chartLabels": {
|
||
"feedings": "喂养",
|
||
"diapers": "尿布",
|
||
"sleepHours": "睡眠(小时)"
|
||
}
|
||
},
|
||
"recentActivities": {
|
||
"title": "最近活动(最近20次)"
|
||
},
|
||
"emptyStates": {
|
||
"noChildren": {
|
||
"title": "未添加孩子",
|
||
"message": "添加孩子以查看洞察和分析",
|
||
"action": "添加孩子"
|
||
},
|
||
"noActivities": "在选定的日期范围内未找到活动。开始跟踪活动以查看洞察!"
|
||
},
|
||
"errors": {
|
||
"loadChildren": "加载孩子信息失败",
|
||
"loadActivities": "加载活动失败"
|
||
},
|
||
"activityTypes": {
|
||
"feeding": "喂养",
|
||
"sleep": "睡眠",
|
||
"diaper": "尿布",
|
||
"medication": "药物",
|
||
"milestone": "里程碑",
|
||
"note": "备注",
|
||
"none": "无"
|
||
},
|
||
"diaperTypes": {
|
||
"wet": "湿",
|
||
"dirty": "脏",
|
||
"both": "两者",
|
||
"dry": "干",
|
||
"unknown": "未知"
|
||
},
|
||
"alertTypes": {
|
||
"feeding_concern": "喂养问题",
|
||
"sleep_concern": "睡眠问题",
|
||
"diaper_concern": "尿布问题",
|
||
"growth_concern": "成长问题",
|
||
"health_concern": "健康问题",
|
||
"milestone_delay": "里程碑延迟",
|
||
"temperature_abnormal": "异常体温",
|
||
"dehydration_risk": "脱水风险",
|
||
"nutrition_concern": "营养问题"
|
||
}
|
||
}
|