mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Merge branch 'hamster1963:main' into main
This commit is contained in:
commit
ea0a87263e
@ -6,7 +6,7 @@
|
||||
</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 部署所需环境变量
|
||||
|
15
changelogithub.config.json
Normal file
15
changelogithub.config.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"types": {
|
||||
"feat": { "title": "🚀 Features" },
|
||||
"fix": { "title": "🔧 Bug Fixes" },
|
||||
"docs": { "title": "📚 Documentation" },
|
||||
"style": { "title": "💄 Styles" },
|
||||
"refactor": { "title": "🔨 Refactor" },
|
||||
"perf": { "title": "🏎 Performance" },
|
||||
"test": { "title": "🚨 Tests" },
|
||||
"build": { "title": "🛠 Build" },
|
||||
"ci": { "title": "👷 CI" },
|
||||
"chore": { "title": "🛗 Chore" },
|
||||
"revert": { "title": "⏪ Revert" }
|
||||
}
|
||||
}
|
@ -16,7 +16,7 @@ export default function ServerCard({
|
||||
}) {
|
||||
const t = useTranslations("ServerCard");
|
||||
const router = useRouter();
|
||||
const { id, name, country_code, online, cpu, up, down, mem, stg } =
|
||||
const { id, name, country_code, online, cpu, up, down, mem, stg, tcp, udp } =
|
||||
formatNezhaInfo(serverInfo);
|
||||
|
||||
const showFlag = getEnv("NEXT_PUBLIC_ShowFlag") === "true";
|
||||
@ -62,7 +62,11 @@ export default function ServerCard({
|
||||
</div>
|
||||
</section>
|
||||
<div className="flex flex-col gap-2">
|
||||
<section className={"grid grid-cols-5 items-center gap-3"}>
|
||||
<section
|
||||
className={cn("grid grid-cols-5 items-center gap-3", {
|
||||
"lg:grid-cols-7": fixedTopServerName,
|
||||
})}
|
||||
>
|
||||
<div className={"flex w-14 flex-col"}>
|
||||
<p className="text-xs text-muted-foreground">{t("CPU")}</p>
|
||||
<div className="flex items-center text-xs font-semibold">
|
||||
@ -100,6 +104,28 @@ export default function ServerCard({
|
||||
: `${down.toFixed(2)}M/s`}
|
||||
</div>
|
||||
</div>
|
||||
{fixedTopServerName && (
|
||||
<div className={" w-14 flex-col hidden lg:flex"}>
|
||||
<p className="text-xs text-muted-foreground">TCP</p>
|
||||
<div className="flex items-center text-xs font-semibold gap-1">
|
||||
<span className="relative inline-flex size-1.5 rounded-full bg-[hsl(var(--chart-1))]"></span>
|
||||
<div className="flex items-center text-xs font-semibold">
|
||||
{tcp}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{fixedTopServerName && (
|
||||
<div className={"w-14 flex-col hidden lg:flex"}>
|
||||
<p className="text-xs text-muted-foreground">UDP</p>
|
||||
<div className="flex items-center text-xs font-semibold gap-1">
|
||||
<span className="relative inline-flex size-1.5 rounded-full bg-[hsl(var(--chart-4))]"></span>
|
||||
<div className="flex items-center text-xs font-semibold">
|
||||
{udp}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</section>
|
||||
{showNetTransfer && (
|
||||
<section
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nezha-dash",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -p 3020",
|
||||
|
Loading…
Reference in New Issue
Block a user