feat(health): 新增日照时长监测卡片与 HealthKit 集成

- iOS 端集成 HealthKit 日照时间 (TimeInDaylight) 数据获取接口
- 新增 SunlightCard 组件,支持查看今日数据及最近30天历史趋势图表
- 更新统计页和自定义设置页,支持开启/关闭日照卡片
- 优化 HealthDataCard 组件,支持自定义图标组件和副标题显示
- 更新多语言文件及应用版本号至 1.1.6
This commit is contained in:
richarjiang
2025-12-19 17:38:16 +08:00
parent e51aca2fdb
commit 17664c679d
15 changed files with 851 additions and 7 deletions

View File

@@ -139,6 +139,19 @@ export const statistics = {
title: 'Sleep',
loading: 'Loading...',
},
sunlight: {
title: 'Sun',
unit: 'min',
compareIncrease: 'Up {{diff}} min vs {{date}}',
compareDecrease: 'Down {{diff}} min vs {{date}}',
compareSame: 'Same as {{date}}',
compareNone: 'No prior data',
last30Days: 'Last 30 days',
syncing: 'Syncing Health data...',
noData: 'No sunlight data yet',
average: '30-day avg',
latest: 'Latest',
},
oxygen: {
title: 'Blood Oxygen',
},

View File

@@ -123,6 +123,7 @@ export const statisticsCustomization = {
steps: 'Steps',
stress: 'Stress',
sleep: 'Sleep',
sunlight: 'Sun',
fitnessRings: 'Fitness Rings',
water: 'Water Intake',
basalMetabolism: 'Basal Metabolism',

View File

@@ -140,6 +140,19 @@ export const statistics = {
title: '睡眠',
loading: '加载中...',
},
sunlight: {
title: '晒太阳',
unit: '分钟',
compareIncrease: '与 {{date}} 相比增加 {{diff}} 分钟',
compareDecrease: '与 {{date}} 相比减少 {{diff}} 分钟',
compareSame: '与 {{date}} 相比无变化',
compareNone: '暂无对比',
last30Days: '最近30天',
syncing: '正在同步健康数据...',
noData: '暂无日照时间数据',
average: '30天均值',
latest: '最新值',
},
oxygen: {
title: '血氧饱和度',
},

View File

@@ -123,6 +123,7 @@ export const statisticsCustomization = {
steps: '步数',
stress: '压力',
sleep: '睡眠',
sunlight: '晒太阳',
fitnessRings: '健身圆环',
water: '饮水',
basalMetabolism: '基础代谢',