diff --git a/src/app/admin/studio/nitro-cleanup/page.tsx b/src/app/admin/studio/nitro-cleanup/page.tsx new file mode 100644 index 00000000..c8915a4e --- /dev/null +++ b/src/app/admin/studio/nitro-cleanup/page.tsx @@ -0,0 +1,22 @@ +import { redirect } from "next/navigation"; +import { NitroCleanupPanel } from "@/components/admin/studio/nitro-cleanup-panel"; +import { canAccess, getAdminContext, PERMS } from "@/lib/permissions"; + +export default async function StudioNitroCleanupPage() { + const { session, permissions } = await getAdminContext(); + if (!canAccess(permissions, PERMS.ASSETS_IMPORT, session.user.rank)) { + redirect("/admin"); + } + return ( +
+ Scan the nitro directories for fake bundles (no matching furniture) + and broken bundles (unparseable) and remove them. +
++ {description} +
+
+
+ {entry.fileName}
+
+
+ {formatBytes(entry.size)}
+
+ {entry.error && (
+
+ {entry.error}
+
+ )}
+ {entry.dirs.length > 1 && (
+
+ {entry.dirs.length} copies
+
+ )}
+
+
+ Scan every nitro directory to find fake bundles that belong to no + furniture and broken bundles that can no longer be parsed. Remove + them with one click. +
+