From ddb05a5aa0d87128cbeca6356ae64ba42e644d04 Mon Sep 17 00:00:00 2001 From: naiba Date: Thu, 19 May 2022 09:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20`dashboard=20v0.13.16`=20?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=A4=96=E9=83=A8=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- README.md | 2 +- model/config.go | 1 + script/docker-compose.yaml | 2 ++ service/singleton/singleton.go | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index aa719e4..1986220 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,6 @@ /main /cmd/agent/main /cmd/dashboard/main -/config.yml \ No newline at end of file +/config.yml +/resource/template/theme-custom +/resource/static/theme-custom diff --git a/README.md b/README.md index 67cb5df..6dae906 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@
LOGO designed by 熊大 .

-    +   

:trollface: Nezha Monitoring self-hosted lightweight monitoring and operation system. Supports system status, HTTP (SSL certificate change, upcoming expiration, expiration), TCP, Ping monitoring and alerting, execute scheduled tasks and web terminal.

diff --git a/model/config.go b/model/config.go index 5164b98..77fcd65 100644 --- a/model/config.go +++ b/model/config.go @@ -21,6 +21,7 @@ var Themes = map[string]string{ "daynight": "JackieSung DayNight", "mdui": "Neko Mdui", "hotaru": "Hotaru", + "custom": "Custom(third-party)", } const ( diff --git a/script/docker-compose.yaml b/script/docker-compose.yaml index 025d481..7f99f91 100644 --- a/script/docker-compose.yaml +++ b/script/docker-compose.yaml @@ -6,6 +6,8 @@ services: restart: always volumes: - ./data:/dashboard/data + - ./theme-custom/template:/dashboard/resuorce/template/theme-default:ro + - ./theme-custom/static:/dashboard/resuorce/static/theme-default:ro ports: - nz_site_port:80 - nz_grpc_port:nz_grpc_port diff --git a/service/singleton/singleton.go b/service/singleton/singleton.go index 400d545..5729a2d 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.13.15" // !!记得修改 README 中的 badge 版本!! +var Version = "v0.13.16" // !!记得修改 README 中的 badge 版本!! var ( Conf *model.Config