feat: scaffold UI web (React/Vite/Tailwind) + Login (v0.22.0)

Package web/ : React 19 + Vite 8 + Tailwind 4 + react-router 7 + PWA.
Tokens dark HUD Jarvis-red, client API, contexte auth JWT, shell + garde
de route, écran Login (mot de passe + TOTP). Chat/Review en stubs. Build
OK, 0 vuln. docs/ui-design.md.

Palier de risque : reversible (front statique, aucun accès infra direct).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Kantin-Petit
2026-06-23 02:20:16 +02:00
parent e97c885ebf
commit 9de0132676
16 changed files with 7132 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import { VitePWA } from "vite-plugin-pwa";
// Le SPA est servi same-origin par le backend en prod (build → web/dist).
// En dev, proxy /api et /health vers le backend (port 8080).
export default defineConfig({
plugins: [
react(),
tailwindcss(),
VitePWA({
registerType: "autoUpdate",
manifest: {
name: "CHLOVA",
short_name: "CHLOVA",
theme_color: "#020617",
background_color: "#020617",
display: "standalone",
icons: [],
},
}),
],
server: {
proxy: {
"/api": { target: "http://localhost:8080", changeOrigin: true },
"/health": { target: "http://localhost:8080", changeOrigin: true },
},
},
build: { outDir: "dist" },
});