fix: instance form ux

This commit is contained in:
jialin
2026-05-25 22:42:02 +08:00
committed by jialin
parent 5195b1e5fc
commit 921a2a0d81
14 changed files with 92 additions and 44 deletions
@@ -27,7 +27,7 @@ import {
import { useIntl } from '@umijs/max';
import { Button, Tag } from 'antd';
import styled from 'styled-components';
import { templateActions } from '../config';
import { manufactureColorMap, templateActions } from '../config';
import { ListItem } from '../config/types';
const imageLogoMap = {
@@ -40,19 +40,6 @@ const imageLogoMap = {
ubuntu: ubuntuLogo
} as const;
export const manufactureColorMap: Record<string, string> = {
nvidia: 'green',
amd: 'volcano',
ascend: 'orange',
hygon: 'magenta',
moorthreads: 'cyan',
iluvatar: 'purple',
metax: 'geekblue',
cambricon: 'gold',
thead: 'red',
cpu: 'blue'
};
const manufacturerLabelMap: Record<string, string> = Object.values(
GPUsConfigs
).reduce(