feat: 支持 RPC 节点启用/禁用功能

- 后端:更新 RpcNodeService,确保禁用的节点被忽略
  - getAllNodesWithDefault() 只返回启用的节点
  - checkAllNodesHealth() 只检查启用的节点
  - getAvailableNode() 已正确实现,只查询启用的节点

- 前端:添加启用/禁用开关功能
  - 在 RpcNodeSettings 页面添加启用列,使用 Switch 组件
  - 添加 handleToggleEnabled 函数处理启用/禁用切换
  - 添加多语言支持(中文简体、繁体、英文)
This commit is contained in:
WrBug
2025-12-26 01:57:22 +08:00
parent d1f351108f
commit a6ca6cc3ff
5 changed files with 46 additions and 5 deletions
+4
View File
@@ -1084,8 +1084,12 @@
"statusUnhealthy": "Unavailable",
"statusUnknown": "Unknown",
"responseTime": "Response Time",
"enabled": "Enabled",
"actions": "Actions",
"check": "Check",
"enableSuccess": "Enabled successfully",
"disableSuccess": "Disabled successfully",
"updateFailed": "Update failed",
"checkSuccess": "Check completed",
"checkFailed": "Check failed",
"deleteConfirm": "Are you sure you want to delete this node?",
+4
View File
@@ -1084,8 +1084,12 @@
"statusUnhealthy": "不可用",
"statusUnknown": "未知",
"responseTime": "响应时间",
"enabled": "启用",
"actions": "操作",
"check": "检查",
"enableSuccess": "启用成功",
"disableSuccess": "禁用成功",
"updateFailed": "更新失败",
"checkSuccess": "检查完成",
"checkFailed": "检查失败",
"deleteConfirm": "确定删除此节点吗?",
+4
View File
@@ -1084,8 +1084,12 @@
"statusUnhealthy": "不可用",
"statusUnknown": "未知",
"responseTime": "響應時間",
"enabled": "啟用",
"actions": "操作",
"check": "檢查",
"enableSuccess": "啟用成功",
"disableSuccess": "禁用成功",
"updateFailed": "更新失敗",
"checkSuccess": "檢查完成",
"checkFailed": "檢查失敗",
"deleteConfirm": "確定刪除此節點嗎?",