This commit is contained in:
Andras Bacsai
2023-06-16 12:35:40 +02:00
parent 7456fc1ac7
commit 3589b92ec9
84 changed files with 285 additions and 244 deletions

View File

@@ -63,7 +63,7 @@
</div>
@isset($uptime)
<h4 class="pb-3">Server Info</h4>
<div class="text-sm">
<div class="">
<p>Uptime: {{ $uptime }}</p>
@isset($dockerVersion)
<p>Docker Engine {{ $dockerVersion }}</p>

View File

@@ -1,6 +1,6 @@
<div>
<h1>Create a new Server</h1>
<div class="pt-2 pb-10 text-sm">Servers are the main blocks of your infrastructure.</div>
<div class="pt-2 pb-10 ">Servers are the main blocks of your infrastructure.</div>
<form class="flex flex-col gap-2" wire:submit.prevent='submit'>
<div class="flex gap-2">
<x-forms.input id="name" label="Name" required />
@@ -22,8 +22,6 @@
@endif
@endforeach
</x-forms.select>
{{-- <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 New Server
</x-forms.button>

View File

@@ -5,15 +5,15 @@
<x-forms.button>Add a new Private Key</x-forms.button>
</a>
</div>
<div class="pt-2 pb-6 text-sm">Selected Private Key for SSH connection</div>
<div class="pb-10 text-sm">
<div class="pt-2 pb-6 ">Selected Private Key for SSH connection</div>
<div class="pb-10 ">
@if (data_get($server, 'privateKey.uuid'))
Currently attached Private Key:
<a href="{{ route('private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
<button class="text-white btn-link">{{ data_get($server, 'privateKey.name') }}</button>
</a>
@else
<div class="text-sm">No private key attached.</div>
<div class="">No private key attached.</div>
@endif
</div>
<h3 class="pb-4">Select a different Private Key</h3>

View File

@@ -18,11 +18,11 @@
@endif
<livewire:server.proxy.status :server="$server" />
</div>
<div class="pt-3 pb-4 text-sm">Traefik v2</div>
<div class="pt-3 pb-4 ">Traefik v2</div>
@if (
$server->extra_attributes->proxy_last_applied_settings &&
$server->extra_attributes->proxy_last_saved_settings !== $server->extra_attributes->proxy_last_applied_settings)
<div class="text-sm text-red-500">Configuration out of sync. Restart to get the new configs.
<div class="text-red-500 ">Configuration out of sync. Restart to get the new configs.
</div>
@endif
<div class="container w-full mx-auto">
@@ -42,7 +42,7 @@
@else
<div>
<h2>Proxy</h2>
<div class="pt-2 pb-10 text-sm">Select a proxy you would like to use on this server.</div>
<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="setProxy('{{ \App\Enums\ProxyTypes::TRAEFIK_V2 }}')">
Traefik
@@ -58,6 +58,6 @@
</div>
@endif
@else
<div class="text-sm">Server is not validated. Validate first.</div>
<div class="">Server is not validated. Validate first.</div>
@endif
</div>

View File

@@ -3,7 +3,7 @@
@if ($server->extra_attributes->proxy_status === 'running')
<div class="flex gap-4">
<div class="group">
<label tabindex="0" class="flex items-center gap-2 text-sm cursor-pointer hover:text-white"> Links
<label tabindex="0" class="flex items-center gap-2 cursor-pointer hover:text-white"> Links
<x-chevron-down />
</label>
<div class="absolute hidden group-hover:block ">
@@ -57,7 +57,7 @@
</div>
</div>
@else
<button wire:click='deploy' class="flex items-center gap-2 text-sm cursor-pointer hover:text-white"> <svg
<button wire:click='deploy' class="flex items-center gap-2 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" />