From 4d3bb7eb589c345d6578ec0ed069fa18fe41487d Mon Sep 17 00:00:00 2001 From: Norman Huth Date: Sun, 19 Jun 2022 21:05:48 +0200 Subject: [PATCH] Add publish command --- README.md | 8 +- .../Nova/js/components/Cards/HelpCard.vue | 230 ++++++++++++++++++ .../Dropdowns/InlineActionDropdown.vue | 1 + .../Nova/js/components/ResourceTableRow.vue | 1 + resources/Nova/js/layouts/AppLayout.vue | 67 ----- resources/Nova/js/layouts/MainHeader.vue | 1 + src/Console/Commands/CustomAssetsCommand.php | 43 +++- src/Console/Commands/PublishCommand.php | 117 +++++++++ src/Helpers/Process.php | 40 +-- src/PackageServiceProvider.php | 2 + 10 files changed, 400 insertions(+), 110 deletions(-) create mode 100644 resources/Nova/js/components/Cards/HelpCard.vue delete mode 100644 resources/Nova/js/layouts/AppLayout.vue create mode 100644 src/Console/Commands/PublishCommand.php diff --git a/README.md b/README.md index b5f873e..f342f62 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Nova Assets Changer -This package is for Nova 4 and swaps the resources from the `resources/Nova/Nova` folder with those in the `vendor/laravel/nova/resources/js` folder. +This package is for Nova 4 and swaps the resources from the `resources/Nova/Nova` folder with those in the `vendor/laravel/nova/resources/js` folder or use the `php artisan custom-assets:publish` command. Then the assets are recompiled and published with the Force option. This package creates a backup of each file and prepare for changes @@ -21,6 +21,12 @@ Tip: You can replace `@php artisan nova:publish` with `@php artisan nova:custom- composer require norman-huth/nova-assets-changer --dev ``` +### Publish Nova Assets +``` +php artisan custom-assets:publish +``` + + ### Optional Publish example resources diff --git a/resources/Nova/js/components/Cards/HelpCard.vue b/resources/Nova/js/components/Cards/HelpCard.vue new file mode 100644 index 0000000..6417c58 --- /dev/null +++ b/resources/Nova/js/components/Cards/HelpCard.vue @@ -0,0 +1,230 @@ + + + + diff --git a/resources/Nova/js/components/Dropdowns/InlineActionDropdown.vue b/resources/Nova/js/components/Dropdowns/InlineActionDropdown.vue index a8425c4..46e7e5d 100644 --- a/resources/Nova/js/components/Dropdowns/InlineActionDropdown.vue +++ b/resources/Nova/js/components/Dropdowns/InlineActionDropdown.vue @@ -1,3 +1,4 @@ +