feat: banning

This commit is contained in:
Face 2025-05-31 19:29:20 +03:00
parent bc1687e40a
commit d9f2836fb9
11 changed files with 576 additions and 21 deletions

View file

@ -27,7 +27,10 @@
ChartColumn,
TrendingUpDown,
Scale,
ShieldCheck
ShieldCheck,
Hammer
} from 'lucide-svelte';
import { mode, setMode } from 'mode-watcher';
import type { HTMLAttributes } from 'svelte/elements';
@ -113,6 +116,11 @@
setOpenMobile(false);
}
function handleUserManagementClick() {
goto('/admin/users');
setOpenMobile(false);
}
function handlePromoCodesClick() {
goto('/admin/promo');
setOpenMobile(false);
@ -402,6 +410,13 @@
<Shield class="text-primary" />
Admin Panel
</DropdownMenu.Item>
<DropdownMenu.Item
onclick={handleUserManagementClick}
class="text-primary hover:text-primary!"
>
<Hammer class="text-primary" />
User Management
</DropdownMenu.Item>
<DropdownMenu.Item
onclick={handlePromoCodesClick}
class="text-primary hover:text-primary!"