+ {record.status === DevEditorStatus.Pending ||
+ record.status === DevEditorStatus.Running ? (
+ }
+ onClick={() => stopEditor(record.id)}
+ >
+ 停止
+
+ ) : (
+ }
+ onClick={() => startEditor(record.id)}
+ >
+ 再次调试
+
+ )}
+
+ }
+ onClick={() => handleEditorDelete(record)}
+ >
+ 删除
+
+
+
+ ),
+ },
+ ];
+
+ return (
+
+
+ }
+ >
+ 创建编辑器
+
+ }
+ >
+ 刷新
+
+
+
+
+ );
+}
+
+export default EditorList;
diff --git a/react-ui/src/pages/DevelopmentEnvironment/components/EditorStatusCell/index.less b/react-ui/src/pages/DevelopmentEnvironment/components/EditorStatusCell/index.less
new file mode 100644
index 00000000..b2e46d49
--- /dev/null
+++ b/react-ui/src/pages/DevelopmentEnvironment/components/EditorStatusCell/index.less
@@ -0,0 +1,19 @@
+.model-deployment-status-cell {
+ color: @text-color;
+
+ &--running {
+ color: @primary-color;
+ }
+
+ &--terminated {
+ color: @abort-color;
+ }
+
+ &--error {
+ color: @error-color;
+ }
+
+ &--pending {
+ color: @warning-color;
+ }
+}
diff --git a/react-ui/src/pages/DevelopmentEnvironment/components/EditorStatusCell/index.tsx b/react-ui/src/pages/DevelopmentEnvironment/components/EditorStatusCell/index.tsx
new file mode 100644
index 00000000..90ad8c75
--- /dev/null
+++ b/react-ui/src/pages/DevelopmentEnvironment/components/EditorStatusCell/index.tsx
@@ -0,0 +1,44 @@
+/*
+ * @Author: 赵伟
+ * @Date: 2024-04-18 18:35:41
+ * @Description: 编辑器状态组件
+ */
+import { DevEditorStatus } from '@/enums';
+import styles from './index.less';
+
+export type DevEditorStatusInfo = {
+ text: string;
+ classname: string;
+};
+
+export const statusInfo: Record