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 x-data="">
<x-modal name="update-env">
<x-modal name="update-env" max-width="3xl">
<form
id="update-env-form"
hx-post="{{ route("servers.sites.application.env", [$server, $site]) }}"
@ -13,17 +13,18 @@ class="p-6"
<div
class="mt-6"
id="env-content"
hx-get="{{ route("servers.sites.application.env", [$server, $site]) }}"
hx-trigger="load"
hx-target="#env"
hx-select="#env"
hx-target="#env-content"
hx-select="#env-content"
hx-swap="outerHTML"
>
<x-input-label for="env" :value="__('.env')" />
<x-textarea id="env" name="env" rows="10" class="mt-1 block w-full">
{{ old("env", session()->get("env") ?? "Loading...") }}
</x-textarea>
<div id="env-content">
<x-code-editor id="env" name="env" rows="10" class="mt-1 block w-full">
{{ old("env", session()->get("env") ?? "Loading...") }}
</x-code-editor>
</div>
@error("env")
<x-input-error class="mt-2" :messages="$message" />
@enderror