Skip to content

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.

fix: remove lazy loading until bug figured out

Andras Bacsai4c0624f48983
diff --git a/app/Livewire/Project/Application/Rollback.php b/app/Livewire/Project/Application/Rollback.php
index 7bd2d069b1..cd778f979e 100644
--- a/app/Livewire/Project/Application/Rollback.php
+++ b/app/Livewire/Project/Application/Rollback.php
@@ -18,7 +18,6 @@ class Rollback extends Component
{
$this->parameters = get_route_parameters();
}
-
public function rollbackImage($commit)
{
$deployment_uuid = new Cuid2(7);
diff --git a/resources/views/livewire/project/application/configuration.blade.php b/resources/views/livewire/project/application/configuration.blade.php
index 8767b101c1..4aaf96569c 100644
--- a/resources/views/livewire/project/application/configuration.blade.php
+++ b/resources/views/livewire/project/application/configuration.blade.php
@@ -83,48 +83,48 @@
<livewire:project.application.general :application="$application" />
</div>
<div x-cloak x-show="activeTab === 'swarm'" class="h-full">
- <livewire:project.application.swarm :application="$application" lazy />
+ <livewire:project.application.swarm :application="$application" />
</div>
<div x-cloak x-show="activeTab === 'advanced'" class="h-full">
- <livewire:project.application.advanced :application="$application" lazy />
+ <livewire:project.application.advanced :application="$application" />
</div>
<div x-cloak x-show="activeTab === 'environment-variables'">
- <livewire:project.shared.environment-variable.all :resource="$application" lazy />
+ <livewire:project.shared.environment-variable.all :resource="$application" />
</div>
@if ($application->git_based())
<div x-cloak x-show="activeTab === 'source'">
- <livewire:project.application.source :application="$application" lazy />
+ <livewire:project.application.source :application="$application" />
</div>
@endif
<div x-cloak x-show="activeTab === 'servers'">
- <livewire:project.shared.destination :resource="$application" :servers="$servers" lazy />
+ <livewire:project.shared.destination :resource="$application" :servers="$servers" />
</div>
<div x-cloak x-show="activeTab === 'storages'">
- <livewire:project.service.storage :resource="$application" lazy />
+ <livewire:project.service.storage :resource="$application" />
</div>
<div x-cloak x-show="activeTab === 'webhooks'">
- <livewire:project.shared.webhooks :resource="$application" lazy />
+ <livewire:project.shared.webhooks :resource="$application" />
</div>
<div x-cloak x-show="activeTab === 'previews'">
- <livewire:project.application.previews :application="$application" lazy />
+ <livewire:project.application.previews :application="$application" />
</div>
<div x-cloak x-show="activeTab === 'health'">
- <livewire:project.shared.health-checks :resource="$application" lazy />
+ <livewire:project.shared.health-checks :resource="$application" />
</div>
<div x-cloak x-show="activeTab === 'rollback'">
- <livewire:project.application.rollback :application="$application" lazy />
+ <livewire:project.application.rollback :application="$application" />
</div>
<div x-cloak x-show="activeTab === 'resource-limits'">
- <livewire:project.shared.resource-limits :resource="$application" lazy />
+ <livewire:project.shared.resource-limits :resource="$application" />
</div>
<div x-cloak x-show="activeTab === 'scheduled-tasks'">
- <livewire:project.shared.scheduled-task.all :resource="$application" lazy />
+ <livewire:project.shared.scheduled-task.all :resource="$application" />
</div>
<div x-cloak x-show="activeTab === 'resource-operations'">
- <livewire:project.shared.resource-operations :resource="$application" lazy />
+ <livewire:project.shared.resource-operations :resource="$application" />
</div>
<div x-cloak x-show="activeTab === 'tags'">
- <livewire:project.shared.tags :resource="$application" lazy />
+ <livewire:project.shared.tags :resource="$application" />
</div>
<div x-cloak x-show="activeTab === 'danger'">
<livewire:project.shared.danger :resource="$application" />
diff --git a/resources/views/livewire/project/application/previews.blade.php b/resources/views/livewire/project/application/previews.blade.php
index 6d1eb86141..487f2cccdd 100644
--- a/resources/views/livewire/project/application/previews.blade.php
+++ b/resources/views/livewire/project/application/previews.blade.php
@@ -57,7 +57,7 @@
<div class="pb-4">Previews</div>
<div class="flex flex-wrap gap-6">
@foreach ($application->previews as $preview)
- <div class="flex flex-col p-4 dark:bg-coolgray-200">
+ <div class="flex flex-col p-4 dark:bg-coolgray-100">
<div class="flex gap-2">PR #{{ data_get($preview, 'pull_request_id') }} |
@if (Str::of(data_get($preview, 'status'))->startsWith('running'))
<x-status.running :status="data_get($preview, 'status')" />
@@ -86,18 +86,20 @@
Redeploy
@endif
</x-forms.button>
- <a
- href="{{ route('project.application.deployment.index', [...$parameters, 'pull_request_id' => data_get($preview, 'pull_request_id')]) }}">
- <x-forms.button class="dark:bg-coolgray-500">
- Deployment Logs
- </x-forms.button>
- </a>
- <a
- href="{{ route('project.application.logs', [...$parameters, 'pull_request_id' => data_get($preview, 'pull_request_id')]) }}">
- <x-forms.button class="dark:bg-coolgray-500">
- Application Logs
- </x-forms.button>
- </a>
+ @if (count($parameters) > 0)
+ <a
+ href="{{ route('project.application.deployment.index', [...$parameters, 'pull_request_id' => data_get($preview, 'pull_request_id')]) }}">
+ <x-forms.button class="dark:bg-coolgray-500">
+ Deployment Logs
+ </x-forms.button>
+ </a>
+ <a
+ href="{{ route('project.application.logs', [...$parameters, 'pull_request_id' => data_get($preview, 'pull_request_id')]) }}">
+ <x-forms.button class="dark:bg-coolgray-500">
+ Application Logs
+ </x-forms.button>
+ </a>
+ @endif
<x-forms.button isError class="dark:bg-coolgray-500"
wire:click="stop({{ data_get($preview, 'pull_request_id') }})">Delete
</x-forms.button>
diff --git a/resources/views/livewire/project/application/rollback.blade.php b/resources/views/livewire/project/application/rollback.blade.php
index 0e92fd5741..6501155da8 100644
--- a/resources/views/livewire/project/application/rollback.blade.php
+++ b/resources/views/livewire/project/application/rollback.blade.php
@@ -9,7 +9,7 @@
<div class="flex flex-wrap">
@forelse ($images as $image)
<div class="w-2/4 p-2">
- <div class="bg-white border rounded dark:border-bg-black dark:bg-coolgray-100">
+ <div class="bg-white border rounded dark:border-black dark:bg-coolgray-100">
<div class="p-2">
<div class="">
@if (data_get($image, 'is_current'))
diff --git a/resources/views/livewire/project/service/configuration.blade.php b/resources/views/livewire/project/service/configuration.blade.php
index 44cecb2dcc..3c0e113e4b 100644
--- a/resources/views/livewire/project/service/configuration.blade.php
+++ b/resources/views/livewire/project/service/configuration.blade.php
@@ -75,7 +75,8 @@
<x-modal-input title="Edit Domains">
<x-slot:content>
<span class="cursor-pointer">
- <svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 dark:text-warning text-coollabs"
+ <svg xmlns="http://www.w3.org/2000/svg"
+ class="w-4 h-4 dark:text-warning text-coollabs"
viewBox="0 0 24 24">
<g fill="none" stroke="currentColor"
stroke-linecap="round" stroke-linejoin="round"
@@ -89,7 +90,8 @@
</span>
</x-slot:content>
<livewire:project.service.edit-domain
- applicationId="{{ $application->id }}" wire:key="edit-domain-{{ $application->id }}" />
+ applicationId="{{ $application->id }}"
+ wire:key="edit-domain-{{ $application->id }}" />
</x-modal-input>
</span>
@endif
@@ -160,29 +162,29 @@
<span class="dark:text-warning">Please modify storage layout in your Docker Compose file.</span>
@foreach ($applications as $application)
<livewire:project.service.storage wire:key="application-{{ $application->id }}"
- :resource="$application" lazy />
+ :resource="$application" />
@endforeach
@foreach ($databases as $database)
- <livewire:project.service.storage wire:key="database-{{ $database->id }}" :resource="$database" lazy />
+ <livewire:project.service.storage wire:key="database-{{ $database->id }}" :resource="$database" />
@endforeach
</div>
<div x-cloak x-show="activeTab === 'webhooks'">
- <livewire:project.shared.webhooks :resource="$service" lazy />
+ <livewire:project.shared.webhooks :resource="$service" />
</div>
<div x-cloak x-show="activeTab === 'logs'">
- <livewire:project.shared.logs :resource="$service" />
+ <livewire:project.shared.logs :resource="$service" />
</div>
<div x-cloak x-show="activeTab === 'execute-command'">
- <livewire:project.shared.execute-container-command :resource="$service" />
+ <livewire:project.shared.execute-container-command :resource="$service" />
</div>
<div x-cloak x-show="activeTab === 'environment-variables'">
- <livewire:project.shared.environment-variable.all :resource="$service" lazy />
+ <livewire:project.shared.environment-variable.all :resource="$service" />
</div>
<div x-cloak x-show="activeTab === 'resource-operations'">
- <livewire:project.shared.resource-operations :resource="$service" lazy />
+ <livewire:project.shared.resource-operations :resource="$service" />
</div>
<div x-cloak x-show="activeTab === 'tags'">
- <livewire:project.shared.tags :resource="$service" lazy />
+ <livewire:project.shared.tags :resource="$service" />
</div>
<div x-cloak x-show="activeTab === 'danger'">
<livewire:project.shared.danger :resource="$service" />