This commit is contained in:
Andras Bacsai
2023-06-13 10:02:58 +02:00
parent a4177ca0ec
commit e4704fb7e6
16 changed files with 123 additions and 54 deletions

View File

@@ -25,7 +25,7 @@
<x-forms.checkbox class="pb-8" disabled instantSave noDirty id="is_part_of_swarm"
label="Is it part of a Swarm cluster?" />
<x-forms.button type="submit">
Save Server
Save New Server
</x-forms.button>
</form>
</div>

View File

@@ -7,6 +7,7 @@
<div wire:loading wire:target="checkProxySettingsInSync">
<x-loading />
</div>
@isset($proxy_settings)
@if ($selectedProxy->value === 'TRAEFIK_V2')
<form wire:submit.prevent='saveConfiguration({{ $server }})'>
@@ -25,6 +26,9 @@
<div class="text-sm text-red-500">Configuration out of sync. Restart to get the new configs.
</div>
@endif
<div class="container w-full py-4 mx-auto">
<livewire:activity-monitor :header="true" />
</div>
<div class="flex flex-col gap-2">
<x-forms.textarea label="Configuration file: traefik.conf" class="text-xs" noDirty
name="proxy_settings" wire:model.defer="proxy_settings" rows="30" />
@@ -54,9 +58,6 @@
</div>
</div>
@endif
<div class="container w-full pt-4 mx-auto">
<livewire:activity-monitor :header="true" />
</div>
@else
<div class="text-sm">Server is not validated. Validate first.</div>
@endif

View File

@@ -56,12 +56,13 @@
</div>
</div>
@else
<x-forms.button wire:click='deploy'> <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="44"
height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<button wire:click='deploy' class="flex items-center gap-2 text-sm cursor-pointer hover:text-white"> <svg
xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M7 4v16l13 -8z" />
</svg>Start Proxy</x-forms.button>
</svg>Start Proxy
</button>
@endif
@endif
</div>