11<script setup lang="ts">
22const route = useRoute ()
3- const { authenticated } = useAdminSession ()
43
5- const publicNavigation = [
4+ const navigation = [
65 { label: ' Home' , to: ' /' , icon: null },
76 { label: ' Photos' , to: ' /photos' , icon: ' i-hugeicons:image-03' },
87 { label: ' Projects' , to: ' /projects' , icon: ' i-hugeicons:package-search' },
@@ -11,15 +10,6 @@ const publicNavigation = [
1110 { label: ' About' , to: ' /about' , icon: ' i-hugeicons:user-circle' },
1211] as const
1312
14- const navigation = computed (() => [
15- ... publicNavigation ,
16- {
17- label: authenticated .value ? ' Admin' : ' Login' ,
18- to: ' /admin' ,
19- icon: authenticated .value ? ' i-hugeicons:dashboard-square-01' : ' i-hugeicons:square-lock-02' ,
20- },
21- ])
22-
2313const isHome = computed (() => route .path === ' /' )
2414const { mode : photosViewMode, togglePhotosView } = usePhotosViewMode ()
2515
@@ -90,11 +80,6 @@ function isActive(path: string) {
9080 <MeAvatar v-else-if =" item .to === ' /' " navigation shared />
9181 <i v-else class =" color-inherit" :class =" item.icon" aria-hidden =" true" />
9282 <span v-if =" !isHome" class =" sr-only" >{{ item.label }}</span >
93- <span
94- v-if =" authenticated && item.to === '/admin'"
95- class =" absolute right-[0.32rem] top-[0.32rem] size-[0.3rem] rounded-full bg-[#568c68]"
96- aria-hidden =" true"
97- />
9883 </NuxtLink >
9984 </template >
10085 </div >
0 commit comments