css sprinkle

This commit is contained in:
Andras Bacsai
2023-05-16 20:47:59 +02:00
parent 5c069d3c3c
commit 3b636ef022
17 changed files with 87 additions and 94 deletions

View File

@@ -1,4 +1,5 @@
<div x-data="{ deleteServer: false }">
<h3>General</h3>
<x-naked-modal show="deleteServer" message='Are you sure you would like to delete this server?' />
<form wire:submit.prevent='submit' class="flex flex-col">
<div class="flex flex-col gap-2 xl:flex-row">
@@ -49,4 +50,28 @@
@endisset
</div>
</form>
<div class="flex items-center gap-2 py-4">
<div class="font-bold">Private Key</div>
<a class="px-2"
href="{{ route('private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
{{ data_get($server, 'privateKey.uuid') }}
</a>
<a href="{{ route('server.private-key', ['server_uuid' => $server->uuid]) }}">
<x-inputs.button isBold>Change</x-inputs.button>
</a>
</div>
<div class="flex items-center gap-2 py-4">
<div class="font-bold">Destinations</div>
<div>
@foreach ($server->standaloneDockers as $docker)
<a class="px-2"
href="{{ route('destination.show', ['destination_uuid' => data_get($docker, 'uuid')]) }}">
{{ data_get($docker, 'network') }}
</a>
@endforeach
</div>
<a href="{{ route('destination.new', ['server_id' => $server->id]) }}">
<x-inputs.button isBold>Add</x-inputs.button>
</a>
</div>
</div>

View File

@@ -2,8 +2,8 @@
<x-naked-modal show="stopProxy" action="stopProxy"
message='Are you sure you would like to stop the proxy? All resources will be unavailable.' />
@if ($server->settings->is_validated)
<div class="flex items-center gap-2">
<h3>Proxy</h3>
<div class="flex items-center gap-2 mb-4">
<h3 class="pb-0">Proxy</h3>
<div>{{ $server->extra_attributes->proxy_status }}</div>
</div>
@@ -35,15 +35,15 @@
@isset($proxy_settings)
<h3>Configuration</h3>
@if ($selectedProxy->value === 'TRAEFIK_V2')
<h4>traefik.conf</h4>
<form wire:submit.prevent='saveConfiguration'>
<x-inputs.input noDirty type="textarea" wire:model.defer="proxy_settings" rows="30" />
<div class="pt-2">
<div class="py-2 pb-8">
<x-inputs.button isBold>Save</x-inputs.button>
<x-inputs.button wire:click.prevent="resetProxy">
Reset Configuration
</x-inputs.button>
</div>
<h4>traefik.conf</h4>
<x-inputs.input noDirty type="textarea" wire:model.defer="proxy_settings" rows="30" />
</form>
@endif
@endisset