Skip to content

Commit

Permalink
✨ feat: add server-status theme (#295)
Browse files Browse the repository at this point in the history
* ✨ feat: add server-status theme

* add `ServerStatus` theme to README

---------

Co-authored-by: naiba <[email protected]>
  • Loading branch information
unclezs and naiba authored Nov 7, 2023
1 parent 150612a commit 470fa69
Show file tree
Hide file tree
Showing 27 changed files with 1,660 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/actions/workflow/status/naiba/nezha/dashboard.yml?branch=master&label=Dash%20v0.15.5&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/github/v/release/nezhahq/agent?color=brightgreen&label=Agent&style=for-the-badge&logo=github">&nbsp;<img src="https://img.shields.io/github/actions/workflow/status/nezhahq/agent/agent.yml?branch=v0.15.5&label=Agent%20CI&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/badge/Installer-v0.15.0-brightgreen?style=for-the-badge&logo=linux">
<img src="https://img.shields.io/github/actions/workflow/status/naiba/nezha/dashboard.yml?branch=master&label=Dash%20v0.15.6&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/github/v/release/nezhahq/agent?color=brightgreen&label=Agent&style=for-the-badge&logo=github">&nbsp;<img src="https://img.shields.io/github/actions/workflow/status/nezhahq/agent/agent.yml?branch=v0.15.6&label=Agent%20CI&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/badge/Installer-v0.15.0-brightgreen?style=for-the-badge&logo=linux">
<br>
<br>
<p>:trollface: <b>Nezha Monitoring: Self-hostable, lightweight, servers and websites monitoring and O&M tool.</b></p>
Expand All @@ -25,8 +25,8 @@
| Default Theme | DayNight [@JackieSung](https://github.com/JackieSung4ev) | hotaru |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
| ![Default Theme](resource/template/theme-default/screenshot.png) | <img src="resource/template/theme-daynight/screenshot.png" width="3000px"/> | <img src="resource/template/theme-hotaru/screenshot.png" width="1500px" /> |
| <div align="center"><b>Default modified <a href="https://www.google.com/search?q=%E5%93%AA%E5%90%92%E7%9B%91%E6%8E%A7%E7%BE%8E%E5%8C%96">[Guide]</a></b></div> | <div align="center"><b>Neko Mdui <a href="https://github.com/MikoyChinese">@MikoyChinese</a></b></div> | <div align="center"><b>AngelKanade <a href="https://github.com/adminsama">@adminsama</a></b></div> |
| ![默认主题魔改](https://fastly.jsdelivr.net/gh/idarku/img@main/me/1631120192341.webp) | ![Neko Mdui](resource/template/theme-mdui/screenshot.png) | ![AngelKanade](resource/template/theme-angel-kanade/screenshot.png) |
| <div align="center"><b>Neko Mdui <a href="https://github.com/MikoyChinese">@MikoyChinese</a></b></div> | <div align="center"><b>AngelKanade <a href="https://github.com/adminsama">@adminsama</a></b></div> |<div align="center"><b>ServerStatus <a href="https://github.com/unclezs">@unclezs</a></b></div> |
| ![Neko Mdui](resource/template/theme-mdui/screenshot.png) | ![AngelKanade](resource/template/theme-angel-kanade/screenshot.png) | ![默认主题魔改](resource/template/theme-server-status/screenshot.png) |

## Supported Languages

Expand Down
13 changes: 7 additions & 6 deletions model/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ var Languages = map[string]string{
}

var Themes = map[string]string{
"default": "Default",
"daynight": "JackieSung DayNight",
"mdui": "Neko Mdui",
"hotaru": "Hotaru",
"angel-kanade": "AngelKanade",
"custom": "Custom(local)",
"default": "Default",
"daynight": "JackieSung DayNight",
"mdui": "Neko Mdui",
"hotaru": "Hotaru",
"angel-kanade": "AngelKanade",
"server-status": "SeverStatus",
"custom": "Custom(local)",
}

var DashboardThemes = map[string]string{
Expand Down
24 changes: 24 additions & 0 deletions resource/l10n/en-US.toml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ other = "Disk"
[MemUsed]
other = "RAM"

[CpuUsed]
other = "CPU"

[Virtualization]
other = "Virtualization"

[SwapUsed]
other = "Swap"

Expand Down Expand Up @@ -475,6 +481,9 @@ other = "Light Mode"
[DarkMode]
other = "Dark Mode"

[SystemMode]
other = "System Mode"

[GridLayout]
other = "Grid Layout"

Expand Down Expand Up @@ -597,3 +606,18 @@ other = "Info"

[HideForGuest]
other = "No display to visitors"

[Feature]
other = "Menu"

[SitePV]
other = "Total page views"

[SitePVUnit]
other = "Page views"

[SiteUV]
other = "Total visitors"

[SiteUVUnit]
other = "Visitors"
26 changes: 25 additions & 1 deletion resource/l10n/es-ES.toml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ other = "Disco"
[MemUsed]
other = "Memoria"

[CpuUsed]
other = "CPU"

[Virtualization]
other = "Virtualización"

[SwapUsed]
other = "Swap"

Expand Down Expand Up @@ -475,6 +481,9 @@ other = "Modo luminoso"
[DarkMode]
other = "Modo oscuro"

[SystemMode]
other = "Modo del sistema"

[GridLayout]
other = "Grid Layout"

Expand Down Expand Up @@ -596,4 +605,19 @@ other = "Tema del panel de administración"
other = "Información"

[HideForGuest]
other = "No se muestra a los visitantes"
other = "No se muestra a los visitantes"

[Feature]
other = "Características"

[SitePV]
other = "Número total de visitas al sitio"

[SitePVUnit]
other = "visitas"

[SiteUV]
other = "Número total de visitantes únicos al sitio"

[SiteUVUnit]
other = "visitantes únicos"
26 changes: 25 additions & 1 deletion resource/l10n/zh-CN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ other = "硬盘"
[MemUsed]
other = "内存"

[CpuUsed]
other = "核心"

[Virtualization]
other = "虚拟化"

[SwapUsed]
other = "交换"

Expand Down Expand Up @@ -475,6 +481,9 @@ other = "白昼模式"
[DarkMode]
other = "暗黑模式"

[SystemMode]
other = "跟随系统"

[GridLayout]
other = "网格视图"

Expand Down Expand Up @@ -596,4 +605,19 @@ other = "管理后台主题"
other = "信息"

[HideForGuest]
other = "对游客隐藏"
other = "对游客隐藏"

[Feature]
other = "功能"

[SitePV]
other = "本站总访问量"

[SitePVUnit]
other = ""

[SiteUV]
other = "本站总访客数"

[SiteUVUnit]
other = "人次"
26 changes: 25 additions & 1 deletion resource/l10n/zh-TW.toml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ other = "硬盤"
[MemUsed]
other = "內存"

[CpuUsed]
other = "CPU"

[Virtualization]
other = "虛擬化"

[SwapUsed]
other = "交換"

Expand Down Expand Up @@ -475,6 +481,9 @@ other = "白晝模式"
[DarkMode]
other = "暗黑模式"

[SystemMode]
other = "系統模式"

[GridLayout]
other = "網格視圖"

Expand Down Expand Up @@ -596,4 +605,19 @@ other = "管理後臺主題"
other = "訊息"

[HideForGuest]
other = "對遊客隱藏"
other = "對遊客隱藏"

[Feature]
other = "功能"

[SitePV]
other = "本站總訪問量"

[SitePVUnit]
other = ""

[SiteUV]
other = "本站總訪問人數"

[SiteUVUnit]
other = "人次"

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions resource/static/theme-server-status/css/bootstrap.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

132 changes: 132 additions & 0 deletions resource/static/theme-server-status/css/dark.css

Large diffs are not rendered by default.

78 changes: 78 additions & 0 deletions resource/static/theme-server-status/css/light.css

Large diffs are not rendered by default.

Loading

0 comments on commit 470fa69

Please sign in to comment.