refactor: full-stack restructure with multi-tenancy, workspace management, and K8s diagnostics

- Add Workspace domain (entity, repository, service, handler, DTO)
- Add multi-tenant K8s client with tenant binding and quota management
- Add K8s diagnostics client (instance diagnostics)
- Add authorization middleware (authz package)
- Restructure frontend to feature-based architecture (features/)
- Add User Management page in configuration
- Add AccessDenied page and route guards
- Refactor shared components (form inputs, layout, UI)
- Update Tailwind config for new design system
- Add comprehensive documentation (docs/, tasks/, plans)
- Improve cluster service with better kubeconfig handling
- Add tests for crypto, config, helm client, tenant binding
This commit is contained in:
Ivan087
2026-05-12 16:15:14 +08:00
parent c5e51ed069
commit 7f238a3168
172 changed files with 15703 additions and 3162 deletions

View File

@ -5,21 +5,21 @@ module.exports = {
extend: {
colors: {
dark: {
DEFAULT: "#0b1119", // 主背景
lighter: "#141c26", // 模块背景
elevated: "#1a2533", // 提升层
border: "#1f2935", // 分割线
DEFAULT: "#f6f8fb", // 主背景
lighter: "#ffffff", // 模块背景
elevated: "#eef4f8", // 提升层
border: "#d8e2ee", // 分割线
},
brand: {
blue: "#56718f", // 主色(柔和蓝)
light: "#6f8aa8", // hover
accent: "#c6a15b", // 点缀金色
accentLight: "#ddc48b",
blue: "#2563eb",
light: "#3b82f6",
accent: "#0f766e",
accentLight: "#14b8a6",
},
accent: {
teal: "#4d8275",
tealLight: "#6ea094",
slate: "#2f3947",
teal: "#0f766e",
tealLight: "#14b8a6",
slate: "#475569",
},
blue: {
300: "#6f8aa8",
@ -42,23 +42,23 @@ module.exports = {
},
},
textColor: {
primary: "#e5e9f2", // 主字体
secondary: "#aab4c3", // 次级文字
muted: "#808ba0",
primary: "#142033",
secondary: "#4b5b70",
muted: "#718096",
},
backgroundImage: {
"app-gradient":
"radial-gradient(circle at top, rgba(198, 161, 91, 0.12), transparent 58%), radial-gradient(circle at bottom, rgba(77, 130, 117, 0.18), transparent 62%)",
"linear-gradient(180deg, #f9fbfd 0%, #eef4f8 100%)",
},
borderRadius: {
xl: "0.75rem",
"2xl": "1rem",
},
boxShadow: {
soft: "0 10px 30px rgba(0, 0, 0, 0.35)",
glow: "0 0 25px rgba(198, 161, 91, 0.18)",
soft: "0 12px 32px rgba(15, 23, 42, 0.08)",
glow: "0 0 0 1px rgba(37, 99, 235, 0.12), 0 16px 42px rgba(37, 99, 235, 0.12)",
},
},
},
plugins: [],
};
};