diff --git a/package.json b/package.json index 043b1a80..fd72edd0 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "@element-plus/icons-vue": "^0.2.4", "axios": "^0.24.0", "element-plus": "^1.2.0-beta.3", "pinia": "^2.0.5", diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 073b3e2a..4d120779 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -33,6 +33,11 @@ const msg = { action: "Action", createAlert: "Create a alert", alertSettings: "Alert setting", + addAlertChannel: "Add Alert Channel", + email: "Email", + slack: "Slack", + weChat: "WeChat", + dingDing: "DingTalk", settings: "Settings", dashboards: "Dashboards", profiles: "Profiles", diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index f6af6f0f..21bf1007 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -33,6 +33,11 @@ const msg = { action: "操作", createAlert: "创建告警", alertSettings: "告警设置", + addAlertChannel: "添加告警通道", + email: "Email", + slack: "Slack", + weChat: "微信", + dingDing: "钉钉", alertName: "警告名称", startedTime: "开始时间", settings: "设置", diff --git a/src/router/alert.ts b/src/router/alert.ts index a972e7ef..23ebb518 100644 --- a/src/router/alert.ts +++ b/src/router/alert.ts @@ -40,6 +40,17 @@ export const routesAlert: Array = [ }, component: () => import("@/views/alert/Settings.vue"), }, + { + path: "/alert/channels", + name: "alertChannels", + meta: { + title: "Alert Channels", + icon: "notification_important", + hasGroup: false, + exact: false, + }, + component: () => import("@/views/alert/Channels.vue"), + }, ], }, ]; diff --git a/src/views/alert/Channels.vue b/src/views/alert/Channels.vue new file mode 100644 index 00000000..5041c321 --- /dev/null +++ b/src/views/alert/Channels.vue @@ -0,0 +1,148 @@ + + + + +