2023-08-08 09:51:36 +00:00
|
|
|
@php use App\Actions\CoolifyTask\RunRemoteProcess; @endphp
|
2023-05-04 07:11:11 +00:00
|
|
|
<div>
|
2023-05-14 12:43:49 +00:00
|
|
|
@if ($this->activity)
|
2023-08-09 15:57:27 +00:00
|
|
|
@if (isset($header))
|
2023-06-06 06:43:01 +00:00
|
|
|
<div class="flex gap-2 pb-2">
|
2024-03-21 11:44:32 +00:00
|
|
|
<h3>{{ $header }}</h3>
|
2023-06-05 10:07:55 +00:00
|
|
|
@if ($isPollingActive)
|
2023-08-11 18:19:42 +00:00
|
|
|
<x-loading />
|
2023-06-05 10:07:55 +00:00
|
|
|
@endif
|
|
|
|
</div>
|
2023-06-02 13:15:12 +00:00
|
|
|
@endif
|
2024-04-16 10:41:13 +00:00
|
|
|
<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',
|
|
|
|
'h-full' => $fullHeight,
|
|
|
|
'max-h-96' => !$fullHeight,
|
|
|
|
])>
|
|
|
|
<pre class="max-h-screen font-mono whitespace-pre-wrap" @if ($isPollingActive) wire:poll.1000ms="polling" @endif>{{ RunRemoteProcess::decodeOutput($this->activity) }}</pre>
|
2023-05-14 12:43:49 +00:00
|
|
|
</div>
|
2024-03-21 11:44:32 +00:00
|
|
|
@else
|
2024-03-22 10:34:15 +00:00
|
|
|
@if ($showWaiting)
|
2024-03-21 11:44:32 +00:00
|
|
|
<x-loading text="Waiting..." />
|
|
|
|
@endif
|
2023-05-14 12:43:49 +00:00
|
|
|
@endif
|
2023-05-03 05:23:45 +00:00
|
|
|
</div>
|