对 Unlock Music 使用 React 重写(um-react) https://um-react.netlify.app/
Go to file
2023-05-08 17:39:20 +01:00
public initial commit 2023-05-07 20:11:16 +01:00
src feat: get web worker mechanism working (pass file around) 2023-05-08 17:36:10 +01:00
.editorconfig chore: add editorconfig 2023-05-08 17:29:00 +01:00
.eslintrc.cjs initial commit 2023-05-07 20:11:16 +01:00
.gitignore initial commit 2023-05-07 20:11:16 +01:00
.npmrc chore: rename dev to start, let pnpm use 18.16 2023-05-07 21:31:46 +01:00
index.html feat: basic ui layout 2023-05-07 23:29:37 +01:00
LICENSE initial commit 2023-05-07 20:11:16 +01:00
package.json feat: allow add file by selecting through open file dialog 2023-05-08 16:23:58 +01:00
pnpm-lock.yaml feat: allow add file by selecting through open file dialog 2023-05-08 16:23:58 +01:00
README.MD docs: update readme 2023-05-08 17:39:20 +01:00
tsconfig.json initial commit 2023-05-07 20:11:16 +01:00
tsconfig.node.json initial commit 2023-05-07 20:11:16 +01:00
vite.config.ts initial commit 2023-05-07 20:11:16 +01:00

Getting started

pnpm i
pnpm start

TODO

  • 文件拖放 (利用 react-dropzone?)
  • 各类算法
  • 简易元数据编辑器

架构

  • 浏览器主线程: 渲染界面,处理 UI 更新
  • Web Worker: 负责计算方面的内容,如内容解密。

数据传输: 生成 blob url (URL.createObjectURL) 然后透过 postMessage 传递给线程,线程利用 fetch API 来获取文件信息。