2023-08-08 11:51:36 +02:00
|
|
|
@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)
|
2023-08-09 17:57:27 +02:00
|
|
|
@if (isset($header))
|
2023-06-06 08:43:01 +02:00
|
|
|
<div class="flex gap-2 pb-2">
|
2023-08-11 20:19:42 +02:00
|
|
|
<h2>{{ $header }}</h2>
|
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
|
2023-05-14 14:43:49 +02:00
|
|
|
<div
|
2023-09-26 14:45:52 +02: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 text-white">
|
2023-06-05 12:07:55 +02:00
|
|
|
|
2023-08-11 20:19:42 +02:00
|
|
|
<pre class="font-mono whitespace-pre-wrap" @if ($isPollingActive) wire:poll.2000ms="polling" @endif>{{ RunRemoteProcess::decodeOutput($this->activity) }}</pre>
|
2023-05-14 14:43:49 +02:00
|
|
|
</div>
|
|
|
|
@endif
|
2023-05-03 06:23:45 +01:00
|
|
|
</div>
|