feat: 迁移架构&实现功能

- 持久化音量设置
- 搜索页支持自定义每页显示数量(持久化)
- vite-electron-plugin迁移electron-vite
This commit is contained in:
lqtmcstudio
2026-02-06 14:50:33 +08:00
parent 6cda900c8d
commit d6e1d11a52
37 changed files with 867 additions and 1732 deletions

29
electron.vite.config.ts Normal file
View File

@@ -0,0 +1,29 @@
import { resolve } from 'path'
import { defineConfig } from 'electron-vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import wasm from 'vite-plugin-wasm'
export default defineConfig({
main: {
},
preload: {
},
renderer: {
resolve: {
alias: {
'@renderer': resolve('src/renderer/src'),
'@assets': resolve('src/renderer/assets')
}
},
plugins: [vue(), vueJsx(), wasm()],
build: {
rollupOptions: {
input: resolve(__dirname, 'src/renderer/index.html')
}
},
server: {
host: "0.0.0.0"
}
}
})