refactor(hunt): Style hunt admin

This commit is contained in:
2026-08-03 01:57:35 +02:00
parent 2d8669708d
commit 8e5e60da87
11 changed files with 556 additions and 463 deletions
+25 -13
View File
@@ -58,11 +58,23 @@ const isHuntAdmin = computed(
>
<VaSidebarItemContent>
<VaIcon name="home" />
<VaSidebarItemTitle>Home</VaSidebarItemTitle>
<VaSidebarItemTitle>{{ t('page.home.title') }}</VaSidebarItemTitle>
</VaSidebarItemContent>
</VaSidebarItem>
<VaSidebarItem
:to="localePath('/hunt')"
:active="localePath('/hunt') === route.path"
>
<VaSidebarItemContent>
<VaIcon name="cases" />
<VaSidebarItemTitle>{{ t('page.hunt.title') }}</VaSidebarItemTitle>
</VaSidebarItemContent>
</VaSidebarItem>
<VaSidebarItem
v-if="user?.role === 'CREATOR' || user?.role === 'ADMIN'"
text-color="success"
hover-color="success"
active-color="onSuccess"
:to="localePath('/admin/hunt/create')"
:active="localePath('/admin/hunt/create') === route.path"
>
@@ -73,24 +85,13 @@ const isHuntAdmin = computed(
}}</VaSidebarItemTitle>
</VaSidebarItemContent>
</VaSidebarItem>
<VaSidebarItem
:to="localePath('/impressum')"
:active="localePath('/impressum') === route.path"
>
<VaSidebarItemContent>
<VaIcon name="balance" />
<VaSidebarItemTitle>{{
t('page.imprint.title')
}}</VaSidebarItemTitle>
</VaSidebarItemContent>
</VaSidebarItem>
<VaSidebarItem
v-if="slugs?.huntSlug"
:to="localePath(`/hunt/${sluggy(slugs.huntSlug)}`)"
:active="localePath(`/hunt/${sluggy(slugs.huntSlug)}`) === route.path"
>
<VaSidebarItemContent>
<VaIcon name="camera_indoor" />
<VaIcon name="camera" />
<VaSidebarItemTitle>{{
slugs.huntSlug.name || 'Hunt'
}}</VaSidebarItemTitle>
@@ -168,6 +169,17 @@ const isHuntAdmin = computed(
</VaSidebarItemContent>
</VaSidebarItem>
<VaSpacer />
<VaSidebarItem
:to="localePath('/impressum')"
:active="localePath('/impressum') === route.path"
>
<VaSidebarItemContent>
<VaIcon name="balance" />
<VaSidebarItemTitle>{{
t('page.imprint.title')
}}</VaSidebarItemTitle>
</VaSidebarItemContent>
</VaSidebarItem>
<VaSidebarItem
v-if="user"
:to="localePath('/profile')"