diff --git a/templates/mellow-svelte/assets/js/app.js b/templates/mellow-svelte/assets/js/app.js index e137c4e..aeba2d8 100644 --- a/templates/mellow-svelte/assets/js/app.js +++ b/templates/mellow-svelte/assets/js/app.js @@ -1,7 +1,6 @@ import { createInertiaApp } from '@inertiajs/svelte' import '~/css/main.css' -// @ts-ignore createInertiaApp({ resolve: (name) => require(`./pages/${name}`), setup({ el, App, props }) { diff --git a/templates/mellow-svelte/assets/js/pages/dashboard/profile.svelte b/templates/mellow-svelte/assets/js/pages/dashboard/profile.svelte new file mode 100644 index 0000000..2318609 --- /dev/null +++ b/templates/mellow-svelte/assets/js/pages/dashboard/profile.svelte @@ -0,0 +1,157 @@ + + + + + + Profile | Mellow + +
+
+
+

Profile Information

+

+ Update your account's profile information and email address. +

+
+ +
+ + +
+ + Save changes + +
+ {#if $form.recentlySuccessful} +

Profile updated successfully!

+ {/if} + +
+ +
+
+

Change Password

+

+ Ensure your account is using a long, random password to stay secure. +

+
+ +
+ + + + {#if $form.errors.password} +

+ {$form.errors.password} +

+ {/if} +
+ +
+ + Update Password + +
+ {#if $form.recentlySuccessful} +

Profile updated successfully!

+ {/if} + +
+ +
+
+

Delete Account

+

+ Once your account is deleted, all of its resources and data will be + permanently deleted. Before deleting your account, please download any + data or information that you wish to retain. +

+
+ +
+ +
+ + Delete Account + +
+ +
+ + router.delete('/logout')} + class="w-full border-red-600 bg-red-600" + > + Logout + +