From b9c1f528c2123512af0c2306ea575a3e8d959f92 Mon Sep 17 00:00:00 2001 From: cp3hnu Date: Thu, 20 Jun 2024 11:11:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-ui/config/routes.ts | 7 ++++++- react-ui/src/enums/index.ts | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/react-ui/config/routes.ts b/react-ui/config/routes.ts index 1351cd2c..7edf6db2 100644 --- a/react-ui/config/routes.ts +++ b/react-ui/config/routes.ts @@ -107,7 +107,12 @@ export default [ { name: '开发环境', path: '', - component: './DevelopmentEnvironment/index', + component: './DevelopmentEnvironment/List', + }, + { + name: '创建编辑器', + path: 'create', + component: './DevelopmentEnvironment/Create', }, ], }, diff --git a/react-ui/src/enums/index.ts b/react-ui/src/enums/index.ts index c0238791..b31aee3a 100644 --- a/react-ui/src/enums/index.ts +++ b/react-ui/src/enums/index.ts @@ -20,6 +20,7 @@ export enum ModelDeploymentStatus { Pending = 'Pending', // 挂起中 } +// 模型部署状态选项列表 export const modelDeploymentStatusOptions = [ { label: '全部', value: '' }, { label: '启动中', value: ModelDeploymentStatus.Init }, @@ -28,3 +29,12 @@ export const modelDeploymentStatusOptions = [ { label: '失败', value: ModelDeploymentStatus.Failed }, { label: '挂起中', value: ModelDeploymentStatus.Pending }, ]; + +// 开发环境编辑器状态 +export enum DevEditorStatus { + Pending = 'Pending', // 启动中 + Running = 'Running', // 运行中 + Terminated = 'Terminated', // 已终止 + Failed = 'Failed', // 失败 + Unknown = 'Unknown', // 未启动 +}