- 2.x - sites finishing

This commit is contained in:
Saeed Vaziry
2024-10-06 16:06:51 +02:00
parent 3c50e2c947
commit c24b4b7333
82 changed files with 1250 additions and 345 deletions

View File

@ -2,6 +2,7 @@
use App\Exceptions\SSHError;
use App\Helpers\HtmxResponse;
use Filament\Notifications\Actions\Action;
use Filament\Notifications\Notification;
function generate_public_key($privateKeyPath, $publicKeyPath): void
@ -67,6 +68,13 @@ function run_action(object $static, Closure $callback): void
->danger()
->title($e->getMessage())
->body($e->getLog()?->getContent(30))
->actions([
Action::make('View Logs')
->url(App\Web\Pages\Servers\Logs\Index::getUrl([
'server' => $e->getLog()?->server_id,
]))
->openUrlInNewTab(),
])
->send();
if (method_exists($static, 'halt')) {