diff --git a/src/data/site-data.ts b/src/data/site-data.ts index 7e343ea..09bd8ad 100644 --- a/src/data/site-data.ts +++ b/src/data/site-data.ts @@ -2,6 +2,6 @@ export const SiteData = { SiteName: `Wireguard UI`, SiteDescription: `Wireguard UI is the ultimate dashboard for managing Wireguard.`, SiteSlug: `wgui`, - SiteURL: `http://localhost:10752`, + SiteURL: `https://git.tben.me/Moduletrace/wireguard-ui`, ServerPort: 10752, } as const; diff --git a/src/layouts/admin/(sections)/Footer.tsx b/src/layouts/admin/(sections)/Footer.tsx index e434b21..396d74e 100755 --- a/src/layouts/admin/(sections)/Footer.tsx +++ b/src/layouts/admin/(sections)/Footer.tsx @@ -1,4 +1,5 @@ import Row from "@/src/components/twui/layout/Row"; +import Span from "@/src/components/twui/layout/Span"; import { AppContext } from "@/src/pages/__root"; import type { AppContextObject } from "@/src/types"; import React from "react"; @@ -13,7 +14,10 @@ export default function Footer() { return ( ); diff --git a/src/pages/admin/(sections)/kpi-secondary-section.tsx b/src/pages/admin/(sections)/kpi-secondary-section.tsx index 246805a..98e3f09 100644 --- a/src/pages/admin/(sections)/kpi-secondary-section.tsx +++ b/src/pages/admin/(sections)/kpi-secondary-section.tsx @@ -25,27 +25,22 @@ export default function KpiSecondarySection({ { key: "k-hosts", label: "Total hosts", - value: String(hosts?.length || 0), + value: String(hosts?.length || 1), }, { key: "k-host-address", label: "Main host address", value: - variables?.find( - (v) => v.key == "main_host_wg_ip_address", - )?.value || "—", + variables?.find((v) => v.key == "main_host_wg_ip_address") + ?.value || "—", }, ]; return (
{kpis.map((kpi) => ( - + ))}
); -} \ No newline at end of file +} diff --git a/src/pages/admin/index.tsx b/src/pages/admin/index.tsx index 385be7d..c84b90d 100644 --- a/src/pages/admin/index.tsx +++ b/src/pages/admin/index.tsx @@ -17,7 +17,7 @@ export default function AdminDashboardPage() { description="Overview of your WireGuard network" /> - + {/* */}