feat: healthcheck for apps
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
@props([
|
||||
'text' => 'Degraded',
|
||||
'status' => 'Degraded',
|
||||
])
|
||||
<x-loading wire:loading.delay />
|
||||
<div class="flex items-center gap-2" wire:loading.remove.delay.longer>
|
||||
<div class="badge badge-warning badge-xs"></div>
|
||||
<div class="text-xs font-medium tracking-wide text-warning">{{ $text }}</div>
|
||||
<div class="text-xs font-medium tracking-wide text-warning">{{ Str::headline($status) }}</div>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@if ($status === 'running')
|
||||
<x-status.running />
|
||||
@elseif($status === 'restarting')
|
||||
<x-status.restarting />
|
||||
@if (Str::of($status)->startsWith('running'))
|
||||
<x-status.running :status="$status" />
|
||||
@elseif(Str::of($status)->startsWith('restarting'))
|
||||
<x-status.restarting :status="$status" />
|
||||
@else
|
||||
<x-status.stopped />
|
||||
<x-status.stopped :status="$status" />
|
||||
@endif
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
@props([
|
||||
'text' => 'Restarting',
|
||||
'status' => 'Restarting',
|
||||
])
|
||||
<x-loading wire:loading.delay />
|
||||
<div class="flex items-center gap-2" wire:loading.remove.delay.longer>
|
||||
<div class="badge badge-warning badge-xs"></div>
|
||||
<div class="text-xs font-medium tracking-wide text-warning">{{ $text }}</div>
|
||||
<div class="text-xs font-medium tracking-wide text-warning">{{ Str::headline($status) }}</div>
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
@props([
|
||||
'text' => 'Running',
|
||||
'status' => 'Running',
|
||||
])
|
||||
<x-loading wire:loading.delay.longer />
|
||||
<div class="flex items-center gap-2 " wire:loading.remove.delay.longer>
|
||||
<div class="badge badge-success badge-xs"></div>
|
||||
<div class="text-xs font-medium tracking-wide text-success">{{ $text }}</div>
|
||||
<div class="text-xs font-medium tracking-wide text-success">{{ Str::headline($status) }}</div>
|
||||
</div>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
@if ($complexStatus === 'running')
|
||||
<x-status.running />
|
||||
@elseif($complexStatus === 'restarting')
|
||||
<x-status.restarting />
|
||||
@elseif($complexStatus === 'degraded')
|
||||
<x-status.degraded />
|
||||
@if (Str::of($complexStatus)->startsWith('running'))
|
||||
<x-status.running :status="$complexStatus" />
|
||||
@elseif(Str::of($complexStatus)->startsWith('restarting'))
|
||||
<x-status.restarting :status="$complexStatus" />
|
||||
@elseif(Str::of($complexStatus)->startsWith('degraded'))
|
||||
<x-status.degraded :status="$complexStatus" />
|
||||
@else
|
||||
<x-status.stopped />
|
||||
<x-status.stopped :status="$complexStatus" />
|
||||
@endif
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
@props([
|
||||
'text' => 'Stopped',
|
||||
'status' => 'Stopped',
|
||||
])
|
||||
<x-loading wire:loading.delay.longer />
|
||||
<div class="flex items-center gap-2 " wire:loading.remove.delay.longer>
|
||||
<div class="badge badge-error badge-xs"></div>
|
||||
<div class="text-xs font-medium tracking-wide text-error">{{ $text }}</div>
|
||||
<div class="text-xs font-medium tracking-wide text-error">{{ Str::headline($status) }}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user