mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-18 04:59:31 +00:00
ui: multiple server view
This commit is contained in:
@@ -2,9 +2,10 @@
|
|||||||
<h2>Servers</h2>
|
<h2>Servers</h2>
|
||||||
<div class="">Server related configurations.</div>
|
<div class="">Server related configurations.</div>
|
||||||
<div class="grid grid-cols-1 gap-4 py-4">
|
<div class="grid grid-cols-1 gap-4 py-4">
|
||||||
<div class="flex gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<div class="relative flex flex-col bg-white border cursor-default dark:text-white box-without-bg dark:bg-coolgray-100 w-96 dark:border-black">
|
<h3>Primary Server</h3>
|
||||||
<div class="text-xl font-bold">Primary Server</div>
|
<div
|
||||||
|
class="relative flex flex-col bg-white border cursor-default dark:text-white box-without-bg dark:bg-coolgray-100 w-96 dark:border-black">
|
||||||
@if (str($resource->realStatus())->startsWith('running'))
|
@if (str($resource->realStatus())->startsWith('running'))
|
||||||
<div title="{{ $resource->realStatus() }}" class="absolute bg-success -top-1 -left-1 badge ">
|
<div title="{{ $resource->realStatus() }}" class="absolute bg-success -top-1 -left-1 badge ">
|
||||||
</div>
|
</div>
|
||||||
@@ -12,26 +13,29 @@
|
|||||||
<div title="{{ $resource->realStatus() }}" class="absolute bg-error -top-1 -left-1 badge ">
|
<div title="{{ $resource->realStatus() }}" class="absolute bg-error -top-1 -left-1 badge ">
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<div>
|
<div class="box-title">
|
||||||
Server: {{ data_get($resource, 'destination.server.name') }}
|
Server: {{ data_get($resource, 'destination.server.name') }}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="box-description">
|
||||||
Network: {{ data_get($resource, 'destination.network') }}
|
Network: {{ data_get($resource, 'destination.network') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@if ($resource?->additional_networks?->count() > 0)
|
@if ($resource?->additional_networks?->count() > 0)
|
||||||
|
<div>
|
||||||
<x-forms.button
|
<x-forms.button
|
||||||
wire:click="redeploy('{{ data_get($resource, 'destination.id') }}','{{ data_get($resource, 'destination.server.id') }}')">Deploy</x-forms.button>
|
wire:click="redeploy('{{ data_get($resource, 'destination.id') }}','{{ data_get($resource, 'destination.server.id') }}')">Deploy</x-forms.button>
|
||||||
@if (str($resource->realStatus())->startsWith('running'))
|
@if (str($resource->realStatus())->startsWith('running'))
|
||||||
<x-forms.button isError
|
<x-forms.button isError
|
||||||
wire:click="stop('{{ data_get($resource, 'destination.server.id') }}')">Stop</x-forms.button>
|
wire:click="stop('{{ data_get($resource, 'destination.server.id') }}')">Stop</x-forms.button>
|
||||||
@endif
|
@endif
|
||||||
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@if ($resource?->additional_networks?->count() > 0)
|
@if ($resource?->additional_networks?->count() > 0)
|
||||||
|
<h3>Additional Server(s)</h3>
|
||||||
@foreach ($resource->additional_networks as $destination)
|
@foreach ($resource->additional_networks as $destination)
|
||||||
<div class="flex gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<div class="relative flex flex-col box w-96">
|
<div class="relative flex flex-col w-full box">
|
||||||
@if (str(data_get($destination, 'pivot.status'))->startsWith('running'))
|
@if (str(data_get($destination, 'pivot.status'))->startsWith('running'))
|
||||||
<div title="{{ data_get($destination, 'pivot.status') }}"
|
<div title="{{ data_get($destination, 'pivot.status') }}"
|
||||||
class="absolute bg-success -top-1 -left-1 badge "></div>
|
class="absolute bg-success -top-1 -left-1 badge "></div>
|
||||||
@@ -40,12 +44,15 @@
|
|||||||
class="absolute bg-error -top-1 -left-1 badge "></div>
|
class="absolute bg-error -top-1 -left-1 badge "></div>
|
||||||
@endif
|
@endif
|
||||||
<div>
|
<div>
|
||||||
|
<div class="box-title">
|
||||||
Server: {{ data_get($destination, 'server.name') }}
|
Server: {{ data_get($destination, 'server.name') }}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="box-description">
|
||||||
Network: {{ data_get($destination, 'network') }}
|
Network: {{ data_get($destination, 'network') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex gap-2">
|
||||||
<x-forms.button
|
<x-forms.button
|
||||||
wire:click="redeploy('{{ data_get($destination, 'id') }}','{{ data_get($destination, 'server.id') }}')">Deploy</x-forms.button>
|
wire:click="redeploy('{{ data_get($destination, 'id') }}','{{ data_get($destination, 'server.id') }}')">Deploy</x-forms.button>
|
||||||
<x-forms.button
|
<x-forms.button
|
||||||
@@ -61,7 +68,7 @@
|
|||||||
This will stop the running application in this server and remove it as a deployment
|
This will stop the running application in this server and remove it as a deployment
|
||||||
destination.<br><br>Please think again.
|
destination.<br><br>Please think again.
|
||||||
</x-modal-confirmation>
|
</x-modal-confirmation>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
@@ -75,12 +82,14 @@
|
|||||||
<div wire:click="addServer('{{ $network->id }}','{{ data_get($network, 'server.id') }}')"
|
<div wire:click="addServer('{{ $network->id }}','{{ data_get($network, 'server.id') }}')"
|
||||||
class="relative flex flex-col cursor-default dark:text-white box w-96">
|
class="relative flex flex-col cursor-default dark:text-white box w-96">
|
||||||
<div>
|
<div>
|
||||||
|
<div class="box-title">
|
||||||
Server: {{ data_get($network, 'server.name') }}
|
Server: {{ data_get($network, 'server.name') }}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="box-description">
|
||||||
Network: {{ data_get($network, 'name') }}
|
Network: {{ data_get($network, 'name') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
|
|||||||
Reference in New Issue
Block a user