From fd20c204946792674fbfe1489aea067abfcc8471 Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Mon, 15 Jul 2024 08:35:50 +0000 Subject: [PATCH] Ensure Inertia pages are children of AppLayout --- .gitignore | 1 + src/Console/InstallCommand.php | 1 + .../resources/js/Layouts/AppLayout.vue | 15 +------------- .../inertia/resources/js/Pages/API/Index.vue | 9 +++++++-- .../inertia/resources/js/Pages/Dashboard.vue | 9 +++++++-- .../resources/js/Pages/PageContainer.vue | 20 +++++++++++++++++++ .../resources/js/Pages/Profile/Show.vue | 9 +++++++-- .../resources/js/Pages/Teams/Create.vue | 9 +++++++-- .../inertia/resources/js/Pages/Teams/Show.vue | 9 +++++++-- 9 files changed, 58 insertions(+), 24 deletions(-) create mode 100644 stubs/inertia/resources/js/Pages/PageContainer.vue diff --git a/.gitignore b/.gitignore index 35aa09ee6..5cf58d52e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ composer.lock /phpunit.xml /.phpunit.cache .phpunit.result.cache +.idea diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 41c4cb6dc..24abd76a8 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -422,6 +422,7 @@ protected function installInertiaStack() // Inertia Pages... copy(__DIR__.'/../../stubs/inertia/resources/js/Pages/Dashboard.vue', resource_path('js/Pages/Dashboard.vue')); + copy(__DIR__.'/../../stubs/inertia/resources/js/Pages/PageContainer.vue', resource_path('js/Pages/PageContainer.vue')); copy(__DIR__.'/../../stubs/inertia/resources/js/Pages/PrivacyPolicy.vue', resource_path('js/Pages/PrivacyPolicy.vue')); copy(__DIR__.'/../../stubs/inertia/resources/js/Pages/TermsOfService.vue', resource_path('js/Pages/TermsOfService.vue')); copy(__DIR__.'/../../stubs/inertia/resources/js/Pages/Welcome.vue', resource_path('js/Pages/Welcome.vue')); diff --git a/stubs/inertia/resources/js/Layouts/AppLayout.vue b/stubs/inertia/resources/js/Layouts/AppLayout.vue index 654a6f793..afe746b9f 100644 --- a/stubs/inertia/resources/js/Layouts/AppLayout.vue +++ b/stubs/inertia/resources/js/Layouts/AppLayout.vue @@ -1,6 +1,6 @@