mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
update
This commit is contained in:
parent
f1aeeba229
commit
3d483c0dcc
5 changed files with 4 additions and 73 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1,65 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Modules\LetsEncrypt\Providers\Filament;
|
||||
|
||||
use Filament\Http\Middleware\Authenticate;
|
||||
use Filament\Http\Middleware\DisableBladeIconComponents;
|
||||
use Filament\Http\Middleware\DispatchServingFilamentEvent;
|
||||
use Filament\Pages;
|
||||
use Filament\Panel;
|
||||
use Filament\PanelProvider;
|
||||
use Filament\Support\Colors\Color;
|
||||
use Filament\Widgets;
|
||||
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
|
||||
use Illuminate\Cookie\Middleware\EncryptCookies;
|
||||
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
|
||||
use Illuminate\Routing\Middleware\SubstituteBindings;
|
||||
use Illuminate\Session\Middleware\AuthenticateSession;
|
||||
use Illuminate\Session\Middleware\StartSession;
|
||||
use Illuminate\View\Middleware\ShareErrorsFromSession;
|
||||
|
||||
class AdminPanelProvider extends PanelProvider
|
||||
{
|
||||
private string $module = 'LetsEncrypt';
|
||||
|
||||
public function panel(Panel $panel): Panel
|
||||
{
|
||||
$moduleNamespace = $this->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;
|
||||
}
|
||||
}
|
|
@ -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": []
|
||||
}
|
||||
|
|
|
@ -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": []
|
||||
}
|
||||
|
|
|
@ -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(),
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue