This commit is contained in:
Andras Bacsai
2023-06-15 13:28:16 +02:00
parent 890f0819ad
commit cbfc490d95
12 changed files with 75 additions and 43 deletions

View File

@@ -49,20 +49,30 @@
<h3 class="pt-8 pb-4">Quick Actions</h3>
<div class="flex items-center gap-2">
<x-forms.button wire:click.prevent='validateServer'>
Check Connection
Check Server Details
</x-forms.button>
<x-forms.button wire:click.prevent='installDocker'>
@if ($server->settings->is_docker_installed)
Reconfigure Docker Engine
@else
Install Docker Engine
@endif
</x-forms.button>
{{-- <x-forms.button wire:click.prevent='installDocker'>Install Docker</x-forms.button> --}}
</div>
@endif
<div class="container w-full py-4 mx-auto">
<livewire:activity-monitor :header="true" />
</div>
@isset($uptime)
<h3 class="py-3">Server Info</h3>
<h3 class="pb-3">Server Info</h3>
<div class="text-sm">
<p>Uptime: {{ $uptime }}</p>
@isset($dockerVersion)
<p>Docker Engine {{ $dockerVersion }}</p>
@endisset
@isset($dockerComposeVersion)
<p>{{ $dockerComposeVersion }}</p>
<p>Compose: {{ $dockerComposeVersion }}</p>
@endisset
</div>
@endisset

View File

@@ -1,6 +1,6 @@
<div>
@if ($server->settings->is_validated)
<div wire:poll.10000ms="proxyStatus">
<div wire:poll.10000ms="proxyStatus" x-init="$wire.proxyStatus">
@if ($server->extra_attributes->proxy_status === 'running')
<x-status.running />
@elseif ($server->extra_attributes->proxy_status === 'restarting')