🚀 dashboard v0.13.16 自定义外部主题

This commit is contained in:
naiba 2022-05-19 09:46:11 +08:00
parent 593e729021
commit ddb05a5aa0
5 changed files with 8 additions and 3 deletions

4
.gitignore vendored
View File

@ -18,4 +18,6 @@
/main
/cmd/agent/main
/cmd/dashboard/main
/config.yml
/config.yml
/resource/template/theme-custom
/resource/static/theme-custom

View File

@ -4,7 +4,7 @@
<br>
<small><i>LOGO designed by <a href="https://xio.ng" target="_blank">熊大</a> .</i></small>
<br><br>
<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=Dash%20v0.13.15&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github">&nbsp;<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/badge/Installer-v0.10.2-brightgreen?style=for-the-badge&logo=linux">
<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=Dash%20v0.13.16&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github">&nbsp;<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/badge/Installer-v0.10.2-brightgreen?style=for-the-badge&logo=linux">
<br>
<br>
<p>:trollface: <b>Nezha Monitoring</b> self-hosted lightweight monitoring and operation system. Supports system status, HTTP (SSL certificate change, upcoming expiration, expiration), TCP, Ping <b>monitoring</b> and <b>alerting</b>, execute scheduled tasks and <b>web terminal</b>.</p>

View File

@ -21,6 +21,7 @@ var Themes = map[string]string{
"daynight": "JackieSung DayNight",
"mdui": "Neko Mdui",
"hotaru": "Hotaru",
"custom": "Custom(third-party)",
}
const (

View File

@ -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

View File

@ -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