2025-12-03 03:29:04 +08:00
|
|
|
|
import { Card, Typography, Alert } from 'antd'
|
|
|
|
|
|
import { InfoCircleOutlined } from '@ant-design/icons'
|
2025-12-04 10:36:28 +08:00
|
|
|
|
import { useTranslation } from 'react-i18next'
|
2025-11-21 04:32:08 +08:00
|
|
|
|
|
|
|
|
|
|
const { Title } = Typography
|
|
|
|
|
|
|
2025-12-03 03:29:04 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 全局配置页面
|
|
|
|
|
|
* 注意:全局配置功能已迁移到模板和跟单关系管理
|
|
|
|
|
|
* 请使用"跟单模板"和"跟单配置"页面进行配置
|
|
|
|
|
|
*/
|
2025-11-21 04:32:08 +08:00
|
|
|
|
const ConfigPage: React.FC = () => {
|
2025-12-04 10:36:28 +08:00
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
|
|
2025-11-21 04:32:08 +08:00
|
|
|
|
return (
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<div style={{ marginBottom: '16px' }}>
|
2025-12-04 10:36:28 +08:00
|
|
|
|
<Title level={2} style={{ margin: 0 }}>{t('configPage.title') || '全局配置'}</Title>
|
2025-11-21 04:32:08 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<Card>
|
2025-12-03 03:29:04 +08:00
|
|
|
|
<Alert
|
2025-12-04 10:36:28 +08:00
|
|
|
|
message={t('configPage.message') || '配置功能已迁移'}
|
2025-12-03 03:29:04 +08:00
|
|
|
|
description={
|
|
|
|
|
|
<div>
|
2025-12-04 10:36:28 +08:00
|
|
|
|
<p>{t('configPage.description') || '全局配置功能已迁移到以下页面:'}</p>
|
2025-12-03 03:29:04 +08:00
|
|
|
|
<ul>
|
2025-12-04 10:36:28 +08:00
|
|
|
|
<li><strong>{t('configPage.templates') || '跟单模板'}</strong>:{t('configPage.templatesDesc') || '管理跟单参数(比例、金额、风险控制等)'}</li>
|
|
|
|
|
|
<li><strong>{t('configPage.copyTrading') || '跟单配置'}</strong>:{t('configPage.copyTradingDesc') || '将账户、模板和 Leader 关联,启用跟单关系'}</li>
|
|
|
|
|
|
<li><strong>{t('configPage.systemSettings') || '系统管理'}</strong>:{t('configPage.systemSettingsDesc') || '配置代理、查看 API 健康状态'}</li>
|
2025-12-03 03:29:04 +08:00
|
|
|
|
</ul>
|
2025-12-04 10:36:28 +08:00
|
|
|
|
<p>{t('configPage.footer') || '请使用上述页面进行配置管理。'}</p>
|
2025-12-03 03:29:04 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
}
|
|
|
|
|
|
type="info"
|
|
|
|
|
|
icon={<InfoCircleOutlined />}
|
|
|
|
|
|
showIcon
|
|
|
|
|
|
/>
|
2025-11-21 04:32:08 +08:00
|
|
|
|
</Card>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default ConfigPage
|