From fd6b0aadc591fb273093b8ce94e4e53ded5b6b47 Mon Sep 17 00:00:00 2001 From: Ryan Scherler Date: Sun, 6 Dec 2020 20:32:31 -0800 Subject: [PATCH] Start on settings feature --- README.md | 1 + composer.json | 3 +- config/filament.php | 74 ++++++++------------- dist/css/filament.css | 2 +- dist/css/filament.css.map | 2 +- dist/mix-manifest.json | 4 +- resources/css/components/buttons.css | 2 +- resources/views/livewire/settings.blade.php | 3 + routes/web.php | 5 ++ src/Features.php | 40 +++++++++++ src/Filament.php | 6 +- src/FilamentServiceProvider.php | 44 +++++++++--- src/Http/Controllers/ImageController.php | 2 +- src/Http/Livewire/Settings.php | 14 ++++ src/View/Components/Nav.php | 5 +- 15 files changed, 142 insertions(+), 65 deletions(-) create mode 100644 resources/views/livewire/settings.blade.php create mode 100644 src/Http/Livewire/Settings.php diff --git a/README.md b/README.md index 8634e761b3..25a44a0430 100644 --- a/README.md +++ b/README.md @@ -77,5 +77,6 @@ php artisan filament:user ## Roadmap +- [ ] Settings feature & related tests - [ ] Resource stubs and associated Artisan commands (e.g. `artisan filament:resource Page --options`) - [ ] DOCUMENTATION FOR ALL THE THINGS. diff --git a/composer.json b/composer.json index 3f4a2f9aac..949e28b905 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,8 @@ "blade-ui-kit/blade-heroicons": "^0.3", "league/glide-laravel": "^1.0", "livewire/livewire": "^2.2", - "thomaswelton/laravel-gravatar": "~1.0", + "spatie/valuestore": "^1.2", + "thomaswelton/laravel-gravatar": "^1.0", "watson/active": "^6.0" }, "require-dev": { diff --git a/config/filament.php b/config/filament.php index 4f25bcb27f..2d323713de 100644 --- a/config/filament.php +++ b/config/filament.php @@ -16,7 +16,9 @@ return [ 'features' => [ Features::registration(), + Features::dashboard(), Features::profile(), + // Features::settings(), Features::resources(), ], @@ -57,39 +59,6 @@ return [ ], - /* - |-------------------------------------------------------------------------- - | Home - |-------------------------------------------------------------------------- - | - | The path to the "home" route for Filament. - | This is used by Filament authentication to redirect users after login. - | - */ - - 'home' => 'filament.dashboard', // string or named route - - /* - |-------------------------------------------------------------------------- - | Navigation - |-------------------------------------------------------------------------- - | - | Navigations used by Filament. - | - */ - - 'nav' => [ - - 'dashboard' => [ - 'path' => 'filament.dashboard', // string or named route - 'active' => 'filament.dashboard', // string or named route (may also be an array @link https://github.com/dwightwatson/active) - 'label' => 'Dashboard', - 'icon' => 'heroicon-o-home', // optional icon name (Blade UI Kit @link https://github.com/blade-ui-kit/blade-heroicons) - 'sort' => -9999, // sort order used by the navigation - ], - - ], - /* |-------------------------------------------------------------------------- | Components @@ -124,21 +93,9 @@ return [ 'dashboard' => Filament\Http\Livewire\Dashboard::class, 'profile' => Filament\Http\Livewire\Profile::class, 'account' => Filament\Http\Livewire\Account::class, + 'settings' => Filament\Http\Livewire\Settings::class, ], - /* - |-------------------------------------------------------------------------- - | Cache - |-------------------------------------------------------------------------- - | - | This is the cache disk Filament will use, you may - | use any of the disks defined in the `config/filesystems.php`. - | - */ - - 'cache_disk' => env('FILAMENT_CACHE_DISK', 'local'), - 'cache_path' => 'filament-tmp', - /* |-------------------------------------------------------------------------- | Storage @@ -151,4 +108,29 @@ return [ 'storage_disk' => env('FILAMENT_STORAGE_DISK', 'public'), + /* + |-------------------------------------------------------------------------- + | Cache + |-------------------------------------------------------------------------- + | + | This is the cache disk Filament will use, you may + | use any of the disks defined in the `config/filesystems.php`. + | + */ + + 'cache_disk' => env('FILAMENT_CACHE_DISK', 'local'), + 'cache_path_prefix' => 'filament/cache', + + /* + |-------------------------------------------------------------------------- + | Settings + |-------------------------------------------------------------------------- + | + | This is the path Filament will use to store and retrieve settings as + | loose values. Stored values are saved as a json file. + | + */ + + 'settings_path' => storage_path('app/filament/settings.json'), + ]; diff --git a/dist/css/filament.css b/dist/css/filament.css index f410d3ea06..2f442f451f 100644 --- a/dist/css/filament.css +++ b/dist/css/filament.css @@ -1,2 +1,2 @@ -html{scroll-behavior:smooth}::-moz-selection{--tw-bg-opacity:1;background-color:rgba(37,99,235,var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}::selection{--tw-bg-opacity:1;background-color:rgba(37,99,235,var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}[x-cloak]{display:none}.js-focus-visible :focus:not([data-focus-visible-added]){outline:2px solid transparent;outline-offset:2px}.btn{background-color:rgba(243,244,246,var(--tw-bg-opacity))}.btn,.btn:hover{--tw-bg-opacity:1}.btn:hover{background-color:rgba(229,231,235,var(--tw-bg-opacity))}.btn{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity));border-radius:.25rem;border-width:1px;cursor:pointer;display:inline-block;font-weight:600;font-size:.875rem;line-height:1.25rem;padding:.5rem 1rem;position:relative;--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.btn:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent);--tw-ring-opacity:1;--tw-ring-color:rgba(199,210,254,var(--tw-ring-opacity));--tw-ring-opacity:0.5}.btn{--tw-text-opacity:1;color:rgba(31,41,55,var(--tw-text-opacity));transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.2s}.btn-primary{--tw-bg-opacity:1;background-color:rgba(29,78,216,var(--tw-bg-opacity))}.btn-primary:hover{--tw-bg-opacity:1;background-color:rgba(30,64,175,var(--tw-bg-opacity))}.btn-primary{border-color:transparent;--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.btn[disabled]{opacity:.5}.list-dropdown{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity));border-radius:.25rem;font-size:.875rem;line-height:1.25rem;line-height:1.25;overflow:hidden;--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);text-align:left}.list-dropdown>li{white-space:nowrap}.list-dropdown>li+*{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity));border-top-width:1px}.list-dropdown [role=menuitem]:hover,.list-dropdown a:hover,.list-dropdown button:hover{--tw-bg-opacity:1;background-color:rgba(229,231,235,var(--tw-bg-opacity))}.list-dropdown [role=menuitem],.list-dropdown a,.list-dropdown button{display:inline-block;padding:.5rem 1rem;--tw-text-opacity:1;color:rgba(75,85,99,var(--tw-text-opacity));width:100%;transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.2s}.card{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity));border-radius:.25rem;overflow:hidden;padding:1rem;--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}@media (min-width:768px){.card{padding:1.5rem}}.help,.hint{font-weight:400;font-size:.75rem;line-height:1rem;line-height:1.25;--tw-text-opacity:1;color:rgba(107,114,128,var(--tw-text-opacity))}.help a,.hint a{--tw-text-opacity:1;color:rgba(37,99,235,var(--tw-text-opacity))}.help a:hover,.hint a:hover{--tw-text-opacity:1;color:rgba(30,64,175,var(--tw-text-opacity))}.hint{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=submit],button{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset,ol,ul{margin:0;padding:0}ol,ul{list-style:none}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{font-family:inherit;line-height:inherit}*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af}input::placeholder,textarea::placeholder{color:#9ca3af}[role=button],button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[type=email],[type=password],[type=text],[type=time],[type=url],select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}[type=email]:focus,[type=password]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;color-adjust:exact}[type=checkbox],select{-webkit-print-color-adjust:exact}[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0}[type=checkbox]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}[type=checkbox]:checked{background-size:100% 100%;background-position:50%;background-repeat:no-repeat;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E")}[type=checkbox]:checked,[type=checkbox]:checked:focus,[type=checkbox]:checked:hover{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.25rem*var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem*var(--tw-space-y-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem*var(--tw-space-x-reverse));margin-left:calc(0.5rem*(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.75rem*var(--tw-space-x-reverse));margin-left:calc(0.75rem*(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem*var(--tw-space-x-reverse));margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.bg-black{--tw-bg-opacity:1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgba(229,231,235,var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgba(107,114,128,var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgba(31,41,55,var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgba(17,24,39,var(--tw-bg-opacity))}.hover\:bg-gray-800:hover{--tw-bg-opacity:1;background-color:rgba(31,41,55,var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgba(190,18,60,var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.border-gray-200{--tw-border-opacity:1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgba(225,29,72,var(--tw-border-opacity))}.focus\:border-gray-600:focus{--tw-border-opacity:1;border-color:rgba(75,85,99,var(--tw-border-opacity))}.focus\:border-indigo-300:focus{--tw-border-opacity:1;border-color:rgba(165,180,252,var(--tw-border-opacity))}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border-dashed{border-style:dashed}.border{border-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.flex-shrink-0{flex-shrink:0}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-light{font-weight:300}.font-semibold{font-weight:600}.h-1{height:.25rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-12{height:3rem}.h-64{height:16rem}.h-full{height:100%}.h-screen{height:100vh}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.leading-tight{line-height:1.25}.my-2{margin-top:.5rem;margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mr-4{margin-right:1rem}.ml-4{margin-left:1rem}.mb-6{margin-bottom:1.5rem}.-mb-3{margin-bottom:-.75rem}.-mb-px{margin-bottom:-1px}.max-w-sm{max-width:24rem}.max-w-full{max-width:100%}.min-h-screen{min-height:100vh}.object-cover{-o-object-fit:cover;object-fit:cover}.opacity-0{opacity:0}.opacity-100{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.overflow-hidden{overflow:hidden}.p-3{padding:.75rem}.p-4{padding:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{right:0;left:0}.inset-0,.inset-y-0{top:0;bottom:0}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.left-0{left:0}*{--tw-shadow:0 0 transparent}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}*{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.focus\:ring-indigo-200:focus{--tw-ring-opacity:1;--tw-ring-color:rgba(199,210,254,var(--tw-ring-opacity))}.focus\:ring-opacity-50:focus{--tw-ring-opacity:0.5}.fill-current{fill:currentColor}.text-left{text-align:left}.text-center{text-align:center}.text-current{color:currentColor}.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity:1;color:rgba(229,231,235,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgba(156,163,175,var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgba(107,114,128,var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgba(75,85,99,var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgba(55,65,81,var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgba(225,29,72,var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgba(190,18,60,var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgba(37,99,235,var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgba(37,99,235,var(--tw-text-opacity))}.hover\:text-blue-800:hover{--tw-text-opacity:1;color:rgba(30,64,175,var(--tw-text-opacity))}.uppercase{text-transform:uppercase}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tracking-wider{letter-spacing:.05em}.w-0{width:0}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-12{width:3rem}.w-48{width:12rem}.w-56{width:14rem}.w-full{width:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.gap-2{gap:.5rem}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-full{--tw-translate-x:100%}.-translate-x-full{--tw-translate-x:-100%}.translate-y-0{--tw-translate-y:0px}.translate-y-2{--tw-translate-y:0.5rem}.-translate-y-2{--tw-translate-y:-0.5rem}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@-webkit-keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@media (prefers-reduced-motion:no-preference){.motion-safe\:animate-shake{-webkit-animation:shake .82s cubic-bezier(.36,.07,.19,.97) both;animation:shake .82s cubic-bezier(.36,.07,.19,.97) both}}@media (min-width:640px){.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:translate-x-0{--tw-translate-x:0px}.sm\:translate-x-2{--tw-translate-x:0.5rem}.sm\:translate-y-0{--tw-translate-y:0px}}@media (min-width:768px){.md\:hidden{display:none}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:p-6{padding:1.5rem}.md\:py-3{padding-top:.75rem;padding-bottom:.75rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:static{position:static}.md\:shadow-none{--tw-shadow:0 0 transparent;box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.md\:translate-x-0{--tw-translate-x:0px}}@media (min-width:1024px){.lg\:gap-6{gap:1.5rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}} +html{scroll-behavior:smooth}::-moz-selection{--tw-bg-opacity:1;background-color:rgba(37,99,235,var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}::selection{--tw-bg-opacity:1;background-color:rgba(37,99,235,var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}[x-cloak]{display:none}.js-focus-visible :focus:not([data-focus-visible-added]){outline:2px solid transparent;outline-offset:2px}.btn{background-color:rgba(243,244,246,var(--tw-bg-opacity))}.btn,.btn:hover{--tw-bg-opacity:1}.btn:hover{background-color:rgba(229,231,235,var(--tw-bg-opacity))}.btn{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity));border-radius:.25rem;border-width:1px;cursor:pointer;display:inline-block;font-weight:600;font-size:.875rem;line-height:1.25rem;padding:.5rem 1.5rem;position:relative;--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.btn:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent);--tw-ring-opacity:1;--tw-ring-color:rgba(199,210,254,var(--tw-ring-opacity));--tw-ring-opacity:0.5}.btn{--tw-text-opacity:1;color:rgba(31,41,55,var(--tw-text-opacity));transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.2s}.btn-primary{--tw-bg-opacity:1;background-color:rgba(29,78,216,var(--tw-bg-opacity))}.btn-primary:hover{--tw-bg-opacity:1;background-color:rgba(30,64,175,var(--tw-bg-opacity))}.btn-primary{border-color:transparent;--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.btn[disabled]{opacity:.5}.list-dropdown{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity));border-radius:.25rem;font-size:.875rem;line-height:1.25rem;line-height:1.25;overflow:hidden;--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);text-align:left}.list-dropdown>li{white-space:nowrap}.list-dropdown>li+*{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity));border-top-width:1px}.list-dropdown [role=menuitem]:hover,.list-dropdown a:hover,.list-dropdown button:hover{--tw-bg-opacity:1;background-color:rgba(229,231,235,var(--tw-bg-opacity))}.list-dropdown [role=menuitem],.list-dropdown a,.list-dropdown button{display:inline-block;padding:.5rem 1rem;--tw-text-opacity:1;color:rgba(75,85,99,var(--tw-text-opacity));width:100%;transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.2s}.card{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity));border-radius:.25rem;overflow:hidden;padding:1rem;--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}@media (min-width:768px){.card{padding:1.5rem}}.help,.hint{font-weight:400;font-size:.75rem;line-height:1rem;line-height:1.25;--tw-text-opacity:1;color:rgba(107,114,128,var(--tw-text-opacity))}.help a,.hint a{--tw-text-opacity:1;color:rgba(37,99,235,var(--tw-text-opacity))}.help a:hover,.hint a:hover{--tw-text-opacity:1;color:rgba(30,64,175,var(--tw-text-opacity))}.hint{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=submit],button{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset,ol,ul{margin:0;padding:0}ol,ul{list-style:none}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{font-family:inherit;line-height:inherit}*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af}input::placeholder,textarea::placeholder{color:#9ca3af}[role=button],button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[type=email],[type=password],[type=text],[type=time],[type=url],select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}[type=email]:focus,[type=password]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,select:focus,textarea:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;color-adjust:exact}[type=checkbox],select{-webkit-print-color-adjust:exact}[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0}[type=checkbox]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}[type=checkbox]:checked{background-size:100% 100%;background-position:50%;background-repeat:no-repeat;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E")}[type=checkbox]:checked,[type=checkbox]:checked:focus,[type=checkbox]:checked:hover{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.25rem*var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem*var(--tw-space-y-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem*var(--tw-space-x-reverse));margin-left:calc(0.5rem*(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.75rem*var(--tw-space-x-reverse));margin-left:calc(0.75rem*(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem*var(--tw-space-x-reverse));margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.bg-black{--tw-bg-opacity:1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgba(229,231,235,var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgba(107,114,128,var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgba(31,41,55,var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgba(17,24,39,var(--tw-bg-opacity))}.hover\:bg-gray-800:hover{--tw-bg-opacity:1;background-color:rgba(31,41,55,var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgba(190,18,60,var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.border-gray-200{--tw-border-opacity:1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgba(225,29,72,var(--tw-border-opacity))}.focus\:border-gray-600:focus{--tw-border-opacity:1;border-color:rgba(75,85,99,var(--tw-border-opacity))}.focus\:border-indigo-300:focus{--tw-border-opacity:1;border-color:rgba(165,180,252,var(--tw-border-opacity))}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border-dashed{border-style:dashed}.border{border-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.flex-shrink-0{flex-shrink:0}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-light{font-weight:300}.font-semibold{font-weight:600}.h-1{height:.25rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-12{height:3rem}.h-64{height:16rem}.h-full{height:100%}.h-screen{height:100vh}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.leading-tight{line-height:1.25}.my-2{margin-top:.5rem;margin-bottom:.5rem}.ml-2{margin-left:.5rem}.mr-4{margin-right:1rem}.ml-4{margin-left:1rem}.mb-6{margin-bottom:1.5rem}.-mb-3{margin-bottom:-.75rem}.-mb-px{margin-bottom:-1px}.max-w-sm{max-width:24rem}.max-w-full{max-width:100%}.min-h-screen{min-height:100vh}.object-cover{-o-object-fit:cover;object-fit:cover}.opacity-0{opacity:0}.opacity-100{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.overflow-hidden{overflow:hidden}.p-3{padding:.75rem}.p-4{padding:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{right:0;left:0}.inset-0,.inset-y-0{top:0;bottom:0}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.left-0{left:0}*{--tw-shadow:0 0 transparent}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}*{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}.focus\:ring-indigo-200:focus{--tw-ring-opacity:1;--tw-ring-color:rgba(199,210,254,var(--tw-ring-opacity))}.focus\:ring-opacity-50:focus{--tw-ring-opacity:0.5}.fill-current{fill:currentColor}.text-left{text-align:left}.text-center{text-align:center}.text-current{color:currentColor}.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity:1;color:rgba(229,231,235,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgba(156,163,175,var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgba(107,114,128,var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgba(75,85,99,var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgba(55,65,81,var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgba(225,29,72,var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgba(190,18,60,var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgba(37,99,235,var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgba(37,99,235,var(--tw-text-opacity))}.hover\:text-blue-800:hover{--tw-text-opacity:1;color:rgba(30,64,175,var(--tw-text-opacity))}.uppercase{text-transform:uppercase}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tracking-wider{letter-spacing:.05em}.w-0{width:0}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-12{width:3rem}.w-48{width:12rem}.w-56{width:14rem}.w-full{width:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.gap-2{gap:.5rem}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-full{--tw-translate-x:100%}.-translate-x-full{--tw-translate-x:-100%}.translate-y-0{--tw-translate-y:0px}.translate-y-2{--tw-translate-y:0.5rem}.-translate-y-2{--tw-translate-y:-0.5rem}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@-webkit-keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@media (prefers-reduced-motion:no-preference){.motion-safe\:animate-shake{-webkit-animation:shake .82s cubic-bezier(.36,.07,.19,.97) both;animation:shake .82s cubic-bezier(.36,.07,.19,.97) both}}@media (min-width:640px){.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:translate-x-0{--tw-translate-x:0px}.sm\:translate-x-2{--tw-translate-x:0.5rem}.sm\:translate-y-0{--tw-translate-y:0px}}@media (min-width:768px){.md\:hidden{display:none}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:p-6{padding:1.5rem}.md\:py-3{padding-top:.75rem;padding-bottom:.75rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:static{position:static}.md\:shadow-none{--tw-shadow:0 0 transparent;box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.md\:translate-x-0{--tw-translate-x:0px}}@media (min-width:1024px){.lg\:gap-6{gap:1.5rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}} /*# sourceMappingURL=filament.css.map*/ \ No newline at end of file diff --git a/dist/css/filament.css.map b/dist/css/filament.css.map index 4e4fab989e..b9eef637a3 100644 --- a/dist/css/filament.css.map +++ b/dist/css/filament.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./resources/css/base.css","webpack:///./","webpack:///./resources/css/components/buttons.css","webpack:///./resources/css/components/lists.css","webpack:///./resources/css/components/cards.css","webpack:///./","webpack:///./resources/css/utilities/typography.css","webpack:///./node_modules/tailwindcss/base.css","webpack:///./node_modules/tailwindcss/utilities.css"],"names":[],"mappings":"AAGA,KACE,sBACF,CAKA,iBCPkB,0IDSlB,CAFA,YCPkB,0IDSlB,CASA,UClBkB,YDoBlB,CAQA,yDC5BkB,gDD8BlB,CEjCA,KDGkB,uDCOlB,CDPkB,iCAAmB,CAAnB,kEAAmB,CAAnB,+YAAmB,CAAnB,gaAAmB,CAAnB,yQAAmB,CCAnC,aDAgB,uECEhB,CDFgB,0FAAmB,CAAnB,wGAAmB,CCInC,eDJgB,UCMhB,CCTF,eFGkB,yWEalB,CAbE,kBFAgB,kBEMhB,CAHE,oBFHc,kGEKd,CFLc,iKAAmB,CAAnB,gWAAmB,CGHrC,MHGkB,+SGDlB,CCFA,yBJGkB,oBAAmB,EAAnB,iJAAmB,CKCnC,gBLDgB,gEKGhB,CLHgB,4FAAmB,CKMrC,MLNkB,mGKQlB,CCXA,6IAAc,CAAd,mDAAc,CAAd,6HAAc,CAAd,yBAAc,CAAd,qFAAc,CAAd,2BAAc,CAAd,gHAAc,CAAd,mBAAc,CAAd,6EAAc,CAAd,iBAAc,CAAd,aAAc,CAAd,wCAAc,CAAd,kGAAc,CAAd,iCAAc,CAAd,4DAAc,CAAd,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nB,iFAAmB,CAAnB,oCAAmB,CAAnB,YAAmB,CAAnB,iBAAmB,CAAnB,eAAmB,CAAnB,kBAAmB,CAAnB,iBAAmB,CAAnB,eAAmB,CAAnB,gBAAmB,CAAnB,iBAAmB,CAAnB,iBAAmB,CAAnB,kBAAmB,CAAnB,cAAmB,CAAnB,gBAAmB,CAAnB,gBAAmB,CAAnB,gBAAmB,CAAnB,0DAAmB,CAAnB,mUAAmB,CAAnB,mCAAmB,CAAnB,uCAAmB,CAAnB,yCAAmB,CAAnB,mCAAmB,CAAnB,sCAAmB,CAAnB,wCAAmB,CAAnB,mHAAmB,CAAnB,wLAAmB,CAAnB,kKAAmB,CAAnB,+HAAmB,CAAnB,0DAAmB,CAAnB,2DAAmB,CAAnB,qCAAmB,CAAnB,qCAAmB,CAAnB,qCAAmB,CAAnB,kDAAmB,EAAnB,0CAAmB,EAAnB,2DAAmB,EAAnB,mDAAmB,EAAnB,uCAAmB,EAAnB,+BAAmB,EAAnB,oKAAmB,CAAnB,4HAAmB,EAAnB,4JAAmB,CAAnB,4HAAmB,EAAnB,gEAAmB,CAAnB,sCAAmB,CAAnB,2CAAmB,CAAnB,sCAAmB,EAAnB,wDAAmB,CAAnB,sCAAmB,CAAnB,2CAAmB,CAAnB,sCAAmB,EHAnB,8CGAA,mJAAmB,EHAnB,yBGAA,uCAAmB,CAAnB,yCAAmB,CAAnB,uCAAmB,CAAnB,0CAAmB,CAAnB,uCAAmB,EHAnB,yBGAA,wBAAmB,CAAnB,oDAAmB,CAAnB,uBAAmB,CAAnB,kDAAmB,CAAnB,kDAAmB,CAAnB,2BAAmB,CAAnB,2JAAmB,CAAnB,uCAAmB,EHAnB,0BGAA,qBAAmB,CAAnB,8DAAmB","file":"css/filament.css","sourcesContent":["/**\n * Smoothly animate the scroll position, instead of a straight jump.\n */\nhtml {\n scroll-behavior: smooth;\n}\n\n/**\n * ::selection selector: color, background, cursor, and outline.\n */\n::selection {\n @apply bg-blue-600 text-white;\n}\n\n/**\n * `x-cloak` attributes are removed from elements when Alpine initializes.\n * This is useful for hiding pre-initialized DOM.\n *\n * @link https://github.com/alpinejs/alpine#x-cloak\n *\n */\n[x-cloak] {\n @apply hidden;\n}\n\n/**\n * Selectively disable the default focus style by selecting for the case when the polyfill\n * is loaded and [data-focus-visible-added] attribute is not applied to the element:\n *\n * @link https://github.com/WICG/focus-visible#2-update-your-css\n */\n.js-focus-visible :focus:not([data-focus-visible-added]) {\n @apply outline-none;\n}\n","\n @tailwind base;\n @tailwind components;\n @tailwind utilities;\n ",".btn {\n @apply cursor-pointer text-sm font-semibold py-2 px-4 border border-gray-300 bg-gray-100 text-gray-800 rounded transition duration-200 shadow-sm inline-block relative focus:ring focus:ring-indigo-200 focus:ring-opacity-50 hover:bg-gray-200;\n\n &-primary {\n @apply border-transparent bg-blue-700 text-white hover:bg-blue-800;\n }\n\n &[disabled] {\n @apply opacity-50;\n }\n}\n",".list-dropdown {\n @apply bg-white shadow rounded text-sm leading-tight text-left overflow-hidden;\n\n > li {\n @apply whitespace-nowrap;\n\n & + * {\n @apply border-t border-gray-300;\n }\n }\n\n a,\n button,\n [role='menuitem'] {\n @apply inline-block w-full py-2 px-4 transition-colors duration-200 text-gray-600 hover:bg-gray-200;\n }\n}\n",".card {\n @apply p-4 md:p-6 bg-white shadow rounded overflow-hidden;\n}\n",null,".help,\n.hint {\n @apply text-xs font-normal leading-tight text-gray-500;\n\n a {\n @apply text-blue-600 hover:text-blue-800;\n }\n}\n\n.hint {\n @apply font-mono;\n}\n","@tailwind base;\n","@tailwind utilities;\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./resources/css/base.css","webpack:///./","webpack:///./resources/css/components/buttons.css","webpack:///./resources/css/components/lists.css","webpack:///./resources/css/components/cards.css","webpack:///./","webpack:///./resources/css/utilities/typography.css","webpack:///./node_modules/tailwindcss/base.css","webpack:///./node_modules/tailwindcss/utilities.css"],"names":[],"mappings":"AAGA,KACE,sBACF,CAKA,iBCPkB,0I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DAAmB,EAAnB,uCAAmB,EAAnB,+BAAmB,EAAnB,oKAAmB,CAAnB,4HAAmB,EAAnB,4JAAmB,CAAnB,4HAAmB,EAAnB,gEAAmB,CAAnB,sCAAmB,CAAnB,2CAAmB,CAAnB,sCAAmB,EAAnB,wDAAmB,CAAnB,sCAAmB,CAAnB,2CAAmB,CAAnB,sCAAmB,EHAnB,8CGAA,mJAAmB,EHAnB,yBGAA,uCAAmB,CAAnB,yCAAmB,CAAnB,uCAAmB,CAAnB,0CAAmB,CAAnB,uCAAmB,EHAnB,yBGAA,wBAAmB,CAAnB,oDAAmB,CAAnB,uBAAmB,CAAnB,kDAAmB,CAAnB,kDAAmB,CAAnB,2BAAmB,CAAnB,2JAAmB,CAAnB,uCAAmB,EHAnB,0BGAA,qBAAmB,CAAnB,8DAAmB","file":"css/filament.css","sourcesContent":["/**\n * Smoothly animate the scroll position, instead of a straight jump.\n */\nhtml {\n scroll-behavior: smooth;\n}\n\n/**\n * ::selection selector: color, background, cursor, and outline.\n */\n::selection {\n @apply bg-blue-600 text-white;\n}\n\n/**\n * `x-cloak` attributes are removed from elements when Alpine initializes.\n * This is useful for hiding pre-initialized DOM.\n *\n * @link https://github.com/alpinejs/alpine#x-cloak\n *\n */\n[x-cloak] {\n @apply hidden;\n}\n\n/**\n * Selectively disable the default focus style by selecting for the case when the polyfill\n * is loaded and [data-focus-visible-added] attribute is not applied to the element:\n *\n * @link https://github.com/WICG/focus-visible#2-update-your-css\n */\n.js-focus-visible :focus:not([data-focus-visible-added]) {\n @apply outline-none;\n}\n","\n @tailwind base;\n @tailwind components;\n @tailwind utilities;\n ",".btn {\n @apply cursor-pointer text-sm font-semibold py-2 px-6 border border-gray-300 bg-gray-100 text-gray-800 rounded transition duration-200 shadow-sm inline-block relative focus:ring focus:ring-indigo-200 focus:ring-opacity-50 hover:bg-gray-200;\n\n &-primary {\n @apply border-transparent bg-blue-700 text-white hover:bg-blue-800;\n }\n\n &[disabled] {\n @apply opacity-50;\n }\n}\n",".list-dropdown {\n @apply bg-white shadow rounded text-sm leading-tight text-left overflow-hidden;\n\n > li {\n @apply whitespace-nowrap;\n\n & + * {\n @apply border-t border-gray-300;\n }\n }\n\n a,\n button,\n [role='menuitem'] {\n @apply inline-block w-full py-2 px-4 transition-colors duration-200 text-gray-600 hover:bg-gray-200;\n }\n}\n",".card {\n @apply p-4 md:p-6 bg-white shadow rounded overflow-hidden;\n}\n",null,".help,\n.hint {\n @apply text-xs font-normal leading-tight text-gray-500;\n\n a {\n @apply text-blue-600 hover:text-blue-800;\n }\n}\n\n.hint {\n @apply font-mono;\n}\n","@tailwind base;\n","@tailwind utilities;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/mix-manifest.json b/dist/mix-manifest.json index 5d93975398..b62867d07b 100644 --- a/dist/mix-manifest.json +++ b/dist/mix-manifest.json @@ -1,6 +1,6 @@ { "/js/filament.js": "/js/filament.js?id=9995e728ce8648b81f5d", - "/css/filament.css": "/css/filament.css?id=ee5d10364ff0ea52a03a", + "/css/filament.css": "/css/filament.css?id=777f65851975bd896183", "/js/filament.js.map": "/js/filament.js.map?id=1d3615b89069bfd79261", - "/css/filament.css.map": "/css/filament.css.map?id=3da57234a2c617fd88f8" + "/css/filament.css.map": "/css/filament.css.map?id=8a7842639ac77e680c3a" } diff --git a/resources/css/components/buttons.css b/resources/css/components/buttons.css index 8c8a794b24..fcf5e15d07 100644 --- a/resources/css/components/buttons.css +++ b/resources/css/components/buttons.css @@ -1,5 +1,5 @@ .btn { - @apply cursor-pointer text-sm font-semibold py-2 px-4 border border-gray-300 bg-gray-100 text-gray-800 rounded transition duration-200 shadow-sm inline-block relative focus:ring focus:ring-indigo-200 focus:ring-opacity-50 hover:bg-gray-200; + @apply cursor-pointer text-sm font-semibold py-2 px-6 border border-gray-300 bg-gray-100 text-gray-800 rounded transition duration-200 shadow-sm inline-block relative focus:ring focus:ring-indigo-200 focus:ring-opacity-50 hover:bg-gray-200; &-primary { @apply border-transparent bg-blue-700 text-white hover:bg-blue-800; diff --git a/resources/views/livewire/settings.blade.php b/resources/views/livewire/settings.blade.php new file mode 100644 index 0000000000..9d3033928e --- /dev/null +++ b/resources/views/livewire/settings.blade.php @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 654bea63ef..47bc1e38b7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -39,6 +39,11 @@ Route::group(['middleware' => ['auth.filament']], function () { Route::get('/profile', config('filament.livewire.profile'))->name('profile'); } + // Settings + if (Features::hasSettings()) { + Route::get('/settings', config('filament.livewire.settings'))->name('settings'); + } + // Resources if (Features::hasResources()) { Route::get('/resources/{resource}/{action?}/{id?}', ResourceController::class)->name('resource'); diff --git a/src/Features.php b/src/Features.php index f3b10835ed..e8d4c612b1 100644 --- a/src/Features.php +++ b/src/Features.php @@ -25,6 +25,16 @@ class Features return static::enabled(static::registration()); } + /** + * Determine if the application has a dashboard. + * + * @return bool + */ + public static function hasDashboard() + { + return static::enabled(static::dashboard()); + } + /** * Determine if the application has a user profile. * @@ -35,6 +45,16 @@ class Features return static::enabled(static::profile()); } + /** + * Determine if the application has settings. + * + * @return bool + */ + public static function hasSettings() + { + return static::enabled(static::settings()); + } + /** * Determine if the application has resources. * @@ -45,6 +65,16 @@ class Features return static::enabled(static::resources()); } + /** + * Enable the dashboard feature. + * + * @return string + */ + public static function dashboard() + { + return 'dashboard'; + } + /** * Enable the user registration feature. * @@ -65,6 +95,16 @@ class Features return 'profile'; } + /** + * Enable the settings feature. + * + * @return string + */ + public static function settings() + { + return 'settings'; + } + /** * Enable the resources feature. * diff --git a/src/Filament.php b/src/Filament.php index 7861f1a82e..2f78bae2c4 100644 --- a/src/Filament.php +++ b/src/Filament.php @@ -2,6 +2,7 @@ namespace Filament; +use App\Providers\RouteServiceProvider; use Illuminate\Container\Container; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\{ @@ -174,8 +175,9 @@ class Filament */ public function home() { - $home = config('filament.home'); - return Route::has($home) ? route($home) : $home; + return Features::hasDashboard() ? + config('filament.home', route('filament.dashboard')) + : RouteServiceProvider::HOME; } /** diff --git a/src/FilamentServiceProvider.php b/src/FilamentServiceProvider.php index 277b8d4a56..29a723de27 100644 --- a/src/FilamentServiceProvider.php +++ b/src/FilamentServiceProvider.php @@ -12,6 +12,7 @@ use Illuminate\Support\Facades\{ Cache, }; use Livewire\Livewire; +use Spatie\Valuestore\Valuestore; use Filament\Providers\RouteServiceProvider; use Filament\Features; use Filament\Helpers\{ @@ -37,7 +38,7 @@ class FilamentServiceProvider extends ServiceProvider $this->bootModelBindings(); $this->bootLoaders(); $this->bootDirectives(); - $this->bootResources(); + $this->bootNavigation(); $this->bootCommands(); $this->bootPublishing(); } @@ -46,9 +47,15 @@ class FilamentServiceProvider extends ServiceProvider { $this->app->singleton('filament', Filament::class); - $this->app->singleton(Navigation::class, function () { + $this->app->singleton('Filament\Navigation', function () { return new Navigation(config('filament.nav', [])); }); + + if (Features::hasSettings()) { + $this->app->singleton('Filament\Settings', function () { + return Valuestore::make(config('filament.settings_path')); + }); + } } protected function registerLivewireComponents(): void @@ -118,10 +125,31 @@ class FilamentServiceProvider extends ServiceProvider ], 'filament-assets'); } - protected function bootResources(): void + protected function bootNavigation(): void { - if (Features::hasResources()) { - $this->app->booted(function () { + $this->app->booted(function () { + + if (Features::hasDashboard()) { + app('Filament\Navigation')->dashboard = [ + 'path' => 'filament.dashboard', + 'active' => 'filament.dashboard', + 'label' => 'Dashboard', + 'icon' => 'heroicon-o-home', + 'sort' => -9999, + ]; + } + + if (Features::hasSettings()) { + app('Filament\Navigation')->settings = [ + 'path' => 'filament.settings', + 'active' => 'filament.settings', + 'label' => 'Settings', + 'icon' => 'heroicon-o-adjustments', + 'sort' => -9998, + ]; + } + + if (Features::hasResources()) { $this->app->filament->resources()->each(function ($item, $key) { $resource = $this->app->make($item); @@ -129,7 +157,7 @@ class FilamentServiceProvider extends ServiceProvider $route = route('filament.resource', ['resource' => $key]); $routePath = implode('/', array_slice(explode('/', $route), -3, 2, true)).'/'.$key; - app(Navigation::class)->$key = [ + app('Filament\Navigation')->$key = [ 'path' => $route, 'active' => [ $routePath, @@ -142,8 +170,8 @@ class FilamentServiceProvider extends ServiceProvider ]; } }); - }); - } + } + }); } protected function bootCommands(): void diff --git a/src/Http/Controllers/ImageController.php b/src/Http/Controllers/ImageController.php index 25218e6206..8a0e81689b 100644 --- a/src/Http/Controllers/ImageController.php +++ b/src/Http/Controllers/ImageController.php @@ -26,7 +26,7 @@ class ImageController extends Controller 'response' => new LaravelResponseFactory(app('request')), 'source' => Storage::disk(config('filament.storage_disk'))->getDriver(), 'cache' => Storage::disk(config('filament.cache_disk'))->getDriver(), - 'cache_path_prefix' => config('filament.cache_path'), + 'cache_path_prefix' => config('filament.cache_path_prefix'), 'base_url' => 'image', ]); diff --git a/src/Http/Livewire/Settings.php b/src/Http/Livewire/Settings.php new file mode 100644 index 0000000000..ef7009e11b --- /dev/null +++ b/src/Http/Livewire/Settings.php @@ -0,0 +1,14 @@ +layout('filament::layouts.app', ['title' => __('Settings')]); + } +} \ No newline at end of file diff --git a/src/View/Components/Nav.php b/src/View/Components/Nav.php index 18111016c2..f7fc1669d0 100644 --- a/src/View/Components/Nav.php +++ b/src/View/Components/Nav.php @@ -3,7 +3,6 @@ namespace Filament\View\Components; use Illuminate\View\Component; -use Filament\Helpers\Navigation; class Nav extends Component { @@ -18,7 +17,9 @@ class Nav extends Component */ public function __construct() { - $this->nav = app(Navigation::class)->items() + $nav = app('Filament\Navigation'); + + $this->nav = $nav->items() ->groupBy('group') ->sortBy('sort') ->all();