From 663571b1257d80ef597923a984f64dd3f2341d10 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 27 Jun 2024 14:50:26 -0400 Subject: [PATCH] work in progress --- resources/views/blade-icons/index.blade.php | 6 +-- resources/views/blade-icons/show.blade.php | 45 ++++++++++++++----- resources/views/components/layout.blade.php | 8 ++-- .../views/livewire/icon-search.blade.php | 22 ++++----- 4 files changed, 51 insertions(+), 30 deletions(-) diff --git a/resources/views/blade-icons/index.blade.php b/resources/views/blade-icons/index.blade.php index 6677e5f..5f7aed9 100644 --- a/resources/views/blade-icons/index.blade.php +++ b/resources/views/blade-icons/index.blade.php @@ -1,6 +1,6 @@
-
+
Search for an icon @@ -11,9 +11,9 @@
- - + {{-- --}} diff --git a/resources/views/blade-icons/show.blade.php b/resources/views/blade-icons/show.blade.php index 6b311b4..e706622 100644 --- a/resources/views/blade-icons/show.blade.php +++ b/resources/views/blade-icons/show.blade.php @@ -1,6 +1,6 @@ -
+
{{ $icon->set->name }} @@ -9,39 +9,60 @@
/ {{ $icon->name }}
-
-
- {{ svg($icon->name, 'w-64 h-64') }} +
+
+ {{ svg($icon->name, 'w-64 h-64') }}
-
+
- Install through composer + Use for a bookmark ``` - composer require {{ $icon->set->composer }} +{{ $icon->name }}
+ @if(auth()->user()->type === \App\Models\UserType::SuperAdmin) +
+ Use outside of blade + ``` +' ?> + "@@vite(['resources/css/app.css', 'resources/js/app.js'])" " ?> + +``` +' ?> + "@@svg('name ?>')" " ?> + +
+ +
+ Use it with blade + ``` +' ?> +@@vite(['resources/css/app.css', 'resources/js/app.js']) + +
Use it as a component ``` - name }} /> +name }} />
Use it as a directive ``` - @@svg('name ?>') +@@svg('name ?>')
Use it with a helper ``` - {{ svg('name ?>') }} +{{ svg('name ?>') }}
+@endif
@@ -51,7 +72,7 @@ Similar icons -
+
@foreach ($icons as $icon)
- + {{-- --}} diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index 9c50a1b..fc864b1 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -10,13 +10,13 @@ {{ $head ?? '' }} - {{-- @livewireStyles - @bukStyles --}} + {{-- @livewireStyles --}} + {{-- @bukStyles --}} {{ $slot }} - {{-- @livewireScripts - @bukScripts --}} + {{-- @livewireScripts --}} + {{-- @bukScripts --}} diff --git a/resources/views/livewire/icon-search.blade.php b/resources/views/livewire/icon-search.blade.php index 57815eb..a4eae36 100644 --- a/resources/views/livewire/icon-search.blade.php +++ b/resources/views/livewire/icon-search.blade.php @@ -1,10 +1,10 @@
-
-
+
+
-
- +
+
@@ -28,19 +28,19 @@ class="block w-full p-4 text-xl border-0 rounded-lg" spellcheck="false" type="text" placeholder="Search all {{ number_format($total) }} Blade icons ..." - wire:model.debounce.400ms="search" + wire:model.live.debounce.400ms="search" >
- +
@@ -56,7 +56,7 @@ class="block w-full p-4 text-xl border-0 rounded-lg" @endif -
+
@foreach ($icons as $icon)