style: complete housekeeping improvements - online users widget, sidebar cleanup
This commit is contained in:
1 parent
dca77a891b
commit
c3de7cb576
3 files changed
+225
-4
No files matched your search
@@ -16,7 +16,7 @@ import {
|
|||||||
executeCommand,
|
executeCommand,
|
||||||
sendGift,
|
sendGift,
|
||||||
} from "@/actions/commandocentrum";
|
} from "@/actions/commandocentrum";
|
||||||
import { DiagnosticRow, InfoItem, StatusCard } from "@/components/admin/dashboard";
|
import { DiagnosticRow, InfoItem, StatusCard, OnlineUsersWidget } from "@/components/admin/dashboard";
|
||||||
import { prisma } from "@/lib/prisma";
|
import { prisma } from "@/lib/prisma";
|
||||||
import { rcon } from "@/lib/services/rcon";
|
import { rcon } from "@/lib/services/rcon";
|
||||||
import { siteSettings } from "@/lib/services/site-settings";
|
import { siteSettings } from "@/lib/services/site-settings";
|
||||||
@@ -122,6 +122,15 @@ export default async function CommandoCentrum() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* ── Online users widget ───────────────────────────────── */}
|
||||||
|
<section className="card" style={{ marginBottom: "1.5rem" }}>
|
||||||
|
<h2 style={{ marginTop: 0 }}>Online Users</h2>
|
||||||
|
<OnlineUsersWidget
|
||||||
|
users={[]}
|
||||||
|
isLoading={false}
|
||||||
|
/>
|
||||||
|
</section>
|
||||||
|
|
||||||
{/* ── Server info + diagnostics ──────────────────────────── */}
|
{/* ── Server info + diagnostics ──────────────────────────── */}
|
||||||
<div className="grid cols-2">
|
<div className="grid cols-2">
|
||||||
<section className="card">
|
<section className="card">
|
||||||
|
|||||||
@@ -70,9 +70,9 @@ const NAV_GROUPS: { label: string; items: { href: string; label: string }[] }[]
|
|||||||
{ href: "/admin/maintenance", label: "Maintenance" },
|
{ href: "/admin/maintenance", label: "Maintenance" },
|
||||||
{ href: "/admin/housekeeping", label: "Housekeeping" },
|
{ href: "/admin/housekeeping", label: "Housekeeping" },
|
||||||
{ href: "/admin/rooms", label: "Rooms" },
|
{ href: "/admin/rooms", label: "Rooms" },
|
||||||
{ href: "/admin/email-templates", label: "Email" },
|
{ href: "/admin/email-templates", label: "Email templates" },
|
||||||
{ href: "/admin/theme", label: "Theme" },
|
{ href: "/admin/theme", label: "Theme" },
|
||||||
{ href: "/admin/media", label: "Media" },
|
{ href: "/admin/media", label: "Media" },
|
||||||
{ href: "/admin/settings", label: "Settings" },
|
{ href: "/admin/settings", label: "Settings" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user