feat: 添加系统管理功能(代理配置和API健康检查)

- 新增代理配置管理功能,支持HTTP代理配置(host、port、用户名、密码)
- 代理配置存储在数据库中,支持实时生效,无需重启服务
- 代理配置变更时自动重连WebSocket连接(订单推送和跟单服务)
- 新增API健康状态检查功能,监控Polymarket各API和Polygon RPC的可用性
- 优化API健康状态UI,支持响应式设计(移动端和桌面端)
- 将Ethereum RPC相关配置和代码统一改为Polygon RPC
- 修复代理检查时的SSL证书验证问题
- 优化代理配置:关闭代理时保留配置信息,避免重新输入
This commit is contained in:
WrBug
2025-12-03 01:44:35 +08:00
parent dd553ae160
commit 4679080d55
33 changed files with 1898 additions and 290 deletions
+7 -1
View File
@@ -12,7 +12,8 @@ import {
LinkOutlined,
AppstoreOutlined,
TeamOutlined,
LogoutOutlined
LogoutOutlined,
SettingOutlined
} from '@ant-design/icons'
import type { MenuProps } from 'antd'
import type { ReactNode } from 'react'
@@ -101,6 +102,11 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
icon: <TeamOutlined />,
label: '用户管理'
},
{
key: '/system-settings',
icon: <SettingOutlined />,
label: '系统管理'
},
{
key: 'logout',
icon: <LogoutOutlined />,