Skip to content

Commit fd9559a

Browse files
committed
refactor: explicit Inertia Head component imports
1 parent e2486b8 commit fd9559a

File tree

14 files changed

+35
-33
lines changed

14 files changed

+35
-33
lines changed

resources/js/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import '../css/app.css'
22
import '../css/tailwind.css'
33

44
import { createApp, DefineComponent, h } from 'vue'
5-
import { createInertiaApp, router, Head, Link } from '@inertiajs/vue3'
5+
import { createInertiaApp, router, Link } from '@inertiajs/vue3'
66
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'
77
import { ZiggyVue } from 'ziggy-js'
88

@@ -73,7 +73,6 @@ createInertiaApp({
7373
pt: globalPt,
7474
})
7575
.use(ToastService)
76-
.component('InertiaHead', Head)
7776
.component('InertiaLink', Link)
7877
.component('Container', Container)
7978
.component('PageTitleSection', PageTitleSection)

resources/js/pages/Dashboard.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<script setup lang="ts">
2+
import { Head as InertiaHead } from '@inertiajs/vue3'
23
import AppLayout from '@/layouts/AppLayout.vue'
34
45
const breadcrumbs = [{ label: 'Dashboard' }]
56
</script>
67

78
<template>
8-
<AppLayout :breadcrumbs>
9-
<InertiaHead title="Dashboard" />
9+
<InertiaHead title="Dashboard" />
1010

11+
<AppLayout :breadcrumbs>
1112
<Card>
1213
<template #content>
1314
<p class="m-0">

resources/js/pages/Error.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import { computed } from 'vue'
3+
import { Head as InertiaHead } from '@inertiajs/vue3'
34
import { ArrowLeft } from 'lucide-vue-next'
45
56
const props = defineProps<{
@@ -19,6 +20,7 @@ const details = computed(() => {
1920

2021
<template>
2122
<InertiaHead title="Error" />
23+
2224
<Container fluid>
2325
<main>
2426
<div class="h-screen flex items-center justify-center">

resources/js/pages/Welcome.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { usePage } from '@inertiajs/vue3'
2+
import { usePage, Head as InertiaHead } from '@inertiajs/vue3'
33
import { LayoutGrid, LogIn, Settings, UserPlus } from 'lucide-vue-next'
44
55
defineProps<{

resources/js/pages/auth/ConfirmPassword.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { useForm } from '@inertiajs/vue3'
2+
import { useForm, Head as InertiaHead } from '@inertiajs/vue3'
33
import GuestAuthLayout from '@/layouts/GuestAuthLayout.vue'
44
55
const form = useForm({
@@ -16,9 +16,9 @@ const submit = () => {
1616
</script>
1717

1818
<template>
19-
<GuestAuthLayout>
20-
<InertiaHead title="Confirm password" />
19+
<InertiaHead title="Confirm password" />
2120

21+
<GuestAuthLayout>
2222
<template #title>
2323
<div class="text-center">
2424
Confirm your password

resources/js/pages/auth/ForgotPassword.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useTemplateRef, onMounted } from 'vue'
3-
import { useForm } from '@inertiajs/vue3'
3+
import { useForm, Head as InertiaHead } from '@inertiajs/vue3'
44
import GuestAuthLayout from '@/layouts/GuestAuthLayout.vue'
55
import InputText from 'primevue/inputtext'
66
@@ -27,9 +27,9 @@ onMounted(() => {
2727
</script>
2828

2929
<template>
30-
<GuestAuthLayout>
31-
<InertiaHead title="Forgot password" />
30+
<InertiaHead title="Forgot password" />
3231

32+
<GuestAuthLayout>
3333
<template
3434
v-if="props.status"
3535
#message

resources/js/pages/auth/Login.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useTemplateRef, onMounted } from 'vue'
3-
import { useForm } from '@inertiajs/vue3'
3+
import { useForm, Head as InertiaHead } from '@inertiajs/vue3'
44
import GuestAuthLayout from '@/layouts/GuestAuthLayout.vue'
55
import InputText from 'primevue/inputtext'
66
@@ -32,9 +32,9 @@ onMounted(() => {
3232
</script>
3333

3434
<template>
35-
<GuestAuthLayout>
36-
<InertiaHead title="Log in" />
35+
<InertiaHead title="Log in" />
3736

37+
<GuestAuthLayout>
3838
<template
3939
v-if="props.status"
4040
#message

resources/js/pages/auth/Register.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useTemplateRef, onMounted } from 'vue'
3-
import { useForm } from '@inertiajs/vue3'
3+
import { useForm, Head as InertiaHead } from '@inertiajs/vue3'
44
import GuestAuthLayout from '@/layouts/GuestAuthLayout.vue'
55
import InputText from 'primevue/inputtext'
66
@@ -28,9 +28,9 @@ onMounted(() => {
2828
</script>
2929

3030
<template>
31-
<GuestAuthLayout>
32-
<InertiaHead title="Register" />
31+
<InertiaHead title="Register" />
3332

33+
<GuestAuthLayout>
3434
<template #title>
3535
<div class="text-center">
3636
Create an account

resources/js/pages/auth/ResetPassword.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { useTemplateRef, onMounted } from 'vue'
3-
import { useForm } from '@inertiajs/vue3'
3+
import { useForm, Head as InertiaHead } from '@inertiajs/vue3'
44
import GuestAuthLayout from '@/layouts/GuestAuthLayout.vue'
55
import InputText from 'primevue/inputtext'
66
@@ -33,9 +33,9 @@ onMounted(() => {
3333
</script>
3434

3535
<template>
36-
<GuestAuthLayout>
37-
<InertiaHead title="Reset password" />
36+
<InertiaHead title="Reset password" />
3837

38+
<GuestAuthLayout>
3939
<template #title>
4040
<div class="text-center">
4141
Reset password

resources/js/pages/auth/VerifyEmail.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { computed } from 'vue'
3-
import { useForm } from '@inertiajs/vue3'
3+
import { useForm, Head as InertiaHead } from '@inertiajs/vue3'
44
import GuestAuthLayout from '@/layouts/GuestAuthLayout.vue'
55
66
const props = defineProps<{
@@ -20,9 +20,9 @@ const verificationLinkSent = computed(() => props.status === 'verification-link-
2020
</script>
2121

2222
<template>
23-
<GuestAuthLayout>
24-
<InertiaHead title="Email verification" />
23+
<InertiaHead title="Email verification" />
2524

25+
<GuestAuthLayout>
2626
<template #title>
2727
<div class="text-center">
2828
Verify email

0 commit comments

Comments
 (0)