Add nezha-dash

This commit is contained in:
Anyexyz 2024-10-15 20:46:31 +08:00
parent 58cf85c522
commit 7e0ec0ef7d
5 changed files with 180 additions and 0 deletions

View File

@ -0,0 +1,99 @@
additionalProperties:
formFields:
- default: 3000
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- envKey: NEZHA_BASE_URL
labelEn: NezhaBaseUrl
labelZh: 哪吒面板地址
required: true
type: text
edit: true
- envKey: NEZHA_AUTH
labelEn: NezhaAuth
labelZh: 哪吒面板API Token
required: true
type: text
edit: true
- default: zh
edit: true
envKey: DEFAULT_LOCALE
labelEn: DefaultLocale
labelZh: 默认语言
required: true
type: text
- default: false
edit: true
envKey: ForceShowAllServers
labelEn: ForceShowAllServers
labelZh: 是否强制显示所有服务器
required: true
type: text
- default: 2000
edit: true
envKey: NEXT_PUBLIC_NezhaFetchInterval
labelEn: NezhaFetchInterval
labelZh: 获取数据间隔(毫秒)
required: true
type: text
- default: false
edit: true
envKey: NEXT_PUBLIC_ShowFlag
labelEn: ShowFlag
labelZh: 是否显示旗帜
required: true
type: text
- default: false
edit: true
envKey: NEXT_PUBLIC_DisableCartoon
labelEn: DisableCartoon
labelZh: 是否禁用卡通人物
required: true
type: text
- default: false
edit: true
envKey: NEXT_PUBLIC_ShowTag
labelEn: ShowTag
labelZh: 是否显示标签
required: true
type: text
- default: false
edit: true
envKey: NEXT_PUBLIC_ShowNetTransfer
labelEn: ShowNetTransfer
labelZh: 是否显示流量信息
required: true
type: text
- default: false
edit: true
envKey: NEXT_PUBLIC_ForceUseSvgFlag
labelEn: ForceUseSvgFlag
labelZh: 是否强制使用SVG旗帜
required: true
type: text
- default: https://nezha-cf.buycoffee.top/apple-touch-icon.png
edit: true
envKey: NEXT_PUBLIC_CustomLogo
labelEn: CustomLogo
labelZh: 自定义Logo
required: true
type: text
- default: Nezha-Dash
edit: true
envKey: NEXT_PUBLIC_CustomTitle
labelEn: CustomTitle
labelZh: 自定义标题
required: true
type: text
- default: Nezha-Dash
edit: true
envKey: NEXT_PUBLIC_CustomDescription
labelEn: CustomDescription
labelZh: 自定义描述
required: true
type: text

View File

@ -0,0 +1,29 @@
services:
nezha-dash:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:3000"
environment:
- NezhaBaseUrl=${NEZHA_BASE_URL}
- NezhaAuth=${NEZHA_AUTH}
- DefaultLocale=${DEFAULT_LOCALE}
- ForceShowAllServers=${ForceShowAllServers}
- NEXT_PUBLIC_NezhaFetchInterval=${NEXT_PUBLIC_NezhaFetchInterval}
- NEXT_PUBLIC_ShowFlag=${NEXT_PUBLIC_ShowFlag}
- NEXT_PUBLIC_DisableCartoon=${NEXT_PUBLIC_DisableCartoon}
- NEXT_PUBLIC_ShowTag=${NEXT_PUBLIC_ShowTag}
- NEXT_PUBLIC_ShowNetTransfer=${NEXT_PUBLIC_ShowNetTransfer}
- NEXT_PUBLIC_ForceUseSvgFlag=${NEXT_PUBLIC_ForceUseSvgFlag}
- NEXT_PUBLIC_CustomLogo=${NEXT_PUBLIC_CustomLogo}
- NEXT_PUBLIC_CustomTitle=${NEXT_PUBLIC_CustomTitle}
- NEXT_PUBLIC_CustomDescription=${NEXT_PUBLIC_CustomDescription}
image: hamster1963/nezha-dash:v0.5.8-fix
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

32
apps/nezha-dash/README.md Normal file
View File

@ -0,0 +1,32 @@
<h1 align="center">NezhaDash</h1>
<strong>NezhaDash 是一个基于 Next.js 和 哪吒监控 的仪表盘</strong>
<br>
</div>
| 一键部署到 Vercel-推荐 | Docker部署 | Cloudflare部署 |
| ----------------------------------------------------- | --------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [部署简易教程](https://buycoffee.top/blog/tech/nezha) | [Docker 部署教程](https://buycoffee.top/blog/tech/nezha-docker) | [Cloudflare 部署教程](https://buycoffee.top/blog/tech/nezha-cloudflare) |
| [Vercel-demo](https://nezha-dash-ruddy.vercel.app) | [Docker-demo](https://nezha-docker.buycoffee.tech) | [Cloudflare-demo](https://nezha-cloudflare.buycoffee.tech) |
#### 环境变量
| 变量名 | 含义 | 示例 |
| ------------------------------ | -------------------------------- | -------------------------------- |
| NezhaBaseUrl | nezha 面板地址 | http://120.x.x.x:8008 |
| NezhaAuth | nezha 面板 API Token | 5hAY3QX6Nl9B3Uxxxx26KMvOMyXS1Udi |
| DefaultLocale | 面板默认显示语言(代码参考下表) | **默认**en |
| NEXT_PUBLIC_NezhaFetchInterval | 获取数据间隔(毫秒) | **默认**2000 |
| NEXT_PUBLIC_ShowFlag | 是否显示旗帜 | **默认**false |
| NEXT_PUBLIC_DisableCartoon | 是否禁用卡通人物 | **默认**false |
| NEXT_PUBLIC_ShowTag | 是否显示标签 | **默认**false |
#### 多语言支持
| 语言 | 代码 | 是否完成翻译 |
| -------- | ---- | ------------ |
| 简体中文 | zh | 是 |
| 繁体中文 | zh-t | 是 |
| 英语 | en | 是 |
| 日语 | ja | 是 |

20
apps/nezha-dash/data.yml Normal file
View File

@ -0,0 +1,20 @@
name: nezha-dash
tags:
- 工具
title: 一个基于 Next.js 和 哪吒监控 的仪表盘
type: 工具
description: 一个基于 Next.js 和 哪吒监控 的仪表盘
additionalProperties:
key: nezha-dash
name: nezha-dash
tags:
- Tool
shortDescZh: 一个基于 Next.js 和 哪吒监控 的仪表盘
shortDescEn: A dashboard based on Next.exe and Nezha monitoring
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://nezha-cf.buycoffee.top/zh
github: https://github.com/hamster1963/nezha-dash
document: https://github.com/hamster1963/nezha-dash?tab=readme-ov-file#nezhadash

BIN
apps/nezha-dash/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB