@allbluecn/admin-app 0.2.0 → 0.2.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/package.json +8 -8
- package/src/components/admin/admin-user-menu.tsx +12 -6
- package/src/components/admin/developer-log.tsx +42 -44
- package/src/components/ai-provider/model-list-editor.tsx +5 -4
- package/src/components/ai-provider/provider-form.tsx +63 -64
- package/src/components/ai-provider/provider-table.tsx +35 -36
- package/src/components/auth/admin-login-form.tsx +23 -24
- package/src/components/auth/oauth-section.tsx +3 -5
- package/src/components/auth/password-input.tsx +2 -3
- package/src/components/common/placeholder-page.tsx +2 -4
- package/src/components/component/component-form-dialog.tsx +48 -49
- package/src/components/component/component-import-dialog.tsx +5 -5
- package/src/components/component/component-table.tsx +13 -14
- package/src/components/data-table/data-table-pagination.tsx +4 -6
- package/src/components/data-table/table-detail-layout.tsx +2 -3
- package/src/components/dependency/changelog-dialog.tsx +3 -4
- package/src/components/dependency/columns.tsx +32 -24
- package/src/components/dependency/dependency-table.tsx +37 -29
- package/src/components/dependency/edit-dialog.tsx +24 -25
- package/src/components/knowledge-public/bookmark-form-dialog.tsx +7 -7
- package/src/components/knowledge-public/compliance-form-dialog.tsx +13 -13
- package/src/components/knowledge-public/legal-form-dialog.tsx +51 -46
- package/src/components/layout/sidebar-02/app-sidebar.tsx +33 -34
- package/src/components/layout/sidebar-02/nav-main.tsx +1 -1
- package/src/components/market/columns.tsx +20 -21
- package/src/components/market/market-app-form.tsx +45 -38
- package/src/components/market/market-app-list.tsx +16 -17
- package/src/components/monitoring/error-list.tsx +18 -19
- package/src/components/monitoring/health-cards.tsx +11 -13
- package/src/components/monitoring/metrics-stats.tsx +11 -12
- package/src/components/monitoring/request-log-table.tsx +8 -9
- package/src/components/ui/pagination.tsx +0 -2
- package/src/components/ui/sidebar.tsx +1 -1
- package/src/components/user/columns.tsx +9 -9
- package/src/components/user/settings-activity-log.tsx +39 -29
- package/src/components/user/settings-profile.tsx +36 -36
- package/src/components/user/user-create-dialog.tsx +4 -4
- package/src/components/user/user-filters.tsx +16 -18
- package/src/lib/i18n/config.ts +0 -32
- package/src/providers/index.tsx +6 -16
- package/src/routeTree.gen.ts +1199 -0
- package/src/routes/__root.tsx +9 -23
- package/src/routes/_nav/apps/route.lazy.tsx +2 -3
- package/src/routes/_nav/audit/route.lazy.tsx +10 -11
- package/src/routes/_nav/billing/invoices/route.lazy.tsx +6 -7
- package/src/routes/_nav/billing/route.lazy.tsx +3 -4
- package/src/routes/_nav/billing/subscriptions/$subscriptionId/route.lazy.tsx +16 -17
- package/src/routes/_nav/billing/subscriptions/route.lazy.tsx +9 -10
- package/src/routes/_nav/compliance/route.lazy.tsx +34 -35
- package/src/routes/_nav/components/route.lazy.tsx +6 -6
- package/src/routes/_nav/dashboard/route.lazy.tsx +3 -5
- package/src/routes/_nav/dependencies/route.lazy.tsx +7 -8
- package/src/routes/_nav/docs/route.lazy.tsx +2 -3
- package/src/routes/_nav/knowledge-public/bookmarks/route.lazy.tsx +40 -41
- package/src/routes/_nav/knowledge-public/compliance/route.lazy.tsx +32 -33
- package/src/routes/_nav/knowledge-public/legal/route.lazy.tsx +32 -33
- package/src/routes/_nav/licenses/$licenseId/route.lazy.tsx +24 -31
- package/src/routes/_nav/licenses/new/route.lazy.tsx +25 -26
- package/src/routes/_nav/licenses/route.lazy.tsx +17 -18
- package/src/routes/_nav/monitoring/ai-usage/route.lazy.tsx +26 -27
- package/src/routes/_nav/monitoring/errors/route.lazy.tsx +11 -12
- package/src/routes/_nav/monitoring/health/route.lazy.tsx +18 -20
- package/src/routes/_nav/monitoring/logs/route.lazy.tsx +12 -13
- package/src/routes/_nav/monitoring/metrics/route.lazy.tsx +13 -15
- package/src/routes/_nav/monitoring/overview/route.lazy.tsx +12 -13
- package/src/routes/_nav/monitoring/route.lazy.tsx +8 -9
- package/src/routes/_nav/monitoring/sentry/route.lazy.tsx +55 -57
- package/src/routes/_nav/permissions/route.lazy.tsx +48 -50
- package/src/routes/_nav/settings/route.lazy.tsx +2 -3
- package/src/routes/_nav/sso/route.lazy.tsx +20 -18
- package/src/routes/_nav/users/$userId/route.lazy.tsx +86 -82
- package/src/routes/_nav/users/route.lazy.tsx +4 -5
- package/src/routes/setup/route.lazy.tsx +15 -16
- package/src/start.ts +2 -2
- package/src/lib/i18n/client.ts +0 -32
- package/src/lib/i18n/locales/en/admin-ai.json +0 -128
- package/src/lib/i18n/locales/en/admin-billing.json +0 -56
- package/src/lib/i18n/locales/en/admin-users.json +0 -88
- package/src/lib/i18n/locales/en/common.json +0 -877
- package/src/lib/i18n/locales/en/enterprise.json +0 -208
- package/src/lib/i18n/locales/zh/admin-ai.json +0 -128
- package/src/lib/i18n/locales/zh/admin-billing.json +0 -56
- package/src/lib/i18n/locales/zh/admin-users.json +0 -88
- package/src/lib/i18n/locales/zh/common.json +0 -877
- package/src/lib/i18n/locales/zh/enterprise.json +0 -208
- package/src/lib/i18n/server.ts +0 -18
- package/src/lib/i18n/types.ts +0 -5
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"page": {
|
|
3
|
-
"title": "企业治理",
|
|
4
|
-
"description": "管理企业级许可、审计、SSO 与合规"
|
|
5
|
-
},
|
|
6
|
-
"license": {
|
|
7
|
-
"title": "许可证管理",
|
|
8
|
-
"status": "许可证状态",
|
|
9
|
-
"key": "许可证 Key",
|
|
10
|
-
"issuedAt": "签发时间",
|
|
11
|
-
"expiresAt": "过期时间",
|
|
12
|
-
"maxUsers": "最大用户数",
|
|
13
|
-
"usedUsers": "已用用户数",
|
|
14
|
-
"features": "功能列表",
|
|
15
|
-
"active": "有效",
|
|
16
|
-
"expired": "已过期",
|
|
17
|
-
"gracePeriod": "宽限期",
|
|
18
|
-
"pendingActivation": "待激活",
|
|
19
|
-
"managementTitle": "License 管理",
|
|
20
|
-
"issue": "签发 License",
|
|
21
|
-
"count": "共 {{count}} 个 License",
|
|
22
|
-
"empty": "暂无 License 记录",
|
|
23
|
-
"customer": "客户",
|
|
24
|
-
"email": "邮箱",
|
|
25
|
-
"plan": "方案",
|
|
26
|
-
"seats": "席位",
|
|
27
|
-
"activationCount": "激活数",
|
|
28
|
-
"expiresAtLabel": "过期时间",
|
|
29
|
-
"revoked": "已吊销",
|
|
30
|
-
"notYet": "暂未过期",
|
|
31
|
-
"action": "操作",
|
|
32
|
-
"detail": "详情",
|
|
33
|
-
"detailTitle": "License 详情",
|
|
34
|
-
"revokedToast": "该 License 已被吊销",
|
|
35
|
-
"revokedSuccess": "License 已吊销",
|
|
36
|
-
"revoke": "吊销 License",
|
|
37
|
-
"basicInfo": "基本信息",
|
|
38
|
-
"customerId": "客户 ID",
|
|
39
|
-
"issuer": "签发人",
|
|
40
|
-
"permanent": "永久",
|
|
41
|
-
"featureAuthorization": "功能授权",
|
|
42
|
-
"noFeatureAuthorization": "无特殊功能授权",
|
|
43
|
-
"keyTitle": "License Key(前 20 位)",
|
|
44
|
-
"activationsTitle": "激活实例({{count}})",
|
|
45
|
-
"instance": "实例",
|
|
46
|
-
"activatedAt": "激活于 {{date}}",
|
|
47
|
-
"fingerprint": "指纹 {{fingerprint}}...",
|
|
48
|
-
"lastActive": "最后活跃 {{date}}",
|
|
49
|
-
"neverActive": "从未活跃"
|
|
50
|
-
},
|
|
51
|
-
"audit": {
|
|
52
|
-
"title": "审计日志",
|
|
53
|
-
"event": "事件",
|
|
54
|
-
"actor": "操作人",
|
|
55
|
-
"target": "目标",
|
|
56
|
-
"action": "操作",
|
|
57
|
-
"timestamp": "时间",
|
|
58
|
-
"ip": "IP 地址",
|
|
59
|
-
"userAgent": "User Agent",
|
|
60
|
-
"result": "结果",
|
|
61
|
-
"success": "成功",
|
|
62
|
-
"failure": "失败"
|
|
63
|
-
},
|
|
64
|
-
"sso": {
|
|
65
|
-
"title": "SSO 配置",
|
|
66
|
-
"provider": "身份提供方",
|
|
67
|
-
"type": "协议类型",
|
|
68
|
-
"enabled": "已启用",
|
|
69
|
-
"disabled": "已停用",
|
|
70
|
-
"domain": "域名",
|
|
71
|
-
"entityId": "Entity ID",
|
|
72
|
-
"metadataUrl": "元数据 URL",
|
|
73
|
-
"syncEnabled": "用户同步",
|
|
74
|
-
"justInTime": "即时配置"
|
|
75
|
-
},
|
|
76
|
-
"permissions": {
|
|
77
|
-
"title": "权限管理",
|
|
78
|
-
"subtitle": "管理工作空间内的角色与权限分配",
|
|
79
|
-
"role": "角色",
|
|
80
|
-
"scope": "权限范围",
|
|
81
|
-
"grant": "授予",
|
|
82
|
-
"revoke": "撤销",
|
|
83
|
-
"inherited": "继承",
|
|
84
|
-
"custom": "自定义",
|
|
85
|
-
"workspaceLabel": "工作空间:",
|
|
86
|
-
"empty": "当前工作空间暂无角色,系统将自动装配预置角色",
|
|
87
|
-
"createRole": "新建角色",
|
|
88
|
-
"createRoleDesc": "创建一个自定义角色,配置各资源的权限级别",
|
|
89
|
-
"roleName": "角色名称",
|
|
90
|
-
"roleNamePlaceholder": "输入角色名称(如 内容编辑)",
|
|
91
|
-
"permissionsMatrix": "权限矩阵(资源 × 操作)",
|
|
92
|
-
"level": {
|
|
93
|
-
"admin": "管理",
|
|
94
|
-
"write": "写",
|
|
95
|
-
"read": "读",
|
|
96
|
-
"none": "无"
|
|
97
|
-
},
|
|
98
|
-
"type": {
|
|
99
|
-
"system": "系统",
|
|
100
|
-
"custom": "自定义"
|
|
101
|
-
},
|
|
102
|
-
"table": {
|
|
103
|
-
"role": "角色",
|
|
104
|
-
"type": "类型",
|
|
105
|
-
"members": "成员数",
|
|
106
|
-
"permissions": "权限",
|
|
107
|
-
"actions": "操作"
|
|
108
|
-
},
|
|
109
|
-
"action": {
|
|
110
|
-
"createRole": "新建角色",
|
|
111
|
-
"delete": "删除",
|
|
112
|
-
"notAvailable": "不可删除",
|
|
113
|
-
"viewAssignments": "查看分配"
|
|
114
|
-
},
|
|
115
|
-
"assign": "分配用户({{name}})",
|
|
116
|
-
"assignDesc": "搜索用户 ID 并将其分配到该角色",
|
|
117
|
-
"assignUser": "分配",
|
|
118
|
-
"unassign": "移除分配",
|
|
119
|
-
"searchUserPlaceholder": "输入用户 ID",
|
|
120
|
-
"noAssignments": "暂无用户分配到该角色",
|
|
121
|
-
"dialog": {
|
|
122
|
-
"cancel": "取消",
|
|
123
|
-
"create": "创建",
|
|
124
|
-
"close": "关闭"
|
|
125
|
-
},
|
|
126
|
-
"toast": {
|
|
127
|
-
"systemRole": "系统预置角色不可删除",
|
|
128
|
-
"deleted": "角色 {{name}} 已删除",
|
|
129
|
-
"created": "角色 {{name}} 已创建",
|
|
130
|
-
"assigned": "用户已分配到角色",
|
|
131
|
-
"unassigned": "用户已从角色中移除",
|
|
132
|
-
"nameRequired": "请输入角色名称",
|
|
133
|
-
"seedDone": "系统预置角色已装配"
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
"compliance": {
|
|
137
|
-
"title": "合规管理",
|
|
138
|
-
"policy": "策略",
|
|
139
|
-
"status": "状态",
|
|
140
|
-
"lastReview": "上次审核",
|
|
141
|
-
"nextReview": "下次审核",
|
|
142
|
-
"dataResidency": "数据驻留",
|
|
143
|
-
"encryption": "加密方式",
|
|
144
|
-
"retentionDays": "保留天数",
|
|
145
|
-
"certified": "已认证",
|
|
146
|
-
"pendingReview": "待审核",
|
|
147
|
-
"export": {
|
|
148
|
-
"title": "合规导出任务",
|
|
149
|
-
"subtitle": "共 {{count}} 个导出/删除任务",
|
|
150
|
-
"empty": "暂无合规导出任务",
|
|
151
|
-
"type": {
|
|
152
|
-
"export": "导出",
|
|
153
|
-
"delete": "删除"
|
|
154
|
-
},
|
|
155
|
-
"scope": {
|
|
156
|
-
"user": "用户",
|
|
157
|
-
"workspace": "工作空间"
|
|
158
|
-
},
|
|
159
|
-
"status": {
|
|
160
|
-
"pending": "待处理",
|
|
161
|
-
"processing": "处理中",
|
|
162
|
-
"completed": "已完成",
|
|
163
|
-
"failed": "失败",
|
|
164
|
-
"expired": "已过期"
|
|
165
|
-
},
|
|
166
|
-
"table": {
|
|
167
|
-
"type": "类型",
|
|
168
|
-
"scope": "范围",
|
|
169
|
-
"target": "目标",
|
|
170
|
-
"status": "状态",
|
|
171
|
-
"requester": "请求人",
|
|
172
|
-
"createdAt": "创建时间",
|
|
173
|
-
"error": "错误信息",
|
|
174
|
-
"actions": "操作"
|
|
175
|
-
},
|
|
176
|
-
"actions": {
|
|
177
|
-
"execute": "执行",
|
|
178
|
-
"processing": "执行中...",
|
|
179
|
-
"download": "下载",
|
|
180
|
-
"expired": "已过期"
|
|
181
|
-
},
|
|
182
|
-
"toast": {
|
|
183
|
-
"executed": "已提交执行",
|
|
184
|
-
"executeFailed": "执行失败"
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
"issue": {
|
|
189
|
-
"title": "签发 License",
|
|
190
|
-
"enterpriseTitle": "企业版 License 签发",
|
|
191
|
-
"description": "License 签发依赖 Ed25519 私钥,需要企业版环境。",
|
|
192
|
-
"alertTitle": "需要企业版环境",
|
|
193
|
-
"alertDescription": "License 签发功能需要配置 <code>LICENSE_SIGNING_PRIVATE_KEY</code> 环境变量,该私钥仅在企业版部署环境中提供。开源版不支持签发 License。请联系 AllBlue 团队获取企业版 License。",
|
|
194
|
-
"successTitle": "签发成功",
|
|
195
|
-
"keyOnceTitle": "请立即复制保存 license key",
|
|
196
|
-
"keyOnceDescription": "该 key 仅此次展示,关闭页面后无法再次获取完整内容。",
|
|
197
|
-
"customerName": "客户名称",
|
|
198
|
-
"customerEmail": "客户邮箱",
|
|
199
|
-
"customerId": "客户 ID",
|
|
200
|
-
"plan": "授权方案",
|
|
201
|
-
"planHint": "输入 Plan 名称(如 enterprise / pro),须与 Plan 表中的 name 字段一致",
|
|
202
|
-
"seats": "授权席位数",
|
|
203
|
-
"expiresAt": "到期日期",
|
|
204
|
-
"expiresAtHint": "留空 = 永久授权",
|
|
205
|
-
"features": "授权功能",
|
|
206
|
-
"submit": "签发 license"
|
|
207
|
-
}
|
|
208
|
-
}
|
package/src/lib/i18n/server.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
-
import i18next from 'i18next'
|
|
3
|
-
import { initReactI18next } from 'react-i18next'
|
|
4
|
-
import { resources, fallbackLng, defaultNs, type AppLocale } from './config'
|
|
5
|
-
|
|
6
|
-
export function createServerI18n(locale: AppLocale) {
|
|
7
|
-
const i18n = i18next.createInstance()
|
|
8
|
-
i18n.use(initReactI18next)
|
|
9
|
-
i18n.init({
|
|
10
|
-
lng: locale,
|
|
11
|
-
fallbackLng,
|
|
12
|
-
defaultNS: defaultNs,
|
|
13
|
-
resources,
|
|
14
|
-
interpolation: { escapeValue: false },
|
|
15
|
-
react: { useSuspense: false },
|
|
16
|
-
})
|
|
17
|
-
return i18n
|
|
18
|
-
}
|