chore: built in versions
This commit is contained in:
@@ -38,6 +38,13 @@ export const backendActions = [
|
||||
icon: icons.EditOutlined,
|
||||
locale: false
|
||||
},
|
||||
{
|
||||
label: 'View Built-in Versions',
|
||||
value: 'view_versions',
|
||||
key: 'view_versions',
|
||||
icon: icons.Version,
|
||||
locale: false
|
||||
},
|
||||
{
|
||||
label: 'Export YAML',
|
||||
value: 'yaml',
|
||||
@@ -85,6 +92,15 @@ export const customColors = [
|
||||
'geekblue'
|
||||
];
|
||||
|
||||
export const gpuColorMap: Record<string, string> = {
|
||||
cann: 'orange',
|
||||
cuda: 'green',
|
||||
rocm: 'volcano',
|
||||
dtk: 'magenta',
|
||||
musa: 'cyan',
|
||||
corex: 'purple'
|
||||
};
|
||||
|
||||
export const customIcons = ['∑', '∏', '∫', '∂', '∞', 'θ', '∆', '∇'];
|
||||
|
||||
export const backendFields = [
|
||||
|
||||
@@ -2,7 +2,9 @@ export interface VersionConfigs {
|
||||
image_name: string;
|
||||
run_command: string;
|
||||
is_default: boolean;
|
||||
backend_list?: string[];
|
||||
version_no?: string;
|
||||
is_built_in?: boolean;
|
||||
}
|
||||
|
||||
export interface FormData {
|
||||
@@ -22,4 +24,5 @@ export interface ListItem extends FormData {
|
||||
is_build_in?: boolean;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
build_in_version_configs?: Record<string, VersionConfigs>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user