Add kiosk desktop app

Tauri app for the Pi. Media runs through the native LiveKit SDK because
WebKitGTK has no WebRTC, with frames encoded in Rust and drawn to a canvas
under the annotation overlay.
This commit is contained in:
2026-08-09 17:09:16 -04:00
parent 18384c0cbc
commit 7d0a973638
85 changed files with 8330 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
import { sveltekit } from "@sveltejs/kit/vite";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig, searchForWorkspaceRoot } from "vite";
const host = process.env.TAURI_DEV_HOST;
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
ssr: {
noExternal: ["@pistation/shared-types", "@pistation/client-core", "@pistation/ui"]
},
optimizeDeps: {
include: ["react", "react-dom", "react-dom/client"]
},
define: {
"process.env.IS_PREACT": JSON.stringify("false")
},
clearScreen: false,
server: {
port: 1420,
strictPort: true,
host: host || false,
hmr: host ? { protocol: "ws", host, port: 1421 } : undefined,
fs: {
allow: [searchForWorkspaceRoot(process.cwd())]
},
watch: {
ignored: ["**/src-tauri/**"]
}
}
});