🔧 build: 更新依赖

This commit is contained in:
底层用户
2025-10-13 09:43:34 +08:00
parent 8187b09fcb
commit ecadf6ade7
8 changed files with 659 additions and 1214 deletions

View File

@@ -13,6 +13,9 @@ export default {
"MaybeRefOrGetter": true, "MaybeRefOrGetter": true,
"PropType": true, "PropType": true,
"Ref": true, "Ref": true,
"ShallowRef": true,
"Slot": true,
"Slots": true,
"VNode": true, "VNode": true,
"WritableComputedRef": true, "WritableComputedRef": true,
"asyncComputed": true, "asyncComputed": true,
@@ -44,6 +47,7 @@ export default {
"extendRef": true, "extendRef": true,
"getCurrentInstance": true, "getCurrentInstance": true,
"getCurrentScope": true, "getCurrentScope": true,
"getCurrentWatcher": true,
"h": true, "h": true,
"ignorableWatch": true, "ignorableWatch": true,
"inject": true, "inject": true,
@@ -53,6 +57,7 @@ export default {
"isReactive": true, "isReactive": true,
"isReadonly": true, "isReadonly": true,
"isRef": true, "isRef": true,
"isShallow": true,
"makeDestructurable": true, "makeDestructurable": true,
"markRaw": true, "markRaw": true,
"nextTick": true, "nextTick": true,
@@ -266,6 +271,7 @@ export default {
"useThrottleFn": true, "useThrottleFn": true,
"useThrottledRefHistory": true, "useThrottledRefHistory": true,
"useTimeAgo": true, "useTimeAgo": true,
"useTimeAgoIntl": true,
"useTimeout": true, "useTimeout": true,
"useTimeoutFn": true, "useTimeoutFn": true,
"useTimeoutPoll": true, "useTimeoutPoll": true,

5
auto-imports.d.ts vendored
View File

@@ -36,6 +36,7 @@ declare global {
const extendRef: typeof import('@vueuse/core')['extendRef'] const extendRef: typeof import('@vueuse/core')['extendRef']
const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: typeof import('vue')['getCurrentScope'] const getCurrentScope: typeof import('vue')['getCurrentScope']
const getCurrentWatcher: typeof import('vue')['getCurrentWatcher']
const h: typeof import('vue')['h'] const h: typeof import('vue')['h']
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch'] const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
const inject: typeof import('vue')['inject'] const inject: typeof import('vue')['inject']
@@ -45,6 +46,7 @@ declare global {
const isReactive: typeof import('vue')['isReactive'] const isReactive: typeof import('vue')['isReactive']
const isReadonly: typeof import('vue')['isReadonly'] const isReadonly: typeof import('vue')['isReadonly']
const isRef: typeof import('vue')['isRef'] const isRef: typeof import('vue')['isRef']
const isShallow: typeof import('vue')['isShallow']
const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable'] const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable']
const markRaw: typeof import('vue')['markRaw'] const markRaw: typeof import('vue')['markRaw']
const nextTick: typeof import('vue')['nextTick'] const nextTick: typeof import('vue')['nextTick']
@@ -258,6 +260,7 @@ declare global {
const useThrottleFn: typeof import('@vueuse/core')['useThrottleFn'] const useThrottleFn: typeof import('@vueuse/core')['useThrottleFn']
const useThrottledRefHistory: typeof import('@vueuse/core')['useThrottledRefHistory'] const useThrottledRefHistory: typeof import('@vueuse/core')['useThrottledRefHistory']
const useTimeAgo: typeof import('@vueuse/core')['useTimeAgo'] const useTimeAgo: typeof import('@vueuse/core')['useTimeAgo']
const useTimeAgoIntl: typeof import('@vueuse/core')['useTimeAgoIntl']
const useTimeout: typeof import('@vueuse/core')['useTimeout'] const useTimeout: typeof import('@vueuse/core')['useTimeout']
const useTimeoutFn: typeof import('@vueuse/core')['useTimeoutFn'] const useTimeoutFn: typeof import('@vueuse/core')['useTimeoutFn']
const useTimeoutPoll: typeof import('@vueuse/core')['useTimeoutPoll'] const useTimeoutPoll: typeof import('@vueuse/core')['useTimeoutPoll']
@@ -301,6 +304,6 @@ declare global {
// for type re-export // for type re-export
declare global { declare global {
// @ts-ignore // @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
import('vue') import('vue')
} }

View File

@@ -88,7 +88,7 @@ export default defineConfig(({ command, mode }) => {
"/api": { "/api": {
target: `http://127.0.0.1:${servePort}`, target: `http://127.0.0.1:${servePort}`,
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, "/api/"), rewrite: (path) => path.replace(/^\/api/, "/api"),
}, },
}, },
}, },

View File

@@ -11,8 +11,10 @@ import log from "../main/logger";
const initAppServer = async () => { const initAppServer = async () => {
try { try {
const server = fastify({ const server = fastify({
// 忽略尾随斜杠 routerOptions: {
ignoreTrailingSlash: true, // 忽略尾随斜杠
ignoreTrailingSlash: true,
},
}); });
// 注册插件 // 注册插件
server.register(fastifyCookie); server.register(fastifyCookie);

View File

@@ -26,11 +26,7 @@ export default [
"**/components.d.ts", "**/components.d.ts",
], ],
}, },
...compat.extends( ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-essential",
),
{ {
plugins: { plugins: {
"@typescript-eslint": typescriptEslint, "@typescript-eslint": typescriptEslint,

View File

@@ -1,7 +1,7 @@
{ {
"name": "splayer", "name": "splayer",
"productName": "SPlayer", "productName": "SPlayer",
"version": "3.0.0-beta.2", "version": "3.0.0",
"description": "A minimalist music player", "description": "A minimalist music player",
"main": "./out/main/index.js", "main": "./out/main/index.js",
"author": "imsyy", "author": "imsyy",
@@ -37,10 +37,10 @@
"@applemusic-like-lyrics/lyric": "^0.2.4", "@applemusic-like-lyrics/lyric": "^0.2.4",
"@applemusic-like-lyrics/vue": "^0.1.5", "@applemusic-like-lyrics/vue": "^0.1.5",
"@electron-toolkit/preload": "^3.0.2", "@electron-toolkit/preload": "^3.0.2",
"@electron-toolkit/utils": "^3.0.0", "@electron-toolkit/utils": "^4.0.0",
"@imsyy/color-utils": "^1.0.2", "@imsyy/color-utils": "^1.0.2",
"@material/material-color-utilities": "^0.3.0", "@material/material-color-utilities": "^0.3.0",
"@neteaseapireborn/api": "^4.29.7", "@neteaseapireborn/api": "^4.29.9",
"@pixi/app": "^7.4.3", "@pixi/app": "^7.4.3",
"@pixi/core": "^7.4.3", "@pixi/core": "^7.4.3",
"@pixi/display": "^7.4.3", "@pixi/display": "^7.4.3",
@@ -48,7 +48,7 @@
"@pixi/filter-bulge-pinch": "^5.1.1", "@pixi/filter-bulge-pinch": "^5.1.1",
"@pixi/filter-color-matrix": "^7.4.3", "@pixi/filter-color-matrix": "^7.4.3",
"@pixi/sprite": "^7.4.3", "@pixi/sprite": "^7.4.3",
"@vueuse/core": "^12.8.2", "@vueuse/core": "^13.9.0",
"axios": "^1.12.2", "axios": "^1.12.2",
"change-case": "^5.4.4", "change-case": "^5.4.4",
"dayjs": "^1.11.18", "dayjs": "^1.11.18",
@@ -56,7 +56,7 @@
"electron-store": "^8.2.0", "electron-store": "^8.2.0",
"electron-updater": "^6.6.2", "electron-updater": "^6.6.2",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"font-list": "^1.6.0", "font-list": "^2.0.1",
"get-port": "^7.1.0", "get-port": "^7.1.0",
"github-markdown-css": "^5.8.1", "github-markdown-css": "^5.8.1",
"howler": "^2.2.4", "howler": "^2.2.4",
@@ -65,9 +65,9 @@
"jss-preset-default": "^10.10.0", "jss-preset-default": "^10.10.0",
"localforage": "^1.10.0", "localforage": "^1.10.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"marked": "^15.0.12", "marked": "^16.4.0",
"md5": "^2.3.0", "md5": "^2.3.0",
"music-metadata": "10.5.1", "music-metadata": "^11.9.0",
"pinia": "^3.0.3", "pinia": "^3.0.3",
"pinia-plugin-persistedstate": "^4.5.0", "pinia-plugin-persistedstate": "^4.5.0",
"plyr": "^3.8.3", "plyr": "^3.8.3",
@@ -75,8 +75,8 @@
}, },
"devDependencies": { "devDependencies": {
"@electron-toolkit/preload": "^3.0.1", "@electron-toolkit/preload": "^3.0.1",
"@electron-toolkit/tsconfig": "^1.0.1", "@electron-toolkit/tsconfig": "^2.0.0",
"@electron-toolkit/utils": "^3.0.0", "@electron-toolkit/utils": "^4",
"@fastify/cookie": "^11.0.2", "@fastify/cookie": "^11.0.2",
"@fastify/http-proxy": "^11.3.0", "@fastify/http-proxy": "^11.3.0",
"@fastify/multipart": "^9.2.1", "@fastify/multipart": "^9.2.1",
@@ -85,18 +85,18 @@
"@types/howler": "^2.2.12", "@types/howler": "^2.2.12",
"@types/js-cookie": "^3.0.6", "@types/js-cookie": "^3.0.6",
"@types/md5": "^2.3.5", "@types/md5": "^2.3.5",
"@types/node": "^22.18.8", "@types/node": "^24.7.2",
"@typescript-eslint/eslint-plugin": "^8.45.0", "@typescript-eslint/eslint-plugin": "^8.46.0",
"@typescript-eslint/parser": "^8.45.0", "@typescript-eslint/parser": "^8.46.0",
"@vitejs/plugin-vue": "^5.2.4", "@vitejs/plugin-vue": "^6.0.1",
"ajv": "^8.17.1", "ajv": "^8.17.1",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"electron": "^35.7.5", "electron": "^38.2.2",
"electron-builder": "^26.0.12", "electron-builder": "^26.0.12",
"electron-log": "^5.4.3", "electron-log": "^5.4.3",
"electron-vite": "^3.1.0", "electron-vite": "^4.0.1",
"eslint": "^9.36.0", "eslint": "^9.37.0",
"eslint-plugin-vue": "^9.33.0", "eslint-plugin-vue": "^10.5.0",
"fast-glob": "^3.3.3", "fast-glob": "^3.3.3",
"fastify": "^5.6.1", "fastify": "^5.6.1",
"naive-ui": "^2.43.1", "naive-ui": "^2.43.1",
@@ -105,14 +105,14 @@
"sass": "^1.93.2", "sass": "^1.93.2",
"terser": "^5.44.0", "terser": "^5.44.0",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"unplugin-auto-import": "^0.19.0", "unplugin-auto-import": "^20.2.0",
"unplugin-vue-components": "^28.8.0", "unplugin-vue-components": "^29.1.0",
"vite": "^5.4.20", "vite": "^7.1.9",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-wasm": "^3.5.0", "vite-plugin-wasm": "^3.5.0",
"vue": "^3.5.22", "vue": "^3.5.22",
"vue-router": "^4.5.1", "vue-router": "^4.5.1",
"vue-tsc": "^3.1.0" "vue-tsc": "^3.1.1"
}, },
"pnpm": { "pnpm": {
"overrides": { "overrides": {
@@ -120,10 +120,12 @@
"electron-builder-squirrel-windows": "25.1.8" "electron-builder-squirrel-windows": "25.1.8"
}, },
"onlyBuiltDependencies": [ "onlyBuiltDependencies": [
"@applemusic-like-lyrics/lyric",
"@parcel/watcher", "@parcel/watcher",
"core-js", "core-js",
"electron", "electron",
"esbuild", "esbuild",
"sharp",
"vue-demi" "vue-demi"
] ]
} }

1800
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -18,7 +18,7 @@
"@/*": ["src/*"] "@/*": ["src/*"]
}, },
"types": ["node", "electron", "electron-vite/node", "./auto-imports.d.ts", "./components.d.ts"], "types": ["node", "electron", "electron-vite/node", "./auto-imports.d.ts", "./components.d.ts"],
"lib": ["ES2020", "DOM", "DOM.Iterable"], "lib": ["ES2022", "DOM", "DOM.Iterable"],
"target": "ES2020" "target": "es2022"
} }
} }