diff --git a/resource/static/main.css b/resource/static/main.css index f323b5d..f2f81a9 100644 --- a/resource/static/main.css +++ b/resource/static/main.css @@ -67,4 +67,8 @@ .status.cards .outline.icon { margin-right: 0 !important; +} + +.ui.progress .bar { + min-width: .15em !important; } \ No newline at end of file diff --git a/resource/static/theme-hotaru/css/main.css b/resource/static/theme-hotaru/css/main.css index c6bd2bf..9ddfabf 100644 --- a/resource/static/theme-hotaru/css/main.css +++ b/resource/static/theme-hotaru/css/main.css @@ -187,4 +187,8 @@ table tr { background-color: slategray; border-radius: .3em; margin-left: 1em; +} + +.ui.progress .bar { + min-width: .15em !important; } \ No newline at end of file diff --git a/resource/template/common/header.html b/resource/template/common/header.html index fdeba43..630d5a2 100644 --- a/resource/template/common/header.html +++ b/resource/template/common/header.html @@ -9,7 +9,7 @@ {{.Title}} - + diff --git a/resource/template/theme-default/home.html b/resource/template/theme-default/home.html index 02dd0c0..7318f34 100644 --- a/resource/template/theme-default/home.html +++ b/resource/template/theme-default/home.html @@ -15,7 +15,8 @@ v-if='server.Host.Platform == "darwin"' class="apple icon">@#server.Name + (server.live?'':' [已离线]')#@ + v-if='server.Host.Platform == "freebsd"' class="freebsd icon">@#server.Name + + (server.live?'':' [已离线]')#@
内存
-
+
-
+
+ @#parseInt(server.State?server.State.MemUsed/server.Host.MemTotal*100:0)#@% +
交换
-
+
-
+
+ @#parseInt(server.State?server.State.SwapUsed/server.Host.SwapTotal*100:0)#@% +
@@ -68,10 +77,13 @@
硬盘
-
+
-
+
+ @#parseInt(server.State?server.State.DiskUsed/server.Host.DiskTotal*100:0)#@% +
diff --git a/resource/template/theme-hotaru/home.html b/resource/template/theme-hotaru/home.html index 992fbbe..81c7d86 100644 --- a/resource/template/theme-hotaru/home.html +++ b/resource/template/theme-hotaru/home.html @@ -17,7 +17,7 @@ - + {{if ts .CustomCSS}} {{tag "style"}} @@ -93,7 +93,7 @@
-
@#parseInt(server.State?server.State.DiskUsed/server.Host.DiskTotal*100:0)#@%