From 95a3cfe715f3fb76b6f580cb0996ffdb91318049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=99=9F=20Wu=20Sheng?= Date: Thu, 30 Dec 2021 16:35:18 +0800 Subject: [PATCH] Revert "Alert Settings" --- src/locales/lang/en.ts | 4 -- src/locales/lang/zh.ts | 7 ---- src/router/alert.ts | 10 ++--- src/views/alert/Settings.vue | 72 ------------------------------------ src/views/alert/data.ts | 16 -------- 5 files changed, 5 insertions(+), 104 deletions(-) delete mode 100644 src/views/alert/Settings.vue delete mode 100644 src/views/alert/data.ts diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 073b3e2a..ca98a81a 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -29,10 +29,6 @@ const msg = { logs: "Logs", events: "Events", alerts: "Alerts", - description: "Description", - action: "Action", - createAlert: "Create a alert", - alertSettings: "Alert setting", settings: "Settings", dashboards: "Dashboards", profiles: "Profiles", diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index f6af6f0f..12e6b7f4 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -27,14 +27,7 @@ const msg = { dashboardList: "仪表盘列表", log: "日志", events: "事件", - // 警告 alerts: "警告", - description: "描述", - action: "操作", - createAlert: "创建告警", - alertSettings: "告警设置", - alertName: "警告名称", - startedTime: "开始时间", settings: "设置", dashboards: "仪表盘", profiles: "性能剖析", diff --git a/src/router/alert.ts b/src/router/alert.ts index a972e7ef..c0e27fb2 100644 --- a/src/router/alert.ts +++ b/src/router/alert.ts @@ -24,21 +24,21 @@ export const routesAlert: Array = [ meta: { title: "alerts", icon: "notification_important", - hasGroup: true, - exact: true, + hasGroup: false, + exact: false, }, component: Layout, children: [ { path: "/alerts", - name: "alertSettings", + name: "Alerts", meta: { - title: "Alert Settings", + title: "alerts", icon: "notification_important", hasGroup: false, exact: false, }, - component: () => import("@/views/alert/Settings.vue"), + component: () => import("@/views/Log.vue"), }, ], }, diff --git a/src/views/alert/Settings.vue b/src/views/alert/Settings.vue deleted file mode 100644 index e47cf3e2..00000000 --- a/src/views/alert/Settings.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - - - diff --git a/src/views/alert/data.ts b/src/views/alert/data.ts deleted file mode 100644 index 366cda74..00000000 --- a/src/views/alert/data.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */