From 7a774319dd8c96baa849d4f7fe8fd5ec5bcce5b6 Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 26 Nov 2023 22:29:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Add=20location=20flag=20to=20ser?= =?UTF-8?q?ver=20status=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- resource/template/theme-server-status/home.html | 6 +++++- service/singleton/singleton.go | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3656144..8b46045 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@
LOGO designed by 熊大 .

-    +   

:trollface: Nezha Monitoring: Self-hostable, lightweight, servers and websites monitoring and O&M tool.

diff --git a/resource/template/theme-server-status/home.html b/resource/template/theme-server-status/home.html index fabca1a..b5da7de 100644 --- a/resource/template/theme-server-status/home.html +++ b/resource/template/theme-server-status/home.html @@ -73,7 +73,11 @@ {{tr "Platform"}}: @#node.host.Platform#@ - + + {{tr "Location"}}: + + + CPU: @#node.host.CPU.join(",")#@ diff --git a/service/singleton/singleton.go b/service/singleton/singleton.go index 35edb0d..2e52f7d 100644 --- a/service/singleton/singleton.go +++ b/service/singleton/singleton.go @@ -12,7 +12,7 @@ import ( "github.com/naiba/nezha/pkg/utils" ) -var Version = "v0.15.12" // !!记得修改 README 中的 badge 版本!! +var Version = "v0.15.13" // !!记得修改 README 中的 badge 版本!! var ( Conf *model.Config