testing php storm code cleanup and styling

This commit is contained in:
Andras Bacsai
2023-08-08 11:51:36 +02:00
parent a8ee779b31
commit f2228cec7b
368 changed files with 23834 additions and 2623 deletions

View File

@@ -1,3 +1,4 @@
@php use App\Enums\ProxyTypes; @endphp
<div>
@if ($server->settings->is_usable)
@if ($server->proxy->type)
@@ -20,18 +21,18 @@
</div>
@endif
<div class="container w-full pb-4 mx-auto">
<livewire:activity-monitor :header="true" />
<livewire:activity-monitor :header="true"/>
</div>
<x-forms.input placeholder="https://coolify.io" id="redirect_url" label="Default Redirect 404"
helper="All urls that has no service available will be redirected to this domain.<span class='text-helper'>You can set to your main marketing page or your social media link.</span>" />
helper="All urls that has no service available will be redirected to this domain.<span class='text-helper'>You can set to your main marketing page or your social media link.</span>"/>
<div wire:loading wire:target="load_proxy_configuration" class="pt-4">
<x-loading text="Loading proxy configuration..." />
<x-loading text="Loading proxy configuration..."/>
</div>
<div wire:loading.remove wire:target="load_proxy_configuration">
@if ($proxy_settings)
<div class="flex flex-col gap-2 pt-2">
<x-forms.textarea label="Configuration file: traefik.conf" name="proxy_settings"
wire:model.defer="proxy_settings" rows="30" />
wire:model.defer="proxy_settings" rows="30"/>
<x-forms.button wire:click.prevent="reset_proxy_configuration">
Reset configuration to default
</x-forms.button>
@@ -40,26 +41,26 @@
</div>
</form>
@endif
@else
<div>
<h2>Proxy</h2>
<div class="pt-2 pb-10 ">Select a proxy you would like to use on this server.</div>
<div class="flex gap-2">
<x-forms.button class="w-32 box"
wire:click="select_proxy('{{ \App\Enums\ProxyTypes::TRAEFIK_V2 }}')">
Traefik
v2
</x-forms.button>
<x-forms.button disabled class="w-32 box">
Nginx
</x-forms.button>
<x-forms.button disabled class="w-32 box">
Caddy
</x-forms.button>
@else
<div>
<h2>Proxy</h2>
<div class="pt-2 pb-10 ">Select a proxy you would like to use on this server.</div>
<div class="flex gap-2">
<x-forms.button class="w-32 box"
wire:click="select_proxy('{{ ProxyTypes::TRAEFIK_V2 }}')">
Traefik
v2
</x-forms.button>
<x-forms.button disabled class="w-32 box">
Nginx
</x-forms.button>
<x-forms.button disabled class="w-32 box">
Caddy
</x-forms.button>
</div>
</div>
</div>
@endif
@else
<div>Server is not validated. Validate first.</div>
@endif
</div>
@endif
@else
<div>Server is not validated. Validate first.</div>
@endif
</div>