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

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])