fix(frontend): standardize favicon/title, 401 redirect, SPA root route, and theme switching

- Replace default Vite favicon and title with project-specific branding
- Add axios response interceptor to handle 401 by clearing token and redirecting to login
- Move health check endpoint from '/' to '/api/health' so SPA index.html is served on root
- Integrate next-themes ThemeProvider with system preference detection and manual toggle
- Update docker-compose and k8s health check paths accordingly
- Replace hardcoded dark-only colors with semantic CSS variable tokens for theme compatibility
This commit is contained in:
jeffusion
2026-03-09 22:45:47 +08:00
committed by 路遥知码力
parent 2d4f670365
commit 5bb1c3a2d1
12 changed files with 82 additions and 45 deletions

View File

@@ -56,7 +56,7 @@ spec:
mountPath: /app/data
livenessProbe:
httpGet:
path: /
path: /api/health
port: http
initialDelaySeconds: 10
periodSeconds: 30
@@ -64,7 +64,7 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /
path: /api/health
port: http
initialDelaySeconds: 5
periodSeconds: 10