refactor(activity-monitor): consolidate activity monitoring logic and remove deprecated NewActivityMonitor component
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
@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
|
||||
class="scrollbar flex flex-col-reverse w-full overflow-y-auto border border-solid rounded-sm border-coolgray-300 max-h-[32rem] p-4 pt-6 text-xs dark:text-white">
|
||||
|
||||
<pre class="font-mono whitespace-pre-wrap" @if ($isPollingActive) wire:poll.1000ms="polling" @endif>{{ RunRemoteProcess::decodeOutput($this->activity) }}</pre>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@@ -120,7 +120,7 @@
|
||||
@endif
|
||||
|
||||
@endif
|
||||
<livewire:new-activity-monitor header="Docker Installation Logs" />
|
||||
<livewire:activity-monitor header="Docker Installation Logs" />
|
||||
@isset($error)
|
||||
<pre class="font-bold whitespace-pre-line text-error">{!! $error !!}</pre>
|
||||
@endisset
|
||||
|
||||
Reference in New Issue
Block a user