From d089d74b6e8c76cd56d1183ef171846680a96937 Mon Sep 17 00:00:00 2001 From: George Date: Sun, 21 Jul 2024 08:15:56 +0300 Subject: [PATCH] Switch from fortawesome to bootstrap-icons --- resources/install/resources/sass/app.scss.stub | 5 ++++- resources/install/resources/views/home.blade.php.stub | 10 +++++----- .../install/resources/views/welcome.blade.php.stub | 2 +- src/Commands/LivewireCrudGenerator.php | 2 +- src/stubs/views/view.stub | 8 ++++---- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/resources/install/resources/sass/app.scss.stub b/resources/install/resources/sass/app.scss.stub index abaa9d8..d759a59 100644 --- a/resources/install/resources/sass/app.scss.stub +++ b/resources/install/resources/sass/app.scss.stub @@ -1,7 +1,10 @@ +// Fonts +@import url('https://fonts.bunny.net/css?family=Nunito'); @import 'variables'; @import '~bootstrap/scss/bootstrap'; -@import '~@fortawesome/fontawesome-free/css/all.css'; +// Bootstrap Icons +@import 'bootstrap-icons/font/bootstrap-icons.css'; @import '../css/app.css'; \ No newline at end of file diff --git a/resources/install/resources/views/home.blade.php.stub b/resources/install/resources/views/home.blade.php.stub index 89dc62a..9dea863 100644 --- a/resources/install/resources/views/home.blade.php.stub +++ b/resources/install/resources/views/home.blade.php.stub @@ -5,7 +5,7 @@
-
@yield('title')
+
@yield('title')
Hi {{ Auth::user()->name }}, {{ __('You are logged in to ') }}{{ config('app.name', 'Laravel') }}

@@ -14,28 +14,28 @@
-
+

Flights

234

-
+

Baggage

9,332

-
+

Passengers

12,762

-
+

Users

{{ Auth::user()->count() }}

diff --git a/resources/install/resources/views/welcome.blade.php.stub b/resources/install/resources/views/welcome.blade.php.stub index c356219..940ac00 100644 --- a/resources/install/resources/views/welcome.blade.php.stub +++ b/resources/install/resources/views/welcome.blade.php.stub @@ -5,7 +5,7 @@
-
@yield('title')
+
@yield('title')
@guest diff --git a/src/Commands/LivewireCrudGenerator.php b/src/Commands/LivewireCrudGenerator.php index 8b8c4f9..943bd11 100644 --- a/src/Commands/LivewireCrudGenerator.php +++ b/src/Commands/LivewireCrudGenerator.php @@ -60,7 +60,7 @@ public function handle() $layoutFile = 'resources/views/layouts/app.blade.php'; $layoutContents = $this->filesystem->get($layoutFile); $navItemStub = "\t\t\t\t\t\t
  • - getNameInput()."') }}\" class=\"nav-link\"> ". ucfirst($this->getNameInput()) ." + getNameInput()."') }}\" class=\"nav-link\"> ". ucfirst($this->getNameInput()) ."
  • "; $navItemHook = ''; diff --git a/src/stubs/views/view.stub b/src/stubs/views/view.stub index 1d4886d..e6dfaff 100644 --- a/src/stubs/views/view.stub +++ b/src/stubs/views/view.stub @@ -6,7 +6,7 @@
    -

    +

    {{modelTitle}} Listing

    @@ -19,7 +19,7 @@
    - Add {{modelTitle}}s + Add {{modelTitle}}s
    @@ -43,8 +43,8 @@ Actions