feat: добавить рабочий dashboard admin

- добавлен Mantine theme provider и AppShell layout\n- сгенерирован Backend API клиент и добавлены infra/business хуки\n- добавлены таблица assets, detail/presets panels и create asset modal
This commit is contained in:
2026-05-05 15:02:55 +03:00
parent 72f9386f57
commit 6a018826f5
50 changed files with 2870 additions and 120 deletions

View File

@@ -4,6 +4,7 @@ import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
const srcPath = (path: string) => fileURLToPath(new URL(`./src/${path}`, import.meta.url))
const backendProxyTarget = process.env.ADMIN_BACKEND_PROXY_TARGET ?? "http://localhost:3001"
export default defineConfig({
plugins: [react()],
@@ -19,4 +20,12 @@ export default defineConfig({
shared: srcPath("shared"),
},
},
server: {
proxy: {
"/api": {
changeOrigin: true,
target: backendProxyTarget,
},
},
},
})