2024-02-05 13:40:54 +00:00
|
|
|
@php use App\Actions\CoolifyTask\RunRemoteProcess; @endphp
|
|
|
|
<div>
|
|
|
|
@if ($this->activity)
|
|
|
|
@if (isset($header))
|
|
|
|
<div class="flex gap-2 pb-2">
|
|
|
|
{{ $header }}
|
|
|
|
@if ($isPollingActive)
|
|
|
|
<x-loading />
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<div
|
2024-03-24 15:00:25 +00:00
|
|
|
class="scrollbar flex flex-col-reverse w-full overflow-y-auto border border-solid rounded border-coolgray-300 max-h-[32rem] p-4 pt-6 text-xs dark:text-white">
|
2024-02-05 13:40:54 +00:00
|
|
|
|
|
|
|
<pre class="font-mono whitespace-pre-wrap" @if ($isPollingActive) wire:poll.1000ms="polling" @endif>{{ RunRemoteProcess::decodeOutput($this->activity) }}</pre>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|