From 0d9abacf882a5da9e1200c5539f4bed422d95871 Mon Sep 17 00:00:00 2001 From: hanyuxia Date: Thu, 26 Dec 2019 13:00:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E5=8A=9F=E8=83=BD=201.D?= =?UTF-8?q?ashboard=E4=B8=8B=E5=A2=9E=E5=8A=A0=E5=AD=90=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=EF=BC=9APanel=E3=80=81MetricPreview=202.Panel=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E4=B8=8B=E5=AE=8C=E6=88=90=E4=BB=A5=E4=B8=8B=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=20=20=20=20=EF=BC=881=EF=BC=89panel=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=B8=AD=E7=9A=84=E6=96=B0=E5=A2=9E=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=20=20=20=20=EF=BC=882=EF=BC=89panel=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=B8=AD=E5=AF=B9=E5=BA=94=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E7=9A=84=E5=88=A0=E9=99=A4=E5=92=8C=E4=BF=AE=E6=94=B9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=20=20=20=20=EF=BC=883=EF=BC=89Add=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=9A=84=E6=96=B0=E5=A2=9Epanel=E5=8A=9F=E8=83=BD=203.MetricPr?= =?UTF-8?q?eview=E8=8F=9C=E5=8D=95=E5=AE=8C=E6=88=90=E4=BA=86=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E5=88=97=E8=A1=A8=E7=9A=84=E8=B7=B3=E8=BD=AC=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/assets/css/main.css | 2 +- .../src/components/common/header.vue | 16 +- .../src/components/common/language/cn.js | 17 + .../src/components/common/language/en.js | 18 + .../page/dashboard/metricPreview.vue | 49 +++ .../src/components/page/dashboard/panel.vue | 318 ++++++++++++++++++ nezha-fronted/src/router/index.js | 8 + 7 files changed, 422 insertions(+), 6 deletions(-) create mode 100644 nezha-fronted/src/components/page/dashboard/metricPreview.vue create mode 100644 nezha-fronted/src/components/page/dashboard/panel.vue diff --git a/nezha-fronted/src/assets/css/main.css b/nezha-fronted/src/assets/css/main.css index 11deb373c..a4c25ba6a 100644 --- a/nezha-fronted/src/assets/css/main.css +++ b/nezha-fronted/src/assets/css/main.css @@ -267,7 +267,7 @@ html { } /*此处自定义弹框尺寸,不同功能可能需要的尺寸不一样,需自行添加*/ -.right-box-account, .right-box-prom, .right-box-alert-config, .right-box-project, .right-box-module, .right-box-edit-endpoint { +.right-box-account, .right-box-prom, .right-box-alert-config, .right-box-project, .right-box-module, .right-box-edit-endpoint ,.right-box-panel { width: 520px; height: calc(100% - 100px); } diff --git a/nezha-fronted/src/components/common/header.vue b/nezha-fronted/src/components/common/header.vue index d37a91dfe..dd65b80bb 100644 --- a/nezha-fronted/src/components/common/header.vue +++ b/nezha-fronted/src/components/common/header.vue @@ -23,11 +23,17 @@ - -
- {{$t('overall.dashboard')}} -
-
+ + + +
{{$t('dashboard.panel.title')}}
+
+ +
{{$t('dashboard.metricPreview.title')}}
+
+