11<script setup>
2- import { useRouter } from " vue-router" ;
3- import { useColorMode } from " #imports" ;
4- import { FontAwesomeIcon } from " @fortawesome/vue-fontawesome" ;
2+ import {useRouter } from " vue-router" ;
3+ import {useColorMode } from " #imports" ;
4+ import {FontAwesomeIcon } from " @fortawesome/vue-fontawesome" ;
55
66const colorMode = useColorMode ();
77const router = useRouter ();
88
9- const { t } = useI18n ();
9+ const {t } = useI18n ();
1010
1111const props = defineProps ({
1212 image: {
@@ -23,26 +23,26 @@ const props = defineProps({
2323 },
2424 role: {
2525 type: String ,
26- default: " student" ,
26+ default: " student" ,
2727 },
2828});
2929 </script >
3030
3131<template >
3232 <div class =" drawer" >
33- <input id =" my-drawer" type = " checkbox " class =" drawer-toggle" >
33+ <input id =" my-drawer" class =" drawer-toggle" type = " checkbox " >
3434 <div class =" drawer-content" >
3535 <label class =" drawer-button" for =" my-drawer" >
3636 <div class =" avatar" >
3737 <div class =" mask mask-squircle w-8 rounded-full" >
3838 <img
39- :alt ="
39+ :alt ="
4040 t('generic.profilePictureAlt', {
4141 firstName: props.firstName,
4242 lastName: props.lastName,
4343 })
4444 "
45- :src ="
45+ :src ="
4646 props.image ||
4747 getPlaceholderImage(props.firstName, props.lastName)
4848 "
@@ -54,56 +54,58 @@ const props = defineProps({
5454
5555 <div class =" drawer-side z-40" >
5656 <label
57- aria-label =" close sidebar"
58- class =" drawer-overlay"
59- for =" my-drawer"
57+ aria-label =" close sidebar"
58+ class =" drawer-overlay"
59+ for =" my-drawer"
6060 />
6161 <div
62- class =" menu py-16 px-8 bg-base-200 text-base-content min-h-full w-80 flex flex-col"
62+ class =" menu py-16 px-8 bg-base-200 text-base-content min-h-full w-80 flex flex-col"
6363 >
6464 <img
65- :alt =" t('generic.logoAlt')"
66- :src ="
65+ :alt =" t('generic.logoAlt')"
66+ :src ="
6767 colorMode?.value === 'dark'
6868 ? '../images/appHeader_logo_dark.svg'
6969 : '../images/appHeader_logo_light.svg'
7070 "
71- class =" h-6 mb-8 cursor-pointer"
72- @click =" router.push('/')"
71+ class =" h-6 mb-8 cursor-pointer"
72+ @click =" router.push('/')"
7373 >
7474
7575 <ul class =" space-y-3 flex-grow" >
7676 <li >
77- <NuxtLink
78- :to =" props .role ? ` /${props .role .toLowerCase ()}/profile ` : ` / ` "
79- >
80- <FontAwesomeIcon class="text-xl mr-3" icon="user" />
77+ <NuxtLink
78+ :to =" props .role ? ` /${props .role .toLowerCase ()}/profile ` : ` / ` "
79+ >
80+ <FontAwesomeIcon class="text-xl mr-3" icon="user"/>
8181 {{ t("nav.profile") }}
8282 </NuxtLink >
8383 </li >
8484 <li >
8585 <NuxtLink
86- :to =" props .role ? ` /${props .role .toLowerCase ()}/settings ` : ` / ` "
86+ :to =" props .role ? ` /${props .role .toLowerCase ()}/settings ` : ` / ` "
8787 >
88- <FontAwesomeIcon icon="gear" class="text-xl mr-3" />
88+ <FontAwesomeIcon class="text-xl mr-3" icon="gear" />
8989 {{ t("nav.settings") }}
9090 </NuxtLink >
9191 </li >
92- <!-- <li>-->
93- <!-- <NuxtLink to="/tour">-->
94- <!-- <FontAwesomeIcon class="text-xl mr-3" icon="map" />-->
95- <!-- {{ t("nav.appTour") }}-->
96- <!-- </NuxtLink>-->
97- <!-- </li>-->
9892 <li >
9993 <NuxtLink
100- :to ="
94+ :to =" props .role ? ` /${props .role .toLowerCase ()}/app-tour ` : ` / ` "
95+ >
96+ <FontAwesomeIcon class="text-xl mr-3" icon="map"/>
97+ {{ t("nav.appTour") }}
98+ </NuxtLink >
99+ </li >
100+ <li >
101+ <NuxtLink
102+ :to ="
101103 props .role
102104 ? ` /${props .role .toLowerCase ()}/data-protection `
103105 : ` / `
104106 "
105107 >
106- <FontAwesomeIcon class="text-xl mr-3" icon="user-shield" />
108+ <FontAwesomeIcon class="text-xl mr-3" icon="user-shield"/>
107109 {{ t("nav.dataProtection") }}
108110 </NuxtLink >
109111 </li >
@@ -113,7 +115,7 @@ const props = defineProps({
113115 <SignOutButton >
114116 <a href =" /" >
115117 <span >
116- <FontAwesomeIcon class="text-xl" icon="fa-right-from-bracket" />
118+ <FontAwesomeIcon class="text-xl" icon="fa-right-from-bracket"/>
117119 {{ t("nav.logout") }}
118120 </span >
119121 </a >
0 commit comments