@ -1,42 +1,118 @@
< template >
< template >
< main >
< main >
< div class = "container mx-auto max-w-3xl px-3 md:px-0" >
< Panel >
< div
< PanelHead >
class = "shadow-md rounded-lg bg-white dark:bg-neutral-700 overflow-hidden"
< PanelHeadTitle >
>
{ { $t ( 'pages.me' ) } }
< div
< / PanelHeadTitle >
class = "flex flex-row flex-auto items-center p-3 px-5 border-b-2 border-gray-100 dark:border-neutral-600"
< / PanelHead >
>
< PanelBody >
< div class = "flex-grow" >
< table >
< p class = "text-2xl font-medium dark:text-neutral-200" > Account < / p >
< tbody >
< / div >
< tr >
< / div >
< td >
< div class = "space-y-2" >
< Label
< div class = "flex flex-wrap items-center gap-[15px] px-5" >
class = "font-semibold dark:text-neutral-200"
< Label class = "font-semibold dark:text-neutral-200" for = "username" >
for = "username"
Username
>
< / Label >
{ { $t ( 'username' ) } }
< input id = "username" v -model .trim = " username " type = "text" / >
< / Label >
< / div >
< / td >
< div class = "flex flex-wrap items-center gap-[15px] px-5" >
< td >
< Label class = "font-semibold dark:text-neutral-200" for = "name" >
< input id = "username" v -model .trim = " username " type = "text" / >
Name
< / td >
< / Label >
< / tr >
< input id = "name" v -model .trim = " name " type = "text" / >
< tr >
< / div >
< td >
< div class = "flex flex-wrap items-center gap-[15px] px-5" >
< Label class = "font-semibold dark:text-neutral-200" for = "name" >
< Label class = "font-semibold dark:text-neutral-200" for = "name" >
{ { $t ( 'name' ) } }
E - Mail
< / Label >
< / Label >
< / td >
< input id = "name" v -model .trim = " email " type = "text" / >
< td >
< / div >
< input id = "name" v -model .trim = " name " type = "text" / >
< BaseButton class = "self-end" @click ="openPasswordModal" >
< / td >
Change Password
< / tr >
< / BaseButton >
< tr >
< BaseButton class = "self-end" @click ="submit" > Save < / BaseButton >
< td >
< / div >
< Label class = "font-semibold dark:text-neutral-200" for = "name" >
< / div >
{ { $t ( 'email' ) } }
< / div >
< / Label >
< / td >
< td >
< input id = "name" v -model .trim = " email " type = "text" / >
< / td >
< / tr >
< tr colspan = "2" >
< td >
< BaseButton @click ="submit" > {{ $ t ( ' save ' ) }} < / BaseButton >
< / td >
< / tr >
< tr >
< td >
< Label
class = "font-semibold dark:text-neutral-200"
for = "current-password"
>
{ { $t ( 'currentPassword' ) } }
< / Label >
< / td >
< td >
< input
id = "current-password"
v - model . trim = "currentPassword"
type = "password"
autocomplete = "current-password"
/ >
< / td >
< / tr >
< tr >
< td >
< Label
class = "font-semibold dark:text-neutral-200"
for = "new-password"
>
{ { $t ( 'setup.newPassword' ) } }
< / Label >
< / td >
< td >
< input
id = "new-password"
v - model . trim = "newPassword"
type = "password"
autocomplete = "new-password"
/ >
< / td >
< / tr >
< tr >
< td >
< Label
class = "font-semibold dark:text-neutral-200"
for = "confirm-password"
>
{ { $t ( 'confirmPassword' ) } }
< / Label >
< / td >
< td >
< input
id = "confirm-password"
v - model . trim = "confirmPassword"
type = "password"
autocomplete = "new-password"
/ >
< / td >
< / tr >
< tr colspan = "2" >
< td >
< BaseButton @click ="updatePassword" > {{
$t ( 'updatePassword' )
} } < / BaseButton >
< / td >
< / tr >
< / tbody >
< / table >
< / PanelBody >
< / Panel >
< / main >
< / main >
< / template >
< / template >
@ -48,7 +124,11 @@ const username = ref(authStore.userData?.username);
const name = ref ( authStore . userData ? . name ) ;
const name = ref ( authStore . userData ? . name ) ;
const email = ref ( authStore . userData ? . email ) ;
const email = ref ( authStore . userData ? . email ) ;
const currentPassword = ref ( authStore . userData ? . email ) ;
const newPassword = ref ( authStore . userData ? . email ) ;
const confirmPassword = ref ( authStore . userData ? . email ) ;
function submit ( ) { }
function submit ( ) { }
function openPasswordModal ( ) { }
function updatePassword ( ) { }
< / script >
< / script >