This commit is contained in:
Andras Bacsai
2023-06-30 21:22:14 +02:00
parent 55d5b1e8da
commit b10ce8ea2d
6 changed files with 589 additions and 110 deletions

View File

@@ -17,12 +17,12 @@
<span class="flex flex-col">
@if (decode_remote_command_output($application_deployment_queue)->count() > 0)
@foreach (decode_remote_command_output($application_deployment_queue) as $line)
<span @class([
'font-mono break-all',
<div @class([
'font-mono break-all whitespace-pre-wrap',
'text-neutral-400' => $line['type'] == 'stdout',
'text-error' => $line['type'] == 'stderr',
])>
[{{ $line['timestamp'] }}] {{ $line['output'] }}</span>
'text-warning' => $line['hidden'],
])>[{{ $line['timestamp'] }}] @if ($line['hidden'])<br>Command: {{ $line['command'] }} <br>Output: @endif{{ $line['output'] }}@if ($line['hidden']) @endif</div>
@endforeach
@else
<span class="font-mono text-neutral-400">No logs yet.</span>