Compare commits

..

5 Commits

Author SHA1 Message Date
hamster1963
c9107a1469 Merge branch 'main' into cloudflare 2024-11-05 17:52:50 +08:00
hamster1963
a8cbf9589a fix(overview): bandwidth text warp 2024-11-05 17:52:40 +08:00
hamster1963
81c6f2ef32 Merge branch 'main' into cloudflare 2024-11-05 17:43:42 +08:00
hamster1963
64814fcf40 update: v1.2.4 2024-11-05 17:43:26 +08:00
仓鼠
e485eeda0c
feat(docs): brand new docs site 2024-11-05 17:41:36 +08:00
3 changed files with 17 additions and 29 deletions

View File

@ -5,35 +5,23 @@
</div> </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) | [更新教程](https://buycoffee.top/blog/tech/nezha-upgrade) |
#### Cloudflare 部署所需环境变量 支持部署环境:
NODE_VERSION 22.9.0 - Vercel
<br> - Cloudflare
BUN_VERSION 1.1.29 - Docker
#### 环境变量 [说明文档](https://nezhadash-docs.vercel.app)
| 变量名 | 含义 | 示例 | ### 如何更新
| ------------------------------ | ------------------------------ | ------------------------------------------------------------- |
| NezhaBaseUrl | nezha 面板地址 | http://120.x.x.x:8008 | [更新教程](https://buycoffee.top/blog/tech/nezha-upgrade)
| NezhaAuth | nezha 面板 API Token | 5hAY3QX6Nl9B3Uxxxx26KMvOMyXS1Udi |
| SitePassword | 页面密码 | **默认**:无密码 | ### 环境变量
| DefaultLocale | 面板默认显示语言 | **默认**en [简中:zh 繁中:zh-t 英语:en 日语:ja] |
| ForceShowAllServers | 是否强制显示所有服务器 | **默认**false | [环境变量介绍](https://nezhadash-docs.vercel.app/environment)
| NEXT_PUBLIC_NezhaFetchInterval | 获取数据间隔(毫秒) | **默认**2000 |
| NEXT_PUBLIC_ShowFlag | 是否显示旗帜 | **默认**false |
| NEXT_PUBLIC_DisableCartoon | 是否禁用卡通人物 | **默认**false |
| NEXT_PUBLIC_ShowTag | 是否显示标签 | **默认**false |
| NEXT_PUBLIC_ShowNetTransfer | 是否显示流量信息 | **默认**false |
| NEXT_PUBLIC_ForceUseSvgFlag | 是否强制使用SVG旗帜 | **默认**false |
| NEXT_PUBLIC_FixedTopServerName | 是否固定卡片顶部显示服务器名称 | **默认**false |
| NEXT_PUBLIC_CustomLogo | 自定义Logo | **示例**https://nezha-cf.buycoffee.top/apple-touch-icon.png |
| NEXT_PUBLIC_CustomTitle | 自定义标题 | |
| NEXT_PUBLIC_CustomDescription | 自定义描述(无多语言支持) | |
![screen](/.github/shot-1.png) ![screen](/.github/shot-1.png)
![screen](/.github/shot-2.png) ![screen](/.github/shot-2.png)

View File

@ -110,11 +110,11 @@ export default function ServerOverviewClient() {
{t("p_3463-3530_Totalbandwidth")} {t("p_3463-3530_Totalbandwidth")}
</p> </p>
{data?.result ? ( {data?.result ? (
<section className="flex flex-col sm:flex-row pt-[4px] sm:items-center items-start gap-2"> <section className="flex flex-col sm:flex-row pt-[8px] sm:items-center items-start gap-1">
<p className="text-[13px] font-semibold"> <p className="text-[12px] text-nowrap font-semibold">
{formatBytes(data?.total_out_bandwidth)} {formatBytes(data?.total_out_bandwidth)}
</p> </p>
<p className="text-[13px] font-semibold"> <p className="text-[12px] text-nowrap font-semibold">
{formatBytes(data?.total_in_bandwidth)} {formatBytes(data?.total_in_bandwidth)}
</p> </p>
</section> </section>

View File

@ -1,6 +1,6 @@
{ {
"name": "nezha-dash", "name": "nezha-dash",
"version": "1.2.3", "version": "1.2.4",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 3020", "dev": "next dev -p 3020",