Skip to content

Commit de945ad

Browse files
committed
lint fixes
1 parent 1ab0189 commit de945ad

File tree

8 files changed

+59
-59
lines changed

8 files changed

+59
-59
lines changed

src/views/auth/ForgotPassword.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ onMounted(() => {
5959
</div>
6060

6161
<form
62-
@submit.prevent="submit"
6362
class="space-y-6"
63+
@submit.prevent="submit"
6464
>
6565
<div class="space-y-2">
6666
<label
@@ -69,24 +69,24 @@ onMounted(() => {
6969
>Email</label
7070
>
7171
<InputText
72-
required
73-
ref="email-input"
7472
id="email"
75-
type="email"
73+
ref="email-input"
7674
v-model="formData.email"
75+
type="email"
7776
class="w-full"
7877
:invalid="Boolean(validationErrors?.email)"
7978
autocomplete="username"
79+
required
8080
/>
8181
<InputErrors :errors="validationErrors?.email" />
8282
</div>
8383

8484
<div class="flex justify-end items-center">
8585
<Button
8686
type="submit"
87-
:loading="loading"
8887
label="Email Password Reset Link"
8988
severity="contrast"
89+
:loading="loading"
9090
raised
9191
/>
9292
</div>

src/views/auth/Login.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ onMounted(() => {
6666
</Message>
6767
</template>
6868
<form
69-
@submit.prevent="submit"
7069
class="space-y-6"
70+
@submit.prevent="submit"
7171
>
7272
<div class="space-y-2">
7373
<label
@@ -76,14 +76,14 @@ onMounted(() => {
7676
>Email</label
7777
>
7878
<InputText
79-
required
80-
ref="email-input"
8179
id="email"
82-
type="email"
80+
ref="email-input"
8381
v-model="formData.email"
82+
type="email"
8483
class="w-full"
8584
:invalid="Boolean(validationErrors.email)"
8685
autocomplete="username"
86+
required
8787
/>
8888
<InputErrors :errors="validationErrors.email" />
8989
</div>
@@ -95,13 +95,13 @@ onMounted(() => {
9595
>Password</label
9696
>
9797
<InputText
98-
required
9998
id="password"
100-
type="password"
10199
v-model="formData.password"
100+
type="password"
102101
class="w-full"
103102
:invalid="Boolean(validationErrors.password)"
104103
autocomplete="current-password"
104+
required
105105
/>
106106
<InputErrors :errors="validationErrors.password" />
107107
</div>
@@ -111,8 +111,8 @@ onMounted(() => {
111111
<div class="flex items-center">
112112
<Checkbox
113113
id="remember"
114-
:binary="true"
115114
v-model="formData.remember"
115+
:binary="true"
116116
class="mr-2"
117117
></Checkbox>
118118
<label for="remember">Remember me</label>
@@ -129,9 +129,9 @@ onMounted(() => {
129129
</RouterLink>
130130
<Button
131131
type="submit"
132-
:loading="loading"
133132
label="Log In"
134133
severity="contrast"
134+
:loading="loading"
135135
raised
136136
/>
137137
</div>

src/views/auth/Register.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ onMounted(() => {
4444
<template>
4545
<GuestLayout>
4646
<form
47-
@submit.prevent="submit"
4847
class="space-y-6"
48+
@submit.prevent="submit"
4949
>
5050
<div class="space-y-2">
5151
<label
@@ -54,14 +54,14 @@ onMounted(() => {
5454
>Name</label
5555
>
5656
<InputText
57-
ref="name-input"
5857
id="name"
59-
type="text"
58+
ref="name-input"
6059
v-model="formData.name"
60+
type="text"
6161
class="w-full"
6262
:invalid="Boolean(validationErrors?.name)"
63-
required
6463
autocomplete="name"
64+
required
6565
/>
6666
<InputErrors :errors="validationErrors?.name" />
6767
</div>
@@ -74,12 +74,12 @@ onMounted(() => {
7474
>
7575
<InputText
7676
id="email"
77-
type="email"
7877
v-model="formData.email"
78+
type="email"
7979
class="w-full"
8080
:invalid="Boolean(validationErrors?.email)"
81-
required
8281
autocomplete="username"
82+
required
8383
/>
8484
<InputErrors :errors="validationErrors?.email" />
8585
</div>
@@ -92,12 +92,12 @@ onMounted(() => {
9292
>
9393
<InputText
9494
id="password"
95-
type="password"
9695
v-model="formData.password"
96+
type="password"
9797
class="w-full"
9898
:invalid="Boolean(validationErrors?.password)"
99-
required
10099
autocomplete="new-password"
100+
required
101101
/>
102102
<InputErrors :errors="validationErrors?.password" />
103103
</div>
@@ -110,12 +110,12 @@ onMounted(() => {
110110
>
111111
<InputText
112112
id="password_confirmation"
113-
type="password"
114113
v-model="formData.password_confirmation"
114+
type="password"
115115
class="w-full"
116116
:invalid="Boolean(validationErrors?.password_confirmation)"
117-
required
118117
autocomplete="new-password"
118+
required
119119
/>
120120
<InputErrors :errors="validationErrors?.password_confirmation" />
121121
</div>
@@ -129,9 +129,9 @@ onMounted(() => {
129129
</RouterLink>
130130
<Button
131131
type="submit"
132-
:loading="loading"
133132
label="Register"
134133
severity="contrast"
134+
:loading="loading"
135135
raised
136136
/>
137137
</div>

src/views/auth/ResetPassword.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ onMounted(() => {
5656
<template>
5757
<GuestLayout>
5858
<form
59-
@submit.prevent="submit"
6059
class="space-y-6"
60+
@submit.prevent="submit"
6161
>
6262
<div class="space-y-2">
6363
<label
@@ -66,14 +66,14 @@ onMounted(() => {
6666
>Email</label
6767
>
6868
<InputText
69-
required
70-
ref="email-input"
7169
id="email"
72-
type="email"
70+
ref="email-input"
7371
v-model="formData.email"
72+
type="email"
7473
class="w-full"
7574
:invalid="Boolean(validationErrors?.email)"
7675
autocomplete="username"
76+
required
7777
/>
7878
<InputErrors :errors="validationErrors?.email" />
7979
</div>
@@ -86,12 +86,12 @@ onMounted(() => {
8686
>
8787
<InputText
8888
id="password"
89-
type="password"
9089
v-model="formData.password"
90+
type="password"
9191
class="w-full"
9292
:invalid="Boolean(validationErrors?.password)"
93-
required
9493
autocomplete="new-password"
94+
required
9595
/>
9696
<InputErrors :errors="validationErrors?.password" />
9797
</div>
@@ -104,22 +104,22 @@ onMounted(() => {
104104
>
105105
<InputText
106106
id="password_confirmation"
107-
type="password"
108107
v-model="formData.password_confirmation"
108+
type="password"
109109
class="w-full"
110110
:invalid="Boolean(validationErrors?.password_confirmation)"
111-
required
112111
autocomplete="new-password"
112+
required
113113
/>
114114
<InputErrors :errors="validationErrors?.password_confirmation" />
115115
</div>
116116
117117
<div class="flex justify-end items-center pt-2">
118118
<Button
119119
type="submit"
120-
:loading="loading"
121120
label="Reset Password"
122121
severity="contrast"
122+
:loading="loading"
123123
raised
124124
/>
125125
</div>

src/views/auth/VerifyEmail.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const submit = () => {
1717
<template>
1818
<GuestLayout>
1919
<template
20-
#message
2120
v-if="verificationLinkSent"
21+
#message
2222
>
2323
<Message
2424
severity="success"
@@ -38,15 +38,15 @@ const submit = () => {
3838
<div class="mt-6 flex justify-between items-center">
3939
<Button
4040
type="submit"
41-
:loading="authStore.sendingVerificationEmail"
4241
label="Resend Verification Email"
4342
severity="contrast"
43+
:loading="authStore.sendingVerificationEmail"
4444
raised
4545
/>
4646
<a
47-
@click="authStore.logout()"
4847
href="#"
4948
class="underline text-muted-color hover:text-color"
49+
@click="authStore.logout()"
5050
>
5151
Log Out
5252
</a>

src/views/profile/partials/DeleteUserForm.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import { ref, useTemplateRef, reactive } from 'vue';
2+
import { ref, useTemplateRef } from 'vue';
33
import { useRouter } from 'vue-router';
44
import { useAxiosForm } from '@/composables/useAxiosForm';
55
import { useFlashMessage } from '@/composables/useFlashMessage.js';
@@ -41,9 +41,9 @@ function focusPasswordInput() {
4141
<template>
4242
<section>
4343
<Dialog
44+
v-model:visible="modalOpen"
4445
:draggable="false"
4546
position="center"
46-
v-model:visible="modalOpen"
4747
modal
4848
header="Are you sure you want to delete your account?"
4949
:style="{ width: '40rem' }"
@@ -58,16 +58,16 @@ function focusPasswordInput() {
5858

5959
<div class="space-y-2">
6060
<InputText
61-
autofocus
62-
required
6361
id="password"
6462
ref="password-input"
63+
v-model="formData.password"
6564
type="password"
6665
placeholder="Password"
67-
v-model="formData.password"
6866
class="w-full"
6967
:invalid="Boolean(validationErrors?.password)"
7068
autocomplete="current-password"
69+
autofocus
70+
required
7171
@keyup.enter="deleteAccount"
7272
/>
7373
<InputErrors :errors="validationErrors?.password" />
@@ -83,9 +83,9 @@ function focusPasswordInput() {
8383
/>
8484
<Button
8585
@click="deleteAccount"
86-
:loading="deleting"
8786
label="Delete Account"
8887
severity="danger"
88+
:loading="deleting"
8989
raised
9090
/>
9191
</template>

0 commit comments

Comments
 (0)