chore: standardize security and quality foundations
Magent CI/CD / verify (push) Failing after 9m34s
Magent CI/CD / deploy-beta (push) Skipped

This commit is contained in:
2026-09-17 20:03:47 +12:00
parent 5639dbcb83
commit f852e7c941
127 changed files with 17928 additions and 10741 deletions
+27 -27
View File
@@ -1,36 +1,36 @@
import { notFound } from 'next/navigation'
import SettingsPage from '../SettingsPage'
import { notFound } from "next/navigation";
import SettingsPage from "../SettingsPage";
const ALLOWED_SECTIONS = new Set([
'seerr',
'jellyseerr',
'jellyfin',
'jellystat',
'artwork',
'sonarr',
'radarr',
'bazarr',
'prowlarr',
'qbittorrent',
'requests',
'issue-workflow',
'cache',
'logs',
'maintenance',
'magent',
'general',
'notifications',
'site',
])
"seerr",
"jellyseerr",
"jellyfin",
"jellystat",
"artwork",
"sonarr",
"radarr",
"bazarr",
"prowlarr",
"qbittorrent",
"requests",
"issue-workflow",
"cache",
"logs",
"maintenance",
"magent",
"general",
"notifications",
"site",
]);
type PageProps = {
params: Promise<{ section: string }>
}
params: Promise<{ section: string }>;
};
export default async function AdminSectionPage({ params }: PageProps) {
const { section } = await params
const { section } = await params;
if (!ALLOWED_SECTIONS.has(section)) {
notFound()
notFound();
}
return <SettingsPage section={section} />
return <SettingsPage section={section} />;
}