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

@ -5,35 +5,35 @@
{{ __("You can change your site's VHost configuration") }}
</x-slot>
<div
id="update-vhost-container"
hx-get="{{ route("servers.sites.settings.vhost", ["server" => $server, "site" => $site]) }}"
hx-trigger="load"
hx-target="#vhost"
hx-select="#vhost"
<form
id="update-vhost"
hx-post="{{ route("servers.sites.settings.vhost", ["server" => $server, "site" => $site]) }}"
hx-swap="outerHTML"
hx-select="#update-vhost"
class="space-y-6"
hx-ext="disable-element"
hx-disable-element="#btn-update-vhost"
>
<form
id="update-vhost"
hx-post="{{ route("servers.sites.settings.vhost", ["server" => $server, "site" => $site]) }}"
<div
hx-get="{{ route("servers.sites.settings.vhost", ["server" => $server, "site" => $site]) }}"
hx-trigger="load"
hx-target="#vhost-container"
hx-select="#vhost-container"
hx-swap="outerHTML"
hx-target="#update-vhost-container"
hx-select="#update-vhost-container"
class="space-y-6"
>
<div>
<x-textarea id="vhost" name="vhost" rows="10" class="mt-1 block w-full">
<div id="vhost-container">
<x-code-editor id="vhost" name="vhost" rows="10" class="mt-1 block w-full">
{{ session()->has("vhost") ? session()->get("vhost") : "Loading..." }}
</x-textarea>
@error("vhost")
<x-input-error class="mt-2" :messages="$message" />
@enderror
</x-code-editor>
</div>
</form>
</div>
@error("vhost")
<x-input-error class="mt-2" :messages="$message" />
@enderror
</div>
</form>
<x-slot name="actions">
<x-primary-button form="update-vhost" hx-disable>
<x-primary-button form="update-vhost" id="btn-update-vhost" hx-disable>
{{ __("Save") }}
</x-primary-button>
</x-slot>