feat: 优化UI和功能,添加图标生成脚本

- 修复未匹配订单更新逻辑,添加去重机制避免重复赎回
- 优化跟单配置列表,移除订单菜单中的编辑选项
- 限制账户编辑功能,只允许编辑账户名称
- 优化Layout布局,将PC端图标移至标题下方,添加Telegram群链接
- 添加图标生成脚本到polymarket-demo目录
- 添加多个尺寸的favicon图标文件
This commit is contained in:
WrBug
2025-12-07 14:45:59 +08:00
parent 5c136ab0f4
commit 89e3c726b2
13 changed files with 644 additions and 114 deletions
+46 -18
View File
@@ -17,7 +17,8 @@ import {
SettingOutlined,
GithubOutlined,
TwitterOutlined,
CheckCircleOutlined
CheckCircleOutlined,
SendOutlined
} from '@ant-design/icons'
import type { MenuProps } from 'antd'
import type { ReactNode } from 'react'
@@ -197,12 +198,13 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
size="normal"
darkMode={true}
/>
<div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>
<div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
<a
href="https://github.com/WrBug/PolyHermes"
target="_blank"
rel="noopener noreferrer"
style={{ color: '#fff', fontSize: '18px' }}
style={{ color: '#fff', fontSize: '16px', display: 'flex', alignItems: 'center' }}
title="GitHub"
>
<GithubOutlined />
</a>
@@ -210,14 +212,24 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
href="https://x.com/quant_tr"
target="_blank"
rel="noopener noreferrer"
style={{ color: '#fff', fontSize: '18px' }}
style={{ color: '#fff', fontSize: '16px', display: 'flex', alignItems: 'center' }}
title="Twitter"
>
<TwitterOutlined />
</a>
<a
href="https://t.me/+5BwdYvvvuf9iZGZl"
target="_blank"
rel="noopener noreferrer"
style={{ color: '#fff', fontSize: '16px', display: 'flex', alignItems: 'center' }}
title="Telegram 交流群"
>
<SendOutlined />
</a>
<Button
type="text"
icon={<MenuOutlined />}
style={{ color: '#fff' }}
style={{ color: '#fff', marginLeft: '4px' }}
onClick={() => setMobileMenuOpen(true)}
/>
</div>
@@ -265,23 +277,30 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
}}
>
<div style={{
height: '64px',
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
padding: '0 16px',
padding: '16px',
color: '#fff',
fontSize: '18px',
fontWeight: 'bold',
flexShrink: 0
flexShrink: 0,
borderBottom: '1px solid rgba(255, 255, 255, 0.1)'
}}>
<span>PolyHermes</span>
<div style={{ display: 'flex', gap: '12px', alignItems: 'center' }}>
<div style={{
fontSize: '18px',
fontWeight: 'bold',
marginBottom: '12px',
textAlign: 'center'
}}>
PolyHermes
</div>
<div style={{
display: 'flex',
gap: '12px',
alignItems: 'center',
justifyContent: 'center'
}}>
<a
href="https://github.com/WrBug/PolyHermes"
target="_blank"
rel="noopener noreferrer"
style={{ color: '#fff', fontSize: '16px' }}
style={{ color: '#fff', fontSize: '18px', display: 'flex', alignItems: 'center' }}
title="GitHub"
>
<GithubOutlined />
@@ -290,11 +309,20 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
href="https://x.com/quant_tr"
target="_blank"
rel="noopener noreferrer"
style={{ color: '#fff', fontSize: '16px' }}
style={{ color: '#fff', fontSize: '18px', display: 'flex', alignItems: 'center' }}
title="Twitter"
>
<TwitterOutlined />
</a>
<a
href="https://t.me/+5BwdYvvvuf9iZGZl"
target="_blank"
rel="noopener noreferrer"
style={{ color: '#fff', fontSize: '18px', display: 'flex', alignItems: 'center' }}
title="Telegram 交流群"
>
<SendOutlined />
</a>
</div>
</div>
<Menu
@@ -305,7 +333,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
items={menuItems}
onClick={handleMenuClick}
style={{
height: 'calc(100vh - 64px)',
height: 'calc(100vh - 100px)',
borderRight: 0,
overflowY: 'auto'
}}