Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions resources/js/components/DeleteUser.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { destroy } from '@/actions/App/Http/Controllers/Settings/ProfileController';
import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController';
import { Form } from '@inertiajs/vue3';
import { ref } from 'vue';

Expand Down Expand Up @@ -37,7 +37,7 @@ const passwordInput = ref<InstanceType<typeof Input> | null>(null);
</DialogTrigger>
<DialogContent>
<Form
v-bind="destroy.form()"
v-bind="ProfileController.destroy.form()"
reset-on-success
@error="() => passwordInput?.$el?.focus()"
:options="{
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/auth/ConfirmPassword.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { store } from '@/actions/App/Http/Controllers/Auth/ConfirmablePasswordController';
import ConfirmablePasswordController from '@/actions/App/Http/Controllers/Auth/ConfirmablePasswordController';
import InputError from '@/components/InputError.vue';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
Expand All @@ -13,7 +13,7 @@ import { LoaderCircle } from 'lucide-vue-next';
<AuthLayout title="Confirm your password" description="This is a secure area of the application. Please confirm your password before continuing.">
<Head title="Confirm password" />

<Form v-bind="store.form()" reset-on-success v-slot="{ errors, processing }">
<Form v-bind="ConfirmablePasswordController.store.form()" reset-on-success v-slot="{ errors, processing }">
<div class="space-y-6">
<div class="grid gap-2">
<Label htmlFor="password">Password</Label>
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/auth/ForgotPassword.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { store } from '@/actions/App/Http/Controllers/Auth/PasswordResetLinkController';
import PasswordResetLinkController from '@/actions/App/Http/Controllers/Auth/PasswordResetLinkController';
import InputError from '@/components/InputError.vue';
import TextLink from '@/components/TextLink.vue';
import { Button } from '@/components/ui/button';
Expand All @@ -24,7 +24,7 @@ defineProps<{
</div>

<div class="space-y-6">
<Form v-bind="store.form()" v-slot="{ errors, processing }">
<Form v-bind="PasswordResetLinkController.store.form()" v-slot="{ errors, processing }">
<div class="grid gap-2">
<Label for="email">Email address</Label>
<Input id="email" type="email" name="email" autocomplete="off" autofocus placeholder="email@example.com" />
Expand Down
9 changes: 7 additions & 2 deletions resources/js/pages/auth/Login.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { store } from '@/actions/App/Http/Controllers/Auth/AuthenticatedSessionController';
import AuthenticatedSessionController from '@/actions/App/Http/Controllers/Auth/AuthenticatedSessionController';
import InputError from '@/components/InputError.vue';
import TextLink from '@/components/TextLink.vue';
import { Button } from '@/components/ui/button';
Expand All @@ -26,7 +26,12 @@ defineProps<{
{{ status }}
</div>

<Form v-bind="store.form()" :reset-on-success="['password']" v-slot="{ errors, processing }" class="flex flex-col gap-6">
<Form
v-bind="AuthenticatedSessionController.store.form()"
:reset-on-success="['password']"
v-slot="{ errors, processing }"
class="flex flex-col gap-6"
>
<div class="grid gap-6">
<div class="grid gap-2">
<Label for="email">Email address</Label>
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/auth/Register.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { store } from '@/actions/App/Http/Controllers/Auth/RegisteredUserController';
import RegisteredUserController from '@/actions/App/Http/Controllers/Auth/RegisteredUserController';
import InputError from '@/components/InputError.vue';
import TextLink from '@/components/TextLink.vue';
import { Button } from '@/components/ui/button';
Expand All @@ -16,7 +16,7 @@ import { LoaderCircle } from 'lucide-vue-next';
<Head title="Register" />

<Form
v-bind="store.form()"
v-bind="RegisteredUserController.store.form()"
:reset-on-success="['password', 'password_confirmation']"
v-slot="{ errors, processing }"
class="flex flex-col gap-6"
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/auth/ResetPassword.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { store } from '@/actions/App/Http/Controllers/Auth/NewPasswordController';
import NewPasswordController from '@/actions/App/Http/Controllers/Auth/NewPasswordController';
import InputError from '@/components/InputError.vue';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
Expand All @@ -22,7 +22,7 @@ const inputEmail = ref(props.email);
<Head title="Reset password" />

<Form
v-bind="store.form()"
v-bind="NewPasswordController.store.form()"
:transform="(data) => ({ ...data, token, email })"
:reset-on-success="['password', 'password_confirmation']"
v-slot="{ errors, processing }"
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/auth/VerifyEmail.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { store } from '@/actions/App/Http/Controllers/Auth/EmailVerificationNotificationController';
import EmailVerificationNotificationController from '@/actions/App/Http/Controllers/Auth/EmailVerificationNotificationController';
import TextLink from '@/components/TextLink.vue';
import { Button } from '@/components/ui/button';
import AuthLayout from '@/layouts/AuthLayout.vue';
Expand All @@ -20,7 +20,7 @@ defineProps<{
A new verification link has been sent to the email address you provided during registration.
</div>

<Form v-bind="store.form()" class="space-y-6 text-center" v-slot="{ processing }">
<Form v-bind="EmailVerificationNotificationController.store.form()" class="space-y-6 text-center" v-slot="{ processing }">
<Button :disabled="processing" variant="secondary">
<LoaderCircle v-if="processing" class="h-4 w-4 animate-spin" />
Resend verification email
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/settings/Password.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { update } from '@/actions/App/Http/Controllers/Settings/PasswordController';
import PasswordController from '@/actions/App/Http/Controllers/Settings/PasswordController';
import InputError from '@/components/InputError.vue';
import AppLayout from '@/layouts/AppLayout.vue';
import SettingsLayout from '@/layouts/settings/Layout.vue';
Expand Down Expand Up @@ -33,7 +33,7 @@ const currentPasswordInput = ref<HTMLInputElement | null>(null);
<HeadingSmall title="Update password" description="Ensure your account is using a long, random password to stay secure" />

<Form
v-bind="update.form()"
v-bind="PasswordController.update.form()"
:options="{
preserveScroll: true,
}"
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/settings/Profile.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { update } from '@/actions/App/Http/Controllers/Settings/ProfileController';
import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController';
import { edit } from '@/routes/profile';
import { send } from '@/routes/verification';
import { Form, Head, Link, usePage } from '@inertiajs/vue3';
Expand Down Expand Up @@ -40,7 +40,7 @@ const user = page.props.auth.user;
<div class="flex flex-col space-y-6">
<HeadingSmall title="Profile information" description="Update your name and email address" />

<Form v-bind="update.form()" class="space-y-6" v-slot="{ errors, processing, recentlySuccessful }">
<Form v-bind="ProfileController.update.form()" class="space-y-6" v-slot="{ errors, processing, recentlySuccessful }">
<div class="grid gap-2">
<Label for="name">Name</Label>
<Input
Expand Down