@autional/ui 0.1.0-rc.54 → 0.1.0-rc.55
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/LICENSE +661 -661
- package/package.json +2 -2
- package/src/i18n/resources.ts +2 -0
- package/src/molecules/PortalSwitcher.tsx +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autional/ui",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.55",
|
|
4
4
|
"description": "Autional shared React component library (atoms + molecules) …the canonical home of the component layer",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"react-i18next": "17.0.7",
|
|
83
83
|
"typescript": "5.8.3",
|
|
84
84
|
"vitest": "3.2.0",
|
|
85
|
-
"@autional/tokens": "0.1.0-rc.
|
|
85
|
+
"@autional/tokens": "0.1.0-rc.18"
|
|
86
86
|
},
|
|
87
87
|
"scripts": {
|
|
88
88
|
"typecheck": "tsc --noEmit",
|
package/src/i18n/resources.ts
CHANGED
|
@@ -23,6 +23,7 @@ export const uiI18nResources: Record<'zh-CN' | 'en-US', Record<string, string>>
|
|
|
23
23
|
'portal.names.developer': '开发者门户',
|
|
24
24
|
'portal.names.landing': '门户首页',
|
|
25
25
|
'portal.names.brand': '品牌站',
|
|
26
|
+
'portal.names.secret': '密钥中心',
|
|
26
27
|
// 整页占位(控制台的 PageLoading / PageError)。文案与 admin 站点里原有的
|
|
27
28
|
// pageStatus.* 三键**逐字一致** —— 合并只许改实现,不许顺手改用户看到的字。
|
|
28
29
|
'modal.close': '关闭',
|
|
@@ -57,6 +58,7 @@ export const uiI18nResources: Record<'zh-CN' | 'en-US', Record<string, string>>
|
|
|
57
58
|
'portal.names.developer': 'Developer Portal',
|
|
58
59
|
'portal.names.landing': 'Home',
|
|
59
60
|
'portal.names.brand': 'Brand Site',
|
|
61
|
+
'portal.names.secret': 'Secret Center',
|
|
60
62
|
'modal.close': 'Close',
|
|
61
63
|
'pageStatus.loading': 'Loading...',
|
|
62
64
|
'pageStatus.loadError': 'Data loading failed',
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
Code2,
|
|
7
7
|
Globe,
|
|
8
8
|
KeyRound,
|
|
9
|
+
KeySquare,
|
|
9
10
|
LayoutGrid,
|
|
10
11
|
LogIn,
|
|
11
12
|
Settings,
|
|
@@ -53,6 +54,7 @@ const DEFAULT_PORTAL_ICONS: Record<string, React.ComponentType<{ className?: str
|
|
|
53
54
|
platform: Settings,
|
|
54
55
|
developer: Code2,
|
|
55
56
|
landing: Globe,
|
|
57
|
+
secret: KeySquare,
|
|
56
58
|
};
|
|
57
59
|
|
|
58
60
|
export function PortalSwitcher({
|