Add account restrictions, appeals, and admin moderation tools

This commit is contained in:
2026-10-13 12:32:37 +05:00
parent 018be5049e
commit cfe5820802
28 changed files with 1936 additions and 125 deletions

View File

@@ -1,19 +1,28 @@
import { getI18n } from "@/lib/i18n";
import { Header, Footer } from "@/components/Shell";
import { Moderation } from "@/components/Moderation";
import Link from "next/link";
import { staffPage } from "@/lib/staff-page";
import { isAdministrator } from "@/shared/permissions";
export const metadata = { title: "Moderation Tools" };
export default async function Review() {
const { t } = await getI18n();
const [{ t }, staff] = await Promise.all([getI18n(), staffPage()]);
return (
<>
<Header />
<main className="section page-content moderation-page">
<span className="eyebrow">{t("THE COMMUNITY’S COMPASS")}</span>
<h1>{t("Map moderation.")}</h1>
<h1>{t("Moderation Tools.")}</h1>
<p className="lead">
{t(
"Review map quality and coverage before a world enters the public catalog.",
)}
{t("Review pending maps, map updates and account ban appeals.")}
</p>
{isAdministrator(staff.role) && (
<p>
<Link className="button" href="/admin">
{t("Open Admin Tools")}
</Link>
</p>
)}
<Moderation />
</main>
<Footer />