Remove import/repair feature and related API routes.
Local Build and Deploy / deploy (push) Successful in 1m41s

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-17 18:52:38 +02:00
1 parent bb7d581084
commit 49d204e85c
9 files changed
+2 -1468

No files matched your search

-7
View File
@@ -5,7 +5,6 @@ import {
Dumbbell,
Puzzle,
Shirt,
Wrench,
} from "lucide-react";
import Link from "next/link";
import { redirect } from "next/navigation";
@@ -56,12 +55,6 @@ export default async function ImportPage() {
icon: Copy,
description: t("cloneDescription"),
},
{
href: "/admin/import/repair",
label: t("repair"),
icon: Wrench,
description: t("repairDescription"),
},
] as const;
return (
-12
View File
@@ -1,12 +0,0 @@
import { redirect } from "next/navigation";
import { canAccess, getAdminContext, PERMS } from "@/lib/permissions";
import { RepairClient } from "./repair-client";
export default async function RepairImportedPage() {
const { session, permissions } = await getAdminContext();
if (!canAccess(permissions, PERMS.ASSETS_IMPORT, session.user.rank)) {
redirect("/admin");
}
return <RepairClient />;
}
File diff suppressed because it is too large. Load diff
@@ -1,11 +0,0 @@
import { withAdmin } from "@/lib/api-handler";
import { apiOk } from "@/lib/api-response";
import { PERMS } from "@/lib/permissions";
import { auditImportedAssets } from "@/lib/services/furni-repair";
// Audit is expensive (scans every imported item's files on disk).
// Using POST keeps it out of any cache layer that might front GET.
export const POST = withAdmin({ permission: PERMS.ASSETS_IMPORT }, async () => {
const summary = await auditImportedAssets();
return apiOk(summary as unknown as Record<string, unknown>);
});
File diff suppressed because it is too large. Load diff
-2
View File
@@ -21,8 +21,6 @@ const ROUTES = [
"pets",
"pets/batch",
"pets/icon",
"repair",
"repair/audit",
];
describe("admin import backend contract", () => {
+1 -1
View File
@@ -10,7 +10,7 @@ import type { HabboItFurniEntry } from "@/lib/services/habbo-furnidata-cache";
import { lookupHabboIt } from "@/lib/services/habbo-furnidata-cache";
// Re-export the download helpers now owned by the shared import core.
// Existing furni callers (and furni-repair) keep importing them from here.
// Existing furni callers keep importing them from here.
export {
downloadFile,
validatePngBytes,
File diff suppressed because it is too large. Load diff
+1 -3
View File
@@ -2038,9 +2038,7 @@
"pets": "Pets",
"petsDescription": "Import pet data and icons.",
"clone": "Clone",
"cloneDescription": "Clone existing items from one source to another.",
"repair": "Repair",
"repairDescription": "Audit and repair imported assets."
"cloneDescription": "Clone existing items from one source to another."
},
"translations": {
"title": "Translations",