Skip to content

Commit

Permalink
Remove hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
emptynick committed Aug 28, 2021
1 parent 81ed543 commit 71fb39e
Show file tree
Hide file tree
Showing 26 changed files with 3 additions and 37 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"laravel/ui": ">=1.0",
"arrilot/laravel-widgets": "^3.7",
"league/flysystem": "~1.1|~2.0",
"larapack/voyager-hooks": "~1.2.1",
"ext-json": "*"
},
"require-dev": {
Expand Down
4 changes: 1 addition & 3 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ Route::group(['prefix' => 'admin'], function () {

Now run
`php artisan db:seed --class=VoyagerDatabaseSeeder`
to seed some necessary data to your database,
`php artisan hook:setup`
to install the hooks system, and
to seed some necessary data to your database, and
`php artisan storage:link`
to create the storage symlink to your public folder.

Expand Down
Binary file removed publishable/assets/images/compass/hooks.jpg
Binary file not shown.
1 change: 0 additions & 1 deletion publishable/lang/am/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Հղումներ',
'documentation' => 'Փաստաթղթեր',
'voyager_homepage' => 'Voyager Գլխավոր էջ',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Հրամաններ',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/bg/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
'title' => 'Линкове',
'documentation' => 'Документация',
'voyager_homepage' => 'Начална страница на Voyager',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Команди',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/ca/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
'title' => 'Links',
'documentation' => 'Documentació',
'voyager_homepage' => 'Pàgina de inici de Voyager',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Comandes',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/de/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Links',
'documentation' => 'Dokumentation',
'voyager_homepage' => 'Voyager Homepage',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Befehle',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/el/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
'title' => 'Σύνδεσμοι',
'documentation' => 'Τεκμηρίωση',
'voyager_homepage' => 'Αρχική σελίδα Voyager',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Εντολές',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/en/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Links',
'documentation' => 'Documentation',
'voyager_homepage' => 'Voyager Homepage',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Commands',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/es/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Enlaces',
'documentation' => 'Documentación',
'voyager_homepage' => 'Página de inicio de Voyager',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Comandos',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/fa/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
'title' => 'لینک ها',
'documentation' => 'راهنمای استفاده',
'voyager_homepage' => 'صفحه اصلی voyager',
'voyager_hooks' => 'هوک های voyager',
],
'commands' => [
'title' => 'دستورات',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/fr/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Liens',
'documentation' => 'Documentation',
'voyager_homepage' => 'Voyager Homepage',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Commandes',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/gl/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Enlaces',
'documentation' => 'Documentación',
'voyager_homepage' => 'Voyager Homepage',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Comandos',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/it/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Links',
'documentation' => 'Documentazione',
'voyager_homepage' => 'Voyager Homepage',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Comandi',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/ja/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'リンク',
'documentation' => 'ドキュメント(英語サイト)',
'voyager_homepage' => 'Voyager ホームページ (英語サイト)',
'voyager_hooks' => 'Voyager フック (英語サイト)',
],
'commands' => [
'title' => 'コマンド',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/ku/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'لینکەکان',
'documentation' => 'بەڵگەنامەکردن',
'voyager_homepage' => 'پەڕەی سەرەتای ڤۆیەیجەر (Voyager)',
'voyager_hooks' => 'هووکەکانی ڤۆیەیجەر (Voyager)',
],
'commands' => [
'title' => 'ناونیشان',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/pt_br/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Links',
'documentation' => 'Documentação',
'voyager_homepage' => 'Página Inicial do Voyager',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Comandos',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/ru/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Ссылки',
'documentation' => 'Документация',
'voyager_homepage' => 'Страница Voyager',
'voyager_hooks' => 'Хуки Voyager',
],
'commands' => [
'title' => 'Команды',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/sv/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Länkar',
'documentation' => 'Dokumentation',
'voyager_homepage' => 'Voyager Hemsida',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Kommandon',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/tr/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Bağlantılar',
'documentation' => 'Dokümantasyon',
'voyager_homepage' => 'Voyager Anasayfa',
'voyager_hooks' => 'Voyager Hookları',
],
'commands' => [
'title' => 'Komutlar',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/vi/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => 'Links',
'documentation' => 'Documentation',
'voyager_homepage' => 'Voyager Homepage',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => 'Commands',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/zh_CN/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
'title' => '链接',
'documentation' => '文档',
'voyager_homepage' => '官网',
'voyager_hooks' => 'Hooks',
],
'commands' => [
'title' => '命令',
Expand Down
1 change: 0 additions & 1 deletion publishable/lang/zh_TW/compass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
'title' => '連接',
'documentation' => '文件',
'voyager_homepage' => 'Voyager 官網',
'voyager_hooks' => 'Voyager Hooks',
],
'commands' => [
'title' => '指令',
Expand Down
9 changes: 2 additions & 7 deletions resources/views/compass/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,16 @@
</div>
<div class="collapse-content collapse in" id="links">
<div class="row">
<div class="col-md-4">
<div class="col-md-6">
<a href="https://voyager-docs.devdojo.com/" target="_blank" class="voyager-link" style="background-image:url('{{ voyager_asset('images/compass/documentation.jpg') }}')">
<span class="resource_label"><i class="voyager-documentation"></i> <span class="copy">{{ __('voyager::compass.links.documentation') }}</span></span>
</a>
</div>
<div class="col-md-4">
<div class="col-md-6">
<a href="https://voyager.devdojo.com/" target="_blank" class="voyager-link" style="background-image:url('{{ voyager_asset('images/compass/voyager-home.jpg') }}')">
<span class="resource_label"><i class="voyager-browser"></i> <span class="copy">{{ __('voyager::compass.links.voyager_homepage') }}</span></span>
</a>
</div>
<div class="col-md-4">
<a href="https://larapack.io" target="_blank" class="voyager-link" style="background-image:url('{{ voyager_asset('images/compass/hooks.jpg') }}')">
<span class="resource_label"><i class="voyager-hook"></i> <span class="copy">{{ __('voyager::compass.links.voyager_hooks') }}</span></span>
</a>
</div>
</div>
</div>
</div>
Expand Down
3 changes: 0 additions & 3 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ public function handle(Filesystem $filesystem)
$this->call('db:seed', ['--class' => 'VoyagerDummyDatabaseSeeder']);
}

$this->info('Setting up the hooks');
$this->call('hook:setup');

$this->info('Adding the storage symlink to your public folder');
$this->call('storage:link');

Expand Down
3 changes: 0 additions & 3 deletions src/VoyagerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Illuminate\Support\Str;
use Intervention\Image\ImageServiceProvider;
use Larapack\DoctrineSupport\DoctrineSupportServiceProvider;
use Larapack\VoyagerHooks\VoyagerHooksServiceProvider;
use TCG\Voyager\Events\FormFieldsRegistered;
use TCG\Voyager\Facades\Voyager as VoyagerFacade;
use TCG\Voyager\FormFields\After\DescriptionHandler;
Expand Down Expand Up @@ -50,7 +49,6 @@ class VoyagerServiceProvider extends ServiceProvider
'browse_database',
'browse_media',
'browse_compass',
'browse_hooks',
];

/**
Expand All @@ -61,7 +59,6 @@ public function register()
$this->app->register(VoyagerEventServiceProvider::class);
$this->app->register(ImageServiceProvider::class);
$this->app->register(VoyagerDummyServiceProvider::class);
$this->app->register(VoyagerHooksServiceProvider::class);
$this->app->register(DoctrineSupportServiceProvider::class);

$loader = AliasLoader::getInstance();
Expand Down

0 comments on commit 71fb39e

Please sign in to comment.