@origen-ui/admin-cli 1.0.3 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -7
- package/package.json +19 -3
- package/templates/current/clean/CHANGELOG.md +137 -0
- package/templates/current/clean/component-catalog.json +58 -17
- package/templates/current/clean/e2e/admin-shell.spec.ts +6 -0
- package/templates/current/clean/e2e/demo-shell.spec.ts +90 -46
- package/templates/current/clean/package.json +55 -41
- package/templates/current/clean/playwright.config.ts +1 -0
- package/templates/current/clean/playwright.demo.config.ts +1 -1
- package/templates/current/clean/scaffold.lock.json +2 -2
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/Forbidden.vue +7 -2
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/NotFound.vue +7 -2
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/ServerError.vue +7 -2
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/error-pages.spec.ts +11 -2
- package/templates/current/clean/scripts/clean-overlay/src/main.ts +23 -14
- package/templates/current/clean/scripts/clean-overlay/src/router/componentCache.ts +12 -0
- package/templates/current/clean/scripts/clean-overlay/src/router/componentRegistry.ts +2 -13
- package/templates/current/clean/scripts/clean-overlay/src/router/dynamicRoutes.spec.ts +34 -4
- package/templates/current/clean/scripts/clean-overlay/src/router/paths.ts +21 -0
- package/templates/current/clean/scripts/clean-overlay/src/router/staticRoutes.ts +6 -6
- package/templates/current/clean/scripts/demo-api.ts +84 -8
- package/templates/current/clean/scripts/generate-api.ts +87 -3
- package/templates/current/clean/scripts/vite-build-policy.spec.ts +72 -0
- package/templates/current/clean/src/App.vue +10 -3
- package/templates/current/clean/src/api/client.ts +90 -10
- package/templates/current/clean/src/api/generated/data-contracts.ts +0 -3
- package/templates/current/clean/src/api/generated/http-client.ts +28 -26
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/206/205/345/256/271/346/226/207/347/253/240.ts +5 -8
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/256/241/350/256/241.ts +1 -4
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/346/226/207/344/273/266/344/270/212/344/274/240.ts +2 -5
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/347/224/250/346/210/267.ts +6 -9
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/217/234/345/215/225.ts +7 -10
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/247/222/350/211/262.ts +6 -9
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/256/242/345/215/225/350/215/211/347/250/277.ts +6 -9
- package/templates/current/clean/src/api/generated//350/256/244/350/257/201.ts +3 -6
- package/templates/current/clean/src/app/adminLocale.ts +90 -0
- package/templates/current/clean/src/app/createAdminUi.spec.ts +65 -9
- package/templates/current/clean/src/app/createAdminUi.ts +14 -29
- package/templates/current/clean/src/app/embedded-token.spec.ts +40 -0
- package/templates/current/clean/src/app/embedded.spec.ts +135 -0
- package/templates/current/clean/src/app/embedded.ts +255 -0
- package/templates/current/clean/src/app/errorMessage.spec.ts +76 -0
- package/templates/current/clean/src/app/errorMessage.ts +53 -0
- package/templates/current/clean/src/app/localeFormat.ts +52 -0
- package/templates/current/clean/src/app/menu-host.spec.ts +77 -0
- package/templates/current/clean/src/app/menu.spec.ts +65 -0
- package/templates/current/clean/src/app/menu.ts +52 -12
- package/templates/current/clean/src/app/menuTypes.ts +1 -0
- package/templates/current/clean/src/app/origenUiLocale.spec.ts +6 -5
- package/templates/current/clean/src/app/origenUiLocale.ts +3 -58
- package/templates/current/clean/src/app/permission.spec.ts +26 -0
- package/templates/current/clean/src/app/runtimeConfig.ts +9 -8
- package/templates/current/clean/src/demo-api.spec.ts +311 -0
- package/templates/current/clean/src/env.d.ts +18 -0
- package/templates/current/clean/src/features/appearance/components/ThemePanel.vue +21 -17
- package/templates/current/clean/src/features/appearance/store/theme.ts +2 -1
- package/templates/current/clean/src/features/auth/pages/Login.vue +22 -12
- package/templates/current/clean/src/features/auth/store/auth.ts +6 -9
- package/templates/current/clean/src/features/errors/pages/Forbidden.vue +7 -2
- package/templates/current/clean/src/features/errors/pages/NotFound.vue +7 -2
- package/templates/current/clean/src/features/errors/pages/ServerError.vue +7 -2
- package/templates/current/clean/src/features/errors/pages/error-pages.spec.ts +11 -2
- package/templates/current/clean/src/features/security/components/DevtoolsProtectionOverlay.vue +5 -2
- package/templates/current/clean/src/features/security/devtoolsProtection.spec.ts +7 -10
- package/templates/current/clean/src/features/security/devtoolsProtection.ts +2 -1
- package/templates/current/clean/src/features/system/access/api/admin-repository.spec.ts +14 -0
- package/templates/current/clean/src/features/system/access/api/admin-repository.ts +34 -15
- package/templates/current/clean/src/features/system/access/api/rbac.ts +52 -32
- package/templates/current/clean/src/features/system/access/composables/useAuthorizationPolling.spec.ts +134 -0
- package/templates/current/clean/src/features/system/access/composables/useAuthorizationPolling.ts +96 -0
- package/templates/current/clean/src/features/workspace/pages/Empty.vue +4 -1
- package/templates/current/clean/src/features/workspace/pages/Profile.vue +14 -12
- package/templates/current/clean/src/layouts/AdminLayout.vue +6 -1
- package/templates/current/clean/src/layouts/TopBar.vue +60 -11
- package/templates/current/clean/src/layouts/topBarMenuSearch.spec.ts +24 -1
- package/templates/current/clean/src/layouts/topBarMenuSearch.ts +10 -0
- package/templates/current/clean/src/locales/en-US.json +517 -0
- package/templates/current/clean/src/locales/en-US.runtime.ts +22 -0
- package/templates/current/clean/src/locales/index.ts +144 -47
- package/templates/current/clean/src/locales/messages-types.ts +62 -0
- package/templates/current/clean/src/locales/messages.spec.ts +113 -6
- package/templates/current/clean/src/locales/vue-i18n.d.ts +5 -0
- package/templates/current/clean/src/locales/zh-CN.json +517 -0
- package/templates/current/clean/src/locales/zh-CN.runtime.ts +22 -0
- package/templates/current/clean/src/locales/zh-TW.json +517 -0
- package/templates/current/clean/src/locales/zh-TW.runtime.ts +22 -0
- package/templates/current/clean/src/main.ts +23 -14
- package/templates/current/clean/src/router/bootstrap.ts +20 -11
- package/templates/current/clean/src/router/componentCache.ts +12 -0
- package/templates/current/clean/src/router/componentRegistry.ts +2 -13
- package/templates/current/clean/src/router/dynamicMenuRefresh.spec.ts +101 -0
- package/templates/current/clean/src/router/dynamicMenuRefresh.ts +24 -0
- package/templates/current/clean/src/router/dynamicRoutes.spec.ts +34 -4
- package/templates/current/clean/src/router/dynamicRoutes.ts +19 -4
- package/templates/current/clean/src/router/paths.spec.ts +50 -0
- package/templates/current/clean/src/router/paths.ts +21 -0
- package/templates/current/clean/src/router/queryEncryption.spec.ts +30 -4
- package/templates/current/clean/src/router/queryEncryption.ts +48 -44
- package/templates/current/clean/src/router/staticRoutes.ts +6 -6
- package/templates/current/clean/src/router/useRouteQueryDefaults.spec.ts +2 -1
- package/templates/current/clean/src/router/useRouteQueryDefaults.types.ts +2 -1
- package/templates/current/clean/src/templates/og-table.ts +79 -37
- package/templates/current/clean/src/templates/templates.spec.ts +19 -0
- package/templates/current/clean/tsconfig.json +0 -1
- package/templates/current/clean/vite.build-policy.ts +161 -289
- package/templates/current/clean/vite.config.ts +34 -5
- package/templates/current/examples/CHANGELOG.md +137 -0
- package/templates/current/examples/component-catalog.json +58 -17
- package/templates/current/examples/e2e/admin-shell.spec.ts +6 -0
- package/templates/current/examples/e2e/demo-shell.spec.ts +90 -46
- package/templates/current/examples/package.json +55 -41
- package/templates/current/examples/playwright.config.ts +1 -0
- package/templates/current/examples/playwright.demo.config.ts +1 -1
- package/templates/current/examples/scaffold.lock.json +2 -2
- package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/Forbidden.vue +7 -2
- package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/NotFound.vue +7 -2
- package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/ServerError.vue +7 -2
- package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/error-pages.spec.ts +11 -2
- package/templates/current/examples/scripts/clean-overlay/src/main.ts +23 -14
- package/templates/current/examples/scripts/clean-overlay/src/router/componentCache.ts +12 -0
- package/templates/current/examples/scripts/clean-overlay/src/router/componentRegistry.ts +2 -13
- package/templates/current/examples/scripts/clean-overlay/src/router/dynamicRoutes.spec.ts +34 -4
- package/templates/current/examples/scripts/clean-overlay/src/router/paths.ts +21 -0
- package/templates/current/examples/scripts/clean-overlay/src/router/staticRoutes.ts +6 -6
- package/templates/current/examples/scripts/demo-api.ts +84 -8
- package/templates/current/examples/scripts/generate-api.ts +87 -3
- package/templates/current/examples/scripts/vite-build-policy.spec.ts +72 -0
- package/templates/current/examples/src/App.vue +10 -3
- package/templates/current/examples/src/api/client.ts +90 -10
- package/templates/current/examples/src/api/generated/data-contracts.ts +0 -3
- package/templates/current/examples/src/api/generated/http-client.ts +28 -26
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/206/205/345/256/271/346/226/207/347/253/240.ts +5 -8
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/256/241/350/256/241.ts +1 -4
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/346/226/207/344/273/266/344/270/212/344/274/240.ts +2 -5
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/347/224/250/346/210/267.ts +6 -9
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/217/234/345/215/225.ts +7 -10
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/247/222/350/211/262.ts +6 -9
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/256/242/345/215/225/350/215/211/347/250/277.ts +6 -9
- package/templates/current/examples/src/api/generated//350/256/244/350/257/201.ts +3 -6
- package/templates/current/examples/src/app/adminLocale.ts +90 -0
- package/templates/current/examples/src/app/createAdminUi.spec.ts +65 -9
- package/templates/current/examples/src/app/createAdminUi.ts +14 -29
- package/templates/current/examples/src/app/embedded-token.spec.ts +40 -0
- package/templates/current/examples/src/app/embedded.spec.ts +135 -0
- package/templates/current/examples/src/app/embedded.ts +255 -0
- package/templates/current/examples/src/app/errorMessage.spec.ts +76 -0
- package/templates/current/examples/src/app/errorMessage.ts +53 -0
- package/templates/current/examples/src/app/localeFormat.ts +52 -0
- package/templates/current/examples/src/app/menu-host.spec.ts +77 -0
- package/templates/current/examples/src/app/menu.spec.ts +65 -0
- package/templates/current/examples/src/app/menu.ts +52 -12
- package/templates/current/examples/src/app/menuTypes.ts +1 -0
- package/templates/current/examples/src/app/origenUiLocale.spec.ts +6 -5
- package/templates/current/examples/src/app/origenUiLocale.ts +3 -58
- package/templates/current/examples/src/app/permission.spec.ts +26 -0
- package/templates/current/examples/src/app/runtimeConfig.ts +9 -8
- package/templates/current/examples/src/demo-api.spec.ts +311 -0
- package/templates/current/examples/src/env.d.ts +18 -0
- package/templates/current/examples/src/features/appearance/components/ThemePanel.vue +21 -17
- package/templates/current/examples/src/features/appearance/store/theme.ts +2 -1
- package/templates/current/examples/src/features/auth/pages/Login.vue +22 -12
- package/templates/current/examples/src/features/auth/store/auth.ts +6 -9
- package/templates/current/examples/src/features/errors/pages/Forbidden.vue +7 -2
- package/templates/current/examples/src/features/errors/pages/NotFound.vue +7 -2
- package/templates/current/examples/src/features/errors/pages/ServerError.vue +7 -2
- package/templates/current/examples/src/features/errors/pages/error-pages.spec.ts +9 -1
- package/templates/current/examples/src/features/feature-composables.spec.ts +47 -10
- package/templates/current/examples/src/features/security/components/DevtoolsProtectionOverlay.vue +5 -2
- package/templates/current/examples/src/features/security/devtoolsProtection.spec.ts +7 -10
- package/templates/current/examples/src/features/security/devtoolsProtection.ts +2 -1
- package/templates/current/examples/src/features/system/access/api/admin-repository.spec.ts +14 -0
- package/templates/current/examples/src/features/system/access/api/admin-repository.ts +34 -15
- package/templates/current/examples/src/features/system/access/api/rbac.ts +52 -32
- package/templates/current/examples/src/features/system/access/composables/useAuthorizationPolling.spec.ts +134 -0
- package/templates/current/examples/src/features/system/access/composables/useAuthorizationPolling.ts +96 -0
- package/templates/current/examples/src/features/system/audit/composables/useAuditManagement.ts +43 -38
- package/templates/current/examples/src/features/system/menus/components/MenuEditorForm.vue +137 -47
- package/templates/current/examples/src/features/system/menus/composables/useMenuManagement.ts +215 -107
- package/templates/current/examples/src/features/system/menus/menuDraft.spec.ts +204 -0
- package/templates/current/examples/src/features/system/menus/menuDraft.ts +116 -0
- package/templates/current/examples/src/features/system/menus/menuTreePrecheck.spec.ts +268 -0
- package/templates/current/examples/src/features/system/menus/menuTreePrecheck.ts +317 -0
- package/templates/current/examples/src/features/system/menus/pages/MenuList.vue +3 -1
- package/templates/current/examples/src/features/system/roles/components/RoleEditorForm.vue +19 -15
- package/templates/current/examples/src/features/system/roles/composables/useRoleManagement.ts +49 -53
- package/templates/current/examples/src/features/system/roles/pages/RoleList.vue +3 -1
- package/templates/current/examples/src/features/system/users/components/UserEditorForm.vue +22 -19
- package/templates/current/examples/src/features/system/users/composables/useUserManagement.ts +59 -64
- package/templates/current/examples/src/features/system/users/pages/UserList.vue +3 -1
- package/templates/current/examples/src/features/workspace/pages/Dashboard.spec.ts +9 -0
- package/templates/current/examples/src/features/workspace/pages/Dashboard.vue +54 -26
- package/templates/current/examples/src/features/workspace/pages/Empty.vue +4 -1
- package/templates/current/examples/src/features/workspace/pages/Profile.vue +14 -12
- package/templates/current/examples/src/layouts/AdminLayout.vue +6 -1
- package/templates/current/examples/src/layouts/TopBar.vue +60 -11
- package/templates/current/examples/src/layouts/topBarMenuSearch.spec.ts +24 -1
- package/templates/current/examples/src/layouts/topBarMenuSearch.ts +10 -0
- package/templates/current/examples/src/locales/en-US.json +517 -0
- package/templates/current/examples/src/locales/en-US.runtime.ts +22 -0
- package/templates/current/examples/src/locales/index.ts +144 -47
- package/templates/current/examples/src/locales/messages-types.ts +62 -0
- package/templates/current/examples/src/locales/messages.spec.ts +113 -6
- package/templates/current/examples/src/locales/vue-i18n.d.ts +5 -0
- package/templates/current/examples/src/locales/zh-CN.json +517 -0
- package/templates/current/examples/src/locales/zh-CN.runtime.ts +22 -0
- package/templates/current/examples/src/locales/zh-TW.json +517 -0
- package/templates/current/examples/src/locales/zh-TW.runtime.ts +22 -0
- package/templates/current/examples/src/main.ts +43 -15
- package/templates/current/examples/src/router/bootstrap.ts +20 -11
- package/templates/current/examples/src/router/componentCache.ts +18 -0
- package/templates/current/examples/src/router/componentRegistry.ts +1 -18
- package/templates/current/examples/src/router/dynamicMenuRefresh.spec.ts +101 -0
- package/templates/current/examples/src/router/dynamicMenuRefresh.ts +24 -0
- package/templates/current/examples/src/router/dynamicRoutes.spec.ts +37 -2
- package/templates/current/examples/src/router/dynamicRoutes.ts +19 -4
- package/templates/current/examples/src/router/paths.spec.ts +50 -0
- package/templates/current/examples/src/router/paths.ts +21 -0
- package/templates/current/examples/src/router/queryEncryption.spec.ts +30 -4
- package/templates/current/examples/src/router/queryEncryption.ts +48 -44
- package/templates/current/examples/src/router/staticRoutes.ts +4 -4
- package/templates/current/examples/src/router/useRouteQueryDefaults.spec.ts +2 -1
- package/templates/current/examples/src/router/useRouteQueryDefaults.types.ts +2 -1
- package/templates/current/examples/src/templates/og-table.ts +79 -37
- package/templates/current/examples/src/templates/templates.spec.ts +19 -0
- package/templates/current/examples/tsconfig.json +0 -1
- package/templates/current/examples/vite.build-policy.ts +161 -289
- package/templates/current/examples/vite.config.ts +34 -5
- package/templates/current/clean/scripts/check-admin-bundle.mjs +0 -214
- package/templates/current/clean/scripts/performance/baselines/bundle-gzip-v2-pre-entry-unification.json +0 -38
- package/templates/current/clean/src/locales/en-US.ts +0 -55
- package/templates/current/clean/src/locales/zh-CN.ts +0 -55
- package/templates/current/clean/src/locales/zh-TW.ts +0 -44
- package/templates/current/examples/scripts/check-admin-bundle.mjs +0 -214
- package/templates/current/examples/scripts/performance/baselines/bundle-gzip-v2-pre-entry-unification.json +0 -38
- package/templates/current/examples/src/locales/en-US.ts +0 -55
- package/templates/current/examples/src/locales/zh-CN.ts +0 -55
- package/templates/current/examples/src/locales/zh-TW.ts +0 -44
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": {
|
|
3
|
+
"title": "禾數管理後台",
|
|
4
|
+
"shortTitle": "禾數",
|
|
5
|
+
"tagline": "企業級中後台解決方案"
|
|
6
|
+
},
|
|
7
|
+
"menu": {
|
|
8
|
+
"dashboard": "工作台",
|
|
9
|
+
"profile": "個人資料",
|
|
10
|
+
"system": "系統管理",
|
|
11
|
+
"users": "用戶管理",
|
|
12
|
+
"roles": "角色管理",
|
|
13
|
+
"menus": "選單管理",
|
|
14
|
+
"audit": "稽核日誌"
|
|
15
|
+
},
|
|
16
|
+
"auth": {
|
|
17
|
+
"signInTitle": "登入禾數管理後台",
|
|
18
|
+
"signInSubtitle": "請輸入您的帳號資訊",
|
|
19
|
+
"signInDescription": "登入控制台,管理你的業務工作區。",
|
|
20
|
+
"login": "登入",
|
|
21
|
+
"logout": "登出",
|
|
22
|
+
"username": "帳號",
|
|
23
|
+
"usernamePlaceholder": "請輸入帳號",
|
|
24
|
+
"password": "密碼",
|
|
25
|
+
"passwordPlaceholder": "請輸入密碼",
|
|
26
|
+
"rememberMe": "記住我",
|
|
27
|
+
"submitting": "登入中…",
|
|
28
|
+
"failedTitle": "登入失敗",
|
|
29
|
+
"invalidCredentials": "帳號或密碼錯誤",
|
|
30
|
+
"networkError": "網路異常,請稍後再試",
|
|
31
|
+
"locked": "帳號已被鎖定",
|
|
32
|
+
"sessionExpired": "登入狀態已過期,請重新登入",
|
|
33
|
+
"unauthenticated": "請先登入後再訪問",
|
|
34
|
+
"demoHint": "示範帳號",
|
|
35
|
+
"requiredCredentials": "請輸入帳號和密碼",
|
|
36
|
+
"loginFailed": "登入失敗,請稍後重試",
|
|
37
|
+
"invalidResponse": "登入回應格式無效",
|
|
38
|
+
"missingToken": "登入回應缺少存取權杖",
|
|
39
|
+
"requestFailed": "請求失敗"
|
|
40
|
+
},
|
|
41
|
+
"shell": {
|
|
42
|
+
"expandNavigation": "展開導覽",
|
|
43
|
+
"collapseNavigation": "收起導覽",
|
|
44
|
+
"searchMenu": "搜尋選單",
|
|
45
|
+
"preferences": "偏好設定",
|
|
46
|
+
"openUserMenu": "開啟使用者選單",
|
|
47
|
+
"applicationNavigation": "應用導覽",
|
|
48
|
+
"languageLoadFailed": "語言載入失敗",
|
|
49
|
+
"menuRefreshFailed": "選單重新整理失敗,已保留目前語言",
|
|
50
|
+
"retryMenuRefresh": "重試選單重新整理",
|
|
51
|
+
"languageZhCN": "简体中文",
|
|
52
|
+
"languageEnUS": "English",
|
|
53
|
+
"languageZhTW": "繁體中文"
|
|
54
|
+
},
|
|
55
|
+
"common": {
|
|
56
|
+
"actions": {
|
|
57
|
+
"create": "新增",
|
|
58
|
+
"edit": "編輯",
|
|
59
|
+
"delete": "刪除",
|
|
60
|
+
"remove": "移除",
|
|
61
|
+
"save": "儲存",
|
|
62
|
+
"cancel": "取消",
|
|
63
|
+
"confirm": "確定",
|
|
64
|
+
"search": "搜尋",
|
|
65
|
+
"reset": "重置",
|
|
66
|
+
"refresh": "重新整理",
|
|
67
|
+
"enable": "啟用",
|
|
68
|
+
"disable": "停用",
|
|
69
|
+
"publish": "發布",
|
|
70
|
+
"unpublish": "停止發布",
|
|
71
|
+
"export": "匯出",
|
|
72
|
+
"import": "匯入",
|
|
73
|
+
"back": "返回",
|
|
74
|
+
"submit": "提交",
|
|
75
|
+
"close": "關閉",
|
|
76
|
+
"view": "檢視",
|
|
77
|
+
"operations": "操作",
|
|
78
|
+
"toggleStatus": "切換狀態",
|
|
79
|
+
"batchEnable": "批次啟用",
|
|
80
|
+
"batchDisable": "批次停用",
|
|
81
|
+
"batchRemove": "批次移除",
|
|
82
|
+
"approve": "審批通過",
|
|
83
|
+
"batchProcess": "批次處理"
|
|
84
|
+
},
|
|
85
|
+
"status": {
|
|
86
|
+
"enabled": "啟用",
|
|
87
|
+
"disabled": "停用",
|
|
88
|
+
"active": "啟用",
|
|
89
|
+
"inactive": "停用",
|
|
90
|
+
"published": "已發布",
|
|
91
|
+
"unpublished": "未發布",
|
|
92
|
+
"loading": "載入中…",
|
|
93
|
+
"success": "操作成功",
|
|
94
|
+
"failed": "操作失敗"
|
|
95
|
+
},
|
|
96
|
+
"yesNo": {
|
|
97
|
+
"yes": "是",
|
|
98
|
+
"no": "否"
|
|
99
|
+
},
|
|
100
|
+
"validation": {
|
|
101
|
+
"required": "此欄位為必填項",
|
|
102
|
+
"requiredField": "請完整填寫表單",
|
|
103
|
+
"email": "請輸入有效的電子郵件地址",
|
|
104
|
+
"phone": "請輸入有效的手機號碼",
|
|
105
|
+
"passwordTooShort": "密碼長度不能少於 6 位",
|
|
106
|
+
"passwordMismatch": "兩次輸入的密碼不一致",
|
|
107
|
+
"confirmPassword": "請再次輸入密碼",
|
|
108
|
+
"formatInvalid": "格式不正確",
|
|
109
|
+
"selectRequired": "必須選擇一項",
|
|
110
|
+
"numberRange": "請輸入有效範圍內的數值",
|
|
111
|
+
"integer": "請輸入整數",
|
|
112
|
+
"nonNegative": "請輸入非負數值",
|
|
113
|
+
"positive": "請輸入正數"
|
|
114
|
+
},
|
|
115
|
+
"feedback": {
|
|
116
|
+
"loading": "載入中…",
|
|
117
|
+
"processing": "處理中…",
|
|
118
|
+
"saved": "已儲存",
|
|
119
|
+
"deleted": "已刪除",
|
|
120
|
+
"created": "已建立",
|
|
121
|
+
"updated": "已更新",
|
|
122
|
+
"removed": "已移除",
|
|
123
|
+
"published": "已發布",
|
|
124
|
+
"unpublished": "已停止發布",
|
|
125
|
+
"operationSuccess": "操作成功",
|
|
126
|
+
"operationFailed": "操作失敗",
|
|
127
|
+
"noData": "暫無資料",
|
|
128
|
+
"loadFailed": "載入失敗",
|
|
129
|
+
"saveFailed": "儲存失敗",
|
|
130
|
+
"confirmDelete": "確定要刪除嗎?",
|
|
131
|
+
"confirmRemove": "確定要移除嗎?",
|
|
132
|
+
"confirmDisable": "確定要停用嗎?",
|
|
133
|
+
"confirmEnable": "確定要啟用嗎?",
|
|
134
|
+
"deleteSuccess": "刪除成功",
|
|
135
|
+
"createSuccess": "建立成功",
|
|
136
|
+
"updateSuccess": "更新成功",
|
|
137
|
+
"removeSuccess": "移除成功"
|
|
138
|
+
},
|
|
139
|
+
"errors": {
|
|
140
|
+
"unknownPageError": "頁面發生未知錯誤",
|
|
141
|
+
"startupFailed": "應用程式啟動失敗",
|
|
142
|
+
"networkError": "網路異常,請稍後再試",
|
|
143
|
+
"invalidResponse": "服務回應格式無效"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"workspace": {
|
|
147
|
+
"welcome": "歡迎回來",
|
|
148
|
+
"greetingMorning": "早安",
|
|
149
|
+
"greetingAfternoon": "午安",
|
|
150
|
+
"greetingEvening": "晚安",
|
|
151
|
+
"subtitle": "這是您的工作台概覽",
|
|
152
|
+
"empty": {
|
|
153
|
+
"description": "這是一個可由後端選單映射的空白頁面"
|
|
154
|
+
},
|
|
155
|
+
"dashboard": {
|
|
156
|
+
"visits": "今日訪問",
|
|
157
|
+
"activeMembers": "活躍成員",
|
|
158
|
+
"pendingItems": "待處理事項",
|
|
159
|
+
"pendingSuffix": " 項",
|
|
160
|
+
"serviceAvailability": "服務可用性",
|
|
161
|
+
"attention": "需關注",
|
|
162
|
+
"stable": "運行穩定",
|
|
163
|
+
"metricsLabel": "核心營運指標",
|
|
164
|
+
"activityTitle": "工作動態",
|
|
165
|
+
"activitySubtitle": "最近 24 小時關鍵操作",
|
|
166
|
+
"activityWorkspaceInit": "工作區已初始化",
|
|
167
|
+
"activityWorkspaceInitMeta": "可在 src/features 中新增業務模組",
|
|
168
|
+
"activityContractEnabled": "元件契約已啟用",
|
|
169
|
+
"activityContractEnabledMeta": "AI 會依 {'@'}origen-ui 元件規則開發頁面",
|
|
170
|
+
"activityRemoteMenu": "遠端選單已啟用",
|
|
171
|
+
"activityRemoteMenuMeta": "頁面由 /system/menus 動態註冊",
|
|
172
|
+
"tasksTitle": "待處理",
|
|
173
|
+
"tasksSubtitle": "需要人工判斷的佇列",
|
|
174
|
+
"taskConfigureAuth": "設定遠端認證",
|
|
175
|
+
"taskCheckUsers": "檢查使用者權限",
|
|
176
|
+
"taskPublishMenus": "發布遠端選單",
|
|
177
|
+
"quickActionsLabel": "常用操作",
|
|
178
|
+
"buildCta": "開始建置業務工作區",
|
|
179
|
+
"manageUsers": "管理使用者",
|
|
180
|
+
"completeProfile": "完善資料"
|
|
181
|
+
},
|
|
182
|
+
"profile": {
|
|
183
|
+
"title": "個人資料",
|
|
184
|
+
"basicInfo": "基本資訊",
|
|
185
|
+
"displayName": "顯示名稱",
|
|
186
|
+
"displayNamePlaceholder": "請輸入顯示名稱",
|
|
187
|
+
"email": "電子郵件",
|
|
188
|
+
"emailPlaceholder": "請輸入電子郵件",
|
|
189
|
+
"phone": "手機號碼",
|
|
190
|
+
"phonePlaceholder": "請輸入手機號碼",
|
|
191
|
+
"save": "儲存資料",
|
|
192
|
+
"saved": "資料已更新",
|
|
193
|
+
"username": "帳號",
|
|
194
|
+
"role": "角色",
|
|
195
|
+
"status": "狀態",
|
|
196
|
+
"createdAt": "建立時間",
|
|
197
|
+
"noSession": "未建立工作階段",
|
|
198
|
+
"admin": "管理員",
|
|
199
|
+
"online": "目前線上",
|
|
200
|
+
"loginAccount": "登入帳號",
|
|
201
|
+
"userId": "使用者 ID",
|
|
202
|
+
"sessionId": "工作階段識別碼",
|
|
203
|
+
"accessGrant": "訪問授權",
|
|
204
|
+
"permissionItems": "項權限",
|
|
205
|
+
"securityStatus": "安全狀態",
|
|
206
|
+
"currentSession": "目前工作階段",
|
|
207
|
+
"sessionDescription": "本裝置透過受保護的工作階段訪問管理工作區。",
|
|
208
|
+
"noEmail": "未設定電子郵件"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"errors": {
|
|
212
|
+
"forbidden": {
|
|
213
|
+
"code": "403",
|
|
214
|
+
"title": "無訪問權限",
|
|
215
|
+
"message": "抱歉,你沒有訪問此頁面的權限。",
|
|
216
|
+
"backHome": "回到儀表板"
|
|
217
|
+
},
|
|
218
|
+
"notFound": {
|
|
219
|
+
"code": "404",
|
|
220
|
+
"title": "頁面不存在",
|
|
221
|
+
"message": "你訪問的頁面不存在或已經被移除。",
|
|
222
|
+
"backHome": "回到儀表板"
|
|
223
|
+
},
|
|
224
|
+
"serverError": {
|
|
225
|
+
"code": "500",
|
|
226
|
+
"title": "伺服器錯誤",
|
|
227
|
+
"message": "服務暫時不可用,請稍後再試。",
|
|
228
|
+
"backHome": "回到儀表板"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"security": {
|
|
232
|
+
"devtoolsBlocked": "目前頁面暫不可用"
|
|
233
|
+
},
|
|
234
|
+
"rbac": {
|
|
235
|
+
"allPermissions": "全域所有權限",
|
|
236
|
+
"accessPage": "訪問頁面",
|
|
237
|
+
"errors": {
|
|
238
|
+
"required": "請填寫{label}",
|
|
239
|
+
"requiredStatus": "請選擇帳號狀態",
|
|
240
|
+
"invalidEmail": "請輸入有效的工作電子郵件",
|
|
241
|
+
"requireRole": "請至少分配一個角色",
|
|
242
|
+
"invalidRoleCode": "角色識別碼只能使用 3-32 位小寫字母、數字或底線",
|
|
243
|
+
"requirePermission": "請至少設定一項權限"
|
|
244
|
+
},
|
|
245
|
+
"fields": {
|
|
246
|
+
"workEmail": "工作電子郵件",
|
|
247
|
+
"memberName": "成員姓名",
|
|
248
|
+
"department": "所屬部門",
|
|
249
|
+
"roleCode": "角色識別碼",
|
|
250
|
+
"roleName": "角色名稱",
|
|
251
|
+
"roleDescription": "角色說明"
|
|
252
|
+
},
|
|
253
|
+
"pages": {
|
|
254
|
+
"dashboard": {
|
|
255
|
+
"label": "權限工作台",
|
|
256
|
+
"description": "檢視權限營運概覽和最近變更。"
|
|
257
|
+
},
|
|
258
|
+
"userList": {
|
|
259
|
+
"label": "用戶管理",
|
|
260
|
+
"description": "維護成員、狀態和多角色歸屬。",
|
|
261
|
+
"operations": {
|
|
262
|
+
"write": "新增和編輯成員",
|
|
263
|
+
"role": "分配成員角色",
|
|
264
|
+
"export": "匯出成員資料"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"roleList": {
|
|
268
|
+
"label": "角色管理",
|
|
269
|
+
"description": "維護角色、成員影響和權限邊界。",
|
|
270
|
+
"operations": {
|
|
271
|
+
"write": "新增和編輯角色",
|
|
272
|
+
"export": "匯出角色資料"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"menuList": {
|
|
276
|
+
"label": "選單管理",
|
|
277
|
+
"description": "動態發布目錄和註冊頁面。",
|
|
278
|
+
"operations": {
|
|
279
|
+
"write": "新增和編輯選單",
|
|
280
|
+
"publish": "啟停和發布選單",
|
|
281
|
+
"export": "匯出選單設定"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"auditList": {
|
|
285
|
+
"label": "稽核日誌",
|
|
286
|
+
"description": "查詢訪問控制變更和管理操作。",
|
|
287
|
+
"operations": {
|
|
288
|
+
"export": "匯出稽核日誌"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"appearance": {
|
|
294
|
+
"title": "主題設定",
|
|
295
|
+
"theme": "主題模式",
|
|
296
|
+
"light": "淺色",
|
|
297
|
+
"dark": "深色",
|
|
298
|
+
"system": "跟隨系統",
|
|
299
|
+
"density": "顯示密度",
|
|
300
|
+
"comfortable": "寬鬆",
|
|
301
|
+
"compact": "緊湊",
|
|
302
|
+
"primaryColor": "主色",
|
|
303
|
+
"primaryPresets": "主色預設",
|
|
304
|
+
"presetIndigo": "靛青",
|
|
305
|
+
"presetBlue": "藍色",
|
|
306
|
+
"presetTeal": "青綠",
|
|
307
|
+
"presetRose": "玫紅",
|
|
308
|
+
"presetAmber": "琥珀",
|
|
309
|
+
"custom": "自訂",
|
|
310
|
+
"usePrimary": "使用 {color} 主色",
|
|
311
|
+
"language": "語言",
|
|
312
|
+
"done": "完成",
|
|
313
|
+
"appearanceUpdated": "外觀已更新"
|
|
314
|
+
},
|
|
315
|
+
"system": {
|
|
316
|
+
"users": {
|
|
317
|
+
"title": "用戶管理",
|
|
318
|
+
"addUser": "新增用戶",
|
|
319
|
+
"editUser": "編輯用戶",
|
|
320
|
+
"addMember": "新增成員",
|
|
321
|
+
"editMember": "編輯成員",
|
|
322
|
+
"searchUser": "搜尋用戶",
|
|
323
|
+
"username": "帳號",
|
|
324
|
+
"displayName": "顯示名稱",
|
|
325
|
+
"email": "電子郵件",
|
|
326
|
+
"phone": "手機號碼",
|
|
327
|
+
"department": "部門",
|
|
328
|
+
"role": "角色",
|
|
329
|
+
"status": "狀態",
|
|
330
|
+
"lastActive": "最近活躍",
|
|
331
|
+
"createdAt": "建立時間",
|
|
332
|
+
"lastLogin": "最近登入",
|
|
333
|
+
"userCreated": "用戶已建立",
|
|
334
|
+
"userUpdated": "用戶資訊已更新",
|
|
335
|
+
"selectedRemoved": "所選成員已移除",
|
|
336
|
+
"enabledSelected": "已啟用所選成員",
|
|
337
|
+
"disabledSelected": "已停用所選成員",
|
|
338
|
+
"searchPlaceholder": "搜尋成員、電子郵件、部門或角色",
|
|
339
|
+
"filterByName": "依成員姓名篩選",
|
|
340
|
+
"confirmRemove": "移除後該用戶將無法登入,確定要移除嗎?",
|
|
341
|
+
"confirmToggleStatus": "確認更新該成員的帳號狀態嗎?",
|
|
342
|
+
"confirmBatchEnable": "確認啟用所選成員嗎?",
|
|
343
|
+
"confirmBatchDisable": "確認停用所選成員嗎?",
|
|
344
|
+
"confirmBatchRemove": "移除後所選成員將無法訪問目前工作區。",
|
|
345
|
+
"roleNameSeparator": "、",
|
|
346
|
+
"departments": {
|
|
347
|
+
"platform": "平台產品",
|
|
348
|
+
"growth": "增長營運",
|
|
349
|
+
"analytics": "資料分析",
|
|
350
|
+
"customer": "客戶成功"
|
|
351
|
+
},
|
|
352
|
+
"form": {
|
|
353
|
+
"username": "帳號",
|
|
354
|
+
"usernamePlaceholder": "請輸入帳號",
|
|
355
|
+
"displayName": "顯示名稱",
|
|
356
|
+
"displayNamePlaceholder": "請輸入顯示名稱",
|
|
357
|
+
"email": "電子郵件",
|
|
358
|
+
"emailPlaceholder": "請輸入電子郵件",
|
|
359
|
+
"phone": "手機號碼",
|
|
360
|
+
"phonePlaceholder": "請輸入手機號碼",
|
|
361
|
+
"roles": "角色",
|
|
362
|
+
"rolesPlaceholder": "請選擇角色",
|
|
363
|
+
"status": "狀態",
|
|
364
|
+
"password": "密碼",
|
|
365
|
+
"passwordPlaceholder": "請輸入密碼",
|
|
366
|
+
"confirmPassword": "確認密碼",
|
|
367
|
+
"confirmPasswordPlaceholder": "請再次輸入密碼"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"roles": {
|
|
371
|
+
"title": "角色管理",
|
|
372
|
+
"addRole": "新增角色",
|
|
373
|
+
"editRole": "編輯角色",
|
|
374
|
+
"roleName": "角色名稱",
|
|
375
|
+
"roleCode": "角色識別碼",
|
|
376
|
+
"responsibility": "職責說明",
|
|
377
|
+
"memberCount": "成員數",
|
|
378
|
+
"status": "狀態",
|
|
379
|
+
"updatedAt": "最近更新",
|
|
380
|
+
"roleCreated": "角色已建立",
|
|
381
|
+
"roleUpdated": "角色資訊已更新",
|
|
382
|
+
"enabledSelected": "已啟用所選角色",
|
|
383
|
+
"disabledSelected": "已停用所選角色",
|
|
384
|
+
"selectedRemoved": "已移除所選角色",
|
|
385
|
+
"confirmToggleStatus": "確認更新該角色的狀態嗎?",
|
|
386
|
+
"confirmRemove": "移除角色不會刪除成員,但成員將失去其角色授權。",
|
|
387
|
+
"confirmBatchEnable": "確認啟用所選角色嗎?",
|
|
388
|
+
"confirmBatchDisable": "確認停用所選角色嗎?",
|
|
389
|
+
"confirmBatchRemove": "移除後成員將失去對應角色授權。",
|
|
390
|
+
"searchPlaceholder": "搜尋角色名稱、識別碼或職責說明",
|
|
391
|
+
"filterByName": "依角色名稱篩選",
|
|
392
|
+
"form": {
|
|
393
|
+
"name": "角色名稱",
|
|
394
|
+
"namePlaceholder": "例如:營運管理員",
|
|
395
|
+
"code": "角色識別碼",
|
|
396
|
+
"codePlaceholder": "例如:operations_admin",
|
|
397
|
+
"codeRuleMessage": "使用 3-32 位小寫字母、數字或底線",
|
|
398
|
+
"description": "角色說明",
|
|
399
|
+
"descriptionPlaceholder": "說明該角色可承擔的職責範圍",
|
|
400
|
+
"permissions": "權限範圍",
|
|
401
|
+
"permissionsPlaceholder": "選擇頁面與可執行操作",
|
|
402
|
+
"status": "啟用狀態"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"menus": {
|
|
406
|
+
"title": "選單管理",
|
|
407
|
+
"addMenu": "新增選單",
|
|
408
|
+
"editMenu": "編輯選單",
|
|
409
|
+
"menuName": "選單名稱",
|
|
410
|
+
"code": "編碼",
|
|
411
|
+
"path": "路由路徑",
|
|
412
|
+
"permission": "權限編碼",
|
|
413
|
+
"kind": "類型",
|
|
414
|
+
"kindPage": "頁面",
|
|
415
|
+
"kindDirectory": "目錄",
|
|
416
|
+
"kindButton": "按鈕權限",
|
|
417
|
+
"componentKey": "頁面能力",
|
|
418
|
+
"status": "狀態",
|
|
419
|
+
"published": "已發布",
|
|
420
|
+
"unpublished": "未發布",
|
|
421
|
+
"updatedAt": "最近更新",
|
|
422
|
+
"menuCreated": "選單已建立並發布到動態路由",
|
|
423
|
+
"menuUpdated": "選單已更新,授權範圍已重新計算",
|
|
424
|
+
"menuPublished": "選單已發布",
|
|
425
|
+
"menuUnpublished": "選單已停止發布",
|
|
426
|
+
"selectedDeleted": "所選選單已刪除",
|
|
427
|
+
"menuDeleted": "選單已刪除",
|
|
428
|
+
"confirmTogglePublish": "確認更新該選單的發布狀態嗎?",
|
|
429
|
+
"confirmDelete": "刪除後路由、導覽和分頁將立即收斂,確認繼續嗎?",
|
|
430
|
+
"searchPlaceholder": "搜尋選單名稱、編碼或路由路徑",
|
|
431
|
+
"nodeType": "節點類型",
|
|
432
|
+
"publishStatus": "發布狀態",
|
|
433
|
+
"batchPublish": "批次發布",
|
|
434
|
+
"batchUnpublish": "批次停用",
|
|
435
|
+
"batchDelete": "批次刪除",
|
|
436
|
+
"confirmBatchPublish": "確認發布所選選單嗎?",
|
|
437
|
+
"confirmBatchUnpublish": "確認停止發布所選選單嗎?",
|
|
438
|
+
"confirmBatchDelete": "確認刪除所選選單嗎?",
|
|
439
|
+
"errors": {
|
|
440
|
+
"formRequired": "請完整填寫選單基礎資訊",
|
|
441
|
+
"codeInvalid": "選單編碼格式不正確",
|
|
442
|
+
"buttonRequiresPage": "按鈕權限必須選擇所屬頁面並填寫權限編碼",
|
|
443
|
+
"pathRequired": "請填寫選單路由路徑",
|
|
444
|
+
"submenuRelativePath": "子選單應使用相對路由路徑",
|
|
445
|
+
"rootPathSlash": "根選單路由必須以 / 開頭",
|
|
446
|
+
"componentRequired": "請選擇已註冊的頁面能力",
|
|
447
|
+
"treeCycle": "選單父子關係存在循環參照",
|
|
448
|
+
"treeOrphanParent": "上層選單不存在或已被刪除",
|
|
449
|
+
"treeDuplicateId": "選單識別碼重複",
|
|
450
|
+
"treeDuplicateCode": "選單編碼重複",
|
|
451
|
+
"treeDuplicatePath": "解析後的路由路徑重複",
|
|
452
|
+
"treeAmbiguousParent": "上層路由路徑存在歧義",
|
|
453
|
+
"treeUnresolvedParent": "上層路由路徑無法解析",
|
|
454
|
+
"treePrecheckFailed": "選單樹校驗未通過",
|
|
455
|
+
"treeTitleKeyMissing": "選單標題缺少翻譯鍵",
|
|
456
|
+
"treeDetail": "詳情:{detail}",
|
|
457
|
+
"titleKeyRequired": "請輸入選單標題翻譯鍵",
|
|
458
|
+
"versionConflict": "選單已被他人修改,請重新整理後再試"
|
|
459
|
+
},
|
|
460
|
+
"form": {
|
|
461
|
+
"kind": "節點類型",
|
|
462
|
+
"redirect": "目錄重定向",
|
|
463
|
+
"redirectPlaceholder": "留空則回退到首頁路由",
|
|
464
|
+
"parentButton": "所屬頁面",
|
|
465
|
+
"parentDirectory": "上級目錄",
|
|
466
|
+
"rootDirectory": "根目錄",
|
|
467
|
+
"title": "選單名稱",
|
|
468
|
+
"titlePlaceholder": "例如:元件覆蓋率",
|
|
469
|
+
"titleKey": "標題翻譯鍵",
|
|
470
|
+
"titleKeyPlaceholder": "例如:menus.coverage.title",
|
|
471
|
+
"titleKeyRuleMessage": "使用字母開頭的翻譯鍵,可含字母、數字、點或連字號",
|
|
472
|
+
"code": "選單編碼",
|
|
473
|
+
"codePlaceholder": "例如:user-list",
|
|
474
|
+
"codeRuleMessage": "使用 3-48 位小寫字母、數字或連字號",
|
|
475
|
+
"path": "路由路徑",
|
|
476
|
+
"pathPlaceholder": "根選單以 / 開頭,子選單使用相對路徑",
|
|
477
|
+
"componentKey": "頁面能力",
|
|
478
|
+
"componentPlaceholder": "選擇已註冊的頁面能力",
|
|
479
|
+
"permission": "按鈕權限編碼",
|
|
480
|
+
"permissionPlaceholder": "例如:system:user:approve",
|
|
481
|
+
"permissionRuleMessage": "使用 3-64 位小寫權限編碼",
|
|
482
|
+
"icon": "圖示識別碼",
|
|
483
|
+
"iconPlaceholder": "例如:coverage",
|
|
484
|
+
"order": "排序",
|
|
485
|
+
"status": "發布狀態",
|
|
486
|
+
"visible": "在導覽中顯示",
|
|
487
|
+
"show": "顯示",
|
|
488
|
+
"hide": "隱藏",
|
|
489
|
+
"cache": "快取頁面",
|
|
490
|
+
"on": "開啟",
|
|
491
|
+
"off": "關閉",
|
|
492
|
+
"tabHidden": "隱藏分頁"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"access": {
|
|
496
|
+
"revision": {
|
|
497
|
+
"title": "權限已更新",
|
|
498
|
+
"body": "檢測到選單或權限配置已變更,是否立即重新整理?",
|
|
499
|
+
"refreshNow": "立即重新整理"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"audit": {
|
|
503
|
+
"title": "稽核日誌",
|
|
504
|
+
"occurredAt": "發生時間",
|
|
505
|
+
"actor": "操作人",
|
|
506
|
+
"action": "操作",
|
|
507
|
+
"targetType": "物件類型",
|
|
508
|
+
"targetName": "目標物件",
|
|
509
|
+
"detail": "變更說明",
|
|
510
|
+
"targetUser": "成員",
|
|
511
|
+
"targetRole": "角色",
|
|
512
|
+
"targetMenu": "選單",
|
|
513
|
+
"targetAuthorization": "授權",
|
|
514
|
+
"searchPlaceholder": "搜尋操作人、物件或變更說明"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OG_DIALOG_LOCALE_ZH_TW } from '@origen-ui/dialog/locale'
|
|
2
|
+
import { OG_EDITOR_LOCALE_ZH_TW } from '@origen-ui/editor/locale'
|
|
3
|
+
import { OG_FORM_TABLE_LOCALE_ZH_TW } from '@origen-ui/form-table/locale'
|
|
4
|
+
import { OG_FORM_LOCALE_ZH_TW } from '@origen-ui/form/locale'
|
|
5
|
+
import { OG_SEARCH_LOCALE_ZH_TW } from '@origen-ui/search/locale'
|
|
6
|
+
import { OG_TABLE_LOCALE_ZH_TW } from '@origen-ui/table/locale'
|
|
7
|
+
import { OG_TABS_LOCALE_ZH_TW } from '@origen-ui/tabs/locale'
|
|
8
|
+
import { OG_UPLOAD_LOCALE_ZH_TW } from '@origen-ui/upload/locale'
|
|
9
|
+
import zhTwElement from 'element-plus/es/locale/lang/zh-tw'
|
|
10
|
+
|
|
11
|
+
export const elementPlus = zhTwElement
|
|
12
|
+
|
|
13
|
+
export const origenUi = {
|
|
14
|
+
dialog: OG_DIALOG_LOCALE_ZH_TW,
|
|
15
|
+
editor: OG_EDITOR_LOCALE_ZH_TW,
|
|
16
|
+
form: OG_FORM_LOCALE_ZH_TW,
|
|
17
|
+
formTable: OG_FORM_TABLE_LOCALE_ZH_TW,
|
|
18
|
+
search: OG_SEARCH_LOCALE_ZH_TW,
|
|
19
|
+
table: OG_TABLE_LOCALE_ZH_TW,
|
|
20
|
+
tabs: OG_TABS_LOCALE_ZH_TW,
|
|
21
|
+
upload: OG_UPLOAD_LOCALE_ZH_TW,
|
|
22
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { createApp } from 'vue'
|
|
2
2
|
import App from './App.vue'
|
|
3
|
+
import { embeddedMode, readHostInjection, startEmbeddedBridge } from './app/embedded'
|
|
4
|
+
import { translateAdminError } from './app/errorMessage'
|
|
3
5
|
import { permission } from './app/permission'
|
|
4
6
|
import { useAuthStore } from './features/auth/store/auth'
|
|
5
7
|
import { devtoolsProtection } from './features/security/devtoolsProtection'
|
|
8
|
+
import { translateAdminMessage } from './locales'
|
|
9
|
+
import { replaceDynamicMenusWithAccessibleFallback } from './router/dynamicMenuRefresh'
|
|
6
10
|
import { createRuntimeErrorRecovery, createStaleAssetRecovery } from './router/runtimeErrorRecovery'
|
|
7
11
|
import { pinia } from './store'
|
|
8
12
|
import 'element-plus/theme-chalk/src/tabs.scss'
|
|
@@ -12,13 +16,19 @@ import './styles/index.css'
|
|
|
12
16
|
import './styles/layout.css'
|
|
13
17
|
import './styles/shell.css'
|
|
14
18
|
|
|
19
|
+
function tOrFallback(key: string, fallback: string): string {
|
|
20
|
+
return translateAdminMessage(key, { fallback })
|
|
21
|
+
}
|
|
22
|
+
|
|
15
23
|
async function notifyRuntimeError(message: string): Promise<void> {
|
|
16
24
|
const { ElMessage } = await import('element-plus/es/components/message/index.mjs')
|
|
17
25
|
ElMessage.error(message)
|
|
18
26
|
}
|
|
19
27
|
|
|
20
28
|
async function bootstrap(): Promise<void> {
|
|
21
|
-
|
|
29
|
+
// 嵌入模式:devtools 窗口尺寸探测在 iframe 内会误判,交由主壳统一负责
|
|
30
|
+
if (!embeddedMode) devtoolsProtection.start()
|
|
31
|
+
else startEmbeddedBridge()
|
|
22
32
|
const { createAdminI18n, createAdminTitleResolver } = await import('./locales')
|
|
23
33
|
const { i18n, language } = createAdminI18n()
|
|
24
34
|
const { initializeRouting } = await import('./router/bootstrap')
|
|
@@ -46,43 +56,61 @@ async function bootstrap(): Promise<void> {
|
|
|
46
56
|
language.install(app)
|
|
47
57
|
const { createAdminUi } = await import('./app/createAdminUi')
|
|
48
58
|
app.use(createAdminUi(language))
|
|
59
|
+
// 唯一的 errorHandler 装配点:运行期错误统一走提示 + 陈旧资源/运行时恢复,
|
|
60
|
+
// 不再在启动后半程二次覆盖装配。
|
|
49
61
|
app.config.errorHandler = (error: unknown) => {
|
|
50
|
-
|
|
62
|
+
console.error('[admin] runtime error', error)
|
|
63
|
+
const message = translateAdminError(error, {
|
|
64
|
+
fallbackKey: 'common.errors.unknownPageError',
|
|
65
|
+
fallback: '页面发生未知错误',
|
|
66
|
+
})
|
|
51
67
|
void notifyRuntimeError(message)
|
|
68
|
+
if (!staleAssetRecovery.handle(error)) recoverRuntimeError()
|
|
52
69
|
}
|
|
53
70
|
|
|
54
71
|
const auth = useAuthStore(pinia)
|
|
72
|
+
// Wait for language.init to complete before the first request so the
|
|
73
|
+
// initial Accept-Language header is correct (no temporary zh-CN).
|
|
74
|
+
await language.ready
|
|
55
75
|
const session = await auth.fetchSession()
|
|
56
76
|
app.use(routing)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
77
|
+
// 路由就绪是硬性等待;布局仅在登录态下并行预热。catch-tap 保证路由先失败
|
|
78
|
+
// 时预热 rejection 不会变成 unhandled——两个失败最终都按启动失败上报。
|
|
79
|
+
const layoutPreload = session ? import('./layouts/AdminLayout.vue') : undefined
|
|
80
|
+
layoutPreload?.catch(() => {})
|
|
81
|
+
await routing.ready()
|
|
82
|
+
await layoutPreload
|
|
83
|
+
// 嵌入模式:iframe 继承主壳路径,子应用路由按主壳下发的初始路径导航
|
|
84
|
+
if (embeddedMode) {
|
|
85
|
+
const initialPath = String(readHostInjection().initialPath ?? '/')
|
|
86
|
+
// initialPath is a first-mount snapshot only. Later paths are applied by
|
|
87
|
+
// the host through microApp.router.replace after the iframe is mounted;
|
|
88
|
+
// routing from a child data-listener deadlocks with the sandbox lifecycle.
|
|
89
|
+
await routing.router.replace(initialPath).catch(() => {})
|
|
90
|
+
}
|
|
63
91
|
const { authorizationRefreshKey } =
|
|
64
92
|
await import('./features/system/access/composables/useAuthorizationRefresh')
|
|
65
|
-
app.config.errorHandler = (error, instance, info) => {
|
|
66
|
-
reportRuntimeError?.(error, instance, info)
|
|
67
|
-
if (!staleAssetRecovery.handle(error)) recoverRuntimeError()
|
|
68
|
-
}
|
|
69
93
|
app.provide(authorizationRefreshKey, async () => {
|
|
70
94
|
await auth.refreshAuthorization()
|
|
71
|
-
await routing
|
|
95
|
+
await replaceDynamicMenusWithAccessibleFallback(routing)
|
|
72
96
|
})
|
|
73
97
|
app.mount('#app')
|
|
74
98
|
staleAssetRecovery.clear()
|
|
75
99
|
}
|
|
76
100
|
|
|
77
101
|
void bootstrap().catch((error: unknown) => {
|
|
78
|
-
|
|
102
|
+
console.error('[admin] startup failed', error)
|
|
103
|
+
const message = translateAdminError(error, {
|
|
104
|
+
fallbackKey: 'common.errors.startupFailed',
|
|
105
|
+
fallback: '应用启动失败',
|
|
106
|
+
})
|
|
79
107
|
const root = document.querySelector('#app')
|
|
80
108
|
if (root) {
|
|
81
109
|
const panel = document.createElement('main')
|
|
82
110
|
panel.style.padding = '32px'
|
|
83
111
|
panel.style.fontFamily = 'system-ui, sans-serif'
|
|
84
112
|
const heading = document.createElement('h1')
|
|
85
|
-
heading.textContent = '@origen-ui/admin 启动失败'
|
|
113
|
+
heading.textContent = `${'@origen-ui/admin'} ${tOrFallback('common.errors.startupFailed', '启动失败')}`
|
|
86
114
|
const detail = document.createElement('p')
|
|
87
115
|
detail.textContent = message
|
|
88
116
|
panel.append(heading, detail)
|