19 lines
716 B
PHP
19 lines
716 B
PHP
@php use App\Actions\CoolifyTask\RunRemoteProcess; @endphp
|
|
<div>
|
|
@if ($this->activity)
|
|
@if (isset($header))
|
|
<div class="flex gap-2 pb-2">
|
|
<h2>{{ $header }}</h2>
|
|
@if ($isPollingActive)
|
|
<x-loading />
|
|
@endif
|
|
</div>
|
|
@endif
|
|
<div
|
|
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 text-white">
|
|
|
|
<pre class="font-mono whitespace-pre-wrap" @if ($isPollingActive) wire:poll.2000ms="polling" @endif>{{ RunRemoteProcess::decodeOutput($this->activity) }}</pre>
|
|
</div>
|
|
@endif
|
|
</div>
|