Skip to content

Commit 752ba61

Browse files
committed
eslint
1 parent b9a8974 commit 752ba61

File tree

13 files changed

+126
-130
lines changed

13 files changed

+126
-130
lines changed

resources/js/Layouts/Admin/AuthenticatedLayout.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import TopNav from './Partials/TopNav.vue';
77
import Footer from './Partials/Footer.vue';
88
import SideMenuItems from './Partials/SideMenuItems.vue';
99
10-
const props = defineProps({
10+
defineProps({
1111
pageTitle: {
1212
type: String,
1313
required: false,
@@ -19,8 +19,6 @@ const props = defineProps({
1919
},
2020
});
2121
22-
const page = usePage();
23-
2422
// Drawer menus
2523
const navDrawerOpen = ref(false);
2624

resources/js/Layouts/Admin/Partials/DrawerMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { ref } from 'vue';
33
import LinksPanelMenu from '@/Components/PrimeVue/LinksPanelMenu.vue';
44
5-
const model = defineModel();
5+
const model = defineModel(false);
66
77
// Menu Items
88
const currentRoute = route().current();

resources/js/Layouts/Admin/Partials/MobileSidebarNavDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup>
22
import { usePage } from '@inertiajs/vue3';
33
4-
const model = defineModel();
4+
const model = defineModel(false);
55
const page = usePage();
66
</script>
77

resources/js/Layouts/Admin/Partials/TopNav.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
22
import { useTemplateRef } from 'vue';
3-
import { useForm, usePage } from '@inertiajs/vue3';
3+
import { useForm } from '@inertiajs/vue3';
44
import ApplicationLogo from '@/Components/ApplicationLogo.vue';
55
import ToggleDarkModeButton from '@/Components/ToggleDarkModeButton.vue';
66
import LinksMenu from '@/Components/PrimeVue/LinksMenu.vue';
@@ -51,12 +51,12 @@ const toggleUserMenu = (event) => {
5151
outlined
5252
severity="secondary"
5353
icon="pi pi-bars"
54-
@click="emit('open-nav')"
5554
:pt="{
5655
icon: {
5756
class: 'text-xl',
5857
},
5958
}"
59+
@click="emit('open-nav')"
6060
/>
6161
<Link :href="route('welcome')" class="mr-5">
6262
<ApplicationLogo
@@ -98,10 +98,10 @@ const toggleUserMenu = (event) => {
9898
/>
9999
<div id="user-menu-append" class="relative"></div>
100100
<LinksMenu
101+
ref="user-menu"
101102
appendTo="#user-menu-append"
102103
:model="userMenuItems"
103104
popup
104-
ref="user-menu"
105105
:pt="{
106106
root: {
107107
class: '!left-auto !top-0 right-0',

resources/js/Pages/Admin/Auth/ForgotPassword.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ onMounted(() => {
2828
<AdminGuestLayout>
2929
<Head title="Forgot Password" />
3030

31-
<template #message v-if="status">
31+
<template v-if="status" #message>
3232
<Message severity="success" :closable="false" class="shadow">
3333
{{ status }}
3434
</Message>
@@ -40,15 +40,15 @@ onMounted(() => {
4040
you to choose a new one.
4141
</div>
4242

43-
<form @submit.prevent="submit" class="space-y-6">
43+
<form class="space-y-6" @submit.prevent="submit">
4444
<div class="space-y-2">
4545
<label for="email">Email</label>
4646
<InputText
47-
required
48-
ref="email-input"
4947
id="email"
50-
type="email"
48+
ref="email-input"
5149
v-model="form.email"
50+
type="email"
51+
required
5252
fluid
5353
:invalid="Boolean(form.errors.email)"
5454
autocomplete="username"
@@ -65,11 +65,11 @@ onMounted(() => {
6565

6666
<div class="flex justify-end items-center">
6767
<Button
68-
raised
69-
type="submit"
7068
:loading="form.processing"
69+
type="submit"
7170
label="Email Password Reset Link"
7271
severity="contrast"
72+
raised
7373
/>
7474
</div>
7575
</form>

resources/js/Pages/Admin/Auth/Login.vue

Lines changed: 71 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -35,88 +35,86 @@ onMounted(() => {
3535
<AdminGuestLayout>
3636
<Head title="Log in" />
3737

38-
<template #message v-if="status">
38+
<template v-if="status" #message>
3939
<Message severity="success" :closable="false" class="shadow">
4040
{{ status }}
4141
</Message>
4242
</template>
4343

44-
<div>
45-
<form @submit.prevent="submit" class="space-y-6">
46-
<div class="space-y-2">
47-
<label for="email">Email</label>
48-
<InputText
49-
required
50-
ref="email-input"
51-
id="email"
52-
type="email"
53-
v-model="form.email"
54-
fluid
55-
:invalid="Boolean(form.errors.email)"
56-
autocomplete="username"
57-
/>
58-
<Message
59-
v-if="form.errors?.email"
60-
severity="error"
61-
variant="simple"
62-
size="small"
63-
>
64-
{{ form.errors?.email }}
65-
</Message>
66-
</div>
44+
<form class="space-y-6" @submit.prevent="submit">
45+
<div class="space-y-2">
46+
<label for="email">Email</label>
47+
<InputText
48+
id="email"
49+
ref="email-input"
50+
v-model="form.email"
51+
type="email"
52+
required
53+
fluid
54+
:invalid="Boolean(form.errors.email)"
55+
autocomplete="username"
56+
/>
57+
<Message
58+
v-if="form.errors?.email"
59+
severity="error"
60+
variant="simple"
61+
size="small"
62+
>
63+
{{ form.errors?.email }}
64+
</Message>
65+
</div>
6766

68-
<div class="space-y-2">
69-
<label for="password">Password</label>
70-
<InputText
71-
required
72-
id="password"
73-
type="password"
74-
v-model="form.password"
75-
fluid
76-
:invalid="Boolean(form.errors.password)"
77-
autocomplete="current-password"
78-
/>
79-
<Message
80-
v-if="form.errors?.password"
81-
severity="error"
82-
variant="simple"
83-
size="small"
84-
>
85-
{{ form.errors?.password }}
86-
</Message>
87-
</div>
67+
<div class="space-y-2">
68+
<label for="password">Password</label>
69+
<InputText
70+
id="password"
71+
v-model="form.password"
72+
type="password"
73+
required
74+
fluid
75+
:invalid="Boolean(form.errors.password)"
76+
autocomplete="current-password"
77+
/>
78+
<Message
79+
v-if="form.errors?.password"
80+
severity="error"
81+
variant="simple"
82+
size="small"
83+
>
84+
{{ form.errors?.password }}
85+
</Message>
86+
</div>
8887

89-
<div>
90-
<div class="flex items-center justify-between">
91-
<div class="flex items-center">
92-
<Checkbox
93-
id="remember"
94-
:binary="true"
95-
v-model="form.remember"
96-
class="mr-2"
97-
></Checkbox>
98-
<label for="remember">Remember me</label>
99-
</div>
88+
<div>
89+
<div class="flex items-center justify-between">
90+
<div class="flex items-center">
91+
<Checkbox
92+
id="remember"
93+
v-model="form.remember"
94+
class="mr-2"
95+
:binary="true"
96+
></Checkbox>
97+
<label for="remember">Remember me</label>
10098
</div>
10199
</div>
100+
</div>
102101

103-
<div class="flex justify-end items-center pt-2">
104-
<Link
105-
v-if="canResetPassword"
106-
:href="route('password.request')"
107-
class="mr-4 underline text-muted-color hover:text-color"
108-
>
109-
Forgot your password?
110-
</Link>
111-
<Button
112-
raised
113-
type="submit"
114-
:loading="form.processing"
115-
label="Log In"
116-
severity="contrast"
117-
/>
118-
</div>
119-
</form>
120-
</div>
102+
<div class="flex justify-end items-center pt-2">
103+
<Link
104+
v-if="canResetPassword"
105+
:href="route('password.request')"
106+
class="mr-4 underline text-muted-color hover:text-color"
107+
>
108+
Forgot your password?
109+
</Link>
110+
<Button
111+
:loading="form.processing"
112+
type="submit"
113+
label="Log In"
114+
severity="contrast"
115+
raised
116+
/>
117+
</div>
118+
</form>
121119
</AdminGuestLayout>
122120
</template>

resources/js/Pages/Admin/Auth/ResetPassword.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ onMounted(() => {
3838
<AdminGuestLayout>
3939
<Head title="Reset Password" />
4040

41-
<form @submit.prevent="submit" class="space-y-6">
41+
<form class="space-y-6" @submit.prevent="submit">
4242
<div class="space-y-2">
4343
<label for="email">Email</label>
4444
<InputText
45-
ref="email-input"
4645
id="email"
47-
type="email"
46+
ref="email-input"
4847
v-model="form.email"
49-
fluid
48+
type="email"
5049
:invalid="Boolean(form.errors.email)"
5150
required
51+
fluid
5252
autocomplete="username"
5353
/>
5454
<Message
@@ -65,11 +65,11 @@ onMounted(() => {
6565
<label for="password">Password</label>
6666
<InputText
6767
id="password"
68-
type="password"
6968
v-model="form.password"
70-
fluid
69+
type="password"
7170
:invalid="Boolean(form.errors.password)"
7271
required
72+
fluid
7373
autocomplete="new-password"
7474
/>
7575
<Message
@@ -86,11 +86,11 @@ onMounted(() => {
8686
<label for="password_confirmation">Password</label>
8787
<InputText
8888
id="password_confirmation"
89-
type="password"
9089
v-model="form.password_confirmation"
91-
fluid
90+
type="password"
9291
:invalid="Boolean(form.errors.password_confirmation)"
9392
required
93+
fluid
9494
autocomplete="new-password"
9595
/>
9696
<Message
@@ -105,11 +105,11 @@ onMounted(() => {
105105

106106
<div class="flex justify-end items-center pt-2">
107107
<Button
108-
raised
109-
type="submit"
110108
:loading="form.processing"
109+
type="submit"
111110
label="Reset Password"
112111
severity="contrast"
112+
raised
113113
/>
114114
</div>
115115
</form>

resources/js/Pages/Admin/Auth/VerifyEmail.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,30 @@ const verificationLinkSent = computed(
2424
<AdminGuestLayout>
2525
<Head title="Email Verification" />
2626

27-
<template #message v-if="verificationLinkSent">
27+
<template v-if="verificationLinkSent" #message>
2828
<Message severity="success" :closable="false" class="shadow">
2929
A new verification link has been sent to the email address you
3030
provided during registration.
3131
</Message>
3232
</template>
3333

3434
<div class="mb-6 text-sm text-muted-color">
35-
Before getting started, could you verify your
35+
Thanks for signing up! Before getting started, could you verify your
3636
email address by clicking on the link we just emailed to you? If you
3737
didn't receive the email, we will gladly send you another.
3838
</div>
3939

4040
<form @submit.prevent="submit">
4141
<div class="mt-6 flex justify-between items-center">
4242
<Button
43-
raised
44-
type="submit"
4543
:loading="form.processing"
44+
type="submit"
4645
label="Resend Verification Email"
4746
severity="contrast"
47+
raised
4848
/>
4949
<Link
50-
:href="route('admin.logout')"
50+
:href="route('logout')"
5151
method="post"
5252
class="underline text-muted-color hover:text-color"
5353
>Log Out</Link

resources/js/Pages/Admin/Profile/Edit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import DeleteUserForm from './Partials/DeleteUserForm.vue';
55
import UpdatePasswordForm from './Partials/UpdatePasswordForm.vue';
66
import UpdateProfileInformationForm from './Partials/UpdateProfileInformationForm.vue';
77
8-
const props = defineProps({
8+
defineProps({
99
auth: Object,
1010
mustVerifyEmail: {
1111
type: Boolean,

0 commit comments

Comments
 (0)