feat(cook): 支持菜谱数据分片加载与增量更新
- CLI 转换命令新增 --chunk-size 参数,支持将菜谱数据拆分为多个分片文件 - 前端 DB 初始化重构,支持单文件和分片两种模式 - 分片模式下通过 hash 比对实现增量更新,减少重复数据加载 - .gitignore 新增 recipe-meta.json 和 recipe-chunk-*.json 忽略规则 - 升级 vite、vitest 等依赖
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,7 @@
|
||||
# auto generate
|
||||
app/data/recipe.json
|
||||
app/data/recipe-meta.json
|
||||
app/data/recipe-chunk-*.json
|
||||
app/data/incompatible-foods.json
|
||||
|
||||
.DS_Store
|
||||
|
||||
Reference in New Issue
Block a user