Reapply "Add missing admin action files and navigation links"

This reverts commit 4d515bc400.
This commit is contained in:
Simo committed 2026-07-11 20:52:56 +02:00
1 parent 96ed768f14
commit 5b4228261a
338 files changed
+28143 -5948

No files matched your search

+6 -3
View File
@@ -110,7 +110,10 @@ 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",
@@ -130,8 +133,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"),
]);