Skip to content

Commit

Permalink
merge(#7): 新增音乐播放器
Browse files Browse the repository at this point in the history
feat(player): 新增音乐播放器
  • Loading branch information
bietiaop authored Dec 9, 2024
2 parents 3dafb0d + 5082d79 commit 4432282
Show file tree
Hide file tree
Showing 27 changed files with 1,193 additions and 201 deletions.
94 changes: 48 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,40 @@
"dependencies": {
"@monaco-editor/loader": "^1.4.0",
"@monaco-editor/react": "^4.6.0",
"@nextui-org/avatar": "^2.2.1",
"@nextui-org/breadcrumbs": "^2.2.1",
"@nextui-org/button": "2.2.1",
"@nextui-org/card": "^2.2.1",
"@nextui-org/checkbox": "^2.3.1",
"@nextui-org/chip": "^2.2.1",
"@nextui-org/code": "2.2.1",
"@nextui-org/dropdown": "^2.3.1",
"@nextui-org/image": "^2.2.1",
"@nextui-org/input": "2.4.1",
"@nextui-org/kbd": "2.2.1",
"@nextui-org/link": "2.2.1",
"@nextui-org/listbox": "^2.3.1",
"@nextui-org/modal": "^2.2.1",
"@nextui-org/navbar": "2.2.1",
"@nextui-org/popover": "^2.3.1",
"@nextui-org/select": "^2.4.1",
"@nextui-org/snippet": "2.2.2",
"@nextui-org/spinner": "^2.2.1",
"@nextui-org/switch": "2.2.1",
"@nextui-org/avatar": "^2.2.4",
"@nextui-org/breadcrumbs": "^2.2.4",
"@nextui-org/button": "2.2.4",
"@nextui-org/card": "^2.2.4",
"@nextui-org/checkbox": "^2.3.4",
"@nextui-org/chip": "^2.2.4",
"@nextui-org/code": "2.2.4",
"@nextui-org/dropdown": "^2.3.4",
"@nextui-org/image": "^2.2.3",
"@nextui-org/input": "2.4.4",
"@nextui-org/kbd": "2.2.4",
"@nextui-org/link": "2.2.4",
"@nextui-org/listbox": "^2.3.4",
"@nextui-org/modal": "^2.2.4",
"@nextui-org/navbar": "2.2.4",
"@nextui-org/popover": "^2.3.4",
"@nextui-org/select": "^2.4.4",
"@nextui-org/slider": "^2.4.4",
"@nextui-org/snippet": "2.2.5",
"@nextui-org/spinner": "^2.2.4",
"@nextui-org/switch": "2.2.4",
"@nextui-org/system": "2.4.1",
"@nextui-org/tabs": "^2.2.1",
"@nextui-org/tabs": "^2.2.4",
"@nextui-org/theme": "2.4.1",
"@nextui-org/tooltip": "^2.2.1",
"@react-aria/visually-hidden": "3.8.12",
"@reduxjs/toolkit": "^2.3.0",
"@nextui-org/tooltip": "^2.2.4",
"@react-aria/visually-hidden": "3.8.18",
"@reduxjs/toolkit": "^2.4.0",
"@uidotdev/usehooks": "^2.4.1",
"@xterm/addon-fit": "^0.10.0",
"@xterm/addon-web-links": "^0.11.0",
"@xterm/addon-webgl": "^0.18.0",
"@xterm/xterm": "^5.5.0",
"ahooks": "^3.8.1",
"axios": "^1.7.7",
"ahooks": "^3.8.4",
"axios": "^1.7.9",
"clsx": "2.1.1",
"event-source-polyfill": "^1.0.31",
"framer-motion": "^11.13.1",
Expand All @@ -57,48 +58,49 @@
"react": "18.3.1",
"react-dom": "18.3.1",
"react-error-boundary": "^4.1.2",
"react-hook-form": "^7.53.2",
"react-hook-form": "^7.54.0",
"react-hot-toast": "^2.4.1",
"react-icons": "^5.3.0",
"react-icons": "^5.4.0",
"react-redux": "^9.1.2",
"react-router-dom": "7.0.1",
"react-responsive": "^10.0.0",
"react-router-dom": "7.0.2",
"react-use-websocket": "^4.11.1",
"react-window": "^1.8.10",
"tailwind-variants": "0.3.0",
"tailwindcss": "3.4.3"
"tailwindcss": "3.4.16"
},
"devDependencies": {
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@eslint/js": "^9.15.0",
"@eslint/js": "^9.16.0",
"@react-types/shared": "^3.26.0",
"@types/event-source-polyfill": "^1.0.5",
"@types/node": "22.10.1",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-window": "^1.8.8",
"@typescript-eslint/eslint-plugin": "8.16.0",
"@typescript-eslint/parser": "8.16.0",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "10.4.19",
"eslint": "^9.15.0",
"@typescript-eslint/eslint-plugin": "8.17.0",
"@typescript-eslint/parser": "8.17.0",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "10.4.20",
"eslint": "^9.16.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-unused-imports": "4.1.4",
"globals": "^15.12.0",
"globals": "^15.13.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"postcss": "8.4.38",
"prettier": "3.3.3",
"typescript": "5.6.3",
"vite": "^6.0.1",
"postcss": "8.4.49",
"prettier": "3.4.2",
"typescript": "5.7.2",
"vite": "^6.0.3",
"vite-plugin-static-copy": "^2.2.0",
"vite-tsconfig-paths": "^5.1.3"
"vite-tsconfig-paths": "^5.1.4"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json}": [
Expand Down
19 changes: 11 additions & 8 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { Route, Routes, useNavigate } from 'react-router-dom'
import { lazy, Suspense, useEffect } from 'react'
import { Provider } from 'react-redux'
import DialogProvider from '@/contexts/dialog'
import AudioProvider from '@/contexts/songs'
import Toaster from '@/components/toaster'
import PageBackground from '@/components/page_background'
import store from '@/store'
import PageLoading from './components/page_loading'
import PageLoading from '@/components/page_loading'

import { useLocalStorage } from '@uidotdev/usehooks'
import key from '@/const/key'
Expand Down Expand Up @@ -44,13 +45,15 @@ function App() {
<Provider store={store}>
<PageBackground />
<Toaster />
<Suspense fallback={<PageLoading />}>
<Routes>
<Route element={<IndexPage />} path="/*" />
<Route element={<QQLoginPage />} path="/qq_login" />
<Route element={<WebLoginPage />} path="/web_login" />
</Routes>
</Suspense>
<AudioProvider>
<Suspense fallback={<PageLoading />}>
<Routes>
<Route element={<IndexPage />} path="/*" />
<Route element={<QQLoginPage />} path="/qq_login" />
<Route element={<WebLoginPage />} path="/web_login" />
</Routes>
</Suspense>
</AudioProvider>
</Provider>
</DialogProvider>
)
Expand Down
Loading

0 comments on commit 4432282

Please sign in to comment.