2023-05-04 07:11:11 +00:00
|
|
|
<div>
|
2023-05-14 12:43:49 +00:00
|
|
|
@if ($this->activity)
|
2023-06-02 13:15:12 +00:00
|
|
|
@if ($header)
|
2023-06-06 06:43:01 +00:00
|
|
|
<div class="flex gap-2 pb-2">
|
2023-06-05 10:07:55 +00:00
|
|
|
<h2>Logs</h2>
|
|
|
|
@if ($isPollingActive)
|
|
|
|
<x-loading />
|
|
|
|
@endif
|
|
|
|
</div>
|
2023-06-02 13:15:12 +00:00
|
|
|
@endif
|
2023-05-14 12:43:49 +00:00
|
|
|
<div
|
2023-05-26 13:19:01 +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 text-xs text-white">
|
2023-06-05 10:07:55 +00:00
|
|
|
|
2023-05-23 07:53:24 +00:00
|
|
|
<pre class="font-mono whitespace-pre-wrap" @if ($isPollingActive) wire:poll.2000ms="polling" @endif>{{ \App\Actions\CoolifyTask\RunRemoteProcess::decodeOutput($this->activity) }}</pre>
|
2023-05-14 12:43:49 +00:00
|
|
|
{{-- @else
|
|
|
|
<pre class="whitespace-pre-wrap">Output will be here...</pre> --}}
|
|
|
|
</div>
|
|
|
|
@endif
|
2023-05-03 05:23:45 +00:00
|
|
|
</div>
|