feat(health): 新增日照时长监测卡片与 HealthKit 集成
- iOS 端集成 HealthKit 日照时间 (TimeInDaylight) 数据获取接口 - 新增 SunlightCard 组件,支持查看今日数据及最近30天历史趋势图表 - 更新统计页和自定义设置页,支持开启/关闭日照卡片 - 优化 HealthDataCard 组件,支持自定义图标组件和副标题显示 - 更新多语言文件及应用版本号至 1.1.6
This commit is contained in:
@@ -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',
|
||||
},
|
||||
|
||||
@@ -123,6 +123,7 @@ export const statisticsCustomization = {
|
||||
steps: 'Steps',
|
||||
stress: 'Stress',
|
||||
sleep: 'Sleep',
|
||||
sunlight: 'Sun',
|
||||
fitnessRings: 'Fitness Rings',
|
||||
water: 'Water Intake',
|
||||
basalMetabolism: 'Basal Metabolism',
|
||||
|
||||
Reference in New Issue
Block a user