refactoring (#116)

- refactoring architecture
- fix incomplete ssh logs
- code editor for scripts in the app
- remove Jobs and SSHCommands
This commit is contained in:
Saeed Vaziry
2024-03-14 20:03:43 +01:00
committed by GitHub
parent cee4a70c3c
commit 428140b931
472 changed files with 24110 additions and 8159 deletions

View File

@ -1,5 +1,5 @@
<div>
@if ($site->deploymentScript?->content)
@if ($site->deploymentScript)
<x-dropdown>
<x-slot name="trigger">
<x-secondary-button>
@ -13,9 +13,10 @@ class="cursor-pointer"
hx-post="{{ route('servers.sites.application.auto-deployment', ['server' => $server, 'site' => $site]) }}"
hx-swap="outerHTML"
hx-target="#auto-deployment"
hx-select="#auto-deployment"
>
{{ __("Enable") }}
@if ($site->auto_deployment)
@if ($site->isAutoDeployment())
<x-heroicon-o-check class="ml-1 h-5 w-5 text-green-600" />
@endif
</x-dropdown-link>
@ -26,7 +27,7 @@ class="cursor-pointer"
hx-target="#auto-deployment"
>
{{ __("Disable") }}
@if (! $site->auto_deployment)
@if (! $site->isAutoDeployment())
<x-heroicon-o-check class="ml-1 h-5 w-5 text-green-600" />
@endif
</x-dropdown-link>