-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from semanadeinformatica/feature/edit-profile…
…-page Edit profile page
- Loading branch information
Showing
16 changed files
with
309 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
<template> | ||
<div class="flex justify-between md:col-span-1"> | ||
<div class="px-4 sm:px-0"> | ||
<h3 class="text-lg font-medium text-gray-900 dark:text-gray-100"> | ||
<div class="flex justify-between"> | ||
<section class="px-4 sm:px-0"> | ||
<h3 class="text-lg font-medium text-2023-teal"> | ||
<slot name="title" /> | ||
</h3> | ||
|
||
<p class="mt-1 text-sm text-gray-600 dark:text-gray-400"> | ||
<p class="mt-1 text-sm text-2023-teal-dark"> | ||
<slot name="description" /> | ||
</p> | ||
</div> | ||
|
||
<div class="px-4 sm:px-0"> | ||
<slot name="aside" /> | ||
</div> | ||
</section> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<script setup lang="ts"> | ||
import AppLayout from "@/Layouts/AppLayout.vue"; | ||
import DeleteUserForm from "@/Pages/Profile/Partials/DeleteUserForm.vue"; | ||
import LogoutOtherBrowserSessionsForm from "@/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue"; | ||
import SectionBorder from "@/Components/SectionBorder.vue"; | ||
import TwoFactorAuthenticationForm from "@/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue"; | ||
import UpdatePasswordForm from "@/Pages/Profile/Partials/UpdatePasswordForm.vue"; | ||
import UpdateProfileInformationForm from "@/Pages/Profile/Partials/UpdateProfileInformationForm.vue"; | ||
import type Session from "@/Types/Session"; | ||
interface Props { | ||
confirmsTwoFactorAuthentication: boolean; | ||
sessions: Session[]; | ||
} | ||
defineProps<Props>(); | ||
</script> | ||
|
||
<template> | ||
<AppLayout title="Profile"> | ||
<div class="mx-auto max-w-3xl py-10 sm:px-6 lg:px-8"> | ||
<template v-if="$page.props.jetstream.canUpdateProfileInformation"> | ||
<UpdateProfileInformationForm :user="$page.props.auth.user" /> | ||
|
||
<SectionBorder /> | ||
</template> | ||
|
||
<template v-if="$page.props.jetstream.canUpdatePassword"> | ||
<UpdatePasswordForm class="mt-10 sm:mt-0" /> | ||
|
||
<SectionBorder /> | ||
</template> | ||
|
||
<template | ||
v-if="$page.props.jetstream.canManageTwoFactorAuthentication" | ||
> | ||
<TwoFactorAuthenticationForm | ||
:requires-confirmation="confirmsTwoFactorAuthentication" | ||
class="mt-10 sm:mt-0" | ||
/> | ||
|
||
<SectionBorder /> | ||
</template> | ||
|
||
<LogoutOtherBrowserSessionsForm | ||
:sessions="sessions" | ||
class="mt-10 sm:mt-0" | ||
/> | ||
|
||
<template v-if="$page.props.jetstream.hasAccountDeletionFeatures"> | ||
<SectionBorder /> | ||
|
||
<DeleteUserForm class="mt-10 sm:mt-0" /> | ||
</template> | ||
</div> | ||
</AppLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.