mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-02-04 20:50:08 +00:00
feat: net transfer badge
This commit is contained in:
@@ -4,10 +4,11 @@ import ServerFlag from "@/components/ServerFlag";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Card, CardContent } from "@/components/ui/card";
|
||||
import { useWebSocketContext } from "@/hooks/use-websocket-context";
|
||||
import { cn, formatBytes, formatNezhaInfo } from "@/lib/utils";
|
||||
import { cn, formatNezhaInfo } from "@/lib/utils";
|
||||
import { NezhaWebsocketResponse } from "@/types/nezha-api";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { formatBytes } from "@/lib/format";
|
||||
|
||||
export default function ServerDetailOverview({
|
||||
server_id,
|
||||
@@ -37,7 +38,10 @@ export default function ServerDetailOverview({
|
||||
return <ServerDetailLoading />;
|
||||
}
|
||||
|
||||
const { name, online, uptime, version } = formatNezhaInfo(nezhaWsData.now,server);
|
||||
const { name, online, uptime, version } = formatNezhaInfo(
|
||||
nezhaWsData.now,
|
||||
server,
|
||||
);
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user