feat: 脚本库全栈CRUD管理器(ScriptManager) — 替换占位AutomationManager

- 新增 ScriptManager.tsx: 完整脚本库管理(新建/编辑/查看/复制/删除/执行)
  - 卡片列表 + 搜索 + 类型筛选(shell/python/powershell/yaml)
  - 新建/编辑复用对话框,类型切换自动填充模板
  - 执行: ConfirmProvider确认 + 本地执行 + toast反馈(耗时/输出)
  - 执行记录tab: 真实TaskExecution记录 + 终端风格日志查看
  - 4统计卡片(总数/执行中/今日成功/今日失败)
- App.tsx: /scripts路由指向ScriptManager, 移除无用AutomationManager及dead /playbooks路由
- 删除 Automation.tsx (占位显示页,非功能性按钮)
This commit is contained in:
attacker committed 2026-06-15 00:09:29 +08:00
1 parent b7c4d90b6b
commit 242389a1de
3 files changed
+660 -556

No files matched your search

+2 -3
View File
@@ -18,7 +18,7 @@ import { AlertManager } from '@/components/monitor/AlertManager';
import { AppReleaseManager } from '@/components/deploy/AppRelease';
import { ApprovalFlowManager } from '@/components/approval/ApprovalFlow';
import { NavigationPage } from '@/components/navigation/NavigationPage';
import { AutomationManager } from '@/components/automation/Automation';
import { ScriptManager } from '@/components/automation/ScriptManager';
import { SystemManager } from '@/components/system/SystemManager';
import { PipelineManager } from '@/components/deploy/PipelineManager';
import { ReleaseManager } from '@/components/deploy/ReleaseManager';
@@ -85,9 +85,8 @@ function App() {
<Route path="navigation" element={<NavigationPage />} />
{/* 自动化运维 */}
<Route path="cronjobs" element={<CronJobManager />} />
<Route path="scripts" element={<AutomationManager />} />
<Route path="scripts" element={<ScriptManager />} />
<Route path="ansible" element={<AnsibleManager />} />
<Route path="playbooks" element={<AutomationManager />} />
{/* AIOps智能 */}
<Route path="ai-hub" element={<AIOpsHub />} />
<Route path="ai-assistant" element={<AIOpsAssistant />} />