feat(auth): 接入 Casdoor 登录并让前端持有本服务会话

管理台可以密码登录、按角色进入,并把 Watchman 会话 token 交给浏览器。HXOPS 真实跳转仍未联调。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
unknownandCursor committed 2026-11-17 18:39:56 +08:00
1 parent 21338337a1
commit ab31d828d4
64 files changed
+4140 -339

No files matched your search

+26
View File
@@ -1,5 +1,31 @@
{
"appName": "Watchman",
"login": {
"title": "Sign in to Watchman",
"subtitle": "Use your company account to open the alert platform",
"eyebrow": "WATCHMAN · EARLY WARNING",
"heroEm": "visible",
"heroBefore": "Make exceptions ",
"submitting": "Signing in",
"account": "Account",
"accountPlaceholder": "Employee ID",
"passwordPlaceholder": "Password",
"cardTitle": "Sign in",
"theme": "Toggle theme",
"footer": "© 2026 和信精密 · HEXIN PRECISION",
"username": "Username",
"password": "Password",
"submit": "Sign in",
"failed": "Sign-in failed. Check the account and password.",
"unavailable": "Sign-in is temporarily unavailable. Try again shortly.",
"logout": "Sign out",
"forbiddenTitle": "No access",
"forbiddenBody": "This account is signed in, but it does not have a Watchman view, operate, or admin role.",
"fixture": "Local identity mode. This is not a production sign-in."
},
"shell": {
"welcome": "Signed in: {name}"
},
"health": {
"loading": "Checking health",
"success": "Health check succeeded",