Commit Graph

4 Commits

Author SHA1 Message Date
1ca9943d50 fix: 非单次容量时滴数四舍五入为整数
- VOLUME_DROPS 新增「单次」选项(值为 null,不缩放)
- 新增 scaleIngredients(),按目标容量等比缩放滴数,非单次时 Math.round 取整
- 卡片预览新增容量选择器,使用 scaledIngredients 展示缩放后的滴数及成本
- 编辑器成本合计同步反映已选容量的缩放结果

Co-Authored-By: YoYo <yoyo@euphon.net>
2026-04-07 22:04:28 +00:00
fam
7ba1e28370 Merge pull request 'Refactor: 前端重构为 Vue 3 + Vite + Pinia + Cypress E2E' (#1) from dev into main
Reviewed-on: #1
2026-04-06 19:22:19 +00:00
ee8ec23dc7 Refactor frontend to Vue 3 + Vite + Pinia + Cypress E2E
- Replace single-file 8441-line HTML with Vue 3 SPA
- Pinia stores: auth, oils, recipes, diary, ui
- Composables: useApi, useDialog, useSmartPaste, useOilTranslation
- 6 shared components: RecipeCard, RecipeDetailOverlay, TagPicker, etc.
- 9 page views: RecipeSearch, RecipeManager, Inventory, OilReference, etc.
- 14 Cypress E2E test specs (113 tests), all passing
- Multi-stage Dockerfile (Node build + Python runtime)
- Demo video generation scripts (TTS + subtitles + screen recording)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 18:35:00 +00:00
0368e85abe Initial commit: Essential Oil Formula Cost Calculator 2026-04-06 13:46:32 +00:00