Refactor server navbar and proxy components
This commit is contained in:
parent
a8ddf4c2df
commit
644f15e80d
@ -2,13 +2,7 @@
|
|||||||
<livewire:server.proxy.modal :server="$server" />
|
<livewire:server.proxy.modal :server="$server" />
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<h1>Server</h1>
|
<h1>Server</h1>
|
||||||
@if (
|
|
||||||
$server->proxyType() !== 'NONE' &&
|
|
||||||
$server->isFunctional() &&
|
|
||||||
!$server->isSwarmWorker() &&
|
|
||||||
!$server->settings->is_build_server)
|
|
||||||
<livewire:server.proxy.status :server="$server" />
|
<livewire:server.proxy.status :server="$server" />
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
<div class="subtitle">{{ data_get($server, 'name') }}.</div>
|
<div class="subtitle">{{ data_get($server, 'name') }}.</div>
|
||||||
<nav class="navbar-main">
|
<nav class="navbar-main">
|
||||||
@ -52,12 +46,6 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="flex-1"></div>
|
<div class="flex-1"></div>
|
||||||
@if (
|
|
||||||
$server->proxyType() !== 'NONE' &&
|
|
||||||
$server->isFunctional() &&
|
|
||||||
!$server->isSwarmWorker() &&
|
|
||||||
!$server->settings->is_build_server)
|
|
||||||
<livewire:server.proxy.deploy :server="$server" />
|
<livewire:server.proxy.deploy :server="$server" />
|
||||||
@endif
|
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<div>
|
<div>
|
||||||
@if ($server->isFunctional() && $server->proxyType() !== 'NONE')
|
@if (
|
||||||
|
$server->proxyType() !== 'NONE' &&
|
||||||
|
$server->isFunctional() &&
|
||||||
|
!$server->isSwarmWorker() &&
|
||||||
|
!$server->settings->is_build_server)
|
||||||
<x-slide-over closeWithX fullScreen @startproxy.window="slideOverOpen = true">
|
<x-slide-over closeWithX fullScreen @startproxy.window="slideOverOpen = true">
|
||||||
<x-slot:title>Proxy Status</x-slot:title>
|
<x-slot:title>Proxy Status</x-slot:title>
|
||||||
<x-slot:content>
|
<x-slot:content>
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
<div x-init="$wire.checkProxy()">
|
<div x-init="$wire.checkProxy()">
|
||||||
@if ($server->isFunctional())
|
@if (
|
||||||
|
$server->proxyType() !== 'NONE' &&
|
||||||
|
$server->isFunctional() &&
|
||||||
|
!$server->isSwarmWorker() &&
|
||||||
|
!$server->settings->is_build_server)
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
@if (data_get($server, 'proxy.status') === 'running')
|
@if (data_get($server, 'proxy.status') === 'running')
|
||||||
<x-status.running status="Proxy Running" />
|
<x-status.running status="Proxy Running" />
|
||||||
|
Loading…
Reference in New Issue
Block a user