From 6dfd7b914f87007d5a04ddd228668c1afa66c0c8 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Tue, 24 Dec 2024 15:26:11 +0800 Subject: [PATCH] 1 --- .../List/components/EnvironmentModal.tsx | 26 -- .../pages/Deploy/Environment/List/index.less | 43 --- .../pages/Deploy/Environment/List/index.tsx | 326 ++++++++---------- .../pages/Deploy/Environment/List/types.ts | 17 - .../pages/Deploy/ProjectGroup/List/index.tsx | 83 ++--- 5 files changed, 169 insertions(+), 326 deletions(-) delete mode 100644 frontend/src/pages/Deploy/Environment/List/index.less diff --git a/frontend/src/pages/Deploy/Environment/List/components/EnvironmentModal.tsx b/frontend/src/pages/Deploy/Environment/List/components/EnvironmentModal.tsx index a1b8b1a1..e8fe9aff 100644 --- a/frontend/src/pages/Deploy/Environment/List/components/EnvironmentModal.tsx +++ b/frontend/src/pages/Deploy/Environment/List/components/EnvironmentModal.tsx @@ -11,20 +11,6 @@ interface EnvironmentModalProps { initialValues?: Environment; } -const {Option} = Select; - -const buildTypeOptions = [ - {label: 'Jenkins构建', value: BuildTypeEnum.JENKINS}, - {label: 'GitLab Runner构建', value: BuildTypeEnum.GITLAB_RUNNER}, - {label: 'GitHub Action构建', value: BuildTypeEnum.GITHUB_ACTION}, -]; - -const deployTypeOptions = [ - {label: 'Kubernetes集群部署', value: DeployTypeEnum.K8S}, - {label: 'Docker容器部署', value: DeployTypeEnum.DOCKER}, - {label: '虚拟机部署', value: DeployTypeEnum.VM}, -]; - const EnvironmentModal: React.FC = ({ visible, onCancel, @@ -105,18 +91,6 @@ const EnvironmentModal: React.FC = ({ - -