File tree 9 files changed +58
-24
lines changed
stubs/inertia/resources/js
9 files changed +58
-24
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ composer.lock
3
3
/phpunit.xml
4
4
/.phpunit.cache
5
5
.phpunit.result.cache
6
+ .idea
Original file line number Diff line number Diff line change @@ -422,6 +422,7 @@ protected function installInertiaStack()
422
422
423
423
// Inertia Pages...
424
424
copy (__DIR__ .'/../../stubs/inertia/resources/js/Pages/Dashboard.vue ' , resource_path ('js/Pages/Dashboard.vue ' ));
425
+ copy (__DIR__ .'/../../stubs/inertia/resources/js/Pages/PageContainer.vue ' , resource_path ('js/Pages/PageContainer.vue ' ));
425
426
copy (__DIR__ .'/../../stubs/inertia/resources/js/Pages/PrivacyPolicy.vue ' , resource_path ('js/Pages/PrivacyPolicy.vue ' ));
426
427
copy (__DIR__ .'/../../stubs/inertia/resources/js/Pages/TermsOfService.vue ' , resource_path ('js/Pages/TermsOfService.vue ' ));
427
428
copy (__DIR__ .'/../../stubs/inertia/resources/js/Pages/Welcome.vue ' , resource_path ('js/Pages/Welcome.vue ' ));
Original file line number Diff line number Diff line change 1
1
<script setup>
2
2
import { ref } from ' vue' ;
3
- import { Head , Link , router } from ' @inertiajs/vue3' ;
3
+ import { Link , router } from ' @inertiajs/vue3' ;
4
4
import ApplicationMark from ' @/Components/ApplicationMark.vue' ;
5
5
import Banner from ' @/Components/Banner.vue' ;
6
6
import Dropdown from ' @/Components/Dropdown.vue' ;
7
7
import DropdownLink from ' @/Components/DropdownLink.vue' ;
8
8
import NavLink from ' @/Components/NavLink.vue' ;
9
9
import ResponsiveNavLink from ' @/Components/ResponsiveNavLink.vue' ;
10
10
11
- defineProps ({
12
- title: String ,
13
- });
14
-
15
11
const showingNavigationDropdown = ref (false );
16
12
17
13
const switchToTeam = (team ) => {
@@ -29,8 +25,6 @@ const logout = () => {
29
25
30
26
<template >
31
27
<div >
32
- <Head :title =" title" />
33
-
34
28
<Banner />
35
29
36
30
<div class =" min-h-screen bg-gray-100 dark:bg-gray-900" >
@@ -273,13 +267,6 @@ const logout = () => {
273
267
</div >
274
268
</nav >
275
269
276
- <!-- Page Heading -->
277
- <header v-if =" $slots.header" class =" bg-white dark:bg-gray-800 shadow" >
278
- <div class =" max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8" >
279
- <slot name =" header" />
280
- </div >
281
- </header >
282
-
283
270
<!-- Page Content -->
284
271
<main >
285
272
<slot />
Original file line number Diff line number Diff line change 1
1
<script setup>
2
2
import ApiTokenManager from ' @/Pages/API/Partials/ApiTokenManager.vue' ;
3
3
import AppLayout from ' @/Layouts/AppLayout.vue' ;
4
+ import PageContainer from " @/Pages/PageContainer.vue" ;
5
+
6
+ defineOptions ({
7
+ layout: AppLayout,
8
+ })
4
9
5
10
defineProps ({
6
11
tokens: Array ,
@@ -10,7 +15,7 @@ defineProps({
10
15
</script >
11
16
12
17
<template >
13
- <AppLayout title =" API Tokens" >
18
+ <PageContainer title =" API Tokens" >
14
19
<template #header >
15
20
<h2 class =" font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight" >
16
21
API Tokens
@@ -26,5 +31,5 @@ defineProps({
26
31
/>
27
32
</div >
28
33
</div >
29
- </AppLayout >
34
+ </PageContainer >
30
35
</template >
Original file line number Diff line number Diff line change 1
1
<script setup>
2
2
import AppLayout from ' @/Layouts/AppLayout.vue' ;
3
3
import Welcome from ' @/Components/Welcome.vue' ;
4
+ import PageContainer from " @/Pages/PageContainer.vue" ;
5
+
6
+ defineOptions ({
7
+ layout: AppLayout,
8
+ })
4
9
</script >
5
10
6
11
<template >
7
- <AppLayout title =" Dashboard" >
12
+ <PageContainer title =" Dashboard" >
8
13
<template #header >
9
14
<h2 class =" font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight" >
10
15
Dashboard
@@ -18,5 +23,5 @@ import Welcome from '@/Components/Welcome.vue';
18
23
</div >
19
24
</div >
20
25
</div >
21
- </AppLayout >
26
+ </PageContainer >
22
27
</template >
Original file line number Diff line number Diff line change
1
+ <script setup>
2
+ import { Head } from ' @inertiajs/vue3' ;
3
+
4
+ defineProps ({
5
+ title: String ,
6
+ });
7
+ </script >
8
+
9
+ <template >
10
+ <Head :title =" title" />
11
+
12
+ <!-- Page Heading -->
13
+ <header v-if =" $slots.header" class =" bg-white dark:bg-gray-800 shadow" >
14
+ <div class =" max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8" >
15
+ <slot name =" header" />
16
+ </div >
17
+ </header >
18
+
19
+ <slot />
20
+ </template >
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ import SectionBorder from '@/Components/SectionBorder.vue';
6
6
import TwoFactorAuthenticationForm from ' @/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue' ;
7
7
import UpdatePasswordForm from ' @/Pages/Profile/Partials/UpdatePasswordForm.vue' ;
8
8
import UpdateProfileInformationForm from ' @/Pages/Profile/Partials/UpdateProfileInformationForm.vue' ;
9
+ import PageContainer from " @/Pages/PageContainer.vue" ;
10
+
11
+ defineOptions ({
12
+ layout: AppLayout,
13
+ })
9
14
10
15
defineProps ({
11
16
confirmsTwoFactorAuthentication: Boolean ,
@@ -14,7 +19,7 @@ defineProps({
14
19
</script >
15
20
16
21
<template >
17
- <AppLayout title =" Profile" >
22
+ <PageContainer title =" Profile" >
18
23
<template #header >
19
24
<h2 class =" font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight" >
20
25
Profile
@@ -53,5 +58,5 @@ defineProps({
53
58
</template >
54
59
</div >
55
60
</div >
56
- </AppLayout >
61
+ </PageContainer >
57
62
</template >
Original file line number Diff line number Diff line change 1
1
<script setup>
2
2
import AppLayout from ' @/Layouts/AppLayout.vue' ;
3
3
import CreateTeamForm from ' @/Pages/Teams/Partials/CreateTeamForm.vue' ;
4
+ import PageContainer from " @/Pages/PageContainer.vue" ;
5
+
6
+ defineOptions ({
7
+ layout: AppLayout,
8
+ })
4
9
</script >
5
10
6
11
<template >
7
- <AppLayout title =" Create Team" >
12
+ <PageContainer title =" Create Team" >
8
13
<template #header >
9
14
<h2 class =" font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight" >
10
15
Create Team
@@ -16,5 +21,5 @@ import CreateTeamForm from '@/Pages/Teams/Partials/CreateTeamForm.vue';
16
21
<CreateTeamForm />
17
22
</div >
18
23
</div >
19
- </AppLayout >
24
+ </PageContainer >
20
25
</template >
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import DeleteTeamForm from '@/Pages/Teams/Partials/DeleteTeamForm.vue';
4
4
import SectionBorder from ' @/Components/SectionBorder.vue' ;
5
5
import TeamMemberManager from ' @/Pages/Teams/Partials/TeamMemberManager.vue' ;
6
6
import UpdateTeamNameForm from ' @/Pages/Teams/Partials/UpdateTeamNameForm.vue' ;
7
+ import PageContainer from " @/Pages/PageContainer.vue" ;
8
+
9
+ defineOptions ({
10
+ layout: AppLayout,
11
+ })
7
12
8
13
defineProps ({
9
14
team: Object ,
@@ -13,7 +18,7 @@ defineProps({
13
18
</script >
14
19
15
20
<template >
16
- <AppLayout title =" Team Settings" >
21
+ <PageContainer title =" Team Settings" >
17
22
<template #header >
18
23
<h2 class =" font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight" >
19
24
Team Settings
@@ -38,5 +43,5 @@ defineProps({
38
43
</template >
39
44
</div >
40
45
</div >
41
- </AppLayout >
46
+ </PageContainer >
42
47
</template >
You can’t perform that action at this time.
0 commit comments