diff --git a/public/manifest.json b/public/manifest.json index f38ee04..80914d9 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -21,7 +21,7 @@ }, "permissions": ["tabs", "webRequest"], "content_security_policy": { - "extension_pages": "default-src 'self'; script-src 'self' http://localhost:5173; style-src 'self' 'unsafe-inline'; connect-src 'self' ws://localhost:5173 https://monster-siren.hypergryph.com;", + "extension_pages": "default-src 'self'; script-src 'self' http://localhost:5173; style-src 'self' 'unsafe-inline'; connect-src 'self' ws://localhost:5173 https://monster-siren.hypergryph.com; img-src 'self' https://web.hycdn.cn;", "sandbox": "sandbox" } } diff --git a/src/apis/index.ts b/src/apis/index.ts index c6c34d9..9d5f66b 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -4,39 +4,6 @@ const msrInstance = axios.create({ baseURL: 'https://monster-siren.hypergryph.com/api/', }) -type SongList = { - list: Song[] -} - -type Song = { - cid: string - name: string - albumCid: string - sourceUrl?: string - lyricUrl?: string | null - mvUrl?: string | null - mvCoverUrl?: string | null - artists: string[] -} - -type Album = { - cid: string - name: string - intro?: string - belong?: string - coverUrl: string - coverDeUrl?: string - artistes: string[] -} - -type AlbumList = Album[] - -interface ApiResponse { - code: number - msg: string - data: unknown -} - export default { async getSongs() { const songs: { diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 3502cdd..aaa68f2 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -8,10 +8,20 @@
音乐库
diff --git a/src/pages/Home.vue b/src/pages/Home.vue index fc23982..a72cb58 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -1,13 +1,22 @@ \ No newline at end of file diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 11f02fe..b3b9c63 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -1 +1,34 @@ /// + +type SongList = { + list: Song[] +} + +type Song = { + cid: string + name: string + albumCid: string + sourceUrl?: string + lyricUrl?: string | null + mvUrl?: string | null + mvCoverUrl?: string | null + artists: string[] +} + +type Album = { + cid: string + name: string + intro?: string + belong?: string + coverUrl: string + coverDeUrl?: string + artistes: string[] +} + +type AlbumList = Album[] + +interface ApiResponse { + code: number + msg: string + data: unknown +} \ No newline at end of file