This commit is contained in:
Baobhan Sith
2025-04-25 00:51:00 +08:00
parent 6c8ba5441d
commit 5c946e5095
3 changed files with 82 additions and 22 deletions
+30
View File
@@ -571,6 +571,36 @@
"error": {
"sidebarPersistentSaveFailed": "Failed to save sidebar setting."
}
},
"ipBlacklist": {
"title": "IP Blacklist Management",
"description": "Configure login attempt limits and automatic ban duration. Local addresses (127.0.0.1, ::1) will not be banned.",
"maxAttemptsLabel": "Max Failed Attempts:",
"banDurationLabel": "Ban Duration (seconds):",
"saveConfigButton": "Save Configuration",
"currentBannedTitle": "Currently Banned IP Addresses",
"loadingList": "Loading blacklist...",
"noBannedIps": "No IP addresses are currently in the blacklist.",
"confirmRemoveIp": "Are you sure you want to remove the IP address \"{ip}\" from the blacklist?",
"table": {
"ipAddress": "IP Address",
"attempts": "Attempts",
"lastAttempt": "Last Attempt",
"bannedUntil": "Banned Until",
"actions": "Actions",
"removeButton": "Remove",
"deleting": "Deleting..."
},
"success": {
"configUpdated": "Blacklist configuration updated successfully."
},
"error": {
"fetchFailed": "Failed to fetch blacklist",
"deleteFailed": "Failed to delete",
"invalidMaxAttempts": "Max failed attempts must be a positive integer.",
"invalidBanDuration": "Ban duration must be a positive integer (seconds).",
"updateConfigFailed": "Failed to update blacklist configuration"
}
}
},
"common": {
+30
View File
@@ -571,6 +571,36 @@
"error": {
"sidebarPersistentSaveFailed": "保存侧边栏设置失败。"
}
},
"ipBlacklist": {
"title": "IP 黑名单管理",
"description": "配置登录失败次数限制和自动封禁时长。本地地址 (127.0.0.1, ::1) 不会被封禁。",
"maxAttemptsLabel": "最大失败次数:",
"banDurationLabel": "封禁时长 (秒):",
"saveConfigButton": "保存配置",
"currentBannedTitle": "当前已封禁的 IP 地址",
"loadingList": "正在加载黑名单...",
"noBannedIps": "当前没有 IP 地址在黑名单中。",
"confirmRemoveIp": "确定要从黑名单中移除 IP 地址 \"{ip}\" 吗?",
"table": {
"ipAddress": "IP 地址",
"attempts": "失败次数",
"lastAttempt": "最后尝试时间",
"bannedUntil": "封禁截止时间",
"actions": "操作",
"removeButton": "移除",
"deleting": "删除中..."
},
"success": {
"configUpdated": "黑名单配置已成功更新。"
},
"error": {
"fetchFailed": "获取黑名单失败",
"deleteFailed": "删除失败",
"invalidMaxAttempts": "最大失败次数必须是正整数。",
"invalidBanDuration": "封禁时长必须是正整数(秒)。",
"updateConfigFailed": "更新黑名单配置失败"
}
}
},
"common": {