Restore account settings page

This commit is contained in:
2026-06-10 08:23:19 +08:00
parent 29820dc106
commit 28437074dc
22 changed files with 1804 additions and 0 deletions
+2
View File
@@ -21,6 +21,8 @@ const elementLocale = ref<Language>(defaultLocale);
const modules = import.meta.glob([
'./langs/*/about.json',
'./langs/*/account-settings.json',
'./langs/*/api-token.json',
'./langs/*/ai-platform.json',
'./langs/*/announcement.json',
'./langs/*/authentication.json',
@@ -0,0 +1,3 @@
{
"passwordLengthHint": "Password length must be 6-20 characters"
}
@@ -0,0 +1,37 @@
{
"title": "API Token",
"deviceManagement": "Device Management",
"description": "Create personal access tokens for automation calls.",
"loadError": "Failed to load tokens",
"nameRequired": "Please enter token name",
"createError": "Failed to create token",
"createToken": "Create Token",
"tokenName": "Token Name",
"tokenNamePlaceholder": "Enter token name",
"expirationDate": "Expiration",
"neverExpiresHint": "Leave empty for no expiration",
"tokenDescription": "Description",
"tokenDescriptionPlaceholder": "Enter description",
"tokenCreated": "Token Created",
"tokenWarning": "Copy and save this token now. It will not be shown again.",
"revokeTitle": "Revoke Token",
"revokeConfirm": "Revoke token \"{0}\"?",
"confirmRevoke": "Revoke",
"revokeSuccess": "Token revoked",
"revokeToken": "Revoke Token",
"copy": "Copy",
"copied": "Copied",
"copySuccess": "Copied to clipboard",
"copyError": "Copy failed",
"neverExpires": "Never expires",
"expired": "Expired",
"expiresSoon": "Expires in {0} days",
"createdAt": "Created",
"lastUsed": "Last used",
"empty": "No tokens",
"days7": "7 days",
"days30": "30 days",
"days60": "60 days",
"days90": "90 days",
"days365": "1 year"
}
@@ -11,6 +11,7 @@
"positionManagement": "Position Management",
"roleManagement": "Role Permission",
"userCenter": "User Center",
"accountSettings": "Account Settings",
"loginLog": "Login Log",
"databaseManagement": "Database Management",
"dbManagement": "DB Management",
@@ -0,0 +1,3 @@
{
"passwordLengthHint": "密码长度需为 6-20 位"
}
@@ -0,0 +1,37 @@
{
"title": "API Token",
"deviceManagement": "设备管理",
"description": "创建用于自动化调用的个人访问令牌。",
"loadError": "加载 Token 失败",
"nameRequired": "请输入 Token 名称",
"createError": "创建 Token 失败",
"createToken": "创建 Token",
"tokenName": "Token 名称",
"tokenNamePlaceholder": "请输入 Token 名称",
"expirationDate": "过期时间",
"neverExpiresHint": "不选择则永不过期",
"tokenDescription": "描述",
"tokenDescriptionPlaceholder": "请输入描述",
"tokenCreated": "Token 已创建",
"tokenWarning": "请立即复制保存 Token,关闭后将无法再次查看。",
"revokeTitle": "撤销 Token",
"revokeConfirm": "确定撤销 Token“{0}”吗?",
"confirmRevoke": "确认撤销",
"revokeSuccess": "Token 已撤销",
"revokeToken": "撤销 Token",
"copy": "复制",
"copied": "已复制",
"copySuccess": "已复制到剪贴板",
"copyError": "复制失败",
"neverExpires": "永不过期",
"expired": "已过期",
"expiresSoon": "{0} 天后过期",
"createdAt": "创建时间",
"lastUsed": "最后使用",
"empty": "暂无 Token",
"days7": "7 天",
"days30": "30 天",
"days60": "60 天",
"days90": "90 天",
"days365": "1 年"
}
@@ -11,6 +11,7 @@
"positionManagement": "岗位管理",
"roleManagement": "角色权限",
"userCenter": "用户中心",
"accountSettings": "账号设置",
"loginLog": "登录日志",
"databaseManagement": "数据库管理",
"dbManagement": "DB管理",
@@ -0,0 +1,3 @@
{
"passwordLengthHint": "密碼長度需為 6-20 位"
}
@@ -0,0 +1,37 @@
{
"title": "API Token",
"deviceManagement": "設備管理",
"description": "建立用於自動化調用的個人訪問令牌。",
"loadError": "載入 Token 失敗",
"nameRequired": "請輸入 Token 名稱",
"createError": "建立 Token 失敗",
"createToken": "建立 Token",
"tokenName": "Token 名稱",
"tokenNamePlaceholder": "請輸入 Token 名稱",
"expirationDate": "過期時間",
"neverExpiresHint": "不選擇則永不過期",
"tokenDescription": "描述",
"tokenDescriptionPlaceholder": "請輸入描述",
"tokenCreated": "Token 已建立",
"tokenWarning": "請立即複製保存 Token,關閉後將無法再次查看。",
"revokeTitle": "撤銷 Token",
"revokeConfirm": "確定撤銷 Token「{0}」嗎?",
"confirmRevoke": "確認撤銷",
"revokeSuccess": "Token 已撤銷",
"revokeToken": "撤銷 Token",
"copy": "複製",
"copied": "已複製",
"copySuccess": "已複製到剪貼簿",
"copyError": "複製失敗",
"neverExpires": "永不過期",
"expired": "已過期",
"expiresSoon": "{0} 天後過期",
"createdAt": "建立時間",
"lastUsed": "最後使用",
"empty": "暫無 Token",
"days7": "7 天",
"days30": "30 天",
"days60": "60 天",
"days90": "90 天",
"days365": "1 年"
}
@@ -11,6 +11,7 @@
"positionManagement": "崗位管理",
"roleManagement": "角色權限",
"userCenter": "用戶中心",
"accountSettings": "賬號設置",
"loginLog": "登錄日誌",
"databaseManagement": "數據庫管理",
"dbManagement": "DB管理",