Skip to content

Commit

Permalink
Merge pull request #104 from lovegaoshi/dev
Browse files Browse the repository at this point in the history
chore: yarn dep
  • Loading branch information
lovegaoshi authored Jan 22, 2025
2 parents 6aae1b3 + 155e69c commit bd15605
Show file tree
Hide file tree
Showing 9 changed files with 2,379 additions and 2,764 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dist
.rpt2_cache

# misc
.yarn
.DS_Store
.env
.env.local
Expand Down
2 changes: 1 addition & 1 deletion azusa-player-mobile
82 changes: 43 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
"@babel/preset-typescript": "^7.26.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
"@types/base-64": "^1.0.2",
"@types/chrome": "^0.0.287",
"@types/chrome": "^0.0.299",
"@types/he": "^1.2.3",
"@types/js-base64": "^3.3.1",
"@types/lodash": "^4.17.13",
"@types/lodash": "^4.17.14",
"@types/md5": "^2.3.5",
"@types/react": "^18.3.13",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"@welldone-software/why-did-you-render": "^8.0.3",
"@typescript-eslint/eslint-plugin": "^8.21.0",
"@typescript-eslint/parser": "^8.21.0",
"@welldone-software/why-did-you-render": "^10.0.1",
"babel-loader": "^9.2.1",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "12.0.2",
Expand All @@ -43,53 +43,53 @@
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-import-resolver-webpack": "^0.13.9",
"eslint-import-resolver-webpack": "^0.13.10",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.6.3",
"mini-css-extract-plugin": "^2.9.2",
"prettier": "^3.4.2",
"progress-bar-webpack-plugin": "^2.1.0",
"react-refresh": "^0.14.2",
"sass-loader": "^16.0.3",
"react-refresh": "^0.16.0",
"sass-loader": "^16.0.4",
"style-loader": "^4.0.0",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4",
"webpack-cli": "^6.0.1",
"webpack-config-utils": "^2.3.1",
"webpack-dev-server": "^5.1.0"
"webpack-dev-server": "^5.2.0"
},
"browserslist": [
"chrome >= 72",
"not dead"
],
"dependencies": {
"@emotion/react": "^11.13.5",
"@emotion/styled": "^11.13.5",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@ffmpeg/core": "^0.12.6",
"@ffmpeg/ffmpeg": "^0.12.10",
"@ffmpeg/util": "^0.12.1",
"@fontsource/roboto": "^5.1.0",
"@fortawesome/fontawesome-free": "^6.7.1",
"@fortawesome/free-brands-svg-icons": "^6.7.1",
"@fontsource/roboto": "^5.1.1",
"@fortawesome/fontawesome-free": "^6.7.2",
"@fortawesome/free-brands-svg-icons": "^6.7.2",
"@hello-pangea/dnd": "^17.0.0",
"@mui/icons-material": "^6.1.10",
"@mui/lab": "6.0.0-dev.240424162023-9968b4889d",
"@mui/material": "^6.1.10",
"@mui/styles": "^6.1.10",
"@mui/icons-material": "^6.4.1",
"@mui/lab": "6.0.0-beta.24",
"@mui/material": "^6.4.1",
"@mui/styles": "^6.4.1",
"axios": "^1.7.9",
"base-64": "^1.0.0",
"base64-js": "^1.5.1",
"big-integer": "^1.6.52",
"bottleneck": "^2.19.5",
"buffer": "^6.0.3",
"cheerio": "^1.0.0",
"cross-fetch": "^4.0.0",
"cross-fetch": "^4.1.0",
"crypto-browserify": "^3.12.1",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
Expand All @@ -101,30 +101,34 @@
"fs": "^0.0.1-security",
"he": "^1.2.0",
"i18next": "^23.16.8",
"libmuse": "https://github.com/lovegaoshi/muse.git#commit=0bffe2319baf825037bece6869d360d6d307eb72",
"material-ui-confirm": "^3.0.16",
"libmuse": "https://github.com/lovegaoshi/muse.git#commit=942f16bde7ba44ad1d0452ce838a96b17fe95aff",
"material-ui-confirm": "^3.0.18",
"md5": "^2.3.0",
"notistack": "^3.0.1",
"octokit": "^4.0.2",
"notistack": "^3.0.2",
"octokit": "^4.1.0",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react": "19.0.0",
"react-click-n-hold": "^1.0.7",
"react-contexify": "^6.0.0",
"react-dom": "^18.3.1",
"react-dom": "19.0.0",
"react-hotkeys-hook": "^4.6.1",
"react-i18next": "^15.1.3",
"react-i18next": "^15.4.0",
"react-jinke-music-player": "git+https://[email protected]/lovegaoshi/react-music-player.git",
"react-lrc": "^3.2.1",
"react-swipeable": "^7.0.2",
"react-window": "^1.8.10",
"sass": "^1.82.0",
"react-window": "^1.8.11",
"sass": "^1.83.4",
"stream-browserify": "^3.0.0",
"util": "^0.12.5",
"uuid": "^11.0.3",
"youtubei.js": "^11.0.1",
"zustand": "^5.0.2"
"uuid": "^11.0.5",
"youtubei.js": "^13.0.0",
"zustand": "^5.0.3"
},
"packageManager": "[email protected]"
"resolutions": {
"react": "19.0.0",
"react-dom": "19.0.0"
},
"packageManager": "[email protected]"
}
3 changes: 2 additions & 1 deletion src/components/setting/SettingTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ function SettingsPanel() {
<BooleanCheckbox settingKey='r128gain' />
<BooleanCheckbox
settingKey='memoryEfficiency'
callback={() => window.location.reload()}
callback={window.location.reload}
/>
<BooleanCheckbox settingKey='noBiliR128Gain' />
</React.Fragment>
);
}
Expand Down
11 changes: 8 additions & 3 deletions src/utils/Bilibili/biliCookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
export const getCookie = async (domain: string, name: string) =>
chrome.cookies.get({ url: domain, name });

export const getBiliCookie = async (name = 'bili_jct') =>
export const getBiliCookie = async (name = BILICOOKIES.bilijct) =>
getCookie('https://www.bilibili.com', name);

export const getBiliJct = () => getBiliCookie('bili_jct');
export const getBiliJct = () => getBiliCookie(BILICOOKIES.bilijct);

export const getBiliSESS = () => getBiliCookie('SESSDATA');
export const getBiliSESS = () => getBiliCookie(BILICOOKIES.SESSDATA);

export const cookieHeader = () => undefined;

export enum BILICOOKIES {
SESSDATA = 'SESSDATA',
bilijct = 'bili_jct',
}
2 changes: 1 addition & 1 deletion src/utils/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const resources = {

i18n.use(initReactI18next).init({
resources,
compatibilityJSON: 'v3',
compatibilityJSON: 'v4',
lng: 'zh_CN_#Hans',
fallbackLng: 'en',
interpolation: {
Expand Down
5 changes: 5 additions & 0 deletions src/utils/mfsdk.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const initMFsdk = () => [];

export const addMFsdks = () => void 0;

export const rmMFsdks = () => void 0;
10 changes: 10 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { strFromU8, decompressSync } from 'fflate';
import fs from 'node:fs';

const data = fs.readFileSync(
'/home/nisadmin/Downloads/noxplay_2025-01-16.noxBackup',
);
fs.writeFileSync(
'/home/nisadmin/Downloads/nox.noxBackup.json',
strFromU8(decompressSync(data)),
);
Loading

0 comments on commit bd15605

Please sign in to comment.