Add Svelte 5 frontend (App, TitleBar, BlockRing, ModelStack, WeeklyBar, Settings)

This commit is contained in:
megaproxy 2026-05-09 00:07:02 +01:00
parent 14ffcf4bd3
commit 0e8a87fbc5
17 changed files with 779 additions and 0 deletions

21
vite.config.ts Normal file
View file

@ -0,0 +1,21 @@
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
// Tauri 2 expects the dev server on a fixed port and forwards the URL into
// the webview. https://v2.tauri.app/start/frontend/vite/
export default defineConfig(async () => ({
plugins: [svelte()],
clearScreen: false,
server: {
port: 1420,
strictPort: true,
host: "127.0.0.1",
hmr: { protocol: "ws", host: "127.0.0.1", port: 1421 },
watch: { ignored: ["**/src-tauri/**"] },
},
build: {
target: "esnext",
minify: "esbuild",
sourcemap: false,
},
}));