feat: review backend and frontend
- update to the latest version of Java/SpringBoot - update to the latest version NuxtJS - add account/password update - add account creation - add account password reset - add bundle to regroup questions and add default questions on user creation - add bundle creation
This commit is contained in:
20
frontend/layouts/default.vue
Normal file
20
frontend/layouts/default.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<script lang="ts" setup>
|
||||
import {useNotificationStore} from "~/store/notification";
|
||||
|
||||
const notification = computed(() => useNotificationStore().notification);
|
||||
const hasNotification = computed(() => useNotificationStore().hasNotification);
|
||||
const type = computed(() => useNotificationStore().type);
|
||||
|
||||
</script>
|
||||
<template>
|
||||
<team-header/>
|
||||
<main class="main-content">
|
||||
<slot/>
|
||||
<toaster v-if="hasNotification" :title="notification.message" :type="type">
|
||||
<ul v-if="notification.details">
|
||||
<li v-for="detail in notification.details">{{ detail }}</li>
|
||||
</ul>
|
||||
</toaster>
|
||||
</main>
|
||||
<main-footer/>
|
||||
</template>
|
23
frontend/layouts/main-header.vue
Normal file
23
frontend/layouts/main-header.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script lang="ts" setup>
|
||||
import {useNotificationStore} from "~/store/notification";
|
||||
|
||||
const notification = computed(() => useNotificationStore().notification);
|
||||
const hasNotification = computed(() => useNotificationStore().hasNotification);
|
||||
const type = computed(() => useNotificationStore().type);
|
||||
|
||||
</script>
|
||||
<template>
|
||||
<main-header/>
|
||||
<main class="main-content">
|
||||
<slot/>
|
||||
<toaster v-if="hasNotification" :title="notification.message" :type="type">
|
||||
<ul v-if="notification.details && Array.isArray(notification.details)">
|
||||
<li v-for="error in notification.details">{{ error }}</li>
|
||||
</ul>
|
||||
<p v-else-if="notification.details">
|
||||
{{ notification.details}}
|
||||
</p>
|
||||
</toaster>
|
||||
</main>
|
||||
<main-footer/>
|
||||
</template>
|
Reference in New Issue
Block a user