-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3a7489
commit 51e2e5a
Showing
28 changed files
with
561 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
namespace JoelButcher\Socialstream\Installer\Drivers\Breeze; | ||
|
||
use Illuminate\Filesystem\Filesystem; | ||
use JoelButcher\Socialstream\Installer\Enums\BreezeInstallStack; | ||
use JoelButcher\Socialstream\Installer\Enums\InstallOptions; | ||
|
||
class FunctionalLivewireDriver extends BreezeDriver | ||
{ | ||
/** | ||
* Specify the stack used by this installer. | ||
*/ | ||
protected static function stack(): BreezeInstallStack | ||
{ | ||
return BreezeInstallStack::FunctionalLivewire; | ||
} | ||
|
||
protected static function directoriesToCreateForStack(): array | ||
{ | ||
return [ | ||
resource_path('views/livewire/pages/auth/auth'), | ||
resource_path('views/livewire/profile'), | ||
]; | ||
} | ||
|
||
/** | ||
* Copy all the app files required for the stack. | ||
*/ | ||
protected function copyAppFiles(): static | ||
{ | ||
return $this; | ||
} | ||
|
||
/** | ||
* Copy the auth views to the app "resources" directory for the given stack. | ||
*/ | ||
protected function copyAuthViews(InstallOptions ...$options): static | ||
{ | ||
copy(__DIR__.'/../../../../stubs/breeze/livewire-functional/resources/views/livewire/pages/auth/login.blade.php', resource_path('views/livewire/pages/auth/login.blade.php')); | ||
copy(__DIR__.'/../../../../stubs/breeze/livewire-functional/resources/views/livewire/pages/auth/register.blade.php', resource_path('views/livewire/pages/auth/register.blade.php')); | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Copy the profile views to the app "resources" directory for the given stack. | ||
*/ | ||
protected function copyProfileViews(InstallOptions ...$options): static | ||
{ | ||
copy(__DIR__.'/../../../../stubs/breeze/livewire-common/resources/views/profile.blade.php', resource_path('views/profile.blade.php')); | ||
copy(__DIR__.'/../../../../stubs/breeze/livewire-functional/resources/views/livewire/profile/delete-user-form.blade.php', resource_path('views/livewire/profile/delete-user-form.blade.php')); | ||
copy(__DIR__.'/../../../../stubs/breeze/livewire-functional/resources/views/livewire/profile/set-password-form.blade.php', resource_path('views/livewire/profile/set-password-form.blade.php')); | ||
copy(__DIR__.'/../../../../stubs/breeze/livewire-functional/resources/views/livewire/profile/connected-accounts-form.blade.php', resource_path('views/livewire/profile/connected-accounts-form.blade.php')); | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Copy the Socialstream components to the app "resources" directory for the given stack. | ||
*/ | ||
protected function copySocialstreamComponents(InstallOptions ...$options): static | ||
{ | ||
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/breeze/default/resources/views/components/socialstream-icons', resource_path('views/components/socialstream-icons')); | ||
|
||
copy(__DIR__.'/../../../../stubs/breeze/default/resources/views/components/action-link.blade.php', resource_path('views/components/action-link.blade.php')); | ||
copy(__DIR__.'/../../../../stubs/breeze/default/resources/views/components/connected-account.blade.php', resource_path('views/components/connected-account.blade.php')); | ||
copy(__DIR__.'/../../../../stubs/breeze/livewire-common/resources/views/components/socialstream.blade.php', resource_path('views/components/socialstream.blade.php')); | ||
|
||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.