yangdx
86709a5e8e
Update webui assets
2025-03-22 11:40:52 +08:00
yangdx
133bc40735
Improve node size calculation logic for node expansion to prevent oversized
2025-03-22 11:39:46 +08:00
yangdx
2fd38381c0
Simplify log message for graph query
2025-03-22 11:29:04 +08:00
yangdx
acd3fd9fa0
Fix linting
2025-03-22 03:41:52 +08:00
yangdx
a461ccebe3
Fix version display problem when server does not require auth
2025-03-22 03:41:06 +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
b21c32645d
Added "emptyGraph" translation for Arabic and French.
2025-03-22 00:35:43 +08:00
yangdx
42a5bd3a8b
Merge branch 'main' into i18n-france-arabic
2025-03-22 00:32:13 +08:00
yangdx
dcbb6bf8cf
Add French and Arabic language support
2025-03-22 00:31:18 +08:00
yangdx
101e1c907c
Fix linting
2025-03-21 21:51:52 +08:00
yangdx
a5aa3da3bc
Handle empty graph data and add empty graph hints
...
- Add empty data handling flag
- Display "Graph Is Empty" node
2025-03-21 21:49:36 +08:00
Saifeddine ALOUI
3f8043ba43
Merge branch 'HKUDS:main' into main
2025-03-21 14:20:51 +01:00
yangdx
35e00f1eb2
Fix: emtpy graph not display correctly after cleaning the database
...
- Improved graph validation with detailed checks
- Added empty graph state handling
- Enhanced label fetching and refresh logic
- Tracked last successful query label
- Optimized data fetching flow
2025-03-21 19:56:45 +08:00
yangdx
8742ec3625
Refactor ProtectedRoute component to properly handle navigation in React lifecycle
2025-03-20 12:41:02 +08:00
yangdx
08ae9c5825
Fix graph data reloading problem after login token expired
2025-03-20 12:29:22 +08:00
yangdx
2a3fafa1cc
Added dark mode styles for node property buttons
2025-03-20 11:32:41 +08:00
yangdx
b422d223e8
Fix settings popover toggle logic
2025-03-20 04:46:56 +08:00
yangdx
0122433eee
Fix linting
2025-03-20 03:47:07 +08:00
yangdx
f1755f6978
Update Chinese locale for "minDegree" translation
...
- Changed "最小度数" to "最小邻边数"
2025-03-20 03:46:52 +08:00
yangdx
6968cbd6d5
Adjust position and spacing of settings display
2025-03-20 03:46:38 +08:00
yangdx
c456ea2ce8
Remove API Key setting from webui
2025-03-20 03:46:26 +08:00
yangdx
5e22e034e9
Fix linting
2025-03-20 01:38:08 +08:00
yangdx
e9fc12042c
Fetch all labels and graph data again on refresh
2025-03-20 01:37:26 +08:00
yangdx
0210170ecd
Fix: graph label not set on grapview initial mount
2025-03-20 01:37:15 +08:00
yangdx
bb7074d793
Fix: disabel document fecting in backup
...
- Replace useTabVisibility with useSettingsStore
- Remove unused initialLoadRef
- Simplify document fetching logic
2025-03-19 21:37:12 +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
202f7befaf
Remove redundant debug log for graph labels fetching
2025-03-19 14:08:28 +08:00
yangdx
ffaa3493bd
Update web assets
2025-03-19 13:52:38 +08:00
yangdx
61734313b2
Remove useless tab visibility checks from graph components
2025-03-19 13:51:15 +08:00
yangdx
d7dfc914a4
Remove unused initAttemptedRef from GraphViewer
2025-03-19 13:23:45 +08:00
yangdx
6aab0eaea2
Remove unused shouldRender state and related rendering control logic
2025-03-19 13:07:16 +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
bc4c16b06a
Improve cleanup and state reset logic in GraphViewer and NavigationService.
...
- Add proper Sigma instance cleanup on unmount
- Ensure error handling for Sigma cleanup
2025-03-19 01:03:24 +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
8145046115
Remove login modal state from auth store
2025-03-18 23:12:02 +08:00
yangdx
3279948dcd
Skip graph creation if no data or empty nodes
...
- Add log for skipped graph creation
2025-03-18 20:23:22 +08:00
yangdx
c42f08c0e6
Add navigation service for centralized login redirect routing
...
- Simplify token validation logic in API
- Update axios interceptor to use navigation service
2025-03-18 19:45:43 +08:00
yangdx
d80ca4dc07
Added root redirect to /webui and updated webui config
2025-03-18 15:38:41 +08:00
yangdx
331b1194f0
Added camera rotation controls to graph panel.
2025-03-18 12:34:04 +08:00
yangdx
00e05a12b0
Adjust layout noverlap margin and grid size.
2025-03-18 11:26:39 +08:00
yangdx
77c23a23e4
Added error logging for duplicate edges in rawGraph.
2025-03-18 09:51:53 +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
Saifeddine ALOUI
9021bfb8a6
Added french locale
2025-03-17 18:57:48 +01:00
Saifeddine ALOUI
5470f9dfee
added arabic locale
2025-03-17 18:56:50 +01:00
yangdx
2a18b04f7f
Added authentication checks and token validation
...
- Added auth checks in health check logic
- Protected routes require authentication
- Validated token on app startup
- Added auth check in API interceptor
- Clear token on 401 unauthorized error
2025-03-18 01:46:12 +08:00
yangdx
1727130c47
Added /login to VITE_API_ENDPOINTS
2025-03-18 01:16:40 +08:00
yangdx
2856107f46
Merge branch 'loginPage' into webui-node-expansion
2025-03-18 00:39:48 +08:00
yangdx
07b13ee739
Prevent duplicate edges in Lightrag graph
...
- Check for reverse edge existence
2025-03-17 22:54:23 +08:00