refactor(前端): 集中管理设计令牌和工具函数

This commit is contained in:
zhang1106
2026-03-10 15:49:02 +08:00
parent 196dc4ae41
commit 7f007f5010
17 changed files with 158 additions and 663 deletions
@@ -9,17 +9,7 @@ import {
} from '@ant-design/icons';
import axios from 'axios';
import PortCreateModal from './PortCreateModal';
const designTokens = {
colors: {
primary: {
main: '#667eea',
},
success: '#10b981',
error: '#ef4444',
warning: '#f59e0b',
},
};
import { designTokens } from '../config/theme';
function PortManagementPanel({ deviceId, deviceName, onRefresh }) {
const [ports, setPorts] = useState([]);