From 7d837b6dccc2b03ab67b832ed9c6c3093e7e0d1e Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Tue, 5 Nov 2024 17:36:06 +0800 Subject: [PATCH 1/4] fix(overview): bandwidth show on mobile --- app/(main)/ClientComponents/ServerOverviewClient.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/(main)/ClientComponents/ServerOverviewClient.tsx b/app/(main)/ClientComponents/ServerOverviewClient.tsx index 44407a3..d3ac1d1 100644 --- a/app/(main)/ClientComponents/ServerOverviewClient.tsx +++ b/app/(main)/ClientComponents/ServerOverviewClient.tsx @@ -110,11 +110,11 @@ export default function ServerOverviewClient() { {t("p_3463-3530_Totalbandwidth")}
{data?.result ? ( -
+
↑{formatBytes(data?.total_out_bandwidth)}
+
↓{formatBytes(data?.total_in_bandwidth)}
-BUN_VERSION 1.1.29
+### 如何更新
+[更新教程](https://buycoffee.top/blog/tech/nezha-upgrade)
-#### 环境变量
+### 环境变量
-| 变量名 | 含义 | 示例 |
-| ------------------------------ | ------------------------------ | ------------------------------------------------------------- |
-| NezhaBaseUrl | nezha 面板地址 | http://120.x.x.x:8008 |
-| NezhaAuth | nezha 面板 API Token | 5hAY3QX6Nl9B3Uxxxx26KMvOMyXS1Udi |
-| SitePassword | 页面密码 | **默认**:无密码 |
-| DefaultLocale | 面板默认显示语言 | **默认**:en [简中:zh 繁中:zh-t 英语:en 日语:ja] |
-| ForceShowAllServers | 是否强制显示所有服务器 | **默认**:false |
-| 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 | 自定义描述(无多语言支持) | |
+[环境变量介绍](https://nezhadash-docs.vercel.app/environment)


From 64814fcf40fc056998f649eb99e29665f5433f3c Mon Sep 17 00:00:00 2001
From: hamster1963 <1410514192@qq.com>
Date: Tue, 5 Nov 2024 17:43:26 +0800
Subject: [PATCH 3/4] update: v1.2.4
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index a3d1c9e..0208f46 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "nezha-dash",
- "version": "1.2.3",
+ "version": "1.2.4",
"private": true,
"scripts": {
"dev": "next dev -p 3020",
From a8cbf9589a56df3674f669d9ae55b2ac46bbd9b3 Mon Sep 17 00:00:00 2001
From: hamster1963 <1410514192@qq.com>
Date: Tue, 5 Nov 2024 17:52:40 +0800
Subject: [PATCH 4/4] fix(overview): bandwidth text warp
---
README.md | 4 +++-
app/(main)/ClientComponents/ServerOverviewClient.tsx | 6 +++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 27266a7..9f98a01 100644
--- a/README.md
+++ b/README.md
@@ -6,15 +6,17 @@
### 部署
+
支持部署环境:
+
- Vercel
- Cloudflare
- Docker
[说明文档](https://nezhadash-docs.vercel.app)
-
### 如何更新
+
[更新教程](https://buycoffee.top/blog/tech/nezha-upgrade)
### 环境变量
diff --git a/app/(main)/ClientComponents/ServerOverviewClient.tsx b/app/(main)/ClientComponents/ServerOverviewClient.tsx
index d3ac1d1..57209ca 100644
--- a/app/(main)/ClientComponents/ServerOverviewClient.tsx
+++ b/app/(main)/ClientComponents/ServerOverviewClient.tsx
@@ -110,11 +110,11 @@ export default function ServerOverviewClient() {
{t("p_3463-3530_Totalbandwidth")}
+
↑{formatBytes(data?.total_out_bandwidth)}
+
↓{formatBytes(data?.total_in_bandwidth)}