feat(admin): add Szolgáltatók sidebar menu group with providers pages

- Added 'Szolgáltatók' menu group to sidebar with 'Összes szolgáltató' (/providers) and 'Jóváhagyásra váró' (/providers/pending) sub-items
- Extended pageTitle computed property with provider route titles
- Providers pages: index.vue (list), pending.vue (moderation queue), [id].vue (details)

Closes #351
This commit is contained in:
Roo
2026-06-30 10:26:57 +00:00
parent cbfb955580
commit 189cbfd7ca
4 changed files with 1231 additions and 0 deletions

View File

@@ -321,6 +321,27 @@ const menuGroups: MenuGroup[] = [
},
],
},
{
title: 'Szolgáltatók',
items: [
{
label: 'Szolgáltatók',
icon: '<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" /></svg>',
children: [
{
path: '/providers',
label: 'Összes szolgáltató',
icon: '<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /></svg>',
},
{
path: '/providers/pending',
label: 'Jóváhagyásra váró',
icon: '<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>',
},
],
},
],
},
{
title: 'Felhasználók & Partnerek',
items: [
@@ -473,6 +494,11 @@ const pageTitle = computed(() => {
if (route.path.startsWith('/users')) return 'Felhasználók'
if (route.path.startsWith('/logs')) return 'Rendszernaplók'
if (route.path.startsWith('/packages')) return 'Csomagok'
if (route.path.startsWith('/providers')) {
if (route.path === '/providers/pending') return 'Jóváhagyásra váró szolgáltatók'
if (route.path.startsWith('/providers/')) return 'Szolgáltató részletek'
return 'Szolgáltatók'
}
if (route.path.startsWith('/gamification')) {
if (route.path === '/gamification') return 'Gamification HQ'
if (route.path === '/gamification/point-rules') return 'Pontszabályok'