Revert "Add missing admin action files and navigation links"

This reverts commit 41be6835bf.
This commit is contained in:
Simo committed 2026-07-11 20:37:56 +02:00
1 parent 4a1e1115b3
commit 4d515bc400
338 files changed
+5949 -28144

No files matched your search

+3 -6
View File
@@ -110,10 +110,7 @@ async function loadSettingsRows(
}
}
const SETTINGS_FIELD: Record<
"achievement" | "respects" | "onlinetime",
"achievementScore" | "respectsReceived" | "onlineTime"
> = {
const SETTINGS_FIELD: Record<"achievement" | "respects" | "onlinetime", "achievementScore" | "respectsReceived" | "onlineTime"> = {
achievement: "achievementScore",
respects: "respectsReceived",
onlinetime: "onlineTime",
@@ -133,8 +130,8 @@ export default async function LeaderboardPage({
active === "credits"
? loadCreditsRows()
: active === "diamonds" || active === "duckets"
? // eslint-disable-next-line security/detect-object-injection -- active validated as "diamonds"|"duckets" in this branch
loadCurrencyRows(CURRENCY_TYPE[active])
// eslint-disable-next-line security/detect-object-injection -- active validated as "diamonds"|"duckets" in this branch
? loadCurrencyRows(CURRENCY_TYPE[active])
: loadSettingsRows(SETTINGS_FIELD[active as keyof typeof SETTINGS_FIELD]),
siteSettings.get("habbo_imaging_url", "https://www.habbo.com/habbo-imaging/avatarimage"),
]);