2023-05-07 19:11:16 +00:00
|
|
|
# Getting started
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pnpm i
|
2023-05-07 20:31:46 +00:00
|
|
|
pnpm start
|
2023-05-07 19:11:16 +00:00
|
|
|
```
|
2023-05-07 22:29:37 +00:00
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
2023-05-08 16:39:20 +00:00
|
|
|
- [ ] 文件拖放 (利用 `react-dropzone`?)
|
|
|
|
- [ ] 各类算法
|
|
|
|
- [ ] 简易元数据编辑器
|
|
|
|
|
|
|
|
## 架构
|
|
|
|
|
|
|
|
- 浏览器主线程: 渲染界面,处理 UI 更新
|
|
|
|
- Web Worker: 负责计算方面的内容,如内容解密。
|
|
|
|
|
|
|
|
数据传输: 生成 blob url (`URL.createObjectURL`) 然后透过 `postMessage` 传递给线程,线程利用 `fetch` API 来获取文件信息。
|