fix: instance form ux
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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[] = [];
|
||||
|
||||
Reference in New Issue
Block a user