a ton 👷‍♂️

This commit is contained in:
Andras Bacsai
2023-05-24 14:26:50 +02:00
parent 8677b1d85d
commit 6e7ee0ca48
67 changed files with 754 additions and 992 deletions

View File

@@ -9,10 +9,10 @@
<ul tabindex="0"
class="text-xs text-white normal-case rounded min-w-max dropdown-content menu bg-coolgray-200">
<li>
<div wire:click='start'>Restart</div>
<div wire:click='deploy'>Restart</div>
</li>
<li>
<div wire:click='forceRebuild'>Force deploy without cache</div>
<div wire:click='deploy(true)'>Force deploy without cache</div>
</li>
<li>
<div class="hover:bg-red-500" wire:click='stop'>Stop</div>
@@ -29,10 +29,10 @@
<ul tabindex="0"
class="text-xs text-white normal-case rounded min-w-max dropdown-content menu bg-coolgray-200">
<li>
<div wire:click='start'>Deploy</div>
<div wire:click='deploy'>Deploy</div>
</li>
<li>
<div wire:click='forceRebuild'>Deploy without cache</div>
<div wire:click='deploy(true)'>Deploy without cache</div>
</li>
</ul>
</div>

View File

@@ -0,0 +1,29 @@
<div class="flex flex-col gap-2 pt-2" wire:init='loadDeployments' wire:poll.5000ms='reloadDeployments'>
<div wire:loading wire:target='loadDeployments'>
<x-loading />
</div>
@foreach ($deployments as $deployment)
<a @class([
'bg-coolgray-200 p-2 border-l border-dashed transition-colors hover:no-underline',
'cursor-not-allowed hover:bg-coolgray-200' =>
$deployment->status === 'queued' ||
$deployment->status === 'cancelled by system',
'border-warning hover:bg-warning hover:text-black' =>
$deployment->status === 'in_progress',
'border-error hover:bg-error' => $deployment->status === 'error',
'border-success hover:bg-success' => $deployment->status === 'finished',
]) @if ($deployment->status !== 'cancelled by system' && $deployment->status !== 'queued')
href="{{ $current_url . '/' . $deployment->metadata['deployment_uuid'] }}"
@endif
class="hover:no-underline">
<div class="flex flex-col justify-start">
<div>
{{ $deployment->status }}
</div>
<div>
{{ $deployment->created_at }}
</div>
</div>
</a>
@endforeach
</div>

View File

@@ -1,19 +0,0 @@
<a @class([
'bg-coolgray-200 p-2 border-l border-dashed transition-colors hover:no-underline',
'border-warning hover:bg-warning hover:text-black' =>
$status === 'in_progress',
'border-primary hover:bg-primary' => $status === 'queued',
'border-error hover:bg-error' => $status === 'error',
'border-success hover:bg-success' => $status === 'finished',
]) @if ($status === 'in_progress' || $status === 'queued')
wire:poll.5000ms='polling'
@endif href="{{ url()->current() }}/{{ $deployment_uuid }}" class="hover:no-underline">
<div class="flex flex-col justify-start">
<div>
{{ $status }}
</div>
<div>
{{ $created_at }}
</div>
</div>
</a>