Replace AppTextField with VTextField in auth pages (#4)
Remove AppTextField wrapper imports from all 6 auth pages (Login, Register, ForgotPassword, ResetPassword, ConfirmPassword, TwoFactorChallenge) and use VTextField directly, relying on Vuetify defaults for variant/density/color. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useForm } from '@inertiajs/vue3'
|
import { useForm } from '@inertiajs/vue3'
|
||||||
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
||||||
import AppTextField from '@/Components/app-form-elements/AppTextField.vue'
|
|
||||||
|
|
||||||
defineOptions({ layout: AuthLayout })
|
defineOptions({ layout: AuthLayout })
|
||||||
|
|
||||||
@@ -30,7 +29,7 @@ const submit = (): void => {
|
|||||||
<VForm @submit.prevent="submit">
|
<VForm @submit.prevent="submit">
|
||||||
<VRow>
|
<VRow>
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.password"
|
v-model="form.password"
|
||||||
label="Password"
|
label="Password"
|
||||||
placeholder="············"
|
placeholder="············"
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useForm } from '@inertiajs/vue3'
|
import { useForm } from '@inertiajs/vue3'
|
||||||
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
||||||
import AppTextField from '@/Components/app-form-elements/AppTextField.vue'
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
status?: string
|
status?: string
|
||||||
@@ -43,7 +42,7 @@ const submit = (): void => {
|
|||||||
<VForm @submit.prevent="submit">
|
<VForm @submit.prevent="submit">
|
||||||
<VRow>
|
<VRow>
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.email"
|
v-model="form.email"
|
||||||
label="Email"
|
label="Email"
|
||||||
type="email"
|
type="email"
|
||||||
|
|||||||
@@ -2,15 +2,24 @@
|
|||||||
import { useForm, Link } from '@inertiajs/vue3'
|
import { useForm, Link } from '@inertiajs/vue3'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
||||||
import AppTextField from '@/Components/app-form-elements/AppTextField.vue'
|
|
||||||
|
|
||||||
defineOptions({ layout: AuthLayout })
|
defineOptions({ layout: AuthLayout })
|
||||||
|
|
||||||
interface Props {
|
interface SelectedPlan {
|
||||||
status?: string
|
id: number
|
||||||
|
name: string
|
||||||
|
price: string
|
||||||
|
currency: string
|
||||||
|
billing_cycle: string
|
||||||
|
service_type: string
|
||||||
}
|
}
|
||||||
|
|
||||||
defineProps<Props>()
|
interface Props {
|
||||||
|
status?: string
|
||||||
|
selectedPlan?: SelectedPlan | null
|
||||||
|
}
|
||||||
|
|
||||||
|
const props = defineProps<Props>()
|
||||||
|
|
||||||
const isPasswordVisible = ref(false)
|
const isPasswordVisible = ref(false)
|
||||||
|
|
||||||
@@ -47,11 +56,20 @@ const submit = (): void => {
|
|||||||
{{ status }}
|
{{ status }}
|
||||||
</VAlert>
|
</VAlert>
|
||||||
|
|
||||||
|
<VAlert
|
||||||
|
v-if="props.selectedPlan"
|
||||||
|
type="info"
|
||||||
|
variant="tonal"
|
||||||
|
class="mb-4"
|
||||||
|
>
|
||||||
|
Sign in to complete your purchase of <strong>{{ props.selectedPlan.name }}</strong>
|
||||||
|
</VAlert>
|
||||||
|
|
||||||
<VForm @submit.prevent="submit">
|
<VForm @submit.prevent="submit">
|
||||||
<VRow>
|
<VRow>
|
||||||
<!-- email -->
|
<!-- email -->
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.email"
|
v-model="form.email"
|
||||||
autofocus
|
autofocus
|
||||||
label="Email"
|
label="Email"
|
||||||
@@ -63,7 +81,7 @@ const submit = (): void => {
|
|||||||
|
|
||||||
<!-- password -->
|
<!-- password -->
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.password"
|
v-model="form.password"
|
||||||
label="Password"
|
label="Password"
|
||||||
placeholder="············"
|
placeholder="············"
|
||||||
|
|||||||
@@ -2,10 +2,26 @@
|
|||||||
import { useForm, Link } from '@inertiajs/vue3'
|
import { useForm, Link } from '@inertiajs/vue3'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
||||||
import AppTextField from '@/Components/app-form-elements/AppTextField.vue'
|
|
||||||
|
|
||||||
defineOptions({ layout: AuthLayout })
|
defineOptions({ layout: AuthLayout })
|
||||||
|
|
||||||
|
interface SelectedPlan {
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
price: string
|
||||||
|
currency: string
|
||||||
|
billing_cycle: string
|
||||||
|
service_type: string
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
selectedPlan?: SelectedPlan | null
|
||||||
|
}
|
||||||
|
|
||||||
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
|
selectedPlan: null,
|
||||||
|
})
|
||||||
|
|
||||||
const isPasswordVisible = ref(false)
|
const isPasswordVisible = ref(false)
|
||||||
const privacyPolicy = ref(false)
|
const privacyPolicy = ref(false)
|
||||||
|
|
||||||
@@ -26,7 +42,7 @@ const submit = (): void => {
|
|||||||
<template>
|
<template>
|
||||||
<VCardText>
|
<VCardText>
|
||||||
<h4 class="text-h4 mb-1">
|
<h4 class="text-h4 mb-1">
|
||||||
Adventure starts here
|
{{ props.selectedPlan ? 'Create your account' : 'Adventure starts here' }}
|
||||||
</h4>
|
</h4>
|
||||||
<p class="mb-0">
|
<p class="mb-0">
|
||||||
Start hosting your projects with EZSCALE
|
Start hosting your projects with EZSCALE
|
||||||
@@ -34,11 +50,20 @@ const submit = (): void => {
|
|||||||
</VCardText>
|
</VCardText>
|
||||||
|
|
||||||
<VCardText>
|
<VCardText>
|
||||||
|
<VAlert
|
||||||
|
v-if="props.selectedPlan"
|
||||||
|
type="info"
|
||||||
|
variant="tonal"
|
||||||
|
class="mb-4"
|
||||||
|
>
|
||||||
|
Create an account to get started with <strong>{{ props.selectedPlan.name }}</strong> — ${{ props.selectedPlan.price }}/{{ props.selectedPlan.billing_cycle }}
|
||||||
|
</VAlert>
|
||||||
|
|
||||||
<VForm @submit.prevent="submit">
|
<VForm @submit.prevent="submit">
|
||||||
<VRow>
|
<VRow>
|
||||||
<!-- name -->
|
<!-- name -->
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.name"
|
v-model="form.name"
|
||||||
autofocus
|
autofocus
|
||||||
label="Full Name"
|
label="Full Name"
|
||||||
@@ -49,7 +74,7 @@ const submit = (): void => {
|
|||||||
|
|
||||||
<!-- email -->
|
<!-- email -->
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.email"
|
v-model="form.email"
|
||||||
label="Email"
|
label="Email"
|
||||||
type="email"
|
type="email"
|
||||||
@@ -60,7 +85,7 @@ const submit = (): void => {
|
|||||||
|
|
||||||
<!-- password -->
|
<!-- password -->
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.password"
|
v-model="form.password"
|
||||||
label="Password"
|
label="Password"
|
||||||
placeholder="············"
|
placeholder="············"
|
||||||
@@ -74,7 +99,7 @@ const submit = (): void => {
|
|||||||
|
|
||||||
<!-- confirm password -->
|
<!-- confirm password -->
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.password_confirmation"
|
v-model="form.password_confirmation"
|
||||||
label="Confirm Password"
|
label="Confirm Password"
|
||||||
placeholder="············"
|
placeholder="············"
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
import { useForm } from '@inertiajs/vue3'
|
import { useForm } from '@inertiajs/vue3'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
||||||
import AppTextField from '@/Components/app-form-elements/AppTextField.vue'
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
token: string
|
token: string
|
||||||
@@ -43,7 +42,7 @@ const submit = (): void => {
|
|||||||
<VForm @submit.prevent="submit">
|
<VForm @submit.prevent="submit">
|
||||||
<VRow>
|
<VRow>
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.email"
|
v-model="form.email"
|
||||||
label="Email"
|
label="Email"
|
||||||
type="email"
|
type="email"
|
||||||
@@ -54,7 +53,7 @@ const submit = (): void => {
|
|||||||
</VCol>
|
</VCol>
|
||||||
|
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.password"
|
v-model="form.password"
|
||||||
label="New Password"
|
label="New Password"
|
||||||
placeholder="············"
|
placeholder="············"
|
||||||
@@ -67,7 +66,7 @@ const submit = (): void => {
|
|||||||
</VCol>
|
</VCol>
|
||||||
|
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.password_confirmation"
|
v-model="form.password_confirmation"
|
||||||
label="Confirm Password"
|
label="Confirm Password"
|
||||||
placeholder="············"
|
placeholder="············"
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { useForm } from '@inertiajs/vue3'
|
import { useForm } from '@inertiajs/vue3'
|
||||||
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
import AuthLayout from '@/Layouts/AuthLayout.vue'
|
||||||
import AppTextField from '@/Components/app-form-elements/AppTextField.vue'
|
|
||||||
|
|
||||||
defineOptions({ layout: AuthLayout })
|
defineOptions({ layout: AuthLayout })
|
||||||
|
|
||||||
@@ -44,7 +43,7 @@ const toggleRecovery = (): void => {
|
|||||||
<VForm @submit.prevent="submit">
|
<VForm @submit.prevent="submit">
|
||||||
<VRow>
|
<VRow>
|
||||||
<VCol v-if="!useRecovery" cols="12">
|
<VCol v-if="!useRecovery" cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.code"
|
v-model="form.code"
|
||||||
label="Code"
|
label="Code"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -57,7 +56,7 @@ const toggleRecovery = (): void => {
|
|||||||
</VCol>
|
</VCol>
|
||||||
|
|
||||||
<VCol v-else cols="12">
|
<VCol v-else cols="12">
|
||||||
<AppTextField
|
<VTextField
|
||||||
v-model="form.recovery_code"
|
v-model="form.recovery_code"
|
||||||
label="Recovery Code"
|
label="Recovery Code"
|
||||||
type="text"
|
type="text"
|
||||||
|
|||||||
Reference in New Issue
Block a user