mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-15 12:50:42 -07:00
- Rename Server tab to Settings with horizontal sub-tab navigation (General, Generation, GPU, Logs, Changelog) - All sub-tabs are proper routes under /settings/* with /server redirect for backwards compat - General: connection settings, link cards (docs + discord), API reference card, app updates - Generation: auto-chunking, crossfade, normalize, autoplay as SettingRow components - GPU: info card with platform-aware icons (Apple logo for MPS), CUDA management, explainer text - Logs: real-time server log viewer piped from Tauri sidecar via event system (Tauri-only) - Changelog: parsed from CHANGELOG.md at build time via Vite virtual module plugin - New reusable SettingRow/SettingSection components for consistent settings layout - New Toggle (switch) UI component replacing checkboxes in settings - Toast viewport now offsets when audio player is open - Sidebar stays active on settings sub-routes (fuzzy matching)
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import path from 'node:path';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
import { changelogPlugin } from '../app/plugins/changelog';
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss(), changelogPlugin(path.resolve(__dirname, '..'))],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, '../app/src'),
|
|
react: path.resolve(__dirname, '../app/node_modules/react'),
|
|
'react-dom': path.resolve(__dirname, '../app/node_modules/react-dom'),
|
|
'@tanstack/react-query': path.resolve(__dirname, '../app/node_modules/@tanstack/react-query'),
|
|
'@tanstack/react-query-devtools': path.resolve(
|
|
__dirname,
|
|
'../app/node_modules/@tanstack/react-query-devtools',
|
|
),
|
|
zustand: path.resolve(__dirname, '../app/node_modules/zustand'),
|
|
},
|
|
dedupe: ['react', 'react-dom', '@tanstack/react-query', 'zustand'],
|
|
},
|
|
root: path.resolve(__dirname),
|
|
clearScreen: false,
|
|
server: {
|
|
port: 5173,
|
|
strictPort: true,
|
|
// Watch files in the app directory for changes
|
|
watch: {
|
|
ignored: ['!**/../app/**'],
|
|
},
|
|
},
|
|
envPrefix: ['VITE_', 'TAURI_'],
|
|
build: {
|
|
target: 'es2021',
|
|
minify: !process.env.TAURI_DEBUG,
|
|
sourcemap: !!process.env.TAURI_DEBUG,
|
|
outDir: 'dist',
|
|
},
|
|
});
|