Files
halo-ops-audit/plugin-operation-audit/ui/package.json
T
836061373 3269bafbc4 feat: Webhook「发送测试告警」(P0-2,设置页入口+结果化推送)
- AlertWebhookSender 新增 sendForResult:结果化推送(送达与否 + 原因摘要),
  超时/网络错误/非 2xx/URL 非法一律归一为失败结果,永不抛出;
  send(fire-and-forget)复用同一实现,真实告警路径语义不变
- 新增 AlertTestEndpoint:POST /apis/.../alerts/-/test 以 type=test 测试消息
  推送到已保存的 Webhook 地址并同步等待结果返回;Webhook 未配置/非法返回 400;
  RBAC 资源组合 alerts + alerts/test(create 动词)不在只读角色模板授权内
- 设置页「告警通知」区新增「发送测试告警」自定义 FormKit 输入
  (Halo 2.25+ formkit.inputs,@formkit/vue 为宿主共享外部模块),
  推送结果以设置页提示 + 运行日志反馈,ignore:true 不新增设置项
- 更新 README(功能/设置表/告警负载/技术说明)
2026-11-22 00:11:24 +08:00

30 lines
774 B
JSON

{
"name": "plugin-operation-audit-ui",
"private": true,
"type": "module",
"scripts": {
"build": "npm run type-check && npm run build-only",
"build-only": "vite build",
"dev": "vite build --watch --mode=development",
"type-check": "vue-tsc --noEmit",
"test": "vitest run"
},
"dependencies": {
"@formkit/vue": "^1.7.2",
"@halo-dev/api-client": "2.26.0",
"@halo-dev/components": "2.26.0",
"@halo-dev/console-shared": "^2.21.0",
"vue": "^3.5.13"
},
"devDependencies": {
"@halo-dev/ui-plugin-bundler-kit": "2.26.0",
"@types/node": "^20.19.1",
"@vitejs/plugin-vue": "^5.2.4",
"@vue/tsconfig": "^0.7.0",
"typescript": "~5.8.3",
"vite": "^6.0.0",
"vitest": "^5.1.1",
"vue-tsc": "^2.2.10"
}
}