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
|
|
|
|
2023-05-08 16:39:20 +00:00
|
|
|
## 架构
|
|
|
|
|
|
|
|
- 浏览器主线程: 渲染界面,处理 UI 更新
|
|
|
|
- Web Worker: 负责计算方面的内容,如内容解密。
|
|
|
|
|
|
|
|
数据传输: 生成 blob url (`URL.createObjectURL`) 然后透过 `postMessage` 传递给线程,线程利用 `fetch` API 来获取文件信息。
|
2023-05-08 16:57:34 +00:00
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
|
|
|
- [ ] 文件拖放 (利用 `react-dropzone`?) #6
|
|
|
|
- [ ] 各类算法 [追踪 `crypto` 标签](https://git.unlock-music.dev/um/um-react/issues?labels=67)
|
|
|
|
- [ ] 简易元数据编辑器 #7
|