mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-24 01:22:17 +00:00
fix: initial working version with libparakeet
This commit is contained in:
parent
3c1434b09f
commit
3d2761a2b1
@ -14,7 +14,7 @@
|
|||||||
"@chakra-ui/react": "^2.6.1",
|
"@chakra-ui/react": "^2.6.1",
|
||||||
"@emotion/react": "^11.11.0",
|
"@emotion/react": "^11.11.0",
|
||||||
"@emotion/styled": "^11.11.0",
|
"@emotion/styled": "^11.11.0",
|
||||||
"@jixun/libparakeet": "0.0.0-exp.10",
|
"@jixun/libparakeet": "0.0.0-exp.12",
|
||||||
"@reduxjs/toolkit": "^1.9.5",
|
"@reduxjs/toolkit": "^1.9.5",
|
||||||
"framer-motion": "^10.12.8",
|
"framer-motion": "^10.12.8",
|
||||||
"nanoid": "^4.0.2",
|
"nanoid": "^4.0.2",
|
||||||
|
@ -14,8 +14,8 @@ dependencies:
|
|||||||
specifier: ^11.11.0
|
specifier: ^11.11.0
|
||||||
version: 11.11.0(@emotion/react@11.11.0)(@types/react@18.0.28)(react@18.2.0)
|
version: 11.11.0(@emotion/react@11.11.0)(@types/react@18.0.28)(react@18.2.0)
|
||||||
'@jixun/libparakeet':
|
'@jixun/libparakeet':
|
||||||
specifier: 0.0.0-exp.10
|
specifier: 0.0.0-exp.12
|
||||||
version: 0.0.0-exp.10
|
version: 0.0.0-exp.12
|
||||||
'@reduxjs/toolkit':
|
'@reduxjs/toolkit':
|
||||||
specifier: ^1.9.5
|
specifier: ^1.9.5
|
||||||
version: 1.9.5(react-redux@8.0.5)(react@18.2.0)
|
version: 1.9.5(react-redux@8.0.5)(react@18.2.0)
|
||||||
@ -1780,8 +1780,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
|
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@jixun/libparakeet@0.0.0-exp.10:
|
/@jixun/libparakeet@0.0.0-exp.12:
|
||||||
resolution: {integrity: sha512-mDV3aBhWytgvr8gRza28+bDyCKLFet3qqrw+tos8Cz/Bg/tZneYlS5qP4w24cEfrV83OxI2NSOVYgZIN4S2RUw==}
|
resolution: {integrity: sha512-vtXUSDJMnirr8bz1oG29K+sfDz7T7V+tC4rnzS5Xon3wrUZq5Eth2icPMDYYC5UWEgfxEy/qr19/Em59v492nA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@jridgewell/gen-mapping@0.3.3:
|
/@jridgewell/gen-mapping@0.3.3:
|
||||||
|
@ -5,6 +5,9 @@ import { DECRYPTION_WORKER_ACTION_NAME } from './constants';
|
|||||||
// TODO: Worker pool?
|
// TODO: Worker pool?
|
||||||
export const workerClient = new Worker(new URL('./worker', import.meta.url), { type: 'module' });
|
export const workerClient = new Worker(new URL('./worker', import.meta.url), { type: 'module' });
|
||||||
|
|
||||||
|
// FIXME: report the error so is obvious to the user.
|
||||||
|
workerClient.onerror = (err) => console.error(err);
|
||||||
|
|
||||||
class DecryptionQueue extends ConcurrentQueue<{ id: string; blobURI: string }> {
|
class DecryptionQueue extends ConcurrentQueue<{ id: string; blobURI: string }> {
|
||||||
constructor(private workerClientBus: WorkerClientBus, maxQueue?: number) {
|
constructor(private workerClientBus: WorkerClientBus, maxQueue?: number) {
|
||||||
super(maxQueue);
|
super(maxQueue);
|
||||||
|
@ -6,6 +6,21 @@ import topLevelAwait from 'vite-plugin-top-level-await';
|
|||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
server: {
|
||||||
|
fs: {
|
||||||
|
// Note:
|
||||||
|
// This is _insecure_, but is required to get pnpm link to work.
|
||||||
|
// strict: false,
|
||||||
|
|
||||||
|
allow: [
|
||||||
|
'src',
|
||||||
|
'node_modules',
|
||||||
|
|
||||||
|
// Allow pnpm to link.
|
||||||
|
'../libparakeet-js',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
base: './',
|
base: './',
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
exclude: ['@jixun/libparakeet'],
|
exclude: ['@jixun/libparakeet'],
|
||||||
|
Loading…
Reference in New Issue
Block a user