diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 281bec18a..5db1a11d5 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -83,6 +83,10 @@ public function handle() $this->installInertiaStack(); } + // Emails... + (new Filesystem)->ensureDirectoryExists(resource_path('views/emails')); + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/resources/views/emails', resource_path('views/emails')); + // Tests... $stubs = $this->getTestStubsPath(); @@ -167,6 +171,7 @@ protected function installLivewireStack() (new Filesystem)->ensureDirectoryExists(resource_path('markdown')); (new Filesystem)->ensureDirectoryExists(resource_path('views/api')); (new Filesystem)->ensureDirectoryExists(resource_path('views/auth')); + (new Filesystem)->ensureDirectoryExists(resource_path('views/components')); (new Filesystem)->ensureDirectoryExists(resource_path('views/layouts')); (new Filesystem)->ensureDirectoryExists(resource_path('views/profile')); @@ -191,6 +196,9 @@ protected function installLivewireStack() copy(__DIR__.'/../../stubs/app/Actions/Fortify/UpdateUserProfileInformation.php', app_path('Actions/Fortify/UpdateUserProfileInformation.php')); copy(__DIR__.'/../../stubs/app/Actions/Jetstream/DeleteUser.php', app_path('Actions/Jetstream/DeleteUser.php')); + // Components... + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/livewire/resources/views/components', resource_path('views/components')); + // View Components... copy(__DIR__.'/../../stubs/livewire/app/View/Components/AppLayout.php', app_path('View/Components/AppLayout.php')); copy(__DIR__.'/../../stubs/livewire/app/View/Components/GuestLayout.php', app_path('View/Components/GuestLayout.php')); diff --git a/src/JetstreamServiceProvider.php b/src/JetstreamServiceProvider.php index 1f59d86f0..da8ff356d 100644 --- a/src/JetstreamServiceProvider.php +++ b/src/JetstreamServiceProvider.php @@ -71,7 +71,6 @@ public function boot() Fortify::viewPrefix('auth.'); - $this->configureComponents(); $this->configurePublishing(); $this->configureRoutes(); $this->configureCommands(); @@ -95,57 +94,6 @@ public function boot() } } - /** - * Configure the Jetstream Blade components. - * - * @return void - */ - protected function configureComponents() - { - $this->callAfterResolving(BladeCompiler::class, function () { - $this->registerComponent('action-message'); - $this->registerComponent('action-section'); - $this->registerComponent('application-logo'); - $this->registerComponent('application-mark'); - $this->registerComponent('authentication-card'); - $this->registerComponent('authentication-card-logo'); - $this->registerComponent('banner'); - $this->registerComponent('button'); - $this->registerComponent('confirmation-modal'); - $this->registerComponent('confirms-password'); - $this->registerComponent('danger-button'); - $this->registerComponent('dialog-modal'); - $this->registerComponent('dropdown'); - $this->registerComponent('dropdown-link'); - $this->registerComponent('form-section'); - $this->registerComponent('input'); - $this->registerComponent('checkbox'); - $this->registerComponent('input-error'); - $this->registerComponent('label'); - $this->registerComponent('modal'); - $this->registerComponent('nav-link'); - $this->registerComponent('responsive-nav-link'); - $this->registerComponent('responsive-switchable-team'); - $this->registerComponent('secondary-button'); - $this->registerComponent('section-border'); - $this->registerComponent('section-title'); - $this->registerComponent('switchable-team'); - $this->registerComponent('validation-errors'); - $this->registerComponent('welcome'); - }); - } - - /** - * Register the given component. - * - * @param string $component - * @return void - */ - protected function registerComponent(string $component) - { - Blade::component('jetstream::components.'.$component, 'jet-'.$component); - } - /** * Configure publishing for the package. * @@ -161,10 +109,6 @@ protected function configurePublishing() __DIR__.'/../stubs/config/jetstream.php' => config_path('jetstream.php'), ], 'jetstream-config'); - $this->publishes([ - __DIR__.'/../resources/views' => resource_path('views/vendor/jetstream'), - ], 'jetstream-views'); - $this->publishes([ __DIR__.'/../database/migrations/2014_10_12_000000_create_users_table.php' => database_path('migrations/2014_10_12_000000_create_users_table.php'), ], 'jetstream-migrations'); diff --git a/src/Mail/TeamInvitation.php b/src/Mail/TeamInvitation.php index c70ef352e..d31b10572 100644 --- a/src/Mail/TeamInvitation.php +++ b/src/Mail/TeamInvitation.php @@ -37,7 +37,7 @@ public function __construct(TeamInvitationModel $invitation) */ public function build() { - return $this->markdown('jetstream::mail.team-invitation', ['acceptUrl' => URL::signedRoute('team-invitations.accept', [ + return $this->markdown('emails.team-invitation', ['acceptUrl' => URL::signedRoute('team-invitations.accept', [ 'invitation' => $this->invitation, ])])->subject(__('Team Invitation')); } diff --git a/stubs/livewire/resources/views/api/api-token-manager.blade.php b/stubs/livewire/resources/views/api/api-token-manager.blade.php index 1391fb70c..d73212fea 100644 --- a/stubs/livewire/resources/views/api/api-token-manager.blade.php +++ b/stubs/livewire/resources/views/api/api-token-manager.blade.php @@ -1,6 +1,6 @@
@@ -84,12 +84,12 @@
@@ -22,15 +22,15 @@
@@ -24,27 +24,27 @@