From c1cd31840ec317ea19f36d3ba8650dad186220ed Mon Sep 17 00:00:00 2001 From: qier222 Date: Sun, 26 Mar 2023 02:16:01 +0800 Subject: [PATCH] feat: updates --- .gitignore | 2 +- README.md | 4 + package.json | 2 +- packages/desktop/.electron-builder.config.js | 29 +- packages/desktop/main/appServer/appServer.ts | 14 +- .../main/appServer/routes/netease/netease.ts | 4 +- .../appServer/routes/r3play/appleMusic.ts | 3 + .../main/appServer/routes/r3play/audio.ts | 2 + packages/desktop/main/cache.ts | 2 + packages/desktop/main/db.ts | 4 +- packages/desktop/main/index.ts | 4 +- packages/desktop/main/ipcMain.ts | 29 +- packages/desktop/main/log.ts | 2 +- packages/desktop/main/menu.ts | 24 +- packages/desktop/main/store.ts | 3 + packages/desktop/main/tray.ts | 12 +- packages/desktop/main/utils.ts | 3 + packages/desktop/main/windowsTaskbar.ts | 11 +- packages/desktop/package.json | 8 +- packages/desktop/scripts/copySQLite3.js | 7 +- packages/shared/api/User.ts | 14 + packages/web/IpcRendererReact.tsx | 4 +- packages/web/api/album.ts | 8 +- packages/web/api/artist.ts | 12 +- packages/web/api/auth.ts | 12 +- packages/web/api/hooks/useTracks.ts | 2 +- packages/web/api/hooks/useUser.ts | 43 +- packages/web/api/playlist.ts | 8 +- packages/web/api/user.ts | 17 +- .../web/components/ContextMenus/MenuItem.tsx | 4 + packages/web/components/CoverRow.tsx | 22 +- packages/web/components/CoverRowVirtual.tsx | 16 +- packages/web/components/CoverWall.tsx | 11 +- packages/web/components/Devtool.tsx | 19 +- packages/web/components/Dropdown.tsx | 45 ++ packages/web/components/ErrorBoundary.tsx | 4 +- packages/web/components/Image.tsx | 3 +- packages/web/components/Layout.tsx | 17 +- .../web/components/Login/LoginWithQRCode.tsx | 5 +- .../web/components/NowPlaying/Controls.tsx | 14 +- .../web/components/NowPlaying/NowPlaying.tsx | 2 + packages/web/components/Player.tsx | 1 + packages/web/components/PlayerMobile.tsx | 23 +- packages/web/components/PlayingNextMobile.tsx | 5 +- packages/web/components/Router.tsx | 44 +- packages/web/components/Slider.tsx | 38 +- packages/web/components/TitleBar.tsx | 7 +- packages/web/components/Topbar/Avatar.tsx | 9 +- packages/web/components/TrafficLight.tsx | 3 +- packages/web/components/Wave.tsx | 2 +- packages/web/global.d.ts | 10 +- packages/web/hooks/useIntersectionObserver.ts | 8 +- packages/web/hooks/useScroll.ts | 11 +- packages/web/i18n/locales/en-us.json | 13 +- packages/web/i18n/locales/zh-cn.json | 12 +- packages/web/index.html | 42 +- packages/web/ipcRenderer.ts | 6 +- packages/web/package.json | 14 +- packages/web/pages/Album/Header.tsx | 23 +- packages/web/pages/Album/MoreByArtist.tsx | 12 +- packages/web/pages/Artist/Header/Actions.tsx | 10 +- .../web/pages/Artist/Header/ArtistInfo.tsx | 15 +- .../web/pages/Artist/Header/LatestRelease.tsx | 6 +- packages/web/pages/Artist/Popular.tsx | 8 +- packages/web/pages/Discover.tsx | 12 +- packages/web/pages/My/Collections.tsx | 54 +- packages/web/pages/My/My.tsx | 13 +- packages/web/pages/My/PlayLikedSongsCard.tsx | 6 +- packages/web/pages/My/RecentlyListened.tsx | 27 +- packages/web/pages/Playlist/Header.tsx | 10 +- packages/web/pages/Playlist/Playlist.tsx | 10 +- packages/web/pages/Playlist/TrackList.tsx | 17 +- packages/web/pages/Settings/Player.tsx | 12 +- packages/web/pages/Settings/Settings.tsx | 24 +- packages/web/postcss.config.js | 5 +- packages/web/states/scrollPositions.ts | 12 +- packages/web/tailwind.config.js | 6 +- packages/web/test/utils/common.test.ts | 232 ++++---- packages/web/test/utils/cookie.test.ts | 10 +- packages/web/utils/common.ts | 4 +- packages/web/utils/lyric.ts | 3 +- packages/web/utils/theme.ts | 3 +- packages/web/vite.config.ts | 65 +-- packages/web/vitePluginFilenamesToType.ts | 14 +- pnpm-lock.yaml | 510 +++++++++++++----- vercel.json | 4 +- 86 files changed, 1048 insertions(+), 778 deletions(-) mode change 100644 => 100755 packages/desktop/main/ipcMain.ts create mode 100644 packages/web/components/Dropdown.tsx diff --git a/.gitignore b/.gitignore index 0e85dfb..5e2ad1f 100644 --- a/.gitignore +++ b/.gitignore @@ -57,4 +57,4 @@ vercel.json packages/web/bundle-stats-renderer.html packages/web/bundle-stats.html packages/web/storybook-static -packages/desktop/prisma/client +packages/desktop/esbuild-kit diff --git a/README.md b/README.md index 4b1c9ab..c27587c 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,10 @@ API 源代码来自 [Binaryify/NeteaseCloudMusicApi](https://github.com/Binaryif 任何基于此项目开发的项目都必须遵守开源协议,在项目 README/应用内的关于页面和介绍网站中明确说明基于此项目开发,并附上此项目 GitHub 页面的链接。 +## Credit + +Designed by [JACKCRING](https://jackcring.com) +