feat: add first page with auth and containers list and agents

This commit is contained in:
2026-05-18 08:24:02 +02:00
parent 446087ae01
commit 3b4a841bf5
56 changed files with 16267 additions and 0 deletions

47
web/vite.config.ts Normal file
View File

@ -0,0 +1,47 @@
import { sveltekit } from "@sveltejs/kit/vite";
import { SvelteKitPWA } from "@vite-pwa/sveltekit";
import { svelteTesting } from "@testing-library/svelte/vite";
import { defineConfig } from "vite";
export default defineConfig({
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./src/tests/setup.ts"],
include: ["src/**/*.{test,spec}.{js,ts}"],
},
plugins: [
sveltekit(),
svelteTesting(),
SvelteKitPWA({
registerType: "autoUpdate",
manifest: {
name: "Containarr",
short_name: "Containarr",
description: "Multi-VM Docker container manager",
theme_color: "#0f172a",
background_color: "#0f172a",
display: "standalone",
start_url: "/",
icons: [
{ src: "/icon-192.png", sizes: "192x192", type: "image/png" },
{ src: "/icon-512.png", sizes: "512x512", type: "image/png" },
],
},
workbox: {
globPatterns: ["**/*.{js,css,html,svg,png,ico,woff2}"],
},
devOptions: {
enabled: false,
},
}),
],
server: {
proxy: {
"/api": {
target: "http://127.0.0.1:8080",
ws: true,
},
},
},
});