修复TOKEN错误的问题

This commit is contained in:
CN-JS-HuiBai
2026-04-07 17:19:59 +08:00
parent 9599cc766d
commit 704d7df73e
3 changed files with 106 additions and 81 deletions

View File

@@ -14,6 +14,7 @@ This plugin adds a user-facing online device dashboard for Xboard.
- `GET /api/v1/user-online-devices/summary`
- `GET /api/v1/user-online-devices/panel-url`
- `GET /userstatus`
- `GET /user-online-devices/userstatus`
- `GET /user-online-devices/panel/{user}` (temporary signed URL)
@@ -22,4 +23,4 @@ This plugin adds a user-facing online device dashboard for Xboard.
- This plugin reuses Xboard's existing real-time device state data from Redis.
- In current Xboard releases, plugin development is primarily backend-oriented, so this plugin ships a standalone user-side page instead of patching the compiled SPA bundle directly.
- The "online device" count is effectively the number of unique online IPs reported by nodes.
- The easiest user entry is now `/user-online-devices/userstatus`, which reads the logged-in browser token and shows the current user's own status.
- The easiest user entry is now `/userstatus`, which reads the current Xboard login token and shows the current user's own status.