From 1e974ee61488ca8f8e7ba15a247b38f48d9d1d4b Mon Sep 17 00:00:00 2001 From: Rico van Zelst Date: Tue, 7 Nov 2023 20:30:35 +0100 Subject: [PATCH] upd: gitignore --- .gitignore | 2 + composer.json | 2 + composer.lock | 141 ++++++++++++++- config/blade-icons.php | 183 ++++++++++++++++++++ resources/views/components/navbar.blade.php | 83 +++++---- 5 files changed, 380 insertions(+), 31 deletions(-) create mode 100644 config/blade-icons.php diff --git a/.gitignore b/.gitignore index 7fe978f..d38ba36 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ yarn-error.log /.fleet /.idea /.vscode +_ide_helper.php +.phpstorm.meta.php diff --git a/composer.json b/composer.json index 02c7cef..564b0f8 100644 --- a/composer.json +++ b/composer.json @@ -7,12 +7,14 @@ "require": { "php": "^8.1", "anhskohbo/no-captcha": "^3.5", + "blade-ui-kit/blade-icons": "^1.5", "cviebrock/eloquent-sluggable": "^10.0", "dolejska-daniel/riot-api": "^5", "guzzlehttp/guzzle": "^7.2", "laravel/framework": "^10.10", "laravel/sanctum": "^3.2", "laravel/tinker": "^2.8", + "saade/blade-iconsax": "^1.1", "spatie/laravel-backup": "^8.3" }, "require-dev": { diff --git a/composer.lock b/composer.lock index bf29e1f..ebb407f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0cd7fe5abd8a75018d8e32389c6d2e83", + "content-hash": "3cf6f4de24fb85d3c45a641a3d4e7b73", "packages": [ { "name": "anhskohbo/no-captcha", @@ -70,6 +70,87 @@ }, "time": "2023-02-15T16:07:08+00:00" }, + { + "name": "blade-ui-kit/blade-icons", + "version": "1.5.3", + "source": { + "type": "git", + "url": "https://github.com/blade-ui-kit/blade-icons.git", + "reference": "b5e6603218e2347ac81cb780bc6f71c8c3b31f5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/blade-ui-kit/blade-icons/zipball/b5e6603218e2347ac81cb780bc6f71c8c3b31f5b", + "reference": "b5e6603218e2347ac81cb780bc6f71c8c3b31f5b", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^8.0|^9.0|^10.0", + "illuminate/filesystem": "^8.0|^9.0|^10.0", + "illuminate/support": "^8.0|^9.0|^10.0", + "illuminate/view": "^8.0|^9.0|^10.0", + "php": "^7.4|^8.0", + "symfony/console": "^5.3|^6.0", + "symfony/finder": "^5.3|^6.0" + }, + "require-dev": { + "mockery/mockery": "^1.3", + "orchestra/testbench": "^6.0|^7.0|^8.0", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/blade-icons-generate" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "BladeUI\\Icons\\BladeIconsServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "BladeUI\\Icons\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dries Vints", + "homepage": "https://driesvints.com" + } + ], + "description": "A package to easily make use of icons in your Laravel Blade views.", + "homepage": "https://github.com/blade-ui-kit/blade-icons", + "keywords": [ + "blade", + "icons", + "laravel", + "svg" + ], + "support": { + "issues": "https://github.com/blade-ui-kit/blade-icons/issues", + "source": "https://github.com/blade-ui-kit/blade-icons" + }, + "funding": [ + { + "url": "https://github.com/sponsors/driesvints", + "type": "github" + }, + { + "url": "https://www.paypal.com/paypalme/driesvints", + "type": "paypal" + } + ], + "time": "2023-10-18T10:50:13+00:00" + }, { "name": "brick/math", "version": "0.11.0", @@ -3618,6 +3699,64 @@ ], "time": "2023-04-15T23:01:58+00:00" }, + { + "name": "saade/blade-iconsax", + "version": "v1.1.0", + "source": { + "type": "git", + "url": "https://github.com/saade/blade-iconsax.git", + "reference": "61ee556799b7888b892a0c4d49325b5d0693f9aa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/saade/blade-iconsax/zipball/61ee556799b7888b892a0c4d49325b5d0693f9aa", + "reference": "61ee556799b7888b892a0c4d49325b5d0693f9aa", + "shasum": "" + }, + "require": { + "blade-ui-kit/blade-icons": "^1.1", + "illuminate/support": "^9.0|^10.0", + "php": "^8.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0", + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Saade\\BladeIconsax\\BladeIconsaxServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Saade\\BladeIconsax\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Saade" + } + ], + "description": "A package to easily make use of Iconsax in your Laravel Blade views.", + "homepage": "https://github.com/saade/blade-iconsax", + "keywords": [ + "Iconsax", + "blade", + "laravel" + ], + "support": { + "issues": "https://github.com/saade/blade-iconsax/issues", + "source": "https://github.com/saade/blade-iconsax/tree/v1.1.0" + }, + "time": "2023-02-17T13:23:26+00:00" + }, { "name": "spatie/db-dumper", "version": "3.4.0", diff --git a/config/blade-icons.php b/config/blade-icons.php new file mode 100644 index 0000000..5aade2a --- /dev/null +++ b/config/blade-icons.php @@ -0,0 +1,183 @@ + [ + + // 'default' => [ + // + // /* + // |----------------------------------------------------------------- + // | Icons Path + // |----------------------------------------------------------------- + // | + // | Provide the relative path from your app root to your SVG icons + // | directory. Icons are loaded recursively so there's no need to + // | list every sub-directory. + // | + // | Relative to the disk root when the disk option is set. + // | + // */ + // + // 'path' => 'resources/svg', + // + // /* + // |----------------------------------------------------------------- + // | Filesystem Disk + // |----------------------------------------------------------------- + // | + // | Optionally, provide a specific filesystem disk to read + // | icons from. When defining a disk, the "path" option + // | starts relatively from the disk root. + // | + // */ + // + // 'disk' => '', + // + // /* + // |----------------------------------------------------------------- + // | Default Prefix + // |----------------------------------------------------------------- + // | + // | This config option allows you to define a default prefix for + // | your icons. The dash separator will be applied automatically + // | to every icon name. It's required and needs to be unique. + // | + // */ + // + // 'prefix' => 'icon', + // + // /* + // |----------------------------------------------------------------- + // | Fallback Icon + // |----------------------------------------------------------------- + // | + // | This config option allows you to define a fallback + // | icon when an icon in this set cannot be found. + // | + // */ + // + // 'fallback' => '', + // + // /* + // |----------------------------------------------------------------- + // | Default Set Classes + // |----------------------------------------------------------------- + // | + // | This config option allows you to define some classes which + // | will be applied by default to all icons within this set. + // | + // */ + // + // 'class' => '', + // + // /* + // |----------------------------------------------------------------- + // | Default Set Attributes + // |----------------------------------------------------------------- + // | + // | This config option allows you to define some attributes which + // | will be applied by default to all icons within this set. + // | + // */ + // + // 'attributes' => [ + // // 'width' => 50, + // // 'height' => 50, + // ], + // + // ], + + ], + + /* + |-------------------------------------------------------------------------- + | Global Default Classes + |-------------------------------------------------------------------------- + | + | This config option allows you to define some classes which + | will be applied by default to all icons. + | + */ + + 'class' => '', + + /* + |-------------------------------------------------------------------------- + | Global Default Attributes + |-------------------------------------------------------------------------- + | + | This config option allows you to define some attributes which + | will be applied by default to all icons. + | + */ + + 'attributes' => [ + // 'width' => 50, + // 'height' => 50, + ], + + /* + |-------------------------------------------------------------------------- + | Global Fallback Icon + |-------------------------------------------------------------------------- + | + | This config option allows you to define a global fallback + | icon when an icon in any set cannot be found. It can + | reference any icon from any configured set. + | + */ + + 'fallback' => '', + + /* + |-------------------------------------------------------------------------- + | Components + |-------------------------------------------------------------------------- + | + | These config options allow you to define some + | settings related to Blade Components. + | + */ + + 'components' => [ + + /* + |---------------------------------------------------------------------- + | Disable Components + |---------------------------------------------------------------------- + | + | This config option allows you to disable Blade components + | completely. It's useful to avoid performance problems + | when working with large icon libraries. + | + */ + + 'disabled' => false, + + /* + |---------------------------------------------------------------------- + | Default Icon Component Name + |---------------------------------------------------------------------- + | + | This config option allows you to define the name + | for the default Icon class component. + | + */ + + 'default' => 'icon', + + ], + +]; diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php index 5ab2467..b328089 100644 --- a/resources/views/components/navbar.blade.php +++ b/resources/views/components/navbar.blade.php @@ -6,7 +6,9 @@ Home