mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-28 18:14:35 -05:00
Integrates Valkey as a new standalone database type. This includes adding the necessary model, updating actions to handle Valkey instances, and documenting the integration process.
49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Livewire\Project\Shared;
|
|
|
|
use App\Models\Application;
|
|
use App\Models\Service;
|
|
use App\Models\StandaloneClickhouse;
|
|
use App\Models\StandaloneDragonfly;
|
|
use App\Models\StandaloneKeydb;
|
|
use App\Models\StandaloneMariadb;
|
|
use App\Models\StandaloneMongodb;
|
|
use App\Models\StandaloneMysql;
|
|
use App\Models\StandalonePostgresql;
|
|
use App\Models\StandaloneRedis;
|
|
use App\Models\StandaloneValkey;
|
|
use Livewire\Component;
|
|
|
|
class ConfigurationChecker extends Component
|
|
{
|
|
public bool $isConfigurationChanged = false;
|
|
|
|
public Application|Service|StandaloneRedis|StandaloneValkey|StandalonePostgresql|StandaloneMongodb|StandaloneMysql|StandaloneMariadb|StandaloneKeydb|StandaloneDragonfly|StandaloneClickhouse $resource;
|
|
|
|
public function getListeners()
|
|
{
|
|
$teamId = auth()->user()->currentTeam()->id;
|
|
|
|
return [
|
|
"echo-private:team.{$teamId},ApplicationConfigurationChanged" => 'configurationChanged',
|
|
'configurationChanged' => 'configurationChanged',
|
|
];
|
|
}
|
|
|
|
public function mount()
|
|
{
|
|
$this->configurationChanged();
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.project.shared.configuration-checker');
|
|
}
|
|
|
|
public function configurationChanged()
|
|
{
|
|
$this->isConfigurationChanged = $this->resource->isConfigurationChanged();
|
|
}
|
|
}
|