refactor: 清理死代码 + 提前失败 + 错误记录控制台
- 移除 EventDetail.vue 未用的 computed 导入 - 移除 HeaderBar.vue 未用的 .btn-secondary CSS - store (updateEvent/splitEvent/toggleOccurrence): uid 缺失改抛错 (fail-fast), 不再静默 return - EventDetail onSplit: 捕获 splitEvent 抛错并提示用户 - DropZone/HeaderBar 解析失败: catch 内补 console.error - ical-io getZone: 时区未注册回退 UTC 时 console.warn - WeekPreview 周标签改用 i18n (weekPreview.rangeFmt), 与 MonthPreview 一致 - docs: 新增 error-handling.md; 修正 auto-save-design state 快照补 timezone - README: 补充部署说明 (经 zMainPage apache2 托管)
This commit is contained in:
@@ -49,7 +49,7 @@ timeTableFix/
|
||||
| Node.js | ≥ 18 |
|
||||
| ical.js | ICS 解析库(npm 依赖) |
|
||||
|
||||
> 纯前端应用,无运行期后端依赖。
|
||||
> 纯前端应用,无运行期后端依赖。生产部署经 [zMainPage](https://git.zikai.wang/zikai/zMainPage) 作为子模块集成,由其 apache2 静态托管(无独立 apache2 配置);详见 zMainPage 的部署文档。
|
||||
|
||||
## 如何使用
|
||||
|
||||
@@ -84,4 +84,5 @@ npm test # 单元测试(57 项)
|
||||
- [时区选择(自动检测 / 回退墨尔本)](./docs/timezone.md)
|
||||
- [间隔合并与链拆分算法](./docs/organize-algorithm.md)
|
||||
- [自动保存设计](./docs/auto-save-design.md)
|
||||
- [错误处理与日志约定](./docs/error-handling.md)
|
||||
- [初始设计文档](./docs/superpowers/specs/2026-07-13-timetable2-design.md)
|
||||
|
||||
Reference in New Issue
Block a user