mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-27 19:42:15 +00:00
Compare commits
No commits in common. "22528481d52324ea2c20e61c17ae8a39d750235c" and "8e4367fbf93e5c837f39a082c7427386a9c38753" have entirely different histories.
22528481d5
...
8e4367fbf9
@ -29,7 +29,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
python3 -m zipfile -c um-react.zip dist/.
|
python3 -m zipfile -c um-react.zip dist/.
|
||||||
cp um-react.zip dist/"release-${DRONE_COMMIT_SHA}.zip"
|
cp um-react.zip dist/release-"${DRONE_COMMIT_SHA}".zip
|
||||||
python3 -m zipfile -c um-react-site.zip dist/.
|
python3 -m zipfile -c um-react-site.zip dist/.
|
||||||
- ./scripts/publish.sh
|
# - ./scripts/publish.sh
|
||||||
- ./scripts/deploy.sh
|
- ./scripts/deploy.sh
|
||||||
|
1
.npmrc
1
.npmrc
@ -1,4 +1,3 @@
|
|||||||
use-node-version=20.10.0
|
use-node-version=20.10.0
|
||||||
node-version=20.10.0
|
node-version=20.10.0
|
||||||
engine-strict=true
|
engine-strict=true
|
||||||
@um:registry=https://git.unlock-music.dev/api/packages/um/npm/
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "um-react",
|
"name": "um-react",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.2.8",
|
"version": "0.2.7",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
@ -22,8 +22,8 @@
|
|||||||
"@chakra-ui/react": "^2.8.2",
|
"@chakra-ui/react": "^2.8.2",
|
||||||
"@emotion/react": "^11.11.1",
|
"@emotion/react": "^11.11.1",
|
||||||
"@emotion/styled": "^11.11.0",
|
"@emotion/styled": "^11.11.0",
|
||||||
|
"@jixun/libparakeet": "0.4.3",
|
||||||
"@reduxjs/toolkit": "^2.0.1",
|
"@reduxjs/toolkit": "^2.0.1",
|
||||||
"@um/libparakeet": "0.4.5",
|
|
||||||
"framer-motion": "^10.16.16",
|
"framer-motion": "^10.16.16",
|
||||||
"nanoid": "^5.0.4",
|
"nanoid": "^5.0.4",
|
||||||
"radash": "^11.0.0",
|
"radash": "^11.0.0",
|
||||||
|
9315
pnpm-lock.yaml
9315
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,7 @@ import type { CryptoBase } from '../CryptoBase';
|
|||||||
import { KWM_KEY } from './kwm.key';
|
import { KWM_KEY } from './kwm.key';
|
||||||
import { DecryptCommandOptions } from '~/decrypt-worker/types';
|
import { DecryptCommandOptions } from '~/decrypt-worker/types';
|
||||||
import { makeQMCv2KeyCrypto } from '~/decrypt-worker/util/qmc2KeyCrypto';
|
import { makeQMCv2KeyCrypto } from '~/decrypt-worker/util/qmc2KeyCrypto';
|
||||||
import { fetchParakeet } from '@um/libparakeet';
|
import { fetchParakeet } from '@jixun/libparakeet';
|
||||||
import { stringToUTF8Bytes } from '~/decrypt-worker/util/utf8Encoder';
|
import { stringToUTF8Bytes } from '~/decrypt-worker/util/utf8Encoder';
|
||||||
|
|
||||||
// v1 only
|
// v1 only
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { transformBlob } from '~/decrypt-worker/util/transformBlob';
|
import { transformBlob } from '~/decrypt-worker/util/transformBlob';
|
||||||
import type { CryptoBase } from '../CryptoBase';
|
import type { CryptoBase } from '../CryptoBase';
|
||||||
import type { DecryptCommandOptions } from '~/decrypt-worker/types.ts';
|
import type { DecryptCommandOptions } from '~/decrypt-worker/types.ts';
|
||||||
import { fetchParakeet } from '@um/libparakeet';
|
import { fetchParakeet } from '@jixun/libparakeet';
|
||||||
import { stringToUTF8Bytes } from '~/decrypt-worker/util/utf8Encoder.ts';
|
import { stringToUTF8Bytes } from '~/decrypt-worker/util/utf8Encoder.ts';
|
||||||
import { makeQMCv2FooterParser, makeQMCv2KeyCrypto } from '~/decrypt-worker/util/qmc2KeyCrypto.ts';
|
import { makeQMCv2FooterParser, makeQMCv2KeyCrypto } from '~/decrypt-worker/util/qmc2KeyCrypto.ts';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Parakeet } from '@um/libparakeet';
|
import type { Parakeet } from '@jixun/libparakeet';
|
||||||
import { SEED, ENC_V2_KEY_1, ENC_V2_KEY_2 } from '../crypto/qmc/qmc_v2.key';
|
import { SEED, ENC_V2_KEY_1, ENC_V2_KEY_2 } from '../crypto/qmc/qmc_v2.key';
|
||||||
|
|
||||||
export const makeQMCv2KeyCrypto = (p: Parakeet) => p.make.QMCv2KeyCrypto(SEED, ENC_V2_KEY_1, ENC_V2_KEY_2);
|
export const makeQMCv2KeyCrypto = (p: Parakeet) => p.make.QMCv2KeyCrypto(SEED, ENC_V2_KEY_1, ENC_V2_KEY_2);
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { Transformer, Parakeet, TransformResult, fetchParakeet } from '@um/libparakeet';
|
import { Transformer, Parakeet, TransformResult, fetchParakeet } from '@jixun/libparakeet';
|
||||||
import { toArrayBuffer } from './buffer';
|
import { toArrayBuffer } from './buffer';
|
||||||
import { UnsupportedSourceFile } from './DecryptError';
|
import { UnsupportedSourceFile } from './DecryptError';
|
||||||
|
|
||||||
export async function transformBlob(
|
export async function transformBlob(
|
||||||
blob: Blob | ArrayBuffer,
|
blob: Blob | ArrayBuffer,
|
||||||
transformerFactory: (p: Parakeet) => Transformer | Promise<Transformer>,
|
transformerFactory: (p: Parakeet) => Transformer | Promise<Transformer>,
|
||||||
{ cleanup, parakeet }: { cleanup?: () => void; parakeet?: Parakeet } = {},
|
{ cleanup, parakeet }: { cleanup?: () => void; parakeet?: Parakeet } = {}
|
||||||
) {
|
) {
|
||||||
const registeredCleanupFns: (() => void)[] = [];
|
const registeredCleanupFns: (() => void)[] = [];
|
||||||
if (cleanup) {
|
if (cleanup) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { WorkerServerBus } from '~/util/WorkerEventBus';
|
import { WorkerServerBus } from '~/util/WorkerEventBus';
|
||||||
import { DECRYPTION_WORKER_ACTION_NAME } from './constants';
|
import { DECRYPTION_WORKER_ACTION_NAME } from './constants';
|
||||||
|
|
||||||
import { getSDKVersion } from '@um/libparakeet';
|
import { getSDKVersion } from '@jixun/libparakeet';
|
||||||
|
|
||||||
import { workerDecryptHandler } from './worker/handler/decrypt';
|
import { workerDecryptHandler } from './worker/handler/decrypt';
|
||||||
import { workerParseMusicExMediaName } from './worker/handler/qmcv2_parser';
|
import { workerParseMusicExMediaName } from './worker/handler/qmcv2_parser';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Parakeet, fetchParakeet } from '@um/libparakeet';
|
import { Parakeet, fetchParakeet } from '@jixun/libparakeet';
|
||||||
import { timedLogger, withGroupedLogs as withTimeGroupedLogs } from '~/util/logUtils';
|
import { timedLogger, withGroupedLogs as withTimeGroupedLogs } from '~/util/logUtils';
|
||||||
import type { DecryptCommandOptions, DecryptCommandPayload } from '~/decrypt-worker/types';
|
import type { DecryptCommandOptions, DecryptCommandPayload } from '~/decrypt-worker/types';
|
||||||
import { allCryptoFactories } from '../../crypto/CryptoFactory';
|
import { allCryptoFactories } from '../../crypto/CryptoFactory';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { fetchParakeet, FooterParserState } from '@um/libparakeet';
|
import { fetchParakeet, FooterParserState } from '@jixun/libparakeet';
|
||||||
import type { FetchMusicExNamePayload } from '~/decrypt-worker/types';
|
import type { FetchMusicExNamePayload } from '~/decrypt-worker/types';
|
||||||
import { makeQMCv2FooterParser } from '~/decrypt-worker/util/qmc2KeyCrypto';
|
import { makeQMCv2FooterParser } from '~/decrypt-worker/util/qmc2KeyCrypto';
|
||||||
import { timedLogger, withGroupedLogs as withTimeGroupedLogs } from '~/util/logUtils';
|
import { timedLogger, withGroupedLogs as withTimeGroupedLogs } from '~/util/logUtils';
|
||||||
|
@ -13,7 +13,7 @@ import {
|
|||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
|
|
||||||
import { useAppDispatch, useAppSelector } from '~/hooks';
|
import { useAppDispatch, useAppSelector } from '~/hooks';
|
||||||
import { fetchParakeet } from '@um/libparakeet';
|
import { fetchParakeet } from '@jixun/libparakeet';
|
||||||
import { ExtLink } from '~/components/ExtLink';
|
import { ExtLink } from '~/components/ExtLink';
|
||||||
import { ChangeEvent, ClipboardEvent } from 'react';
|
import { ChangeEvent, ClipboardEvent } from 'react';
|
||||||
import { VQuote } from '~/components/HelpText/VQuote';
|
import { VQuote } from '~/components/HelpText/VQuote';
|
||||||
|
@ -40,7 +40,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
base: './',
|
base: './',
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
exclude: ['@um/libparakeet', 'sql.js'],
|
exclude: ['@jixun/libparakeet', 'sql.js'],
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
replace({
|
replace({
|
||||||
|
Loading…
Reference in New Issue
Block a user