🍱 Ajoute les icones Bootstrap

This commit is contained in:
Clement 2020-07-27 16:15:43 +02:00
parent fdcc1de825
commit 842aae0094
5 changed files with 58 additions and 1 deletions

View File

@ -0,0 +1,47 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class SymlinkToSVGIconCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'app:svgsymlink';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Add SVG Symlink';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$target = base_path('node_modules/bootstrap-icons/bootstrap-icons.svg');
$link = public_path('images/bootstrap-icons.svg');
if (file_exists($link)) {
unlink($link);
}
return (int) !symlink($target, $link);
}
}

View File

@ -58,7 +58,8 @@
"scripts": { "scripts": {
"post-autoload-dump": [ "post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi" "@php artisan package:discover --ansi",
"@php artisan app:svgsymlink"
], ],
"post-root-package-install": [ "post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""

5
package-lock.json generated
View File

@ -1854,6 +1854,11 @@
"integrity": "sha512-Z93QoXvodoVslA+PWNdk23Hze4RBYIkpb5h8I2HY2Tu2h7A0LpAgLcyrhrSUyo2/Oxm2l1fRZPs1e5hnxnliXA==", "integrity": "sha512-Z93QoXvodoVslA+PWNdk23Hze4RBYIkpb5h8I2HY2Tu2h7A0LpAgLcyrhrSUyo2/Oxm2l1fRZPs1e5hnxnliXA==",
"dev": true "dev": true
}, },
"bootstrap-icons": {
"version": "1.0.0-alpha5",
"resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.0.0-alpha5.tgz",
"integrity": "sha512-sQp4UESHOpN7UlkEUJmY4G8gmU4beTCv24azmOtN1vMSWTOuUZttB0269RD93JIjd4KmWb93MJaXjC6cAV5jiQ=="
},
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",

View File

@ -22,5 +22,8 @@
"sass-loader": "^8.0.0", "sass-loader": "^8.0.0",
"vue": "^2.5.17", "vue": "^2.5.17",
"vue-template-compiler": "^2.6.10" "vue-template-compiler": "^2.6.10"
},
"dependencies": {
"bootstrap-icons": "^1.0.0-alpha5"
} }
} }

View File

@ -0,0 +1 @@
/var/www/html/dev/my-home-collection/node_modules/bootstrap-icons/bootstrap-icons.svg