diff --git a/README.md b/README.md index f3aa2ef..277f169 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,9 @@ > [!CAUTION] -> 与哪吒监控 V1 暂不兼容,请保持在 V0 版本。 +> 此为 V0 兼容版本,V1 版本 issue 也可提出 +> +> 有关 V1 版本 pr 可移步 https://github.com/hamster1963/nezha-dash-react ### 部署 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 { diff --git a/bun.lockb b/bun.lockb index 4694410..f54a44e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 07e5a44..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", @@ -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",
{t("CPU")}
{"GPU"}