mirror of
https://github.com/Paris-est-Ludique/ForceOrange.git
synced 2025-09-11 22:46:28 +02:00
✨ Complete all user management with forms and DB
This commit is contained in:
committed by
ChatonDeAru (Romain)
parent
37b2238b84
commit
5fa1f24caf
49
modules/app/pages/profile/index.vue
Normal file
49
modules/app/pages/profile/index.vue
Normal file
@@ -0,0 +1,49 @@
|
||||
<script setup lang="ts">
|
||||
import EmailUpdateForm from '~/components/profile/EmailUpdateForm.vue';
|
||||
|
||||
definePageMeta({
|
||||
name: 'Profile',
|
||||
})
|
||||
|
||||
const { displayName, profile } = useProfile()
|
||||
|
||||
const isPasswordModalOpen = ref(false)
|
||||
const isEmailModalOpen = ref(false)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<WIPNotif />
|
||||
|
||||
<div class="grid gap-8 md:grid-cols-2">
|
||||
<UCard class="md:col-span-2">
|
||||
<h1 class="text-2xl">{{ displayName }}</h1>
|
||||
</UCard>
|
||||
|
||||
<UCard>
|
||||
<h1 class="text-2xl uppercase mb-4">Authentification</h1>
|
||||
<p>Gérer mes manières de me connecter au site de Force Orange.</p>
|
||||
|
||||
<p class="text-orange-500 mt-4">{{ profile.mail }}</p>
|
||||
|
||||
<div class="my-4 flex flex-col gap-4">
|
||||
<UButton variant="soft" icon="i-mdi-email" @click="isEmailModalOpen = true">Modifier mon adresse de couriel
|
||||
</UButton>
|
||||
<UButton variant="soft" icon="i-mdi-form-textbox-password" @click="isPasswordModalOpen = true">Modifier mon mot
|
||||
de passe
|
||||
</UButton>
|
||||
</div>
|
||||
</UCard>
|
||||
|
||||
<UModal v-model="isEmailModalOpen">
|
||||
<div class="p-4">
|
||||
<EmailUpdateForm @success="isEmailModalOpen = false" />
|
||||
</div>
|
||||
</UModal>
|
||||
|
||||
<UModal v-model="isPasswordModalOpen">
|
||||
<div class="p-4">
|
||||
<PasswordUpdateForm @success="isPasswordModalOpen = false" />
|
||||
</div>
|
||||
</UModal>
|
||||
</div>
|
||||
</template>
|
Reference in New Issue
Block a user