mirror of
https://github.com/wangwangit/SubsTracker.git
synced 2026-07-02 05:44:20 +08:00
修复 #160:v2 在 4 个文件里重复定义 currencySymbols;JPY 与 CNY 同 符号 ¥ 易混淆。 - 新建 src/core/currency-format.js:CURRENCY_SYMBOLS 单一来源 + formatAmount(amount, currency) helper,JPY 改前缀为 'JP¥' 区分 - src/services/notify/reminder.js 与 src/api/handlers/subscriptions.js 改用 formatAmount,删除两份重复定义 仪表盘 (#149): - src/api/handlers/dashboard.js 重写,scheduler_status / status_history 改从 scheduler-logs.repo.getRecent(10) 取 - 兼容老前端字段(lastRunAt / shouldNotifyThisHour 等)做扁平转换 - 时区从 config.TIMEZONE 读取(不再硬编码 UTC) - 响应增加顶层 timezone 字段 170 测试全绿;wrangler dry-run 560 KiB / gzip 118 KiB。 Refs Task 12 of refactor/v3-product-grade plan.