From 16e21e3851278cb2480aae66d884c067068e1e2f Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Thu, 23 Nov 2023 18:57:52 +0800 Subject: [PATCH] update monitor detail table ui layout (#1352) --- .../monitor-data-chart.component.html | 20 +- .../monitor-data-table.component.html | 18 +- .../monitor-detail.component.html | 259 +++++++++--------- web-app/src/assets/i18n/en-US.json | 2 +- web-app/src/assets/i18n/zh-CN.json | 2 +- web-app/src/assets/i18n/zh-TW.json | 2 +- 6 files changed, 154 insertions(+), 149 deletions(-) diff --git a/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.html b/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.html index ffefdb04a96..bacaf2cef14 100644 --- a/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.html +++ b/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.html @@ -1,9 +1,11 @@ -
+ +
+
diff --git a/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.html b/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.html index 85411011350..1924ab34fec 100644 --- a/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.html +++ b/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.html @@ -1,4 +1,10 @@ - + @@ -19,7 +25,13 @@ - + @@ -50,7 +62,7 @@ - + {{ 'monitors.collect.time' | i18n }}:{{ time | _date : 'HH:mm:ss' }} diff --git a/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.html b/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.html index 3e86c03ea90..3f62e19f004 100644 --- a/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.html +++ b/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.html @@ -31,130 +31,132 @@ - - -
-

ID

-

{{ monitorId }}

-
-
-

{{ 'monitors.detail.name' | i18n }}

-

{{ monitor.name }}

-
-
-

HOST

-

{{ monitor.host }}

-
-
-

{{ 'monitors.detail.port' | i18n }}

-

{{ port }}

-
-
-

{{ 'monitors.detail.description' | i18n }}

-

{{ monitor.description }}

-
-
-

{{ 'monitors.detail.status' | i18n }}

-
- - - {{ 'monitor.status.un-manage' | i18n }} - - - - {{ 'monitor.status.available' | i18n }} - - - - {{ 'monitor.status.unavailable' | i18n }} - -
-
-
-

{{ 'monitor.intervals' | i18n }}

-

{{ monitor.intervals }}s

-
-
-

{{ 'common.new-time' | i18n }}

-

{{ monitor.gmtCreate | date : 'YYYY-MM-dd HH:mm:ss' }}

-
-
-

{{ 'common.edit-time' | i18n }}

-

{{ monitor.gmtUpdate | date : 'YYYY-MM-dd HH:mm:ss' }}

-
-
-
- - - - - - - - {{ 'monitors.detail.realtime' | i18n }} - -
-
- -
-
-
- - - - {{ 'monitors.detail.history' | i18n }} - -
-
- -
+ + + + + + + {{ 'monitors.detail.realtime' | i18n }} + +
+
+ +
+

ID

+

{{ monitorId }}

+
+
+

{{ 'monitors.detail.name' | i18n }}

+

{{ monitor.name }}

+
+
+

HOST

+

{{ monitor.host }}

+
+
+

{{ 'monitors.detail.port' | i18n }}

+

{{ port }}

+
+
+

{{ 'monitors.detail.description' | i18n }}

+

{{ monitor.description }}

+
+
+

{{ 'monitors.detail.status' | i18n }}

+
+ + + {{ 'monitor.status.un-manage' | i18n }} + + + + {{ 'monitor.status.available' | i18n }} + + + + {{ 'monitor.status.unavailable' | i18n }} + +
+
+
+

{{ 'monitor.intervals' | i18n }}

+

{{ monitor.intervals }}s

+
+
+

{{ 'common.new-time' | i18n }}

+

{{ monitor.gmtCreate | date : 'YYYY-MM-dd HH:mm:ss' }}

+
+
+

{{ 'common.edit-time' | i18n }}

+

{{ monitor.gmtUpdate | date : 'YYYY-MM-dd HH:mm:ss' }}

+
+
- - - - - + +
+
+ + + + {{ 'monitors.detail.history' | i18n }} + +
+ +
+
+
+
+
@@ -167,17 +169,6 @@ -