fix: parse proxy config and check the set ports usage

This commit is contained in:
Andras Bacsai
2024-10-03 21:29:55 +02:00
parent 5bcd813792
commit 5f07b473e9
6 changed files with 59 additions and 24 deletions

View File

@@ -2,9 +2,12 @@
'status' => 'Restarting',
'lastDeploymentInfo' => null,
'lastDeploymentLink' => null,
'noLoading' => false,
])
<div class="flex items-center">
<x-loading wire:loading.delay.longer />
@if (!$noLoading)
<x-loading wire:loading.delay.longer />
@endif
<span wire:loading.remove.delay.longer class="flex items-center">
<div class="badge badge-warning "></div>
<div class="pl-2 pr-1 text-xs font-bold tracking-wider dark:text-warning" @if($lastDeploymentInfo) title="{{$lastDeploymentInfo}}" @endif>

View File

@@ -2,9 +2,12 @@
'status' => 'Running',
'lastDeploymentInfo' => null,
'lastDeploymentLink' => null,
'noLoading' => false,
])
<div class="flex items-center">
<x-loading wire:loading.delay.longer />
@if (!$noLoading)
<x-loading wire:loading.delay.longer />
@endif
<span wire:loading.remove.delay.longer class="flex items-center">
<div class="badge badge-success "></div>
<div class="pl-2 pr-1 text-xs font-bold tracking-wider text-success" @if($lastDeploymentInfo) title="{{$lastDeploymentInfo}}" @endif>

View File

@@ -1,8 +1,11 @@
@props([
'status' => 'Stopped',
'noLoading' => false,
])
<div class="flex items-center">
<x-loading wire:loading.delay.longer />
@if (!$noLoading)
<x-loading wire:loading.delay.longer />
@endif
<span wire:loading.remove.delay.longer class="flex items-center">
<div class="badge badge-error "></div>
<div class="pl-2 pr-1 text-xs font-bold tracking-wider text-error">{{ str($status)->before(':')->headline() }}</div>

View File

@@ -1,14 +1,14 @@
<div x-init="$wire.checkProxy()" class="flex gap-2">
@if (data_get($server, 'proxy.status') === 'running')
<x-status.running status="Proxy Running" />
<x-status.running status="Proxy Running" noLoading />
@elseif (data_get($server, 'proxy.status') === 'restarting')
<x-status.restarting status="Proxy Restarting" />
<x-status.restarting status="Proxy Restarting" noLoading />
@elseif (data_get($server, 'proxy.force_stop'))
<x-status.stopped status="Proxy Stopped" />
<x-status.stopped status="Proxy Stopped" noLoading />
@elseif (data_get($server, 'proxy.status') === 'exited')
<x-status.stopped status="Proxy Exited" />
<x-status.stopped status="Proxy Exited" noLoading />
@else
<x-status.stopped status="Proxy Not Running" />
<x-status.stopped status="Proxy Not Running" noLoading />
@endif
<x-forms.button wire:click='checkProxy(true)'>Refresh</x-forms.button>
</div>