feat: Introduce mobile simulator UI with new routes, screens, shared application chrome, and updated dependencies.

This commit is contained in:
2026-02-26 13:45:00 +00:00
parent 50760ae664
commit 1ee6b21808
22 changed files with 3727 additions and 5 deletions

View File

@@ -3,8 +3,36 @@ import { playwright } from '@vitest/browser-playwright';
import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
const backendTarget = process.env.BACKEND_URL ?? 'http://localhost:3000';
const proxiedPaths = [
'/api',
'/devices',
'/device-links',
'/streams',
'/events',
'/recordings',
'/videos',
'/push-notifications',
'/socket.io'
] as const;
const proxy = Object.fromEntries(
proxiedPaths.map((path) => [
path,
{
target: backendTarget,
changeOrigin: true,
ws: path === '/socket.io'
}
])
);
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
server: {
proxy
},
test: {
expect: { requireAssertions: true },
projects: [