chore: built in versions

This commit is contained in:
jialin
2025-10-13 14:40:26 +08:00
parent 46ecc2467b
commit 0dfe77df37
12 changed files with 306 additions and 87 deletions
+16
View File
@@ -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 = [
+3
View File
@@ -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>;
}