1a2270c95e
Electron + React (Fluent UI) desktop frontend for yt-dlp: - Download queue with live progress, concurrency cap, cancel/retry - Format/quality picker via yt-dlp probe; audio extraction to MP3 - Settings + history persistence (electron-store / JSON) - Clipboard link auto-detect; persisted light/dark theme - NSIS + portable packaging (binaries bundled at build time, not in git) UI: "Studio" sidebar layout with a toffee-brown theme (light + neutral dark). Dropdowns use a native <select> and tooltips a CSS-only Hint, to avoid a dev-machine GPU overlay flicker/blank issue. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
27 lines
732 B
TypeScript
27 lines
732 B
TypeScript
import { resolve } from 'path'
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
/**
|
|
* Standalone Vite server for fast UI iteration in a browser — no Electron window.
|
|
* Run with `npm run ui`. Since there's no preload here, `window.api` is stubbed in
|
|
* dev (see src/renderer/src/main.tsx) so the UI stays interactive for design work.
|
|
*
|
|
* The full app still runs via `npm run dev` (electron-vite); this is purely for UI.
|
|
*/
|
|
export default defineConfig({
|
|
root: resolve('src/renderer'),
|
|
base: './',
|
|
resolve: {
|
|
alias: {
|
|
'@renderer': resolve('src/renderer/src'),
|
|
'@shared': resolve('src/shared')
|
|
}
|
|
},
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5174,
|
|
open: false
|
|
}
|
|
})
|