diff --git a/apps/www/src/app/(dashboard)/dashboard/layout.tsx b/apps/www/src/app/(dashboard)/dashboard/layout.tsx deleted file mode 100644 index 11b6ce9..0000000 --- a/apps/www/src/app/(dashboard)/dashboard/layout.tsx +++ /dev/null @@ -1,135 +0,0 @@ -/* - * MHSF, Minehut Server List - * All external content is rather licensed under the ECA Agreement - * located here: https://mhsf.app/docs/legal/external-content-agreement - * - * All code under MHSF is licensed under the MIT License - * by open source contributors - * - * Copyright (c) 2025 dvelo - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - */ - -"use client"; -import "../../globals.css"; -import { useSearchParams } from "next/navigation"; -import { Placeholder } from "@/components/ui/placeholder"; -import { Command, X } from "lucide-react"; -import { IsScript } from "@/components/util/is-script"; -import { Button } from "@/components/ui/button"; -import Link from "next/link"; -import { NavBar } from "@/components/feat/navbar/navbar"; -import { TooltipProvider } from "@/components/ui/tooltip"; -import { ThemeProvider } from "@/components/util/theme-provider"; -import { FontBoundary } from "@/components/util/font-boundary"; -import { ClerkProvider } from "@/components/util/clerk-provider"; -import { Toaster } from "sonner"; -import { Footer } from "@/components/feat/footer/footer"; -import { NuqsAdapter } from "nuqs/adapters/next/app"; -import { IframeProtector } from "@/components/util/iframe-protector"; -import { - Sidebar, - SidebarContent, - SidebarFooter, - SidebarGroup, - SidebarGroupContent, - SidebarHeader, - SidebarInset, - SidebarMenu, - SidebarMenuButton, - SidebarMenuItem, - SidebarProvider, -} from "@/components/ui/sidebar"; - -export default function RootLayout({ - children, -}: { - children: React.ReactNode; -}) { - const searchParams = useSearchParams(); - const search = searchParams?.get("theme") || "light"; - - return ( - <> - - - - - - - - - - - - - -
- -
-
- - Acme Inc - - - Enterprise - -
-
-
-
-
-
- - - - - - - - a - - - - - - - -
- - -
{children}
-
-
-
-
-
-
-
-
- - ); -} diff --git a/apps/www/src/app/(main)/layout.tsx b/apps/www/src/app/(main)/layout.tsx index 37e5b73..8975969 100644 --- a/apps/www/src/app/(main)/layout.tsx +++ b/apps/www/src/app/(main)/layout.tsx @@ -28,14 +28,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ -"use client"; import "../globals.css"; -import { useSearchParams } from "next/navigation"; -import { Placeholder } from "@/components/ui/placeholder"; -import { X } from "lucide-react"; import { IsScript } from "@/components/util/is-script"; -import { Button } from "@/components/ui/button"; -import Link from "next/link"; import { NavBar } from "@/components/feat/navbar/navbar"; import { TooltipProvider } from "@/components/ui/tooltip"; import { ThemeProvider } from "@/components/util/theme-provider"; @@ -50,8 +44,6 @@ export default function RootLayout({ }: { children: React.ReactNode; }) { - const searchParams = useSearchParams(); - const search = searchParams?.get("theme") || "light"; return ( <> diff --git a/apps/www/src/app/(sl-modification-frame)/servers/embedded/sl-modification-frame/category/[category]/modification/custom/[custom-mod]/page.tsx b/apps/www/src/app/(sl-modification-frame)/servers/embedded/sl-modification-frame/category/[category]/modification/custom/[custom-mod]/page.tsx index 03b31f7..612c050 100644 --- a/apps/www/src/app/(sl-modification-frame)/servers/embedded/sl-modification-frame/category/[category]/modification/custom/[custom-mod]/page.tsx +++ b/apps/www/src/app/(sl-modification-frame)/servers/embedded/sl-modification-frame/category/[category]/modification/custom/[custom-mod]/page.tsx @@ -134,6 +134,7 @@ export default function ModificationPage({ activatedModifications: modificationArray } }); + communicator.send("rerender-servers", {}); }}> {modObj?.active ? "Disable" : "Enable"} @@ -165,6 +166,7 @@ export default function ModificationPage({ }); toast.success(`Deleted in ${Date.now() - time}ms`); router.push(backRoute); + communicator.send("rerender-servers", {}); }} > Delete diff --git a/apps/www/src/components/feat/effects/bento-grid.tsx b/apps/www/src/components/feat/effects/bento-grid.tsx deleted file mode 100644 index 81a62fb..0000000 --- a/apps/www/src/components/feat/effects/bento-grid.tsx +++ /dev/null @@ -1,69 +0,0 @@ -import { ComponentPropsWithoutRef, ReactNode } from "react"; - -import { cn } from "@/lib/utils"; - -interface BentoGridProps extends ComponentPropsWithoutRef<"div"> { - children: ReactNode; - className?: string; -} - -interface BentoCardProps extends ComponentPropsWithoutRef<"div"> { - name: string; - className: string; - background: ReactNode; - Icon: React.ElementType; - description: string; - href: string; - cta: string; -} - -const BentoGrid = ({ children, className, ...props }: BentoGridProps) => { - return ( -
- {children} -
- ); -}; - -const BentoCard = ({ - name, - className, - background, - Icon, - description, - href, - cta, - ...props -}: BentoCardProps) => ( -
-
{background}
-
- -

- {name} -

-

{description}

-
- -
-
-); - -export { BentoCard, BentoGrid }; diff --git a/apps/www/src/components/feat/footer/footer.tsx b/apps/www/src/components/feat/footer/footer.tsx index a21fd32..ad126be 100644 --- a/apps/www/src/components/feat/footer/footer.tsx +++ b/apps/www/src/components/feat/footer/footer.tsx @@ -1,3 +1,4 @@ +"use client"; import { BrandingGenericIcon, Discord } from "../icons/branding-icons"; import { Link } from "../../util/link"; import { FooterStatus } from "./status"; @@ -7,10 +8,11 @@ import Github from "@/components/ui/github"; import Image from "next/image" import { usePathname } from "next/navigation"; -const hideFooterPages = ["/home"]; +const hideFooterPages = ["/home"] export function Footer() { const pathname = usePathname(); + if (!hideFooterPages.includes(pathname ?? "")) return (