use blade as conmmands template (#444)

* use blade as conmmands template

* fix lint

* fix ssl
This commit is contained in:
Saeed Vaziry
2025-01-27 21:27:58 +01:00
committed by GitHub
parent a73476c1dd
commit cdbde063f0
208 changed files with 1080 additions and 1012 deletions

View File

@ -11,6 +11,7 @@
use App\Enums\PHPIniType;
use App\Models\Server;
use App\Models\Service;
use App\Web\Pages\Servers\Logs\Index;
use Exception;
use Filament\Forms\Components\Hidden;
use Filament\Forms\Components\Select;
@ -102,6 +103,16 @@ private function installExtensionAction(): Action
try {
app(InstallPHPExtension::class)->install($this->server, $data);
Notification::make()
->success()
->title('PHP Extension is being installed!')
->body('You can check the logs for more information.')
->actions([
\Filament\Notifications\Actions\Action::make('View Logs')
->url(Index::getUrl(parameters: ['server' => $this->server->id])),
])
->send();
} catch (Exception $e) {
Notification::make()
->danger()

View File

@ -74,7 +74,7 @@ private function vhostAction(): Action
run_action($this, function () use ($data) {
/** @var Webserver $handler */
$handler = $this->server->webserver()->handler();
$handler->updateVHost($this->site, false, $data['vhost']);
$handler->updateVHost($this->site, $data['vhost']);
Notification::make()
->success()
->title('VHost updated!')