From 442260b7bba0eae528a426eb708b7c45fac6f505 Mon Sep 17 00:00:00 2001 From: David VanScott Date: Mon, 22 Apr 2024 23:29:55 -0400 Subject: [PATCH] Remove extensions --- .../CustomIconSet/icons => }/.gitkeep | 0 .../BootstrapIconSet/BootstrapIconSet.php | 35 ------ .../BootstrapIconSet/ServiceProvider.php | 25 ----- .../BootstrapIconSet/icons/eye-slash.svg | 6 - .../Anodyne/BootstrapIconSet/icons/eye.svg | 4 - .../Anodyne/CustomIconSet/CustomIconSet.php | 35 ------ .../Anodyne/CustomIconSet/ServiceProvider.php | 25 ----- extensions/Anodyne/CustomIconSet/readme.md | 106 ------------------ .../FontAwesomeSolidIconSet.php | 35 ------ .../ServiceProvider.php | 25 ----- .../FontAwesomeSolidIconSet/icons/bell.svg | 1 - .../icons/book-open.svg | 1 - .../icons/eye-slash.svg | 1 - .../FontAwesomeSolidIconSet/icons/eye.svg | 1 - .../FontAwesomeSolidIconSet/icons/search.svg | 1 - .../icons/tachometer-alt.svg | 1 - .../FontAwesomeSolidIconSet/icons/window.svg | 1 - .../MaterialDesignIconSet.php | 35 ------ .../MaterialDesignIconSet/ServiceProvider.php | 25 ----- .../icons/application.svg | 1 - .../icons/bell-outline.svg | 1 - .../icons/book-open-page-variant.svg | 1 - .../MaterialDesignIconSet/icons/eye-off.svg | 1 - .../MaterialDesignIconSet/icons/eye.svg | 1 - .../MaterialDesignIconSet/icons/gauge.svg | 1 - .../MaterialDesignIconSet/icons/magnify.svg | 1 - 26 files changed, 370 deletions(-) rename extensions/{Anodyne/CustomIconSet/icons => }/.gitkeep (100%) delete mode 100644 extensions/Anodyne/BootstrapIconSet/BootstrapIconSet.php delete mode 100644 extensions/Anodyne/BootstrapIconSet/ServiceProvider.php delete mode 100644 extensions/Anodyne/BootstrapIconSet/icons/eye-slash.svg delete mode 100644 extensions/Anodyne/BootstrapIconSet/icons/eye.svg delete mode 100644 extensions/Anodyne/CustomIconSet/CustomIconSet.php delete mode 100644 extensions/Anodyne/CustomIconSet/ServiceProvider.php delete mode 100644 extensions/Anodyne/CustomIconSet/readme.md delete mode 100644 extensions/Anodyne/FontAwesomeSolidIconSet/FontAwesomeSolidIconSet.php delete mode 100644 extensions/Anodyne/FontAwesomeSolidIconSet/ServiceProvider.php delete mode 100644 extensions/Anodyne/FontAwesomeSolidIconSet/icons/bell.svg delete mode 100644 extensions/Anodyne/FontAwesomeSolidIconSet/icons/book-open.svg delete mode 100644 extensions/Anodyne/FontAwesomeSolidIconSet/icons/eye-slash.svg delete mode 100644 extensions/Anodyne/FontAwesomeSolidIconSet/icons/eye.svg delete mode 100644 extensions/Anodyne/FontAwesomeSolidIconSet/icons/search.svg delete mode 100644 extensions/Anodyne/FontAwesomeSolidIconSet/icons/tachometer-alt.svg delete mode 100644 extensions/Anodyne/FontAwesomeSolidIconSet/icons/window.svg delete mode 100644 extensions/Anodyne/MaterialDesignIconSet/MaterialDesignIconSet.php delete mode 100644 extensions/Anodyne/MaterialDesignIconSet/ServiceProvider.php delete mode 100644 extensions/Anodyne/MaterialDesignIconSet/icons/application.svg delete mode 100644 extensions/Anodyne/MaterialDesignIconSet/icons/bell-outline.svg delete mode 100644 extensions/Anodyne/MaterialDesignIconSet/icons/book-open-page-variant.svg delete mode 100644 extensions/Anodyne/MaterialDesignIconSet/icons/eye-off.svg delete mode 100644 extensions/Anodyne/MaterialDesignIconSet/icons/eye.svg delete mode 100644 extensions/Anodyne/MaterialDesignIconSet/icons/gauge.svg delete mode 100644 extensions/Anodyne/MaterialDesignIconSet/icons/magnify.svg diff --git a/extensions/Anodyne/CustomIconSet/icons/.gitkeep b/extensions/.gitkeep similarity index 100% rename from extensions/Anodyne/CustomIconSet/icons/.gitkeep rename to extensions/.gitkeep diff --git a/extensions/Anodyne/BootstrapIconSet/BootstrapIconSet.php b/extensions/Anodyne/BootstrapIconSet/BootstrapIconSet.php deleted file mode 100644 index eefed9f41..000000000 --- a/extensions/Anodyne/BootstrapIconSet/BootstrapIconSet.php +++ /dev/null @@ -1,35 +0,0 @@ - '', - 'alert' => '', - 'book' => '', - 'check' => '', - 'hide' => 'eye-slash', - 'notification' => '', - 'search' => '', - 'show' => 'eye', - 'sidebar' => '', - ]; - } - - public function name(): string - { - return 'Bootstrap'; - } - - public function prefix(): string - { - return 'bootstrap'; - } -} diff --git a/extensions/Anodyne/BootstrapIconSet/ServiceProvider.php b/extensions/Anodyne/BootstrapIconSet/ServiceProvider.php deleted file mode 100644 index fb769e024..000000000 --- a/extensions/Anodyne/BootstrapIconSet/ServiceProvider.php +++ /dev/null @@ -1,25 +0,0 @@ -app->make(Factory::class)->add($set->prefix(), [ - 'path' => __DIR__.'/icons', - 'prefix' => $set->prefix(), - 'class' => 'fill-current', - ]); - - $this->app->make(IconSets::class)->add($set->prefix(), $set); - } -} diff --git a/extensions/Anodyne/BootstrapIconSet/icons/eye-slash.svg b/extensions/Anodyne/BootstrapIconSet/icons/eye-slash.svg deleted file mode 100644 index ec2155975..000000000 --- a/extensions/Anodyne/BootstrapIconSet/icons/eye-slash.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/extensions/Anodyne/BootstrapIconSet/icons/eye.svg b/extensions/Anodyne/BootstrapIconSet/icons/eye.svg deleted file mode 100644 index b05e64d09..000000000 --- a/extensions/Anodyne/BootstrapIconSet/icons/eye.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/extensions/Anodyne/CustomIconSet/CustomIconSet.php b/extensions/Anodyne/CustomIconSet/CustomIconSet.php deleted file mode 100644 index 356815067..000000000 --- a/extensions/Anodyne/CustomIconSet/CustomIconSet.php +++ /dev/null @@ -1,35 +0,0 @@ - '', - 'alert' => '', - 'book' => '', - 'check' => '', - 'hide' => '', - 'notification' => '', - 'search' => '', - 'show' => '', - 'sidebar' => '', - ]; - } - - public function name(): string - { - return 'Custom'; - } - - public function prefix(): string - { - return 'custom'; - } -} diff --git a/extensions/Anodyne/CustomIconSet/ServiceProvider.php b/extensions/Anodyne/CustomIconSet/ServiceProvider.php deleted file mode 100644 index 7f0937291..000000000 --- a/extensions/Anodyne/CustomIconSet/ServiceProvider.php +++ /dev/null @@ -1,25 +0,0 @@ -app->make(Factory::class)->add($set->prefix(), [ - 'path' => __DIR__.'/icons', - 'prefix' => $set->prefix(), - 'class' => 'fill-current', - ]); - - $this->app->make(IconSets::class)->add($set->prefix(), $set); - } -} diff --git a/extensions/Anodyne/CustomIconSet/readme.md b/extensions/Anodyne/CustomIconSet/readme.md deleted file mode 100644 index 40489e7ec..000000000 --- a/extensions/Anodyne/CustomIconSet/readme.md +++ /dev/null @@ -1,106 +0,0 @@ -# Custom Icon Set - -To demonstrate how to create a custom icon set to use in Nova 3, we're going to create a new icon set called Nova and step through the procedures one-by-one. - -## Upload the files - -1. Rename the `CustomIconSet` folder that you unzipped to the name of the icon set to `NovaIconSet`. -2. Upload the `NovaIconSet` folder to your `extensions` directory on the server. (Be mindful of casing and it will be very important in the next steps!) - -_Note:_ We actually recommend storing your extensions in a unique folder name, often referred to as a "vendor" folder. For example, Anodyne extensions will instruct you to upload the extension to an `Anodyne` folder within your `extensions` directory. - -## Update the icon set class - -Next, we need to update the class in the extension to work with where you've uploaded the files. - -1. Rename the `CustomIconSet.php` file to `NovaIconSet.php`. -2. Update the namespace in `NovaIconSet.php` to match the file structure where the extension lives. For example, if we were to add it a directory called `Acme`, the new namespace would be `Extensions\Acme\NovaIconSet`. -3. Update the name of the class in `NovaIconSet.php` to `NovaIconSet`. -4. Update the value in the `name` method to `Nova icons`. -5. Update the value in the `prefix` method `nova`. It's important that this is unique to other icon sets. -3. Save the file (and ensure it's been uploaded to the server). - -## Update the service provider - -Next, we need to update the service provider to ensure everything is wired up properly. - -1. Update the namespace in `ServiceProvider.php` to match the namespace you set in the previous file. -2. In the `boot` method, update the class that's created to be `NovaIconSet`. -3. Save the file (and ensure it's been uploaded to the server). - -## Adding icons - -The icon set class defines a method called `map` which helps Nova map what it calls an icon to what the actual filename is. You'll need to go through this list and update all of the items in the map as you copy the icon files into the `icons` directory. - -### Fill vs stroke icons - - - -## Final NovaIconSet class - -```php - '', - 'book' => '', - 'hide' => '', - 'notification' => '', - 'search' => '', - 'show' => '', - 'sidebar' => '', - ]; - } - - public function name(): string - { - return 'Nova icons'; - } - - public function prefix(): string - { - return 'nova'; - } -} -``` - -## Final ServiceProvider class - -```php -app->make(Factory::class)->add($set->prefix(), [ - 'path' => __DIR__ . '/icons', - 'prefix' => $set->prefix(), - 'class' => 'fill-current', - ]); - - $this->app->make(IconSets::class)->add($set->prefix(), $set); - } -} -``` \ No newline at end of file diff --git a/extensions/Anodyne/FontAwesomeSolidIconSet/FontAwesomeSolidIconSet.php b/extensions/Anodyne/FontAwesomeSolidIconSet/FontAwesomeSolidIconSet.php deleted file mode 100644 index d96542330..000000000 --- a/extensions/Anodyne/FontAwesomeSolidIconSet/FontAwesomeSolidIconSet.php +++ /dev/null @@ -1,35 +0,0 @@ - 'tachometer-alt', - 'alert' => 'alert-circle', - 'book' => 'book-open', - 'check' => 'check-circle', - 'hide' => 'eye-slash', - 'notification' => 'bell', - 'search' => 'search', - 'show' => 'eye', - 'sidebar' => 'window', - ]; - } - - public function name(): string - { - return 'Font Awesome Solid'; - } - - public function prefix(): string - { - return 'fas'; - } -} diff --git a/extensions/Anodyne/FontAwesomeSolidIconSet/ServiceProvider.php b/extensions/Anodyne/FontAwesomeSolidIconSet/ServiceProvider.php deleted file mode 100644 index 846b7d745..000000000 --- a/extensions/Anodyne/FontAwesomeSolidIconSet/ServiceProvider.php +++ /dev/null @@ -1,25 +0,0 @@ -app->make(Factory::class)->add($set->prefix(), [ - 'path' => __DIR__.'/icons', - 'prefix' => $set->prefix(), - 'class' => 'fill-current', - ]); - - $this->app->make(IconSets::class)->add($set->prefix(), $set); - } -} diff --git a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/bell.svg b/extensions/Anodyne/FontAwesomeSolidIconSet/icons/bell.svg deleted file mode 100644 index e45be58cf..000000000 --- a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/bell.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/book-open.svg b/extensions/Anodyne/FontAwesomeSolidIconSet/icons/book-open.svg deleted file mode 100644 index 342917db5..000000000 --- a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/book-open.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/eye-slash.svg b/extensions/Anodyne/FontAwesomeSolidIconSet/icons/eye-slash.svg deleted file mode 100644 index 7685eca24..000000000 --- a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/eye-slash.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/eye.svg b/extensions/Anodyne/FontAwesomeSolidIconSet/icons/eye.svg deleted file mode 100644 index 477e9ed9d..000000000 --- a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/eye.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/search.svg b/extensions/Anodyne/FontAwesomeSolidIconSet/icons/search.svg deleted file mode 100644 index 865b962e2..000000000 --- a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/search.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/tachometer-alt.svg b/extensions/Anodyne/FontAwesomeSolidIconSet/icons/tachometer-alt.svg deleted file mode 100644 index 977e1e9ff..000000000 --- a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/tachometer-alt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/window.svg b/extensions/Anodyne/FontAwesomeSolidIconSet/icons/window.svg deleted file mode 100644 index b8de26037..000000000 --- a/extensions/Anodyne/FontAwesomeSolidIconSet/icons/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/MaterialDesignIconSet/MaterialDesignIconSet.php b/extensions/Anodyne/MaterialDesignIconSet/MaterialDesignIconSet.php deleted file mode 100644 index 6901fbd10..000000000 --- a/extensions/Anodyne/MaterialDesignIconSet/MaterialDesignIconSet.php +++ /dev/null @@ -1,35 +0,0 @@ - 'gauge', - 'alert' => '', - 'book' => 'book-open-page-variant', - 'check' => '', - 'hide' => 'eye-off', - 'notification' => 'bell-outline', - 'search' => 'magnify', - 'show' => 'eye', - 'sidebar' => 'application', - ]; - } - - public function name(): string - { - return 'Material Design'; - } - - public function prefix(): string - { - return 'mdi'; - } -} diff --git a/extensions/Anodyne/MaterialDesignIconSet/ServiceProvider.php b/extensions/Anodyne/MaterialDesignIconSet/ServiceProvider.php deleted file mode 100644 index 780a8c7a2..000000000 --- a/extensions/Anodyne/MaterialDesignIconSet/ServiceProvider.php +++ /dev/null @@ -1,25 +0,0 @@ -app->make(Factory::class)->add($set->prefix(), [ - 'path' => __DIR__.'/icons', - 'prefix' => $set->prefix(), - 'class' => 'fill-current', - ]); - - $this->app->make(IconSets::class)->add($set->prefix(), $set); - } -} diff --git a/extensions/Anodyne/MaterialDesignIconSet/icons/application.svg b/extensions/Anodyne/MaterialDesignIconSet/icons/application.svg deleted file mode 100644 index 743dceb59..000000000 --- a/extensions/Anodyne/MaterialDesignIconSet/icons/application.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/MaterialDesignIconSet/icons/bell-outline.svg b/extensions/Anodyne/MaterialDesignIconSet/icons/bell-outline.svg deleted file mode 100644 index b67eea4d5..000000000 --- a/extensions/Anodyne/MaterialDesignIconSet/icons/bell-outline.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/MaterialDesignIconSet/icons/book-open-page-variant.svg b/extensions/Anodyne/MaterialDesignIconSet/icons/book-open-page-variant.svg deleted file mode 100644 index 695c1aa60..000000000 --- a/extensions/Anodyne/MaterialDesignIconSet/icons/book-open-page-variant.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/MaterialDesignIconSet/icons/eye-off.svg b/extensions/Anodyne/MaterialDesignIconSet/icons/eye-off.svg deleted file mode 100644 index 38c541c41..000000000 --- a/extensions/Anodyne/MaterialDesignIconSet/icons/eye-off.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/MaterialDesignIconSet/icons/eye.svg b/extensions/Anodyne/MaterialDesignIconSet/icons/eye.svg deleted file mode 100644 index 1c6ff97f8..000000000 --- a/extensions/Anodyne/MaterialDesignIconSet/icons/eye.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/MaterialDesignIconSet/icons/gauge.svg b/extensions/Anodyne/MaterialDesignIconSet/icons/gauge.svg deleted file mode 100644 index d101b1198..000000000 --- a/extensions/Anodyne/MaterialDesignIconSet/icons/gauge.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/extensions/Anodyne/MaterialDesignIconSet/icons/magnify.svg b/extensions/Anodyne/MaterialDesignIconSet/icons/magnify.svg deleted file mode 100644 index 8532cdce0..000000000 --- a/extensions/Anodyne/MaterialDesignIconSet/icons/magnify.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file