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`,
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;
+5 -1
View File
@@ -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 (
<footer className="w-full p-4 h-20">
<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>
</footer>
);
@@ -25,26 +25,21 @@ 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 (
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 w-full">
{kpis.map((kpi) => (
<StatCard
key={kpi.key}
label={kpi.label}
value={kpi.value}
/>
<StatCard key={kpi.key} label={kpi.label} value={kpi.value} />
))}
</div>
);
+1 -1
View File
@@ -17,7 +17,7 @@ export default function AdminDashboardPage() {
description="Overview of your WireGuard network"
/>
<Stack className="w-full px-6 pb-8 gap-5 items-stretch">
<KpiHeroSection clients={clients} />
{/* <KpiHeroSection clients={clients} /> */}
<KpiSecondarySection
clients={clients}
hosts={hosts}