feat(frontend): federation settings page

This commit is contained in:
2026-05-15 04:14:29 +02:00
parent b86c486530
commit cb413ee6e9
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { cookies } from "next/headers";
import { redirect } from "next/navigation";
import { FederationPanel } from "@/components/federation/federation-panel";
export default async function FederationSettingsPage() {
const token = (await cookies()).get("auth_token")?.value;
if (!token) {
redirect("/login");
}
return (
<div className="space-y-6">
<div className="glass-effect glossy-effect bottom rounded-md shadow-fa-lg p-4">
<h3 className="text-lg font-medium">Federation</h3>
<p className="text-sm text-muted-foreground">
Manage remote follow requests, followers, and accounts you follow on
other instances.
</p>
</div>
<FederationPanel />
</div>
);
}

View File

@@ -11,6 +11,10 @@ const sidebarNavItems = [
title: "API Keys", title: "API Keys",
href: "/settings/api-keys", href: "/settings/api-keys",
}, },
{
title: "Federation",
href: "/settings/federation",
},
]; ];
export default function SettingsLayout({ export default function SettingsLayout({