diff --git a/web/Modules/LetsEncrypt/App/Providers/LetsEncryptServiceProvider.php b/web/Modules/LetsEncrypt/App/Providers/LetsEncryptServiceProvider.php index 764422e..a7095f2 100644 --- a/web/Modules/LetsEncrypt/App/Providers/LetsEncryptServiceProvider.php +++ b/web/Modules/LetsEncrypt/App/Providers/LetsEncryptServiceProvider.php @@ -9,7 +9,6 @@ use Illuminate\Support\Facades\Event; use Illuminate\Support\ServiceProvider; use Modules\LetsEncrypt\LetsEncryptApacheVirtualHostConfig; use Modules\LetsEncrypt\Listeners\DomainIsCreatedListener; -use Modules\LetsEncrypt\Providers\Filament\AdminPanelProvider; class LetsEncryptServiceProvider extends ServiceProvider { @@ -46,7 +45,6 @@ class LetsEncryptServiceProvider extends ServiceProvider }); $this->app->register(RouteServiceProvider::class); - $this->app->register(AdminPanelProvider::class); app()->virtualHostManager->registerConfig(LetsEncryptApacheVirtualHostConfig::class, $this->moduleNameLower); } diff --git a/web/Modules/LetsEncrypt/Providers/Filament/AdminPanelProvider.php b/web/Modules/LetsEncrypt/Providers/Filament/AdminPanelProvider.php deleted file mode 100644 index c2f7b5b..0000000 --- a/web/Modules/LetsEncrypt/Providers/Filament/AdminPanelProvider.php +++ /dev/null @@ -1,65 +0,0 @@ -getModuleNamespace(); - - return $panel - ->id('Lets Encrypt ::admin') - ->path('admin/modules/letsencrypt') - ->colors([ - 'primary' => Color::Violet, - ]) - ->discoverResources(in: module_path($this->module, 'Filament/Admin/Resources'), for: "$moduleNamespace\\Filament\\Admin\\Resources") - ->discoverPages(in: module_path($this->module, 'Filament/Admin/Pages'), for: "$moduleNamespace\\Filament\\Admin\\Pages") - ->pages([ - Pages\Dashboard::class, - ]) - ->discoverWidgets(in: module_path($this->module, 'Filament/Admin/Widgets'), for: "$moduleNamespace\\Filament\\Admin\\Widgets") - ->widgets([ - Widgets\AccountWidget::class, - Widgets\FilamentInfoWidget::class, - ]) - ->middleware([ - EncryptCookies::class, - AddQueuedCookiesToResponse::class, - StartSession::class, - AuthenticateSession::class, - ShareErrorsFromSession::class, - VerifyCsrfToken::class, - SubstituteBindings::class, - DisableBladeIconComponents::class, - DispatchServingFilamentEvent::class, - ]) - ->authMiddleware([ - Authenticate::class, - ]); - } - - protected function getModuleNamespace(): string - { - return config('modules.namespace').'\\'.$this->module; - } -} diff --git a/web/Modules/LetsEncrypt/module.json b/web/Modules/LetsEncrypt/module.json index cd0e646..04555ad 100644 --- a/web/Modules/LetsEncrypt/module.json +++ b/web/Modules/LetsEncrypt/module.json @@ -8,8 +8,7 @@ "category": "Security", "adminUrl": "/admin/lets-encrypt/lets-encrypt-certificates", "providers": [ - "Modules\\LetsEncrypt\\App\\Providers\\LetsEncryptServiceProvider", - "Modules\\LetsEncrypt\\Providers\\Filament\\AdminPanelProvider" + "Modules\\LetsEncrypt\\App\\Providers\\LetsEncryptServiceProvider" ], "files": [] } diff --git a/web/Modules/Microweber/module.json b/web/Modules/Microweber/module.json index 53d71f6..0f4a8ef 100644 --- a/web/Modules/Microweber/module.json +++ b/web/Modules/Microweber/module.json @@ -8,8 +8,7 @@ "category": "Content Management", "adminUrl": "/admin/microweber/installations", "providers": [ - "Modules\\Microweber\\App\\Providers\\MicroweberServiceProvider", - "Modules\\Microweber\\Providers\\Filament\\AdminPanelProvider" + "Modules\\Microweber\\App\\Providers\\MicroweberServiceProvider" ], "files": [] } diff --git a/web/app/Filament/Resources/BackupResource/Pages/ManageBackups.php b/web/app/Filament/Resources/BackupResource/Pages/ManageBackups.php index 535b976..0967572 100644 --- a/web/app/Filament/Resources/BackupResource/Pages/ManageBackups.php +++ b/web/app/Filament/Resources/BackupResource/Pages/ManageBackups.php @@ -68,7 +68,7 @@ class ManageBackups extends ManageRecords 'weekly' => 'Weekly', 'monthly' => 'Monthly', ]) - ->default('daily') + ->default(setting('backup_frequency', 'daily')) ->required() ->columnSpanFull(), @@ -81,7 +81,7 @@ class ManageBackups extends ManageRecords '180' => '6 Months', '365' => '1 Year', ]) - ->default('7') + ->default(setting('backup_retention_days', '7')) ->required() ->columnSpanFull(), ];