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",
+26
View File
@@ -1,5 +1,31 @@
{
"appName": "Watchman",
"login": {
"title": "เข้าสู่ Watchman",
"subtitle": "ใช้บัญชีบริษัทเพื่อเข้าสู่แพลตฟอร์มแจ้งเตือน",
"eyebrow": "WATCHMAN · EARLY WARNING",
"heroEm": "เห็นได้",
"heroBefore": "ทำให้ความผิดปกติ",
"submitting": "กำลังเข้าสู่ระบบ",
"account": "บัญชี",
"accountPlaceholder": "รหัสพนักงาน",
"passwordPlaceholder": "รหัสผ่าน",
"cardTitle": "เข้าสู่ระบบ",
"theme": "สลับธีม",
"footer": "© 2026 和信精密 · HEXIN PRECISION",
"username": "ชื่อผู้ใช้",
"password": "รหัสผ่าน",
"submit": "เข้าสู่ระบบ",
"failed": "เข้าสู่ระบบไม่สำเร็จ โปรดตรวจสอบบัญชีและรหัสผ่าน",
"unavailable": "บริการเข้าสู่ระบบไม่พร้อมชั่วคราว โปรดลองอีกครั้ง",
"logout": "ออกจากระบบ",
"forbiddenTitle": "ไม่มีสิทธิ์เข้าใช้",
"forbiddenBody": "บัญชีนี้เข้าสู่ระบบแล้ว แต่ไม่มีบทบาทดู ดำเนินการ หรือผู้ดูแลของ Watchman",
"fixture": "โหมดตัวตนภายในเครื่อง ไม่ใช่การเข้าสู่ระบบจริง"
},
"shell": {
"welcome": "เข้าสู่ระบบแล้ว: {name}"
},
"health": {
"loading": "กำลังตรวจสอบสถานะ",
"success": "ตรวจสอบสถานะสำเร็จ",
@@ -1,5 +1,32 @@
{
"appName": "Watchman",
"login": {
"title": "登录 Watchman",
"subtitle": "使用公司账号进入预警平台",
"eyebrow": "WATCHMAN · EARLY WARNING",
"hero": "让异常{em}被看见{/em}",
"heroEm": "被看见",
"heroBefore": "让异常",
"submitting": "登录中",
"account": "账号",
"accountPlaceholder": "工号 / 域账号",
"passwordPlaceholder": "请输入密码",
"cardTitle": "登录账户",
"theme": "切换昼夜",
"footer": "© 2026 和信精密 · HEXIN PRECISION",
"username": "用户名",
"password": "密码",
"submit": "登录",
"failed": "登录失败,请检查账号和密码",
"unavailable": "登录服务暂不可用,请稍后再试",
"logout": "退出",
"forbiddenTitle": "没有访问权限",
"forbiddenBody": "当前账号已登录,但没有 Watchman 的查看、处理或管理角色。",
"fixture": "本地身份模式,不能当作正式登录"
},
"shell": {
"welcome": "已登录:{name}"
},
"health": {
"loading": "健康检查加载中",
"success": "健康检查成功",
@@ -1,5 +1,31 @@
{
"appName": "Watchman",
"login": {
"title": "登入 Watchman",
"subtitle": "使用公司帳號進入預警平台",
"eyebrow": "WATCHMAN · EARLY WARNING",
"heroEm": "被看見",
"heroBefore": "讓異常",
"submitting": "登入中",
"account": "帳號",
"accountPlaceholder": "工號 / 網域帳號",
"passwordPlaceholder": "請輸入密碼",
"cardTitle": "登入帳戶",
"theme": "切換晝夜",
"footer": "© 2026 和信精密 · HEXIN PRECISION",
"username": "使用者名稱",
"password": "密碼",
"submit": "登入",
"failed": "登入失敗,請檢查帳號和密碼",
"unavailable": "登入服務暫不可用,請稍後再試",
"logout": "登出",
"forbiddenTitle": "沒有存取權限",
"forbiddenBody": "目前帳號已登入,但沒有 Watchman 的查看、處理或管理角色。",
"fixture": "本地身分模式,不能當作正式登入"
},
"shell": {
"welcome": "已登入:{name}"
},
"health": {
"loading": "健康檢查載入中",
"success": "健康檢查成功",