{run.error_message}
} +{run.run_id.slice(-8)}
+ From 9b5de51a6838b3cbfab338bea4f3d7926172950a Mon Sep 17 00:00:00 2001
From: xiaozhu <2395895331@qq.com>
Date: Wed, 5 Aug 2026 15:58:18 +0800
Subject: [PATCH] =?UTF-8?q?chore:=E8=B0=83=E5=BA=A6=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E6=8B=86=E5=88=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../app/features/schedules/ArtifactList.tsx | 79 ++
.../app/features/schedules/NodeInspector.tsx | 153 ++++
.../app/features/schedules/RunHistory.tsx | 64 ++
.../schedules/ScheduleCanvasHeader.tsx | 25 +
.../features/schedules/ScheduleInspector.tsx | 191 +++++
.../app/features/schedules/ScheduleList.tsx | 73 ++
.../app/features/schedules/SchedulePage.tsx | 699 ++----------------
frontend/app/features/schedules/constants.ts | 36 +
frontend/app/features/schedules/utils.ts | 95 +++
9 files changed, 771 insertions(+), 644 deletions(-)
create mode 100644 frontend/app/features/schedules/ArtifactList.tsx
create mode 100644 frontend/app/features/schedules/NodeInspector.tsx
create mode 100644 frontend/app/features/schedules/RunHistory.tsx
create mode 100644 frontend/app/features/schedules/ScheduleCanvasHeader.tsx
create mode 100644 frontend/app/features/schedules/ScheduleInspector.tsx
create mode 100644 frontend/app/features/schedules/ScheduleList.tsx
create mode 100644 frontend/app/features/schedules/constants.ts
create mode 100644 frontend/app/features/schedules/utils.ts
diff --git a/frontend/app/features/schedules/ArtifactList.tsx b/frontend/app/features/schedules/ArtifactList.tsx
new file mode 100644
index 0000000..e931b64
--- /dev/null
+++ b/frontend/app/features/schedules/ArtifactList.tsx
@@ -0,0 +1,79 @@
+import { type ScheduleArtifact } from "../../services/api";
+import Icon from "../../components/common/Icon";
+import { shortHash } from "./utils";
+
+export function ArtifactList({
+ artifacts,
+ keyword,
+ onDrop,
+ onDoubleClick,
+ onContextMenu,
+ onKeywordChange,
+}: {
+ artifacts: ScheduleArtifact[];
+ keyword: string;
+ onDrop: (artifact: ScheduleArtifact, x: number, y: number) => void;
+ onDoubleClick: (artifact: ScheduleArtifact) => void;
+ onContextMenu: (event: React.MouseEvent, artifact: ScheduleArtifact) => void;
+ onKeywordChange: (keyword: string) => void;
+}) {
+ const filtered = keyword.trim()
+ ? artifacts.filter((item) => (
+ item.script_name.toLowerCase().includes(keyword.trim().toLowerCase())
+ || item.version_label.toLowerCase().includes(keyword.trim().toLowerCase())
+ ))
+ : artifacts;
+
+ return (
+ 拖动卡片到画布,节点将保存 versions_id
+ 暂无稳定版本,请先在"构建脚本"中发布
+
正在加载运行记录…
+ ) : runs.length === 0 ? ( +点击右上角"立即运行"后,这里会显示状态和耗时。
+ ) : ( + runs.map((run) => ( +{run.error_message}
} +{run.run_id.slice(-8)}
+ 选中调度方案后可配置触发方式、Cron 和执行策略。
+正在加载调度方案…
+ ) : filtered.length ? ( + filtered.map((item) => ( + + )) + ) : ( +暂无调度方案
+ )} +点击“新建”创建一个调度,然后拖入稳定版本脚本。
+点击"新建"创建一个调度,然后拖入稳定版本脚本。
@@ -1558,381 +1347,3 @@ export default function SchedulePage({ ); } - - -function RunHistory({ - runs, - loading, - disabled, - onRefresh, -}: { - runs: ScheduleRunSummary[]; - loading: boolean; - disabled: boolean; - onRefresh: () => void; -}) { - return ( -正在加载运行记录…
- ) : runs.length === 0 ? ( -点击右上角“立即运行”后,这里会显示状态和耗时。
- ) : ( - runs.map((run) => ( -{run.error_message}
} -{run.run_id.slice(-8)}
- 选中调度方案后可配置触发方式、Cron 和执行策略。
-