feat(login): enhance error handling with localized messages for various connection issues

This commit is contained in:
Supra4E8C
2026-01-31 15:24:56 +08:00
parent 70968bbc4c
commit e7a33f8852
3 changed files with 63 additions and 3 deletions

View File

@@ -72,7 +72,15 @@
"submitting": "Connecting...",
"error_title": "Login Failed",
"error_required": "Please fill in complete connection information",
"error_invalid": "Connection failed, please check address and key"
"error_invalid": "Connection failed, please check address and key",
"error_network": "Network connection failed, please check your network or server address",
"error_timeout": "Connection timed out, server not responding",
"error_unauthorized": "Authentication failed, invalid management key",
"error_forbidden": "Access denied, insufficient permissions",
"error_not_found": "Server address invalid or management API not enabled",
"error_server": "Internal server error, please try again later",
"error_cors": "Cross-origin request blocked, please check server configuration",
"error_ssl": "SSL/TLS certificate verification failed"
},
"header": {
"check_connection": "Check Connection",

View File

@@ -72,7 +72,15 @@
"submitting": "连接中...",
"error_title": "登录失败",
"error_required": "请填写完整的连接信息",
"error_invalid": "连接失败,请检查地址和密钥"
"error_invalid": "连接失败,请检查地址和密钥",
"error_network": "网络连接失败,请检查网络或服务器地址",
"error_timeout": "连接超时,服务器无响应",
"error_unauthorized": "认证失败,管理密钥无效",
"error_forbidden": "访问被拒绝,权限不足",
"error_not_found": "服务器地址无效或管理接口未启用",
"error_server": "服务器内部错误,请稍后重试",
"error_cors": "跨域请求被阻止,请检查服务器配置",
"error_ssl": "SSL/TLS 证书验证失败"
},
"header": {
"check_connection": "检查连接",