From 9a621e3e17345b0e867ca9bac10ed23ea600a29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=93=E9=BC=A0?= <71394853+hamster1963@users.noreply.github.com> Date: Sun, 1 Dec 2024 21:59:28 +0800 Subject: [PATCH 1/5] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f3aa2ef..d4befbe 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ > [!CAUTION] -> 与哪吒监控 V1 暂不兼容,请保持在 V0 版本。 +> 此为 V0 兼容版本,V1 版本 issue 也可提出 +> 有关 V1 版本 pr 可移步 https://github.com/hamster1963/nezha-dash-react ### 部署 From 14abc76fbc1e83add28adc25d222a11aca4025fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=93=E9=BC=A0?= <71394853+hamster1963@users.noreply.github.com> Date: Sun, 1 Dec 2024 22:01:49 +0800 Subject: [PATCH 2/5] docs: Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d4befbe..277f169 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ > [!CAUTION] > 此为 V0 兼容版本,V1 版本 issue 也可提出 +> > 有关 V1 版本 pr 可移步 https://github.com/hamster1963/nezha-dash-react ### 部署 From b4e68180ef961a69bf835e866a8589e4b9b02e3b Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 2 Dec 2024 14:14:33 +0800 Subject: [PATCH 3/5] feat(detail): add gpu info --- app/(main)/ClientComponents/ServerDetailClient.tsx | 14 +++++++++++++- app/types/nezha-api.ts | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/(main)/ClientComponents/ServerDetailClient.tsx b/app/(main)/ClientComponents/ServerDetailClient.tsx index 724e30c..51d4263 100644 --- a/app/(main)/ClientComponents/ServerDetailClient.tsx +++ b/app/(main)/ClientComponents/ServerDetailClient.tsx @@ -191,7 +191,19 @@ export default function ServerDetailClient({

{t("CPU")}

{data?.host.CPU ? ( -
{data?.host.CPU}
+
{data?.host.CPU.join(", ")}
+ ) : ( +
Unknown
+ )} +
+ + + + +
+

{"GPU"}

+ {data?.host.GPU ? ( +
{data?.host.GPU.join(", ")}
) : (
Unknown
)} diff --git a/app/types/nezha-api.ts b/app/types/nezha-api.ts index 899809a..92dee5d 100644 --- a/app/types/nezha-api.ts +++ b/app/types/nezha-api.ts @@ -35,7 +35,7 @@ export interface NezhaAPIHost { BootTime: number; CountryCode: string; Version: string; - GPU: null; + GPU: string[]; } export interface NezhaAPIStatus { From 3a88c9a837edc0815bb406093c9c4cded8889a38 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 2 Dec 2024 14:15:31 +0800 Subject: [PATCH 4/5] chore: deps --- bun.lockb | Bin 613720 -> 613720 bytes package.json | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bun.lockb b/bun.lockb index 4694410d41b7ec6d80d0e2b48ed0a7b6e47ecca2..f54a44e76af65307f03b25c1022090764249bc8e 100755 GIT binary patch delta 172 zcmV;d08{_ix+U1UC6F#4*8%QdV&1wg?k)$8N^Qsa3b&1sNh-o>Y1zbauKj}Xu}+%0 z0~N~2laN;>lh9%bgBiQG8M^^g*g$*v2{%y;$aFJ-!vqovDEWlKJ5xpqVi+DyP?N~h z=mxV{>5}CEN+*<|2$@IRW@|KuS)un02uvBNvm=bG=A4JElLCjWlLLpXlLUvYlLd#Z alLoh~lLy0Eml010Cx@5r2e+5*2*GZYeoxN; delta 177 zcmV;i08andx+U1UC6F#4rRlVk+(wniYn}}6GqF7~%L!2ND>ehB=(F?E^xX?Vu}+%0 z0~E^1laN;>lh9%bgBiQG8M^^g*gzXn(ZI40j1(x!tr;Y0h9H#}%%38zmg5|{RYh>` z1Vo$^pIg_vASA(!BX2L^|i?gzJ*?g+td?j%&@ diff --git a/package.json b/package.json index 07e5a44..db8c1fe 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@types/d3-geo": "^3.1.0", "@types/luxon": "^3.4.2", "@typescript-eslint/eslint-plugin": "^8.16.0", - "caniuse-lite": "^1.0.30001684", + "caniuse-lite": "^1.0.30001685", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "country-flag-icons": "^1.5.13", From 6844bea7be801d4073af9c1faf7f726d507770a2 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 2 Dec 2024 14:15:49 +0800 Subject: [PATCH 5/5] update: v1.6.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index db8c1fe..f16a659 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nezha-dash", - "version": "1.6.2-fix", + "version": "1.6.3", "private": true, "scripts": { "dev": "next dev -p 3040",