From 6c718c4f38c01a8fc192c217daa4458f46961870 Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 24 Mar 2024 22:45:56 +0800 Subject: [PATCH] Remove redundant code for MaxTCPPingValue initialization --- resource/template/theme-daynight/network.html | 233 +++++++++--------- resource/template/theme-default/network.html | 3 - resource/template/theme-mdui/network.html | 3 - .../template/theme-server-status/network.html | 3 - 4 files changed, 117 insertions(+), 125 deletions(-) diff --git a/resource/template/theme-daynight/network.html b/resource/template/theme-daynight/network.html index ed0be4e..5976f85 100644 --- a/resource/template/theme-daynight/network.html +++ b/resource/template/theme-daynight/network.html @@ -20,101 +20,101 @@ -
- -
- -
-
-
-
-
    -
  • -

    @#server.Name#@

    -
  • -
  • -
+
+
-
-
-
+ -
- -
+ -
- -
+
+ +
- - + + - + - - - + + + - -{{end}} +{{end}} \ No newline at end of file diff --git a/resource/template/theme-default/network.html b/resource/template/theme-default/network.html index 56a30f9..d7490b6 100644 --- a/resource/template/theme-default/network.html +++ b/resource/template/theme-default/network.html @@ -28,9 +28,6 @@ const monitorInfo = JSON.parse('{{.MonitorInfos}}'); const initData = JSON.parse('{{.Servers}}').servers; let MaxTCPPingValue = {{.Conf.MaxTCPPingValue}}; - if (MaxTCPPingValue == null) { - MaxTCPPingValue = 1000; - } new Vue({ el: '#app', delimiters: ['@#', '#@'], diff --git a/resource/template/theme-mdui/network.html b/resource/template/theme-mdui/network.html index b9e19b5..5e9a6e3 100644 --- a/resource/template/theme-mdui/network.html +++ b/resource/template/theme-mdui/network.html @@ -55,9 +55,6 @@ const monitorInfo = JSON.parse('{{.MonitorInfos}}'); const initData = JSON.parse('{{.Servers}}').servers; let MaxTCPPingValue = {{.Conf.MaxTCPPingValue}}; - if (MaxTCPPingValue == null) { - MaxTCPPingValue = 1000; - } new Vue({ el: '#app', delimiters: ['@#', '#@'], diff --git a/resource/template/theme-server-status/network.html b/resource/template/theme-server-status/network.html index b9bd38f..1c2dea5 100644 --- a/resource/template/theme-server-status/network.html +++ b/resource/template/theme-server-status/network.html @@ -22,9 +22,6 @@ const monitorInfo = JSON.parse('{{.MonitorInfos}}'); const initData = JSON.parse('{{.Servers}}').servers; let MaxTCPPingValue = {{.Conf.MaxTCPPingValue}}; - if (MaxTCPPingValue == null) { - MaxTCPPingValue = 1000; - } new Vue({ el: '#app', delimiters: ['@#', '#@'],