Commit Graph

14 Commits

Author SHA1 Message Date
yangdx
b72aa3e8ca Prevent login page show up when on auth is needed 2025-03-23 01:16:53 +08:00
yangdx
ba07ec86a5 Fix linting 2025-03-23 00:30:18 +08:00
yangdx
ea51ff05c1 Refactor auth and version checks for improved reliability.
- Prevent duplicate version checks in Vite dev mode
- Simplify protected route handling
- Add session flags for version tracking
2025-03-23 00:05:04 +08:00
yangdx
0df0ba269d Implemented version display in SiteHeader of webui
- Updated API version to 1.2.0
- Stored versions in localStorage
2025-03-22 01:51:39 +08:00
yangdx
32dcbec7b5 Update webui assets 2025-03-19 19:09:03 +08:00
yangdx
99814b57d9 Refactor navigation and authentication flow
- Move navigation setup to AppRouter
- Prevent protected route logic to handle login 401
2025-03-19 19:08:09 +08:00
yangdx
50a8b5fb6d Refactor navigation and authentication flow, prevent mounting login page multiple times
- Improved protected route handling
- Enhanced direct login access detection
- Centralized navigation logic
- Optimized state reset process
- Fixed logout navigation behavior
2025-03-19 12:45:08 +08:00
yangdx
77cb9da384 Add application state reset on login page mount
- Reset all application state on login page
- Clear authentication and session storage
- Reset graph, backend, and settings state
- Ensure clean environment for new session
- Centralized state reset in navigation service
2025-03-19 00:00:20 +08:00
yangdx
43996656d3 Fix linting 2025-03-18 03:30:43 +08:00
yangdx
f8440c8f80 feat(auth): implement auto guest mode and enhance token system
- Add role-based token system with metadata support
- Implement automatic guest mode for unconfigured authentication
- Create new /auth-status endpoint for authentication status checking
- Modify frontend to auto-detect auth status and bypass login when appropriate
- Add guest mode indicator in site header for better UX

This change allows users to automatically access the system without manual
login when authentication is not configured, while maintaining secure
authentication when credentials are properly set up.
2025-03-18 02:56:02 +08:00
choizhang
5fef68b62f Language switching and merging
Add the webuiInitialize variable, dev: '', build:'/webui'
2025-03-15 00:52:21 +08:00
choizhang
10c23aabfd Change to hash routing, webuiInitialize controls project prefix 2025-03-14 17:00:36 +08:00
choizhang
7bf2d51bd0 Added language and theme switching function to login page and homepage 2025-03-12 00:42:12 +08:00
choizhang
6b22e8065b Added loginPage 2025-03-11 14:48:19 +08:00