This commit is contained in:
2026-09-20 11:21:26 +01:00
parent 59071f87ad
commit fd0af3172d
4 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -2,6 +2,6 @@ export const SiteData = {
SiteName: `Wireguard UI`, SiteName: `Wireguard UI`,
SiteDescription: `Wireguard UI is the ultimate dashboard for managing Wireguard.`, SiteDescription: `Wireguard UI is the ultimate dashboard for managing Wireguard.`,
SiteSlug: `wgui`, SiteSlug: `wgui`,
SiteURL: `http://localhost:10752`, SiteURL: `https://git.tben.me/Moduletrace/wireguard-ui`,
ServerPort: 10752, ServerPort: 10752,
} as const; } as const;
+5 -1
View File
@@ -1,4 +1,5 @@
import Row from "@/src/components/twui/layout/Row"; import Row from "@/src/components/twui/layout/Row";
import Span from "@/src/components/twui/layout/Span";
import { AppContext } from "@/src/pages/__root"; import { AppContext } from "@/src/pages/__root";
import type { AppContextObject } from "@/src/types"; import type { AppContextObject } from "@/src/types";
import React from "react"; import React from "react";
@@ -13,7 +14,10 @@ export default function Footer() {
return ( return (
<footer className="w-full p-4 h-20"> <footer className="w-full p-4 h-20">
<Row className="h-full"> <Row className="h-full">
<span>Copyright {new Date().getFullYear()}</span> <Span size="smaller" variant="faded">
Copyright © {new Date().getFullYear()}. Wireguard UI. All
rights reserved
</Span>
</Row> </Row>
</footer> </footer>
); );
@@ -25,26 +25,21 @@ export default function KpiSecondarySection({
{ {
key: "k-hosts", key: "k-hosts",
label: "Total hosts", label: "Total hosts",
value: String(hosts?.length || 0), value: String(hosts?.length || 1),
}, },
{ {
key: "k-host-address", key: "k-host-address",
label: "Main host address", label: "Main host address",
value: value:
variables?.find( variables?.find((v) => v.key == "main_host_wg_ip_address")
(v) => v.key == "main_host_wg_ip_address", ?.value || "—",
)?.value || "—",
}, },
]; ];
return ( return (
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 w-full"> <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 w-full">
{kpis.map((kpi) => ( {kpis.map((kpi) => (
<StatCard <StatCard key={kpi.key} label={kpi.label} value={kpi.value} />
key={kpi.key}
label={kpi.label}
value={kpi.value}
/>
))} ))}
</div> </div>
); );
+1 -1
View File
@@ -17,7 +17,7 @@ export default function AdminDashboardPage() {
description="Overview of your WireGuard network" description="Overview of your WireGuard network"
/> />
<Stack className="w-full px-6 pb-8 gap-5 items-stretch"> <Stack className="w-full px-6 pb-8 gap-5 items-stretch">
<KpiHeroSection clients={clients} /> {/* <KpiHeroSection clients={clients} /> */}
<KpiSecondarySection <KpiSecondarySection
clients={clients} clients={clients}
hosts={hosts} hosts={hosts}