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
@@ -35,6 +35,19 @@ export const ImagePullPolicyOptions: {
export const DefaultImagePullPolicy: ImagePullPolicy = 'IfNotPresent';
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'
};
export const normalizeCommand = (value: string): string[] => {
if (!value) return [];
const tokens: string[] = [];