An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: numberoflines should be number
Andras Bacsaib12f768c568e
diff --git a/app/Livewire/Project/Shared/GetLogs.php b/app/Livewire/Project/Shared/GetLogs.phpindex edcaf0f349..deccc875cd 100644--- a/app/Livewire/Project/Shared/GetLogs.php+++ b/app/Livewire/Project/Shared/GetLogs.php@@ -97,7 +97,7 @@ class GetLogs extends Componentif (! $refresh && ($this->resource?->getMorphClass() === 'App\Models\Service' || str($this->container)->contains('-pr-'))) {return;}- if (! $this->numberOfLines) {+ if ($this->numberOfLines <= 0) {$this->numberOfLines = 1000;}if ($this->container) {diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.phpindex b8e10890d4..22d797ea38 100644--- a/resources/views/livewire/project/shared/get-logs.blade.php+++ b/resources/views/livewire/project/shared/get-logs.blade.php@@ -33,7 +33,7 @@screen.scrollTop = 0;}}">- <div class="flex items-center gap-2 ">+ <div class="flex gap-2 items-center">@if ($resource?->type() === 'application' || str($resource?->type())->startsWith('standalone'))<h4>{{ $container }}</h4>@else@@ -46,9 +46,9 @@<x-loading wire:poll.2000ms='getLogs(true)' />@endif</div>- <form wire:submit='getLogs(true)' class="flex items-end gap-2 ">+ <form wire:submit='getLogs(true)' class="flex gap-2 items-end"><div class="w-96">- <x-forms.input label="Only Show Number of Lines" placeholder="1000" required+ <x-forms.input label="Only Show Number of Lines" placeholder="1000" type="number" requiredid="numberOfLines"></x-forms.input></div><x-forms.button type="submit">Refresh</x-forms.button>@@ -56,7 +56,7 @@<x-forms.checkbox instantSave label="Include Timestamps" id="showTimeStamps"></x-forms.checkbox></form><div :class="fullscreen ? 'fullscreen' : 'relative w-full py-4 mx-auto'">- <div class="flex flex-col-reverse w-full px-4 py-2 overflow-y-auto bg-white dark:text-white dark:bg-coolgray-100 scrollbar dark:border-coolgray-300"+ <div class="flex overflow-y-auto flex-col-reverse px-4 py-2 w-full bg-white dark:text-white dark:bg-coolgray-100 scrollbar dark:border-coolgray-300":class="fullscreen ? '' : 'max-h-96 border border-solid rounded'"><button title="Minimize" x-show="fullscreen" class="fixed top-4 right-4"x-on:click="makeFullscreen"><svg class="icon" viewBox="0 0 24 24"@@ -76,7 +76,7 @@stroke-width="2" d="M12 5v14m4-4l-4 4m-4-4l4 4" /></svg></button>- <button title="Fullscreen" x-show="!fullscreen" class="absolute top-5 right-1"+ <button title="Fullscreen" x-show="!fullscreen" class="absolute right-1 top-5"x-on:click="makeFullscreen"><svg class="icon" viewBox="0 0 24 24"xmlns="http://www.w3.org/2000/svg"><g fill="none">