coolify/resources/views/livewire/activity-monitor.blade.php

25 lines
948 B
PHP
Raw Normal View History

@php use App\Actions\CoolifyTask\RunRemoteProcess; @endphp
2023-05-04 09:11:11 +02:00
<div>
2023-05-14 14:43:49 +02:00
@if ($this->activity)
@if (isset($header))
2023-06-06 08:43:01 +02:00
<div class="flex gap-2 pb-2">
2024-03-21 12:44:32 +01:00
<h3>{{ $header }}</h3>
2023-06-05 12:07:55 +02:00
@if ($isPollingActive)
2023-08-11 20:19:42 +02:00
<x-loading />
2023-06-05 12:07:55 +02:00
@endif
</div>
2023-06-02 15:15:12 +02:00
@endif
<div @class([
'flex flex-col-reverse w-full px-4 py-2 overflow-y-auto bg-white border border-solid rounded dark:text-white dark:bg-coolgray-100 scrollbar border-neutral-300 dark:border-coolgray-300',
'max-h-[48rem]' => $fullHeight,
'max-h-96' => !$fullHeight,
])>
<pre class="font-mono whitespace-pre-wrap" @if ($isPollingActive) wire:poll.1000ms="polling" @endif>{{ RunRemoteProcess::decodeOutput($this->activity) }}</pre>
2023-05-14 14:43:49 +02:00
</div>
2024-03-21 12:44:32 +01:00
@else
2024-03-22 11:34:15 +01:00
@if ($showWaiting)
2024-03-21 12:44:32 +01:00
<x-loading text="Waiting..." />
@endif
2023-05-14 14:43:49 +02:00
@endif
2023-05-03 07:23:45 +02:00
</div>