diff --git a/app/Filament/Dashboard/Resources/CollectionResource/RelationManagers/EntriesRelationManager.php b/app/Filament/Dashboard/Resources/CollectionResource/RelationManagers/EntriesRelationManager.php index a9035583..81851b96 100644 --- a/app/Filament/Dashboard/Resources/CollectionResource/RelationManagers/EntriesRelationManager.php +++ b/app/Filament/Dashboard/Resources/CollectionResource/RelationManagers/EntriesRelationManager.php @@ -2,7 +2,7 @@ namespace App\Filament\Dashboard\Resources\CollectionResource\RelationManagers; -use App\Filament\Imports\EntryImporter; +use App\Filament\Dashboard\Imports\EntryImporter; use Filament\Forms; use Filament\Forms\Form; use Filament\Infolists\Components\ImageEntry; diff --git a/app/Filament/Pages/Dashboard.php b/app/Filament/Pages/Dashboard.php index 4ebe11b2..1873a896 100644 --- a/app/Filament/Pages/Dashboard.php +++ b/app/Filament/Pages/Dashboard.php @@ -6,10 +6,12 @@ class Dashboard extends \Filament\Pages\Dashboard { - protected static ?string $navigationIcon = 'heroicon-o-home'; + protected static ?string $navigationIcon = 'heroicon-s-cog'; protected static string $view = 'filament.pages.dashboard'; + protected static ?string $title = 'Control Panel'; + public function getHeaderWidgets(): array { return [ diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index 40f03ec1..aa8eece0 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -18,9 +18,9 @@ use Illuminate\Session\Middleware\AuthenticateSession; use Illuminate\Session\Middleware\StartSession; use Illuminate\View\Middleware\ShareErrorsFromSession; -use pxlrbt\FilamentEnvironmentIndicator\EnvironmentIndicatorPlugin; use ShuvroRoy\FilamentSpatieLaravelBackup\FilamentSpatieLaravelBackupPlugin; use Stephenjude\FilamentDebugger\DebuggerPlugin; +use pxlrbt\FilamentSpotlight\SpotlightPlugin; class AdminPanelProvider extends PanelProvider { @@ -46,12 +46,7 @@ public function panel(Panel $panel): Panel FilamentExceptionsPlugin::make(), DebuggerPlugin::make(), FilamentSpatieLaravelBackupPlugin::make(), - EnvironmentIndicatorPlugin::make() - ->color(fn () => match (app()->environment()) { - 'production' => null, - 'staging' => Color::Orange, - default => Color::Red, - }), + SpotlightPlugin::make(), ]) ->middleware([ EncryptCookies::class, diff --git a/app/Providers/Filament/DashboardPanelProvider.php b/app/Providers/Filament/DashboardPanelProvider.php index f760af74..9334c986 100644 --- a/app/Providers/Filament/DashboardPanelProvider.php +++ b/app/Providers/Filament/DashboardPanelProvider.php @@ -17,6 +17,7 @@ use Illuminate\Session\Middleware\AuthenticateSession; use Illuminate\Session\Middleware\StartSession; use Illuminate\View\Middleware\ShareErrorsFromSession; +use pxlrbt\FilamentSpotlight\SpotlightPlugin; class DashboardPanelProvider extends PanelProvider { @@ -33,6 +34,9 @@ public function panel(Panel $panel): Panel ->pages([ Pages\Dashboard::class, ]) + ->plugins([ + SpotlightPlugin::make() + ]) ->discoverWidgets(in: app_path('Filament/Dashboard/Widgets'), for: 'App\\Filament\\Dashboard\\Widgets') ->widgets([ Widgets\AccountWidget::class, diff --git a/composer.json b/composer.json index 9d5a7ba1..3a154f2f 100644 --- a/composer.json +++ b/composer.json @@ -25,12 +25,11 @@ "livewire/livewire": "^3.0", "owen-it/laravel-auditing": "^13.6", "predis/predis": "^2.2", - "pxlrbt/filament-environment-indicator": "^2.0", + "pxlrbt/filament-spotlight": "^1.2", "shuvroroy/filament-spatie-laravel-backup": "^2.1", "spatie/laravel-backup": "^8.6", "spatie/laravel-cookie-consent": "^3.3", "spatie/laravel-permission": "^6.3", - "spatie/laravel-support-bubble": "^1.5", "stechstudio/filament-impersonate": "*", "stephenjude/filament-debugger": "^3.0", "tapp/filament-auditing": "^3.0" diff --git a/composer.lock b/composer.lock index 26a4ac03..0e62df49 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": "71ae1742cf9e56d5ebba46eace424b92", + "content-hash": "03b6c559fcbbca910e493a6165ac2ecf", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -128,16 +128,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.303.3", + "version": "3.304.0", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "3389ceccdc8e78d38bf60c6648d7da9768a86d9b" + "reference": "29a79bac02997f3053559f6961a0e83622a14f88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3389ceccdc8e78d38bf60c6648d7da9768a86d9b", - "reference": "3389ceccdc8e78d38bf60c6648d7da9768a86d9b", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/29a79bac02997f3053559f6961a0e83622a14f88", + "reference": "29a79bac02997f3053559f6961a0e83622a14f88", "shasum": "" }, "require": { @@ -217,9 +217,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.303.3" + "source": "https://github.com/aws/aws-sdk-php/tree/3.304.0" }, - "time": "2024-04-04T18:11:56+00:00" + "time": "2024-04-08T18:03:38+00:00" }, { "name": "bacon/bacon-qr-code", @@ -1871,16 +1871,16 @@ }, { "name": "filament/actions", - "version": "v3.2.62", + "version": "v3.2.63", "source": { "type": "git", "url": "https://github.com/filamentphp/actions.git", - "reference": "1a177564e1f707315ac9aee7cc4d345fbc1ea37e" + "reference": "03da7f930763c60b7917f93e6657fb9bf9f8234b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/actions/zipball/1a177564e1f707315ac9aee7cc4d345fbc1ea37e", - "reference": "1a177564e1f707315ac9aee7cc4d345fbc1ea37e", + "url": "https://api.github.com/repos/filamentphp/actions/zipball/03da7f930763c60b7917f93e6657fb9bf9f8234b", + "reference": "03da7f930763c60b7917f93e6657fb9bf9f8234b", "shasum": "" }, "require": { @@ -1920,20 +1920,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-04-01T18:41:00+00:00" + "time": "2024-04-05T21:55:09+00:00" }, { "name": "filament/filament", - "version": "v3.2.62", + "version": "v3.2.63", "source": { "type": "git", "url": "https://github.com/filamentphp/panels.git", - "reference": "2dba8d47a87f9fadb65fb6422e813bcb845e60fc" + "reference": "46f425d6097c77b98782f3db5f3717e2439bb3e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/panels/zipball/2dba8d47a87f9fadb65fb6422e813bcb845e60fc", - "reference": "2dba8d47a87f9fadb65fb6422e813bcb845e60fc", + "url": "https://api.github.com/repos/filamentphp/panels/zipball/46f425d6097c77b98782f3db5f3717e2439bb3e8", + "reference": "46f425d6097c77b98782f3db5f3717e2439bb3e8", "shasum": "" }, "require": { @@ -1985,20 +1985,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-04-01T18:41:06+00:00" + "time": "2024-04-05T21:55:28+00:00" }, { "name": "filament/forms", - "version": "v3.2.62", + "version": "v3.2.63", "source": { "type": "git", "url": "https://github.com/filamentphp/forms.git", - "reference": "25a1f9b93f27865608e727c47d677ce0b44ad043" + "reference": "26676242e9470d28bb15f6686fff3e12da650d23" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/forms/zipball/25a1f9b93f27865608e727c47d677ce0b44ad043", - "reference": "25a1f9b93f27865608e727c47d677ce0b44ad043", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/26676242e9470d28bb15f6686fff3e12da650d23", + "reference": "26676242e9470d28bb15f6686fff3e12da650d23", "shasum": "" }, "require": { @@ -2041,20 +2041,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-04-01T18:40:59+00:00" + "time": "2024-04-05T21:55:12+00:00" }, { "name": "filament/infolists", - "version": "v3.2.62", + "version": "v3.2.63", "source": { "type": "git", "url": "https://github.com/filamentphp/infolists.git", - "reference": "cf5a23020b219bd5e3d930c24e9b380a004206c8" + "reference": "8945c92a86531bb9793b844b3321028e572c8185" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/infolists/zipball/cf5a23020b219bd5e3d930c24e9b380a004206c8", - "reference": "cf5a23020b219bd5e3d930c24e9b380a004206c8", + "url": "https://api.github.com/repos/filamentphp/infolists/zipball/8945c92a86531bb9793b844b3321028e572c8185", + "reference": "8945c92a86531bb9793b844b3321028e572c8185", "shasum": "" }, "require": { @@ -2092,20 +2092,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-04-01T18:41:04+00:00" + "time": "2024-04-05T21:55:16+00:00" }, { "name": "filament/notifications", - "version": "v3.2.62", + "version": "v3.2.63", "source": { "type": "git", "url": "https://github.com/filamentphp/notifications.git", - "reference": "0739152934bd238b838e1abd1d3c9b037f9e6da3" + "reference": "27efac9801a7688e991b4c8e029c52922222fc8a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/notifications/zipball/0739152934bd238b838e1abd1d3c9b037f9e6da3", - "reference": "0739152934bd238b838e1abd1d3c9b037f9e6da3", + "url": "https://api.github.com/repos/filamentphp/notifications/zipball/27efac9801a7688e991b4c8e029c52922222fc8a", + "reference": "27efac9801a7688e991b4c8e029c52922222fc8a", "shasum": "" }, "require": { @@ -2144,11 +2144,11 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-04-01T18:40:59+00:00" + "time": "2024-04-05T21:55:20+00:00" }, { "name": "filament/spatie-laravel-tags-plugin", - "version": "v3.2.62", + "version": "v3.2.63", "source": { "type": "git", "url": "https://github.com/filamentphp/spatie-laravel-tags-plugin.git", @@ -2185,16 +2185,16 @@ }, { "name": "filament/support", - "version": "v3.2.62", + "version": "v3.2.63", "source": { "type": "git", "url": "https://github.com/filamentphp/support.git", - "reference": "7b156b35791a7ff990621ec59fc8ec8cfdbb0782" + "reference": "17ddf2035ac79183bd61806bc0c7d4851228f2a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/support/zipball/7b156b35791a7ff990621ec59fc8ec8cfdbb0782", - "reference": "7b156b35791a7ff990621ec59fc8ec8cfdbb0782", + "url": "https://api.github.com/repos/filamentphp/support/zipball/17ddf2035ac79183bd61806bc0c7d4851228f2a1", + "reference": "17ddf2035ac79183bd61806bc0c7d4851228f2a1", "shasum": "" }, "require": { @@ -2239,20 +2239,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-04-01T18:41:17+00:00" + "time": "2024-04-05T21:55:36+00:00" }, { "name": "filament/tables", - "version": "v3.2.62", + "version": "v3.2.63", "source": { "type": "git", "url": "https://github.com/filamentphp/tables.git", - "reference": "38bf31ffed24ca98647879eb99bdb1efc788b4ec" + "reference": "5dfc41c56de5eab326ce1ecc5ceb5ba2baad8005" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/tables/zipball/38bf31ffed24ca98647879eb99bdb1efc788b4ec", - "reference": "38bf31ffed24ca98647879eb99bdb1efc788b4ec", + "url": "https://api.github.com/repos/filamentphp/tables/zipball/5dfc41c56de5eab326ce1ecc5ceb5ba2baad8005", + "reference": "5dfc41c56de5eab326ce1ecc5ceb5ba2baad8005", "shasum": "" }, "require": { @@ -2292,20 +2292,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-04-01T18:41:19+00:00" + "time": "2024-04-05T21:55:42+00:00" }, { "name": "filament/widgets", - "version": "v3.2.62", + "version": "v3.2.63", "source": { "type": "git", "url": "https://github.com/filamentphp/widgets.git", - "reference": "23c69ba79ba9f39429e48327676db3117585a5f8" + "reference": "bbc450b18cf37c8afa0b81f6e7f9ec6927c67382" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/widgets/zipball/23c69ba79ba9f39429e48327676db3117585a5f8", - "reference": "23c69ba79ba9f39429e48327676db3117585a5f8", + "url": "https://api.github.com/repos/filamentphp/widgets/zipball/bbc450b18cf37c8afa0b81f6e7f9ec6927c67382", + "reference": "bbc450b18cf37c8afa0b81f6e7f9ec6927c67382", "shasum": "" }, "require": { @@ -2336,7 +2336,7 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-04-01T18:41:27+00:00" + "time": "2024-04-05T21:55:38+00:00" }, { "name": "fruitcake/php-cors", @@ -2884,16 +2884,16 @@ }, { "name": "kirschbaum-development/eloquent-power-joins", - "version": "3.5.5", + "version": "3.5.6", "source": { "type": "git", "url": "https://github.com/kirschbaum-development/eloquent-power-joins.git", - "reference": "ed5af4788f0dad3ce35bb883cecac4293496139a" + "reference": "6de51d9ec43af34e77bd1d9908173de1416a0aed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/ed5af4788f0dad3ce35bb883cecac4293496139a", - "reference": "ed5af4788f0dad3ce35bb883cecac4293496139a", + "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/6de51d9ec43af34e77bd1d9908173de1416a0aed", + "reference": "6de51d9ec43af34e77bd1d9908173de1416a0aed", "shasum": "" }, "require": { @@ -2940,9 +2940,9 @@ ], "support": { "issues": "https://github.com/kirschbaum-development/eloquent-power-joins/issues", - "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/3.5.5" + "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/3.5.6" }, - "time": "2024-03-27T11:14:14+00:00" + "time": "2024-04-09T00:35:30+00:00" }, { "name": "lab404/laravel-impersonate", @@ -4022,16 +4022,16 @@ }, { "name": "league/flysystem", - "version": "3.26.0", + "version": "3.27.0", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "072735c56cc0da00e10716dd90d5a7f7b40b36be" + "reference": "4729745b1ab737908c7d055148c9a6b3e959832f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/072735c56cc0da00e10716dd90d5a7f7b40b36be", - "reference": "072735c56cc0da00e10716dd90d5a7f7b40b36be", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/4729745b1ab737908c7d055148c9a6b3e959832f", + "reference": "4729745b1ab737908c7d055148c9a6b3e959832f", "shasum": "" }, "require": { @@ -4096,7 +4096,7 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/3.26.0" + "source": "https://github.com/thephpleague/flysystem/tree/3.27.0" }, "funding": [ { @@ -4108,20 +4108,20 @@ "type": "github" } ], - "time": "2024-03-25T11:49:53+00:00" + "time": "2024-04-07T19:17:50+00:00" }, { "name": "league/flysystem-aws-s3-v3", - "version": "3.26.0", + "version": "3.27.0", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem-aws-s3-v3.git", - "reference": "885d0a758c71ae3cd6c503544573a1fdb8dc754f" + "reference": "3e6ce2f972f1470db779f04d29c289dcd2c32837" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/885d0a758c71ae3cd6c503544573a1fdb8dc754f", - "reference": "885d0a758c71ae3cd6c503544573a1fdb8dc754f", + "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/3e6ce2f972f1470db779f04d29c289dcd2c32837", + "reference": "3e6ce2f972f1470db779f04d29c289dcd2c32837", "shasum": "" }, "require": { @@ -4161,7 +4161,7 @@ "storage" ], "support": { - "source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/3.26.0" + "source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/3.27.0" }, "funding": [ { @@ -4173,7 +4173,7 @@ "type": "github" } ], - "time": "2024-03-24T21:11:18+00:00" + "time": "2024-04-07T19:16:54+00:00" }, { "name": "league/flysystem-local", @@ -6215,22 +6215,23 @@ "time": "2024-04-02T15:57:53+00:00" }, { - "name": "pxlrbt/filament-environment-indicator", - "version": "v2.0.1", + "name": "pxlrbt/filament-spotlight", + "version": "v1.2.1", "source": { "type": "git", - "url": "https://github.com/pxlrbt/filament-environment-indicator.git", - "reference": "8942ad37142298a6eaf7fed747dd9c90402b0ba5" + "url": "https://github.com/pxlrbt/filament-spotlight.git", + "reference": "138f1cf15ba72a2b4316f10fdaa4d00cd0cbda19" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pxlrbt/filament-environment-indicator/zipball/8942ad37142298a6eaf7fed747dd9c90402b0ba5", - "reference": "8942ad37142298a6eaf7fed747dd9c90402b0ba5", + "url": "https://api.github.com/repos/pxlrbt/filament-spotlight/zipball/138f1cf15ba72a2b4316f10fdaa4d00cd0cbda19", + "reference": "138f1cf15ba72a2b4316f10fdaa4d00cd0cbda19", "shasum": "" }, "require": { - "filament/filament": "^3.0-stable", - "php": "^8.0" + "filament/filament": "^3.0.0-stable", + "php": "^8.0", + "wire-elements/spotlight": "^2.0" }, "require-dev": { "laravel/pint": "^1.10" @@ -6239,13 +6240,13 @@ "extra": { "laravel": { "providers": [ - "\\pxlrbt\\FilamentEnvironmentIndicator\\FilamentEnvironmentIndicatorServiceProvider" + "pxlrbt\\FilamentSpotlight\\SpotlightServiceProvider" ] } }, "autoload": { "psr-4": { - "pxlrbt\\FilamentEnvironmentIndicator\\": "src/" + "pxlrbt\\FilamentSpotlight\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -6258,15 +6259,18 @@ "email": "info@pixelarbeit.de" } ], - "description": "Indicator for the current environment inside Filament", + "description": "Spotlight for Filament Admin", "keywords": [ - "environment indicator", + "alfred", "filament", - "laravel-filament" + "laravel", + "laravel-filament", + "spotlight", + "wire-elements" ], "support": { - "issues": "https://github.com/pxlrbt/filament-environment-indicator/issues", - "source": "https://github.com/pxlrbt/filament-environment-indicator/tree/v2.0.1" + "issues": "https://github.com/pxlrbt/filament-spotlight/issues", + "source": "https://github.com/pxlrbt/filament-spotlight/tree/v1.2.1" }, "funding": [ { @@ -6274,7 +6278,7 @@ "type": "github" } ], - "time": "2023-09-22T04:12:47+00:00" + "time": "2024-02-22T07:12:14+00:00" }, { "name": "ralouphie/getallheaders", @@ -6778,16 +6782,16 @@ }, { "name": "spatie/db-dumper", - "version": "3.4.3", + "version": "3.5.0", "source": { "type": "git", "url": "https://github.com/spatie/db-dumper.git", - "reference": "c566852826f3e9dceea27eef5173bad93b83e61c" + "reference": "d6519cd43cb8dacec448e97fb713240f9467d147" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/db-dumper/zipball/c566852826f3e9dceea27eef5173bad93b83e61c", - "reference": "c566852826f3e9dceea27eef5173bad93b83e61c", + "url": "https://api.github.com/repos/spatie/db-dumper/zipball/d6519cd43cb8dacec448e97fb713240f9467d147", + "reference": "d6519cd43cb8dacec448e97fb713240f9467d147", "shasum": "" }, "require": { @@ -6825,7 +6829,7 @@ "spatie" ], "support": { - "source": "https://github.com/spatie/db-dumper/tree/3.4.3" + "source": "https://github.com/spatie/db-dumper/tree/3.5.0" }, "funding": [ { @@ -6837,7 +6841,7 @@ "type": "github" } ], - "time": "2024-04-01T07:37:06+00:00" + "time": "2024-04-08T07:24:04+00:00" }, { "name": "spatie/eloquent-sortable", @@ -7301,82 +7305,6 @@ ], "time": "2024-03-08T12:14:18+00:00" }, - { - "name": "spatie/laravel-honeypot", - "version": "4.5.1", - "source": { - "type": "git", - "url": "https://github.com/spatie/laravel-honeypot.git", - "reference": "eaffd65f20faaa47cc87f9348e5920bc47ed7c42" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-honeypot/zipball/eaffd65f20faaa47cc87f9348e5920bc47ed7c42", - "reference": "eaffd65f20faaa47cc87f9348e5920bc47ed7c42", - "shasum": "" - }, - "require": { - "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0", - "illuminate/encryption": "^8.0|^9.0|^10.0|^11.0", - "illuminate/http": "^8.0|^9.0|^10.0|^11.0", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0", - "illuminate/validation": "^8.0|^9.0|^10.0|^11.0", - "nesbot/carbon": "^2.0|^3.0", - "php": "^8.0", - "spatie/laravel-package-tools": "^1.9", - "symfony/http-foundation": "^5.1.2|^6.0|^7.0" - }, - "require-dev": { - "livewire/livewire": "^2.10|^3.0", - "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0", - "pestphp/pest-plugin-livewire": "^1.0|^2.1", - "phpunit/phpunit": "^9.6|^10.5", - "spatie/pest-plugin-snapshots": "^1.1|^2.1", - "spatie/phpunit-snapshot-assertions": "^4.2|^5.1", - "spatie/test-time": "^1.2.1" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Spatie\\Honeypot\\HoneypotServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Spatie\\Honeypot\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Freek Van der Herten", - "email": "freek@spatie.be", - "homepage": "https://spatie.be", - "role": "Developer" - } - ], - "description": "Preventing spam submitted through forms", - "homepage": "https://github.com/spatie/laravel-honeypot", - "keywords": [ - "laravel-honeypot", - "spatie" - ], - "support": { - "source": "https://github.com/spatie/laravel-honeypot/tree/4.5.1" - }, - "funding": [ - { - "url": "https://spatie.be/open-source/support-us", - "type": "custom" - } - ], - "time": "2024-03-14T12:57:40+00:00" - }, { "name": "spatie/laravel-ignition", "version": "2.5.1", @@ -7686,90 +7614,6 @@ ], "time": "2024-02-05T13:37:25+00:00" }, - { - "name": "spatie/laravel-support-bubble", - "version": "1.6.0", - "source": { - "type": "git", - "url": "https://github.com/spatie/laravel-support-bubble.git", - "reference": "a59f148a170c88a113c0130b11724d94b3cb8a41" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-support-bubble/zipball/a59f148a170c88a113c0130b11724d94b3cb8a41", - "reference": "a59f148a170c88a113c0130b11724d94b3cb8a41", - "shasum": "" - }, - "require": { - "illuminate/contracts": "^8.56|^9.0|^10.0|^11.0", - "php": "^8.0", - "spatie/laravel-honeypot": "^4.0", - "spatie/laravel-package-tools": "^1.9" - }, - "require-dev": { - "brianium/paratest": "^6.2|^7.4", - "nunomaduro/collision": "^5.9|^6.0|^8.0", - "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0", - "pestphp/pest": "^1.15|^2.34", - "pestphp/pest-plugin-laravel": "^1.1|^2.3", - "phpunit/phpunit": "^9.3|^10.5", - "spatie/laravel-ray": "^1.23", - "spatie/pest-plugin-snapshots": "^1.1|^2.1" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Spatie\\SupportBubble\\SupportBubbleServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Spatie\\SupportBubble\\": "src", - "Spatie\\SupportBubble\\Database\\Factories\\": "database/factories" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Alex Vanderbist", - "email": "alex@spatie.be", - "role": "Developer" - }, - { - "name": "Freek Van der Herten", - "email": "freek@spatie.be", - "role": "Developer" - }, - { - "name": "Ruben Van Assche", - "email": "ruben@spatie.be", - "role": "Developer" - } - ], - "description": "A non-intrusive support chat bubble that can be displayed on any page", - "homepage": "https://github.com/spatie/laravel-support-bubble", - "keywords": [ - "laravel", - "laravel-support-bubble", - "spatie" - ], - "support": { - "issues": "https://github.com/spatie/laravel-support-bubble/issues", - "source": "https://github.com/spatie/laravel-support-bubble/tree/1.6.0" - }, - "funding": [ - { - "url": "https://github.com/spatie", - "type": "github" - } - ], - "time": "2024-02-29T08:58:48+00:00" - }, { "name": "spatie/laravel-tags", "version": "4.6.1", @@ -8093,16 +7937,16 @@ }, { "name": "swagger-api/swagger-ui", - "version": "v5.13.0", + "version": "v5.14.0", "source": { "type": "git", "url": "https://github.com/swagger-api/swagger-ui.git", - "reference": "65e4f2382208f0fd18e443728d728c44186fe653" + "reference": "7bcf090d982714cd9c230c598c8eef38f1427c5b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/swagger-api/swagger-ui/zipball/65e4f2382208f0fd18e443728d728c44186fe653", - "reference": "65e4f2382208f0fd18e443728d728c44186fe653", + "url": "https://api.github.com/repos/swagger-api/swagger-ui/zipball/7bcf090d982714cd9c230c598c8eef38f1427c5b", + "reference": "7bcf090d982714cd9c230c598c8eef38f1427c5b", "shasum": "" }, "type": "library", @@ -8148,9 +7992,9 @@ ], "support": { "issues": "https://github.com/swagger-api/swagger-ui/issues", - "source": "https://github.com/swagger-api/swagger-ui/tree/v5.13.0" + "source": "https://github.com/swagger-api/swagger-ui/tree/v5.14.0" }, - "time": "2024-03-29T13:42:47+00:00" + "time": "2024-04-08T08:27:58+00:00" }, { "name": "symfony/clock", @@ -10925,6 +10769,80 @@ }, "time": "2022-06-03T18:03:27+00:00" }, + { + "name": "wire-elements/spotlight", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/wire-elements/spotlight.git", + "reference": "1d64ebdc9ea56761f6be0e5554765ce498fb16a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wire-elements/spotlight/zipball/1d64ebdc9ea56761f6be0e5554765ce498fb16a8", + "reference": "1d64ebdc9ea56761f6be0e5554765ce498fb16a8", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0", + "livewire/livewire": "^3.0", + "php": "^8.1", + "spatie/laravel-package-tools": "^1.4.3" + }, + "require-dev": { + "brianium/paratest": "^6.2|^7.4", + "nunomaduro/collision": "^5.3|^8.0", + "orchestra/testbench": "^6.15|^7.0|^8.0|^9.0", + "phpunit/phpunit": "^9.3|^10.5", + "vimeo/psalm": "^4.4|^5.22" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LivewireUI\\Spotlight\\SpotlightServiceProvider" + ], + "aliases": { + "Spotlight": "LivewireUI\\Spotlight\\SpotlightFacade" + } + } + }, + "autoload": { + "psr-4": { + "LivewireUI\\Spotlight\\": "src", + "LivewireUI\\Spotlight\\Database\\Factories\\": "database/factories" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Philo Hermans", + "email": "support@wire-elements.dev", + "role": "Developer" + } + ], + "description": "Livewire component that provides Spotlight/Alfred-like functionality to your Laravel application.", + "homepage": "https://github.com/wire-elements/spotlight", + "keywords": [ + "laravel", + "livewire-ui", + "spotlight" + ], + "support": { + "issues": "https://github.com/wire-elements/spotlight/issues", + "source": "https://github.com/wire-elements/spotlight/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/livewire-ui", + "type": "github" + } + ], + "time": "2024-03-02T12:10:01+00:00" + }, { "name": "zircote/swagger-php", "version": "4.8.7", diff --git a/public/css/pxlrbt/filament-spotlight/spotlight-css.css b/public/css/pxlrbt/filament-spotlight/spotlight-css.css new file mode 100644 index 00000000..25da65a7 --- /dev/null +++ b/public/css/pxlrbt/filament-spotlight/spotlight-css.css @@ -0,0 +1 @@ +.right-5{right:1.25rem}.ml-1{margin-left:.25rem}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.border-gray-800{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.pt-16{padding-top:4rem}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(107 114 128/var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity:1;color:rgb(107 114 128/var(--tw-placeholder-opacity))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.duration-150,.transition-opacity{transition-duration:.15s}[x-cloak=""]{display:none!important}.hover\:bg-gray-800:hover{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.focus\:border-0:focus{border-width:0}.focus\:border-transparent:focus{border-color:transparent}.focus\:shadow-none:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}@media (min-width:640px){.sm\:pt-24{padding-top:6rem}} \ No newline at end of file diff --git a/public/js/pxlrbt/filament-spotlight/spotlight-js.js b/public/js/pxlrbt/filament-spotlight/spotlight-js.js new file mode 100644 index 00000000..081b1c7b --- /dev/null +++ b/public/js/pxlrbt/filament-spotlight/spotlight-js.js @@ -0,0 +1 @@ +(()=>{var e,t={794:(e,t,n)=>{n(27)},27:(e,t,n)=>{"use strict";function s(e){return Array.isArray?Array.isArray(e):"[object Array]"===d(e)}n.r(t);const i=1/0;function r(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-i?"-0":t}(e)}function c(e){return"string"==typeof e}function o(e){return"number"==typeof e}function h(e){return!0===e||!1===e||function(e){return a(e)&&null!==e}(e)&&"[object Boolean]"==d(e)}function a(e){return"object"==typeof e}function l(e){return null!=e}function u(e){return!e.trim().length}function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const p=e=>`Missing ${e} property in key`,g=e=>`Property 'weight' in key '${e}' must be a positive integer`,f=Object.prototype.hasOwnProperty;class m{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=y(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function y(e){let t=null,n=null,i=null,r=1,o=null;if(c(e)||s(e))i=e,t=M(e),n=x(e);else{if(!f.call(e,"name"))throw new Error(p("name"));const s=e.name;if(i=s,f.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(g(s));t=M(s),n=x(s),o=e.getFn}return{path:t,id:n,weight:r,src:i,getFn:o}}function M(e){return s(e)?e:e.split(".")}function x(e){return s(e)?e.join("."):e}var v={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(l(e))if(t[u]){const d=e[t[u]];if(!l(d))return;if(u===t.length-1&&(c(d)||o(d)||h(d)))n.push(r(d));else if(s(d)){i=!0;for(let e=0,n=d.length;e{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,c(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();c(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t{let r=t.getFn?t.getFn(e):this.getFn(e,t.path);if(l(r))if(s(r)){let e=[];const t=[{nestedArrIndex:-1,value:r}];for(;t.length;){const{nestedArrIndex:n,value:i}=t.pop();if(l(i))if(c(i)&&!u(i)){let t={v:i,i:n,n:this.norm.get(i)};e.push(t)}else s(i)&&i.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[i]=e}else if(c(r)&&!u(r)){let e={v:r,n:this.norm.get(r)};n.$[i]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function L(e,t,{getFn:n=v.getFn,fieldNormWeight:s=v.fieldNormWeight}={}){const i=new k({getFn:n,fieldNormWeight:s});return i.setKeys(e.map(y)),i.setSources(t),i.create(),i}function S(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:i=v.distance,ignoreLocation:r=v.ignoreLocation}={}){const c=t/e.length;if(r)return c;const o=Math.abs(s-n);return i?c+o/i:o?1:c}const I=32;function C(e,t,n,{location:s=v.location,distance:i=v.distance,threshold:r=v.threshold,findAllMatches:c=v.findAllMatches,minMatchCharLength:o=v.minMatchCharLength,includeMatches:h=v.includeMatches,ignoreLocation:a=v.ignoreLocation}={}){if(t.length>I)throw new Error(`Pattern length exceeds max of ${I}.`);const l=t.length,u=e.length,d=Math.max(0,Math.min(s,u));let p=r,g=d;const f=o>1||h,m=f?Array(u):[];let y;for(;(y=e.indexOf(t,g))>-1;){let e=S(t,{currentLocation:y,expectedLocation:d,distance:i,ignoreLocation:a});if(p=Math.min(e,p),g=y+l,f){let e=0;for(;e=h;r-=1){let c=r-1,o=n[e.charAt(c)];if(f&&(m[c]=+!!o),v[r]=(v[r+1]<<1|1)&o,s&&(v[r]|=(M[r+1]|M[r])<<1|1|M[r+1]),v[r]&k&&(x=S(t,{errors:s,currentLocation:c,expectedLocation:d,distance:i,ignoreLocation:a}),x<=p)){if(p=x,g=c,g<=d)break;h=Math.max(1,2*d-g)}}if(S(t,{errors:s+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:a})>p)break;M=v}const L={isMatch:g>=0,score:Math.max(.001,x)};if(f){const e=function(e=[],t=v.minMatchCharLength){let n=[],s=-1,i=-1,r=0;for(let c=e.length;r=t&&n.push([s,i]),s=-1)}return e[r-1]&&r-s>=t&&n.push([s,r-1]),n}(m,o);e.length?h&&(L.indices=e):L.isMatch=!1}return L}function _(e){let t={};for(let n=0,s=e.length;n{this.chunks.push({pattern:e,alphabet:_(e),startIndex:t})},l=this.pattern.length;if(l>I){let e=0;const t=l%I,n=l-t;for(;e{const{isMatch:g,score:f,indices:m}=C(e,t,d,{location:s+p,distance:i,threshold:r,findAllMatches:c,minMatchCharLength:o,includeMatches:n,ignoreLocation:h});g&&(u=!0),l+=f,g&&m&&(a=[...a,...m])}));let d={isMatch:u,score:u?l/this.chunks.length:1};return u&&n&&(d.indices=a),d}}class b{constructor(e){this.pattern=e}static isMultiMatch(e){return O(e,this.multiRegex)}static isSingleMatch(e){return O(e,this.singleRegex)}search(){}}function O(e,t){const n=e.match(t);return n?n[1]:null}class E extends b{constructor(e,{location:t=v.location,threshold:n=v.threshold,distance:s=v.distance,includeMatches:i=v.includeMatches,findAllMatches:r=v.findAllMatches,minMatchCharLength:c=v.minMatchCharLength,isCaseSensitive:o=v.isCaseSensitive,ignoreLocation:h=v.ignoreLocation}={}){super(e),this._bitapSearch=new $(e,{location:t,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:c,isCaseSensitive:o,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class A extends b{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const s=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,s.push([t,n-1]);const r=!!s.length;return{isMatch:r,score:r?0:1,indices:s}}}const R=[class extends b{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},A,class extends b{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends b{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends b{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends b{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends b{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},E],F=R.length,N=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const D=new Set([E.type,A.type]);class j{constructor(e,{isCaseSensitive:t=v.isCaseSensitive,includeMatches:n=v.includeMatches,minMatchCharLength:s=v.minMatchCharLength,ignoreLocation:i=v.ignoreLocation,findAllMatches:r=v.findAllMatches,location:c=v.location,threshold:o=v.threshold,distance:h=v.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:s,findAllMatches:r,ignoreLocation:i,location:c,threshold:o,distance:h},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(N).filter((e=>e&&!!e.trim())),s=[];for(let e=0,i=n.length;e!(!e[q]&&!e[T]),Q=e=>({[q]:Object.keys(e).map((t=>({[t]:e[t]})))});function V(e,t,{auto:n=!0}={}){const i=e=>{let r=Object.keys(e);const o=(e=>!!e[z])(e);if(!o&&r.length>1&&!K(e))return i(Q(e));if((e=>!s(e)&&a(e)&&!K(e))(e)){const s=o?e[z]:r[0],i=o?e[J]:e[s];if(!c(i))throw new Error((e=>`Invalid value for key ${e}`)(s));const h={keyId:x(s),pattern:i};return n&&(h.searcher=P(i,t)),h}let h={children:[],operator:r[0]};return r.forEach((t=>{const n=e[t];s(n)&&n.forEach((e=>{h.children.push(i(e))}))})),h};return K(e)||(e=Q(e)),i(e)}function U(e,t){const n=e.matches;t.matches=[],l(n)&&n.forEach((e=>{if(!l(e.indices)||!e.indices.length)return;const{indices:n,value:s}=e;let i={indices:n,value:s};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}))}function B(e,t){t.score=e.score}class G{constructor(e,t={},n){this.options={...v,...t},this.options.useExtendedSearch,this._keyStore=new m(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof k))throw new Error("Incorrect 'index' type");this._myIndex=t||L(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,s=this._docs.length;n{let n=1;e.matches.forEach((({key:e,norm:s,score:i})=>{const r=e?e.weight:null;n*=Math.pow(0===i&&r?Number.EPSILON:i,(r||1)*(t?1:s))})),e.score=n}))}(a,{ignoreFieldNorm:h}),i&&a.sort(r),o(t)&&t>-1&&(a=a.slice(0,t)),function(e,t,{includeMatches:n=v.includeMatches,includeScore:s=v.includeScore}={}){const i=[];return n&&i.push(U),s&&i.push(B),e.map((e=>{const{idx:n}=e,s={item:t[n],refIndex:n};return i.length&&i.forEach((t=>{t(e,s)})),s}))}(a,this._docs,{includeMatches:n,includeScore:s})}_searchStringList(e){const t=P(e,this.options),{records:n}=this._myIndex,s=[];return n.forEach((({v:e,i:n,n:i})=>{if(!l(e))return;const{isMatch:r,score:c,indices:o}=t.searchIn(e);r&&s.push({item:e,idx:n,matches:[{score:c,value:e,norm:i,indices:o}]})})),s}_searchLogical(e){const t=V(e,this.options),n=(e,t,s)=>{if(!e.children){const{keyId:n,searcher:i}=e,r=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return r&&r.length?[{idx:s,item:t,matches:r}]:[]}const i=[];for(let r=0,c=e.children.length;r{if(l(e)){let c=n(t,e,s);c.length&&(i[s]||(i[s]={idx:s,item:e,matches:[]},r.push(i[s])),c.forEach((({matches:e})=>{i[s].matches.push(...e)})))}})),r}_searchObjectList(e){const t=P(e,this.options),{keys:n,records:s}=this._myIndex,i=[];return s.forEach((({$:e,i:s})=>{if(!l(e))return;let r=[];n.forEach(((n,s)=>{r.push(...this._findMatches({key:n,value:e[s],searcher:t}))})),r.length&&i.push({idx:s,item:e,matches:r})})),i}_findMatches({key:e,value:t,searcher:n}){if(!l(t))return[];let i=[];if(s(t))t.forEach((({v:t,i:s,n:r})=>{if(!l(t))return;const{isMatch:c,score:o,indices:h}=n.searchIn(t);c&&i.push({score:o,key:e,value:t,idx:s,norm:r,indices:h})}));else{const{v:s,n:r}=t,{isMatch:c,score:o,indices:h}=n.searchIn(s);c&&i.push({score:o,key:e,value:s,norm:r,indices:h})}return i}}G.version="6.6.2",G.createIndex=L,G.parseIndex=function(e,{getFn:t=v.getFn,fieldNormWeight:n=v.fieldNormWeight}={}){const{keys:s,records:i}=e,r=new k({getFn:t,fieldNormWeight:n});return r.setKeys(s),r.setIndexRecords(i),r},G.config=v,G.parseQuery=V,function(...e){W.push(...e)}(j),window.LivewireUISpotlight=function(e){return{inputPlaceholder:e.placeholder,searchEngine:"commands",commands:e.commands,commandSearch:null,selectedCommand:null,dependencySearch:null,dependencyQueryResults:window.Livewire.find(e.componentId).entangle("dependencyQueryResults"),requiredDependencies:[],currentDependency:null,resolvedDependencies:{},showResultsWithoutInput:e.showResultsWithoutInput,init:function(){var t=this;this.commandSearch=new G(this.commands,{threshold:.3,keys:["name","description","synonyms"]}),this.dependencySearch=new G([],{threshold:.3,keys:["name","description","synonyms"]}),this.$watch("dependencyQueryResults",(function(e){t.dependencySearch.setCollection(e)})),this.$watch("input",(function(e){0===e.length&&(t.selected=0),null!==t.selectedCommand&&null!==t.currentDependency&&"search"===t.currentDependency.type&&t.$wire.searchDependency(t.selectedCommand.id,t.currentDependency.id,e,t.resolvedDependencies)})),this.$watch("isOpen",(function(n){!1===n&&setTimeout((function(){t.input="",t.inputPlaceholder=e.placeholder,t.searchEngine="commands",t.resolvedDependencies={},t.selectedCommand=null,t.currentDependency=null,t.selectedCommand=null,t.requiredDependencies=[]}),300)}))},isOpen:!1,toggleOpen:function(){var e=this;this.isOpen?this.isOpen=!1:(this.input="",this.isOpen=!0,setTimeout((function(){e.$refs.input.focus()}),100))},input:"",filteredItems:function(){return"commands"===this.searchEngine?!this.input&&this.showResultsWithoutInput?this.commandSearch.getIndex().docs.map((function(e,t){return[{item:e},t]})):this.commandSearch.search(this.input).map((function(e,t){return[e,t]})):"search"===this.searchEngine?!this.input&&this.showResultsWithoutInput?this.dependencySearch.getIndex().docs.map((function(e,t){return[{item:e},t]})):this.dependencySearch.search(this.input).map((function(e,t){return[e,t]})):[]},selectUp:function(){var e=this;this.selected=Math.max(0,this.selected-1),this.$nextTick((function(){e.$refs.results.children[e.selected+1].scrollIntoView({block:"nearest"})}))},selectDown:function(){var e=this;this.selected=Math.min(this.filteredItems().length-1,this.selected+1),this.$nextTick((function(){e.$refs.results.children[e.selected+1].scrollIntoView({block:"nearest"})}))},go:function(e){var t,n=this;(null===this.selectedCommand&&(this.selectedCommand=this.commands.find((function(t){return t.id===(e||n.filteredItems()[n.selected][0].item.id)})),this.requiredDependencies=JSON.parse(JSON.stringify(this.selectedCommand.dependencies))),null!==this.currentDependency)&&(t="search"===this.currentDependency.type?e||this.filteredItems()[this.selected][0].item.id:this.input,this.resolvedDependencies[this.currentDependency.id]=t);this.requiredDependencies.length>0?(this.input="",this.currentDependency=this.requiredDependencies.pop(),this.inputPlaceholder=this.currentDependency.placeholder,this.searchEngine="search"===this.currentDependency.type&&"search"):(this.isOpen=!1,this.$wire.execute(this.selectedCommand.id,this.resolvedDependencies))},selected:0}}},578:()=>{}},n={};function s(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,s),r.exports}s.m=t,e=[],s.O=(t,n,i,r)=>{if(!n){var c=1/0;for(l=0;l=r)&&Object.keys(s.O).every((e=>s.O[e](n[h])))?n.splice(h--,1):(o=!1,r0&&e[l-1][2]>r;l--)e[l]=e[l-1];e[l]=[n,i,r]},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={845:0,410:0};s.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,[c,o,h]=n,a=0;if(c.some((t=>0!==e[t]))){for(i in o)s.o(o,i)&&(s.m[i]=o[i]);if(h)var l=h(s)}for(t&&t(n);as(794)));var i=s.O(void 0,[410],(()=>s(578)));i=s.O(i)})(); \ No newline at end of file diff --git a/routes/api.php b/routes/api.php index 69c6acc7..4bfb5750 100644 --- a/routes/api.php +++ b/routes/api.php @@ -29,8 +29,6 @@ | */ -Route::supportBubble(); - // User authentication Route::prefix('auth')->group(function () { Route::post('/login', [LoginController::class, 'login']); diff --git a/tailwind.config.js b/tailwind.config.js index f8209a19..e29c63c5 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -9,8 +9,6 @@ export default { './vendor/laravel/jetstream/**/*.blade.php', './storage/framework/views/*.php', './resources/views/**/*.blade.php', - './vendor/spatie/laravel-support-bubble/config/**/*.php', - './vendor/spatie/laravel-support-bubble/resources/views/**/*.blade.php', ], theme: {