11<script setup lang="ts">
2- import { ref } from " vue"
32import { useUserStore } from " @/store/UserStore"
43import ProfilePic from " @/layouts/ProfilePic.vue"
4+ import EmulationBanner from " @/layouts/EmulationBanner.vue"
5+ import FooterLinks from " @/layouts/FooterLinks.vue"
6+ import ViperBrandButton from " @/layouts/ViperBrandButton.vue"
57import SessionTimeout from " @/components/SessionTimeout.vue"
68
79type BreadCrumb = {
@@ -16,8 +18,7 @@ const props = defineProps<{
1618}>()
1719
1820const userStore = useUserStore ()
19- const clearEmulationHref = ref (import .meta .env .VITE_VIPER_HOME + " ClearEmulation" )
20- const environment = ref (import .meta .env .VITE_ENVIRONMENT )
21+ const environment = import .meta .env .VITE_ENVIRONMENT
2122const viperHome = import .meta .env .VITE_VIPER_HOME
2223const currentYear = new Date ().getFullYear ()
2324 </script >
@@ -100,29 +101,7 @@ const currentYear = new Date().getFullYear()
100101 width =" 201"
101102 height =" 36"
102103 /></a >
103- <q-btn
104- flat
105- dense
106- no-caps
107- class =" gt-sm self-end"
108- :href =" viperHome"
109- >
110- <span class =" mainLayoutViper" >VIPER 2.0</span >
111- <q-badge
112- v-if =" environment == 'DEVELOPMENT'"
113- color =" negative"
114- role =" presentation"
115- class =" mainLayoutViperMode"
116- >Development</q-badge
117- >
118- <q-badge
119- v-if =" environment == 'TEST'"
120- color =" negative"
121- role =" presentation"
122- class =" mainLayoutViperMode"
123- >Test</q-badge
124- >
125- </q-btn >
104+ <ViperBrandButton class-name =" gt-sm self-end" />
126105
127106 <div class =" breadcrumbs self-end q-ml-lg q-pb-xs row" >
128107 <span
@@ -143,24 +122,7 @@ const currentYear = new Date().getFullYear()
143122 </span >
144123 </div >
145124
146- <q-banner
147- v-if =" userStore.isEmulating"
148- dense
149- rounded
150- inline-actions
151- class =" bg-warning text-black q-ml-lg"
152- >
153- <strong >EMULATING:</strong >
154- {{ userStore.userInfo.firstName }} {{ userStore.userInfo.lastName }}
155- <q-btn
156- no-caps
157- dense
158- :href =" clearEmulationHref"
159- color =" secondary"
160- class =" text-white q-px-sm q-ml-md"
161- >End Emulation</q-btn
162- >
163- </q-banner >
125+ <EmulationBanner />
164126
165127 <q-space ></q-space >
166128 <ProfilePic ></ProfilePic >
@@ -190,53 +152,7 @@ const currentYear = new Date().getFullYear()
190152 id =" footerNavLinks"
191153 >
192154 <div class =" q-pl-md" >
193- <a
194- href =" https://svmithelp.vetmed.ucdavis.edu/"
195- target =" _blank"
196- rel =" noopener"
197- class =" text-primary"
198- >
199- <q-icon
200- color =" primary"
201- name =" help_center"
202- size =" xs"
203- aria-hidden =" true"
204- ></q-icon >
205- SVM-IT ServiceDesk
206- <span class =" sr-only" >(opens in new window)</span >
207- </a >
208- <span class =" text-primary q-px-sm" >|</span >
209- <a
210- href =" https://www.vetmed.ucdavis.edu/"
211- target =" _blank"
212- rel =" noopener"
213- class =" text-primary"
214- >
215- <q-icon
216- color =" primary"
217- name =" navigation"
218- size =" xs"
219- aria-hidden =" true"
220- ></q-icon >
221- SVM Home
222- <span class =" sr-only" >(opens in new window)</span >
223- </a >
224- <span class =" text-primary q-px-sm" >|</span >
225- <a
226- href =" https://www.ucdavis.edu/"
227- target =" _blank"
228- rel =" noopener"
229- class =" text-primary"
230- >
231- <q-icon
232- color =" primary"
233- name =" school"
234- size =" xs"
235- aria-hidden =" true"
236- ></q-icon >
237- UC Davis
238- <span class =" sr-only" >(opens in new window)</span >
239- </a >
155+ <FooterLinks />
240156 </div >
241157 <div class =" " >
242158 <div class =" text-black" >© ; {{ currentYear }} School of Veterinary Medicine</div >
0 commit comments