Skip to content

Commit

Permalink
Merge pull request #93 from lovegaoshi/dev
Browse files Browse the repository at this point in the history
chore: dep upgrade
  • Loading branch information
lovegaoshi authored Jul 30, 2024
2 parents 108c99e + 77eb184 commit 80a61b7
Show file tree
Hide file tree
Showing 8 changed files with 1,063 additions and 525 deletions.
2 changes: 1 addition & 1 deletion azusa-player-mobile
Submodule azusa-player-mobile updated 70 files
+4 −1 .github/workflows/android-release.yml
+2 −0 .github/workflows/gitee-sync.yml
+17 −6 README.md
+6 −0 __tests__/mediafetch/biliUser.test.ts
+7 −2 __tests__/mediafetch/bilivideo.test.ts
+7 −25 __tests__/mediafetch/ytbvideo.test.ts
+24 −4 android/app/build.gradle
+2 −2 android/app/src/main/java/com/noxplay/noxplayer/NoxAndroidAutoModule.kt
+1 −1 android/build.gradle
+1 −1 android/gradle/wrapper/gradle-wrapper.properties
+15 −0 fastlane/metadata/android/en-US/full_description.txt
+1 −0 fastlane/metadata/android/en-US/images/icon.png
+1 −0 fastlane/metadata/android/en-US/short_description.txt
+15 −0 fastlane/metadata/android/zh-CN/full_description.txt
+1 −0 fastlane/metadata/android/zh-CN/short_description.txt
+4 −4 ios/APM.xcodeproj/project.pbxproj
+35 −35 ios/Podfile.lock
+48 −48 package.json
+0 −22 patches/@shopify+flash-list+1.6.4.patch
+1 −0 patches/react-native-blob-util+0.19.11.patch
+2 −0 scripts/release_bump.py
+ src/assets/splash/nox-3d-2024.jpg
+4 −3 src/components/background/AppOpenSplash.tsx
+2 −2 src/components/background/MainBackground.tsx
+2 −2 src/components/commonui/AutoComplete.tsx
+5 −1 src/components/explore/SongTab.tsx
+1 −1 src/components/explore/bilibili/View.tsx
+1 −1 src/components/player/PIPLyric.tsx
+10 −3 src/components/player/controls/usePlayerControls.ts
+2 −2 src/components/playlist/BiliSearch/BiliSearchbar.tsx
+12 −32 src/components/playlist/BiliSearch/SearchMenu.tsx
+1 −1 src/components/playlist/Info/PlaylistSearchMenu.tsx
+1 −1 src/components/playlist/SongList/SongInfo.tsx
+23 −1 src/components/playlist/SongList/SongMenu.tsx
+9 −8 src/components/setting/DeveloperSettings.tsx
+74 −0 src/components/setting/DownloadSettings.tsx
+0 −0 src/components/setting/SetttingEntries.ts
+49 −37 src/components/setting/View.tsx
+2 −1 src/components/setting/appearances/SkinSettings.tsx
+14 −0 src/components/styles/NoxTheme.ts
+4 −1 src/components/styles/steria.json
+236 −1 src/components/styles/steriaGarb.json
+1 −1 src/enums/Version.ts
+3 −3 src/hooks/useLyric.ts
+21 −4 src/hooks/useTanakaAmazingCommodities.ts
+3 −0 src/localization/en/translation.json
+1 −0 src/localization/zhcn/translation.json
+5 −0 src/objects/Storage.ts
+2 −0 src/stores/appStore.ts
+0 −1 src/stores/playingList.ts
+3 −2 src/stores/useSnack.ts
+8 −0 src/types/ffmpeg.d.ts
+1 −0 src/types/media.d.ts
+3 −0 src/types/request.d.ts
+11 −0 src/types/storage.d.ts
+11 −8 src/utils/Cache.ts
+2 −4 src/utils/ChromeStorage.ts
+33 −0 src/utils/Download.ts
+17 −2 src/utils/RNTPUtils.ts
+92 −1 src/utils/RNUtils.ts
+21 −5 src/utils/Utils.ts
+2 −1 src/utils/ffmpeg/ffmpeg.ts
+3 −4 src/utils/mediafetch/alist.ts
+52 −1 src/utils/mediafetch/bilicolle.ts
+10 −0 src/utils/mediafetch/biliuser.ts
+2 −0 src/utils/mediafetch/paginatedbili.ts
+9 −2 src/utils/mediafetch/paginatedfetch.ts
+5 −5 src/utils/re.ts
+1 −1 src/utils/rejson.json
+1,141 −572 yarn.lock
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@
"scripts": {
"start": "webpack serve --env dev",
"watch": "webpack --env devBuild --watch",
"dev": "python ./scripts/moveFFMpeg.py && webpack --env devBuild && python ./scripts/moveFFMpeg.py --build",
"build": "webpack --env prod && python ./scripts/moveFFMpeg.py --prod",
"dev": "python3 ./scripts/moveFFMpeg.py && webpack --env devBuild && python3 ./scripts/moveFFMpeg.py --build",
"build": "webpack --env prod && python3 ./scripts/moveFFMpeg.py --prod",
"dep": "git submodule update --remote --merge --recursive && yarn upgrade-interactive",
"ci:lint": "eslint src --max-warnings=0",
"ci:format": "prettier --check src",
"prettify": "prettier --write ./src",
"compile": "tsc"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.2",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
"@types/base-64": "^1.0.2",
"@types/chrome": "^0.0.268",
"@types/chrome": "^0.0.269",
"@types/he": "^1.2.3",
"@types/js-base64": "^3.3.1",
"@types/md5": "^2.3.5",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@welldone-software/why-did-you-render": "^8.0.3",
"babel-loader": "^9.1.3",
"clean-webpack-plugin": "^4.0.0",
Expand All @@ -44,23 +44,23 @@
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-import-resolver-webpack": "^0.13.8",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.6.0",
"lodash": "^4.17.21",
"mini-css-extract-plugin": "^2.9.0",
"node-sass": "^9.0.0",
"prettier": "^3.3.2",
"prettier": "^3.3.3",
"progress-bar-webpack-plugin": "^2.1.0",
"react-refresh": "^0.14.2",
"sass-loader": "^14.2.1",
"sass-loader": "^16.0.0",
"style-loader": "^4.0.0",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "^5.4.5",
"webpack": "^5.92.0",
"typescript": "^5.5.4",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4",
"webpack-config-utils": "^2.3.1",
"webpack-dev-server": "^5.0.4"
Expand All @@ -70,19 +70,19 @@
"not dead"
],
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
"@ffmpeg/core": "^0.12.6",
"@ffmpeg/ffmpeg": "^0.12.10",
"@ffmpeg/util": "^0.12.1",
"@fontsource/roboto": "^5.0.13",
"@fortawesome/fontawesome-free": "^6.5.2",
"@fortawesome/free-brands-svg-icons": "^6.5.2",
"@fortawesome/fontawesome-free": "^6.6.0",
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@hello-pangea/dnd": "^16.6.0",
"@mui/icons-material": "^5.15.20",
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5.15.20",
"@mui/styles": "^5.15.20",
"@mui/icons-material": "^5.16.5",
"@mui/lab": "^5.0.0-alpha.173",
"@mui/material": "^5.16.5",
"@mui/styles": "^5.16.5",
"axios": "^1.7.2",
"base-64": "^1.0.0",
"base64-js": "^1.5.1",
Expand All @@ -93,15 +93,15 @@
"cross-fetch": "^4.0.0",
"crypto-browserify": "^3.12.0",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.11",
"dayjs": "^1.11.12",
"dotenv-webpack": "^8.1.0",
"downloadjs": "^1.4.7",
"dropbox": "^10.34.0",
"fflate": "^0.8.2",
"file-saver": "^2.0.5",
"fs": "^0.0.1-security",
"he": "^1.2.0",
"i18next": "^23.11.5",
"i18next": "^23.12.2",
"libmuse": "https://github.com/lovegaoshi/muse.git#commit=cbb249107f71a2f57336a5d08fac389138d8c924",
"material-ui-confirm": "^3.0.16",
"md5": "^2.3.0",
Expand All @@ -115,16 +115,16 @@
"react-contexify": "^6.0.0",
"react-dom": "^18.3.1",
"react-hotkeys-hook": "^4.5.0",
"react-i18next": "^14.1.2",
"react-i18next": "^15.0.0",
"react-jinke-music-player": "git+https://[email protected]/lovegaoshi/react-music-player.git",
"react-lrc": "^3.2.1",
"react-swipeable": "^7.0.1",
"react-window": "^1.8.10",
"stream-browserify": "^3.0.0",
"util": "^0.12.5",
"uuid": "^10.0.0",
"youtubei.js": "^10.0.0",
"zustand": "^4.5.2"
"youtubei.js": "^10.2.0",
"zustand": "^4.5.4"
},
"packageManager": "[email protected]"
}
2 changes: 2 additions & 0 deletions src/components/Playlists/PlaylistsHeader/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Tooltip from '@mui/material/Tooltip';

