attacker
|
28655b4ad5
|
refactor: 拆分AppRelease.tsx(650→339行)提取ReleaseDetailDialog+ReleaseCreateDialog+releaseHelpers子模块
|
2026-06-17 00:05:38 +08:00 |
|
attacker
|
8a4ae0ac5c
|
docs: update dev-log - CronJobManager 拆分
|
2026-06-16 22:08:47 +08:00 |
|
attacker
|
f60809d9b0
|
refactor: 拆分CronJobManager.tsx(652→398行)提取CronJobFormDialog+ExecutionHistoryDialog+cronJobHelpers子模块
|
2026-06-16 22:08:12 +08:00 |
|
attacker
|
a214efe078
|
docs: update dev-log - CloudBilling 拆分
|
2026-06-16 19:09:59 +08:00 |
|
attacker
|
accbfb53c3
|
refactor: 拆分CloudBilling.tsx(663→467行)提取BillingRecordDialog+BillingRuleDialog子模块
|
2026-06-16 19:09:13 +08:00 |
|
attacker
|
f865d41547
|
docs: update dev-log - ApprovalFlow 拆分
|
2026-06-16 07:06:32 +08:00 |
|
attacker
|
d76c23b875
|
refactor: 拆分ApprovalFlow.tsx(666→412行)提取ApprovalDetailDialog+ApprovalCreateDialog子模块
|
2026-06-16 07:05:49 +08:00 |
|
attacker
|
8da6ca15db
|
docs: update dev-log - AIPredictiveAnalytics 拆分
|
2026-06-16 06:06:02 +08:00 |
|
attacker
|
11c97cd885
|
refactor: 拆分AIPredictiveAnalytics.tsx(670→417行)提取predictUtils子模块
|
2026-06-16 06:05:44 +08:00 |
|
attacker
|
67066041b3
|
docs: update dev-log - AgentMonitor 拆分
|
2026-06-16 05:04:37 +08:00 |
|
attacker
|
e544360398
|
refactor: 拆分AgentMonitor.tsx(672→463行)提取HostDetailDialog+agentUtils子模块
- 新增 agentUtils.ts(31行): isOnline/timeAgo/asList 工具函数
- 新增 HostDetailDialog.tsx(201行): 主机详情弹窗+InfoCell+趋势图
- AgentMonitor.tsx 从 672 行降至 463 行, 远离 700 行硬上限
- 移除未使用的 recharts import
|
2026-06-16 05:04:13 +08:00 |
|
attacker
|
84a479caf8
|
docs: update dev-log - mocks/ 死代码目录清理
|
2026-06-16 04:03:21 +08:00 |
|
attacker
|
69253be1e4
|
refactor: 清理mocks/全栈死代码目录 (2528行/104KB, grep确认零外部引用)
|
2026-06-16 04:03:00 +08:00 |
|
attacker
|
5b01cd2e39
|
docs: update dev-log - SQL审计死代码清理
|
2026-06-16 03:05:35 +08:00 |
|
attacker
|
a26f186e9b
|
refactor: 清理SQL审计全栈死代码 (删除孤立组件+handler+model+路由+mock+API定义, 共-1278行)
SQL审计菜单此前已从侧边栏移除,但死代码残留(违反step5清理清单):
- 删除 frontend/components/audit/SQLAuditManager.tsx (629行, 无任何外部引用)
- 删除 backend/handlers/sql_audit.go (435行) + backend/models/sql_audit.go (64行)
- 移除 routes.go 中13条SQL审计路由 (API不再暴露, 返回404)
- 移除 database.go AutoMigrate 中2个SQL审计表
- 移除 api.ts sqlAuditApi 对象 (37行)
- 移除 mocks SQL审计mock数据 (90行) + barrel引用
|
2026-06-16 03:05:14 +08:00 |
|
attacker
|
a6e8b5ab4f
|
snapshot: SQL审计死代码清理前快照
|
2026-06-16 03:03:02 +08:00 |
|
attacker
|
cd46964750
|
docs: update dev-log - ServerManager tag JSON object display fix
|
2026-06-16 02:04:38 +08:00 |
|
attacker
|
91561a0eff
|
fix: ServerManager标签显示JSON对象解析为key:value格式(原显示原始JSON字符串)
|
2026-06-16 02:04:05 +08:00 |
|
attacker
|
440d731b9b
|
docs: update dev-log - ServerManager dead button cleanup + CSV export
|
2026-06-16 01:08:16 +08:00 |
|
attacker
|
be529c8c36
|
feat: ServerManager 死按钮清理+CSV导出+统计卡片提取; 审批/导航后端拆分; DialogDescription修复; AppRelease重试按钮实现
|
2026-06-16 01:07:43 +08:00 |
|
attacker
|
f5bda8b03b
|
docs: update dev-log - server.go split
|
2026-06-15 21:05:30 +08:00 |
|
attacker
|
49dcaade4e
|
refactor: backend server.go split (446→336+121 lines, core CRUD + batch ops)
|
2026-06-15 21:04:58 +08:00 |
|
attacker
|
bc5bd96aff
|
docs: update dev-log - billing.go split
|
2026-06-15 17:04:26 +08:00 |
|
attacker
|
9eaf88c8b7
|
refactor: backend billing.go split (476→307+168 lines, billings/alert-rules)
|
2026-06-15 17:04:02 +08:00 |
|
attacker
|
c90d0e5c10
|
docs: update dev-log - navigation dead code cleanup
|
2026-06-15 16:07:05 +08:00 |
|
attacker
|
d13f5b8fa1
|
refactor: 清理站内导航死代码 (删除孤立NavigationPage组件+navigationApi+导航mock数据)
- 删除 frontend/src/components/navigation/NavigationPage.tsx (359行, 菜单/路由移除后遗留的孤立组件)
- 移除 services/api.ts 中 navigationApi (唯一消费者已删除)
- 移除 mocks/modules/misc.ts 中 navigationGroups/navigationLinks 死数据 (252行)
- 清理 mocks/data.ts barrel 中导航 re-export
- 修正 cloud.ts 误导性注释 (站内导航→云平台/账号/区域/域名数据)
- 后端 navigation.go 保留不动 (菜单已移除但后端代码保留)
- tsc --noEmit 零错误 + npm run build 通过
|
2026-06-15 16:06:04 +08:00 |
|
attacker
|
9af0890bc6
|
docs: update dev-log - pipeline.go split
|
2026-06-15 15:05:56 +08:00 |
|
attacker
|
8f1d5e2107
|
refactor: backend pipeline.go split (541→306+246 lines, pipelines/releases)
|
2026-06-15 15:05:28 +08:00 |
|
attacker
|
487d542c8c
|
refactor: backend alert.go split (586→133+274+206 lines, alerts/rules/channels)
|
2026-06-15 14:05:28 +08:00 |
|
attacker
|
46c50a13f4
|
docs: update dev-log - AlertCenter split
|
2026-06-15 13:07:22 +08:00 |
|
attacker
|
76a41f5eeb
|
refactor: AlertCenter拆分(723→390行)+修复TopologyView类型错误
- AlertCenter.tsx: 723→390行,提取类型/helpers/渠道Tab到子组件
- alert-center-helpers.tsx: 新建(127行),共享Alert/AlertRule/NotificationChannel类型+mapAlert+badge helpers
- AlertChannelDialog.tsx: 新建(121行),通知渠道创建/编辑对话框(自包含useEffect同步)
- AlertChannelsTab.tsx: 新建(152行),通知渠道Tab自包含(状态+API+渲染+CRUD)
- AlertCenterDetail.tsx: 去重getSeverityBadge,统一从helpers导入
- TopologyView.tsx: 修复editForm.type类型推断(string→TopologyNode['type'])
|
2026-06-15 13:07:01 +08:00 |
|
attacker
|
805cb767a8
|
snapshot: AlertCenter拆分前快照
|
2026-06-15 13:01:56 +08:00 |
|
attacker
|
6a40956afa
|
docs: update dev-log - ScriptManager split
|
2026-06-15 12:08:12 +08:00 |
|
attacker
|
745dde358e
|
refactor: ScriptManager split into 5 files (730 to 546 lines)
- script-helpers.tsx (97 lines): Script/ExecutionRecord types, mapScript, scriptTypes, getTypeBadge, genCode, getStatusBadge, formatDate
- ScriptFormDialog.tsx (113 lines): new/edit script dialog
- ScriptDetailDialog.tsx (49 lines): view script content dialog
- ScriptLogsDialog.tsx (39 lines): execution logs dialog
- ScriptManager.tsx (546 lines): main component, imports sub-components
Verified: tsc --noEmit zero errors, npm run build passes, browser tested all 3 dialogs + tabs + stats cards, console zero errors
|
2026-06-15 12:07:46 +08:00 |
|
attacker
|
23fe742cc2
|
docs: update dev-log - AnsibleManager split
|
2026-06-15 11:07:55 +08:00 |
|
attacker
|
30cc899268
|
refactor: AnsibleManager split into 5 files (740 to 535 lines)
- ansible-helpers.tsx (114): types, mapPlaybook, categories, samplePlaybook, getStatusBadge, formatDate
- AnsibleFormDialog.tsx (111): 新建/编辑 Playbook 弹窗
- AnsibleDetailDialog.tsx (47): 查看 Playbook 内容弹窗
- AnsibleLogsDialog.tsx (38): 执行日志弹窗
- AnsibleManager.tsx (740->535): 主组件保留统计卡片+Tab布局+列表+表格+状态管理
|
2026-06-15 11:07:31 +08:00 |
|
attacker
|
e6d9f364e5
|
snapshot: AnsibleManager拆分前快照
|
2026-06-15 10:01:24 +08:00 |
|
attacker
|
16205fdb2b
|
docs: update dev-log - PipelineManager split
|
2026-06-15 09:05:45 +08:00 |
|
attacker
|
3f033e9db8
|
refactor: PipelineManager split into 4 files (776 to 438 lines)
|
2026-06-15 09:05:28 +08:00 |
|
attacker
|
419dd160b8
|
docs: 更新开发日志-资源申请模块重构
|
2026-06-15 08:07:28 +08:00 |
|
attacker
|
f70feb360c
|
feat: 资源申请模块重构——清理816行死代码+提取共享helpers+修复类型标签bug
- 删除 CabinetView.tsx(422行) + ResourceModelManager.tsx(394行) 死代码
- 提取 approval/helpers.tsx 共享辅助函数(parseSteps/parseFields/renderFormData/
getProgressInfo/renderStepProgress/APPROVAL_TYPE_OPTIONS/getInstanceType)
- 修复审批类型标签bug:instance无type字段,需从template.type取
(getApprovalTypeLabel/Color/Icon 全部改用 getInstanceType(instance))
- ApprovalFlow.tsx 771→666行(低于700限制)
- ApprovalProcessTab.tsx 移除重复helpers+过期类型字典(deploy/server/permission→server_apply/app_deploy)
|
2026-06-15 08:07:10 +08:00 |
|
attacker
|
8c4b59510d
|
feat: 云账号卡片改用品牌SVG图标替代纯文字色块
- 新建 CloudBrandIcon 组件: AWS/Azure/GCP/阿里云/腾讯云/华为云 官方品牌色+SVG路径
- 图标数据源同 TechIcons.dev / VectorLogo.zone (simple-icons 开源项目)
- CloudAccountManager: providerIcons纯文字→CloudBrandIcon SVG品牌图标
- 卡片底部品牌色描边替代满色背景块
- 新增 GCP 到 provider 列表
|
2026-06-15 07:37:29 +08:00 |
|
attacker
|
011f3d6b51
|
docs: 更新开发日志-服务器导入弹窗主题化+CRUD联调验证
|
2026-06-15 07:05:28 +08:00 |
|
attacker
|
c111be7610
|
feat: 服务器导入弹窗主题化——CloudServerImport+ExcelServerImport全量替换硬编码slate色为CSS变量+补DialogDescription消除Radix警告
|
2026-06-15 07:05:02 +08:00 |
|
attacker
|
bc7323e687
|
docs: 更新开发日志-定时任务管理全栈完善
|
2026-06-15 06:04:41 +08:00 |
|
attacker
|
18dffa826a
|
feat: 定时任务管理(CronJob)全栈完善——删除确认框+主题色+空状态+刷新按钮+toast反馈
- 新增删除确认框(useConfirm variant:destructive),显示任务名称
- 全量主题色替换:bg-slate-800→var(--dg-bg-secondary)、border-slate-700→var(--dg-border)等
- 新增空状态(PackageOpen图标+提示文案),无任务时优雅降级
- 新增刷新按钮(双loading state:首次spinner+手动刷新spin icon)
- toggle操作新增toast成功反馈
- 执行历史空状态优化(History图标+提示)
- 修复Fragment key警告(<>→<Fragment key>)
- 描述为空时显示—占位符
|
2026-06-15 06:04:15 +08:00 |
|
attacker
|
5e3c60d0da
|
docs: 更新开发日志-流水线管理全栈完善
|
2026-06-15 05:04:51 +08:00 |
|
attacker
|
837f50daae
|
feat: 流水线管理全栈完善——字段修复+编辑功能+toast反馈+确认框+主题色
|
2026-06-15 05:04:34 +08:00 |
|
attacker
|
fd1f30958a
|
docs: 更新开发日志-发布管理全栈完善
|
2026-06-15 04:06:37 +08:00 |
|
attacker
|
a5970315be
|
feat: 发布管理全栈完善——环境值修复+驳回API+toast反馈+详情弹窗+确认框
后端:
- pipeline.go: 新增 RejectRelease handler(仅pending可驳回,状态置rejected)
- routes.go: 注册 POST /releases/:id/reject 路由
前端:
- ReleaseManager.tsx 重写(553→581行):
- 修复环境值不匹配: development/production → dev/prod(与后端binding一致)
- 移除硬编码mock applications数组,改自由输入应用名
- 修复字段名: release.deployer → release.author
- 新增toast反馈(create/approve/reject/deploy/rollback均有success/error)
- 新增确认框(deploy/rollback操作前确认)
- 新增发布详情弹窗(原缺失,Eye按钮无响应)
- 新增空状态展示
- 新增rejected状态徽章
- 主题感知: bg-slate-800 → var(--dg-bg-secondary)
- Select替换原生select下拉框
- api.ts: 新增 rejectRelease 方法
// Logan.Li
|
2026-06-15 04:06:18 +08:00 |
|