mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-09-14 03:09:13 +00:00
✨ feat: add plugin registry and server operations
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { GitGraph, LogOut, type LucideIcon, Network, Server, Users } from "lucide-react";
|
||||
import { GitGraph, LogOut, type LucideIcon, Network, Package, Server, Users } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import { usePathname, useRouter } from "next/navigation";
|
||||
import { useEffect } from "react";
|
||||
@@ -55,6 +55,13 @@ const navigation: NavigationGroup[] = [
|
||||
adminOnly: true,
|
||||
},
|
||||
{ href: "/dashboard/servers", icon: Server, label: "Servers", context: "Workloads" },
|
||||
{
|
||||
href: "/dashboard/plugins",
|
||||
icon: Package,
|
||||
label: "Plugins",
|
||||
context: "Registry",
|
||||
adminOnly: true,
|
||||
},
|
||||
{
|
||||
href: "/dashboard/topology",
|
||||
icon: GitGraph,
|
||||
@@ -94,8 +101,10 @@ export function DashboardLayout({ children }: { children: React.ReactNode }) {
|
||||
(pathname === "/dashboard/users" ||
|
||||
pathname.startsWith("/dashboard/topology") ||
|
||||
pathname.startsWith("/dashboard/k8s") ||
|
||||
pathname.startsWith("/dashboard/plugins") ||
|
||||
pathname.startsWith("/dashboard/servers/create") ||
|
||||
pathname.startsWith("/dashboard/servers/edit"))
|
||||
pathname.startsWith("/dashboard/servers/edit") ||
|
||||
pathname.startsWith("/dashboard/servers/manage"))
|
||||
) {
|
||||
router.replace("/dashboard/servers");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user