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
Refactor status component to use title instead of lastDeploymentInfo
Andras Bacsai388929be302c
diff --git a/resources/views/components/resources/breadcrumbs.blade.php b/resources/views/components/resources/breadcrumbs.blade.phpindex ea12495a12..f9733f63a8 100644--- a/resources/views/components/resources/breadcrumbs.blade.php+++ b/resources/views/components/resources/breadcrumbs.blade.php@@ -44,7 +44,7 @@@if ($resource->getMorphClass() == 'App\Models\Service')<x-status.services :service="$resource" />@else- <x-status.index :resource="$resource" :lastDeploymentInfo="$lastDeploymentInfo" :lastDeploymentLink="$lastDeploymentLink" />+ <x-status.index :resource="$resource" :title="$lastDeploymentInfo" :lastDeploymentLink="$lastDeploymentLink" />@endif</ol></nav>diff --git a/resources/views/components/status/index.blade.php b/resources/views/components/status/index.blade.phpindex 0ef6528979..fcc2688e15 100644--- a/resources/views/components/status/index.blade.php+++ b/resources/views/components/status/index.blade.php@@ -1,14 +1,14 @@@props([- 'lastDeploymentInfo' => null,+ 'title' => null,'lastDeploymentLink' => null,'resource' => null,])@if (str($resource->status)->startsWith('running'))- <x-status.running :status="$resource->status" :lastDeploymentInfo="$lastDeploymentInfo" :lastDeploymentLink="$lastDeploymentLink" />+ <x-status.running :status="$resource->status" :title="$title" :lastDeploymentLink="$lastDeploymentLink" />@elseif(str($resource->status)->startsWith('restarting') ||str($resource->status)->startsWith('starting') ||str($resource->status)->startsWith('degraded'))- <x-status.restarting :status="$resource->status" :lastDeploymentInfo="$lastDeploymentInfo" :lastDeploymentLink="$lastDeploymentLink" />+ <x-status.restarting :status="$resource->status" :title="$title" :lastDeploymentLink="$lastDeploymentLink" />@else<x-status.stopped :status="$resource->status" />@endifdiff --git a/resources/views/components/status/restarting.blade.php b/resources/views/components/status/restarting.blade.phpindex c9b6c2127e..4314efa8b5 100644--- a/resources/views/components/status/restarting.blade.php+++ b/resources/views/components/status/restarting.blade.php@@ -1,6 +1,6 @@@props(['status' => 'Restarting',- 'lastDeploymentInfo' => null,+ 'title' => null,'lastDeploymentLink' => null,'noLoading' => false,])@@ -10,7 +10,7 @@@endif<span wire:loading.remove.delay.longer class="flex items-center"><div class="badge badge-warning "></div>- <div class="pl-2 pr-1 text-xs font-bold tracking-wider dark:text-warning" @if($lastDeploymentInfo) title="{{$lastDeploymentInfo}}" @endif>+ <div class="pl-2 pr-1 text-xs font-bold tracking-wider dark:text-warning" @if($title) title="{{$title}}" @endif>@if ($lastDeploymentLink)<a href="{{ $lastDeploymentLink }}" target="_blank" class="underline cursor-pointer">{{ str($status)->before(':')->headline() }}diff --git a/resources/views/components/status/running.blade.php b/resources/views/components/status/running.blade.phpindex 8bb45b8843..0e0f08fa45 100644--- a/resources/views/components/status/running.blade.php+++ b/resources/views/components/status/running.blade.php@@ -1,6 +1,6 @@@props(['status' => 'Running',- 'lastDeploymentInfo' => null,+ 'title' => null,'lastDeploymentLink' => null,'noLoading' => false,])@@ -10,7 +10,7 @@@endif<span wire:loading.remove.delay.longer class="flex items-center"><div class="badge badge-success "></div>- <div class="pl-2 pr-1 text-xs font-bold tracking-wider text-success" @if($lastDeploymentInfo) title="{{$lastDeploymentInfo}}" @endif>+ <div class="pl-2 pr-1 text-xs font-bold tracking-wider text-success" @if($title) title="{{$title}}" @endif>@if ($lastDeploymentLink)<a href="{{ $lastDeploymentLink }}" target="_blank" class="underline cursor-pointer">{{ str($status)->before(':')->headline() }}diff --git a/resources/views/livewire/project/application/heading.blade.php b/resources/views/livewire/project/application/heading.blade.phpindex 04b65eef97..8f3d1d15c8 100644--- a/resources/views/livewire/project/application/heading.blade.php+++ b/resources/views/livewire/project/application/heading.blade.php@@ -1,5 +1,5 @@<nav wire:poll.10000ms="check_status">- <x-resources.breadcrumbs :resource="$application" :parameters="$parameters" :lastDeploymentInfo="$lastDeploymentInfo" :lastDeploymentLink="$lastDeploymentLink" />+ <x-resources.breadcrumbs :resource="$application" :parameters="$parameters" :title="$lastDeploymentInfo" :lastDeploymentLink="$lastDeploymentLink" /><div class="navbar-main"><nav class="flex flex-shrink-0 gap-6 items-center whitespace-nowrap scrollbar min-h-10"><a href="{{ route('project.application.configuration', $parameters) }}">diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.phpindex a184a308ab..7365fc1b13 100644--- a/resources/views/livewire/server/form.blade.php+++ b/resources/views/livewire/server/form.blade.php@@ -165,10 +165,10 @@<div class="flex gap-2 items-center"wire:poll.{{ $server->settings->sentinel_push_interval_seconds }}s="checkSyncStatus">@if ($server->isSentinelLive())- <x-status.running status="In-sync" noLoading />+ <x-status.running status="In sync" noLoading title="{{$server->sentinel_updated_at}}" /><x-forms.button wire:click='restartSentinel'>Restart</x-forms.button>@else- <x-status.stopped status="Out-of-sync" noLoading />+ <x-status.stopped status="Out of sync" noLoading title="{{$server->sentinel_updated_at}}" /><x-forms.button wire:click='restartSentinel'>Sync</x-forms.button>@endif</div>