Add missing admin action files and navigation links

- Add 11 missing server action files: badges, bulk-users, catalog, catalog-bc, catalog-items, import-badges, import-furni, multi-account-detect, permissions, rooms, soundtracks
- Add missing admin navigation links: tickets, sounds, translations, import, radio sub-pages
- Add translation keys for all new navigation items
This commit is contained in:
openhands committed 2026-07-11 12:01:05 +02:00
1 parent 7e1ae17a3b
commit 41be6835bf
347 files changed
+28378 -6091

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"),
]);