Browse Source

feat: 完成开发环境

pull/82/head
cp3hnu 1 year ago
parent
commit
b9c1f528c2
2 changed files with 16 additions and 1 deletions
  1. +6
    -1
      react-ui/config/routes.ts
  2. +10
    -0
      react-ui/src/enums/index.ts

+ 6
- 1
react-ui/config/routes.ts View File

@@ -107,7 +107,12 @@ export default [
{
name: '开发环境',
path: '',
component: './DevelopmentEnvironment/index',
component: './DevelopmentEnvironment/List',
},
{
name: '创建编辑器',
path: 'create',
component: './DevelopmentEnvironment/Create',
},
],
},


+ 10
- 0
react-ui/src/enums/index.ts View File

@@ -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', // 未启动
}

Loading…
Cancel
Save