import { searchBiliURLs } from '@APM/utils/BiliSearch';
import { useNoxSetting } from '@APM/stores/useApp';
import { StorageKeys } from '@enums/Storage';

interface Props {
setSearchInputVal: (input: string) => void;
Expand All @@ -35,6 +36,7 @@ export default function Search({ setSearchInputVal }: Props) {
setProgressVal(100);
const searchedList = {
...searchPlaylist,
id: StorageKeys.SEARCH_PLAYLIST_KEY,
...(await searchBiliURLs({
input,
progressEmitter: setProgressVal,
Expand Down
4 changes: 0 additions & 4 deletions src/objects/Storage.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { SyncOptions } from '@APM/enums/Storage';
import { DefaultSetting as _DefaultSetting } from '@APM/objects/Storage';

export { SyncOptions } from '@APM/enums/Storage';

export const INITIAL_PLAYLIST = ['5053504', '2664851'];

export const DefaultSetting: NoxStorage.PlayerSettingDict = {
..._DefaultSetting,

Expand Down
4 changes: 1 addition & 3 deletions src/popup/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ export default function App() {
playerStyle.playerBackground().then(setBackgroundSrc);
}, [playerStyle.playerBackground]);

if (!currentSongList) {
return <h1>Loading...</h1>;
}
if (!currentSongList) return <h1>Loading...</h1>;
return (
// Outmost layer of the page
<React.Suspense fallback={<h1>Loading...</h1>}>
Expand Down
6 changes: 4 additions & 2 deletions src/utils/ChromeStorageAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ export const getPlaylistSongList = (
playlist?: NoxMedia.Playlist,
): Promise<NoxMedia.Song[]> => getItem(`${playlist?.id}${SongListSuffix}`, []);

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const getMapping = (key: string, _: any = undefined) => getItem(key, {});
export const getMapping = async (
key: string,
transform: (v: any) => any = (v) => v,
) => transform(await getItem(key, {}));

export const importPlayerContentRaw = (
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand Down
17 changes: 0 additions & 17 deletions src/utils/rgba2rgb.ts

This file was deleted.

Loading

0 comments on commit 80a61b7

Please sign in to comment.