feat: redesign the web console with Vue and isolated account workspaces

This commit is contained in:
AttilaNet
2026-11-11 09:35:54 +08:00
parent 99aff423d8
commit ff6a828f58
46 changed files with 4549 additions and 748 deletions
+26
View File
@@ -0,0 +1,26 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { fileURLToPath } from 'node:url';
const backend = 'http://127.0.0.1:8765';
const proxy = () => ({
target: backend,
// Keep Host and Origin paired; never rewrite an untrusted browser Origin.
changeOrigin: false,
});
export default defineConfig({
base: './',
plugins: [vue()],
build: {
outDir: '../ranch_web/static/console',
emptyOutDir: true,
sourcemap: false,
},
server: {
fs: {
allow: [fileURLToPath(new URL('.', import.meta.url)), fileURLToPath(new URL('../ranch_web/static', import.meta.url))],
},
proxy: { '/api': proxy(), '/login': proxy(), '/static': proxy() },
},
});