From be8ea78b1bb959340b8f7a05f5c0f36e484664e2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 1 Nov 2023 14:06:15 +0100 Subject: [PATCH] feat: deployment logs fullscreen --- resources/css/app.css | 2 +- .../application/deployment-logs.blade.php | 61 ++++++++++++------- .../project/shared/get-logs.blade.php | 2 +- 3 files changed, 42 insertions(+), 23 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index 76d7f19a5..246dc98df 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -122,5 +122,5 @@ tr td:first-child { @apply pt-2 pb-10; } .fullscreen { - @apply fixed top-0 left-0 w-full h-full z-[9999] bg-coolgray-200; + @apply fixed top-0 left-0 w-full h-full z-[9999] bg-coolgray-200 overflow-y-auto scrollbar ; } diff --git a/resources/views/livewire/project/application/deployment-logs.blade.php b/resources/views/livewire/project/application/deployment-logs.blade.php index f354083b3..a37f7e377 100644 --- a/resources/views/livewire/project/application/deployment-logs.blade.php +++ b/resources/views/livewire/project/application/deployment-logs.blade.php @@ -1,4 +1,4 @@ -
+
@if (data_get($application_deployment_queue, 'status') === 'in_progress')
Deployment is @@ -12,25 +12,44 @@ class="text-warning">{{ Str::headline(data_get($application_deployment_queue, 'status')) }}.
@endif -
- - @if (decode_remote_command_output($application_deployment_queue)->count() > 0) - @foreach (decode_remote_command_output($application_deployment_queue) as $line) -
$line['type'] == 'stdout', - 'text-error' => $line['type'] == 'stderr', - 'text-warning' => $line['hidden'], - ])>[{{ $line['timestamp'] }}] @if ($line['hidden']) -
COMMAND:
{{ $line['command'] }}

OUTPUT: - @endif{{ $line['output'] }}@if ($line['hidden']) - @endif -
- @endforeach - @else - No logs yet. - @endif -
+
+
+ + + + @if (decode_remote_command_output($application_deployment_queue)->count() > 0) + @foreach (decode_remote_command_output($application_deployment_queue) as $line) +
$line['type'] == 'stdout', + 'text-error' => $line['type'] == 'stderr', + 'text-warning' => $line['hidden'], + ])>[{{ $line['timestamp'] }}] @if ($line['hidden']) +
COMMAND:
{{ $line['command'] }}

OUTPUT: + @endif{{ $line['output'] }}@if ($line['hidden']) + @endif +
+ @endforeach + @else + No logs yet. + @endif +
+
diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.php index 3514d4cdb..ee1b6b07e 100644 --- a/resources/views/livewire/project/shared/get-logs.blade.php +++ b/resources/views/livewire/project/shared/get-logs.blade.php @@ -16,7 +16,7 @@
+ class="relative flex flex-col-reverse w-full p-4 pt-6 overflow-y-auto text-xs text-white border border-solid rounded scrollbar border-coolgray-300" :class="fullscreen ? '' : 'max-h-[32rem]'">