feat(storage): 本机快照 + data.json 多代备份 + 启动只读(v3.26.270)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m7s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m7s
- src/snapshot-store.js:内容寻址快照(画板 30 份/7 天、data.json 10 份),失败降级 - flush 写前/删除前拍快照;data.json 写前轮转 - loadInto 不再用 data.json 残留副本重写画板(只清残留键 + 强制重写一次 data.json);recoverFromWebStorage 仅恢复缺失/空文件 - data.json 损坏 → initFail bad-data;恢复页列备份并可一键恢复(损坏文件另存 .corrupt-*) - 「更多 → 画板历史…」:列表/恢复/已删除恢复为新画板(src/ui-board-history.js) - 单测:snapshot-store 5、启动守卫 8;棘轮:app 9,637→9,693、Workbench 2,807→2,862(装配)
This commit is contained in:
1 parent
ce71b21c67
commit
5987e96ecc
16 files changed
+669
-30
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "image-workbench-web",
|
||||
"private": true,
|
||||
"version": "3.26.269",
|
||||
"version": "3.26.270",
|
||||
"description": "Browser-based node canvas image workbench",
|
||||
"scripts": {
|
||||
"build": "node scripts/build.js && node scripts/copy-plugins.js",
|
||||
|
||||
Reference in new issue
Block a user