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.

wip: migrate to livewire 3

Andras Bacsai718603e37e3c
diff --git a/app/Http/Livewire/ActivityMonitor.php b/app/Livewire/ActivityMonitor.php
similarity index 94%
rename from app/Http/Livewire/ActivityMonitor.php
rename to app/Livewire/ActivityMonitor.php
index 9ce37f9b35..2bfbe73485 100644
--- a/app/Http/Livewire/ActivityMonitor.php
+++ b/app/Livewire/ActivityMonitor.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire;
+namespace App\Livewire;
use App\Enums\ProcessStatus;
use Livewire\Component;
@@ -42,7 +42,7 @@ class ActivityMonitor extends Component
$this->setStatus(ProcessStatus::ERROR);
}
$this->isPollingActive = false;
- $this->emit('activityFinished');
+ $this->dispatch('activityFinished');
}
}
diff --git a/app/Http/Livewire/Boarding/Index.php b/app/Livewire/Boarding/Index.php
similarity index 95%
rename from app/Http/Livewire/Boarding/Index.php
rename to app/Livewire/Boarding/Index.php
index 19c51d5ce7..9c59f66abd 100644
--- a/app/Http/Livewire/Boarding/Index.php
+++ b/app/Livewire/Boarding/Index.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Boarding;
+namespace App\Livewire\Boarding;
use App\Actions\Server\InstallDocker;
use App\Models\PrivateKey;
@@ -88,7 +88,7 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
if ($this->selectedServerType === 'localhost') {
$this->createdServer = Server::find(0);
if (!$this->createdServer) {
- return $this->emit('error', 'Localhost server is not found. Something went wrong during installation. Please try to reinstall or contact support.');
+ return $this->dispatch('error', 'Localhost server is not found. Something went wrong during installation. Please try to reinstall or contact support.');
}
$this->serverPublicKey = $this->createdServer->privateKey->publicKey();
return $this->validateServer('localhost');
@@ -110,7 +110,7 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
{
$this->createdServer = Server::find($this->selectedExistingServer);
if (!$this->createdServer) {
- $this->emit('error', 'Server is not found.');
+ $this->dispatch('error', 'Server is not found.');
$this->currentState = 'private-key';
return;
}
@@ -173,7 +173,7 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
$this->privateKey = formatPrivateKey($this->privateKey);
$foundServer = Server::whereIp($this->remoteServerHost)->first();
if ($foundServer) {
- return $this->emit('error', 'IP address is already in use by another team.');
+ return $this->dispatch('error', 'IP address is already in use by another team.');
}
$this->createdServer = Server::create([
'name' => $this->remoteServerName,
@@ -227,8 +227,8 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
try {
$this->dockerInstallationStarted = true;
$activity = InstallDocker::run($this->createdServer);
- $this->emit('installDocker');
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('installDocker');
+ $this->dispatch('newMonitorActivity', $activity->id);
} catch (\Throwable $e) {
$this->dockerInstallationStarted = false;
return handleError(error: $e, livewire: $this);
diff --git a/app/Http/Livewire/CheckLicense.php b/app/Livewire/CheckLicense.php
similarity index 94%
rename from app/Http/Livewire/CheckLicense.php
rename to app/Livewire/CheckLicense.php
index 3c2933bfc9..0b3677fc2c 100644
--- a/app/Http/Livewire/CheckLicense.php
+++ b/app/Livewire/CheckLicense.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire;
+namespace App\Livewire;
use App\Actions\License\CheckResaleLicense;
use App\Models\InstanceSettings;
@@ -33,7 +33,7 @@ class CheckLicense extends Component
if ($this->settings->resale_license) {
try {
CheckResaleLicense::run();
- $this->emit('reloadWindow');
+ $this->dispatch('reloadWindow');
} catch (\Throwable $e) {
session()->flash('error', 'Something went wrong. Please contact support. <br>Error: ' . $e->getMessage());
ray($e->getMessage());
diff --git a/app/Http/Livewire/Dashboard.php b/app/Livewire/Dashboard.php
similarity index 96%
rename from app/Http/Livewire/Dashboard.php
rename to app/Livewire/Dashboard.php
index 05bef207db..51d964a29c 100644
--- a/app/Http/Livewire/Dashboard.php
+++ b/app/Livewire/Dashboard.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire;
+namespace App\Livewire;
use App\Models\Project;
use App\Models\Server;
diff --git a/app/Http/Livewire/Destination/Form.php b/app/Livewire/Destination/Form.php
similarity index 88%
rename from app/Http/Livewire/Destination/Form.php
rename to app/Livewire/Destination/Form.php
index 4f1bbc693d..b59708303d 100644
--- a/app/Http/Livewire/Destination/Form.php
+++ b/app/Livewire/Destination/Form.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Destination;
+namespace App\Livewire\Destination;
use Livewire\Component;
@@ -30,7 +30,7 @@ class Form extends Component
try {
if ($this->destination->getMorphClass() === 'App\Models\StandaloneDocker') {
if ($this->destination->attachedTo()) {
- return $this->emit('error', 'You must delete all resources before deleting this destination.');
+ return $this->dispatch('error', 'You must delete all resources before deleting this destination.');
}
instant_remote_process(["docker network disconnect {$this->destination->network} coolify-proxy"], $this->destination->server, throwError: false);
instant_remote_process(['docker network rm -f ' . $this->destination->network], $this->destination->server);
diff --git a/app/Http/Livewire/Destination/New/StandaloneDocker.php b/app/Livewire/Destination/New/StandaloneDocker.php
similarity index 95%
rename from app/Http/Livewire/Destination/New/StandaloneDocker.php
rename to app/Livewire/Destination/New/StandaloneDocker.php
index 75ceb1a0bb..6634214abd 100644
--- a/app/Http/Livewire/Destination/New/StandaloneDocker.php
+++ b/app/Livewire/Destination/New/StandaloneDocker.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Destination\New;
+namespace App\Livewire\Destination\New;
use App\Models\Server;
use App\Models\StandaloneDocker as ModelsStandaloneDocker;
@@ -60,7 +60,7 @@ class StandaloneDocker extends Component
$found = $this->server->standaloneDockers()->where('network', $this->network)->first();
if ($found) {
$this->createNetworkAndAttachToProxy();
- $this->emit('error', 'Network already added to this server.');
+ $this->dispatch('error', 'Network already added to this server.');
return;
} else {
$docker = ModelsStandaloneDocker::create([
diff --git a/app/Http/Livewire/Destination/Show.php b/app/Livewire/Destination/Show.php
similarity index 89%
rename from app/Http/Livewire/Destination/Show.php
rename to app/Livewire/Destination/Show.php
index d68537ac4f..77495c83e1 100644
--- a/app/Http/Livewire/Destination/Show.php
+++ b/app/Livewire/Destination/Show.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Destination;
+namespace App\Livewire\Destination;
use App\Models\Server;
use Illuminate\Support\Collection;
@@ -21,7 +21,7 @@ class Show extends Component
return !$alreadyAddedNetworks->contains('network', $network['Name']);
});
if ($this->networks->count() === 0) {
- $this->emit('success', 'No new networks found.');
+ $this->dispatch('success', 'No new networks found.');
}
}
}
diff --git a/app/Http/Livewire/Dev/Compose.php b/app/Livewire/Dev/Compose.php
similarity index 95%
rename from app/Http/Livewire/Dev/Compose.php
rename to app/Livewire/Dev/Compose.php
index d3a0ee4e57..ec2c4f54d2 100644
--- a/app/Http/Livewire/Dev/Compose.php
+++ b/app/Livewire/Dev/Compose.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Dev;
+namespace App\Livewire\Dev;
use Livewire\Component;
diff --git a/app/Http/Livewire/ForcePasswordReset.php b/app/Livewire/ForcePasswordReset.php
similarity index 97%
rename from app/Http/Livewire/ForcePasswordReset.php
rename to app/Livewire/ForcePasswordReset.php
index 64612faf98..e5a9a079a4 100644
--- a/app/Http/Livewire/ForcePasswordReset.php
+++ b/app/Livewire/ForcePasswordReset.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire;
+namespace App\Livewire;
use Illuminate\Support\Facades\Hash;
use DanHarrin\LivewireRateLimiting\WithRateLimiting;
diff --git a/app/Http/Livewire/Help.php b/app/Livewire/Help.php
similarity index 90%
rename from app/Http/Livewire/Help.php
rename to app/Livewire/Help.php
index 7cb2facef5..5e0876f89b 100644
--- a/app/Http/Livewire/Help.php
+++ b/app/Livewire/Help.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire;
+namespace App\Livewire;
use DanHarrin\LivewireRateLimiting\WithRateLimiting;
use Illuminate\Notifications\Messages\MailMessage;
@@ -42,7 +42,7 @@ class Help extends Component
);
$mail->subject("[HELP - {$subscriptionType}]: {$this->subject}");
send_user_an_email($mail, auth()->user()?->email, '[email protected]');
- $this->emit('success', 'Your message has been sent successfully. <br>We will get in touch with you as soon as possible.');
+ $this->dispatch('success', 'Your message has been sent successfully. <br>We will get in touch with you as soon as possible.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Modal/EditCompose.php b/app/Livewire/Modal/EditCompose.php
similarity index 76%
rename from app/Http/Livewire/Modal/EditCompose.php
rename to app/Livewire/Modal/EditCompose.php
index 2ed129f9d4..e5222404f5 100644
--- a/app/Http/Livewire/Modal/EditCompose.php
+++ b/app/Livewire/Modal/EditCompose.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Modal;
+namespace App\Livewire\Modal;
use App\Models\Service;
use Livewire\Component;
@@ -22,8 +22,8 @@ class EditCompose extends ModalComponent
return view('livewire.modal.edit-compose');
}
public function submit() {
- $this->emit('warning', "Saving new docker compose...");
- $this->emit('saveCompose', $this->service->docker_compose_raw);
+ $this->dispatch('warning', "Saving new docker compose...");
+ $this->dispatch('saveCompose', $this->service->docker_compose_raw);
$this->closeModal();
}
}
diff --git a/app/Http/Livewire/Notifications/DiscordSettings.php b/app/Livewire/Notifications/DiscordSettings.php
similarity index 89%
rename from app/Http/Livewire/Notifications/DiscordSettings.php
rename to app/Livewire/Notifications/DiscordSettings.php
index f39ea91759..cf8b116d40 100644
--- a/app/Http/Livewire/Notifications/DiscordSettings.php
+++ b/app/Livewire/Notifications/DiscordSettings.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Notifications;
+namespace App\Livewire\Notifications;
use App\Models\Team;
use App\Notifications\Test;
@@ -47,12 +47,12 @@ class DiscordSettings extends Component
{
$this->team->save();
refreshSession();
- $this->emit('success', 'Settings saved.');
+ $this->dispatch('success', 'Settings saved.');
}
public function sendTestNotification()
{
$this->team->notify(new Test());
- $this->emit('success', 'Test notification sent.');
+ $this->dispatch('success', 'Test notification sent.');
}
}
diff --git a/app/Http/Livewire/Notifications/EmailSettings.php b/app/Livewire/Notifications/EmailSettings.php
similarity index 90%
rename from app/Http/Livewire/Notifications/EmailSettings.php
rename to app/Livewire/Notifications/EmailSettings.php
index 68c0b931b7..f3b1218510 100644
--- a/app/Http/Livewire/Notifications/EmailSettings.php
+++ b/app/Livewire/Notifications/EmailSettings.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Notifications;
+namespace App\Livewire\Notifications;
use App\Models\InstanceSettings;
use App\Models\Team;
@@ -63,7 +63,7 @@ class EmailSettings extends Component
]);
$this->team->save();
refreshSession();
- $this->emit('success', 'Settings saved successfully.');
+ $this->dispatch('success', 'Settings saved successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
@@ -71,7 +71,7 @@ class EmailSettings extends Component
public function sendTestNotification()
{
$this->team->notify(new Test($this->emails));
- $this->emit('success', 'Test Email sent successfully.');
+ $this->dispatch('success', 'Test Email sent successfully.');
}
public function instantSaveInstance()
{
@@ -83,7 +83,7 @@ class EmailSettings extends Component
$this->team->resend_enabled = false;
$this->team->save();
refreshSession();
- $this->emit('success', 'Settings saved successfully.');
+ $this->dispatch('success', 'Settings saved successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
@@ -113,7 +113,7 @@ class EmailSettings extends Component
{
$this->team->save();
refreshSession();
- $this->emit('success', 'Settings saved.');
+ $this->dispatch('success', 'Settings saved.');
}
public function submit()
{
@@ -131,7 +131,7 @@ class EmailSettings extends Component
]);
$this->team->save();
refreshSession();
- $this->emit('success', 'Settings saved successfully.');
+ $this->dispatch('success', 'Settings saved successfully.');
} catch (\Throwable $e) {
$this->team->smtp_enabled = false;
return handleError($e, $this);
@@ -148,7 +148,7 @@ class EmailSettings extends Component
]);
$this->team->save();
refreshSession();
- $this->emit('success', 'Settings saved successfully.');
+ $this->dispatch('success', 'Settings saved successfully.');
} catch (\Throwable $e) {
$this->team->resend_enabled = false;
return handleError($e, $this);
@@ -173,7 +173,7 @@ class EmailSettings extends Component
]);
refreshSession();
$this->team = $team;
- $this->emit('success', 'Settings saved.');
+ $this->dispatch('success', 'Settings saved.');
return;
}
if ($settings->resend_enabled) {
@@ -184,9 +184,9 @@ class EmailSettings extends Component
]);
refreshSession();
$this->team = $team;
- $this->emit('success', 'Settings saved.');
+ $this->dispatch('success', 'Settings saved.');
return;
}
- $this->emit('error', 'Instance SMTP/Resend settings are not enabled.');
+ $this->dispatch('error', 'Instance SMTP/Resend settings are not enabled.');
}
}
diff --git a/app/Http/Livewire/Notifications/TelegramSettings.php b/app/Livewire/Notifications/TelegramSettings.php
similarity index 92%
rename from app/Http/Livewire/Notifications/TelegramSettings.php
rename to app/Livewire/Notifications/TelegramSettings.php
index 1f42000765..08f1be0056 100644
--- a/app/Http/Livewire/Notifications/TelegramSettings.php
+++ b/app/Livewire/Notifications/TelegramSettings.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Notifications;
+namespace App\Livewire\Notifications;
use App\Models\Team;
use App\Notifications\Test;
@@ -53,12 +53,12 @@ class TelegramSettings extends Component
{
$this->team->save();
refreshSession();
- $this->emit('success', 'Settings saved.');
+ $this->dispatch('success', 'Settings saved.');
}
public function sendTestNotification()
{
$this->team->notify(new Test());
- $this->emit('success', 'Test notification sent.');
+ $this->dispatch('success', 'Test notification sent.');
}
}
diff --git a/app/Http/Livewire/PrivateKey/Change.php b/app/Livewire/PrivateKey/Change.php
similarity index 86%
rename from app/Http/Livewire/PrivateKey/Change.php
rename to app/Livewire/PrivateKey/Change.php
index 7422123960..8177ea55b2 100644
--- a/app/Http/Livewire/PrivateKey/Change.php
+++ b/app/Livewire/PrivateKey/Change.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\PrivateKey;
+namespace App\Livewire\PrivateKey;
use App\Models\PrivateKey;
use Livewire\Component;
@@ -37,7 +37,7 @@ class Change extends Component
currentTeam()->privateKeys = PrivateKey::where('team_id', currentTeam()->id)->get();
return redirect()->route('security.private-key.index');
}
- $this->emit('error', 'This private key is in use and cannot be deleted. Please delete all servers, applications, and GitHub/GitLab apps that use this private key before deleting it.');
+ $this->dispatch('error', 'This private key is in use and cannot be deleted. Please delete all servers, applications, and GitHub/GitLab apps that use this private key before deleting it.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/PrivateKey/Create.php b/app/Livewire/PrivateKey/Create.php
similarity index 98%
rename from app/Http/Livewire/PrivateKey/Create.php
rename to app/Livewire/PrivateKey/Create.php
index 4dcaedbe2b..a82b6fb489 100644
--- a/app/Http/Livewire/PrivateKey/Create.php
+++ b/app/Livewire/PrivateKey/Create.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\PrivateKey;
+namespace App\Livewire\PrivateKey;
use App\Models\PrivateKey;
use DanHarrin\LivewireRateLimiting\WithRateLimiting;
diff --git a/app/Http/Livewire/Profile/Form.php b/app/Livewire/Profile/Form.php
similarity index 95%
rename from app/Http/Livewire/Profile/Form.php
rename to app/Livewire/Profile/Form.php
index 7288307029..e0695a81e9 100644
--- a/app/Http/Livewire/Profile/Form.php
+++ b/app/Livewire/Profile/Form.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Profile;
+namespace App\Livewire\Profile;
use App\Models\User;
use Livewire\Component;
diff --git a/app/Http/Livewire/Project/AddEmpty.php b/app/Livewire/Project/AddEmpty.php
similarity index 96%
rename from app/Http/Livewire/Project/AddEmpty.php
rename to app/Livewire/Project/AddEmpty.php
index 0f6c9873ef..5b358a61d0 100644
--- a/app/Http/Livewire/Project/AddEmpty.php
+++ b/app/Livewire/Project/AddEmpty.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project;
+namespace App\Livewire\Project;
use App\Models\Project;
use Livewire\Component;
diff --git a/app/Http/Livewire/Project/AddEnvironment.php b/app/Livewire/Project/AddEnvironment.php
similarity index 96%
rename from app/Http/Livewire/Project/AddEnvironment.php
rename to app/Livewire/Project/AddEnvironment.php
index 334dd78f97..be80c21e15 100644
--- a/app/Http/Livewire/Project/AddEnvironment.php
+++ b/app/Livewire/Project/AddEnvironment.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project;
+namespace App\Livewire\Project;
use App\Models\Environment;
use App\Models\Project;
diff --git a/app/Http/Livewire/Project/Application/Advanced.php b/app/Livewire/Project/Application/Advanced.php
similarity index 82%
rename from app/Http/Livewire/Project/Application/Advanced.php
rename to app/Livewire/Project/Application/Advanced.php
index 656c557172..9ad485f858 100644
--- a/app/Http/Livewire/Project/Application/Advanced.php
+++ b/app/Livewire/Project/Application/Advanced.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Models\Application;
use Livewire\Component;
@@ -26,26 +26,26 @@ class Advanced extends Component
if ($this->application->isLogDrainEnabled()) {
if (!$this->application->destination->server->isLogDrainEnabled()) {
$this->application->settings->is_log_drain_enabled = false;
- $this->emit('error', 'Log drain is not enabled on this server.');
+ $this->dispatch('error', 'Log drain is not enabled on this server.');
return;
}
}
if ($this->application->settings->is_force_https_enabled) {
- $this->emit('resetDefaultLabels', false);
+ $this->dispatch('resetDefaultLabels', false);
}
$this->application->settings->save();
- $this->emit('success', 'Settings saved.');
+ $this->dispatch('success', 'Settings saved.');
}
public function submit() {
if ($this->application->settings->gpu_count && $this->application->settings->gpu_device_ids) {
- $this->emit('error', 'You cannot set both GPU count and GPU device IDs.');
+ $this->dispatch('error', 'You cannot set both GPU count and GPU device IDs.');
$this->application->settings->gpu_count = null;
$this->application->settings->gpu_device_ids = null;
$this->application->settings->save();
return;
}
$this->application->settings->save();
- $this->emit('success', 'Settings saved.');
+ $this->dispatch('success', 'Settings saved.');
}
public function render()
{
diff --git a/app/Http/Livewire/Project/Application/Command.php b/app/Livewire/Project/Application/Command.php
similarity index 97%
rename from app/Http/Livewire/Project/Application/Command.php
rename to app/Livewire/Project/Application/Command.php
index 5fea572ee3..7d6bdb0f5f 100644
--- a/app/Http/Livewire/Project/Application/Command.php
+++ b/app/Livewire/Project/Application/Command.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Models\Application;
use App\Models\Server;
@@ -98,7 +98,7 @@ class Command extends Component
$exec = "docker exec {$this->container} {$this->command}";
}
$activity = remote_process([$exec], $this->server, ignore_errors: true);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Project/Application/Configuration.php b/app/Livewire/Project/Application/Configuration.php
similarity index 96%
rename from app/Http/Livewire/Project/Application/Configuration.php
rename to app/Livewire/Project/Application/Configuration.php
index 51d964d379..691cbb7c4b 100644
--- a/app/Http/Livewire/Project/Application/Configuration.php
+++ b/app/Livewire/Project/Application/Configuration.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Models\Application;
use App\Models\Server;
diff --git a/app/Http/Livewire/Project/Application/DeploymentLogs.php b/app/Livewire/Project/Application/DeploymentLogs.php
similarity index 88%
rename from app/Http/Livewire/Project/Application/DeploymentLogs.php
rename to app/Livewire/Project/Application/DeploymentLogs.php
index ac3c4a6cfd..d2d07035d6 100644
--- a/app/Http/Livewire/Project/Application/DeploymentLogs.php
+++ b/app/Livewire/Project/Application/DeploymentLogs.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Models\ApplicationDeploymentQueue;
use Livewire\Component;
@@ -18,7 +18,7 @@ class DeploymentLogs extends Component
public function polling()
{
- $this->emit('deploymentFinished');
+ $this->dispatch('deploymentFinished');
$this->application_deployment_queue->refresh();
if (data_get($this->application_deployment_queue, 'status') == 'finished' || data_get($this->application_deployment_queue, 'status') == 'failed') {
$this->isKeepAliveOn = false;
diff --git a/app/Http/Livewire/Project/Application/DeploymentNavbar.php b/app/Livewire/Project/Application/DeploymentNavbar.php
similarity index 97%
rename from app/Http/Livewire/Project/Application/DeploymentNavbar.php
rename to app/Livewire/Project/Application/DeploymentNavbar.php
index 2cee34d115..aa5ea3a2da 100644
--- a/app/Http/Livewire/Project/Application/DeploymentNavbar.php
+++ b/app/Livewire/Project/Application/DeploymentNavbar.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Enums\ApplicationDeploymentStatus;
use App\Models\Application;
@@ -35,7 +35,7 @@ class DeploymentNavbar extends Component
$this->application->settings->is_debug_enabled = !$this->application->settings->is_debug_enabled;
$this->application->settings->save();
$this->is_debug_enabled = $this->application->settings->is_debug_enabled;
- $this->emit('refreshQueue');
+ $this->dispatch('refreshQueue');
}
public function cancel()
diff --git a/app/Http/Livewire/Project/Application/Deployments.php b/app/Livewire/Project/Application/Deployments.php
similarity index 97%
rename from app/Http/Livewire/Project/Application/Deployments.php
rename to app/Livewire/Project/Application/Deployments.php
index 4f4d5ef67c..241167a8f3 100644
--- a/app/Http/Livewire/Project/Application/Deployments.php
+++ b/app/Livewire/Project/Application/Deployments.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Models\Application;
use Illuminate\Support\Collection;
diff --git a/app/Http/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.php
similarity index 96%
rename from app/Http/Livewire/Project/Application/General.php
rename to app/Livewire/Project/Application/General.php
index 376771203a..bc6838d5d0 100644
--- a/app/Http/Livewire/Project/Application/General.php
+++ b/app/Livewire/Project/Application/General.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Models\Application;
use Illuminate\Support\Collection;
@@ -101,7 +101,7 @@ class General extends Component
try {
$this->parsedServices = $this->application->parseCompose();
} catch (\Throwable $e) {
- $this->emit('error', $e->getMessage());
+ $this->dispatch('error', $e->getMessage());
}
$this->parsedServiceDomains = $this->application->docker_compose_domains ? json_decode($this->application->docker_compose_domains, true) : [];
@@ -121,7 +121,7 @@ class General extends Component
public function instantSave()
{
$this->application->settings->save();
- $this->emit('success', 'Settings saved.');
+ $this->dispatch('success', 'Settings saved.');
$this->application->refresh();
if ($this->ports_exposes !== $this->application->ports_exposes) {
$this->resetDefaultLabels(false);
@@ -134,7 +134,7 @@ class General extends Component
return;
}
['parsedServices' => $this->parsedServices, 'initialDockerComposeLocation' => $this->initialDockerComposeLocation, 'initialDockerComposePrLocation' => $this->initialDockerComposePrLocation] = $this->application->loadComposeFile($isInit);
- $this->emit('success', 'Docker compose file loaded.');
+ $this->dispatch('success', 'Docker compose file loaded.');
} catch (\Throwable $e) {
$this->application->docker_compose_location = $this->initialDockerComposeLocation;
$this->application->docker_compose_pr_location = $this->initialDockerComposePrLocation;
@@ -151,7 +151,7 @@ class General extends Component
$this->parsedServiceDomains[$serviceName]['domain'] = $domain;
$this->application->docker_compose_domains = json_encode($this->parsedServiceDomains);
$this->application->save();
- $this->emit('success', 'Domain generated.');
+ $this->dispatch('success', 'Domain generated.');
}
return $domain;
}
@@ -196,7 +196,7 @@ class General extends Component
public function updatedApplicationFqdn()
{
$this->resetDefaultLabels(false);
- $this->emit('success', 'Labels reseted to default!');
+ $this->dispatch('success', 'Labels reseted to default!');
}
public function submit($showToaster = true)
{
@@ -220,6 +220,7 @@ class General extends Component
});
$this->application->fqdn = $domains->implode(',');
}
+
if (data_get($this->application, 'dockerfile')) {
$port = get_port_from_dockerfile($this->application->dockerfile);
if ($port && !$this->application->ports_exposes) {
@@ -241,7 +242,7 @@ class General extends Component
$this->parsedServices = $this->application->parseCompose();
}
$this->application->save();
- $showToaster && $this->emit('success', 'Application settings updated!');
+ $showToaster && $this->dispatch('success', 'Application settings updated!');
} catch (\Throwable $e) {
return handleError($e, $this);
} finally {
diff --git a/app/Http/Livewire/Project/Application/Heading.php b/app/Livewire/Project/Application/Heading.php
similarity index 93%
rename from app/Http/Livewire/Project/Application/Heading.php
rename to app/Livewire/Project/Application/Heading.php
index 3d5af34da8..0e4c4e4584 100644
--- a/app/Http/Livewire/Project/Application/Heading.php
+++ b/app/Livewire/Project/Application/Heading.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Actions\Application\StopApplication;
use App\Jobs\ContainerStatusJob;
@@ -42,7 +42,7 @@ class Heading extends Component
public function deployNew()
{
if ($this->application->build_pack === 'dockercompose' && is_null($this->application->docker_compose_raw)) {
- $this->emit('error', 'Please load a Compose file first.');
+ $this->dispatch('error', 'Please load a Compose file first.');
return;
}
$this->setDeploymentUuid();
@@ -62,7 +62,7 @@ class Heading extends Component
public function deploy(bool $force_rebuild = false)
{
if ($this->application->build_pack === 'dockercompose' && is_null($this->application->docker_compose_raw)) {
- $this->emit('error', 'Please load a Compose file first.');
+ $this->dispatch('error', 'Please load a Compose file first.');
return;
}
$this->setDeploymentUuid();
@@ -71,12 +71,12 @@ class Heading extends Component
deployment_uuid: $this->deploymentUuid,
force_rebuild: $force_rebuild,
);
- return redirect()->route('project.application.deployment', [
+ $this->redirectRoute('project.application.deployment', [
'project_uuid' => $this->parameters['project_uuid'],
'application_uuid' => $this->parameters['application_uuid'],
'deployment_uuid' => $this->deploymentUuid,
'environment_name' => $this->parameters['environment_name'],
- ]);
+ ], navigate: true);
}
protected function setDeploymentUuid()
diff --git a/app/Http/Livewire/Project/Application/Preview/Form.php b/app/Livewire/Project/Application/Preview/Form.php
similarity index 91%
rename from app/Http/Livewire/Project/Application/Preview/Form.php
rename to app/Livewire/Project/Application/Preview/Form.php
index fb71e5e472..0da8b1d761 100644
--- a/app/Http/Livewire/Project/Application/Preview/Form.php
+++ b/app/Livewire/Project/Application/Preview/Form.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application\Preview;
+namespace App\Livewire\Project\Application\Preview;
use App\Models\Application;
use Illuminate\Support\Str;
@@ -46,7 +46,7 @@ class Form extends Component
$this->validate();
$this->application->preview_url_template = str_replace(' ', '', $this->application->preview_url_template);
$this->application->save();
- $this->emit('success', 'Preview url template updated successfully.');
+ $this->dispatch('success', 'Preview url template updated successfully.');
$this->generate_real_url();
}
}
diff --git a/app/Http/Livewire/Project/Application/Previews.php b/app/Livewire/Project/Application/Previews.php
similarity index 98%
rename from app/Http/Livewire/Project/Application/Previews.php
rename to app/Livewire/Project/Application/Previews.php
index effdd7f7c3..6605123fa9 100644
--- a/app/Http/Livewire/Project/Application/Previews.php
+++ b/app/Livewire/Project/Application/Previews.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Models\Application;
use App\Models\ApplicationPreview;
diff --git a/app/Http/Livewire/Project/Application/Rollback.php b/app/Livewire/Project/Application/Rollback.php
similarity index 95%
rename from app/Http/Livewire/Project/Application/Rollback.php
rename to app/Livewire/Project/Application/Rollback.php
index 4c363421dc..9941bc2815 100644
--- a/app/Http/Livewire/Project/Application/Rollback.php
+++ b/app/Livewire/Project/Application/Rollback.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Models\Application;
use Illuminate\Support\Str;
@@ -66,7 +66,7 @@ class Rollback extends Component
];
})->toArray();
}
- $showToast && $this->emit('success', 'Images loaded.');
+ $showToast && $this->dispatch('success', 'Images loaded.');
return [];
} catch (\Throwable $e) {
return handleError($e, $this);
diff --git a/app/Http/Livewire/Project/Application/Source.php b/app/Livewire/Project/Application/Source.php
similarity index 92%
rename from app/Http/Livewire/Project/Application/Source.php
rename to app/Livewire/Project/Application/Source.php
index 801d533aa4..c9907c8c46 100644
--- a/app/Http/Livewire/Project/Application/Source.php
+++ b/app/Livewire/Project/Application/Source.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Application;
+namespace App\Livewire\Project\Application;
use App\Models\Application;
use App\Models\PrivateKey;
@@ -49,6 +49,6 @@ class Source extends Component
$this->application->git_commit_sha = 'HEAD';
}
$this->application->save();
- $this->emit('success', 'Application source updated!');
+ $this->dispatch('success', 'Application source updated!');
}
}
diff --git a/app/Http/Livewire/Project/CloneProject.php b/app/Livewire/Project/CloneProject.php
similarity index 99%
rename from app/Http/Livewire/Project/CloneProject.php
rename to app/Livewire/Project/CloneProject.php
index 48852b7ce8..275c0999c1 100644
--- a/app/Http/Livewire/Project/CloneProject.php
+++ b/app/Livewire/Project/CloneProject.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project;
+namespace App\Livewire\Project;
use App\Models\Environment;
use App\Models\Project;
diff --git a/app/Http/Livewire/Project/Database/BackupEdit.php b/app/Livewire/Project/Database/BackupEdit.php
similarity index 90%
rename from app/Http/Livewire/Project/Database/BackupEdit.php
rename to app/Livewire/Project/Database/BackupEdit.php
index 813016dbad..99892448df 100644
--- a/app/Http/Livewire/Project/Database/BackupEdit.php
+++ b/app/Livewire/Project/Database/BackupEdit.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database;
+namespace App\Livewire\Project\Database;
use Livewire\Component;
use Spatie\Url\Url;
@@ -63,9 +63,9 @@ class BackupEdit extends Component
$this->custom_validate();
$this->backup->save();
$this->backup->refresh();
- $this->emit('success', 'Backup updated successfully');
+ $this->dispatch('success', 'Backup updated successfully');
} catch (\Throwable $e) {
- $this->emit('error', $e->getMessage());
+ $this->dispatch('error', $e->getMessage());
}
}
@@ -90,9 +90,9 @@ class BackupEdit extends Component
}
$this->backup->save();
$this->backup->refresh();
- $this->emit('success', 'Backup updated successfully');
+ $this->dispatch('success', 'Backup updated successfully');
} catch (\Throwable $e) {
- $this->emit('error', $e->getMessage());
+ $this->dispatch('error', $e->getMessage());
}
}
}
diff --git a/app/Http/Livewire/Project/Database/BackupExecutions.php b/app/Livewire/Project/Database/BackupExecutions.php
similarity index 87%
rename from app/Http/Livewire/Project/Database/BackupExecutions.php
rename to app/Livewire/Project/Database/BackupExecutions.php
index 41a1cfbd6a..f92b9790b1 100644
--- a/app/Http/Livewire/Project/Database/BackupExecutions.php
+++ b/app/Livewire/Project/Database/BackupExecutions.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database;
+namespace App\Livewire\Project\Database;
use Illuminate\Support\Facades\Storage;
use Livewire\Component;
@@ -16,7 +16,7 @@ class BackupExecutions extends Component
{
$execution = $this->backup->executions()->where('id', $exeuctionId)->first();
if (is_null($execution)) {
- $this->emit('error', 'Backup execution not found.');
+ $this->dispatch('error', 'Backup execution not found.');
return;
}
if ($execution->scheduledDatabaseBackup->database->getMorphClass() === 'App\Models\ServiceDatabase') {
@@ -25,15 +25,15 @@ class BackupExecutions extends Component
delete_backup_locally($execution->filename, $execution->scheduledDatabaseBackup->database->destination->server);
}
$execution->delete();
- $this->emit('success', 'Backup deleted successfully.');
- $this->emit('refreshBackupExecutions');
+ $this->dispatch('success', 'Backup deleted successfully.');
+ $this->dispatch('refreshBackupExecutions');
}
public function download($exeuctionId)
{
try {
$execution = $this->backup->executions()->where('id', $exeuctionId)->first();
if (is_null($execution)) {
- $this->emit('error', 'Backup execution not found.');
+ $this->dispatch('error', 'Backup execution not found.');
return;
}
$filename = data_get($execution, 'filename');
diff --git a/app/Http/Livewire/Project/Database/BackupNow.php b/app/Livewire/Project/Database/BackupNow.php
similarity index 65%
rename from app/Http/Livewire/Project/Database/BackupNow.php
rename to app/Livewire/Project/Database/BackupNow.php
index 35bd8318df..988f382a01 100644
--- a/app/Http/Livewire/Project/Database/BackupNow.php
+++ b/app/Livewire/Project/Database/BackupNow.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database;
+namespace App\Livewire\Project\Database;
use App\Jobs\DatabaseBackupJob;
use Livewire\Component;
@@ -13,6 +13,6 @@ class BackupNow extends Component
dispatch(new DatabaseBackupJob(
backup: $this->backup
));
- $this->emit('success', 'Backup queued. It will be available in a few minutes.');
+ $this->dispatch('success', 'Backup queued. It will be available in a few minutes.');
}
}
diff --git a/app/Http/Livewire/Project/Database/CreateScheduledBackup.php b/app/Livewire/Project/Database/CreateScheduledBackup.php
similarity index 89%
rename from app/Http/Livewire/Project/Database/CreateScheduledBackup.php
rename to app/Livewire/Project/Database/CreateScheduledBackup.php
index a36266a6c7..e58ea9df35 100644
--- a/app/Http/Livewire/Project/Database/CreateScheduledBackup.php
+++ b/app/Livewire/Project/Database/CreateScheduledBackup.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database;
+namespace App\Livewire\Project\Database;
use App\Models\ScheduledDatabaseBackup;
use Livewire\Component;
@@ -35,7 +35,7 @@ class CreateScheduledBackup extends Component
$this->validate();
$isValid = validate_cron_expression($this->frequency);
if (!$isValid) {
- $this->emit('error', 'Invalid Cron / Human expression.');
+ $this->dispatch('error', 'Invalid Cron / Human expression.');
return;
}
$payload = [
@@ -57,9 +57,9 @@ class CreateScheduledBackup extends Component
$databaseBackup = ScheduledDatabaseBackup::create($payload);
if ($this->database->getMorphClass() === 'App\Models\ServiceDatabase') {
- $this->emit('refreshScheduledBackups', $databaseBackup->id);
+ $this->dispatch('refreshScheduledBackups', $databaseBackup->id);
} else {
- $this->emit('refreshScheduledBackups');
+ $this->dispatch('refreshScheduledBackups');
}
} catch (\Throwable $e) {
handleError($e, $this);
diff --git a/app/Http/Livewire/Project/Database/Heading.php b/app/Livewire/Project/Database/Heading.php
similarity index 81%
rename from app/Http/Livewire/Project/Database/Heading.php
rename to app/Livewire/Project/Database/Heading.php
index 7b14e53687..3e54426775 100644
--- a/app/Http/Livewire/Project/Database/Heading.php
+++ b/app/Livewire/Project/Database/Heading.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database;
+namespace App\Livewire\Project\Database;
use App\Actions\Database\StartMariadb;
use App\Actions\Database\StartMongodb;
@@ -23,7 +23,7 @@ class Heading extends Component
$this->database->update([
'started_at' => now(),
]);
- $this->emit('refresh');
+ $this->dispatch('refresh');
$this->check_status();
}
@@ -50,19 +50,19 @@ class Heading extends Component
{
if ($this->database->type() === 'standalone-postgresql') {
$activity = StartPostgresql::run($this->database);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
} else if ($this->database->type() === 'standalone-redis') {
$activity = StartRedis::run($this->database);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
} else if ($this->database->type() === 'standalone-mongodb') {
$activity = StartMongodb::run($this->database);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
} else if ($this->database->type() === 'standalone-mysql') {
$activity = StartMysql::run($this->database);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
} else if ($this->database->type() === 'standalone-mariadb') {
$activity = StartMariadb::run($this->database);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
}
}
}
diff --git a/app/Http/Livewire/Project/Database/InitScript.php b/app/Livewire/Project/Database/InitScript.php
similarity index 84%
rename from app/Http/Livewire/Project/Database/InitScript.php
rename to app/Livewire/Project/Database/InitScript.php
index a371bb33e9..2014fba3b4 100644
--- a/app/Http/Livewire/Project/Database/InitScript.php
+++ b/app/Livewire/Project/Database/InitScript.php
@@ -1,7 +1,8 @@
<?php
-namespace App\Http\Livewire\Project\Database;
+namespace App\Livewire\Project\Database;
+use Exception;
use Livewire\Component;
class InitScript extends Component
@@ -34,7 +35,7 @@ class InitScript extends Component
$this->script['index'] = $this->index;
$this->script['content'] = $this->content;
$this->script['filename'] = $this->filename;
- $this->emitUp('save_init_script', $this->script);
+ $this->dispatch('save_init_script', $this->script);
} catch (Exception $e) {
return handleError($e, $this);
}
@@ -42,6 +43,6 @@ class InitScript extends Component
public function delete()
{
- $this->emitUp('delete_init_script', $this->script);
+ $this->dispatch('delete_init_script', $this->script);
}
}
diff --git a/app/Http/Livewire/Project/Database/Mariadb/General.php b/app/Livewire/Project/Database/Mariadb/General.php
similarity index 82%
rename from app/Http/Livewire/Project/Database/Mariadb/General.php
rename to app/Livewire/Project/Database/Mariadb/General.php
index 455f1b4ca4..305633cbaa 100644
--- a/app/Http/Livewire/Project/Database/Mariadb/General.php
+++ b/app/Livewire/Project/Database/Mariadb/General.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database\Mariadb;
+namespace App\Livewire\Project\Database\Mariadb;
use App\Actions\Database\StartDatabaseProxy;
use App\Actions\Database\StopDatabaseProxy;
@@ -55,12 +55,12 @@ class General extends Component
try {
if (!$this->database->destination->server->isLogDrainEnabled()) {
$this->database->is_log_drain_enabled = false;
- $this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');
+ $this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');
return;
}
$this->database->save();
- $this->emit('success', 'Database updated successfully.');
- $this->emit('success', 'You need to restart the service for the changes to take effect.');
+ $this->dispatch('success', 'Database updated successfully.');
+ $this->dispatch('success', 'You need to restart the service for the changes to take effect.');
} catch (Exception $e) {
return handleError($e, $this);
}
@@ -73,7 +73,7 @@ class General extends Component
}
$this->validate();
$this->database->save();
- $this->emit('success', 'Database updated successfully.');
+ $this->dispatch('success', 'Database updated successfully.');
} catch (Exception $e) {
return handleError($e, $this);
}
@@ -82,23 +82,23 @@ class General extends Component
{
try {
if ($this->database->is_public && !$this->database->public_port) {
- $this->emit('error', 'Public port is required.');
+ $this->dispatch('error', 'Public port is required.');
$this->database->is_public = false;
return;
}
if ($this->database->is_public) {
if (!str($this->database->status)->startsWith('running')) {
- $this->emit('error', 'Database must be started to be publicly accessible.');
+ $this->dispatch('error', 'Database must be started to be publicly accessible.');
$this->database->is_public = false;
return;
}
StartDatabaseProxy::run($this->database);
$this->db_url_public = $this->database->getDbUrl();
- $this->emit('success', 'Database is now publicly accessible.');
+ $this->dispatch('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
$this->db_url_public = null;
- $this->emit('success', 'Database is no longer publicly accessible.');
+ $this->dispatch('success', 'Database is no longer publicly accessible.');
}
$this->database->save();
} catch (\Throwable $e) {
diff --git a/app/Http/Livewire/Project/Database/Mongodb/General.php b/app/Livewire/Project/Database/Mongodb/General.php
similarity index 82%
rename from app/Http/Livewire/Project/Database/Mongodb/General.php
rename to app/Livewire/Project/Database/Mongodb/General.php
index 84669a019c..70f54cc3f4 100644
--- a/app/Http/Livewire/Project/Database/Mongodb/General.php
+++ b/app/Livewire/Project/Database/Mongodb/General.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database\Mongodb;
+namespace App\Livewire\Project\Database\Mongodb;
use App\Actions\Database\StartDatabaseProxy;
use App\Actions\Database\StopDatabaseProxy;
@@ -54,12 +54,12 @@ class General extends Component
try {
if (!$this->database->destination->server->isLogDrainEnabled()) {
$this->database->is_log_drain_enabled = false;
- $this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');
+ $this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');
return;
}
$this->database->save();
- $this->emit('success', 'Database updated successfully.');
- $this->emit('success', 'You need to restart the service for the changes to take effect.');
+ $this->dispatch('success', 'Database updated successfully.');
+ $this->dispatch('success', 'You need to restart the service for the changes to take effect.');
} catch (Exception $e) {
return handleError($e, $this);
}
@@ -75,7 +75,7 @@ class General extends Component
}
$this->validate();
$this->database->save();
- $this->emit('success', 'Database updated successfully.');
+ $this->dispatch('success', 'Database updated successfully.');
} catch (Exception $e) {
return handleError($e, $this);
}
@@ -84,23 +84,23 @@ class General extends Component
{
try {
if ($this->database->is_public && !$this->database->public_port) {
- $this->emit('error', 'Public port is required.');
+ $this->dispatch('error', 'Public port is required.');
$this->database->is_public = false;
return;
}
if ($this->database->is_public) {
if (!str($this->database->status)->startsWith('running')) {
- $this->emit('error', 'Database must be started to be publicly accessible.');
+ $this->dispatch('error', 'Database must be started to be publicly accessible.');
$this->database->is_public = false;
return;
}
StartDatabaseProxy::run($this->database);
$this->db_url_public = $this->database->getDbUrl();
- $this->emit('success', 'Database is now publicly accessible.');
+ $this->dispatch('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
$this->db_url_public = null;
- $this->emit('success', 'Database is no longer publicly accessible.');
+ $this->dispatch('success', 'Database is no longer publicly accessible.');
}
$this->database->save();
} catch (\Throwable $e) {
diff --git a/app/Http/Livewire/Project/Database/Mysql/General.php b/app/Livewire/Project/Database/Mysql/General.php
similarity index 82%
rename from app/Http/Livewire/Project/Database/Mysql/General.php
rename to app/Livewire/Project/Database/Mysql/General.php
index c63cea2932..98b16a1128 100644
--- a/app/Http/Livewire/Project/Database/Mysql/General.php
+++ b/app/Livewire/Project/Database/Mysql/General.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database\Mysql;
+namespace App\Livewire\Project\Database\Mysql;
use App\Actions\Database\StartDatabaseProxy;
use App\Actions\Database\StopDatabaseProxy;
@@ -56,12 +56,12 @@ class General extends Component
try {
if (!$this->database->destination->server->isLogDrainEnabled()) {
$this->database->is_log_drain_enabled = false;
- $this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');
+ $this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');
return;
}
$this->database->save();
- $this->emit('success', 'Database updated successfully.');
- $this->emit('success', 'You need to restart the service for the changes to take effect.');
+ $this->dispatch('success', 'Database updated successfully.');
+ $this->dispatch('success', 'You need to restart the service for the changes to take effect.');
} catch (Exception $e) {
return handleError($e, $this);
}
@@ -74,7 +74,7 @@ class General extends Component
}
$this->validate();
$this->database->save();
- $this->emit('success', 'Database updated successfully.');
+ $this->dispatch('success', 'Database updated successfully.');
} catch (Exception $e) {
return handleError($e, $this);
}
@@ -83,23 +83,23 @@ class General extends Component
{
try {
if ($this->database->is_public && !$this->database->public_port) {
- $this->emit('error', 'Public port is required.');
+ $this->dispatch('error', 'Public port is required.');
$this->database->is_public = false;
return;
}
if ($this->database->is_public) {
if (!str($this->database->status)->startsWith('running')) {
- $this->emit('error', 'Database must be started to be publicly accessible.');
+ $this->dispatch('error', 'Database must be started to be publicly accessible.');
$this->database->is_public = false;
return;
}
StartDatabaseProxy::run($this->database);
$this->db_url_public = $this->database->getDbUrl();
- $this->emit('success', 'Database is now publicly accessible.');
+ $this->dispatch('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
$this->db_url_public = null;
- $this->emit('success', 'Database is no longer publicly accessible.');
+ $this->dispatch('success', 'Database is no longer publicly accessible.');
}
$this->database->save();
} catch (\Throwable $e) {
diff --git a/app/Http/Livewire/Project/Database/Postgresql/General.php b/app/Livewire/Project/Database/Postgresql/General.php
similarity index 84%
rename from app/Http/Livewire/Project/Database/Postgresql/General.php
rename to app/Livewire/Project/Database/Postgresql/General.php
index 1804953eeb..6fa5df97cd 100644
--- a/app/Http/Livewire/Project/Database/Postgresql/General.php
+++ b/app/Livewire/Project/Database/Postgresql/General.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database\Postgresql;
+namespace App\Livewire\Project\Database\Postgresql;
use App\Actions\Database\StartDatabaseProxy;
use App\Actions\Database\StopDatabaseProxy;
@@ -62,12 +62,12 @@ class General extends Component
try {
if (!$this->database->destination->server->isLogDrainEnabled()) {
$this->database->is_log_drain_enabled = false;
- $this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');
+ $this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');
return;
}
$this->database->save();
- $this->emit('success', 'Database updated successfully.');
- $this->emit('success', 'You need to restart the service for the changes to take effect.');
+ $this->dispatch('success', 'Database updated successfully.');
+ $this->dispatch('success', 'You need to restart the service for the changes to take effect.');
} catch (Exception $e) {
return handleError($e, $this);
}
@@ -76,23 +76,23 @@ class General extends Component
{
try {
if ($this->database->is_public && !$this->database->public_port) {
- $this->emit('error', 'Public port is required.');
+ $this->dispatch('error', 'Public port is required.');
$this->database->is_public = false;
return;
}
if ($this->database->is_public) {
if (!str($this->database->status)->startsWith('running')) {
- $this->emit('error', 'Database must be started to be publicly accessible.');
+ $this->dispatch('error', 'Database must be started to be publicly accessible.');
$this->database->is_public = false;
return;
}
StartDatabaseProxy::run($this->database);
$this->db_url_public = $this->database->getDbUrl();
- $this->emit('success', 'Database is now publicly accessible.');
+ $this->dispatch('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
$this->db_url_public = null;
- $this->emit('success', 'Database is no longer publicly accessible.');
+ $this->dispatch('success', 'Database is no longer publicly accessible.');
}
$this->database->save();
} catch (\Throwable $e) {
@@ -105,7 +105,7 @@ class General extends Component
$this->database->init_scripts = filter($this->database->init_scripts, fn ($s) => $s['filename'] !== $script['filename']);
$this->database->init_scripts = array_merge($this->database->init_scripts, [$script]);
$this->database->save();
- $this->emit('success', 'Init script saved successfully.');
+ $this->dispatch('success', 'Init script saved successfully.');
}
public function delete_init_script($script)
@@ -116,7 +116,7 @@ class General extends Component
$this->database->init_scripts = $collection->filter(fn ($s) => $s['filename'] !== $script['filename'])->toArray();
$this->database->save();
$this->refresh();
- $this->emit('success', 'Init script deleted successfully.');
+ $this->dispatch('success', 'Init script deleted successfully.');
return;
}
}
@@ -134,7 +134,7 @@ class General extends Component
]);
$found = collect($this->database->init_scripts)->firstWhere('filename', $this->new_filename);
if ($found) {
- $this->emit('error', 'Filename already exists.');
+ $this->dispatch('error', 'Filename already exists.');
return;
}
if (!isset($this->database->init_scripts)) {
@@ -148,7 +148,7 @@ class General extends Component
]
]);
$this->database->save();
- $this->emit('success', 'Init script added successfully.');
+ $this->dispatch('success', 'Init script added successfully.');
$this->new_content = '';
$this->new_filename = '';
}
@@ -161,7 +161,7 @@ class General extends Component
}
$this->validate();
$this->database->save();
- $this->emit('success', 'Database updated successfully.');
+ $this->dispatch('success', 'Database updated successfully.');
} catch (Exception $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Project/Database/Redis/General.php b/app/Livewire/Project/Database/Redis/General.php
similarity index 81%
rename from app/Http/Livewire/Project/Database/Redis/General.php
rename to app/Livewire/Project/Database/Redis/General.php
index c2a28eef85..c328a61950 100644
--- a/app/Http/Livewire/Project/Database/Redis/General.php
+++ b/app/Livewire/Project/Database/Redis/General.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database\Redis;
+namespace App\Livewire\Project\Database\Redis;
use App\Actions\Database\StartDatabaseProxy;
use App\Actions\Database\StopDatabaseProxy;
@@ -48,12 +48,12 @@ class General extends Component
try {
if (!$this->database->destination->server->isLogDrainEnabled()) {
$this->database->is_log_drain_enabled = false;
- $this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');
+ $this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');
return;
}
$this->database->save();
- $this->emit('success', 'Database updated successfully.');
- $this->emit('success', 'You need to restart the service for the changes to take effect.');
+ $this->dispatch('success', 'Database updated successfully.');
+ $this->dispatch('success', 'You need to restart the service for the changes to take effect.');
} catch (Exception $e) {
return handleError($e, $this);
}
@@ -66,7 +66,7 @@ class General extends Component
$this->database->redis_conf = null;
}
$this->database->save();
- $this->emit('success', 'Database updated successfully.');
+ $this->dispatch('success', 'Database updated successfully.');
} catch (Exception $e) {
return handleError($e, $this);
}
@@ -75,23 +75,23 @@ class General extends Component
{
try {
if ($this->database->is_public && !$this->database->public_port) {
- $this->emit('error', 'Public port is required.');
+ $this->dispatch('error', 'Public port is required.');
$this->database->is_public = false;
return;
}
if ($this->database->is_public) {
if (!str($this->database->status)->startsWith('running')) {
- $this->emit('error', 'Database must be started to be publicly accessible.');
+ $this->dispatch('error', 'Database must be started to be publicly accessible.');
$this->database->is_public = false;
return;
}
StartDatabaseProxy::run($this->database);
$this->db_url_public = $this->database->getDbUrl();
- $this->emit('success', 'Database is now publicly accessible.');
+ $this->dispatch('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
$this->db_url_public = null;
- $this->emit('success', 'Database is no longer publicly accessible.');
+ $this->dispatch('success', 'Database is no longer publicly accessible.');
}
$this->database->save();
} catch (\Throwable $e) {
diff --git a/app/Http/Livewire/Project/Database/ScheduledBackups.php b/app/Livewire/Project/Database/ScheduledBackups.php
similarity index 92%
rename from app/Http/Livewire/Project/Database/ScheduledBackups.php
rename to app/Livewire/Project/Database/ScheduledBackups.php
index ec20b1adb9..2fc4d069e6 100644
--- a/app/Http/Livewire/Project/Database/ScheduledBackups.php
+++ b/app/Livewire/Project/Database/ScheduledBackups.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Database;
+namespace App\Livewire\Project\Database;
use Livewire\Component;
@@ -38,7 +38,7 @@ class ScheduledBackups extends Component
public function delete($scheduled_backup_id): void
{
$this->database->scheduledBackups->find($scheduled_backup_id)->delete();
- $this->emit('success', 'Scheduled backup deleted successfully.');
+ $this->dispatch('success', 'Scheduled backup deleted successfully.');
$this->refreshScheduledBackups();
}
diff --git a/app/Http/Livewire/Project/DeleteEnvironment.php b/app/Livewire/Project/DeleteEnvironment.php
similarity index 82%
rename from app/Http/Livewire/Project/DeleteEnvironment.php
rename to app/Livewire/Project/DeleteEnvironment.php
index 0b6254b3bc..0f2b59c939 100644
--- a/app/Http/Livewire/Project/DeleteEnvironment.php
+++ b/app/Livewire/Project/DeleteEnvironment.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project;
+namespace App\Livewire\Project;
use App\Models\Environment;
use Livewire\Component;
@@ -25,6 +25,6 @@ class DeleteEnvironment extends Component
$environment->delete();
return redirect()->route('project.show', ['project_uuid' => $this->parameters['project_uuid']]);
}
- return $this->emit('error', 'Environment has defined resources, please delete them first.');
+ return $this->dispatch('error', 'Environment has defined resources, please delete them first.');
}
}
diff --git a/app/Http/Livewire/Project/DeleteProject.php b/app/Livewire/Project/DeleteProject.php
similarity index 80%
rename from app/Http/Livewire/Project/DeleteProject.php
rename to app/Livewire/Project/DeleteProject.php
index 5bbfea17ad..23ca8eb798 100644
--- a/app/Http/Livewire/Project/DeleteProject.php
+++ b/app/Livewire/Project/DeleteProject.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project;
+namespace App\Livewire\Project;
use App\Models\Project;
use Livewire\Component;
@@ -22,7 +22,7 @@ class DeleteProject extends Component
]);
$project = Project::findOrFail($this->project_id);
if ($project->applications->count() > 0) {
- return $this->emit('error', 'Project has resources defined, please delete them first.');
+ return $this->dispatch('error', 'Project has resources defined, please delete them first.');
}
$project->delete();
return redirect()->route('projects');
diff --git a/app/Http/Livewire/Project/Edit.php b/app/Livewire/Project/Edit.php
similarity index 86%
rename from app/Http/Livewire/Project/Edit.php
rename to app/Livewire/Project/Edit.php
index 94b6979ae2..d08aa3e599 100644
--- a/app/Http/Livewire/Project/Edit.php
+++ b/app/Livewire/Project/Edit.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project;
+namespace App\Livewire\Project;
use App\Models\Project;
use Livewire\Component;
@@ -18,7 +18,7 @@ class Edit extends Component
$this->validate();
try {
$this->project->save();
- $this->emit('saved');
+ $this->dispatch('saved');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Project/New/DockerCompose.php b/app/Livewire/Project/New/DockerCompose.php
similarity index 98%
rename from app/Http/Livewire/Project/New/DockerCompose.php
rename to app/Livewire/Project/New/DockerCompose.php
index 280167bb10..088a53c487 100644
--- a/app/Http/Livewire/Project/New/DockerCompose.php
+++ b/app/Livewire/Project/New/DockerCompose.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\New;
+namespace App\Livewire\Project\New;
use App\Models\EnvironmentVariable;
use App\Models\Project;
diff --git a/app/Http/Livewire/Project/New/DockerImage.php b/app/Livewire/Project/New/DockerImage.php
similarity index 98%
rename from app/Http/Livewire/Project/New/DockerImage.php
rename to app/Livewire/Project/New/DockerImage.php
index 1081f3401e..d54f355212 100644
--- a/app/Http/Livewire/Project/New/DockerImage.php
+++ b/app/Livewire/Project/New/DockerImage.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\New;
+namespace App\Livewire\Project\New;
use App\Models\Application;
use App\Models\Project;
diff --git a/app/Http/Livewire/Project/New/EmptyProject.php b/app/Livewire/Project/New/EmptyProject.php
similarity index 90%
rename from app/Http/Livewire/Project/New/EmptyProject.php
rename to app/Livewire/Project/New/EmptyProject.php
index 9dba4338b5..52e9ce7dc9 100644
--- a/app/Http/Livewire/Project/New/EmptyProject.php
+++ b/app/Livewire/Project/New/EmptyProject.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\New;
+namespace App\Livewire\Project\New;
use App\Models\Project;
use Livewire\Component;
diff --git a/app/Http/Livewire/Project/New/GithubPrivateRepository.php b/app/Livewire/Project/New/GithubPrivateRepository.php
similarity index 96%
rename from app/Http/Livewire/Project/New/GithubPrivateRepository.php
rename to app/Livewire/Project/New/GithubPrivateRepository.php
index 91e9a806aa..76461cab4b 100644
--- a/app/Http/Livewire/Project/New/GithubPrivateRepository.php
+++ b/app/Livewire/Project/New/GithubPrivateRepository.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\New;
+namespace App\Livewire\Project\New;
use App\Models\Application;
use App\Models\GithubApp;
@@ -72,7 +72,7 @@ class GithubPrivateRepository extends Component
$response = Http::withToken($this->token)->get("{$this->github_app->api_url}/installation/repositories?per_page=100&page={$this->page}");
$json = $response->json();
if ($response->status() !== 200) {
- return $this->emit('error', $json['message']);
+ return $this->dispatch('error', $json['message']);
}
if ($json['total_count'] === 0) {
@@ -104,7 +104,7 @@ class GithubPrivateRepository extends Component
$response = Http::withToken($this->token)->get("{$this->github_app->api_url}/repos/{$this->selected_repository_owner}/{$this->selected_repository_repo}/branches?per_page=100&page={$this->page}");
$json = $response->json();
if ($response->status() !== 200) {
- return $this->emit('error', $json['message']);
+ return $this->dispatch('error', $json['message']);
}
$this->total_branches_count = count($json);
@@ -170,6 +170,6 @@ class GithubPrivateRepository extends Component
$this->port = 3000;
$this->publish_directory = null;
}
- $this->emit('success', 'Application settings updated!');
+ $this->dispatch('success', 'Application settings updated!');
}
}
diff --git a/app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php b/app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php
similarity index 99%
rename from app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php
rename to app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php
index e8974436a0..a843d3a52b 100644
--- a/app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php
+++ b/app/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\New;
+namespace App\Livewire\Project\New;
use App\Models\Application;
use App\Models\GithubApp;
diff --git a/app/Http/Livewire/Project/New/PublicGitRepository.php b/app/Livewire/Project/New/PublicGitRepository.php
similarity index 98%
rename from app/Http/Livewire/Project/New/PublicGitRepository.php
rename to app/Livewire/Project/New/PublicGitRepository.php
index f1f4e98333..55b32dc54d 100644
--- a/app/Http/Livewire/Project/New/PublicGitRepository.php
+++ b/app/Livewire/Project/New/PublicGitRepository.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\New;
+namespace App\Livewire\Project\New;
use App\Models\Application;
use App\Models\GithubApp;
@@ -63,7 +63,7 @@ class PublicGitRepository extends Component
$this->port = 3000;
$this->publish_directory = null;
}
- $this->emit('success', 'Application settings updated!');
+ $this->dispatch('success', 'Application settings updated!');
}
public function load_any_git()
{
diff --git a/app/Http/Livewire/Project/New/Select.php b/app/Livewire/Project/New/Select.php
similarity index 96%
rename from app/Http/Livewire/Project/New/Select.php
rename to app/Livewire/Project/New/Select.php
index 13fbb88862..da25e9c8c4 100644
--- a/app/Http/Livewire/Project/New/Select.php
+++ b/app/Livewire/Project/New/Select.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\New;
+namespace App\Livewire\Project\New;
use App\Models\Project;
use App\Models\Server;
@@ -63,7 +63,7 @@ class Select extends Component
// {
// try {
// instantCommand("psql {$this->existingPostgresqlUrl} -c 'SELECT 1'");
- // $this->emit('success', 'Successfully connected to the database.');
+ // $this->dispatch('success', 'Successfully connected to the database.');
// } catch (\Throwable $e) {
// return handleError($e, $this);
// }
@@ -89,7 +89,7 @@ class Select extends Component
$this->services = $this->allServices->filter(function ($service, $key) {
return str_contains(strtolower($key), strtolower($this->search));
});;
- $this->emit('success', 'Successfully loaded services.');
+ $this->dispatch('success', 'Successfully loaded services.');
}
} catch (\Throwable $e) {
return handleError($e, $this);
diff --git a/app/Http/Livewire/Project/New/SimpleDockerfile.php b/app/Livewire/Project/New/SimpleDockerfile.php
similarity index 98%
rename from app/Http/Livewire/Project/New/SimpleDockerfile.php
rename to app/Livewire/Project/New/SimpleDockerfile.php
index 07a9ec88a2..b478c77d4a 100644
--- a/app/Http/Livewire/Project/New/SimpleDockerfile.php
+++ b/app/Livewire/Project/New/SimpleDockerfile.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\New;
+namespace App\Livewire\Project\New;
use App\Models\Application;
use App\Models\GithubApp;
diff --git a/app/Http/Livewire/Project/Service/Application.php b/app/Livewire/Project/Service/Application.php
similarity index 78%
rename from app/Http/Livewire/Project/Service/Application.php
rename to app/Livewire/Project/Service/Application.php
index 622b1e0e21..3ff7114006 100644
--- a/app/Http/Livewire/Project/Service/Application.php
+++ b/app/Livewire/Project/Service/Application.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Service;
+namespace App\Livewire\Project\Service;
use App\Models\ServiceApplication;
use Livewire\Component;
@@ -30,17 +30,17 @@ class Application extends Component
{
if (!$this->application->service->destination->server->isLogDrainEnabled()) {
$this->application->is_log_drain_enabled = false;
- $this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');
+ $this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');
return;
}
$this->application->save();
- $this->emit('success', 'You need to restart the service for the changes to take effect.');
+ $this->dispatch('success', 'You need to restart the service for the changes to take effect.');
}
public function delete()
{
try {
$this->application->delete();
- $this->emit('success', 'Application deleted successfully.');
+ $this->dispatch('success', 'Application deleted successfully.');
return redirect()->route('project.service.configuration', $this->parameters);
} catch (\Throwable $e) {
return handleError($e, $this);
@@ -56,11 +56,11 @@ class Application extends Component
$this->validate();
$this->application->save();
updateCompose($this->application);
- $this->emit('success', 'Application saved successfully.');
+ $this->dispatch('success', 'Application saved successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
} finally {
- $this->emit('generateDockerCompose');
+ $this->dispatch('generateDockerCompose');
}
}
}
diff --git a/app/Http/Livewire/Project/Service/Database.php b/app/Livewire/Project/Service/Database.php
similarity index 77%
rename from app/Http/Livewire/Project/Service/Database.php
rename to app/Livewire/Project/Service/Database.php
index 6bf6098ad0..e7be1ff2e0 100644
--- a/app/Http/Livewire/Project/Service/Database.php
+++ b/app/Livewire/Project/Service/Database.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Service;
+namespace App\Livewire\Project\Service;
use App\Actions\Database\StartDatabaseProxy;
use App\Actions\Database\StopDatabaseProxy;
@@ -38,32 +38,32 @@ class Database extends Component
{
if (!$this->database->service->destination->server->isLogDrainEnabled()) {
$this->database->is_log_drain_enabled = false;
- $this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');
+ $this->dispatch('error', 'Log drain is not enabled on the server. Please enable it first.');
return;
}
$this->submit();
- $this->emit('success', 'You need to restart the service for the changes to take effect.');
+ $this->dispatch('success', 'You need to restart the service for the changes to take effect.');
}
public function instantSave()
{
if ($this->database->is_public && !$this->database->public_port) {
- $this->emit('error', 'Public port is required.');
+ $this->dispatch('error', 'Public port is required.');
$this->database->is_public = false;
return;
}
if ($this->database->is_public) {
if (!str($this->database->status)->startsWith('running')) {
- $this->emit('error', 'Database must be started to be publicly accessible.');
+ $this->dispatch('error', 'Database must be started to be publicly accessible.');
$this->database->is_public = false;
return;
}
StartDatabaseProxy::run($this->database);
$this->db_url_public = $this->database->getServiceDatabaseUrl();
- $this->emit('success', 'Database is now publicly accessible.');
+ $this->dispatch('success', 'Database is now publicly accessible.');
} else {
StopDatabaseProxy::run($this->database);
$this->db_url_public = null;
- $this->emit('success', 'Database is no longer publicly accessible.');
+ $this->dispatch('success', 'Database is no longer publicly accessible.');
}
$this->submit();
}
@@ -77,11 +77,11 @@ class Database extends Component
$this->validate();
$this->database->save();
updateCompose($this->database);
- $this->emit('success', 'Database saved successfully.');
+ $this->dispatch('success', 'Database saved successfully.');
} catch (\Throwable $e) {
ray($e);
} finally {
- $this->emit('generateDockerCompose');
+ $this->dispatch('generateDockerCompose');
}
}
}
diff --git a/app/Http/Livewire/Project/Service/FileStorage.php b/app/Livewire/Project/Service/FileStorage.php
similarity index 94%
rename from app/Http/Livewire/Project/Service/FileStorage.php
rename to app/Livewire/Project/Service/FileStorage.php
index 91ab8e6590..ab7736c972 100644
--- a/app/Http/Livewire/Project/Service/FileStorage.php
+++ b/app/Livewire/Project/Service/FileStorage.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Service;
+namespace App\Livewire\Project\Service;
use App\Models\LocalFileVolume;
use App\Models\ServiceApplication;
@@ -42,7 +42,7 @@ class FileStorage extends Component
}
$this->fileStorage->save();
$this->fileStorage->saveStorageOnServer($this->service);
- $this->emit('success', 'File updated successfully.');
+ $this->dispatch('success', 'File updated successfully.');
} catch (\Throwable $e) {
$this->fileStorage->setRawAttributes($original);
$this->fileStorage->save();
diff --git a/app/Http/Livewire/Project/Service/Index.php b/app/Livewire/Project/Service/Index.php
similarity index 96%
rename from app/Http/Livewire/Project/Service/Index.php
rename to app/Livewire/Project/Service/Index.php
index af88fac879..a798ca734d 100644
--- a/app/Http/Livewire/Project/Service/Index.php
+++ b/app/Livewire/Project/Service/Index.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Service;
+namespace App\Livewire\Project\Service;
use App\Jobs\ContainerStatusJob;
use App\Models\Service;
diff --git a/app/Http/Livewire/Project/Service/Modal.php b/app/Livewire/Project/Service/Modal.php
similarity index 71%
rename from app/Http/Livewire/Project/Service/Modal.php
rename to app/Livewire/Project/Service/Modal.php
index 7092070f64..eeeeba7e99 100644
--- a/app/Http/Livewire/Project/Service/Modal.php
+++ b/app/Livewire/Project/Service/Modal.php
@@ -1,13 +1,13 @@
<?php
-namespace App\Http\Livewire\Project\Service;
+namespace App\Livewire\Project\Service;
use Livewire\Component;
class Modal extends Component
{
public function checkStatus() {
- $this->emit('checkStatus');
+ $this->dispatch('checkStatus');
}
public function render()
{
diff --git a/app/Http/Livewire/Project/Service/Navbar.php b/app/Livewire/Project/Service/Navbar.php
similarity index 73%
rename from app/Http/Livewire/Project/Service/Navbar.php
rename to app/Livewire/Project/Service/Navbar.php
index 1953605e6c..2457ecaa83 100644
--- a/app/Http/Livewire/Project/Service/Navbar.php
+++ b/app/Livewire/Project/Service/Navbar.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Service;
+namespace App\Livewire\Project\Service;
use App\Actions\Service\StartService;
use App\Actions\Service\StopService;
@@ -25,17 +25,17 @@ class Navbar extends Component
{
$this->service->parse();
$activity = StartService::run($this->service);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
}
public function stop(bool $forceCleanup = false)
{
StopService::run($this->service);
$this->service->refresh();
if ($forceCleanup) {
- $this->emit('success', 'Force cleanup service successfully.');
+ $this->dispatch('success', 'Force cleanup service successfully.');
} else {
- $this->emit('success', 'Service stopped successfully.');
+ $this->dispatch('success', 'Service stopped successfully.');
}
- $this->emit('checkStatus');
+ $this->dispatch('checkStatus');
}
}
diff --git a/app/Http/Livewire/Project/Service/Show.php b/app/Livewire/Project/Service/Show.php
similarity index 97%
rename from app/Http/Livewire/Project/Service/Show.php
rename to app/Livewire/Project/Service/Show.php
index 53f5033f43..272e0a399f 100644
--- a/app/Http/Livewire/Project/Service/Show.php
+++ b/app/Livewire/Project/Service/Show.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Service;
+namespace App\Livewire\Project\Service;
use App\Models\Service;
use App\Models\ServiceApplication;
diff --git a/app/Http/Livewire/Project/Service/StackForm.php b/app/Livewire/Project/Service/StackForm.php
similarity index 90%
rename from app/Http/Livewire/Project/Service/StackForm.php
rename to app/Livewire/Project/Service/StackForm.php
index 1014756ce3..c21f4d8f61 100644
--- a/app/Http/Livewire/Project/Service/StackForm.php
+++ b/app/Livewire/Project/Service/StackForm.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Service;
+namespace App\Livewire\Project\Service;
use Livewire\Component;
@@ -54,9 +54,9 @@ class StackForm extends Component
$this->service->parse();
$this->service->refresh();
$this->service->saveComposeConfigs();
- $this->emit('refreshStacks');
- $this->emit('refreshEnvs');
- $this->emit('success', 'Service saved successfully.');
+ $this->dispatch('refreshStacks');
+ $this->dispatch('refreshEnvs');
+ $this->dispatch('success', 'Service saved successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Project/Service/Storage.php b/app/Livewire/Project/Service/Storage.php
similarity index 79%
rename from app/Http/Livewire/Project/Service/Storage.php
rename to app/Livewire/Project/Service/Storage.php
index 2e3ef8f589..0accde7872 100644
--- a/app/Http/Livewire/Project/Service/Storage.php
+++ b/app/Livewire/Project/Service/Storage.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Service;
+namespace App\Livewire\Project\Service;
use App\Models\LocalPersistentVolume;
use Livewire\Component;
@@ -25,9 +25,9 @@ class Storage extends Component
'resource_type' => $this->resource->getMorphClass(),
]);
$this->resource->refresh();
- $this->emit('success', 'Storage added successfully');
- $this->emit('clearAddStorage');
- $this->emit('refreshStorages');
+ $this->dispatch('success', 'Storage added successfully');
+ $this->dispatch('clearAddStorage');
+ $this->dispatch('refreshStorages');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Project/Shared/Danger.php b/app/Livewire/Project/Shared/Danger.php
similarity index 94%
rename from app/Http/Livewire/Project/Shared/Danger.php
rename to app/Livewire/Project/Shared/Danger.php
index f2bef04d4a..58742feabf 100644
--- a/app/Http/Livewire/Project/Shared/Danger.php
+++ b/app/Livewire/Project/Shared/Danger.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared;
+namespace App\Livewire\Project\Shared;
use App\Jobs\DeleteResourceJob;
use Livewire\Component;
diff --git a/app/Http/Livewire/Project/Shared/Destination.php b/app/Livewire/Project/Shared/Destination.php
similarity index 78%
rename from app/Http/Livewire/Project/Shared/Destination.php
rename to app/Livewire/Project/Shared/Destination.php
index a946c013fc..e6d2d5a334 100644
--- a/app/Http/Livewire/Project/Shared/Destination.php
+++ b/app/Livewire/Project/Shared/Destination.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared;
+namespace App\Livewire\Project\Shared;
use Livewire\Component;
diff --git a/app/Http/Livewire/Project/Shared/EnvironmentVariable/Add.php b/app/Livewire/Project/Shared/EnvironmentVariable/Add.php
similarity index 91%
rename from app/Http/Livewire/Project/Shared/EnvironmentVariable/Add.php
rename to app/Livewire/Project/Shared/EnvironmentVariable/Add.php
index 0150fbb65c..1d6e09b430 100644
--- a/app/Http/Livewire/Project/Shared/EnvironmentVariable/Add.php
+++ b/app/Livewire/Project/Shared/EnvironmentVariable/Add.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared\EnvironmentVariable;
+namespace App\Livewire\Project\Shared\EnvironmentVariable;
use Livewire\Component;
@@ -33,7 +33,7 @@ class Add extends Component
{
$this->validate();
ray($this->key, $this->value, $this->is_build_time);
- $this->emitUp('submit', [
+ $this->dispatch('saveKey', [
'key' => $this->key,
'value' => $this->value,
'is_build_time' => $this->is_build_time,
diff --git a/app/Http/Livewire/Project/Shared/EnvironmentVariable/All.php b/app/Livewire/Project/Shared/EnvironmentVariable/All.php
similarity index 91%
rename from app/Http/Livewire/Project/Shared/EnvironmentVariable/All.php
rename to app/Livewire/Project/Shared/EnvironmentVariable/All.php
index 3f8b73f7b6..7002fb9891 100644
--- a/app/Http/Livewire/Project/Shared/EnvironmentVariable/All.php
+++ b/app/Livewire/Project/Shared/EnvironmentVariable/All.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared\EnvironmentVariable;
+namespace App\Livewire\Project\Shared\EnvironmentVariable;
use App\Models\EnvironmentVariable;
use Livewire\Component;
@@ -15,7 +15,7 @@ class All extends Component
public ?string $variables = null;
public ?string $variablesPreview = null;
public string $view = 'normal';
- protected $listeners = ['refreshEnvs', 'submit'];
+ protected $listeners = ['refreshEnvs', 'saveKey' => 'submit'];
public function mount()
{
@@ -106,9 +106,9 @@ class All extends Component
}
}
if ($isPreview) {
- $this->emit('success', 'Preview environment variables updated successfully.');
+ $this->dispatch('success', 'Preview environment variables updated successfully.');
} else {
- $this->emit('success', 'Environment variables updated successfully.');
+ $this->dispatch('success', 'Environment variables updated successfully.');
}
$this->refreshEnvs();
}
@@ -123,7 +123,7 @@ class All extends Component
try {
$found = $this->resource->environment_variables()->where('key', $data['key'])->first();
if ($found) {
- $this->emit('error', 'Environment variable already exists.');
+ $this->dispatch('error', 'Environment variable already exists.');
return;
}
$environment = new EnvironmentVariable();
@@ -145,7 +145,7 @@ class All extends Component
}
$environment->save();
$this->refreshEnvs();
- $this->emit('success', 'Environment variable added successfully.');
+ $this->dispatch('success', 'Environment variable added successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
similarity index 86%
rename from app/Http/Livewire/Project/Shared/EnvironmentVariable/Show.php
rename to app/Livewire/Project/Shared/EnvironmentVariable/Show.php
index eed0f7052d..865ba9bcf3 100644
--- a/app/Http/Livewire/Project/Shared/EnvironmentVariable/Show.php
+++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared\EnvironmentVariable;
+namespace App\Livewire\Project\Shared\EnvironmentVariable;
use App\Models\EnvironmentVariable as ModelsEnvironmentVariable;
use Livewire\Component;
@@ -49,7 +49,7 @@ class Show extends Component
$this->env->is_shown_once = true;
$this->env->save();
$this->checkEnvs();
- $this->emit('refreshEnvs');
+ $this->dispatch('refreshEnvs');
}
public function instantSave()
{
@@ -59,13 +59,13 @@ class Show extends Component
{
$this->validate();
$this->env->save();
- $this->emit('success', 'Environment variable updated successfully.');
- $this->emit('refreshEnvs');
+ $this->dispatch('success', 'Environment variable updated successfully.');
+ $this->dispatch('refreshEnvs');
}
public function delete()
{
$this->env->delete();
- $this->emit('refreshEnvs');
+ $this->dispatch('refreshEnvs');
}
}
diff --git a/app/Http/Livewire/Project/Shared/ExecuteContainerCommand.php b/app/Livewire/Project/Shared/ExecuteContainerCommand.php
similarity index 97%
rename from app/Http/Livewire/Project/Shared/ExecuteContainerCommand.php
rename to app/Livewire/Project/Shared/ExecuteContainerCommand.php
index 3c73a7f523..c0a373c383 100644
--- a/app/Http/Livewire/Project/Shared/ExecuteContainerCommand.php
+++ b/app/Livewire/Project/Shared/ExecuteContainerCommand.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared;
+namespace App\Livewire\Project\Shared;
use App\Models\Application;
use App\Models\Server;
@@ -98,7 +98,7 @@ class ExecuteContainerCommand extends Component
$exec = "docker exec {$this->container} {$this->command}";
}
$activity = remote_process([$exec], $this->server, ignore_errors: true);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Project/Shared/GetLogs.php b/app/Livewire/Project/Shared/GetLogs.php
similarity index 98%
rename from app/Http/Livewire/Project/Shared/GetLogs.php
rename to app/Livewire/Project/Shared/GetLogs.php
index 933938f560..8d66c6f673 100644
--- a/app/Http/Livewire/Project/Shared/GetLogs.php
+++ b/app/Livewire/Project/Shared/GetLogs.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared;
+namespace App\Livewire\Project\Shared;
use App\Models\Application;
use App\Models\Server;
diff --git a/app/Http/Livewire/Project/Shared/HealthChecks.php b/app/Livewire/Project/Shared/HealthChecks.php
similarity index 87%
rename from app/Http/Livewire/Project/Shared/HealthChecks.php
rename to app/Livewire/Project/Shared/HealthChecks.php
index 1c783abecd..3bf507cab6 100644
--- a/app/Http/Livewire/Project/Shared/HealthChecks.php
+++ b/app/Livewire/Project/Shared/HealthChecks.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared;
+namespace App\Livewire\Project\Shared;
use Livewire\Component;
@@ -26,7 +26,7 @@ class HealthChecks extends Component
public function instantSave()
{
$this->resource->save();
- $this->emit('success', 'Health check updated.');
+ $this->dispatch('success', 'Health check updated.');
}
@@ -35,7 +35,7 @@ class HealthChecks extends Component
try {
$this->validate();
$this->resource->save();
- $this->emit('success', 'Health check updated.');
+ $this->dispatch('success', 'Health check updated.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Project/Shared/Logs.php b/app/Livewire/Project/Shared/Logs.php
similarity index 98%
rename from app/Http/Livewire/Project/Shared/Logs.php
rename to app/Livewire/Project/Shared/Logs.php
index 18b632ab48..a927ba9efd 100644
--- a/app/Http/Livewire/Project/Shared/Logs.php
+++ b/app/Livewire/Project/Shared/Logs.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared;
+namespace App\Livewire\Project\Shared;
use App\Models\Application;
use App\Models\Server;
diff --git a/app/Http/Livewire/Project/Shared/ResourceLimits.php b/app/Livewire/Project/Shared/ResourceLimits.php
similarity index 94%
rename from app/Http/Livewire/Project/Shared/ResourceLimits.php
rename to app/Livewire/Project/Shared/ResourceLimits.php
index 5959cb9ac6..692c5f741e 100644
--- a/app/Http/Livewire/Project/Shared/ResourceLimits.php
+++ b/app/Livewire/Project/Shared/ResourceLimits.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared;
+namespace App\Livewire\Project\Shared;
use Livewire\Component;
@@ -52,7 +52,7 @@ class ResourceLimits extends Component
}
$this->validate();
$this->resource->save();
- $this->emit('success', 'Resource limits updated successfully.');
+ $this->dispatch('success', 'Resource limits updated successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Project/Shared/Storages/Add.php b/app/Livewire/Project/Shared/Storages/Add.php
similarity index 91%
rename from app/Http/Livewire/Project/Shared/Storages/Add.php
rename to app/Livewire/Project/Shared/Storages/Add.php
index 7278eda7ae..b1f467b348 100644
--- a/app/Http/Livewire/Project/Shared/Storages/Add.php
+++ b/app/Livewire/Project/Shared/Storages/Add.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared\Storages;
+namespace App\Livewire\Project\Shared\Storages;
use Livewire\Component;
@@ -33,7 +33,7 @@ class Add extends Component
{
$this->validate();
$name = $this->uuid . '-' . $this->name;
- $this->emit('addNewVolume', [
+ $this->dispatch('addNewVolume', [
'name' => $name,
'mount_path' => $this->mount_path,
'host_path' => $this->host_path,
diff --git a/app/Http/Livewire/Project/Shared/Storages/All.php b/app/Livewire/Project/Shared/Storages/All.php
similarity index 83%
rename from app/Http/Livewire/Project/Shared/Storages/All.php
rename to app/Livewire/Project/Shared/Storages/All.php
index 4570717118..598bc63d5f 100644
--- a/app/Http/Livewire/Project/Shared/Storages/All.php
+++ b/app/Livewire/Project/Shared/Storages/All.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared\Storages;
+namespace App\Livewire\Project\Shared\Storages;
use App\Models\LocalPersistentVolume;
use Livewire\Component;
diff --git a/app/Http/Livewire/Project/Shared/Storages/Show.php b/app/Livewire/Project/Shared/Storages/Show.php
similarity index 84%
rename from app/Http/Livewire/Project/Shared/Storages/Show.php
rename to app/Livewire/Project/Shared/Storages/Show.php
index 15d16095cc..0f65aa91e6 100644
--- a/app/Http/Livewire/Project/Shared/Storages/Show.php
+++ b/app/Livewire/Project/Shared/Storages/Show.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared\Storages;
+namespace App\Livewire\Project\Shared\Storages;
use App\Models\LocalPersistentVolume;
use Livewire\Component;
@@ -33,12 +33,12 @@ class Show extends Component
{
$this->validate();
$this->storage->save();
- $this->emit('success', 'Storage updated successfully');
+ $this->dispatch('success', 'Storage updated successfully');
}
public function delete()
{
$this->storage->delete();
- $this->emit('refreshStorages');
+ $this->dispatch('refreshStorages');
}
}
diff --git a/app/Http/Livewire/Project/Shared/Webhooks.php b/app/Livewire/Project/Shared/Webhooks.php
similarity index 91%
rename from app/Http/Livewire/Project/Shared/Webhooks.php
rename to app/Livewire/Project/Shared/Webhooks.php
index d425b51dfd..c54a1c38fe 100644
--- a/app/Http/Livewire/Project/Shared/Webhooks.php
+++ b/app/Livewire/Project/Shared/Webhooks.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Project\Shared;
+namespace App\Livewire\Project\Shared;
use Livewire\Component;
@@ -19,7 +19,7 @@ class Webhooks extends Component
try {
$this->validate();
$this->resource->save();
- $this->emit('success','Secret Saved.');
+ $this->dispatch('success','Secret Saved.');
} catch (\Exception $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/RunCommand.php b/app/Livewire/RunCommand.php
old mode 100755
new mode 100644
similarity index 89%
rename from app/Http/Livewire/RunCommand.php
rename to app/Livewire/RunCommand.php
index b8f4c6af87..3092834031
--- a/app/Http/Livewire/RunCommand.php
+++ b/app/Livewire/RunCommand.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire;
+namespace App\Livewire;
use App\Models\Server;
use Livewire\Component;
@@ -31,7 +31,7 @@ class RunCommand extends Component
$this->validate();
try {
$activity = remote_process([$this->command], Server::where('uuid', $this->server)->first(), ignore_errors: true);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Security/ApiTokens.php b/app/Livewire/Security/ApiTokens.php
similarity index 96%
rename from app/Http/Livewire/Security/ApiTokens.php
rename to app/Livewire/Security/ApiTokens.php
index f00b309309..f0ffff133e 100644
--- a/app/Http/Livewire/Security/ApiTokens.php
+++ b/app/Livewire/Security/ApiTokens.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Security;
+namespace App\Livewire\Security;
use Livewire\Component;
diff --git a/app/Http/Livewire/Server/All.php b/app/Livewire/Server/All.php
similarity index 90%
rename from app/Http/Livewire/Server/All.php
rename to app/Livewire/Server/All.php
index 94db86f34b..fad5f3fba1 100644
--- a/app/Http/Livewire/Server/All.php
+++ b/app/Livewire/Server/All.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server;
+namespace App\Livewire\Server;
use App\Models\Server;
use Illuminate\Database\Eloquent\Collection;
diff --git a/app/Http/Livewire/Server/Create.php b/app/Livewire/Server/Create.php
similarity index 94%
rename from app/Http/Livewire/Server/Create.php
rename to app/Livewire/Server/Create.php
index 3d19535134..1471284573 100644
--- a/app/Http/Livewire/Server/Create.php
+++ b/app/Livewire/Server/Create.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server;
+namespace App\Livewire\Server;
use App\Models\PrivateKey;
use Livewire\Component;
diff --git a/app/Http/Livewire/Server/Delete.php b/app/Livewire/Server/Delete.php
similarity index 82%
rename from app/Http/Livewire/Server/Delete.php
rename to app/Livewire/Server/Delete.php
index 8680d4cf08..73edf5ffe9 100644
--- a/app/Http/Livewire/Server/Delete.php
+++ b/app/Livewire/Server/Delete.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server;
+namespace App\Livewire\Server;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Livewire\Component;
@@ -15,7 +15,7 @@ class Delete extends Component
try {
$this->authorize('delete', $this->server);
if ($this->server->hasDefinedResources()) {
- $this->emit('error', 'Server has defined resources. Please delete them first.');
+ $this->dispatch('error', 'Server has defined resources. Please delete them first.');
return;
}
$this->server->delete();
diff --git a/app/Http/Livewire/Server/Destination/Show.php b/app/Livewire/Server/Destination/Show.php
similarity index 93%
rename from app/Http/Livewire/Server/Destination/Show.php
rename to app/Livewire/Server/Destination/Show.php
index e021f9605e..059dde4fb3 100644
--- a/app/Http/Livewire/Server/Destination/Show.php
+++ b/app/Livewire/Server/Destination/Show.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server\Destination;
+namespace App\Livewire\Server\Destination;
use App\Models\Server;
use Livewire\Component;
diff --git a/app/Http/Livewire/Server/Form.php b/app/Livewire/Server/Form.php
similarity index 77%
rename from app/Http/Livewire/Server/Form.php
rename to app/Livewire/Server/Form.php
index 512a7f68aa..3360274717 100644
--- a/app/Http/Livewire/Server/Form.php
+++ b/app/Livewire/Server/Form.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server;
+namespace App\Livewire\Server;
use App\Actions\Server\InstallDocker;
use App\Models\Server;
@@ -56,28 +56,28 @@ class Form extends Component
refresh_server_connection($this->server->privateKey);
$this->validateServer(false);
$this->server->settings->save();
- $this->emit('success', 'Server updated successfully.');
+ $this->dispatch('success', 'Server updated successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
}
public function installDocker()
{
- $this->emit('installDocker');
+ $this->dispatch('installDocker');
$this->dockerInstallationStarted = true;
$activity = InstallDocker::run($this->server);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
}
public function checkLocalhostConnection()
{
$uptime = $this->server->validateConnection();
if ($uptime) {
- $this->emit('success', 'Server is reachable.');
+ $this->dispatch('success', 'Server is reachable.');
$this->server->settings->is_reachable = true;
$this->server->settings->is_usable = true;
$this->server->settings->save();
} else {
- $this->emit('error', 'Server is not reachable. Please check your connection and configuration.');
+ $this->dispatch('error', 'Server is not reachable. Please check your connection and configuration.');
return;
}
}
@@ -86,24 +86,24 @@ class Form extends Component
try {
$uptime = $this->server->validateConnection();
if (!$uptime) {
- $install && $this->emit('error', 'Server is not reachable. Please check your connection and configuration.');
+ $install && $this->dispatch('error', 'Server is not reachable. Please check your connection and configuration.');
return;
}
$supported_os_type = $this->server->validateOS();
if (!$supported_os_type) {
- $install && $this->emit('error', 'Server OS type is not supported for automated installation. Please install Docker manually before continuing: <a target="_blank" class="underline" href="https://coolify.io/docs/servers#install-docker-engine-manually">documentation</a>.');
+ $install && $this->dispatch('error', 'Server OS type is not supported for automated installation. Please install Docker manually before continuing: <a target="_blank" class="underline" href="https://coolify.io/docs/servers#install-docker-engine-manually">documentation</a>.');
return;
}
$dockerInstalled = $this->server->validateDockerEngine();
if ($dockerInstalled) {
- $install && $this->emit('success', 'Docker Engine is installed.<br> Checking version.');
+ $install && $this->dispatch('success', 'Docker Engine is installed.<br> Checking version.');
} else {
$install && $this->installDocker();
return;
}
$dockerVersion = $this->server->validateDockerEngineVersion();
if ($dockerVersion) {
- $install && $this->emit('success', 'Docker Engine version is 22+.');
+ $install && $this->dispatch('success', 'Docker Engine version is 22+.');
} else {
$install && $this->installDocker();
return;
@@ -111,13 +111,13 @@ class Form extends Component
if ($this->server->isSwarm()) {
$swarmInstalled = $this->server->validateDockerSwarm();
if ($swarmInstalled) {
- $install && $this->emit('success', 'Docker Swarm is initiated.');
+ $install && $this->dispatch('success', 'Docker Swarm is initiated.');
}
}
} catch (\Throwable $e) {
return handleError($e, $this);
} finally {
- $this->emit('proxyStatusUpdated');
+ $this->dispatch('proxyStatusUpdated');
}
}
@@ -135,7 +135,7 @@ class Form extends Component
return $server->id === $this->server->id;
})->pluck('ip')->toArray();
if (in_array($this->server->ip, $uniqueIPs)) {
- $this->emit('error', 'IP address is already in use by another team.');
+ $this->dispatch('error', 'IP address is already in use by another team.');
return;
}
refresh_server_connection($this->server->privateKey);
@@ -143,6 +143,6 @@ class Form extends Component
$this->server->settings->cleanup_after_percentage = $this->cleanup_after_percentage;
$this->server->settings->save();
$this->server->save();
- $this->emit('success', 'Server updated successfully.');
+ $this->dispatch('success', 'Server updated successfully.');
}
}
diff --git a/app/Http/Livewire/Server/LogDrains.php b/app/Livewire/Server/LogDrains.php
similarity index 94%
rename from app/Http/Livewire/Server/LogDrains.php
rename to app/Livewire/Server/LogDrains.php
index 5afe540ca8..c93f49222d 100644
--- a/app/Http/Livewire/Server/LogDrains.php
+++ b/app/Livewire/Server/LogDrains.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server;
+namespace App\Livewire\Server;
use App\Actions\Server\InstallLogDrain;
use App\Models\Server;
@@ -55,12 +55,12 @@ class LogDrains extends Component
try {
InstallLogDrain::run($this->server);
if (!$this->server->isLogDrainEnabled()) {
- $this->emit('serverRefresh');
- $this->emit('success', 'Log drain service stopped.');
+ $this->dispatch('serverRefresh');
+ $this->dispatch('success', 'Log drain service stopped.');
return;
}
- $this->emit('serverRefresh');
- $this->emit('success', 'Log drain service started successfully.');
+ $this->dispatch('serverRefresh');
+ $this->dispatch('success', 'Log drain service started successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
@@ -126,7 +126,7 @@ class LogDrains extends Component
]);
}
$this->server->settings->save();
- $this->emit('success', 'Settings saved successfully.');
+ $this->dispatch('success', 'Settings saved successfully.');
return true;
} catch (\Throwable $e) {
if ($type === 'newrelic') {
diff --git a/app/Http/Livewire/Server/New/ByIp.php b/app/Livewire/Server/New/ByIp.php
similarity index 92%
rename from app/Http/Livewire/Server/New/ByIp.php
rename to app/Livewire/Server/New/ByIp.php
index 858f4ffa11..657d65c883 100644
--- a/app/Http/Livewire/Server/New/ByIp.php
+++ b/app/Livewire/Server/New/ByIp.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server\New;
+namespace App\Livewire\Server\New;
use App\Enums\ProxyStatus;
use App\Enums\ProxyTypes;
@@ -53,7 +53,7 @@ class ByIp extends Component
public function instantSave()
{
- $this->emit('success', 'Application settings updated!');
+ $this->dispatch('success', 'Application settings updated!');
}
public function submit()
@@ -61,7 +61,7 @@ class ByIp extends Component
$this->validate();
try {
if (is_null($this->private_key_id)) {
- return $this->emit('error', 'You must select a private key');
+ return $this->dispatch('error', 'You must select a private key');
}
$server = Server::create([
'name' => $this->name,
diff --git a/app/Http/Livewire/Server/PrivateKey/Show.php b/app/Livewire/Server/PrivateKey/Show.php
similarity index 94%
rename from app/Http/Livewire/Server/PrivateKey/Show.php
rename to app/Livewire/Server/PrivateKey/Show.php
index 22c52218ab..9fa0acb75f 100644
--- a/app/Http/Livewire/Server/PrivateKey/Show.php
+++ b/app/Livewire/Server/PrivateKey/Show.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server\PrivateKey;
+namespace App\Livewire\Server\PrivateKey;
use App\Models\PrivateKey;
use App\Models\Server;
diff --git a/app/Http/Livewire/Server/Proxy.php b/app/Livewire/Server/Proxy.php
similarity index 86%
rename from app/Http/Livewire/Server/Proxy.php
rename to app/Livewire/Server/Proxy.php
index 66eb307b3d..79ddb203b7 100644
--- a/app/Http/Livewire/Server/Proxy.php
+++ b/app/Livewire/Server/Proxy.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server;
+namespace App\Livewire\Server;
use App\Actions\Proxy\CheckConfiguration;
use App\Actions\Proxy\SaveConfiguration;
@@ -33,7 +33,7 @@ class Proxy extends Component
{
$this->server->proxy = null;
$this->server->save();
- $this->emit('proxyStatusUpdated');
+ $this->dispatch('proxyStatusUpdated');
}
public function select_proxy($proxy_type)
@@ -42,7 +42,7 @@ class Proxy extends Component
$this->server->proxy->set('type', $proxy_type);
$this->server->save();
$this->selectedProxy = $this->server->proxy->type;
- $this->emit('proxyStatusUpdated');
+ $this->dispatch('proxyStatusUpdated');
}
public function submit()
@@ -53,7 +53,7 @@ class Proxy extends Component
$this->server->save();
setup_default_redirect_404(redirect_url: $this->server->proxy->redirect_url, server: $this->server);
- $this->emit('success', 'Proxy configuration saved.');
+ $this->dispatch('success', 'Proxy configuration saved.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
@@ -73,9 +73,9 @@ class Proxy extends Component
try {
$this->proxy_settings = CheckConfiguration::run($this->server);
if (Str::of($this->proxy_settings)->contains('--api.dashboard=true') && Str::of($this->proxy_settings)->contains('--api.insecure=true')) {
- $this->emit('traefikDashboardAvailable', true);
+ $this->dispatch('traefikDashboardAvailable', true);
} else {
- $this->emit('traefikDashboardAvailable', false);
+ $this->dispatch('traefikDashboardAvailable', false);
}
} catch (\Throwable $e) {
diff --git a/app/Http/Livewire/Server/Proxy/Deploy.php b/app/Livewire/Server/Proxy/Deploy.php
similarity index 86%
rename from app/Http/Livewire/Server/Proxy/Deploy.php
rename to app/Livewire/Server/Proxy/Deploy.php
index 9612eccc78..4c748b7fa5 100644
--- a/app/Http/Livewire/Server/Proxy/Deploy.php
+++ b/app/Livewire/Server/Proxy/Deploy.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server\Proxy;
+namespace App\Livewire\Server\Proxy;
use App\Actions\Proxy\CheckProxy;
use App\Actions\Proxy\StartProxy;
@@ -40,8 +40,8 @@ class Deploy extends Component
{
try {
CheckProxy::run($this->server, true);
- $this->emit('startProxyPolling');
- $this->emit('proxyChecked');
+ $this->dispatch('startProxyPolling');
+ $this->dispatch('proxyChecked');
} catch (\Throwable $e) {
return handleError($e, $this);
}
@@ -50,7 +50,7 @@ class Deploy extends Component
{
try {
$activity = StartProxy::run($this->server);
- $this->emit('newMonitorActivity', $activity->id);
+ $this->dispatch('newMonitorActivity', $activity->id);
} catch (\Throwable $e) {
return handleError($e, $this);
}
@@ -65,14 +65,14 @@ class Deploy extends Component
], $this->server);
$this->server->proxy->status = 'exited';
$this->server->save();
- $this->emit('proxyStatusUpdated');
+ $this->dispatch('proxyStatusUpdated');
} else {
instant_remote_process([
"docker rm -f coolify-proxy",
], $this->server);
$this->server->proxy->status = 'exited';
$this->server->save();
- $this->emit('proxyStatusUpdated');
+ $this->dispatch('proxyStatusUpdated');
}
} catch (\Throwable $e) {
return handleError($e, $this);
diff --git a/app/Http/Livewire/Server/Proxy/Logs.php b/app/Livewire/Server/Proxy/Logs.php
similarity index 94%
rename from app/Http/Livewire/Server/Proxy/Logs.php
rename to app/Livewire/Server/Proxy/Logs.php
index cb8c245a6c..559de376a4 100644
--- a/app/Http/Livewire/Server/Proxy/Logs.php
+++ b/app/Livewire/Server/Proxy/Logs.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server\Proxy;
+namespace App\Livewire\Server\Proxy;
use App\Models\Server;
use Livewire\Component;
diff --git a/app/Http/Livewire/Server/Proxy/Modal.php b/app/Livewire/Server/Proxy/Modal.php
similarity index 66%
rename from app/Http/Livewire/Server/Proxy/Modal.php
rename to app/Livewire/Server/Proxy/Modal.php
index 2674abe3d1..5679944d04 100644
--- a/app/Http/Livewire/Server/Proxy/Modal.php
+++ b/app/Livewire/Server/Proxy/Modal.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server\Proxy;
+namespace App\Livewire\Server\Proxy;
use App\Models\Server;
use Livewire\Component;
@@ -11,6 +11,6 @@ class Modal extends Component
public function proxyStatusUpdated()
{
- $this->emit('proxyStatusUpdated');
+ $this->dispatch('proxyStatusUpdated');
}
}
diff --git a/app/Http/Livewire/Server/Proxy/Show.php b/app/Livewire/Server/Proxy/Show.php
similarity index 95%
rename from app/Http/Livewire/Server/Proxy/Show.php
rename to app/Livewire/Server/Proxy/Show.php
index 26ea54e491..dcfcc1015e 100644
--- a/app/Http/Livewire/Server/Proxy/Show.php
+++ b/app/Livewire/Server/Proxy/Show.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server\Proxy;
+namespace App\Livewire\Server\Proxy;
use App\Models\Server;
use Livewire\Component;
diff --git a/app/Http/Livewire/Server/Proxy/Status.php b/app/Livewire/Server/Proxy/Status.php
similarity index 79%
rename from app/Http/Livewire/Server/Proxy/Status.php
rename to app/Livewire/Server/Proxy/Status.php
index 674dd623d1..bb368e9350 100644
--- a/app/Http/Livewire/Server/Proxy/Status.php
+++ b/app/Livewire/Server/Proxy/Status.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server\Proxy;
+namespace App\Livewire\Server\Proxy;
use App\Actions\Proxy\CheckProxy;
use App\Jobs\ContainerStatusJob;
@@ -32,18 +32,18 @@ class Status extends Component
if ($this->numberOfPolls >= 10) {
$this->polling = false;
$this->numberOfPolls = 0;
- $notification && $this->emit('error', 'Proxy is not running.');
+ $notification && $this->dispatch('error', 'Proxy is not running.');
return;
}
$this->numberOfPolls++;
}
CheckProxy::run($this->server, true);
- $this->emit('proxyStatusUpdated');
+ $this->dispatch('proxyStatusUpdated');
if ($this->server->proxy->status === 'running') {
$this->polling = false;
- $notification && $this->emit('success', 'Proxy is running.');
+ $notification && $this->dispatch('success', 'Proxy is running.');
} else {
- $notification && $this->emit('error', 'Proxy is not running.');
+ $notification && $this->dispatch('error', 'Proxy is not running.');
}
} catch (\Throwable $e) {
return handleError($e, $this);
@@ -53,7 +53,7 @@ class Status extends Component
{
try {
dispatch_sync(new ContainerStatusJob($this->server));
- $this->emit('proxyStatusUpdated');
+ $this->dispatch('proxyStatusUpdated');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Server/Show.php b/app/Livewire/Server/Show.php
similarity index 91%
rename from app/Http/Livewire/Server/Show.php
rename to app/Livewire/Server/Show.php
index a72abdf940..f7e475e114 100644
--- a/app/Http/Livewire/Server/Show.php
+++ b/app/Livewire/Server/Show.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server;
+namespace App\Livewire\Server;
use App\Models\Server;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
@@ -26,7 +26,7 @@ class Show extends Component
}
public function submit()
{
- $this->emit('serverRefresh',false);
+ $this->dispatch('serverRefresh',false);
}
public function render()
{
diff --git a/app/Http/Livewire/Server/ShowPrivateKey.php b/app/Livewire/Server/ShowPrivateKey.php
similarity index 85%
rename from app/Http/Livewire/Server/ShowPrivateKey.php
rename to app/Livewire/Server/ShowPrivateKey.php
index 98035fa7c7..8478094ad0 100644
--- a/app/Http/Livewire/Server/ShowPrivateKey.php
+++ b/app/Livewire/Server/ShowPrivateKey.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Server;
+namespace App\Livewire\Server;
use App\Models\Server;
use Livewire\Component;
@@ -37,9 +37,9 @@ class ShowPrivateKey extends Component
try {
$uptime = $this->server->validateConnection();
if ($uptime) {
- $this->emit('success', 'Server is reachable.');
+ $this->dispatch('success', 'Server is reachable.');
} else {
- $this->emit('error', 'Server is not reachable. Please check your connection and private key configuration.');
+ $this->dispatch('error', 'Server is not reachable. Please check your connection and private key configuration.');
return;
}
} catch (\Throwable $e) {
diff --git a/app/Http/Livewire/Settings/Backup.php b/app/Livewire/Settings/Backup.php
similarity index 93%
rename from app/Http/Livewire/Settings/Backup.php
rename to app/Livewire/Settings/Backup.php
index 7a5e2f0ed8..519fe1bd8c 100644
--- a/app/Http/Livewire/Settings/Backup.php
+++ b/app/Livewire/Settings/Backup.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Settings;
+namespace App\Livewire\Settings;
use App\Jobs\DatabaseBackupJob;
use App\Models\InstanceSettings;
@@ -77,10 +77,10 @@ class Backup extends Component
dispatch(new DatabaseBackupJob(
backup: $this->backup
));
- $this->emit('success', 'Backup queued. It will be available in a few minutes.');
+ $this->dispatch('success', 'Backup queued. It will be available in a few minutes.');
}
public function submit()
{
- $this->emit('success', 'Backup updated successfully.');
+ $this->dispatch('success', 'Backup updated successfully.');
}
}
diff --git a/app/Http/Livewire/Settings/Configuration.php b/app/Livewire/Settings/Configuration.php
similarity index 96%
rename from app/Http/Livewire/Settings/Configuration.php
rename to app/Livewire/Settings/Configuration.php
index 668c3d5c47..62ade961b5 100644
--- a/app/Http/Livewire/Settings/Configuration.php
+++ b/app/Livewire/Settings/Configuration.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Settings;
+namespace App\Livewire\Settings;
use App\Jobs\ContainerStatusJob;
use App\Models\InstanceSettings as ModelsInstanceSettings;
@@ -52,7 +52,7 @@ class Configuration extends Component
$this->settings->next_channel = $this->next_channel;
}
$this->settings->save();
- $this->emit('success', 'Settings updated!');
+ $this->dispatch('success', 'Settings updated!');
}
public function submit()
@@ -66,7 +66,7 @@ class Configuration extends Component
$this->settings->save();
$this->server = Server::findOrFail(0);
$this->setup_instance_fqdn();
- $this->emit('success', 'Instance settings updated successfully!');
+ $this->dispatch('success', 'Instance settings updated successfully!');
}
private function setup_instance_fqdn()
diff --git a/app/Http/Livewire/Settings/Email.php b/app/Livewire/Settings/Email.php
similarity index 91%
rename from app/Http/Livewire/Settings/Email.php
rename to app/Livewire/Settings/Email.php
index 85a4dc04d4..d005462a81 100644
--- a/app/Http/Livewire/Settings/Email.php
+++ b/app/Livewire/Settings/Email.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Settings;
+namespace App\Livewire\Settings;
use App\Models\InstanceSettings;
use App\Notifications\TransactionalEmails\Test;
@@ -49,7 +49,7 @@ class Email extends Component
'settings.smtp_from_name' => 'required',
]);
$this->settings->save();
- $this->emit('success', 'Settings saved successfully.');
+ $this->dispatch('success', 'Settings saved successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
@@ -61,7 +61,7 @@ class Email extends Component
'settings.resend_api_key' => 'required'
]);
$this->settings->save();
- $this->emit('success', 'Settings saved successfully.');
+ $this->dispatch('success', 'Settings saved successfully.');
} catch (\Throwable $e) {
$this->settings->resend_enabled = false;
return handleError($e, $this);
@@ -98,7 +98,7 @@ class Email extends Component
'settings.smtp_timeout' => 'nullable',
]);
$this->settings->save();
- $this->emit('success', 'Settings saved successfully.');
+ $this->dispatch('success', 'Settings saved successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
@@ -107,6 +107,6 @@ class Email extends Component
public function sendTestNotification()
{
$this->settings->notify(new Test($this->emails));
- $this->emit('success', 'Test email sent.');
+ $this->dispatch('success', 'Test email sent.');
}
}
diff --git a/app/Http/Livewire/Source/Github/Change.php b/app/Livewire/Source/Github/Change.php
similarity index 97%
rename from app/Http/Livewire/Source/Github/Change.php
rename to app/Livewire/Source/Github/Change.php
index c9ef89c021..489d54b8ab 100644
--- a/app/Http/Livewire/Source/Github/Change.php
+++ b/app/Livewire/Source/Github/Change.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Source\Github;
+namespace App\Livewire\Source\Github;
use App\Models\GithubApp;
use App\Models\InstanceSettings;
@@ -90,7 +90,7 @@ class Change extends Component
$this->github_app->makeVisible('client_secret')->makeVisible('webhook_secret');
$this->validate();
$this->github_app->save();
- $this->emit('success', 'Github App updated successfully.');
+ $this->dispatch('success', 'Github App updated successfully.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Source/Github/Create.php b/app/Livewire/Source/Github/Create.php
similarity index 97%
rename from app/Http/Livewire/Source/Github/Create.php
rename to app/Livewire/Source/Github/Create.php
index 75951d946e..5af6616cfc 100644
--- a/app/Http/Livewire/Source/Github/Create.php
+++ b/app/Livewire/Source/Github/Create.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Source\Github;
+namespace App\Livewire\Source\Github;
use App\Models\GithubApp;
use Livewire\Component;
diff --git a/app/Http/Livewire/Source/Gitlab/Change.php b/app/Livewire/Source/Gitlab/Change.php
similarity index 79%
rename from app/Http/Livewire/Source/Gitlab/Change.php
rename to app/Livewire/Source/Gitlab/Change.php
index de52e011f9..34600bb7dc 100644
--- a/app/Http/Livewire/Source/Gitlab/Change.php
+++ b/app/Livewire/Source/Gitlab/Change.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Source\Gitlab;
+namespace App\Livewire\Source\Gitlab;
use Livewire\Component;
diff --git a/app/Http/Livewire/Sponsorship.php b/app/Livewire/Sponsorship.php
similarity index 85%
rename from app/Http/Livewire/Sponsorship.php
rename to app/Livewire/Sponsorship.php
index 318b0090c1..992498d79f 100644
--- a/app/Http/Livewire/Sponsorship.php
+++ b/app/Livewire/Sponsorship.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire;
+namespace App\Livewire;
use Livewire\Component;
@@ -15,7 +15,7 @@ class Sponsorship extends Component
}
public function testEvent()
{
- $this->emit('success', 'Realtime events configured!');
+ $this->dispatch('success', 'Realtime events configured!');
}
public function disable()
{
diff --git a/app/Http/Livewire/Subscription/Actions.php b/app/Livewire/Subscription/Actions.php
similarity index 88%
rename from app/Http/Livewire/Subscription/Actions.php
rename to app/Livewire/Subscription/Actions.php
index 2f97e899db..bd4dbd69af 100644
--- a/app/Http/Livewire/Subscription/Actions.php
+++ b/app/Livewire/Subscription/Actions.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Subscription;
+namespace App\Livewire\Subscription;
use Illuminate\Support\Facades\Http;
use Livewire\Component;
@@ -27,8 +27,8 @@ class Actions extends Component
}
throw new \Exception(data_get($json, 'errors.0.title', 'Something went wrong. Please try again later.'));
} else {
- $this->emit('success', 'Subscription cancelled successfully. Reloading in 5s.');
- $this->emit('reloadWindow', 5000);
+ $this->dispatch('success', 'Subscription cancelled successfully. Reloading in 5s.');
+ $this->dispatch('reloadWindow', 5000);
}
} catch (\Throwable $e) {
return handleError($e, $this);
@@ -62,8 +62,8 @@ class Actions extends Component
}
throw new \Exception(data_get($json, 'errors.0.title', 'Something went wrong. Please try again later.'));
} else {
- $this->emit('success', 'Subscription resumed successfully. Reloading in 5s.');
- $this->emit('reloadWindow', 5000);
+ $this->dispatch('success', 'Subscription resumed successfully. Reloading in 5s.');
+ $this->dispatch('reloadWindow', 5000);
}
} catch (\Throwable $e) {
return handleError($e, $this);
diff --git a/app/Http/Livewire/Subscription/PricingPlans.php b/app/Livewire/Subscription/PricingPlans.php
similarity index 96%
rename from app/Http/Livewire/Subscription/PricingPlans.php
rename to app/Livewire/Subscription/PricingPlans.php
index 07ee7c792c..a3afcaabc5 100644
--- a/app/Http/Livewire/Subscription/PricingPlans.php
+++ b/app/Livewire/Subscription/PricingPlans.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Subscription;
+namespace App\Livewire\Subscription;
use Livewire\Component;
use Stripe\Stripe;
@@ -43,7 +43,7 @@ class PricingPlans extends Component
break;
}
if (!$priceId) {
- $this->emit('error', 'Price ID not found! Please contact the administrator.');
+ $this->dispatch('error', 'Price ID not found! Please contact the administrator.');
return;
}
$payload = [
diff --git a/app/Http/Livewire/Subscription/Show.php b/app/Livewire/Subscription/Show.php
similarity index 94%
rename from app/Http/Livewire/Subscription/Show.php
rename to app/Livewire/Subscription/Show.php
index ff028f68fe..cde2f0455f 100644
--- a/app/Http/Livewire/Subscription/Show.php
+++ b/app/Livewire/Subscription/Show.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Subscription;
+namespace App\Livewire\Subscription;
use App\Models\InstanceSettings;
use Livewire\Component;
diff --git a/app/Http/Livewire/SwitchTeam.php b/app/Livewire/SwitchTeam.php
similarity index 95%
rename from app/Http/Livewire/SwitchTeam.php
rename to app/Livewire/SwitchTeam.php
index 9a9b4c7959..845619820c 100644
--- a/app/Http/Livewire/SwitchTeam.php
+++ b/app/Livewire/SwitchTeam.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire;
+namespace App\Livewire;
use App\Models\Team;
use Livewire\Component;
diff --git a/app/Http/Livewire/Team/Create.php b/app/Livewire/Team/Create.php
similarity index 96%
rename from app/Http/Livewire/Team/Create.php
rename to app/Livewire/Team/Create.php
index 71d84d5cad..2ca647092e 100644
--- a/app/Http/Livewire/Team/Create.php
+++ b/app/Livewire/Team/Create.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Team;
+namespace App\Livewire\Team;
use App\Models\Team;
use Livewire\Component;
diff --git a/app/Http/Livewire/Team/Delete.php b/app/Livewire/Team/Delete.php
similarity index 95%
rename from app/Http/Livewire/Team/Delete.php
rename to app/Livewire/Team/Delete.php
index b09395df4f..097419c4c7 100644
--- a/app/Http/Livewire/Team/Delete.php
+++ b/app/Livewire/Team/Delete.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Team;
+namespace App\Livewire\Team;
use Illuminate\Support\Facades\DB;
use Livewire\Component;
diff --git a/app/Http/Livewire/Team/Form.php b/app/Livewire/Team/Form.php
similarity index 95%
rename from app/Http/Livewire/Team/Form.php
rename to app/Livewire/Team/Form.php
index 005a03432b..3deaf0b928 100644
--- a/app/Http/Livewire/Team/Form.php
+++ b/app/Livewire/Team/Form.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Team;
+namespace App\Livewire\Team;
use App\Models\Team;
use Livewire\Component;
diff --git a/app/Http/Livewire/Team/Invitations.php b/app/Livewire/Team/Invitations.php
similarity index 84%
rename from app/Http/Livewire/Team/Invitations.php
rename to app/Livewire/Team/Invitations.php
index f52701e342..c51723572e 100644
--- a/app/Http/Livewire/Team/Invitations.php
+++ b/app/Livewire/Team/Invitations.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Team;
+namespace App\Livewire\Team;
use App\Models\TeamInvitation;
use Livewire\Component;
@@ -14,7 +14,7 @@ class Invitations extends Component
{
TeamInvitation::find($invitation_id)->delete();
$this->refreshInvitations();
- $this->emit('success', 'Invitation revoked.');
+ $this->dispatch('success', 'Invitation revoked.');
}
public function refreshInvitations()
diff --git a/app/Http/Livewire/Team/InviteLink.php b/app/Livewire/Team/InviteLink.php
similarity index 91%
rename from app/Http/Livewire/Team/InviteLink.php
rename to app/Livewire/Team/InviteLink.php
index 8fea3a6b8b..5f9db3f847 100644
--- a/app/Http/Livewire/Team/InviteLink.php
+++ b/app/Livewire/Team/InviteLink.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Team;
+namespace App\Livewire\Team;
use App\Models\TeamInvitation;
use App\Models\User;
@@ -79,12 +79,12 @@ class InviteLink extends Component
]);
$mail->subject('You have been invited to ' . currentTeam()->name . ' on ' . config('app.name') . '.');
send_user_an_email($mail, $this->email);
- $this->emit('success', 'Invitation sent via email successfully.');
- $this->emit('refreshInvitations');
+ $this->dispatch('success', 'Invitation sent via email successfully.');
+ $this->dispatch('refreshInvitations');
return;
} else {
- $this->emit('success', 'Invitation link generated.');
- $this->emit('refreshInvitations');
+ $this->dispatch('success', 'Invitation link generated.');
+ $this->dispatch('refreshInvitations');
}
} catch (\Throwable $e) {
$error_message = $e->getMessage();
diff --git a/app/Http/Livewire/Team/Member.php b/app/Livewire/Team/Member.php
similarity index 82%
rename from app/Http/Livewire/Team/Member.php
rename to app/Livewire/Team/Member.php
index 34b8e6bde1..7d02dbf664 100644
--- a/app/Http/Livewire/Team/Member.php
+++ b/app/Livewire/Team/Member.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Team;
+namespace App\Livewire\Team;
use App\Models\User;
use Illuminate\Support\Facades\Cache;
@@ -13,13 +13,13 @@ class Member extends Component
public function makeAdmin()
{
$this->member->teams()->updateExistingPivot(currentTeam()->id, ['role' => 'admin']);
- $this->emit('reloadWindow');
+ $this->dispatch('reloadWindow');
}
public function makeReadonly()
{
$this->member->teams()->updateExistingPivot(currentTeam()->id, ['role' => 'member']);
- $this->emit('reloadWindow');
+ $this->dispatch('reloadWindow');
}
public function remove()
@@ -29,6 +29,6 @@ class Member extends Component
Cache::remember('team:' . $this->member->id, 3600, function() {
return $this->member->teams()->first();
});
- $this->emit('reloadWindow');
+ $this->dispatch('reloadWindow');
}
}
diff --git a/app/Http/Livewire/Team/Storage/Create.php b/app/Livewire/Team/Storage/Create.php
similarity index 98%
rename from app/Http/Livewire/Team/Storage/Create.php
rename to app/Livewire/Team/Storage/Create.php
index 6d140d96c4..cbbba398ff 100644
--- a/app/Http/Livewire/Team/Storage/Create.php
+++ b/app/Livewire/Team/Storage/Create.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Team\Storage;
+namespace App\Livewire\Team\Storage;
use App\Models\S3Storage;
use Livewire\Component;
diff --git a/app/Http/Livewire/Team/Storage/Form.php b/app/Livewire/Team/Storage/Form.php
similarity index 91%
rename from app/Http/Livewire/Team/Storage/Form.php
rename to app/Livewire/Team/Storage/Form.php
index e49dc67412..23b0fe34c1 100644
--- a/app/Http/Livewire/Team/Storage/Form.php
+++ b/app/Livewire/Team/Storage/Form.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Team\Storage;
+namespace App\Livewire\Team\Storage;
use App\Models\S3Storage;
use Livewire\Component;
@@ -33,7 +33,7 @@ class Form extends Component
{
try {
$this->storage->testConnection(shouldSave: true);
- return $this->emit('success', 'Connection is working. Tested with "ListObjectsV2" action.');
+ return $this->dispatch('success', 'Connection is working. Tested with "ListObjectsV2" action.');
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/Upgrade.php b/app/Livewire/Upgrade.php
similarity index 91%
rename from app/Http/Livewire/Upgrade.php
rename to app/Livewire/Upgrade.php
index fc930a997c..0c6541d8fc 100644
--- a/app/Http/Livewire/Upgrade.php
+++ b/app/Livewire/Upgrade.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire;
+namespace App\Livewire;
use App\Actions\Server\UpdateCoolify;
use App\Models\InstanceSettings;
@@ -38,7 +38,7 @@ class Upgrade extends Component
}
$this->showProgress = true;
UpdateCoolify::run(true);
- $this->emit('success', "Upgrading to {$this->latestVersion} version...");
+ $this->dispatch('success', "Upgrading to {$this->latestVersion} version...");
} catch (\Throwable $e) {
return handleError($e, $this);
}
diff --git a/app/Http/Livewire/VerifyEmail.php b/app/Livewire/VerifyEmail.php
similarity index 83%
rename from app/Http/Livewire/VerifyEmail.php
rename to app/Livewire/VerifyEmail.php
index e485102cb8..b1aec43532 100644
--- a/app/Http/Livewire/VerifyEmail.php
+++ b/app/Livewire/VerifyEmail.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire;
+namespace App\Livewire;
use Livewire\Component;
use DanHarrin\LivewireRateLimiting\WithRateLimiting;
@@ -12,7 +12,7 @@ class VerifyEmail extends Component
try {
$this->rateLimit(1, 300);
auth()->user()->sendVerificationEmail();
- $this->emit('success', 'Email verification link sent!');
+ $this->dispatch('success', 'Email verification link sent!');
} catch(\Exception $e) {
ray($e);
diff --git a/app/Http/Livewire/Waitlist/Index.php b/app/Livewire/Waitlist/Index.php
similarity index 81%
rename from app/Http/Livewire/Waitlist/Index.php
rename to app/Livewire/Waitlist/Index.php
index c1e6ad9392..a3829dec71 100644
--- a/app/Http/Livewire/Waitlist/Index.php
+++ b/app/Livewire/Waitlist/Index.php
@@ -1,6 +1,6 @@
<?php
-namespace App\Http\Livewire\Waitlist;
+namespace App\Livewire\Waitlist;
use App\Jobs\SendConfirmationForWaitlistJob;
use App\Models\User;
@@ -43,10 +43,10 @@ class Index extends Component
$found = Waitlist::where('email', $this->email)->first();
if ($found) {
if (!$found->verified) {
- $this->emit('error', 'You are already on the waitlist. <br>Please check your email to verify your email address.');
+ $this->dispatch('error', 'You are already on the waitlist. <br>Please check your email to verify your email address.');
return;
}
- $this->emit('error', 'You are already on the waitlist. <br>You will be notified when your turn comes. <br>Thank you.');
+ $this->dispatch('error', 'You are already on the waitlist. <br>You will be notified when your turn comes. <br>Thank you.');
return;
}
$waitlist = Waitlist::create([
@@ -54,7 +54,7 @@ class Index extends Component
'type' => 'registration',
]);
- $this->emit('success', 'Check your email to verify your email address.');
+ $this->dispatch('success', 'Check your email to verify your email address.');
dispatch(new SendConfirmationForWaitlistJob($this->email, $waitlist->uuid));
} catch (\Throwable $e) {
return handleError($e, $this);
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 3b4e2708d7..03de7c09d8 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -102,7 +102,7 @@ function handleError(?Throwable $error = null, ?Livewire\Component $livewire = n
{
if ($error instanceof TooManyRequestsException) {
if (isset($livewire)) {
- return $livewire->emit('error', "Too many requests. Please try again in {$error->secondsUntilAvailable} seconds.");
+ return $livewire->dispatch('error', "Too many requests. Please try again in {$error->secondsUntilAvailable} seconds.");
}
return "Too many requests. Please try again in {$error->secondsUntilAvailable} seconds.";
}
@@ -117,7 +117,7 @@ function handleError(?Throwable $error = null, ?Livewire\Component $livewire = n
}
if (isset($livewire)) {
- return $livewire->emit('error', $message);
+ return $livewire->dispatch('error', $message);
}
throw new Exception($message);
}
diff --git a/composer.json b/composer.json
index 349133ffa6..5a7f398448 100644
--- a/composer.json
+++ b/composer.json
@@ -22,9 +22,9 @@
"lcobucci/jwt": "^5.0.0",
"league/flysystem-aws-s3-v3": "^3.0",
"league/flysystem-sftp-v3": "^3.0",
- "livewire/livewire": "^v2.12.3",
+ "livewire/livewire": "^3.0",
"lorisleiva/laravel-actions": "^2.7",
- "masmerise/livewire-toaster": "^1.2",
+ "masmerise/livewire-toaster": "^2.0",
"nubs/random-name-generator": "^2.2",
"phpseclib/phpseclib": "~3.0",
"poliander/cron": "^3.0",
@@ -39,7 +39,7 @@
"stripe/stripe-php": "^12.0",
"symfony/yaml": "^6.2",
"visus/cuid2": "^2.0.0",
- "wire-elements/modal": "^1.0",
+ "wire-elements/modal": "^2.0",
"yosymfony/toml": "^1.0"
},
"require-dev": {
diff --git a/composer.lock b/composer.lock
index bcf9b80ec7..54b33b87a7 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "c1fc9357fddf5e7b23bb5d500c54fe29",
+ "content-hash": "44337ff4ff1d9c435d9776fec01ebe9c",
"packages": [
{
"name": "aws/aws-crt-php",
@@ -3132,33 +3132,34 @@
},
{
"name": "livewire/livewire",
- "version": "v2.12.6",
+ "version": "v3.2.6",
"source": {
"type": "git",
"url": "https://github.com/livewire/livewire.git",
- "reference": "7d3a57b3193299cf1a0639a3935c696f4da2cf92"
+ "reference": "ecded08cdc4b36bbb4b26bcc7f7a171ea2e4368c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/livewire/livewire/zipball/7d3a57b3193299cf1a0639a3935c696f4da2cf92",
- "reference": "7d3a57b3193299cf1a0639a3935c696f4da2cf92",
+ "url": "https://api.github.com/repos/livewire/livewire/zipball/ecded08cdc4b36bbb4b26bcc7f7a171ea2e4368c",
+ "reference": "ecded08cdc4b36bbb4b26bcc7f7a171ea2e4368c",
"shasum": ""
},
"require": {
- "illuminate/database": "^7.0|^8.0|^9.0|^10.0",
- "illuminate/support": "^7.0|^8.0|^9.0|^10.0",
- "illuminate/validation": "^7.0|^8.0|^9.0|^10.0",
+ "illuminate/database": "^10.0",
+ "illuminate/support": "^10.0",
+ "illuminate/validation": "^10.0",
"league/mime-type-detection": "^1.9",
- "php": "^7.2.5|^8.0",
- "symfony/http-kernel": "^5.0|^6.0"
+ "php": "^8.1",
+ "symfony/http-kernel": "^6.2"
},
"require-dev": {
"calebporzio/sushi": "^2.1",
- "laravel/framework": "^7.0|^8.0|^9.0|^10.0",
+ "laravel/framework": "^10.0",
+ "laravel/prompts": "^0.1.6",
"mockery/mockery": "^1.3.1",
- "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
- "orchestra/testbench-dusk": "^5.2|^6.0|^7.0|^8.0",
- "phpunit/phpunit": "^8.4|^9.0",
+ "orchestra/testbench": "^8.0",
+ "orchestra/testbench-dusk": "^8.0",
+ "phpunit/phpunit": "^9.0",
"psy/psysh": "@stable"
},
"type": "library",
@@ -3193,7 +3194,7 @@
"description": "A front-end framework for Laravel.",
"support": {
"issues": "https://github.com/livewire/livewire/issues",
- "source": "https://github.com/livewire/livewire/tree/v2.12.6"
+ "source": "https://github.com/livewire/livewire/tree/v3.2.6"
},
"funding": [
{
@@ -3201,7 +3202,7 @@
"type": "github"
}
],
- "time": "2023-08-11T04:02:34+00:00"
+ "time": "2023-12-04T21:20:19+00:00"
},
{
"name": "lorisleiva/laravel-actions",
@@ -3352,25 +3353,28 @@
},
{
"name": "masmerise/livewire-toaster",
- "version": "1.3.0",
+ "version": "2.0.3",
"source": {
"type": "git",
"url": "https://github.com/masmerise/livewire-toaster.git",
- "reference": "da21267abd9684c590a131a40173fb3c42eab722"
+ "reference": "89aa127df5d17b915b0818761bdf83e8915036c2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/masmerise/livewire-toaster/zipball/da21267abd9684c590a131a40173fb3c42eab722",
- "reference": "da21267abd9684c590a131a40173fb3c42eab722",
+ "url": "https://api.github.com/repos/masmerise/livewire-toaster/zipball/89aa127df5d17b915b0818761bdf83e8915036c2",
+ "reference": "89aa127df5d17b915b0818761bdf83e8915036c2",
"shasum": ""
},
"require": {
"laravel/framework": "^10.0",
- "livewire/livewire": "^2.0",
+ "livewire/livewire": "^3.0",
"php": "~8.2"
},
+ "conflict": {
+ "stevebauman/unfinalize": "*"
+ },
"require-dev": {
- "dive-be/php-crowbar": "^1.1",
+ "dive-be/php-crowbar": "^1.0",
"laravel/pint": "^1.0",
"nunomaduro/larastan": "^2.0",
"orchestra/testbench": "^8.0",
@@ -3414,9 +3418,9 @@
],
"support": {
"issues": "https://github.com/masmerise/livewire-toaster/issues",
- "source": "https://github.com/masmerise/livewire-toaster/tree/1.3.0"
+ "source": "https://github.com/masmerise/livewire-toaster/tree/2.0.3"
},
- "time": "2023-08-05T18:22:07+00:00"
+ "time": "2023-09-28T12:07:49+00:00"
},
{
"name": "monolog/monolog",
@@ -10224,25 +10228,25 @@
},
{
"name": "wire-elements/modal",
- "version": "1.0.8",
+ "version": "2.0.8",
"source": {
"type": "git",
"url": "https://github.com/wire-elements/modal.git",
- "reference": "1019f423485afb6df0d1531d978e93d4ad0975fb"
+ "reference": "d6dac3a6ef6527a734504d8a84de49ec0a72282b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/wire-elements/modal/zipball/1019f423485afb6df0d1531d978e93d4ad0975fb",
- "reference": "1019f423485afb6df0d1531d978e93d4ad0975fb",
+ "url": "https://api.github.com/repos/wire-elements/modal/zipball/d6dac3a6ef6527a734504d8a84de49ec0a72282b",
+ "reference": "d6dac3a6ef6527a734504d8a84de49ec0a72282b",
"shasum": ""
},
"require": {
- "livewire/livewire": "^2.0",
- "php": "^7.4|^8.0",
+ "livewire/livewire": "^3.0",
+ "php": "^8.1",
"spatie/laravel-package-tools": "^1.9"
},
"require-dev": {
- "orchestra/testbench": "^6.15",
+ "orchestra/testbench": "^8.5",
"phpunit/phpunit": "^9.5"
},
"type": "library",
@@ -10276,9 +10280,9 @@
],
"support": {
"issues": "https://github.com/wire-elements/modal/issues",
- "source": "https://github.com/wire-elements/modal/tree/1.0.8"
+ "source": "https://github.com/wire-elements/modal/tree/2.0.8"
},
- "time": "2023-04-07T12:35:15+00:00"
+ "time": "2023-11-12T14:57:13+00:00"
},
{
"name": "yosymfony/parser-utils",
diff --git a/config/livewire.php b/config/livewire.php
index 59f8d5c4dd..8addb0069f 100644
--- a/config/livewire.php
+++ b/config/livewire.php
@@ -3,156 +3,144 @@
return [
/*
- |--------------------------------------------------------------------------
+ |---------------------------------------------------------------------------
| Class Namespace
- |--------------------------------------------------------------------------
+ |---------------------------------------------------------------------------
|
- | This value sets the root namespace for Livewire component classes in
- | your application. This value affects component auto-discovery and
- | any Livewire file helper commands, like `artisan make:livewire`.
- |
- | After changing this item, run: `php artisan livewire:discover`.
+ | This value sets the root class namespace for Livewire component classes in
+ | your application. This value will change where component auto-discovery
+ | finds components. It's also referenced by the file creation commands.
|
*/
- 'class_namespace' => 'App\\Http\\Livewire',
+ 'class_namespace' => 'App\\Livewire',
/*
- |--------------------------------------------------------------------------
+ |---------------------------------------------------------------------------
| View Path
- |--------------------------------------------------------------------------
+ |---------------------------------------------------------------------------
|
- | This value sets the path for Livewire component views. This affects
- | file manipulation helper commands like `artisan make:livewire`.
+ | This value is used to specify where Livewire component Blade templates are
+ | stored when running file creation commands like `artisan make:livewire`.
+ | It is also used if you choose to omit a component's render() method.
|
*/
'view_path' => resource_path('views/livewire'),
/*
- |--------------------------------------------------------------------------
+ |---------------------------------------------------------------------------
| Layout
- |--------------------------------------------------------------------------
- | The default layout view that will be used when rendering a component via
- | Route::get('/some-endpoint', SomeComponent::class);. In this case the
- | the view returned by SomeComponent will be wrapped in "layouts.app"
+ |---------------------------------------------------------------------------
+ | The view that will be used as the layout when rendering a single component
+ | as an entire page via `Route::get('/post/create', CreatePost::class);`.
+ | In this case, the view returned by CreatePost will render into $slot.
|
*/
- 'layout' => 'layouts.app',
+ 'layout' => 'components.layout',
/*
- |--------------------------------------------------------------------------
- | Livewire Assets URL
- |--------------------------------------------------------------------------
- |
- | This value sets the path to Livewire JavaScript assets, for cases where
- | your app's domain root is not the correct path. By default, Livewire
- | will load its JavaScript assets from the app's "relative root".
+ |---------------------------------------------------------------------------
+ | Temporary File Uploads
+ |---------------------------------------------------------------------------
|
- | Examples: "/assets", "myurl.com/app".
+ | Livewire handles file uploads by storing uploads in a temporary directory
+ | before the file is stored permanently. All file uploads are directed to
+ | a global endpoint for temporary storage. You may configure this below:
|
*/
- 'asset_url' => null,
+ 'temporary_file_upload' => [
+ 'disk' => null, // Example: 'local', 's3' | Default: 'default'
+ 'rules' => null, // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB)
+ 'directory' => null, // Example: 'tmp' | Default: 'livewire-tmp'
+ 'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1'
+ 'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs...
+ 'png', 'gif', 'bmp', 'svg', 'wav', 'mp4',
+ 'mov', 'avi', 'wmv', 'mp3', 'm4a',
+ 'jpg', 'jpeg', 'mpga', 'webp', 'wma',
+ ],
+ 'max_upload_time' => 5, // Max duration (in minutes) before an upload is invalidated...
+ ],
/*
- |--------------------------------------------------------------------------
- | Livewire App URL
- |--------------------------------------------------------------------------
- |
- | This value should be used if livewire assets are served from CDN.
- | Livewire will communicate with an app through this url.
+ |---------------------------------------------------------------------------
+ | Render On Redirect
+ |---------------------------------------------------------------------------
|
- | Examples: "https://my-app.com", "myurl.com/app".
+ | This value determines if Livewire will run a component's `render()` method
+ | after a redirect has been triggered using something like `redirect(...)`
+ | Setting this to true will render the view once more before redirecting
|
*/
- 'app_url' => null,
+ 'render_on_redirect' => false,
/*
- |--------------------------------------------------------------------------
- | Livewire Endpoint Middleware Group
- |--------------------------------------------------------------------------
+ |---------------------------------------------------------------------------
+ | Eloquent Model Binding
+ |---------------------------------------------------------------------------
|
- | This value sets the middleware group that will be applied to the main
- | Livewire "message" endpoint (the endpoint that gets hit everytime
- | a Livewire component updates). It is set to "web" by default.
+ | Previous versions of Livewire supported binding directly to eloquent model
+ | properties using wire:model by default. However, this behavior has been
+ | deemed too "magical" and has therefore been put under a feature flag.
|
*/
- 'middleware_group' => 'web',
+ 'legacy_model_binding' => true,
/*
- |--------------------------------------------------------------------------
- | Livewire Temporary File Uploads Endpoint Configuration
- |--------------------------------------------------------------------------
+ |---------------------------------------------------------------------------
+ | Auto-inject Frontend Assets
+ |---------------------------------------------------------------------------
|
- | Livewire handles file uploads by storing uploads in a temporary directory
- | before the file is validated and stored permanently. All file uploads
- | are directed to a global endpoint for temporary storage. The config
- | items below are used for customizing the way the endpoint works.
+ | By default, Livewire automatically injects its JavaScript and CSS into the
+ | <head> and <body> of pages containing Livewire components. By disabling
+ | this behavior, you need to use @livewireStyles and @livewireScripts.
|
*/
- 'temporary_file_upload' => [
- 'disk' => null, // Example: 'local', 's3' Default: 'default'
- 'rules' => null, // Example: ['file', 'mimes:png,jpg'] Default: ['required', 'file', 'max:12288'] (12MB)
- 'directory' => null, // Example: 'tmp' Default 'livewire-tmp'
- 'middleware' => null, // Example: 'throttle:5,1' Default: 'throttle:60,1'
- 'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs.
- 'png', 'gif', 'bmp', 'svg', 'wav', 'mp4',
- 'mov', 'avi', 'wmv', 'mp3', 'm4a',
- 'jpg', 'jpeg', 'mpga', 'webp', 'wma',
- ],
- 'max_upload_time' => 5, // Max duration (in minutes) before an upload gets invalidated.
- ],
+ 'inject_assets' => true,
/*
- |--------------------------------------------------------------------------
- | Manifest File Path
- |--------------------------------------------------------------------------
+ |---------------------------------------------------------------------------
+ | Navigate (SPA mode)
+ |---------------------------------------------------------------------------
|
- | This value sets the path to the Livewire manifest file.
- | The default should work for most cases (which is
- | "<app_root>/bootstrap/cache/livewire-components.php"), but for specific
- | cases like when hosting on Laravel Vapor, it could be set to a different value.
- |
- | Example: for Laravel Vapor, it would be "/tmp/storage/bootstrap/cache/livewire-components.php".
+ | By adding `` to links in your Livewire application, Livewire
+ | will prevent the default link handling and instead request those pages
+ | via AJAX, creating an SPA-like effect. Configure this behavior here.
|
*/
- 'manifest_path' => null,
+ 'navigate' => [
+ 'show_progress_bar' => true,
+ ],
/*
- |--------------------------------------------------------------------------
- | Back Button Cache
- |--------------------------------------------------------------------------
- |
- | This value determines whether the back button cache will be used on pages
- | that contain Livewire. By disabling back button cache, it ensures that
- | the back button shows the correct state of components, instead of
- | potentially stale, cached data.
+ |---------------------------------------------------------------------------
+ | HTML Morph Markers
+ |---------------------------------------------------------------------------
|
- | Setting it to "false" (default) will disable back button cache.
+ | Livewire intelligently "morphs" existing HTML into the newly rendered HTML
+ | after each update. To make this process more reliable, Livewire injects
+ | "markers" into the rendered Blade surrounding @if, @class & @foreach.
|
*/
- 'back_button_cache' => false,
+ 'inject_morph_markers' => true,
/*
- |--------------------------------------------------------------------------
- | Render On Redirect
- |--------------------------------------------------------------------------
+ |---------------------------------------------------------------------------
+ | Pagination Theme
+ |---------------------------------------------------------------------------
|
- | This value determines whether Livewire will render before it's redirected
- | or not. Setting it to "false" (default) will mean the render method is
- | skipped when redirecting. And "true" will mean the render method is
- | run before redirecting. Browsers bfcache can store a potentially
- | stale view if render is skipped on redirect.
+ | When enabling Livewire's pagination feature by using the `WithPagination`
+ | trait, Livewire will use Tailwind templates to render pagination views
+ | on the page. If you want Bootstrap CSS, you can specify: "bootstrap"
|
*/
- 'render_on_redirect' => false,
-
+ 'pagination_theme' => 'tailwind',
];
diff --git a/config/sentry.php b/config/sentry.php
index f0f05d2428..f86b5d19d5 100644
--- a/config/sentry.php
+++ b/config/sentry.php
@@ -7,7 +7,7 @@ return [
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
- 'release' => '4.0.0-beta.154',
+ 'release' => '4.0.0-beta.155',
// When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'),
diff --git a/config/version.php b/config/version.php
index b101b03d87..aac53d8469 100644
--- a/config/version.php
+++ b/config/version.php
@@ -1,3 +1,3 @@
<?php
-return '4.0.0-beta.154';
+return '4.0.0-beta.155';
diff --git a/resources/js/app.js b/resources/js/app.js
index aa3ae8f2ab..526e9403ef 100644
--- a/resources/js/app.js
+++ b/resources/js/app.js
@@ -1,19 +1,8 @@
-import Alpine from "alpinejs";
-import focus from '@alpinejs/focus';
import { createApp } from "vue";
import MagicBar from "./components/MagicBar.vue";
-import Toaster from "../../vendor/masmerise/livewire-toaster/resources/js";
+import '../../vendor/masmerise/livewire-toaster/resources/js';
import "../../vendor/wire-elements/modal/resources/js/modal";
-Alpine.plugin(focus);
-Alpine.plugin(Toaster);
-
-window.Alpine = Alpine;
-Alpine.start();
-
const app = createApp({});
app.component("magic-bar", MagicBar);
app.mount("#vue");
-
-
-
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php
index d2e00f58f5..b2111d5611 100644
--- a/resources/views/auth/login.blade.php
+++ b/resources/views/auth/login.blade.php
@@ -23,7 +23,7 @@
<div>
<form action="/login" method="POST" class="flex flex-col gap-2">
@csrf
- @env('local')
+ @env('local')
<x-forms.input value="[email protected]" type="email" name="email" required
label="{{ __('input.email') }}" autofocus />
diff --git a/resources/views/auth/verify-email.blade.php b/resources/views/auth/verify-email.blade.php
index dca6a4c6a4..7db8da43be 100644
--- a/resources/views/auth/verify-email.blade.php
+++ b/resources/views/auth/verify-email.blade.php
@@ -3,7 +3,7 @@
<div class="min-w-fit">
<h1> Verification Email Sent </h1>
<div class="flex justify-center gap-2 text-center">
- <br>To activate your account, please open the email and follow the
+ <br>To activate your account, please open the email and follow the
instructions.
</div>
<livewire:verify-email />
diff --git a/resources/views/components/applications/links.blade.php b/resources/views/components/applications/links.blade.php
index c5bdc4a481..d1bb5c7744 100644
--- a/resources/views/components/applications/links.blade.php
+++ b/resources/views/components/applications/links.blade.php
@@ -1,6 +1,6 @@
<div class="group">
@if (data_get($application, 'fqdn') ||
- collect(json_decode($this->application->docker_compose_domains))->count() > 0 ||
+ collect(json_decode($this->application->docker_compose_domains))->count() > 0 ||
data_get($application, 'previews', collect([]))->count() > 0 ||
data_get($application, 'ports_mappings_array'))
<label tabindex="0" class="flex items-center gap-2 cursor-pointer hover:text-white"> Open Application
diff --git a/resources/views/components/applications/navbar.blade.php b/resources/views/components/applications/navbar.blade.php
index 628175f757..38bff68e2e 100644
--- a/resources/views/components/applications/navbar.blade.php
+++ b/resources/views/components/applications/navbar.blade.php
@@ -1,17 +1,17 @@
<div class="navbar-main">
- <a class="{{ request()->routeIs('project.application.configuration') ? 'text-white' : '' }}"
+ <a wire:navigate class="{{ request()->routeIs('project.application.configuration') ? 'text-white' : '' }}"
href="{{ route('project.application.configuration', $parameters) }}">
<button>Configuration</button>
</a>
- <a class="{{ request()->routeIs('project.application.command') ? 'text-white' : '' }}"
+ <a wire:navigate class="{{ request()->routeIs('project.application.command') ? 'text-white' : '' }}"
href="{{ route('project.application.command', $parameters) }}">
<button>Execute Command</button>
</a>
- <a class="{{ request()->routeIs('project.application.logs') ? 'text-white' : '' }}"
+ <a wire:navigate class="{{ request()->routeIs('project.application.logs') ? 'text-white' : '' }}"
href="{{ route('project.application.logs', $parameters) }}">
<button>Logs</button>
</a>
- <a class="{{ request()->routeIs('project.application.deployments') ? 'text-white' : '' }}"
+ <a wire:navigate class="{{ request()->routeIs('project.application.deployments') ? 'text-white' : '' }}"
href="{{ route('project.application.deployments', $parameters) }}">
<button>Deployments</button>
</a>
diff --git a/resources/views/components/boarding-step.blade.php b/resources/views/components/boarding-step.blade.php
index 9314727bdf..a8d47da372 100644
--- a/resources/views/components/boarding-step.blade.php
+++ b/resources/views/components/boarding-step.blade.php
@@ -1,25 +1,25 @@
<div class="grid grid-cols-1 gap-4 md:grid-cols-3">
<div class="box-border col-span-2 min-w-[24rem] min-h-[21rem]">
- <h1 class="text-5xl font-bold">{{$title}}</h1>
+ <h1 class="text-5xl font-bold">{{ $title }}</h1>
<div class="py-6 ">
@isset($question)
- <p class="text-base">
- {{$question}}
- </p>
+ <p class="text-base">
+ {{ $question }}
+ </p>
@endisset
</div>
- @if($actions)
- <div class="flex flex-col flex-wrap gap-4 md:flex-row">
- {{$actions}}
- </div>
+ @if ($actions)
+ <div class="flex flex-col flex-wrap gap-4 md:flex-row">
+ {{ $actions }}
+ </div>
@endif
</div>
@isset($explanation)
- <div class="col-span-1">
- <h1 class="pb-8 font-bold">Explanation</h1>
- <div class="space-y-4">
- {{$explanation}}
+ <div class="col-span-1">
+ <h1 class="pb-8 font-bold">Explanation</h1>
+ <div class="space-y-4">
+ {{ $explanation }}
+ </div>
</div>
- </div>
@endisset
</div>
diff --git a/resources/views/components/emails/layout.blade.php b/resources/views/components/emails/layout.blade.php
index b9ecb355b1..fe04a8a599 100644
--- a/resources/views/components/emails/layout.blade.php
+++ b/resources/views/components/emails/layout.blade.php
@@ -1,6 +1,3 @@
<x-emails.header />
{{ Illuminate\Mail\Markdown::parse($slot) }}
<x-emails.footer />
-
-
-
diff --git a/resources/views/components/forms/checkbox.blade.php b/resources/views/components/forms/checkbox.blade.php
index 6041eb793b..8cff88f486 100644
--- a/resources/views/components/forms/checkbox.blade.php
+++ b/resources/views/components/forms/checkbox.blade.php
@@ -12,6 +12,6 @@
</span>
<input @disabled($disabled) type="checkbox" {{ $attributes->merge(['class' => $defaultClass]) }}
@if ($instantSave) wire:loading.attr="disabled" wire:click='{{ $instantSave === 'instantSave' || $instantSave == '1' ? 'instantSave' : $instantSave }}'
- wire:model.defer={{ $id }} @else wire:model.defer={{ $value ?? $id }} @endif />
+ wire:model={{ $id }} @else wire:model={{ $value ?? $id }} @endif />
</label>
</div>
diff --git a/resources/views/components/forms/input.blade.php b/resources/views/components/forms/input.blade.php
index 8b4c5cde4c..4e9fffef5b 100644
--- a/resources/views/components/forms/input.blade.php
+++ b/resources/views/components/forms/input.blade.php
@@ -23,16 +23,15 @@
</div>
@endif
<input {{ $attributes->merge(['class' => $defaultClass . ' pl-10']) }} @required($required)
- wire:model.defer={{ $id }} wire:dirty.class.remove='text-white'
- wire:dirty.class="input-warning" wire:loading.attr="disabled" type="{{ $type }}"
- @readonly($readonly) @disabled($disabled) id="{{ $id }}" name="{{ $name }}"
- placeholder="{{ $attributes->get('placeholder') }}"
+ wire:model={{ $id }} wire:dirty.class.remove='text-white' wire:dirty.class="input-warning"
+ wire:loading.attr="disabled" type="{{ $type }}" @readonly($readonly) @disabled($disabled)
+ id="{{ $id }}" name="{{ $name }}" placeholder="{{ $attributes->get('placeholder') }}"
aria-placeholder="{{ $attributes->get('placeholder') }}">
</div>
@else
<input {{ $attributes->merge(['class' => $defaultClass]) }} @required($required) @readonly($readonly)
- wire:model.defer={{ $id }} wire:dirty.class.remove='text-white' wire:dirty.class="input-warning"
+ wire:model={{ $id }} wire:dirty.class.remove='text-white' wire:dirty.class="input-warning"
wire:loading.attr="disabled" type="{{ $type }}" @disabled($disabled)
id="{{ $id }}" name="{{ $name }}" placeholder="{{ $attributes->get('placeholder') }}">
@endif
diff --git a/resources/views/components/forms/select.blade.php b/resources/views/components/forms/select.blade.php
index 10dc579284..5f621179e2 100644
--- a/resources/views/components/forms/select.blade.php
+++ b/resources/views/components/forms/select.blade.php
@@ -11,7 +11,7 @@
@endif
<select {{ $attributes->merge(['class' => $defaultClass]) }} @required($required) wire:dirty.class.remove='text-white'
wire:dirty.class="text-black bg-warning" wire:loading.attr="disabled" name={{ $id }}
- @if ($attributes->whereStartsWith('wire:model')->first()) {{ $attributes->whereStartsWith('wire:model')->first() }} @else wire:model.defer={{ $id }} @endif>
+ @if ($attributes->whereStartsWith('wire:model')->first()) {{ $attributes->whereStartsWith('wire:model')->first() }} @else wire:model={{ $id }} @endif>
{{ $slot }}
</select>
@error($id)
diff --git a/resources/views/components/forms/textarea.blade.php b/resources/views/components/forms/textarea.blade.php
index 7ac7d7fd93..4ef36c3106 100644
--- a/resources/views/components/forms/textarea.blade.php
+++ b/resources/views/components/forms/textarea.blade.php
@@ -12,7 +12,7 @@
<textarea placeholder="{{ $placeholder }}" {{ $attributes->merge(['class' => $defaultClass]) }}
@if ($realtimeValidation) wire:model.debounce.200ms="{{ $id }}"
@else
- wire:model.defer={{ $value ?? $id }}
+ wire:model={{ $value ?? $id }}
wire:dirty.class="input-warning" @endif
@disabled($disabled) @readonly($readonly) @required($required) id="{{ $id }}" name="{{ $name }}"
name={{ $id }}></textarea>
diff --git a/resources/views/components/highlighted.blade.php b/resources/views/components/highlighted.blade.php
index 2ca73724c8..a088d86174 100644
--- a/resources/views/components/highlighted.blade.php
+++ b/resources/views/components/highlighted.blade.php
@@ -1 +1 @@
-<span class="inline-block text-warning">{{$text}}</span>
+<span class="inline-block text-warning">{{ $text }}</span>
diff --git a/resources/views/components/limit-reached.blade.php b/resources/views/components/limit-reached.blade.php
index 6b0f6f2adb..f5477cff29 100644
--- a/resources/views/components/limit-reached.blade.php
+++ b/resources/views/components/limit-reached.blade.php
@@ -1,6 +1,6 @@
<div class="flex flex-col items-center justify-center h-screen">
<span class="text-xl font-bold text-white">You have reached the limit of {{ $name }} you can create.</span>
<span>Please <a class="text-white underline "href="{{ route('team.index') }}">upgrade your
- subscription<a /> to create more
- {{ $name }}.</span>
+ subscription</a> to create more
+ {{ $name }}.</span>
</div>
diff --git a/resources/views/components/modal.blade.php b/resources/views/components/modal.blade.php
index d457b2651e..b0cb4d3d04 100644
--- a/resources/views/components/modal.blade.php
+++ b/resources/views/components/modal.blade.php
@@ -1,6 +1,6 @@
<dialog id="{{ $modalId }}" class="modal">
@if ($yesOrNo)
- <form method="dialog" class="rounded modal-box" @if(!$noSubmit) wire:submit.prevent='submit' @endif>
+ <form method="dialog" class="rounded modal-box" @if (!$noSubmit) wire:submit='submit' @endif>
<div class="flex items-start">
<div class="flex items-center justify-center flex-shrink-0 w-10 h-10 mr-4 rounded-full">
<svg class="w-8 h-8 text-error" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
@@ -34,8 +34,8 @@
</form>
@else
<form method="dialog" class="flex flex-col w-11/12 max-w-5xl gap-2 rounded modal-box"
- @if($submitWireAction) wire:submit.prevent={{$submitWireAction}} @endif
- @if(!$noSubmit && !$submitWireAction) wire:submit.prevent='submit' @endif>
+ @if ($submitWireAction) wire:submit={{ $submitWireAction }} @endif
+ @if (!$noSubmit && !$submitWireAction) wire:submit='submit' @endif>
@isset($modalTitle)
<h3 class="text-lg font-bold">{{ $modalTitle }}</h3>
@endisset
diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php
index 62d7b1b523..db1a5d8b17 100644
--- a/resources/views/components/navbar.blade.php
+++ b/resources/views/components/navbar.blade.php
@@ -4,7 +4,7 @@
class="transition rounded w-11 h-11" src="{{ asset('coolify-transparent.png') }}"></a>
<ul class="flex flex-col h-full gap-4 menu flex-nowrap">
<li title="Dashboard">
- <a class="hover:bg-transparent" @if (!request()->is('/')) href="/" @endif>
+ <a wire:navigate class="hover:bg-transparent" href="/">
<svg xmlns="http://www.w3.org/2000/svg" class="{{ request()->is('/') ? 'text-warning icon' : 'icon' }}"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
@@ -13,7 +13,7 @@
</a>
</li>
<li title="Servers">
- <a class="hover:bg-transparent" @if (!request()->is('servers')) href="/servers" @endif>
+ <a wire:navigate class="hover:bg-transparent" href="/servers">
<svg xmlns="http://www.w3.org/2000/svg"
class="{{ request()->is('server/*') || request()->is('servers') ? 'text-warning icon' : 'icon' }}"
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
@@ -28,7 +28,7 @@
</a>
</li>
<li title="Projects">
- <a class="hover:bg-transparent" @if (!request()->is('projects')) href="/projects" @endif>
+ <a wire:navigate class="hover:bg-transparent" href="/projects">
<svg xmlns="http://www.w3.org/2000/svg"
class="{{ request()->is('project/*') || request()->is('projects') ? 'text-warning icon' : 'icon' }}"
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
@@ -41,7 +41,7 @@
</a>
</li>
<li title="Command Center">
- <a class="hover:bg-transparent" @if (!request()->is('command-center')) href="/command-center" @endif>
+ <a wire:navigate class="hover:bg-transparent" href="/command-center">
<svg xmlns="http://www.w3.org/2000/svg"
class="{{ request()->is('command-center') ? 'text-warning icon' : 'icon' }}" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
@@ -53,7 +53,7 @@
</a>
</li>
<li title="Source">
- <a class="hover:bg-transparent" href="{{ route('source.all') }}">
+ <a wire:navigate class="hover:bg-transparent" href="{{ route('source.all') }}">
<svg class="icon" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg">
<path fill="currentColor"
d="m6.793 1.207l.353.354l-.353-.354ZM1.207 6.793l-.353-.354l.353.354Zm0 1.414l.354-.353l-.354.353Zm5.586 5.586l-.354.353l.354-.353Zm1.414 0l-.353-.354l.353.354Zm5.586-5.586l.353.354l-.353-.354Zm0-1.414l-.354.353l.354-.353ZM8.207 1.207l.354-.353l-.354.353ZM6.44.854L.854 6.439l.707.707l5.585-5.585L6.44.854ZM.854 8.56l5.585 5.585l.707-.707l-5.585-5.585l-.707.707Zm7.707 5.585l5.585-5.585l-.707-.707l-5.585 5.585l.707.707Zm5.585-7.707L8.561.854l-.707.707l5.585 5.585l.707-.707Zm0 2.122a1.5 1.5 0 0 0 0-2.122l-.707.707a.5.5 0 0 1 0 .708l.707.707ZM6.44 14.146a1.5 1.5 0 0 0 2.122 0l-.707-.707a.5.5 0 0 1-.708 0l-.707.707ZM.854 6.44a1.5 1.5 0 0 0 0 2.122l.707-.707a.5.5 0 0 1 0-.708L.854 6.44Zm6.292-4.878a.5.5 0 0 1 .708 0L8.56.854a1.5 1.5 0 0 0-2.122 0l.707.707Zm-2 1.293l1 1l.708-.708l-1-1l-.708.708ZM7.5 5a.5.5 0 0 1-.5-.5H6A1.5 1.5 0 0 0 7.5 6V5Zm.5-.5a.5.5 0 0 1-.5.5v1A1.5 1.5 0 0 0 9 4.5H8ZM7.5 4a.5.5 0 0 1 .5.5h1A1.5 1.5 0 0 0 7.5 3v1Zm0-1A1.5 1.5 0 0 0 6 4.5h1a.5.5 0 0 1 .5-.5V3Zm.646 2.854l1.5 1.5l.707-.708l-1.5-1.5l-.707.708ZM10.5 8a.5.5 0 0 1-.5-.5H9A1.5 1.5 0 0 0 10.5 9V8Zm.5-.5a.5.5 0 0 1-.5.5v1A1.5 1.5 0 0 0 12 7.5h-1Zm-.5-.5a.5.5 0 0 1 .5.5h1A1.5 1.5 0 0 0 10.5 6v1Zm0-1A1.5 1.5 0 0 0 9 7.5h1a.5.5 0 0 1 .5-.5V6ZM7 5.5v4h1v-4H7Zm.5 5.5a.5.5 0 0 1-.5-.5H6A1.5 1.5 0 0 0 7.5 12v-1Zm.5-.5a.5.5 0 0 1-.5.5v1A1.5 1.5 0 0 0 9 10.5H8Zm-.5-.5a.5.5 0 0 1 .5.5h1A1.5 1.5 0 0 0 7.5 9v1Zm0-1A1.5 1.5 0 0 0 6 10.5h1a.5.5 0 0 1 .5-.5V9Z" />
@@ -61,7 +61,7 @@
</a>
</li>
<li title="Security">
- <a class="hover:bg-transparent" href="{{ route('security.private-key.index') }}">
+ <a wire:navigate class="hover:bg-transparent" href="{{ route('security.private-key.index') }}">
<svg class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
stroke-width="2"
@@ -70,7 +70,7 @@
</a>
</li>
<li title="Teams">
- <a class="hover:bg-transparent" href="{{ route('team.index') }}">
+ <a wire:navigate class="hover:bg-transparent" href="{{ route('team.index') }}">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
@@ -86,10 +86,12 @@
<div class="flex-1"></div>
@if (isInstanceAdmin() && !isCloud())
- <livewire:upgrade />
+ @persist('upgrade')
+ <livewire:upgrade />
+ @endpersist
@endif
<li title="Help us!">
- <a class="hover:bg-transparent"href="https://coolify.io/sponsorships" target="_blank">
+ <a class="hover:bg-transparent" href="https://coolify.io/sponsorships" target="_blank">
<svg class="icon hover:text-pink-500" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
stroke-width="2">
@@ -101,7 +103,7 @@
</a>
</li>
<li title="Profile">
- <a class="hover:bg-transparent" @if (!request()->is('profile')) href="/profile" @endif>
+ <a wire:navigate class="hover:bg-transparent" href="/profile">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
@@ -114,7 +116,7 @@
@if (isInstanceAdmin())
<li title="Settings" class="mt-auto">
- <a class="hover:bg-transparent" @if (!request()->is('settings')) href="/settings" @endif>
+ <a wire:navigate class="hover:bg-transparent" href="/settings">
<svg xmlns="http://www.w3.org/2000/svg"
class="{{ request()->is('settings*') ? 'text-warning icon' : 'icon' }}" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
diff --git a/resources/views/components/resources/breadcrumbs.blade.php b/resources/views/components/resources/breadcrumbs.blade.php
index b10fce08a4..8061666478 100644
--- a/resources/views/components/resources/breadcrumbs.blade.php
+++ b/resources/views/components/resources/breadcrumbs.blade.php
@@ -1,7 +1,7 @@
<nav class="flex pt-2 pb-10">
<ol class="flex items-center">
<li class="inline-flex items-center">
- <a class="text-xs truncate lg:text-sm"
+ <a wire:nagivate class="text-xs truncate lg:text-sm"
href="{{ route('project.show', ['project_uuid' => $this->parameters['project_uuid']]) }}">
{{ data_get($resource, 'environment.project.name', 'Undefined Name') }}</a>
</li>
@@ -13,7 +13,7 @@
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
clip-rule="evenodd"></path>
</svg>
- <a class="text-xs truncate lg:text-sm"
+ <a wire:nagivate class="text-xs truncate lg:text-sm"
href="{{ route('project.resources', ['environment_name' => $this->parameters['environment_name'], 'project_uuid' => $this->parameters['project_uuid']]) }}">{{ $this->parameters['environment_name'] }}</a>
</div>
</li>
diff --git a/resources/views/emails/application-deployment-failed.blade.php b/resources/views/emails/application-deployment-failed.blade.php
index defe52e4ff..c1ae3ebb66 100644
--- a/resources/views/emails/application-deployment-failed.blade.php
+++ b/resources/views/emails/application-deployment-failed.blade.php
@@ -6,6 +6,6 @@
[{{ $fqdn }}]({{ $fqdn }}).
@endif
-[View Deployment Logs]({{ $deployment_url }})
+ [View Deployment Logs]({{ $deployment_url }})
</x-emails.layout>
diff --git a/resources/views/emails/application-deployment-success.blade.php b/resources/views/emails/application-deployment-success.blade.php
index d8426e33c0..227089a4b5 100644
--- a/resources/views/emails/application-deployment-success.blade.php
+++ b/resources/views/emails/application-deployment-success.blade.php
@@ -2,9 +2,10 @@
@if ($pull_request_id === 0)
A new version of {{ $name }} is available at [{{ $fqdn }}]({{ $fqdn }}) .
@else
- Pull request #{{ $pull_request_id }} of {{ $name }} deployed successfully [{{ $fqdn }}]({{ $fqdn }}).
+ Pull request #{{ $pull_request_id }} of {{ $name }} deployed successfully
+ [{{ $fqdn }}]({{ $fqdn }}).
@endif
-[View Deployment Logs]({{ $deployment_url }})
+ [View Deployment Logs]({{ $deployment_url }})
</x-emails.layout>
diff --git a/resources/views/emails/application-status-changes.blade.php b/resources/views/emails/application-status-changes.blade.php
index 918a4aa55a..0aba5cd261 100644
--- a/resources/views/emails/application-status-changes.blade.php
+++ b/resources/views/emails/application-status-changes.blade.php
@@ -1,9 +1,9 @@
<x-emails.layout>
-{{ $name }} has been stopped.
+ {{ $name }} has been stopped.
-If it was your intention to stop this application, you can ignore this email.
+ If it was your intention to stop this application, you can ignore this email.
-If not, [check what is going on]({{ $application_url }}).
+ If not, [check what is going on]({{ $application_url }}).
</x-emails.layout>
diff --git a/resources/views/emails/backup-failed.blade.php b/resources/views/emails/backup-failed.blade.php
index 712777ef57..1ddc9b397a 100644
--- a/resources/views/emails/backup-failed.blade.php
+++ b/resources/views/emails/backup-failed.blade.php
@@ -1,8 +1,8 @@
<x-emails.layout>
-Database backup for {{ $name }} with frequency of {{ $frequency }} was FAILED.
+ Database backup for {{ $name }} with frequency of {{ $frequency }} was FAILED.
-### Reason
+ ### Reason
-{{ $output }}
+ {{ $output }}
</x-emails.layout>
diff --git a/resources/views/emails/backup-success.blade.php b/resources/views/emails/backup-success.blade.php
index 0d54a254c7..0628f7ec96 100644
--- a/resources/views/emails/backup-success.blade.php
+++ b/resources/views/emails/backup-success.blade.php
@@ -1,3 +1,3 @@
<x-emails.layout>
-Database backup for {{ $name }} with frequency of {{ $frequency }} was successful.
+ Database backup for {{ $name }} with frequency of {{ $frequency }} was successful.
</x-emails.layout>
diff --git a/resources/views/emails/before-trial-conversion.blade.php b/resources/views/emails/before-trial-conversion.blade.php
index c9531ff2b9..08a220c34f 100644
--- a/resources/views/emails/before-trial-conversion.blade.php
+++ b/resources/views/emails/before-trial-conversion.blade.php
@@ -1,8 +1,9 @@
<x-emails.layout>
-We would like to inform you that a {{config('constants.limits.trial_period')}} days of trial has been added to all subscription plans.
+ We would like to inform you that a {{ config('constants.limits.trial_period') }} days of trial has been added to all
+ subscription plans.
-You can try out Coolify, without payment information for free. If you like it, you can upgrade to a paid plan at any time.
+ You can try out Coolify, without payment information for free. If you like it, you can upgrade to a paid plan at any
+ time.
-[Click here](https://app.coolify.io/subscription) to start your trial.
+ [Click here](https://app.coolify.io/subscription) to start your trial.
</x-emails.layout>
-
diff --git a/resources/views/emails/container-restarted.blade.php b/resources/views/emails/container-restarted.blade.php
index 085aafa53d..f93b5dcba5 100644
--- a/resources/views/emails/container-restarted.blade.php
+++ b/resources/views/emails/container-restarted.blade.php
@@ -1,11 +1,13 @@
<x-emails.layout>
-A service ({{ $containerName }}) has been restarted automatically on {{$serverName}}, because it was stopped unexpectedly.
+ A service ({{ $containerName }}) has been restarted automatically on {{ $serverName }}, because it was stopped
+ unexpectedly.
-@if ($containerName === 'coolify-proxy')
-Coolify Proxy should run on your server as you have FQDNs set up in one of your resources.
+ @if ($containerName === 'coolify-proxy')
+ Coolify Proxy should run on your server as you have FQDNs set up in one of your resources.
-If you don't want to use Coolify Proxy, please remove FQDN from your resources or set Proxy type to Custom(None).
-@endif
+ If you don't want to use Coolify Proxy, please remove FQDN from your resources or set Proxy type to
+ Custom(None).
+ @endif
</x-emails.layout>
diff --git a/resources/views/emails/container-stopped.blade.php b/resources/views/emails/container-stopped.blade.php
index bf7cc086a6..b16c0b90be 100644
--- a/resources/views/emails/container-stopped.blade.php
+++ b/resources/views/emails/container-stopped.blade.php
@@ -1,9 +1,9 @@
<x-emails.layout>
-A service ({{ $containerName }}) has been stopped unexpectedly on {{$serverName}}.
+ A service ({{ $containerName }}) has been stopped unexpectedly on {{ $serverName }}.
-@if ($url)
-Please check what is going on [here]({{ $url }}).
-@endif
+ @if ($url)
+ Please check what is going on [here]({{ $url }}).
+ @endif
</x-emails.layout>
diff --git a/resources/views/emails/high-disk-usage.blade.php b/resources/views/emails/high-disk-usage.blade.php
index 0a4baa300e..8e95794361 100644
--- a/resources/views/emails/high-disk-usage.blade.php
+++ b/resources/views/emails/high-disk-usage.blade.php
@@ -1,9 +1,10 @@
<x-emails.layout>
-Your server ({{ $name }}) has high disk usage ({{ $disk_usage }}% used). Threshold is {{ $threshold }}%.
+ Your server ({{ $name }}) has high disk usage ({{ $disk_usage }}% used). Threshold is
+ {{ $threshold }}%.
-Please cleanup your disk to prevent data-loss. Here are some [tips](https://coolify.io/docs/automated-cleanup).
+ Please cleanup your disk to prevent data-loss. Here are some [tips](https://coolify.io/docs/automated-cleanup).
-(You can change the threshold in the Server Settings menu.)
+ (You can change the threshold in the Server Settings menu.)
</x-emails.layout>
diff --git a/resources/views/emails/invitation-link.blade.php b/resources/views/emails/invitation-link.blade.php
index ae72745ba1..afced0abc3 100644
--- a/resources/views/emails/invitation-link.blade.php
+++ b/resources/views/emails/invitation-link.blade.php
@@ -1,10 +1,10 @@
<x-emails.layout>
-You have been invited to "{{ $team }}" on "{{ config('app.name') }}".
+ You have been invited to "{{ $team }}" on "{{ config('app.name') }}".
-Please [click here]({{ $invitation_link }}) to accept the invitation.
+ Please [click here]({{ $invitation_link }}) to accept the invitation.
-If you have any questions, please contact the team owner.<br><br>
+ If you have any questions, please contact the team owner.<br><br>
-If it was not you who requested this invitation, please ignore this email.
+ If it was not you who requested this invitation, please ignore this email.
</x-emails.layout>
diff --git a/resources/views/emails/reset-password.blade.php b/resources/views/emails/reset-password.blade.php
index 02488175d7..49b0ee74bf 100644
--- a/resources/views/emails/reset-password.blade.php
+++ b/resources/views/emails/reset-password.blade.php
@@ -1,7 +1,7 @@
<x-emails.layout>
-A password reset has been requested for this email address.
+ A password reset has been requested for this email address.
-Click [here]({{ $url }}) to reset your password.
+ Click [here]({{ $url }}) to reset your password.
-This link will expire in {{ $count }} minutes.
+ This link will expire in {{ $count }} minutes.
</x-emails.layout>
diff --git a/resources/views/emails/server-lost-connection.blade.php b/resources/views/emails/server-lost-connection.blade.php
index 6e3f28fd47..7d89e02aa5 100644
--- a/resources/views/emails/server-lost-connection.blade.php
+++ b/resources/views/emails/server-lost-connection.blade.php
@@ -1,12 +1,12 @@
<x-emails.layout>
-Coolify cannot connect to your server ({{$name}}). Please check your server and make sure it is running.
+ Coolify cannot connect to your server ({{ $name }}). Please check your server and make sure it is running.
-All automations & integrations are turned off!
+ All automations & integrations are turned off!
-IMPORTANT: We automatically try to revive your server. If your server is back online, we will automatically turn on all automations & integrations.
+ IMPORTANT: We automatically try to revive your server. If your server is back online, we will automatically turn on
+ all automations & integrations.
-If you have any questions, please contact us.
+ If you have any questions, please contact us.
</x-emails.layout>
-
diff --git a/resources/views/emails/server-revived.blade.php b/resources/views/emails/server-revived.blade.php
index 8d16fd2c8f..45d855d73d 100644
--- a/resources/views/emails/server-revived.blade.php
+++ b/resources/views/emails/server-revived.blade.php
@@ -1,6 +1,6 @@
<x-emails.layout>
-Your server ({{$name}}) was offline for a while, but it is back online now. All automations & integrations are turned on again.
+ Your server ({{ $name }}) was offline for a while, but it is back online now. All automations & integrations
+ are turned on again.
</x-emails.layout>
-
diff --git a/resources/views/emails/subscription-invoice-failed.blade.php b/resources/views/emails/subscription-invoice-failed.blade.php
index 93103dc676..d4a38fb6aa 100644
--- a/resources/views/emails/subscription-invoice-failed.blade.php
+++ b/resources/views/emails/subscription-invoice-failed.blade.php
@@ -1,6 +1,6 @@
<x-emails.layout>
-Your last invoice has failed to be paid for Coolify Cloud.
+ Your last invoice has failed to be paid for Coolify Cloud.
-Please update payment details [here]({{$stripeCustomerPortal}}).
+ Please update payment details [here]({{ $stripeCustomerPortal }}).
</x-emails.layout>
diff --git a/resources/views/emails/test.blade.php b/resources/views/emails/test.blade.php
index a845efee53..a94ac5b378 100644
--- a/resources/views/emails/test.blade.php
+++ b/resources/views/emails/test.blade.php
@@ -1,3 +1,3 @@
<x-emails.layout>
-If you are seeing this, it means that your Email settings are correct.
+ If you are seeing this, it means that your Email settings are correct.
</x-emails.layout>
diff --git a/resources/views/emails/trial-ended.blade.php b/resources/views/emails/trial-ended.blade.php
index aeb00fa92d..77d72f455d 100644
--- a/resources/views/emails/trial-ended.blade.php
+++ b/resources/views/emails/trial-ended.blade.php
@@ -1,7 +1,8 @@
<x-emails.layout>
-Your trial ended. All automations and integrations are disabled for all of your servers.
+ Your trial ended. All automations and integrations are disabled for all of your servers.
-Please update payment details [here]({{$stripeCustomerPortal}}) or in [Coolify Cloud](https://app.coolify.io) to continue using our services.
+ Please update payment details [here]({{ $stripeCustomerPortal }}) or in [Coolify Cloud](https://app.coolify.io) to
+ continue using our services.
</x-emails.layout>
diff --git a/resources/views/emails/trial-ends-soon.blade.php b/resources/views/emails/trial-ends-soon.blade.php
index 2e6909016c..6248c6190c 100644
--- a/resources/views/emails/trial-ends-soon.blade.php
+++ b/resources/views/emails/trial-ends-soon.blade.php
@@ -1,7 +1,8 @@
<x-emails.layout>
-Your trial ends soon. Please update payment details [here]({{$stripeCustomerPortal}}),
+ Your trial ends soon. Please update payment details [here]({{ $stripeCustomerPortal }}),
-Your servers & deployed resources will be untouched, but you won't be able to deploy new resources and lost all automations and integrations.
+ Your servers & deployed resources will be untouched, but you won't be able to deploy new resources and lost all
+ automations and integrations.
</x-emails.layout>
diff --git a/resources/views/emails/updates.blade.php b/resources/views/emails/updates.blade.php
index e038b5cbc7..eb6a18026c 100644
--- a/resources/views/emails/updates.blade.php
+++ b/resources/views/emails/updates.blade.php
@@ -1,5 +1,5 @@
<x-emails.layout>
-<br><br>
-If you do not like to receive these emails, you can unsubscribe [here]({{$unsubscribeUrl}}).
+ <br><br>
+ If you do not like to receive these emails, you can unsubscribe [here]({{ $unsubscribeUrl }}).
</x-emails.layout>
diff --git a/resources/views/emails/waitlist-confirmation.blade.php b/resources/views/emails/waitlist-confirmation.blade.php
index 363f0b82f6..9e22cb9f6f 100644
--- a/resources/views/emails/waitlist-confirmation.blade.php
+++ b/resources/views/emails/waitlist-confirmation.blade.php
@@ -1,9 +1,10 @@
<x-emails.layout>
-Someone added this email to the Coolify Cloud's waitlist. [Click here]({{ $confirmation_url }}) to confirm!
+ Someone added this email to the Coolify Cloud's waitlist. [Click here]({{ $confirmation_url }}) to confirm!
-The link will expire in {{config('constants.waitlist.expiration')}} minutes.
+ The link will expire in {{ config('constants.waitlist.expiration') }} minutes.
-You have no idea what [Coolify Cloud](https://coolify.io) is or this waitlist? [Click here]({{ $cancel_url }}) to remove you from the waitlist.
+ You have no idea what [Coolify Cloud](https://coolify.io) is or this waitlist? [Click here]({{ $cancel_url }}) to
+ remove you from the waitlist.
</x-emails.layout>
diff --git a/resources/views/emails/waitlist-invitation.blade.php b/resources/views/emails/waitlist-invitation.blade.php
index bae5e329aa..201659e0b5 100644
--- a/resources/views/emails/waitlist-invitation.blade.php
+++ b/resources/views/emails/waitlist-invitation.blade.php
@@ -1,4 +1,3 @@
<x-emails.layout>
-You have been invited to join the Coolify Cloud: [Get Started]({{$loginLink}})
+ You have been invited to join the Coolify Cloud: [Get Started]({{ $loginLink }})
</x-emails.layout>
-
diff --git a/resources/views/errors/429.blade.php b/resources/views/errors/429.blade.php
index 14a740f296..baf9b901bb 100644
--- a/resources/views/errors/429.blade.php
+++ b/resources/views/errors/429.blade.php
@@ -4,7 +4,8 @@
<div class="">
<p class="font-mono text-6xl font-semibold text-warning">429</p>
<h1 class="mt-4 font-bold tracking-tight text-white">Woah, slow down there!</h1>
- <p class="mt-6 text-base leading-7 text-neutral-300">You're making too many requests. Please wait a few seconds before trying again.
+ <p class="mt-6 text-base leading-7 text-neutral-300">You're making too many requests. Please wait a few
+ seconds before trying again.
</p>
<div class="flex items-center justify-center mt-10 gap-x-6">
<a href="/">
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index babaa105a1..ca5d427c59 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -2,9 +2,11 @@
@section('body')
@parent
<x-navbar />
- <div class="fixed z-30 top-[4.5rem] left-4" id="vue">
- <magic-bar></magic-bar>
- </div>
+ @persist('magic-bar')
+ <div class="fixed z-30 top-[4.5rem] left-4" id="vue">
+ <magic-bar></magic-bar>
+ </div>
+ @endpersist
<livewire:sponsorship />
<main class="pb-10 main max-w-screen-2xl">
{{ $slot }}
diff --git a/resources/views/layouts/base.blade.php b/resources/views/layouts/base.blade.php
index 043c5c6a80..c6a5d6edca 100644
--- a/resources/views/layouts/base.blade.php
+++ b/resources/views/layouts/base.blade.php
@@ -20,7 +20,6 @@
display: none !important;
}
</style>
- @livewireStyles
@if (config('app.name') == 'Coolify Cloud')
<script defer data-domain="app.coolify.io" src="https://analytics.coollabs.io/js/plausible.js"></script>
@endif
@@ -36,8 +35,7 @@
@section('body')
<body>
- @livewireScripts
- @livewire('livewire-ui-modal')
+ @livewire('wire-elements-modal')
<dialog id="help" class="modal">
<livewire:help />
<form method="dialog" class="modal-backdrop">
@@ -47,7 +45,7 @@
<x-toaster-hub />
<x-version class="fixed left-2 bottom-1" />
- <script>
+ <script data-navigate-once>
@auth
window.Pusher = Pusher;
window.Echo = new Echo({
@@ -67,7 +65,8 @@
if ("{{ auth()->user()->id }}" == 0) {
let checkPusherInterval = null;
let checkNumber = 0;
- let errorMessage = "Coolify could not connect to the new realtime service introduced in beta.154.<br>Please check the related <a href='https://coolify.io/docs/cloudflare-tunnels' target='_blank'>documentation</a> or get help on <a href='https://coollabs.io/discord' target='_blank'>Discord</a>.";
+ let errorMessage =
+ "Coolify could not connect to the new realtime service introduced in beta.154.<br>Please check the related <a href='https://coolify.io/docs/cloudflare-tunnels' target='_blank'>documentation</a> or get help on <a href='https://coollabs.io/discord' target='_blank'>Discord</a>.";
checkPusherInterval = setInterval(() => {
if (window.Echo) {
if (window.Echo.connector.pusher.connection.state !== 'connected') {
@@ -77,7 +76,7 @@
Livewire.emit('error', errorMessage);
}
} else {
- console.log('Coolify is now connected to the new realtime service introduced in beta.154.');
+ console.log('Coolify is now connected to the new realtime service introduced in beta.154.');
clearInterval(checkPusherInterval);
}
} else {
@@ -146,34 +145,35 @@
}
function copyToClipboard(text) {
- navigator?.clipboard?.writeText(text) && Livewire.emit('success', 'Copied to clipboard.');
+ navigator?.clipboard?.writeText(text) && window.Livewire.emit('success', 'Copied to clipboard.');
}
-
- Livewire.on('reloadWindow', (timeout) => {
- if (timeout) {
- setTimeout(() => {
+ document.addEventListener('livewire:init', () => {
+ window.Livewire.on('reloadWindow', (timeout) => {
+ if (timeout) {
+ setTimeout(() => {
+ window.location.reload();
+ }, timeout);
+ return;
+ } else {
window.location.reload();
- }, timeout);
- return;
- } else {
- window.location.reload();
- }
- })
- Livewire.on('info', (message) => {
- if (message) Toaster.info(message)
- })
- Livewire.on('error', (message) => {
- if (message) Toaster.error(message)
- })
- Livewire.on('warning', (message) => {
- if (message) Toaster.warning(message)
- })
- Livewire.on('success', (message) => {
- if (message) Toaster.success(message)
- })
- Livewire.on('installDocker', () => {
- installDocker.showModal();
- })
+ }
+ })
+ window.Livewire.on('info', (message) => {
+ if (message) Toaster.info(message)
+ })
+ window.Livewire.on('error', (message) => {
+ if (message) Toaster.error(message)
+ })
+ window.Livewire.on('warning', (message) => {
+ if (message) Toaster.warning(message)
+ })
+ window.Livewire.on('success', (message) => {
+ if (message) Toaster.success(message)
+ })
+ window.Livewire.on('installDocker', () => {
+ installDocker.showModal();
+ })
+ });
</script>
</body>
@show
diff --git a/resources/views/layouts/subscription.blade.php b/resources/views/layouts/subscription.blade.php
index 5fb6e930ba..9b64154573 100644
--- a/resources/views/layouts/subscription.blade.php
+++ b/resources/views/layouts/subscription.blade.php
@@ -2,9 +2,11 @@
@section('body')
@parent
@if (isSubscriptionOnGracePeriod())
- <div class="fixed top-[4.5rem] left-4 z-50" id="vue">
- <magic-bar></magic-bar>
- </div>
+ @persist('magic-bar')
+ <div class="fixed top-[4.5rem] left-4 z-50" id="vue">
+ <magic-bar></magic-bar>
+ </div>
+ @endpersist
<x-navbar />
@else
<x-navbar-subscription />
diff --git a/resources/views/livewire/boarding/index.blade.php b/resources/views/livewire/boarding/index.blade.php
index ea14faae1e..5a52d3a171 100644
--- a/resources/views/livewire/boarding/index.blade.php
+++ b/resources/views/livewire/boarding/index.blade.php
@@ -88,7 +88,7 @@
wire:click="setPrivateKey('create')">No (create one for me)
</x-forms.button>
@if (count($privateKeys) > 0)
- <form wire:submit.prevent='selectExistingPrivateKey' class="flex flex-col w-full gap-4 pr-10">
+ <form wire:submit='selectExistingPrivateKey' class="flex flex-col w-full gap-4 pr-10">
<x-forms.select label="Existing SSH Keys" id='selectedExistingPrivateKey'>
@foreach ($privateKeys as $privateKey)
<option wire:key="{{ $loop->index }}" value="{{ $privateKey->id }}">
@@ -120,7 +120,7 @@
<x-forms.button class="justify-center box" wire:click="createNewServer">No (create one for me)
</x-forms.button>
<div>
- <form wire:submit.prevent='selectExistingServer' class="flex flex-col w-full gap-4 lg:w-96">
+ <form wire:submit='selectExistingServer' class="flex flex-col w-full gap-4 lg:w-96">
<x-forms.select label="Existing servers" class="w-96" id='selectedExistingServer'>
@foreach ($servers as $server)
<option wire:key="{{ $loop->index }}" value="{{ $server->id }}">
@@ -159,7 +159,7 @@
Please let me know your key details.
</x-slot:question>
<x-slot:actions>
- <form wire:submit.prevent='savePrivateKey' class="flex flex-col w-full gap-4 pr-10">
+ <form wire:submit='savePrivateKey' class="flex flex-col w-full gap-4 pr-10">
<x-forms.input required placeholder="Choose a name for your Private Key. Could be anything."
label="Name" id="privateKeyName" />
<x-forms.input placeholder="Description, so others will know more about this."
@@ -192,7 +192,7 @@
Please let me know your server details.
</x-slot:question>
<x-slot:actions>
- <form wire:submit.prevent='saveServer' class="flex flex-col w-full gap-4 pr-10">
+ <form wire:submit='saveServer' class="flex flex-col w-full gap-4 pr-10">
<div class="flex gap-2">
<x-forms.input required placeholder="Choose a name for your Server. Could be anything."
label="Name" id="remoteServerName" />
@@ -291,8 +291,7 @@
one!</x-forms.button>
<div>
@if (count($projects) > 0)
- <form wire:submit.prevent='selectExistingProject'
- class="flex flex-col w-full gap-4 lg:w-96">
+ <form wire:submit='selectExistingProject' class="flex flex-col w-full gap-4 lg:w-96">
<x-forms.select label="Existing projects" class="w-96"
id='selectedExistingProject'>
@foreach ($projects as $project)
diff --git a/resources/views/livewire/check-license.blade.php b/resources/views/livewire/check-license.blade.php
index 093e637fde..706b1f5e7e 100644
--- a/resources/views/livewire/check-license.blade.php
+++ b/resources/views/livewire/check-license.blade.php
@@ -1,4 +1,4 @@
-<form wire:submit.prevent='submit' class="flex flex-col gap-2">
+<form wire:submit='submit' class="flex flex-col gap-2">
<div>
@if ($settings->is_resale_license_active)
<div class="text-success">License is active</div>
diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php
index cd4f8a4580..70f25b8fbe 100644
--- a/resources/views/livewire/dashboard.blade.php
+++ b/resources/views/livewire/dashboard.blade.php
@@ -27,17 +27,16 @@
<div class="grid grid-cols-1 gap-2 xl:grid-cols-2">
@endif
@foreach ($projects as $project)
- <div class="gap-2 border border-transparent cursor-pointer box group" x-data
- x-on:click="gotoProject('{{ $project->uuid }}','{{ data_get($project, 'environments.0.name', 'production') }}')">
+ <div class="gap-2 border border-transparent cursor-pointer box group">
@if (data_get($project, 'environments.0.name'))
- <a class="flex flex-col flex-1 mx-6 hover:no-underline"
+ <a wire:navigate class="flex flex-col flex-1 mx-6 hover:no-underline"
href="{{ route('project.resources', ['project_uuid' => data_get($project, 'uuid'), 'environment_name' => data_get($project, 'environments.0.name', 'production')]) }}">
<div class="font-bold text-white">{{ $project->name }}</div>
<div class="description">
{{ $project->description }}</div>
</a>
@else
- <a class="flex flex-col flex-1 mx-6 hover:no-underline"
+ <a wire:navigate class="flex flex-col flex-1 mx-6 hover:no-underline"
href="{{ route('project.show', ['project_uuid' => data_get($project, 'uuid')]) }}">
<div class="font-bold text-white">{{ $project->name }}</div>
<div class="description">
@@ -45,11 +44,11 @@
</a>
@endif
<div class="flex items-center">
- <a class="mx-4 rounded group-hover:text-white hover:no-underline"
+ <a wire:navigate class="mx-4 rounded group-hover:text-white hover:no-underline"
href="{{ route('project.resources.new', ['project_uuid' => data_get($project, 'uuid'), 'environment_name' => data_get($project, 'environments.0.name', 'production')]) }}">
<span class="font-bold hover:text-warning">+ New Resource</span>
</a>
- <a class="mx-4 rounded group-hover:text-white"
+ <a wire:navigate class="mx-4 rounded group-hover:text-white"
href="{{ route('project.edit', ['project_uuid' => data_get($project, 'uuid')]) }}">
<svg xmlns="http://www.w3.org/2000/svg" class="icon hover:text-warning" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
@@ -73,11 +72,12 @@
<div class="grid grid-cols-3 gap-2">
@endif
@foreach ($servers as $server)
- <a href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}" @class([
- 'gap-2 border cursor-pointer box group',
- 'border-transparent' => $server->settings->is_reachable,
- 'border-red-500' => !$server->settings->is_reachable,
- ])>
+ <a wire:navigate href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}"
+ @class([
+ 'gap-2 border cursor-pointer box group',
+ 'border-transparent' => $server->settings->is_reachable,
+ 'border-red-500' => !$server->settings->is_reachable,
+ ])>
<div class="flex flex-col mx-6">
<div class="font-bold text-white">
{{ $server->name }}
diff --git a/resources/views/livewire/destination/new/standalone-docker.blade.php b/resources/views/livewire/destination/new/standalone-docker.blade.php
index 08a1360851..90335e51ac 100644
--- a/resources/views/livewire/destination/new/standalone-docker.blade.php
+++ b/resources/views/livewire/destination/new/standalone-docker.blade.php
@@ -1,7 +1,7 @@
<div>
<h1>Create a new Destination</h1>
<div class="subtitle ">Destinations are used to segregate resources by network.</div>
- <form class="flex flex-col gap-4" wire:submit.prevent='submit'>
+ <form class="flex flex-col gap-4" wire:submit='submit'>
<div class="flex gap-2">
<x-forms.input id="name" label="Name" required />
<x-forms.input id="network" label="Network" required />
diff --git a/resources/views/livewire/destination/show.blade.php b/resources/views/livewire/destination/show.blade.php
index 942c094c3a..a1766ec763 100644
--- a/resources/views/livewire/destination/show.blade.php
+++ b/resources/views/livewire/destination/show.blade.php
@@ -23,17 +23,16 @@
<h3 class="pb-4">Found Destinations</h3>
@endif
<div class="flex flex-wrap gap-2 ">
- @foreach ($networks as $network)
- <div >
- <a
-
- href="{{ route('destination.new', ['server_id' => $server->id, 'network_name' => data_get($network, 'Name')]) }}">
- <x-forms.button >+<x-highlighted text="{{ data_get($network, 'Name') }}" />
- </x-forms.button>
- </a>
+ @foreach ($networks as $network)
+ <div>
+ <a
+ href="{{ route('destination.new', ['server_id' => $server->id, 'network_name' => data_get($network, 'Name')]) }}">
+ <x-forms.button>+<x-highlighted text="{{ data_get($network, 'Name') }}" />
+ </x-forms.button>
+ </a>
+ </div>
+ @endforeach
</div>
- @endforeach
- </div>
</div>
@else
<div>Server is not validated. Validate first.</div>
diff --git a/resources/views/livewire/dev/s3-test.blade.php b/resources/views/livewire/dev/s3-test.blade.php
index ff6afa5f12..5244f07fd9 100644
--- a/resources/views/livewire/dev/s3-test.blade.php
+++ b/resources/views/livewire/dev/s3-test.blade.php
@@ -1,6 +1,6 @@
<div>
<h2>S3 Test</h2>
- <form wire:submit.prevent="save">
+ <form wire:submit="save">
<input type="file" wire:model="file">
@error('file')
<span class="error">{{ $message }}</span>
diff --git a/resources/views/livewire/force-password-reset.blade.php b/resources/views/livewire/force-password-reset.blade.php
index 28a6f797aa..42f1576a48 100644
--- a/resources/views/livewire/force-password-reset.blade.php
+++ b/resources/views/livewire/force-password-reset.blade.php
@@ -8,10 +8,11 @@
<div class="flex items-center justify-center pb-4 text-center">
<h2>Set your initial password</h2>
</div>
- <form class="flex flex-col gap-2" wire:submit.prevent='submit'>
+ <form class="flex flex-col gap-2" wire:submit='submit'>
<x-forms.input id="email" type="email" placeholder="Email" readonly label="Email" />
<x-forms.input id="password" type="password" placeholder="New Password" label="New Password" required />
- <x-forms.input id="password_confirmation" type="password" placeholder="Confirm New Password" label="Confirm New Password" required />
+ <x-forms.input id="password_confirmation" type="password" placeholder="Confirm New Password"
+ label="Confirm New Password" required />
<x-forms.button type="submit">Reset Password</x-forms.button>
</form>
</div>
diff --git a/resources/views/livewire/help.blade.php b/resources/views/livewire/help.blade.php
index 63f6eaaa88..84a4f99bdc 100644
--- a/resources/views/livewire/help.blade.php
+++ b/resources/views/livewire/help.blade.php
@@ -1,7 +1,7 @@
<div class="flex flex-col w-11/12 max-w-5xl gap-2 modal-box">
<h3>How can we help?</h3>
<div>Your feedback helps us to improve Coolify. Thank you! 💜</div>
- <form wire:submit.prevent="submit" class="flex flex-col gap-4 pt-4">
+ <form wire:submit="submit" class="flex flex-col gap-4 pt-4">
<x-forms.input id="subject" label="Subject" placeholder="Summary of your problem."></x-forms.input>
<x-forms.textarea rows="10" id="description" label="Description"
placeholder="Please provide as much information as possible."></x-forms.textarea>
diff --git a/resources/views/livewire/modal/edit-compose.blade.php b/resources/views/livewire/modal/edit-compose.blade.php
index 511269f189..64336f7556 100644
--- a/resources/views/livewire/modal/edit-compose.blade.php
+++ b/resources/views/livewire/modal/edit-compose.blade.php
@@ -1,4 +1,4 @@
-<form x-data="{ raw: true }" class="custom-modal" wire:submit.prevent='submit'>
+<form x-data="{ raw: true }" class="custom-modal" wire:submit='submit'>
<div class="flex items-end gap-2">
<h1>Docker Compose</h1>
<div x-cloak x-show="raw">
diff --git a/resources/views/livewire/notifications/discord-settings.blade.php b/resources/views/livewire/notifications/discord-settings.blade.php
index 89b0e80804..9499d8c21a 100644
--- a/resources/views/livewire/notifications/discord-settings.blade.php
+++ b/resources/views/livewire/notifications/discord-settings.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex items-center gap-2">
<h2>Discord</h2>
<x-forms.button type="submit">
diff --git a/resources/views/livewire/notifications/email-settings.blade.php b/resources/views/livewire/notifications/email-settings.blade.php
index fb38247b4c..a80aead2fd 100644
--- a/resources/views/livewire/notifications/email-settings.blade.php
+++ b/resources/views/livewire/notifications/email-settings.blade.php
@@ -1,6 +1,6 @@
<div>
<dialog id="sendTestEmail" class="modal">
- <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='submit'>
+ <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
<x-forms.input placeholder="[email protected]" id="emails" label="Recepients" required />
<x-forms.button onclick="sendTestEmail.close()" wire:click="sendTestNotification">
Send Email
@@ -10,7 +10,7 @@
<button>close</button>
</form>
</dialog>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex items-center gap-2">
<h2>Email</h2>
<x-forms.button type="submit">
@@ -51,7 +51,7 @@
</div>
@endif
@if (!$team->use_instance_email_settings)
- <form class="flex flex-col items-end gap-2 pb-4 xl:flex-row" wire:submit.prevent='submitFromFields'>
+ <form class="flex flex-col items-end gap-2 pb-4 xl:flex-row" wire:submit='submitFromFields'>
<x-forms.input required id="team.smtp_from_name" helper="Name used in emails." label="From Name" />
<x-forms.input required id="team.smtp_from_address" helper="Email address used in emails."
label="From Address" />
@@ -65,7 +65,7 @@
<div class="w-32">
<x-forms.checkbox instantSave id="team.smtp_enabled" label="Enabled" />
</div>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex flex-col gap-4">
<div class="flex flex-col w-full gap-2 xl:flex-row">
<x-forms.input required id="team.smtp_host" placeholder="smtp.mailgun.org" label="Host" />
@@ -92,7 +92,7 @@
<div class="w-32">
<x-forms.checkbox instantSave='instantSaveResend' id="team.resend_enabled" label="Enabled" />
</div>
- <form wire:submit.prevent='submitResend' class="flex flex-col">
+ <form wire:submit='submitResend' class="flex flex-col">
<div class="flex flex-col gap-4">
<div class="flex flex-col w-full gap-2 xl:flex-row">
<x-forms.input required type="password" id="team.resend_api_key" placeholder="API key"
diff --git a/resources/views/livewire/notifications/telegram-settings.blade.php b/resources/views/livewire/notifications/telegram-settings.blade.php
index 89eec05acf..8d400420a5 100644
--- a/resources/views/livewire/notifications/telegram-settings.blade.php
+++ b/resources/views/livewire/notifications/telegram-settings.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex items-center gap-2">
<h2>Telegram</h2>
<x-forms.button type="submit">
@@ -19,43 +19,43 @@
<x-forms.input type="password"
helper="Get it from the <a class='inline-block text-white underline' href='https://t.me/botfather' target='_blank'>BotFather Bot</a> on Telegram."
required id="team.telegram_token" label="Token" />
- <x-forms.input
- helper="Recommended to add your bot to a group chat and add its Chat ID here." required
+ <x-forms.input helper="Recommended to add your bot to a group chat and add its Chat ID here." required
id="team.telegram_chat_id" label="Chat ID" />
</div>
- @if (data_get($team, 'telegram_enabled'))
- <h2 class="mt-4">Subscribe to events</h2>
- <div class="w-96">
- @if (isDev())
+ @if (data_get($team, 'telegram_enabled'))
+ <h2 class="mt-4">Subscribe to events</h2>
+ <div class="w-96">
+ @if (isDev())
+ <div class="w-64">
+ <x-forms.checkbox instantSave="saveModel" id="team.telegram_notifications_test"
+ label="Test" />
+ <x-forms.input
+ helper="If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used."
+ id="team.telegram_notifications_test_message_thread_id" label="Custom Topic ID" />
+ </div>
+ @endif
<div class="w-64">
- <x-forms.checkbox instantSave="saveModel" id="team.telegram_notifications_test" label="Test" />
+ <x-forms.checkbox instantSave="saveModel" id="team.telegram_notifications_status_changes"
+ label="Container Status Changes" />
<x-forms.input
helper="If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used."
- id="team.telegram_notifications_test_message_thread_id" label="Custom Topic ID" />
+ id="team.telegram_notifications_status_changes_message_thread_id" label="Custom Topic ID" />
+ </div>
+ <div class="w-64">
+ <x-forms.checkbox instantSave="saveModel" id="team.telegram_notifications_deployments"
+ label="Application Deployments" />
+ <x-forms.input
+ helper="If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used."
+ id="team.telegram_notifications_deployments_message_thread_id" label="Custom Topic ID" />
+ </div>
+ <div class="w-64">
+ <x-forms.checkbox instantSave="saveModel" id="team.telegram_notifications_database_backups"
+ label="Backup Status" />
+ <x-forms.input
+ helper="If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used."
+ id="team.telegram_notifications_database_backups_message_thread_id" label="Custom Topic ID" />
</div>
- @endif
- <div class="w-64">
- <x-forms.checkbox instantSave="saveModel" id="team.telegram_notifications_status_changes"
- label="Container Status Changes" />
- <x-forms.input
- helper="If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used."
- id="team.telegram_notifications_status_changes_message_thread_id" label="Custom Topic ID" />
- </div>
- <div class="w-64">
- <x-forms.checkbox instantSave="saveModel" id="team.telegram_notifications_deployments"
- label="Application Deployments" />
- <x-forms.input
- helper="If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used."
- id="team.telegram_notifications_deployments_message_thread_id" label="Custom Topic ID" />
- </div>
- <div class="w-64">
- <x-forms.checkbox instantSave="saveModel" id="team.telegram_notifications_database_backups"
- label="Backup Status" />
- <x-forms.input
- helper="If you are using Group chat with Topics, you can specify the topics ID. If empty, General topic will be used."
- id="team.telegram_notifications_database_backups_message_thread_id" label="Custom Topic ID" />
</div>
- </div>
@endif
</form>
</div>
diff --git a/resources/views/livewire/private-key/change.blade.php b/resources/views/livewire/private-key/change.blade.php
index 242f5865c4..7c1dbe3ea0 100644
--- a/resources/views/livewire/private-key/change.blade.php
+++ b/resources/views/livewire/private-key/change.blade.php
@@ -4,7 +4,7 @@
<p>This private key will be deleted. It is not reversible. <br>Please think again.</p>
</x-slot:modalBody>
</x-modal>
- <form class="flex flex-col gap-2" wire:submit.prevent='changePrivateKey'>
+ <form class="flex flex-col gap-2" wire:submit='changePrivateKey'>
<div class="flex items-end gap-2">
<h2>Private Key</h2>
<x-forms.button type="submit">
diff --git a/resources/views/livewire/private-key/create.blade.php b/resources/views/livewire/private-key/create.blade.php
index b269e5ce46..17d0549457 100644
--- a/resources/views/livewire/private-key/create.blade.php
+++ b/resources/views/livewire/private-key/create.blade.php
@@ -1,6 +1,6 @@
<div>
<x-forms.button class="mb-4" wire:click="generateNewKey">Generate new SSH key for me</x-forms.button>
- <form class="flex flex-col gap-2" wire:submit.prevent='createPrivateKey'>
+ <form class="flex flex-col gap-2" wire:submit='createPrivateKey'>
<div class="flex gap-2">
<x-forms.input id="name" label="Name" required />
<x-forms.input id="description" label="Description" />
diff --git a/resources/views/livewire/profile/form.blade.php b/resources/views/livewire/profile/form.blade.php
index 4a7da9df2a..f664121e47 100644
--- a/resources/views/livewire/profile/form.blade.php
+++ b/resources/views/livewire/profile/form.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex items-center gap-2">
<h2>General</h2>
<x-forms.button type="submit" label="Save">Save</x-forms.button>
diff --git a/resources/views/livewire/project/add-empty.blade.php b/resources/views/livewire/project/add-empty.blade.php
index 09ac3db35e..7f1db453e9 100644
--- a/resources/views/livewire/project/add-empty.blade.php
+++ b/resources/views/livewire/project/add-empty.blade.php
@@ -1,5 +1,5 @@
<dialog id="newEmptyProject" class="modal">
- <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='submit'>
+ <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
<x-forms.input placeholder="Your Cool Project" id="name" label="Name" required />
<x-forms.input placeholder="This is my cool project everyone knows about" id="description" label="Description" />
<x-forms.button onclick="newEmptyProject.close()" type="submit">
diff --git a/resources/views/livewire/project/add-environment.blade.php b/resources/views/livewire/project/add-environment.blade.php
index 1ae87fce00..cb49c1ae21 100644
--- a/resources/views/livewire/project/add-environment.blade.php
+++ b/resources/views/livewire/project/add-environment.blade.php
@@ -1,5 +1,5 @@
<dialog id="newEnvironment" class="modal">
- <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='submit'>
+ <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
<x-forms.input placeholder="production" id="name" label="Name" required />
<x-forms.button onclick="newEnvironment.close()" type="submit">
Save
diff --git a/resources/views/livewire/project/application/advanced.blade.php b/resources/views/livewire/project/application/advanced.blade.php
index cd666b9540..12f7d73975 100644
--- a/resources/views/livewire/project/application/advanced.blade.php
+++ b/resources/views/livewire/project/application/advanced.blade.php
@@ -23,7 +23,7 @@
<x-forms.checkbox instantSave id="application.settings.is_git_lfs_enabled" label="Git LFS"
helper="Allow Git LFS during build process." />
@endif
- <form wire:submit.prevent="submit">
+ <form wire:submit="submit">
@if ($application->build_pack !== 'dockercompose')
<div class="flex gap-2">
<x-forms.checkbox
diff --git a/resources/views/livewire/project/application/configuration.blade.php b/resources/views/livewire/project/application/configuration.blade.php
index ecfb747796..62def6986a 100644
--- a/resources/views/livewire/project/application/configuration.blade.php
+++ b/resources/views/livewire/project/application/configuration.blade.php
@@ -57,39 +57,39 @@
<livewire:project.application.general :application="$application" />
</div>
<div x-cloak x-show="activeTab === 'advanced'" class="h-full">
- <livewire:project.application.advanced :application="$application" />
+ <livewire:project.application.advanced :application="$application" lazy />
</div>
<div x-cloak x-show="activeTab === 'environment-variables'">
- <livewire:project.shared.environment-variable.all :resource="$application" />
+ <livewire:project.shared.environment-variable.all :resource="$application" lazy />
</div>
@if ($application->git_based())
<div x-cloak x-show="activeTab === 'source'">
- <livewire:project.application.source :application="$application" />
+ <livewire:project.application.source :application="$application" lazy />
</div>
@endif
<div x-cloak x-show="activeTab === 'server'">
- <livewire:project.shared.destination :resource="$application" :servers="$servers" />
+ <livewire:project.shared.destination :resource="$application" :servers="$servers" lazy />
</div>
<div x-cloak x-show="activeTab === 'storages'">
- <livewire:project.service.storage :resource="$application" />
+ <livewire:project.service.storage :resource="$application" lazy />
</div>
<div x-cloak x-show="activeTab === 'webhooks'">
- <livewire:project.shared.webhooks :resource="$application" />
+ <livewire:project.shared.webhooks :resource="$application" lazy />
</div>
<div x-cloak x-show="activeTab === 'previews'">
- <livewire:project.application.previews :application="$application" />
+ <livewire:project.application.previews :application="$application" lazy />
</div>
<div x-cloak x-show="activeTab === 'health'">
- <livewire:project.shared.health-checks :resource="$application" />
+ <livewire:project.shared.health-checks :resource="$application" lazy />
</div>
<div x-cloak x-show="activeTab === 'rollback'">
- <livewire:project.application.rollback :application="$application" />
+ <livewire:project.application.rollback :application="$application" lazy />
</div>
<div x-cloak x-show="activeTab === 'resource-limits'">
- <livewire:project.shared.resource-limits :resource="$application" />
+ <livewire:project.shared.resource-limits :resource="$application" lazy />
</div>
<div x-cloak x-show="activeTab === 'danger'">
- <livewire:project.shared.danger :resource="$application" />
+ <livewire:project.shared.danger :resource="$application" lazy />
</div>
</div>
</div>
diff --git a/resources/views/livewire/project/application/deployments.blade.php b/resources/views/livewire/project/application/deployments.blade.php
index 254e7f20e9..0fc7e0d2a1 100644
--- a/resources/views/livewire/project/application/deployments.blade.php
+++ b/resources/views/livewire/project/application/deployments.blade.php
@@ -11,12 +11,11 @@
<x-forms.button type="submit">Filter</x-forms.button>
</form>
@forelse ($deployments as $deployment)
- <a @class([
+ <a wire:navigate @class([
'bg-coolgray-100 p-2 border-l border-dashed transition-colors hover:no-underline',
- 'hover:bg-coolgray-200' =>
- data_get($deployment, 'status') === 'queued',
+ 'hover:bg-coolgray-200' => data_get($deployment, 'status') === 'queued',
'border-warning hover:bg-warning hover:text-black' =>
- data_get($deployment, 'status') === 'in_progress' ||
+ data_get($deployment, 'status') === 'in_progress' ||
data_get($deployment, 'status') === 'cancelled-by-user',
'border-error hover:bg-error' =>
data_get($deployment, 'status') === 'failed',
diff --git a/resources/views/livewire/project/application/general.blade.php b/resources/views/livewire/project/application/general.blade.php
index de34a184fd..629b5b7842 100644
--- a/resources/views/livewire/project/application/general.blade.php
+++ b/resources/views/livewire/project/application/general.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex items-center gap-2">
<h2>General</h2>
<x-forms.button type="submit">
diff --git a/resources/views/livewire/project/application/preview/form.blade.php b/resources/views/livewire/project/application/preview/form.blade.php
index c466c6af14..3dead1bad1 100644
--- a/resources/views/livewire/project/application/preview/form.blade.php
+++ b/resources/views/livewire/project/application/preview/form.blade.php
@@ -1,4 +1,4 @@
-<form wire:submit.prevent='submit'>
+<form wire:submit='submit'>
<div class="flex items-center gap-2">
<h2>Preview Deployments</h2>
<x-forms.button type="submit">Save</x-forms.button>
diff --git a/resources/views/livewire/project/application/previews.blade.php b/resources/views/livewire/project/application/previews.blade.php
index 6663c71d38..9d33a2e2a5 100644
--- a/resources/views/livewire/project/application/previews.blade.php
+++ b/resources/views/livewire/project/application/previews.blade.php
@@ -66,7 +66,8 @@
</a>
@endif
|
- <a target="_blank" href="{{ data_get($preview, 'pull_request_html_url') }}">Open PR on Git
+ <a target="_blank" href="{{ data_get($preview, 'pull_request_html_url') }}">Open
+ PR on Git
<x-external-link />
</a>
</div>
diff --git a/resources/views/livewire/project/application/rollback.blade.php b/resources/views/livewire/project/application/rollback.blade.php
index 09e69c7c1e..5d80233919 100644
--- a/resources/views/livewire/project/application/rollback.blade.php
+++ b/resources/views/livewire/project/application/rollback.blade.php
@@ -3,7 +3,8 @@
<h2>Rollback</h2>
<x-forms.button wire:click='loadImages(true)'>Reload Available Images</x-forms.button>
</div>
- <div class="pb-4 ">You can easily rollback to a previously built <span class="text-warning">(local)</span> images quickly.</div>
+ <div class="pb-4 ">You can easily rollback to a previously built <span class="text-warning">(local)</span> images
+ quickly.</div>
<div wire:target='loadImages'>
<div class="flex flex-wrap">
@forelse ($images as $image)
@@ -25,7 +26,8 @@
Rollback
</x-forms.button>
@else
- <x-forms.button class="bg-coolgray-100" wire:click="rollbackImage('{{ data_get($image, 'tag') }}')">
+ <x-forms.button class="bg-coolgray-100"
+ wire:click="rollbackImage('{{ data_get($image, 'tag') }}')">
Rollback
</x-forms.button>
@endif
diff --git a/resources/views/livewire/project/application/source.blade.php b/resources/views/livewire/project/application/source.blade.php
index 699880321d..de7d94d39e 100644
--- a/resources/views/livewire/project/application/source.blade.php
+++ b/resources/views/livewire/project/application/source.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex items-center gap-2">
<h2>Source</h2>
<x-forms.button type="submit">Save</x-forms.button>
diff --git a/resources/views/livewire/project/clone-project.blade.php b/resources/views/livewire/project/clone-project.blade.php
index 2e79d88923..7d1fd9070e 100644
--- a/resources/views/livewire/project/clone-project.blade.php
+++ b/resources/views/livewire/project/clone-project.blade.php
@@ -1,4 +1,4 @@
-<form wire:submit.prevent='clone'>
+<form wire:submit='clone'>
<div class="flex flex-col">
<div class="flex gap-2">
<h1>Clone</h1>
diff --git a/resources/views/livewire/project/database/backup-edit.blade.php b/resources/views/livewire/project/database/backup-edit.blade.php
index 0542ee087d..071d3a8896 100644
--- a/resources/views/livewire/project/database/backup-edit.blade.php
+++ b/resources/views/livewire/project/database/backup-edit.blade.php
@@ -1,4 +1,4 @@
-<form wire:submit.prevent="submit">
+<form wire:submit="submit">
<div class="flex gap-2 pb-2">
<h2>Scheduled Backup</h2>
<x-forms.button type="submit">
diff --git a/resources/views/livewire/project/database/create-scheduled-backup.blade.php b/resources/views/livewire/project/database/create-scheduled-backup.blade.php
index 2aeb351253..a14663227c 100644
--- a/resources/views/livewire/project/database/create-scheduled-backup.blade.php
+++ b/resources/views/livewire/project/database/create-scheduled-backup.blade.php
@@ -1,5 +1,5 @@
<dialog id="createScheduledBackup" class="modal">
- <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='submit'>
+ <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
<h2>New Backup</h2>
<x-forms.input placeholder="0 0 * * * or daily" id="frequency" label="Frequency" required />
<h3>S3 Storage</h3>
diff --git a/resources/views/livewire/project/database/init-script.blade.php b/resources/views/livewire/project/database/init-script.blade.php
index c3d0feb00e..df1357f515 100644
--- a/resources/views/livewire/project/database/init-script.blade.php
+++ b/resources/views/livewire/project/database/init-script.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent="submit">
+ <form wire:submit="submit">
<div class="flex items-end gap-2">
<x-forms.input id="filename" label="Filename" />
<x-forms.button type="submit">Save</x-forms.button>
diff --git a/resources/views/livewire/project/database/mariadb/general.blade.php b/resources/views/livewire/project/database/mariadb/general.blade.php
index 361f476df6..75392885df 100644
--- a/resources/views/livewire/project/database/mariadb/general.blade.php
+++ b/resources/views/livewire/project/database/mariadb/general.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent="submit" class="flex flex-col gap-2">
+ <form wire:submit="submit" class="flex flex-col gap-2">
<div class="flex items-center gap-2">
<h2>General</h2>
<x-forms.button type="submit">
diff --git a/resources/views/livewire/project/database/mongodb/general.blade.php b/resources/views/livewire/project/database/mongodb/general.blade.php
index f55140bf27..0b57b4df77 100644
--- a/resources/views/livewire/project/database/mongodb/general.blade.php
+++ b/resources/views/livewire/project/database/mongodb/general.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent="submit" class="flex flex-col gap-2">
+ <form wire:submit="submit" class="flex flex-col gap-2">
<div class="flex items-center gap-2">
<h2>General</h2>
<x-forms.button type="submit">
diff --git a/resources/views/livewire/project/database/mysql/general.blade.php b/resources/views/livewire/project/database/mysql/general.blade.php
index aef1b006dd..fd7c3876de 100644
--- a/resources/views/livewire/project/database/mysql/general.blade.php
+++ b/resources/views/livewire/project/database/mysql/general.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent="submit" class="flex flex-col gap-2">
+ <form wire:submit="submit" class="flex flex-col gap-2">
<div class="flex items-center gap-2">
<h2>General</h2>
<x-forms.button type="submit">
diff --git a/resources/views/livewire/project/database/postgresql/general.blade.php b/resources/views/livewire/project/database/postgresql/general.blade.php
index 7554ae17f3..35eabbafcb 100644
--- a/resources/views/livewire/project/database/postgresql/general.blade.php
+++ b/resources/views/livewire/project/database/postgresql/general.blade.php
@@ -1,6 +1,6 @@
<div>
<dialog id="newInitScript" class="modal">
- <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='save_new_init_script'>
+ <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='save_new_init_script'>
<h3 class="text-lg font-bold">Add Init Script</h3>
<x-forms.input placeholder="create_test_db.sql" id="new_filename" label="Filename" required />
<x-forms.textarea placeholder="CREATE DATABASE test;" id="new_content" label="Content" required />
@@ -13,7 +13,7 @@
</form>
</dialog>
- <form wire:submit.prevent="submit" class="flex flex-col gap-2">
+ <form wire:submit="submit" class="flex flex-col gap-2">
<div class="flex items-center gap-2">
<h2>General</h2>
<x-forms.button type="submit">
@@ -76,8 +76,8 @@
</form>
<h3 class="pt-4">Advanced</h3>
<div class="flex flex-col">
- <x-forms.checkbox helper="Drain logs to your configured log drain endpoint in your Server settings." instantSave="instantSaveAdvanced"
- id="database.is_log_drain_enabled" label="Drain Logs" />
+ <x-forms.checkbox helper="Drain logs to your configured log drain endpoint in your Server settings."
+ instantSave="instantSaveAdvanced" id="database.is_log_drain_enabled" label="Drain Logs" />
</div>
<div class="pb-16">
<div class="flex gap-2 pt-4 pb-2">
diff --git a/resources/views/livewire/project/database/redis/general.blade.php b/resources/views/livewire/project/database/redis/general.blade.php
index 0d2b7bb42d..dd000de480 100644
--- a/resources/views/livewire/project/database/redis/general.blade.php
+++ b/resources/views/livewire/project/database/redis/general.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent="submit" class="flex flex-col gap-2">
+ <form wire:submit="submit" class="flex flex-col gap-2">
<div class="flex items-center gap-2">
<h2>General</h2>
<x-forms.button type="submit">
diff --git a/resources/views/livewire/project/database/scheduled-backups.blade.php b/resources/views/livewire/project/database/scheduled-backups.blade.php
index 091d41287d..8ce548a6db 100644
--- a/resources/views/livewire/project/database/scheduled-backups.blade.php
+++ b/resources/views/livewire/project/database/scheduled-backups.blade.php
@@ -13,8 +13,7 @@
'border-coollabs' =>
data_get($backup, 'id') === data_get($selectedBackup, 'id'),
'flex flex-col box border-l-2 border-transparent',
- ])
- wire:click="setSelectedBackup('{{ data_get($backup, 'id') }}')">
+ ]) wire:click="setSelectedBackup('{{ data_get($backup, 'id') }}')">
<div>Frequency: {{ $backup->frequency }}</div>
<div>Last backup: {{ data_get($backup->latest_log, 'status', 'No backup yet') }}</div>
<div>Number of backups to keep (locally): {{ $backup->number_of_backups_locally }}</div>
diff --git a/resources/views/livewire/project/edit.blade.php b/resources/views/livewire/project/edit.blade.php
index dfcab8d224..3647c77524 100644
--- a/resources/views/livewire/project/edit.blade.php
+++ b/resources/views/livewire/project/edit.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='submit' class="flex flex-col gap-2 ">
+ <form wire:submit='submit' class="flex flex-col gap-2 ">
<div class="flex items-end gap-2">
<h1>Project: {{ data_get($project, 'name') }}</h1>
<x-forms.button type="submit">Save</x-forms.button>
diff --git a/resources/views/livewire/project/new/docker-compose.blade.php b/resources/views/livewire/project/new/docker-compose.blade.php
index 404ef44984..3a3c7deaef 100644
--- a/resources/views/livewire/project/new/docker-compose.blade.php
+++ b/resources/views/livewire/project/new/docker-compose.blade.php
@@ -1,7 +1,7 @@
<div>
<h1>Create a new Service</h1>
<div class="pb-4">You can deploy complex services easily with Docker Compose.</div>
- <form wire:submit.prevent="submit">
+ <form wire:submit="submit">
<div class="flex gap-2 pb-1">
<h2>Docker Compose</h2>
<x-forms.button type="submit">Save</x-forms.button>
diff --git a/resources/views/livewire/project/new/docker-image.blade.php b/resources/views/livewire/project/new/docker-image.blade.php
index 55ad3d6ac3..149ccd0496 100644
--- a/resources/views/livewire/project/new/docker-image.blade.php
+++ b/resources/views/livewire/project/new/docker-image.blade.php
@@ -1,7 +1,7 @@
<div>
<h1>Create a new Application</h1>
<div class="pb-4">You can deploy an existing Docker Image from any Registry.</div>
- <form wire:submit.prevent="submit">
+ <form wire:submit="submit">
<div class="flex gap-2 pb-1">
<h2>Docker Image</h2>
<x-forms.button type="submit">Save</x-forms.button>
diff --git a/resources/views/livewire/project/new/github-private-repository-deploy-key.blade.php b/resources/views/livewire/project/new/github-private-repository-deploy-key.blade.php
index 7ea57360c7..f7fe57ac2a 100644
--- a/resources/views/livewire/project/new/github-private-repository-deploy-key.blade.php
+++ b/resources/views/livewire/project/new/github-private-repository-deploy-key.blade.php
@@ -40,7 +40,7 @@
<li class="step step-secondary">Select a Private Key</li>
<li class="step step-secondary">Select a Repository, Branch & Save</li>
</ul>
- <form class="flex flex-col gap-2 pb-6" wire:submit.prevent='submit'>
+ <form class="flex flex-col gap-2 pb-6" wire:submit='submit'>
<div class="flex gap-2">
<x-forms.input id="repository_url" required label="Repository URL"
helper="{!! __('repository.url') !!}" />
diff --git a/resources/views/livewire/project/new/github-private-repository.blade.php b/resources/views/livewire/project/new/github-private-repository.blade.php
index 7959ac4685..082decd22e 100644
--- a/resources/views/livewire/project/new/github-private-repository.blade.php
+++ b/resources/views/livewire/project/new/github-private-repository.blade.php
@@ -41,7 +41,7 @@
@if ($repositories->count() > 0)
<div class="flex items-end gap-2">
<x-forms.select class="w-full" label="Repository URL" helper="{!! __('repository.url') !!}"
- wire:model.defer="selected_repository_id">
+ wire:model="selected_repository_id">
@foreach ($repositories as $repo)
@if ($loop->first)
<option selected value="{{ data_get($repo, 'id') }}">
@@ -67,7 +67,7 @@
@endif
@if ($branches->count() > 0)
<div class="flex flex-col gap-2 pb-6">
- <form class="flex flex-col" wire:submit.prevent='submit'>
+ <form class="flex flex-col" wire:submit='submit'>
<div class="flex flex-col gap-2 pb-6">
<div class="flex gap-2">
<x-forms.select id="selected_branch_name" label="Branch">
diff --git a/resources/views/livewire/project/new/public-git-repository.blade.php b/resources/views/livewire/project/new/public-git-repository.blade.php
index 37459187b1..08a886777d 100644
--- a/resources/views/livewire/project/new/public-git-repository.blade.php
+++ b/resources/views/livewire/project/new/public-git-repository.blade.php
@@ -1,12 +1,11 @@
<div>
<h1>Create a new Application</h1>
<div class="pb-4">Deploy any public Git repositories.</div>
- <form class="flex flex-col gap-2" wire:submit.prevent='load_branch'>
+ <form class="flex flex-col gap-2" wire:submit='load_branch'>
<div class="flex flex-col gap-2">
<div class="flex flex-col">
<div class="flex items-end gap-2">
- <x-forms.input required id="repository_url" label="Repository URL"
- helper="{!! __('repository.url') !!}" />
+ <x-forms.input required id="repository_url" label="Repository URL" helper="{!! __('repository.url') !!}" />
<x-forms.button type="submit">
Check repository
</x-forms.button>
@@ -16,7 +15,7 @@
<div class="flex gap-2 py-2">
<div>Rate Limit</div>
<x-helper
- helper="Rate limit remaining: {{ $rate_limit_remaining }}<br>Rate limit reset at: {{ $rate_limit_reset }} UTC" />
+ helper="Rate limit remaining: {{ $rate_limit_remaining }}<br>Rate limit reset at: {{ $rate_limit_reset }} UTC" />
</div>
@endif
<div class="flex flex-col gap-2 pb-6">
diff --git a/resources/views/livewire/project/new/select.blade.php b/resources/views/livewire/project/new/select.blade.php
index b4818d8c6c..7fdf8a6195 100644
--- a/resources/views/livewire/project/new/select.blade.php
+++ b/resources/views/livewire/project/new/select.blade.php
@@ -90,7 +90,8 @@
New PostgreSQL
</div>
<div class="description">
- PostgreSQL is an open-source, object-relational database management system known for its robustness, advanced features, and strong standards compliance.
+ PostgreSQL is an open-source, object-relational database management system known for its
+ robustness, advanced features, and strong standards compliance.
</div>
</div>
</div>
@@ -100,7 +101,8 @@
New Redis
</div>
<div class="description">
- Redis is an open-source, in-memory data structure store used as a database, cache, and message broker, known for its high performance, flexibility, and rich data structures.
+ Redis is an open-source, in-memory data structure store used as a database, cache, and
+ message broker, known for its high performance, flexibility, and rich data structures.
</div>
</div>
</div>
@@ -110,7 +112,9 @@
New MongoDB
</div>
<div class="description">
- MongoDB is a source-available, NoSQL database program that uses JSON-like documents with optional schemas, known for its flexibility, scalability, and wide range of application use cases.
+ MongoDB is a source-available, NoSQL database program that uses JSON-like documents with
+ optional schemas, known for its flexibility, scalability, and wide range of application use
+ cases.
</div>
</div>
</div>
@@ -120,7 +124,8 @@
New MySQL
</div>
<div class="description">
- MySQL is an open-source relational database management system known for its speed, reliability, and flexibility in managing and accessing data.
+ MySQL is an open-source relational database management system known for its speed,
+ reliability, and flexibility in managing and accessing data.
</div>
</div>
</div>
@@ -130,7 +135,8 @@
New Mariadb
</div>
<div class="description">
- MariaDB is an open-source relational database management system that serves as a drop-in replacement for MySQL, offering more robust, scalable, and reliable SQL server capabilities.
+ MariaDB is an open-source relational database management system that serves as a drop-in
+ replacement for MySQL, offering more robust, scalable, and reliable SQL server capabilities.
</div>
</div>
</div>
@@ -181,7 +187,7 @@
</div>
</button>
@endif
- @empty
+ @empty
<div>No service found. Please try to reload the list!</div>
@endforelse
@endif
@@ -248,7 +254,7 @@
</div>
@endif
@if ($current_step === 'existing-postgresql')
- <form wire:submit.prevent='addExistingPostgresql' class="flex items-end gap-2">
+ <form wire:submit='addExistingPostgresql' class="flex items-end gap-2">
<x-forms.input placeholder="postgres://username:password@database:5432" label="Database URL"
id="existingPostgresqlUrl" />
<x-forms.button type="submit">Add Database</x-forms.button>
diff --git a/resources/views/livewire/project/new/simple-dockerfile.blade.php b/resources/views/livewire/project/new/simple-dockerfile.blade.php
index 0ebac6577e..8b0b16f396 100644
--- a/resources/views/livewire/project/new/simple-dockerfile.blade.php
+++ b/resources/views/livewire/project/new/simple-dockerfile.blade.php
@@ -1,7 +1,7 @@
<div>
<h1>Create a new Application</h1>
<div class="pb-4">You can deploy a simple Dockerfile, without Git.</div>
- <form wire:submit.prevent="submit">
+ <form wire:submit="submit">
<div class="flex gap-2 pb-1">
<h2>Dockerfile</h2>
<x-forms.button type="submit">Save</x-forms.button>
diff --git a/resources/views/livewire/project/service/application.blade.php b/resources/views/livewire/project/service/application.blade.php
index f8809686cc..57ad0403af 100644
--- a/resources/views/livewire/project/service/application.blade.php
+++ b/resources/views/livewire/project/service/application.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='submit'>
+ <form wire:submit='submit'>
<div class="flex items-center gap-2 pb-4">
@if ($application->human_name)
<h2>{{ Str::headline($application->human_name) }}</h2>
diff --git a/resources/views/livewire/project/service/database.blade.php b/resources/views/livewire/project/service/database.blade.php
index 7868c5b073..85972fafb9 100644
--- a/resources/views/livewire/project/service/database.blade.php
+++ b/resources/views/livewire/project/service/database.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='submit'>
+ <form wire:submit='submit'>
<div class="flex items-center gap-2 pb-4">
@if ($database->human_name)
<h2>{{ Str::headline($database->human_name) }}</h2>
diff --git a/resources/views/livewire/project/service/file-storage.blade.php b/resources/views/livewire/project/service/file-storage.blade.php
index 97b2e319d0..d3c3c43a6f 100644
--- a/resources/views/livewire/project/service/file-storage.blade.php
+++ b/resources/views/livewire/project/service/file-storage.blade.php
@@ -1,9 +1,9 @@
<x-collapsible>
<x-slot:title>
- <div>{{$workdir}}{{ $fs_path }} -> {{ $fileStorage->mount_path }}</div>
+ <div>{{ $workdir }}{{ $fs_path }} -> {{ $fileStorage->mount_path }}</div>
</x-slot:title>
<x-slot:action>
- <form wire:submit.prevent='submit' class="flex flex-col gap-2">
+ <form wire:submit='submit' class="flex flex-col gap-2">
<div class="w-64">
<x-forms.checkbox instantSave label="Is directory?" id="fileStorage.is_directory"></x-forms.checkbox>
</div>
diff --git a/resources/views/livewire/project/service/stack-form.blade.php b/resources/views/livewire/project/service/stack-form.blade.php
index 730fe0709f..e9b704d112 100644
--- a/resources/views/livewire/project/service/stack-form.blade.php
+++ b/resources/views/livewire/project/service/stack-form.blade.php
@@ -1,4 +1,4 @@
-<form wire:submit.prevent='submit' class="flex flex-col gap-4 pb-2">
+<form wire:submit='submit' class="flex flex-col gap-4 pb-2">
<div class="flex gap-2">
<div>
<h2>Service Stack</h2>
@@ -6,7 +6,7 @@
</div>
<x-forms.button type="submit">Save</x-forms.button>
<x-forms.button class="w-64"
- onclick="Livewire.emit('openModal', 'modals.edit-compose',{{ json_encode(['serviceId' => $service->id]) }})">Edit
+ onclick="Livewire.dispatch('openModal', {component: {component: 'modals.edit-compose', arguments: arguments: {{ json_encode(['serviceId' => $service->id]) }} } })">Edit
Compose
File</x-forms.button>
</div>
diff --git a/resources/views/livewire/project/shared/destination.blade.php b/resources/views/livewire/project/shared/destination.blade.php
index 7e22309ad4..50380b5ed3 100644
--- a/resources/views/livewire/project/shared/destination.blade.php
+++ b/resources/views/livewire/project/shared/destination.blade.php
@@ -13,7 +13,7 @@
<div>
<h3>Additional Servers</h3>
@foreach ($servers as $server)
- <form wire:submit.prevent='submit' class="p-2 border border-coolgray-400">
+ <form wire:submit='submit' class="p-2 border border-coolgray-400">
<h4>{{ $server->name }}</h4>
<div class="text-sm text-coolgray-600">{{ $server->description }}</div>
<x-forms.checkbox id="additionalServers.{{ $loop->index }}.enabled" label="Enabled">
diff --git a/resources/views/livewire/project/shared/environment-variable/add.blade.php b/resources/views/livewire/project/shared/environment-variable/add.blade.php
index 618e2c8521..3b19f1c00c 100644
--- a/resources/views/livewire/project/shared/environment-variable/add.blade.php
+++ b/resources/views/livewire/project/shared/environment-variable/add.blade.php
@@ -1,5 +1,5 @@
<dialog id="newVariable" class="modal">
- <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='submit'>
+ <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
<h3 class="text-lg font-bold">Add Environment Variable</h3>
<x-forms.input placeholder="NODE_ENV" id="key" label="Name" required />
<x-forms.input placeholder="production" id="value" label="Value" required />
diff --git a/resources/views/livewire/project/shared/environment-variable/all.blade.php b/resources/views/livewire/project/shared/environment-variable/all.blade.php
index ec1480e050..ae59cf9078 100644
--- a/resources/views/livewire/project/shared/environment-variable/all.blade.php
+++ b/resources/views/livewire/project/shared/environment-variable/all.blade.php
@@ -27,12 +27,12 @@
@endforeach
@endif
@else
- <form wire:submit.prevent='saveVariables(false)' class="flex flex-col gap-2">
+ <form wire:submit='saveVariables(false)' class="flex flex-col gap-2">
<x-forms.textarea rows=25 class="whitespace-pre-wrap" id="variables"></x-forms.textarea>
<x-forms.button type="submit" class="btn btn-primary">Save</x-forms.button>
</form>
@if ($showPreview)
- <form wire:submit.prevent='saveVariables(true)' class="flex flex-col gap-2">
+ <form wire:submit='saveVariables(true)' class="flex flex-col gap-2">
<x-forms.textarea rows=25 class="whitespace-pre-wrap" label="Preview Environment Variables"
id="variablesPreview"></x-forms.textarea>
<x-forms.button type="submit" class="btn btn-primary">Save</x-forms.button>
diff --git a/resources/views/livewire/project/shared/environment-variable/show.blade.php b/resources/views/livewire/project/shared/environment-variable/show.blade.php
index 711093d95e..befdb1ca8c 100644
--- a/resources/views/livewire/project/shared/environment-variable/show.blade.php
+++ b/resources/views/livewire/project/shared/environment-variable/show.blade.php
@@ -5,7 +5,8 @@
class="font-bold text-warning">({{ $env->key }})</span>?</p>
</x-slot:modalBody>
</x-modal>
- <form wire:submit.prevent='submit' class="flex flex-col gap-2 p-4 m-2 border lg:items-center border-coolgray-300 lg:m-0 lg:p-0 lg:border-0 lg:flex-row">
+ <form wire:submit='submit'
+ class="flex flex-col gap-2 p-4 m-2 border lg:items-center border-coolgray-300 lg:m-0 lg:p-0 lg:border-0 lg:flex-row">
@if ($isLocked)
<svg class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
diff --git a/resources/views/livewire/project/shared/execute-container-command.blade.php b/resources/views/livewire/project/shared/execute-container-command.blade.php
index 610132022c..1f8fd692c2 100644
--- a/resources/views/livewire/project/shared/execute-container-command.blade.php
+++ b/resources/views/livewire/project/shared/execute-container-command.blade.php
@@ -2,6 +2,8 @@
@if ($type === 'application')
<h1>Execute Command</h1>
<livewire:project.application.heading :application="$resource" />
+ <h2 class="pt-4">Command Details</h2>
+ <div class="pb-2">Run any one-shot command inside a container.</div>
@elseif ($type === 'database')
<h1>Execute Command</h1>
<livewire:project.database.heading :database="$resource" />
@@ -9,7 +11,7 @@
<h2>Execute Command</h2>
@endif
@if (count($containers) > 0)
- <form class="flex flex-col gap-2 pt-4" wire:submit.prevent='runCommand'>
+ <form class="flex flex-col gap-2 pt-4" wire:submit='runCommand'>
<div class="flex gap-2">
<x-forms.input placeholder="ls -l" autofocus id="command" label="Command" required />
<x-forms.input id="workDir" label="Working directory" />
diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.php
index 77c147c5f1..4700bc353b 100644
--- a/resources/views/livewire/project/shared/get-logs.blade.php
+++ b/resources/views/livewire/project/shared/get-logs.blade.php
@@ -1,6 +1,6 @@
<div x-init="$wire.getLogs">
<div class="flex gap-2">
- <h4>Container: {{$container}}</h4>
+ <h4>Container: {{ $container }}</h4>
@if ($streamLogs)
<span wire:poll.2000ms='getLogs(true)' class="loading loading-xs text-warning loading-spinner"></span>
@endif
@@ -9,7 +9,7 @@
<x-forms.checkbox instantSave label="Stream Logs" id="streamLogs"></x-forms.checkbox>
<x-forms.checkbox instantSave label="Include Timestamps" id="showTimeStamps"></x-forms.checkbox>
</div>
- <form wire:submit.prevent='getLogs(true)' class="flex items-end gap-2">
+ <form wire:submit='getLogs(true)' class="flex items-end gap-2">
<x-forms.input label="Only Show Number of Lines" placeholder="1000" required id="numberOfLines"></x-forms.input>
<x-forms.button type="submit">Refresh</x-forms.button>
</form>
diff --git a/resources/views/livewire/project/shared/health-checks.blade.php b/resources/views/livewire/project/shared/health-checks.blade.php
index e2ae8879e7..e666bb6199 100644
--- a/resources/views/livewire/project/shared/health-checks.blade.php
+++ b/resources/views/livewire/project/shared/health-checks.blade.php
@@ -1,4 +1,4 @@
-<form wire:submit.prevent='submit' class="flex flex-col">
+<form wire:submit='submit' class="flex flex-col">
<div class="flex items-center gap-2">
<h2>Healthchecks</h2>
<x-forms.button type="submit">Save</x-forms.button>
diff --git a/resources/views/livewire/project/shared/logs.blade.php b/resources/views/livewire/project/shared/logs.blade.php
index 2b21f18a9e..728954ab68 100644
--- a/resources/views/livewire/project/shared/logs.blade.php
+++ b/resources/views/livewire/project/shared/logs.blade.php
@@ -1,4 +1,4 @@
-<x-layout>
+<div>
@if ($type === 'application')
<h1>Logs</h1>
<livewire:project.application.heading :application="$resource" />
@@ -28,8 +28,9 @@
</a>
</div>
<div class="flex-1 pl-8">
- <livewire:project.shared.get-logs :server="$server" :resource="$resource" :servicesubtype="$serviceSubType" :container="$container" />
+ <livewire:project.shared.get-logs :server="$server" :resource="$resource" :servicesubtype="$serviceSubType"
+ :container="$container" />
</div>
</div>
@endif
-</x-layout>
+</div>
diff --git a/resources/views/livewire/project/shared/resource-limits.blade.php b/resources/views/livewire/project/shared/resource-limits.blade.php
index 575a6d7345..0251604599 100644
--- a/resources/views/livewire/project/shared/resource-limits.blade.php
+++ b/resources/views/livewire/project/shared/resource-limits.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex items-center gap-2 ">
<h2>Resource Limits</h2>
<x-forms.button type='submit'>Save</x-forms.button>
diff --git a/resources/views/livewire/project/shared/storages/add.blade.php b/resources/views/livewire/project/shared/storages/add.blade.php
index 5282d9b05e..3c46e43fb0 100644
--- a/resources/views/livewire/project/shared/storages/add.blade.php
+++ b/resources/views/livewire/project/shared/storages/add.blade.php
@@ -1,5 +1,5 @@
<dialog id="newStorage" class="modal">
- <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='submit'>
+ <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
<h3 class="text-lg font-bold">Add Storage Volume</h3>
<x-forms.input placeholder="pv-name" id="name" label="Name" required />
<x-forms.input placeholder="/root" id="host_path" label="Source Path" />
diff --git a/resources/views/livewire/project/shared/storages/all.blade.php b/resources/views/livewire/project/shared/storages/all.blade.php
index dfd2064dc9..f68a898b3f 100644
--- a/resources/views/livewire/project/shared/storages/all.blade.php
+++ b/resources/views/livewire/project/shared/storages/all.blade.php
@@ -2,8 +2,8 @@
<div class="flex flex-col gap-4">
@foreach ($resource->persistentStorages as $storage)
@if ($resource->type() === 'service')
- <livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage" :isFirst="$loop->first"
- isReadOnly='true' />
+ <livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage"
+ :isFirst="$loop->first" isReadOnly='true' />
@else
<livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage" />
@endif
diff --git a/resources/views/livewire/project/shared/storages/show.blade.php b/resources/views/livewire/project/shared/storages/show.blade.php
index 401b03069c..4a804bf91c 100644
--- a/resources/views/livewire/project/shared/storages/show.blade.php
+++ b/resources/views/livewire/project/shared/storages/show.blade.php
@@ -7,7 +7,7 @@
</x-slot:modalBody>
</x-modal>
- <form wire:submit.prevent='submit' class="flex flex-col gap-2 xl:items-end xl:flex-row">
+ <form wire:submit='submit' class="flex flex-col gap-2 xl:items-end xl:flex-row">
@if ($isReadOnly)
@if ($isFirst)
<x-forms.input id="storage.name" label="Volume Name" required readonly />
diff --git a/resources/views/livewire/project/shared/webhooks.blade.php b/resources/views/livewire/project/shared/webhooks.blade.php
index 20f61b9f15..927674f50c 100644
--- a/resources/views/livewire/project/shared/webhooks.blade.php
+++ b/resources/views/livewire/project/shared/webhooks.blade.php
@@ -13,7 +13,7 @@
<div>
<h3>Manual Git Webhooks</h3>
@if ($githubManualWebhook && $gitlabManualWebhook)
- <form wire:submit.prevent='saveSecret' class="flex flex-col gap-2">
+ <form wire:submit='saveSecret' class="flex flex-col gap-2">
<div class="flex items-end gap-2">
<x-forms.input helper="Content Type in GitHub configuration could be json or form-urlencoded."
readonly label="GitHub" id="githubManualWebhook"></x-forms.input>
diff --git a/resources/views/livewire/run-command.blade.php b/resources/views/livewire/run-command.blade.php
index d190973dd3..ef985c13d6 100644
--- a/resources/views/livewire/run-command.blade.php
+++ b/resources/views/livewire/run-command.blade.php
@@ -1,5 +1,5 @@
<div>
- <form class="flex flex-col justify-center gap-2 xl:items-end xl:flex-row" wire:submit.prevent='runCommand'>
+ <form class="flex flex-col justify-center gap-2 xl:items-end xl:flex-row" wire:submit='runCommand'>
<x-forms.input placeholder="ls -l" autofocus id="command" label="Command" required />
<x-forms.select label="Server" id="server" required>
@foreach ($servers as $server)
diff --git a/resources/views/livewire/security/api-tokens.blade.php b/resources/views/livewire/security/api-tokens.blade.php
index eb1027c327..d697f38f7f 100644
--- a/resources/views/livewire/security/api-tokens.blade.php
+++ b/resources/views/livewire/security/api-tokens.blade.php
@@ -7,7 +7,7 @@
</div>
<h4>Create New Token</h4>
<span>Currently active team: <span class="text-warning">{{ session('currentTeam.name') }}</span></span>
- <form class="flex items-end gap-2 pt-4" wire:submit.prevent='addNewToken'>
+ <form class="flex items-end gap-2 pt-4" wire:submit='addNewToken'>
<x-forms.input required id="description" label="Description" />
<x-forms.button type="submit">Create New Token</x-forms.button>
</form>
diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php
index b95d0e9389..5575257291 100644
--- a/resources/views/livewire/server/form.blade.php
+++ b/resources/views/livewire/server/form.blade.php
@@ -5,7 +5,7 @@
running on.<br>Please think again.</p>
</x-slot:modalBody>
</x-modal>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex gap-2">
<h2>General</h2>
@if ($server->id === 0)
@@ -13,7 +13,6 @@
@else
<x-forms.button type="submit">Save</x-forms.button>
@endif
-
</div>
@if (!$server->isFunctional())
You can't use this server until it is validated.
@@ -56,7 +55,7 @@
@endif
{{-- <x-forms.checkbox instantSave type="checkbox" id="server.settings.is_swarm_manager"
label="Is it a Swarm Manager?" /> --}}
- {{-- <x-forms.checkbox instantSave type="checkbox" id="server.settings.is_swarm_worker"
+ {{-- <x-forms.checkbox instantSave type="checkbox" id="server.settings.is_swarm_worker"
label="Is it a Swarm Worker?" /> --}}
</div>
</div>
diff --git a/resources/views/livewire/server/log-drains.blade.php b/resources/views/livewire/server/log-drains.blade.php
index c452b171bd..9d8b1e1867 100644
--- a/resources/views/livewire/server/log-drains.blade.php
+++ b/resources/views/livewire/server/log-drains.blade.php
@@ -4,7 +4,7 @@
<div class="pb-4">Sends service logs to 3rd party tools.</div>
<div class="flex flex-col gap-4 pt-4">
<div class="p-4 border border-coolgray-500">
- <form wire:submit.prevent='submit("newrelic")' class="flex flex-col">
+ <form wire:submit='submit("newrelic")' class="flex flex-col">
<h3>New Relic</h3>
<div class="w-32">
<x-forms.checkbox instantSave='instantSave("newrelic")'
@@ -30,7 +30,7 @@
<x-forms.checkbox instantSave='instantSave("axiom")' id="server.settings.is_logdrain_axiom_enabled"
label="Enabled" />
</div>
- <form wire:submit.prevent='submit("axiom")' class="flex flex-col">
+ <form wire:submit='submit("axiom")' class="flex flex-col">
<div class="flex flex-col gap-4">
<div class="flex flex-col w-full gap-2 xl:flex-row">
<x-forms.input type="password" required id="server.settings.logdrain_axiom_api_key"
@@ -49,7 +49,7 @@
<x-forms.checkbox instantSave='instantSave("highlight")'
id="server.settings.is_logdrain_highlight_enabled" label="Enabled" />
</div>
- <form wire:submit.prevent='submit("highlight")' class="flex flex-col">
+ <form wire:submit='submit("highlight")' class="flex flex-col">
<div class="flex flex-col gap-4">
<div class="flex flex-col w-full gap-2 xl:flex-row">
<x-forms.input type="password" required id="server.settings.logdrain_highlight_project_id"
@@ -67,11 +67,11 @@
<x-forms.checkbox instantSave='instantSave("custom")' id="server.settings.is_logdrain_custom_enabled"
label="Enabled" />
</div>
- <form wire:submit.prevent='submit("custom")' class="flex flex-col">
+ <form wire:submit='submit("custom")' class="flex flex-col">
<div class="flex flex-col gap-4">
<x-forms.textarea rows="6" required id="server.settings.logdrain_custom_config"
label="Custom FluentBit Configuration" />
- <x-forms.textarea id="server.settings.logdrain_custom_config_parser"
+ <x-forms.textarea id="server.settings.logdrain_custom_config_parser"
label="Custom Parser Configuration" />
</div>
<div class="flex justify-end gap-4 pt-6">
diff --git a/resources/views/livewire/server/new/by-ip.blade.php b/resources/views/livewire/server/new/by-ip.blade.php
index 6ec358fdcb..c8247c50f3 100644
--- a/resources/views/livewire/server/new/by-ip.blade.php
+++ b/resources/views/livewire/server/new/by-ip.blade.php
@@ -4,7 +4,7 @@
@else
<h1>Create a new Server</h1>
<div class="subtitle">Servers are the main blocks of your infrastructure.</div>
- <form class="flex flex-col gap-2" wire:submit.prevent='submit'>
+ <form class="flex flex-col gap-2" wire:submit='submit'>
<div class="flex gap-2">
<x-forms.input id="name" label="Name" required />
<x-forms.input id="description" label="Description" />
diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.php
index 3c35488e24..a5944fc1a8 100644
--- a/resources/views/livewire/server/proxy.blade.php
+++ b/resources/views/livewire/server/proxy.blade.php
@@ -2,7 +2,7 @@
@if (data_get($server, 'proxy.type'))
<div x-init="$wire.loadProxyConfiguration">
@if ($selectedProxy === 'TRAEFIK_V2')
- <form wire:submit.prevent='submit'>
+ <form wire:submit='submit'>
<div class="flex items-center gap-2">
<h2>Configuration</h2>
<x-forms.button type="submit">Save</x-forms.button>
@@ -27,7 +27,7 @@
@if ($proxy_settings)
<div class="flex flex-col gap-2 pt-2">
<x-forms.textarea label="Configuration file: traefik.conf" name="proxy_settings"
- wire:model.defer="proxy_settings" rows="30" />
+ wire:model="proxy_settings" rows="30" />
<x-forms.button wire:click.prevent="reset_proxy_configuration">
Reset configuration to default
</x-forms.button>
diff --git a/resources/views/livewire/server/show-private-key.blade.php b/resources/views/livewire/server/show-private-key.blade.php
index 498129f00e..a9bcde0bc0 100644
--- a/resources/views/livewire/server/show-private-key.blade.php
+++ b/resources/views/livewire/server/show-private-key.blade.php
@@ -13,7 +13,8 @@
@if (data_get($server, 'privateKey.uuid'))
<div>
Currently attached Private Key:
- <a href="{{ route('security.private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
+ <a
+ href="{{ route('security.private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
<button class="text-white btn-link">{{ data_get($server, 'privateKey.name') }}</button>
</a>
</div>
diff --git a/resources/views/livewire/settings/backup.blade.php b/resources/views/livewire/settings/backup.blade.php
index 3b050bfb55..7dc1dadd39 100644
--- a/resources/views/livewire/settings/backup.blade.php
+++ b/resources/views/livewire/settings/backup.blade.php
@@ -22,7 +22,7 @@
<x-forms.input type="password" label="Password" readonly id="database.postgres_password" />
</div>
</div>
- <livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database,'status')" />
+ <livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database, 'status')" />
@else
To configure automatic backup for your Coolify instance, you first need to add as a database resource
into Coolify.
diff --git a/resources/views/livewire/settings/configuration.blade.php b/resources/views/livewire/settings/configuration.blade.php
index 752c8efb2d..2a31e840ac 100644
--- a/resources/views/livewire/settings/configuration.blade.php
+++ b/resources/views/livewire/settings/configuration.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex items-center gap-2">
<h2>Configuration</h2>
<x-forms.button type="submit">
@@ -24,12 +24,13 @@
<x-forms.checkbox instantSave id="is_auto_update_enabled" label="Auto Update Coolify" />
<x-forms.checkbox instantSave id="is_registration_enabled" label="Registration Allowed" />
<x-forms.checkbox instantSave id="do_not_track" label="Do Not Track" />
- @if($next_channel)
- <x-forms.checkbox instantSave helper="Do not recommended, only if you like to live on the edge."
- id="next_channel" label="Enable pre-release (early) updates" />
- @else
- <x-forms.checkbox disabled instantSave helper="Currently disabled. Do not recommended, only if you like to live on the edge."
- id="next_channel" label="Enable pre-release (early) updates" />
- @endif
+ @if ($next_channel)
+ <x-forms.checkbox instantSave helper="Do not recommended, only if you like to live on the edge."
+ id="next_channel" label="Enable pre-release (early) updates" />
+ @else
+ <x-forms.checkbox disabled instantSave
+ helper="Currently disabled. Do not recommended, only if you like to live on the edge." id="next_channel"
+ label="Enable pre-release (early) updates" />
+ @endif
</div>
</div>
diff --git a/resources/views/livewire/settings/email.blade.php b/resources/views/livewire/settings/email.blade.php
index 3758ca3739..22bef72195 100644
--- a/resources/views/livewire/settings/email.blade.php
+++ b/resources/views/livewire/settings/email.blade.php
@@ -1,6 +1,6 @@
<div>
<dialog id="sendTestEmail" class="modal">
- <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='submit'>
+ <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
<x-forms.input placeholder="[email protected]" id="emails" label="Recepients" required />
<x-forms.button onclick="sendTestEmail.close()" wire:click="sendTestNotification">
Send Email
@@ -14,7 +14,7 @@
<h2>Transactional Email</h2>
</div>
<div class="pb-4 ">Email settings for password resets, invitations, shared with Pro+ subscribers etc.</div>
- <form wire:submit.prevent='submitFromFields' class="pb-4">
+ <form wire:submit='submitFromFields' class="pb-4">
<div class="flex flex-col items-end w-full gap-2 xl:flex-row">
<x-forms.input required id="settings.smtp_from_name" helper="Name used in emails." label="From Name" />
<x-forms.input required id="settings.smtp_from_address" helper="Email address used in emails."
@@ -38,7 +38,7 @@
<div class="w-32">
<x-forms.checkbox instantSave id="settings.smtp_enabled" label="Enabled" />
</div>
- <form wire:submit.prevent='submit' class="flex flex-col">
+ <form wire:submit='submit' class="flex flex-col">
<div class="flex flex-col gap-4">
<div class="flex flex-col w-full gap-2 xl:flex-row">
<x-forms.input required id="settings.smtp_host" placeholder="smtp.mailgun.org" label="Host" />
@@ -65,7 +65,7 @@
<div class="w-32">
<x-forms.checkbox instantSave='instantSaveResend' id="settings.resend_enabled" label="Enabled" />
</div>
- <form wire:submit.prevent='submitResend' class="flex flex-col">
+ <form wire:submit='submitResend' class="flex flex-col">
<div class="flex flex-col gap-4">
<div class="flex flex-col w-full gap-2 xl:flex-row">
<x-forms.input type="password" id="settings.resend_api_key" placeholder="API key" required
diff --git a/resources/views/livewire/source/github/change.blade.php b/resources/views/livewire/source/github/change.blade.php
index 1501685ca4..fdf52e0a66 100644
--- a/resources/views/livewire/source/github/change.blade.php
+++ b/resources/views/livewire/source/github/change.blade.php
@@ -5,12 +5,12 @@
</x-slot:modalBody>
</x-modal>
@if (data_get($github_app, 'app_id'))
- <form wire:submit.prevent='submit'>
+ <form wire:submit='submit'>
<div class="flex items-center gap-2">
<h1>GitHub App</h1>
<div class="flex gap-2">
@if (data_get($github_app, 'installation_id'))
- <x-forms.button type="submit">Save</x-forms.button>
+ <x-forms.button type="submit">Save</x-forms.button>
<a href="{{ get_installation_path($github_app) }}">
<x-forms.button>
Update Repositories
@@ -91,8 +91,8 @@
<span>You must complete this step before you can use this source!</span>
</div>
<div class="flex flex-col">
- <h2 >Register a GitHub App</h2>
- <div >You need to register a GitHub App before using this source.</div>
+ <h2>Register a GitHub App</h2>
+ <div>You need to register a GitHub App before using this source.</div>
<div class="py-10">
@if (!isCloud() || isDev())
<div class="flex items-end gap-2">
diff --git a/resources/views/livewire/source/github/create.blade.php b/resources/views/livewire/source/github/create.blade.php
index 57897ce27f..aadfe4d252 100644
--- a/resources/views/livewire/source/github/create.blade.php
+++ b/resources/views/livewire/source/github/create.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='createGitHubApp' class="flex flex-col">
+ <form wire:submit='createGitHubApp' class="flex flex-col">
<h2>GitHub App</h2>
<div class="flex gap-2">
<x-forms.input id="name" label="Name" required />
diff --git a/resources/views/livewire/subscription/pricing-plans.blade.php b/resources/views/livewire/subscription/pricing-plans.blade.php
index cda7df4911..92644347b8 100644
--- a/resources/views/livewire/subscription/pricing-plans.blade.php
+++ b/resources/views/livewire/subscription/pricing-plans.blade.php
@@ -1,19 +1,19 @@
<x-pricing-plans>
@if (config('subscription.provider') === 'stripe')
<x-slot:basic>
- <x-forms.button x-show="selected === 'monthly'" x-cloak aria-describedby="tier-basic"
- class="w-full h-10 buyme" wire:click="subscribeStripe('basic-monthly')">
+ <x-forms.button x-show="selected === 'monthly'" x-cloak aria-describedby="tier-basic" class="w-full h-10 buyme"
+ wire:click="subscribeStripe('basic-monthly')">
{{ $isTrial ? 'Start Trial' : 'Subscribe' }}
</x-forms.button>
- <x-forms.button x-show="selected === 'yearly'" x-cloak aria-describedby="tier-basic"
- class="w-full h-10 buyme" wire:click="subscribeStripe('basic-yearly')">
+ <x-forms.button x-show="selected === 'yearly'" x-cloak aria-describedby="tier-basic" class="w-full h-10 buyme"
+ wire:click="subscribeStripe('basic-yearly')">
{{ $isTrial ? 'Start Trial' : 'Subscribe' }}
</x-forms.button>
</x-slot:basic>
<x-slot:pro>
- <x-forms.button x-show="selected === 'monthly'" x-cloak aria-describedby="tier-pro"
- class="w-full h-10 buyme" wire:click="subscribeStripe('pro-monthly')">
+ <x-forms.button x-show="selected === 'monthly'" x-cloak aria-describedby="tier-pro" class="w-full h-10 buyme"
+ wire:click="subscribeStripe('pro-monthly')">
{{ $isTrial ? 'Start Trial' : 'Subscribe' }}
</x-forms.button>
@@ -23,12 +23,14 @@
</x-slot:pro>
<x-slot:ultimate>
<x-forms.button x-show="selected === 'monthly'" x-cloak aria-describedby="tier-ultimate"
- class="w-full h-10 buyme"><a class="text-white hover:no-underline" href="{{ config('coolify.docs') }}" target="_blank">
+ class="w-full h-10 buyme"><a class="text-white hover:no-underline" href="{{ config('coolify.docs') }}"
+ target="_blank">
Contact Us</a>
</x-forms.button>
<x-forms.button x-show="selected === 'yearly'" x-cloak aria-describedby="tier-ultimate"
- class="w-full h-10 buyme"><a class="text-white hover:no-underline" href="{{ config('coolify.docs') }}" target="_blank">
+ class="w-full h-10 buyme"><a class="text-white hover:no-underline" href="{{ config('coolify.docs') }}"
+ target="_blank">
Contact Us</a>
</x-forms.button>
</x-slot:ultimate>
diff --git a/resources/views/livewire/team/create.blade.php b/resources/views/livewire/team/create.blade.php
index f50e360f79..e90ae30408 100644
--- a/resources/views/livewire/team/create.blade.php
+++ b/resources/views/livewire/team/create.blade.php
@@ -1,4 +1,4 @@
-<form class="flex flex-col gap-2" wire:submit.prevent='submit'>
+<form class="flex flex-col gap-2" wire:submit='submit'>
<x-forms.input autofocus id="name" label="Name" required />
<x-forms.input id="description" label="Description" />
<x-forms.button type="submit">
diff --git a/resources/views/livewire/team/form.blade.php b/resources/views/livewire/team/form.blade.php
index c8f7b849ad..c484cb3588 100644
--- a/resources/views/livewire/team/form.blade.php
+++ b/resources/views/livewire/team/form.blade.php
@@ -1,4 +1,4 @@
-<form class="flex flex-col gap-2 pb-6" wire:submit.prevent='submit'>
+<form class="flex flex-col gap-2 pb-6" wire:submit='submit'>
<div class="flex items-end gap-2">
<h2>General</h2>
<x-forms.button type="submit">
diff --git a/resources/views/livewire/team/invite-link.blade.php b/resources/views/livewire/team/invite-link.blade.php
index fe426b6525..f35af72ff6 100644
--- a/resources/views/livewire/team/invite-link.blade.php
+++ b/resources/views/livewire/team/invite-link.blade.php
@@ -1,5 +1,5 @@
<div>
- <form wire:submit.prevent='viaLink' class="flex items-center gap-2">
+ <form wire:submit='viaLink' class="flex items-center gap-2">
<x-forms.input id="email" type="email" name="email" placeholder="Email" />
<x-forms.select id="role" name="role">
<option value="admin">Admin</option>
diff --git a/resources/views/livewire/team/storage/create.blade.php b/resources/views/livewire/team/storage/create.blade.php
index 1e970e1ab5..737fa6b6f5 100644
--- a/resources/views/livewire/team/storage/create.blade.php
+++ b/resources/views/livewire/team/storage/create.blade.php
@@ -1,7 +1,7 @@
<div>
<h1>Create a new S3 Storage</h1>
<div class="subtitle">S3 Storage used to save backups / files</div>
- <form class="flex flex-col gap-2" wire:submit.prevent='submit'>
+ <form class="flex flex-col gap-2" wire:submit='submit'>
<div class="flex gap-2">
<x-forms.input label="Name" id="name" />
<x-forms.input label="Description" id="description" />
diff --git a/resources/views/livewire/team/storage/form.blade.php b/resources/views/livewire/team/storage/form.blade.php
index 5e7c6a7d87..c014324cd8 100644
--- a/resources/views/livewire/team/storage/form.blade.php
+++ b/resources/views/livewire/team/storage/form.blade.php
@@ -5,7 +5,7 @@
</p>
</x-slot:modalBody>
</x-modal>
- <form class="flex flex-col gap-2 pb-6" wire:submit.prevent='submit'>
+ <form class="flex flex-col gap-2 pb-6" wire:submit='submit'>
<div class="flex items-start gap-2">
<div class="pb-4">
<h2>Storage Details</h2>
diff --git a/resources/views/livewire/waitlist/index.blade.php b/resources/views/livewire/waitlist/index.blade.php
index 833193b586..bfbe9a255f 100644
--- a/resources/views/livewire/waitlist/index.blade.php
+++ b/resources/views/livewire/waitlist/index.blade.php
@@ -19,17 +19,19 @@
</svg>
</h2>
</div>
- <form class="flex items-end gap-2" wire:submit.prevent='submit'>
+ <form class="flex items-end gap-2" wire:submit='submit'>
<x-forms.input id="email" type="email" label="Email" placeholder="[email protected]" />
<x-forms.button type="submit">Join Waitlist</x-forms.button>
</form>
<div>People waiting in the line: <span class="font-bold text-warning">{{ $waitingInLine }}</div>
<div>Already using Coolify Cloud: <span class="font-bold text-warning">{{ $users }}</div>
<div class="pt-8">
- This is a paid & hosted version of Coolify.<br> See the pricing <a href="https://coolify.io/pricing" class="text-warning">here</a>.
+ This is a paid & hosted version of Coolify.<br> See the pricing <a href="https://coolify.io/pricing"
+ class="text-warning">here</a>.
</div>
<div class="pt-4">
- If you are looking for the self-hosted version go <a href="https://coolify.io" class="text-warning">here</a>.
+ If you are looking for the self-hosted version go <a href="https://coolify.io"
+ class="text-warning">here</a>.
</div>
</div>
</div>
diff --git a/resources/views/project/resources.blade.php b/resources/views/project/resources.blade.php
index 8e97bf3240..ea15f4d153 100644
--- a/resources/views/project/resources.blade.php
+++ b/resources/views/project/resources.blade.php
@@ -3,13 +3,13 @@
<div class="flex items-center gap-2">
<h1>Resources</h1>
@if ($environment->isEmpty())
- <a class="font-normal text-white normal-case border-none rounded hover:no-underline btn btn-primary btn-sm no-animation"
+ <a wire:navigate class="font-normal text-white normal-case border-none rounded hover:no-underline btn btn-primary btn-sm no-animation"
href="{{ route('project.clone', ['project_uuid' => data_get($project, 'uuid'), 'environment_name' => request()->route('environment_name')]) }}">
Clone
</a>
<livewire:project.delete-environment :environment_id="$environment->id" />
@else
- <a href="{{ route('project.resources.new', ['project_uuid' => request()->route('project_uuid'), 'environment_name' => request()->route('environment_name')]) }} "
+ <a wire:navigate href="{{ route('project.resources.new', ['project_uuid' => request()->route('project_uuid'), 'environment_name' => request()->route('environment_name')]) }} "
class="font-normal text-white normal-case border-none rounded hover:no-underline btn btn-primary btn-sm no-animation">+
New</a>
<a class="font-normal text-white normal-case border-none rounded hover:no-underline btn btn-primary btn-sm no-animation"
@@ -46,7 +46,7 @@
@endif
<div class="grid gap-2 lg:grid-cols-2">
@foreach ($environment->applications->sortBy('name') as $application)
- <a class="relative box group"
+ <a wire:navigate class="relative box group"
href="{{ route('project.application.configuration', [$project->uuid, $environment->name, $application->uuid]) }}">
<div class="flex flex-col mx-6">
<div class="font-bold text-white">{{ $application->name }}</div>
@@ -62,7 +62,7 @@
</a>
@endforeach
@foreach ($environment->databases()->sortBy('name') as $database)
- <a class="relative box group"
+ <a wire:navigate class="relative box group"
href="{{ route('project.database.configuration', [$project->uuid, $environment->name, $database->uuid]) }}">
<div class="flex flex-col mx-6">
<div class="font-bold text-white">{{ $database->name }}</div>
@@ -78,7 +78,7 @@
</a>
@endforeach
@foreach ($environment->services->sortBy('name') as $service)
- <a class="relative box group"
+ <a wire:navigate class="relative box group"
href="{{ route('project.service.configuration', [$project->uuid, $environment->name, $service->uuid]) }}">
<div class="flex flex-col mx-6">
<div class="font-bold text-white">{{ $service->name }}</div>
diff --git a/resources/views/project/show.blade.php b/resources/views/project/show.blade.php
index ba09fdee13..c911ee7c75 100644
--- a/resources/views/project/show.blade.php
+++ b/resources/views/project/show.blade.php
@@ -10,7 +10,8 @@
<div class="text-xs truncate subtitle lg:text-sm">{{ $project->name }}</div>
<div class="grid gap-2 lg:grid-cols-2">
@forelse ($project->environments as $environment)
- <a class="items-center justify-center font-bold box" href="{{ route('project.resources', [$project->uuid, $environment->name]) }}">
+ <a wire:navigate class="items-center justify-center font-bold box"
+ href="{{ route('project.resources', [$project->uuid, $environment->name]) }}">
{{ $environment->name }}
</a>
@empty
diff --git a/resources/views/projects.blade.php b/resources/views/projects.blade.php
index 6ae387bb06..5d0a7555b9 100644
--- a/resources/views/projects.blade.php
+++ b/resources/views/projects.blade.php
@@ -17,14 +17,14 @@
@forelse ($projects as $project)
<div class="gap-2 border border-transparent cursor-pointer box group" x-data
x-on:click="goto('{{ $project->uuid }}')">
- <a class="flex flex-col flex-1 mx-6 hover:no-underline"
+ <a wire:navigate class="flex flex-col flex-1 mx-6 hover:no-underline"
href="{{ route('project.show', ['project_uuid' => data_get($project, 'uuid')]) }}">
<div class="font-bold text-white">{{ $project->name }}</div>
<div class="description ">
{{ $project->description }}</div>
</a>
<div class="flex items-center">
- <a class="mx-4 rounded group-hover:text-white"
+ <a wire:navigate class="mx-4 rounded group-hover:text-white"
href="{{ route('project.edit', ['project_uuid' => data_get($project, 'uuid')]) }}">
<svg xmlns="http://www.w3.org/2000/svg" class="icon hover:text-warning" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
diff --git a/resources/views/security/index.blade.php b/resources/views/security/index.blade.php
index aed0712e1c..05d2ac0fbe 100644
--- a/resources/views/security/index.blade.php
+++ b/resources/views/security/index.blade.php
@@ -1,7 +1,6 @@
<x-layout>
<x-security.navbar />
- <a class="text-center hover:no-underline group"
- href="{{ route('security.private-key.index')}}">
+ <a class="text-center hover:no-underline group" href="{{ route('security.private-key.index') }}">
<div class="group-hover:text-white">
<div>Private Keys</div>
</div>
diff --git a/resources/views/security/private-key/index.blade.php b/resources/views/security/private-key/index.blade.php
index 207c6a2707..195a27df1f 100644
--- a/resources/views/security/private-key/index.blade.php
+++ b/resources/views/security/private-key/index.blade.php
@@ -2,7 +2,7 @@
<x-security.navbar />
<div class="flex gap-2">
<h2 class="pb-4">Private Keys</h2>
- <a href="{{ route('security.private-key.new') }}"><x-forms.button>+ Add</x-forms.button></a>
+ <a href="{{ route('security.private-key.new') }}"><x-forms.button>+ Add</x-forms.button></a>
</div>
<div class="grid gap-2 lg:grid-cols-2">
@forelse ($privateKeys as $key)
diff --git a/resources/views/settings/configuration.blade.php b/resources/views/settings/configuration.blade.php
index b11183cef2..bb17d4a469 100644
--- a/resources/views/settings/configuration.blade.php
+++ b/resources/views/settings/configuration.blade.php
@@ -7,7 +7,8 @@
<a :class="activeTab === 'backup' && 'text-white'"
@click.prevent="activeTab = 'backup'; window.location.hash = 'backup'" href="#">Instance Backup</a>
<a :class="activeTab === 'smtp' && 'text-white'"
- @click.prevent="activeTab = 'smtp'; window.location.hash = 'smtp'" href="#">Transactional Email</a>
+ @click.prevent="activeTab = 'smtp'; window.location.hash = 'smtp'" href="#">Transactional
+ Email</a>
</div>
<div class="w-full pl-8">
<div x-cloak x-show="activeTab === 'general'" class="h-full">
diff --git a/resources/views/team/index.blade.php b/resources/views/team/index.blade.php
index d0b2d0a65f..fa732010e3 100644
--- a/resources/views/team/index.blade.php
+++ b/resources/views/team/index.blade.php
@@ -4,8 +4,7 @@
@if (isCloud())
<div class="pb-8">
<h2>Subscription</h2>
- @if (data_get(currentTeam(),
- 'subscription'))
+ @if (data_get(currentTeam(), 'subscription'))
<livewire:subscription.actions />
@else
<x-forms.button class="mt-4"><a class="text-white hover:no-underline"
diff --git a/resources/views/team/notifications.blade.php b/resources/views/team/notifications.blade.php
index c25679d7da..a86db9ad2e 100644
--- a/resources/views/team/notifications.blade.php
+++ b/resources/views/team/notifications.blade.php
@@ -9,14 +9,13 @@
@click.prevent="activeTab = 'telegram'; window.location.hash = 'telegram'" href="#">Telegram</a>
<a :class="activeTab === 'discord' && 'text-white'"
@click.prevent="activeTab = 'discord'; window.location.hash = 'discord'" href="#">Discord</a>
-
</div>
<div class="w-full pl-8">
<div x-cloak x-show="activeTab === 'email'" class="h-full">
<livewire:notifications.email-settings />
</div>
<div x-cloak x-show="activeTab === 'telegram'" class="h-full">
- <livewire:notifications.telegram-settings />
+ <livewire:notifications.telegram-settings />
</div>
<div x-cloak x-show="activeTab === 'discord'">
<livewire:notifications.discord-settings />
diff --git a/resources/views/vendor/livewire-ui-modal/modal.blade.php b/resources/views/vendor/livewire-ui-modal/modal.blade.php
index 984ee1cd12..36e32406ff 100644
--- a/resources/views/vendor/livewire-ui-modal/modal.blade.php
+++ b/resources/views/vendor/livewire-ui-modal/modal.blade.php
@@ -1,52 +1,39 @@
<div>
@isset($jsPath)
- <script>{!! file_get_contents($jsPath) !!}</script>
+ <script>
+ {!! file_get_contents($jsPath) !!}
+ </script>
@endisset
@isset($cssPath)
- <style>{!! file_get_contents($cssPath) !!}</style>
+ <style>
+ {!! file_get_contents($cssPath) !!}
+ </style>
@endisset
- <div
- x-data="LivewireUIModal()"
- x-init="init()"
- x-on:close.stop="setShowPropertyTo(false)"
- x-on:keydown.escape.window="closeModalOnEscape()"
- x-show="show"
- class="fixed inset-0 z-40 overflow-y-auto"
- style="display: none;"
- >
+ <div x-data="LivewireUIModal()" x-init="init()" x-on:close.stop="setShowPropertyTo(false)"
+ x-on:keydown.escape.window="closeModalOnEscape()" x-show="show" class="fixed inset-0 z-40 overflow-y-auto"
+ style="display: none;">
<div class="flex items-end justify-center px-4 pt-4 pb-10 text-center sm:block sm:p-0">
- <div
- x-show="show"
- x-on:click="closeModalOnClickAway()"
- x-transition:enter="ease-out duration-300"
- x-transition:enter-start="opacity-0"
- x-transition:enter-end="opacity-100"
- x-transition:leave="ease-in duration-200"
- x-transition:leave-start="opacity-100"
- x-transition:leave-end="opacity-0"
- class="fixed inset-0 transition-all transform"
- >
+ <div x-show="show" x-on:click="closeModalOnClickAway()" x-transition:enter="ease-out duration-300"
+ x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
+ x-transition:leave="ease-in duration-200" x-transition:leave-start="opacity-100"
+ x-transition:leave-end="opacity-0" class="fixed inset-0 transition-all transform">
<div class="absolute inset-0 bg-black opacity-70"></div>
</div>
{{-- <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span> --}}
- <div
- x-show="show && showActiveComponent"
- x-transition:enter="ease-out duration-200"
- x-transition:enter-start="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
- x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100"
- x-transition:leave="ease-in duration-200"
- x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100"
- x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
- class="w-full overflow-hidden text-left align-bottom transition-all transform sm:my-8 sm:align-middle sm:w-full"
- id="modal-container"
- x-trap.noscroll.inert="show && showActiveComponent"
- aria-modal="true"
- >
+ <div x-show="show && showActiveComponent" x-transition:enter="ease-out duration-200"
+ x-transition:enter-start="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
+ x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100"
+ x-transition:leave="ease-in duration-200"
+ x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100"
+ x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
+ class="w-full overflow-hidden text-left align-bottom transition-all transform sm:my-8 sm:align-middle sm:w-full"
+ id="modal-container" x-trap.noscroll.inert="show && showActiveComponent" aria-modal="true">
@forelse($components as $id => $component)
- <div class="sm:mx-20" x-show.immediate="activeComponent == '{{ $id }}'" x-ref="{{ $id }}" wire:key="{{ $id }}">
+ <div class="sm:mx-20" x-show.immediate="activeComponent == '{{ $id }}'"
+ x-ref="{{ $id }}" wire:key="{{ $id }}">
@livewire($component['name'], $component['attributes'], key($id))
</div>
@empty
diff --git a/resources/views/vendor/mail/html/themes/default.css b/resources/views/vendor/mail/html/themes/default.css
index 03d8116532..8dd77f51bd 100644
--- a/resources/views/vendor/mail/html/themes/default.css
+++ b/resources/views/vendor/mail/html/themes/default.css
@@ -3,8 +3,9 @@
body,
body *:not(html):not(style):not(br):not(tr):not(code) {
box-sizing: border-box;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
+ Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
+ "Segoe UI Symbol";
position: relative;
}
diff --git a/routes/web.php b/routes/web.php
index 13b36c2568..8578282b91 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -5,27 +5,27 @@ use App\Http\Controllers\Controller;
use App\Http\Controllers\DatabaseController;
use App\Http\Controllers\MagicController;
use App\Http\Controllers\ProjectController;
-use App\Http\Livewire\Project\Application\Configuration as ApplicationConfiguration;
-use App\Http\Livewire\Boarding\Index as BoardingIndex;
-use App\Http\Livewire\Project\Service\Index as ServiceIndex;
-use App\Http\Livewire\Project\Service\Show as ServiceShow;
-use App\Http\Livewire\Dev\Compose as Compose;
-use App\Http\Livewire\Dashboard;
-use App\Http\Livewire\Project\CloneProject;
-use App\Http\Livewire\Project\Shared\ExecuteContainerCommand;
-use App\Http\Livewire\Project\Shared\Logs;
-use App\Http\Livewire\Security\ApiTokens;
-use App\Http\Livewire\Server\All;
-use App\Http\Livewire\Server\Create;
-use App\Http\Livewire\Server\Destination\Show as DestinationShow;
-use App\Http\Livewire\Server\LogDrains;
-use App\Http\Livewire\Server\PrivateKey\Show as PrivateKeyShow;
-use App\Http\Livewire\Server\Proxy\Show as ProxyShow;
-use App\Http\Livewire\Server\Proxy\Logs as ProxyLogs;
-use App\Http\Livewire\Server\Show;
-use App\Http\Livewire\Source\Github\Change as GitHubChange;
-use App\Http\Livewire\Subscription\Show as SubscriptionShow;
-use App\Http\Livewire\Waitlist\Index as WaitlistIndex;
+use App\Livewire\Project\Application\Configuration as ApplicationConfiguration;
+use App\Livewire\Boarding\Index as BoardingIndex;
+use App\Livewire\Project\Service\Index as ServiceIndex;
+use App\Livewire\Project\Service\Show as ServiceShow;
+use App\Livewire\Dev\Compose as Compose;
+use App\Livewire\Dashboard;
+use App\Livewire\Project\CloneProject;
+use App\Livewire\Project\Shared\ExecuteContainerCommand;
+use App\Livewire\Project\Shared\Logs;
+use App\Livewire\Security\ApiTokens;
+use App\Livewire\Server\All;
+use App\Livewire\Server\Create;
+use App\Livewire\Server\Destination\Show as DestinationShow;
+use App\Livewire\Server\LogDrains;
+use App\Livewire\Server\PrivateKey\Show as PrivateKeyShow;
+use App\Livewire\Server\Proxy\Show as ProxyShow;
+use App\Livewire\Server\Proxy\Logs as ProxyLogs;
+use App\Livewire\Server\Show;
+use App\Livewire\Source\Github\Change as GitHubChange;
+use App\Livewire\Subscription\Show as SubscriptionShow;
+use App\Livewire\Waitlist\Index as WaitlistIndex;
use App\Models\GitlabApp;
use App\Models\PrivateKey;
use App\Models\Server;