Skip to content

Commit

Permalink
feat: 添加基于zip的单文件格式 (#290)
Browse files Browse the repository at this point in the history
### 做了什么?
1. 重制了Tauri的文件读写调用
2. 添加了一个全新的基于indexedDB的`VFileSystem`层用于临时存储数据
3. 打开时会将zip内的文件全部读取到VFS内
4. 保存时从VFS内向zip保存

### 问题

目前使用`jszip`处理zip的压缩和解压,在面临较大图片时性能可能不佳。可能需要更换为wasm处理。

稳定性需进一步测试
  • Loading branch information
Littlefean authored Feb 2, 2025
2 parents d6135e6 + f9aaa3d commit b35601a
Show file tree
Hide file tree
Showing 27 changed files with 1,280 additions and 179 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"driver.js": "^1.3.1",
"i18next": "^24.2.0",
"lodash": "^4.17.21",
"jszip": "^3.10.1",
"lucide-react": "^0.469.0",
"markdown-it": "^14.1.0",
"react": "^19.0.0",
Expand Down
98 changes: 98 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b35601a

Please sign in to comment.