Merge branch 'next' into persist-name-on-failed-submit-2
This commit is contained in:
commit
ef98bd107f
@ -202,7 +202,7 @@ public function manual(Request $request)
|
|||||||
]);
|
]);
|
||||||
ray('Preview deployments disabled for ' . $application->name);
|
ray('Preview deployments disabled for ' . $application->name);
|
||||||
}
|
}
|
||||||
} else if ($action === 'closed' || $action === 'close') {
|
} else if ($action === 'closed' || $action === 'close' || $action === 'merge') {
|
||||||
$found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();
|
$found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();
|
||||||
if ($found) {
|
if ($found) {
|
||||||
$found->delete();
|
$found->delete();
|
||||||
|
@ -763,7 +763,7 @@ private function save_environment_variables()
|
|||||||
if ($env->version === '4.0.0-beta.239') {
|
if ($env->version === '4.0.0-beta.239') {
|
||||||
$real_value = $env->real_value;
|
$real_value = $env->real_value;
|
||||||
} else {
|
} else {
|
||||||
if ($env->is_literal) {
|
if ($env->is_literal || $env->is_multiline) {
|
||||||
$real_value = '\'' . $real_value . '\'';
|
$real_value = '\'' . $real_value . '\'';
|
||||||
} else {
|
} else {
|
||||||
$real_value = escapeEnvVariables($env->real_value);
|
$real_value = escapeEnvVariables($env->real_value);
|
||||||
@ -804,10 +804,11 @@ private function save_environment_variables()
|
|||||||
if ($env->version === '4.0.0-beta.239') {
|
if ($env->version === '4.0.0-beta.239') {
|
||||||
$real_value = $env->real_value;
|
$real_value = $env->real_value;
|
||||||
} else {
|
} else {
|
||||||
if ($env->is_literal) {
|
if ($env->is_literal || $env->is_multiline) {
|
||||||
$real_value = '\'' . $real_value . '\'';
|
$real_value = '\'' . $real_value . '\'';
|
||||||
} else {
|
} else {
|
||||||
$real_value = escapeEnvVariables($env->real_value);
|
$real_value = escapeEnvVariables($env->real_value);
|
||||||
|
ray($real_value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$envs->push($env->key . '=' . $real_value);
|
$envs->push($env->key . '=' . $real_value);
|
||||||
@ -1948,11 +1949,17 @@ private function generate_build_env_variables()
|
|||||||
if ($this->pull_request_id === 0) {
|
if ($this->pull_request_id === 0) {
|
||||||
foreach ($this->application->build_environment_variables as $env) {
|
foreach ($this->application->build_environment_variables as $env) {
|
||||||
$value = escapeshellarg($env->real_value);
|
$value = escapeshellarg($env->real_value);
|
||||||
|
if (str($value)->contains("\n") && data_get($env, 'is_multiline') === true) {
|
||||||
|
$value = str_replace("\n", "\\\n", $value);
|
||||||
|
}
|
||||||
$this->build_args->push("--build-arg {$env->key}={$value}");
|
$this->build_args->push("--build-arg {$env->key}={$value}");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
foreach ($this->application->build_environment_variables_preview as $env) {
|
foreach ($this->application->build_environment_variables_preview as $env) {
|
||||||
$value = escapeshellarg($env->real_value);
|
$value = escapeshellarg($env->real_value);
|
||||||
|
if (str($value)->contains("\n") && data_get($env, 'is_multiline') === true) {
|
||||||
|
$value = str_replace("\n", "\\\n", $value);
|
||||||
|
}
|
||||||
$this->build_args->push("--build-arg {$env->key}={$value}");
|
$this->build_args->push("--build-arg {$env->key}={$value}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1968,10 +1975,20 @@ private function add_build_env_variables_to_dockerfile()
|
|||||||
$dockerfile = collect(Str::of($this->saved_outputs->get('dockerfile'))->trim()->explode("\n"));
|
$dockerfile = collect(Str::of($this->saved_outputs->get('dockerfile'))->trim()->explode("\n"));
|
||||||
if ($this->pull_request_id === 0) {
|
if ($this->pull_request_id === 0) {
|
||||||
foreach ($this->application->build_environment_variables as $env) {
|
foreach ($this->application->build_environment_variables as $env) {
|
||||||
$dockerfile->splice(1, 0, "ARG {$env->key}={$env->real_value}");
|
if (str($env->real_value)->contains("\n") && data_get($env, 'is_multiline') === true) {
|
||||||
|
$value = str_replace("\n", "\\\n", $env->real_value);
|
||||||
|
} else {
|
||||||
|
$value = $env->real_value;
|
||||||
|
}
|
||||||
|
$dockerfile->splice(1, 0, "ARG {$env->key}={$value}");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
foreach ($this->application->build_environment_variables_preview as $env) {
|
foreach ($this->application->build_environment_variables_preview as $env) {
|
||||||
|
if (str($env->real_value)->contains("\n") && data_get($env, 'is_multiline') === true) {
|
||||||
|
$value = str_replace("\n", "\\\n", $env->real_value);
|
||||||
|
} else {
|
||||||
|
$value = $env->real_value;
|
||||||
|
}
|
||||||
$dockerfile->splice(1, 0, "ARG {$env->key}={$env->real_value}");
|
$dockerfile->splice(1, 0, "ARG {$env->key}={$env->real_value}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ public function healthcheck()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public function handle(): void
|
public function handle()
|
||||||
{
|
{
|
||||||
// ray("checking log drain statuses for {$this->server->id}");
|
// ray("checking log drain statuses for {$this->server->id}");
|
||||||
try {
|
try {
|
||||||
|
@ -4,12 +4,14 @@
|
|||||||
|
|
||||||
use App\Actions\Database\StartDatabaseProxy;
|
use App\Actions\Database\StartDatabaseProxy;
|
||||||
use App\Actions\Database\StopDatabaseProxy;
|
use App\Actions\Database\StopDatabaseProxy;
|
||||||
|
use App\Models\Server;
|
||||||
use App\Models\StandaloneClickhouse;
|
use App\Models\StandaloneClickhouse;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
|
|
||||||
class General extends Component
|
class General extends Component
|
||||||
{
|
{
|
||||||
|
public Server $server;
|
||||||
public StandaloneClickhouse $database;
|
public StandaloneClickhouse $database;
|
||||||
public ?string $db_url = null;
|
public ?string $db_url = null;
|
||||||
public ?string $db_url_public = null;
|
public ?string $db_url_public = null;
|
||||||
@ -43,10 +45,11 @@ public function mount()
|
|||||||
if ($this->database->is_public) {
|
if ($this->database->is_public) {
|
||||||
$this->db_url_public = $this->database->get_db_url();
|
$this->db_url_public = $this->database->get_db_url();
|
||||||
}
|
}
|
||||||
|
$this->server = data_get($this->database,'destination.server');
|
||||||
}
|
}
|
||||||
public function instantSaveAdvanced() {
|
public function instantSaveAdvanced() {
|
||||||
try {
|
try {
|
||||||
if (!$this->database->destination->server->isLogDrainEnabled()) {
|
if (!$this->server->isLogDrainEnabled()) {
|
||||||
$this->database->is_log_drain_enabled = false;
|
$this->database->is_log_drain_enabled = false;
|
||||||
$this->dispatch('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;
|
return;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
use App\Actions\Database\StartDatabaseProxy;
|
use App\Actions\Database\StartDatabaseProxy;
|
||||||
use App\Actions\Database\StopDatabaseProxy;
|
use App\Actions\Database\StopDatabaseProxy;
|
||||||
|
use App\Models\Server;
|
||||||
use App\Models\StandaloneDragonfly;
|
use App\Models\StandaloneDragonfly;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -12,6 +13,7 @@ class General extends Component
|
|||||||
{
|
{
|
||||||
protected $listeners = ['refresh'];
|
protected $listeners = ['refresh'];
|
||||||
|
|
||||||
|
public Server $server;
|
||||||
public StandaloneDragonfly $database;
|
public StandaloneDragonfly $database;
|
||||||
public ?string $db_url = null;
|
public ?string $db_url = null;
|
||||||
public ?string $db_url_public = null;
|
public ?string $db_url_public = null;
|
||||||
@ -41,10 +43,11 @@ public function mount()
|
|||||||
if ($this->database->is_public) {
|
if ($this->database->is_public) {
|
||||||
$this->db_url_public = $this->database->get_db_url();
|
$this->db_url_public = $this->database->get_db_url();
|
||||||
}
|
}
|
||||||
|
$this->server = data_get($this->database,'destination.server');
|
||||||
}
|
}
|
||||||
public function instantSaveAdvanced() {
|
public function instantSaveAdvanced() {
|
||||||
try {
|
try {
|
||||||
if (!$this->database->destination->server->isLogDrainEnabled()) {
|
if (!$this->server->isLogDrainEnabled()) {
|
||||||
$this->database->is_log_drain_enabled = false;
|
$this->database->is_log_drain_enabled = false;
|
||||||
$this->dispatch('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;
|
return;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
use App\Actions\Database\StartDatabaseProxy;
|
use App\Actions\Database\StartDatabaseProxy;
|
||||||
use App\Actions\Database\StopDatabaseProxy;
|
use App\Actions\Database\StopDatabaseProxy;
|
||||||
|
use App\Models\Server;
|
||||||
use App\Models\StandaloneKeydb;
|
use App\Models\StandaloneKeydb;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -12,6 +13,7 @@ class General extends Component
|
|||||||
{
|
{
|
||||||
protected $listeners = ['refresh'];
|
protected $listeners = ['refresh'];
|
||||||
|
|
||||||
|
public Server $server;
|
||||||
public StandaloneKeydb $database;
|
public StandaloneKeydb $database;
|
||||||
public ?string $db_url = null;
|
public ?string $db_url = null;
|
||||||
public ?string $db_url_public = null;
|
public ?string $db_url_public = null;
|
||||||
@ -43,10 +45,12 @@ public function mount()
|
|||||||
if ($this->database->is_public) {
|
if ($this->database->is_public) {
|
||||||
$this->db_url_public = $this->database->get_db_url();
|
$this->db_url_public = $this->database->get_db_url();
|
||||||
}
|
}
|
||||||
|
$this->server = data_get($this->database,'destination.server');
|
||||||
|
|
||||||
}
|
}
|
||||||
public function instantSaveAdvanced() {
|
public function instantSaveAdvanced() {
|
||||||
try {
|
try {
|
||||||
if (!$this->database->destination->server->isLogDrainEnabled()) {
|
if (!$this->server->isLogDrainEnabled()) {
|
||||||
$this->database->is_log_drain_enabled = false;
|
$this->database->is_log_drain_enabled = false;
|
||||||
$this->dispatch('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;
|
return;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
use App\Actions\Database\StartDatabaseProxy;
|
use App\Actions\Database\StartDatabaseProxy;
|
||||||
use App\Actions\Database\StopDatabaseProxy;
|
use App\Actions\Database\StopDatabaseProxy;
|
||||||
|
use App\Models\Server;
|
||||||
use App\Models\StandaloneMariadb;
|
use App\Models\StandaloneMariadb;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -12,6 +13,7 @@ class General extends Component
|
|||||||
{
|
{
|
||||||
protected $listeners = ['refresh'];
|
protected $listeners = ['refresh'];
|
||||||
|
|
||||||
|
public Server $server;
|
||||||
public StandaloneMariadb $database;
|
public StandaloneMariadb $database;
|
||||||
public ?string $db_url = null;
|
public ?string $db_url = null;
|
||||||
public ?string $db_url_public = null;
|
public ?string $db_url_public = null;
|
||||||
@ -50,10 +52,12 @@ public function mount()
|
|||||||
if ($this->database->is_public) {
|
if ($this->database->is_public) {
|
||||||
$this->db_url_public = $this->database->get_db_url();
|
$this->db_url_public = $this->database->get_db_url();
|
||||||
}
|
}
|
||||||
|
$this->server = data_get($this->database,'destination.server');
|
||||||
|
|
||||||
}
|
}
|
||||||
public function instantSaveAdvanced() {
|
public function instantSaveAdvanced() {
|
||||||
try {
|
try {
|
||||||
if (!$this->database->destination->server->isLogDrainEnabled()) {
|
if (!$this->server->isLogDrainEnabled()) {
|
||||||
$this->database->is_log_drain_enabled = false;
|
$this->database->is_log_drain_enabled = false;
|
||||||
$this->dispatch('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;
|
return;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
use App\Actions\Database\StartDatabaseProxy;
|
use App\Actions\Database\StartDatabaseProxy;
|
||||||
use App\Actions\Database\StopDatabaseProxy;
|
use App\Actions\Database\StopDatabaseProxy;
|
||||||
|
use App\Models\Server;
|
||||||
use App\Models\StandaloneMongodb;
|
use App\Models\StandaloneMongodb;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -12,6 +13,7 @@ class General extends Component
|
|||||||
{
|
{
|
||||||
protected $listeners = ['refresh'];
|
protected $listeners = ['refresh'];
|
||||||
|
|
||||||
|
public Server $server;
|
||||||
public StandaloneMongodb $database;
|
public StandaloneMongodb $database;
|
||||||
public ?string $db_url = null;
|
public ?string $db_url = null;
|
||||||
public ?string $db_url_public = null;
|
public ?string $db_url_public = null;
|
||||||
@ -48,11 +50,13 @@ public function mount()
|
|||||||
if ($this->database->is_public) {
|
if ($this->database->is_public) {
|
||||||
$this->db_url_public = $this->database->get_db_url();
|
$this->db_url_public = $this->database->get_db_url();
|
||||||
}
|
}
|
||||||
|
$this->server = data_get($this->database,'destination.server');
|
||||||
|
|
||||||
}
|
}
|
||||||
public function instantSaveAdvanced()
|
public function instantSaveAdvanced()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
if (!$this->database->destination->server->isLogDrainEnabled()) {
|
if (!$this->server->isLogDrainEnabled()) {
|
||||||
$this->database->is_log_drain_enabled = false;
|
$this->database->is_log_drain_enabled = false;
|
||||||
$this->dispatch('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;
|
return;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
use App\Actions\Database\StartDatabaseProxy;
|
use App\Actions\Database\StartDatabaseProxy;
|
||||||
use App\Actions\Database\StopDatabaseProxy;
|
use App\Actions\Database\StopDatabaseProxy;
|
||||||
|
use App\Models\Server;
|
||||||
use App\Models\StandaloneMysql;
|
use App\Models\StandaloneMysql;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -13,6 +14,7 @@ class General extends Component
|
|||||||
protected $listeners = ['refresh'];
|
protected $listeners = ['refresh'];
|
||||||
|
|
||||||
public StandaloneMysql $database;
|
public StandaloneMysql $database;
|
||||||
|
public Server $server;
|
||||||
public ?string $db_url = null;
|
public ?string $db_url = null;
|
||||||
public ?string $db_url_public = null;
|
public ?string $db_url_public = null;
|
||||||
|
|
||||||
@ -50,11 +52,12 @@ public function mount()
|
|||||||
if ($this->database->is_public) {
|
if ($this->database->is_public) {
|
||||||
$this->db_url_public = $this->database->get_db_url();
|
$this->db_url_public = $this->database->get_db_url();
|
||||||
}
|
}
|
||||||
|
$this->server = data_get($this->database,'destination.server');
|
||||||
}
|
}
|
||||||
public function instantSaveAdvanced()
|
public function instantSaveAdvanced()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
if (!$this->database->destination->server->isLogDrainEnabled()) {
|
if (!$this->server->isLogDrainEnabled()) {
|
||||||
$this->database->is_log_drain_enabled = false;
|
$this->database->is_log_drain_enabled = false;
|
||||||
$this->dispatch('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;
|
return;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
use App\Actions\Database\StartDatabaseProxy;
|
use App\Actions\Database\StartDatabaseProxy;
|
||||||
use App\Actions\Database\StopDatabaseProxy;
|
use App\Actions\Database\StopDatabaseProxy;
|
||||||
|
use App\Models\Server;
|
||||||
use App\Models\StandalonePostgresql;
|
use App\Models\StandalonePostgresql;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -13,6 +14,7 @@
|
|||||||
class General extends Component
|
class General extends Component
|
||||||
{
|
{
|
||||||
public StandalonePostgresql $database;
|
public StandalonePostgresql $database;
|
||||||
|
public Server $server;
|
||||||
public string $new_filename;
|
public string $new_filename;
|
||||||
public string $new_content;
|
public string $new_content;
|
||||||
public ?string $db_url = null;
|
public ?string $db_url = null;
|
||||||
@ -57,11 +59,12 @@ public function mount()
|
|||||||
if ($this->database->is_public) {
|
if ($this->database->is_public) {
|
||||||
$this->db_url_public = $this->database->get_db_url();
|
$this->db_url_public = $this->database->get_db_url();
|
||||||
}
|
}
|
||||||
|
$this->server = data_get($this->database,'destination.server');
|
||||||
}
|
}
|
||||||
public function instantSaveAdvanced()
|
public function instantSaveAdvanced()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
if (!$this->database->destination->server->isLogDrainEnabled()) {
|
if (!$this->server->isLogDrainEnabled()) {
|
||||||
$this->database->is_log_drain_enabled = false;
|
$this->database->is_log_drain_enabled = false;
|
||||||
$this->dispatch('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;
|
return;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
use App\Actions\Database\StartDatabaseProxy;
|
use App\Actions\Database\StartDatabaseProxy;
|
||||||
use App\Actions\Database\StopDatabaseProxy;
|
use App\Actions\Database\StopDatabaseProxy;
|
||||||
|
use App\Models\Server;
|
||||||
use App\Models\StandaloneRedis;
|
use App\Models\StandaloneRedis;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
@ -12,6 +13,7 @@ class General extends Component
|
|||||||
{
|
{
|
||||||
protected $listeners = ['refresh'];
|
protected $listeners = ['refresh'];
|
||||||
|
|
||||||
|
public Server $server;
|
||||||
public StandaloneRedis $database;
|
public StandaloneRedis $database;
|
||||||
public ?string $db_url = null;
|
public ?string $db_url = null;
|
||||||
public ?string $db_url_public = null;
|
public ?string $db_url_public = null;
|
||||||
@ -43,10 +45,12 @@ public function mount()
|
|||||||
if ($this->database->is_public) {
|
if ($this->database->is_public) {
|
||||||
$this->db_url_public = $this->database->get_db_url();
|
$this->db_url_public = $this->database->get_db_url();
|
||||||
}
|
}
|
||||||
|
$this->server = data_get($this->database,'destination.server');
|
||||||
|
|
||||||
}
|
}
|
||||||
public function instantSaveAdvanced() {
|
public function instantSaveAdvanced() {
|
||||||
try {
|
try {
|
||||||
if (!$this->database->destination->server->isLogDrainEnabled()) {
|
if (!$this->server->isLogDrainEnabled()) {
|
||||||
$this->database->is_log_drain_enabled = false;
|
$this->database->is_log_drain_enabled = false;
|
||||||
$this->dispatch('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;
|
return;
|
||||||
|
@ -22,6 +22,8 @@ public function send($notifiable, $notification): void
|
|||||||
$topicId = data_get($notifiable, 'telegram_notifications_test_message_thread_id');
|
$topicId = data_get($notifiable, 'telegram_notifications_test_message_thread_id');
|
||||||
break;
|
break;
|
||||||
case 'App\Notifications\Application\StatusChanged':
|
case 'App\Notifications\Application\StatusChanged':
|
||||||
|
case 'App\Notifications\Container\ContainerRestarted':
|
||||||
|
case 'App\Notifications\Container\ContainerStopped':
|
||||||
$topicId = data_get($notifiable, 'telegram_notifications_status_changes_message_thread_id');
|
$topicId = data_get($notifiable, 'telegram_notifications_status_changes_message_thread_id');
|
||||||
break;
|
break;
|
||||||
case 'App\Notifications\Application\DeploymentSuccess':
|
case 'App\Notifications\Application\DeploymentSuccess':
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
// The release version of your application
|
// The release version of your application
|
||||||
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
|
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
|
||||||
'release' => '4.0.0-beta.295',
|
'release' => '4.0.0-beta.297',
|
||||||
// When left empty or `null` the Laravel environment will be used
|
// When left empty or `null` the Laravel environment will be used
|
||||||
'environment' => config('app.env'),
|
'environment' => config('app.env'),
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return '4.0.0-beta.295';
|
return '4.0.0-beta.297';
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
@if ($database->started_at)
|
@if ($database->started_at)
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
<x-forms.input label="Initial Username" id="database.clickhouse_admin_user" placeholder="If empty: clickhouse"
|
<x-forms.input label="Initial Username" id="database.clickhouse_admin_user"
|
||||||
readonly helper="You can only change this in the database." />
|
placeholder="If empty: clickhouse" readonly helper="You can only change this in the database." />
|
||||||
<x-forms.input label="Initial Password" id="database.clickhouse_admin_password" type="password" required
|
<x-forms.input label="Initial Password" id="database.clickhouse_admin_password" type="password" required
|
||||||
readonly helper="You can only change this in the database." />
|
readonly helper="You can only change this in the database." />
|
||||||
</div>
|
</div>
|
||||||
@ -34,9 +34,6 @@
|
|||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
||||||
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
||||||
<x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"
|
|
||||||
label="Public Port" />
|
|
||||||
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
|
||||||
</div>
|
</div>
|
||||||
<x-forms.input label="Clickhouse URL (internal)"
|
<x-forms.input label="Clickhouse URL (internal)"
|
||||||
helper="If you change the user/password/port, this could be different. This is with the default values."
|
helper="If you change the user/password/port, this could be different. This is with the default values."
|
||||||
@ -47,6 +44,23 @@
|
|||||||
type="password" readonly wire:model="db_url_public" />
|
type="password" readonly wire:model="db_url_public" />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3 class="py-2">Proxy</h3>
|
||||||
|
<div class="flex items-end gap-2">
|
||||||
|
<x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"
|
||||||
|
id="database.public_port" label="Public Port" />
|
||||||
|
<x-slide-over fullScreen>
|
||||||
|
<x-slot:title>Proxy Logs</x-slot:title>
|
||||||
|
<x-slot:content>
|
||||||
|
<livewire:project.shared.get-logs :server="$server" :resource="$database"
|
||||||
|
container="{{ data_get($database, 'uuid') }}-proxy" lazy />
|
||||||
|
</x-slot:content>
|
||||||
|
<x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"
|
||||||
|
class="w-28">Proxy Logs</x-forms.button>
|
||||||
|
</x-slide-over>
|
||||||
|
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<h3 class="pt-4">Advanced</h3>
|
<h3 class="pt-4">Advanced</h3>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
@ -16,9 +16,6 @@
|
|||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
||||||
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
||||||
<x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"
|
|
||||||
label="Public Port" />
|
|
||||||
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
|
||||||
</div>
|
</div>
|
||||||
<x-forms.input label="Dragonfly URL (internal)"
|
<x-forms.input label="Dragonfly URL (internal)"
|
||||||
helper="If you change the user/password/port, this could be different. This is with the default values."
|
helper="If you change the user/password/port, this could be different. This is with the default values."
|
||||||
@ -29,6 +26,23 @@
|
|||||||
type="password" readonly wire:model="db_url_public" />
|
type="password" readonly wire:model="db_url_public" />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3 class="py-2">Proxy</h3>
|
||||||
|
<div class="flex items-end gap-2">
|
||||||
|
<x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"
|
||||||
|
id="database.public_port" label="Public Port" />
|
||||||
|
<x-slide-over fullScreen>
|
||||||
|
<x-slot:title>Proxy Logs</x-slot:title>
|
||||||
|
<x-slot:content>
|
||||||
|
<livewire:project.shared.get-logs :server="$server" :resource="$database"
|
||||||
|
container="{{ data_get($database, 'uuid') }}-proxy" lazy />
|
||||||
|
</x-slot:content>
|
||||||
|
<x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"
|
||||||
|
class="w-28">Proxy Logs</x-forms.button>
|
||||||
|
</x-slide-over>
|
||||||
|
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{-- <x-forms.textarea
|
{{-- <x-forms.textarea
|
||||||
helper="<a target='_blank' class='underline dark:text-white' href='https://raw.githubusercontent.com/Snapchat/KeyDB/unstable/keydb.conf'>KeyDB Default Configuration</a>"
|
helper="<a target='_blank' class='underline dark:text-white' href='https://raw.githubusercontent.com/Snapchat/KeyDB/unstable/keydb.conf'>KeyDB Default Configuration</a>"
|
||||||
label="Custom Dragonfly Configuration" rows="10" id="database.keydb_conf" /> --}}
|
label="Custom Dragonfly Configuration" rows="10" id="database.keydb_conf" /> --}}
|
||||||
|
@ -17,9 +17,6 @@
|
|||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
||||||
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
||||||
<x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"
|
|
||||||
label="Public Port" />
|
|
||||||
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
|
||||||
</div>
|
</div>
|
||||||
<x-forms.input label="KeyDB URL (internal)"
|
<x-forms.input label="KeyDB URL (internal)"
|
||||||
helper="If you change the user/password/port, this could be different. This is with the default values."
|
helper="If you change the user/password/port, this could be different. This is with the default values."
|
||||||
@ -30,6 +27,23 @@
|
|||||||
type="password" readonly wire:model="db_url_public" />
|
type="password" readonly wire:model="db_url_public" />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3 class="py-2">Proxy</h3>
|
||||||
|
<div class="flex items-end gap-2">
|
||||||
|
<x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"
|
||||||
|
id="database.public_port" label="Public Port" />
|
||||||
|
<x-slide-over fullScreen>
|
||||||
|
<x-slot:title>Proxy Logs</x-slot:title>
|
||||||
|
<x-slot:content>
|
||||||
|
<livewire:project.shared.get-logs :server="$server" :resource="$database"
|
||||||
|
container="{{ data_get($database, 'uuid') }}-proxy" lazy />
|
||||||
|
</x-slot:content>
|
||||||
|
<x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"
|
||||||
|
class="w-28">Proxy Logs</x-forms.button>
|
||||||
|
</x-slide-over>
|
||||||
|
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<x-forms.textarea
|
<x-forms.textarea
|
||||||
helper="<a target='_blank' class='underline dark:text-white' href='https://raw.githubusercontent.com/Snapchat/KeyDB/unstable/keydb.conf'>KeyDB Default Configuration</a>"
|
helper="<a target='_blank' class='underline dark:text-white' href='https://raw.githubusercontent.com/Snapchat/KeyDB/unstable/keydb.conf'>KeyDB Default Configuration</a>"
|
||||||
label="Custom KeyDB Configuration" rows="10" id="database.keydb_conf" />
|
label="Custom KeyDB Configuration" rows="10" id="database.keydb_conf" />
|
||||||
|
@ -45,9 +45,6 @@
|
|||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
||||||
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
||||||
<x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"
|
|
||||||
label="Public Port" />
|
|
||||||
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
|
||||||
</div>
|
</div>
|
||||||
<x-forms.input label="MariaDB URL (internal)"
|
<x-forms.input label="MariaDB URL (internal)"
|
||||||
helper="If you change the user/password/port, this could be different. This is with the default values."
|
helper="If you change the user/password/port, this could be different. This is with the default values."
|
||||||
@ -58,6 +55,23 @@
|
|||||||
type="password" readonly wire:model="db_url_public" />
|
type="password" readonly wire:model="db_url_public" />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3 class="py-2">Proxy</h3>
|
||||||
|
<div class="flex items-end gap-2">
|
||||||
|
<x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"
|
||||||
|
id="database.public_port" label="Public Port" />
|
||||||
|
<x-slide-over fullScreen>
|
||||||
|
<x-slot:title>Proxy Logs</x-slot:title>
|
||||||
|
<x-slot:content>
|
||||||
|
<livewire:project.shared.get-logs :server="$server" :resource="$database"
|
||||||
|
container="{{ data_get($database, 'uuid') }}-proxy" lazy />
|
||||||
|
</x-slot:content>
|
||||||
|
<x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"
|
||||||
|
class="w-28">Proxy Logs</x-forms.button>
|
||||||
|
</x-slide-over>
|
||||||
|
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<x-forms.textarea label="Custom MariaDB Configuration" rows="10" id="database.mariadb_conf" />
|
<x-forms.textarea label="Custom MariaDB Configuration" rows="10" id="database.mariadb_conf" />
|
||||||
<h3 class="pt-4">Advanced</h3>
|
<h3 class="pt-4">Advanced</h3>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
@ -18,9 +18,11 @@
|
|||||||
@if ($database->started_at)
|
@if ($database->started_at)
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<x-forms.input label="Initial Username" id="database.mongo_initdb_root_username"
|
<x-forms.input label="Initial Username" id="database.mongo_initdb_root_username"
|
||||||
placeholder="If empty: postgres" helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." />
|
placeholder="If empty: postgres"
|
||||||
|
helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." />
|
||||||
<x-forms.input label="Initial Password" id="database.mongo_initdb_root_password" type="password"
|
<x-forms.input label="Initial Password" id="database.mongo_initdb_root_password" type="password"
|
||||||
required helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." />
|
required
|
||||||
|
helper="If you change this in the database, please sync it here, otherwise automations (like backups) won't work." />
|
||||||
<x-forms.input label="Initial Database" id="database.mongo_initdb_database"
|
<x-forms.input label="Initial Database" id="database.mongo_initdb_database"
|
||||||
placeholder="If empty, it will be the same as Username." readonly
|
placeholder="If empty, it will be the same as Username." readonly
|
||||||
helper="You can only change this in the database." />
|
helper="You can only change this in the database." />
|
||||||
@ -39,9 +41,6 @@
|
|||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
||||||
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
||||||
<x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"
|
|
||||||
label="Public Port" />
|
|
||||||
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
|
||||||
</div>
|
</div>
|
||||||
<x-forms.input label="Mongo URL (internal)"
|
<x-forms.input label="Mongo URL (internal)"
|
||||||
helper="If you change the user/password/port, this could be different. This is with the default values."
|
helper="If you change the user/password/port, this could be different. This is with the default values."
|
||||||
@ -52,6 +51,23 @@
|
|||||||
type="password" readonly wire:model="db_url_public" />
|
type="password" readonly wire:model="db_url_public" />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3 class="py-2">Proxy</h3>
|
||||||
|
<div class="flex items-end gap-2">
|
||||||
|
<x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"
|
||||||
|
id="database.public_port" label="Public Port" />
|
||||||
|
<x-slide-over fullScreen>
|
||||||
|
<x-slot:title>Proxy Logs</x-slot:title>
|
||||||
|
<x-slot:content>
|
||||||
|
<livewire:project.shared.get-logs :server="$server" :resource="$database"
|
||||||
|
container="{{ data_get($database, 'uuid') }}-proxy" lazy />
|
||||||
|
</x-slot:content>
|
||||||
|
<x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"
|
||||||
|
class="w-28">Proxy Logs</x-forms.button>
|
||||||
|
</x-slide-over>
|
||||||
|
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<x-forms.textarea label="Custom MongoDB Configuration" rows="10" id="database.mongo_conf" />
|
<x-forms.textarea label="Custom MongoDB Configuration" rows="10" id="database.mongo_conf" />
|
||||||
<h3 class="pt-4">Advanced</h3>
|
<h3 class="pt-4">Advanced</h3>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
@ -45,9 +45,6 @@
|
|||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
||||||
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
||||||
<x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"
|
|
||||||
label="Public Port" />
|
|
||||||
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
|
||||||
</div>
|
</div>
|
||||||
<x-forms.input label="MySQL URL (internal)"
|
<x-forms.input label="MySQL URL (internal)"
|
||||||
helper="If you change the user/password/port, this could be different. This is with the default values."
|
helper="If you change the user/password/port, this could be different. This is with the default values."
|
||||||
@ -58,6 +55,23 @@
|
|||||||
type="password" readonly wire:model="db_url_public" />
|
type="password" readonly wire:model="db_url_public" />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3 class="py-2">Proxy</h3>
|
||||||
|
<div class="flex items-end gap-2">
|
||||||
|
<x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"
|
||||||
|
id="database.public_port" label="Public Port" />
|
||||||
|
<x-slide-over fullScreen>
|
||||||
|
<x-slot:title>Proxy Logs</x-slot:title>
|
||||||
|
<x-slot:content>
|
||||||
|
<livewire:project.shared.get-logs :server="$server" :resource="$database"
|
||||||
|
container="{{ data_get($database, 'uuid') }}-proxy" lazy />
|
||||||
|
</x-slot:content>
|
||||||
|
<x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"
|
||||||
|
class="w-28">Proxy Logs</x-forms.button>
|
||||||
|
</x-slide-over>
|
||||||
|
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<x-forms.textarea label="Custom Mysql Configuration" rows="10" id="database.mysql_conf" />
|
<x-forms.textarea label="Custom Mysql Configuration" rows="10" id="database.mysql_conf" />
|
||||||
<h3 class="pt-4">Advanced</h3>
|
<h3 class="pt-4">Advanced</h3>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
@ -26,7 +26,8 @@
|
|||||||
<x-forms.input label="Image" id="database.image" required
|
<x-forms.input label="Image" id="database.image" required
|
||||||
helper="For all available images, check here:<br><br><a target='_blank' href='https://hub.docker.com/_/postgres'>https://hub.docker.com/_/postgres</a>" />
|
helper="For all available images, check here:<br><br><a target='_blank' href='https://hub.docker.com/_/postgres'>https://hub.docker.com/_/postgres</a>" />
|
||||||
</div>
|
</div>
|
||||||
<div class="pt-2 dark:text-warning">If you change the values in the database, please sync it here, otherwise automations (like backups) won't work.
|
<div class="pt-2 dark:text-warning">If you change the values in the database, please sync it here, otherwise
|
||||||
|
automations (like backups) won't work.
|
||||||
</div>
|
</div>
|
||||||
@if ($database->started_at)
|
@if ($database->started_at)
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
@ -57,10 +58,8 @@
|
|||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
||||||
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
||||||
<x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"
|
|
||||||
label="Public Port" />
|
|
||||||
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<x-forms.input label="Postgres URL (internal)"
|
<x-forms.input label="Postgres URL (internal)"
|
||||||
helper="If you change the user/password/port, this could be different. This is with the default values."
|
helper="If you change the user/password/port, this could be different. This is with the default values."
|
||||||
type="password" readonly wire:model="db_url" />
|
type="password" readonly wire:model="db_url" />
|
||||||
@ -70,6 +69,23 @@
|
|||||||
type="password" readonly wire:model="db_url_public" />
|
type="password" readonly wire:model="db_url_public" />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3 class="py-2">Proxy</h3>
|
||||||
|
<div class="flex items-end gap-2">
|
||||||
|
<x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"
|
||||||
|
id="database.public_port" label="Public Port" />
|
||||||
|
<x-slide-over fullScreen>
|
||||||
|
<x-slot:title>Proxy Logs</x-slot:title>
|
||||||
|
<x-slot:content>
|
||||||
|
<livewire:project.shared.get-logs :server="$server" :resource="$database"
|
||||||
|
container="{{ data_get($database, 'uuid') }}-proxy" lazy />
|
||||||
|
</x-slot:content>
|
||||||
|
<x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"
|
||||||
|
class="w-28">Proxy Logs</x-forms.button>
|
||||||
|
</x-slide-over>
|
||||||
|
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<x-forms.textarea label="Custom PostgreSQL Configuration" rows="10" id="database.postgres_conf" />
|
<x-forms.textarea label="Custom PostgreSQL Configuration" rows="10" id="database.postgres_conf" />
|
||||||
</form>
|
</form>
|
||||||
<h3 class="pt-4">Advanced</h3>
|
<h3 class="pt-4">Advanced</h3>
|
||||||
|
@ -17,9 +17,6 @@
|
|||||||
<div class="flex items-end gap-2">
|
<div class="flex items-end gap-2">
|
||||||
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
<x-forms.input placeholder="3000:5432" id="database.ports_mappings" label="Ports Mappings"
|
||||||
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
helper="A comma separated list of ports you would like to map to the host system.<br><span class='inline-block font-bold dark:text-warning'>Example</span>3000:5432,3002:5433" />
|
||||||
<x-forms.input placeholder="5432" disabled="{{ $database->is_public }}" id="database.public_port"
|
|
||||||
label="Public Port" />
|
|
||||||
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
|
||||||
</div>
|
</div>
|
||||||
<x-forms.input label="Redis URL (internal)"
|
<x-forms.input label="Redis URL (internal)"
|
||||||
helper="If you change the user/password/port, this could be different. This is with the default values."
|
helper="If you change the user/password/port, this could be different. This is with the default values."
|
||||||
@ -30,8 +27,25 @@
|
|||||||
type="password" readonly wire:model="db_url_public" />
|
type="password" readonly wire:model="db_url_public" />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<h3 class="py-2">Proxy</h3>
|
||||||
|
<div class="flex items-end gap-2">
|
||||||
|
<x-forms.input placeholder="5432" disabled="{{ data_get($database, 'is_public') }}"
|
||||||
|
id="database.public_port" label="Public Port" />
|
||||||
|
<x-slide-over fullScreen>
|
||||||
|
<x-slot:title>Proxy Logs</x-slot:title>
|
||||||
|
<x-slot:content>
|
||||||
|
<livewire:project.shared.get-logs :server="$server" :resource="$database"
|
||||||
|
container="{{ data_get($database, 'uuid') }}-proxy" lazy />
|
||||||
|
</x-slot:content>
|
||||||
|
<x-forms.button disabled="{{ !data_get($database, 'is_public') }}" @click="slideOverOpen=true"
|
||||||
|
class="w-28">Proxy Logs</x-forms.button>
|
||||||
|
</x-slide-over>
|
||||||
|
<x-forms.checkbox instantSave id="database.is_public" label="Make it publicly available" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<x-forms.textarea
|
<x-forms.textarea
|
||||||
helper="<a target='_blank' class='dark:text-white underline' href='https://raw.githubusercontent.com/redis/redis/7.2/redis.conf'>Redis Default Configuration</a>"
|
helper="<a target='_blank' class='underline dark:text-white' href='https://raw.githubusercontent.com/redis/redis/7.2/redis.conf'>Redis Default Configuration</a>"
|
||||||
label="Custom Redis Configuration" rows="10" id="database.redis_conf" />
|
label="Custom Redis Configuration" rows="10" id="database.redis_conf" />
|
||||||
<h3 class="pt-4">Advanced</h3>
|
<h3 class="pt-4">Advanced</h3>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
<div>
|
<div>
|
||||||
<x-slot:title>
|
|
||||||
{{ data_get_str($project, 'name')->limit(10) }} > Resources | Coolify
|
|
||||||
</x-slot>
|
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<h1>Resources</h1>
|
<h1>Resources</h1>
|
||||||
@ -50,7 +47,7 @@ class="items-center justify-center box">+ Add New Resource</a>
|
|||||||
<div x-data="searchComponent()">
|
<div x-data="searchComponent()">
|
||||||
<x-forms.input autofocus placeholder="Search for name, fqdn..." x-model="search" id="null" />
|
<x-forms.input autofocus placeholder="Search for name, fqdn..." x-model="search" id="null" />
|
||||||
<div class="grid grid-cols-1 gap-4 pt-4 lg:grid-cols-2 xl:grid-cols-3">
|
<div class="grid grid-cols-1 gap-4 pt-4 lg:grid-cols-2 xl:grid-cols-3">
|
||||||
<template x-for="item in filteredApplications" :key="item.uuid">
|
<template x-for="item in allFilteredItems" :key="item.uuid">
|
||||||
<span>
|
<span>
|
||||||
<a class="h-24 box group" :href="item.hrefLink">
|
<a class="h-24 box group" :href="item.hrefLink">
|
||||||
<div class="flex flex-col w-full">
|
<div class="flex flex-col w-full">
|
||||||
@ -83,285 +80,6 @@ class="flex flex-wrap gap-1 pt-1 group-hover:dark:text-white group-hover:text-bl
|
|||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template x-for="item in filteredPostgresqls" :key="item.uuid">
|
|
||||||
<span>
|
|
||||||
<a class="h-24 box group" :href="item.hrefLink">
|
|
||||||
<div class="flex flex-col w-full">
|
|
||||||
<div class="flex gap-2 px-4">
|
|
||||||
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
||||||
<div class="flex-1"></div>
|
|
||||||
<template x-if="item.status.startsWith('running')">
|
|
||||||
<div title="running" class="bg-success badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('exited')">
|
|
||||||
<div title="exited" class="bg-error badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('restarting')">
|
|
||||||
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('degraded')">
|
|
||||||
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div class="max-w-full px-4 truncate box-description" x-text="item.description"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<div class="flex gap-1 pt-1 group-hover:dark:text-white group-hover:text-black group min-h-6">
|
|
||||||
<template x-for="tag in item.tags">
|
|
||||||
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
|
||||||
</template>
|
|
||||||
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
<template x-for="item in filteredRedis" :key="item.uuid">
|
|
||||||
<span>
|
|
||||||
<a class="h-24 box group" :href="item.hrefLink">
|
|
||||||
<div class="flex flex-col w-full">
|
|
||||||
<div class="flex gap-2 px-4">
|
|
||||||
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
||||||
<div class="flex-1"></div>
|
|
||||||
<template x-if="item.status.startsWith('running')">
|
|
||||||
<div title="running" class="bg-success badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('exited')">
|
|
||||||
<div title="exited" class="bg-error badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('restarting')">
|
|
||||||
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('degraded')">
|
|
||||||
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
||||||
<template x-for="tag in item.tags">
|
|
||||||
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
|
||||||
</template>
|
|
||||||
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
<template x-for="item in filteredMongodbs" :key="item.uuid">
|
|
||||||
<span>
|
|
||||||
<a class="h-24 box group" :href="item.hrefLink">
|
|
||||||
<div class="flex flex-col w-full">
|
|
||||||
<div class="flex gap-2 px-4">
|
|
||||||
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
||||||
<div class="flex-1"></div>
|
|
||||||
<template x-if="item.status.startsWith('running')">
|
|
||||||
<div title="running" class="bg-success badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('exited')">
|
|
||||||
<div title="exited" class="bg-error badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('restarting')">
|
|
||||||
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('degraded')">
|
|
||||||
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
||||||
<template x-for="tag in item.tags">
|
|
||||||
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
|
||||||
</template>
|
|
||||||
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
<template x-for="item in filteredMysqls" :key="item.uuid">
|
|
||||||
<span>
|
|
||||||
<a class="h-24 box group" :href="item.hrefLink">
|
|
||||||
<div class="flex flex-col w-full">
|
|
||||||
<div class="flex gap-2 px-4">
|
|
||||||
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
||||||
<div class="flex-1"></div>
|
|
||||||
<template x-if="item.status.startsWith('running')">
|
|
||||||
<div title="running" class="bg-success badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('exited')">
|
|
||||||
<div title="exited" class="bg-error badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('restarting')">
|
|
||||||
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('degraded')">
|
|
||||||
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
||||||
<template x-for="tag in item.tags">
|
|
||||||
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
|
||||||
</template>
|
|
||||||
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
<template x-for="item in filteredMariadbs" :key="item.uuid">
|
|
||||||
<span>
|
|
||||||
<a class="h-24 box group" :href="item.hrefLink">
|
|
||||||
<div class="flex flex-col w-full">
|
|
||||||
<div class="flex gap-2 px-4">
|
|
||||||
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
||||||
<div class="flex-1"></div>
|
|
||||||
<template x-if="item.status.startsWith('running')">
|
|
||||||
<div title="running" class="bg-success badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('exited')">
|
|
||||||
<div title="exited" class="bg-error badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('restarting')">
|
|
||||||
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('degraded')">
|
|
||||||
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
||||||
<template x-for="tag in item.tags">
|
|
||||||
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
|
||||||
</template>
|
|
||||||
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
<template x-for="item in filteredKeydbs" :key="item.uuid">
|
|
||||||
<span>
|
|
||||||
<a class="h-24 box group" :href="item.hrefLink">
|
|
||||||
<div class="flex flex-col w-full">
|
|
||||||
<div class="flex gap-2 px-4">
|
|
||||||
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
||||||
<div class="flex-1"></div>
|
|
||||||
<template x-if="item.status.startsWith('running')">
|
|
||||||
<div title="running" class="bg-success badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('exited')">
|
|
||||||
<div title="exited" class="bg-error badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('restarting')">
|
|
||||||
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('degraded')">
|
|
||||||
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
||||||
<template x-for="tag in item.tags">
|
|
||||||
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
|
||||||
</template>
|
|
||||||
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
<template x-for="item in filteredDragonflies" :key="item.uuid">
|
|
||||||
<span>
|
|
||||||
<a class="h-24 box group" :href="item.hrefLink">
|
|
||||||
<div class="flex flex-col w-full">
|
|
||||||
<div class="flex gap-2 px-4">
|
|
||||||
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
||||||
<div class="flex-1"></div>
|
|
||||||
<template x-if="item.status.startsWith('running')">
|
|
||||||
<div title="running" class="bg-success badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('exited')">
|
|
||||||
<div title="exited" class="bg-error badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('restarting')">
|
|
||||||
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('degraded')">
|
|
||||||
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
||||||
<template x-for="tag in item.tags">
|
|
||||||
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
|
||||||
</template>
|
|
||||||
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
<template x-for="item in filteredClickhouses" :key="item.uuid">
|
|
||||||
<span>
|
|
||||||
<a class="h-24 box group" :href="item.hrefLink">
|
|
||||||
<div class="flex flex-col w-full">
|
|
||||||
<div class="flex gap-2 px-4">
|
|
||||||
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
||||||
<div class="flex-1"></div>
|
|
||||||
<template x-if="item.status.startsWith('running')">
|
|
||||||
<div title="running" class="bg-success badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('exited')">
|
|
||||||
<div title="exited" class="bg-error badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('restarting')">
|
|
||||||
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('degraded')">
|
|
||||||
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
||||||
<template x-for="tag in item.tags">
|
|
||||||
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
|
||||||
</template>
|
|
||||||
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
<template x-for="item in filteredServices" :key="item.uuid">
|
|
||||||
<span>
|
|
||||||
<a class="h-24 box group" :href="item.hrefLink">
|
|
||||||
<div class="flex flex-col w-full">
|
|
||||||
<div class="flex gap-2 px-4">
|
|
||||||
<div class="pb-2 truncate box-title" x-text="item.name"></div>
|
|
||||||
<div class="flex-1"></div>
|
|
||||||
<template x-if="item.status.startsWith('running')">
|
|
||||||
<div title="running" class="bg-success badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('exited')">
|
|
||||||
<div title="exited" class="bg-error badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('restarting')">
|
|
||||||
<div title="restarting" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
<template x-if="item.status.startsWith('degraded')">
|
|
||||||
<div title="degraded" class="bg-warning badge badge-absolute"></div>
|
|
||||||
</template>
|
|
||||||
</div>
|
|
||||||
<div class="max-w-full px-4 truncate description" x-text="item.description"></div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<div class="flex gap-1 pt-1 group-hover:dark:text-white group min-h-6">
|
|
||||||
<template x-for="tag in item.tags">
|
|
||||||
<div class="tag" @click.prevent="gotoTag(tag.name)" x-text="tag.name"></div>
|
|
||||||
</template>
|
|
||||||
<div class="add-tag" @click.prevent="goto(item)">Add tag</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@ -393,118 +111,32 @@ function searchComponent() {
|
|||||||
const hrefLink = item.hrefLink;
|
const hrefLink = item.hrefLink;
|
||||||
window.location.href = `${hrefLink}#tags`;
|
window.location.href = `${hrefLink}#tags`;
|
||||||
},
|
},
|
||||||
get filteredApplications() {
|
filterAndSort(items) {
|
||||||
if (this.search === '') {
|
if (this.search === '') {
|
||||||
return Object.values(this.applications).sort(sortFn);
|
return Object.values(items).sort(sortFn);
|
||||||
}
|
}
|
||||||
this.applications = Object.values(this.applications);
|
const searchLower = this.search.toLowerCase();
|
||||||
return this.applications.filter(item => {
|
return Object.values(items).filter(item => {
|
||||||
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
return (item.name?.toLowerCase().includes(searchLower) ||
|
||||||
item.fqdn?.toLowerCase().includes(this.search.toLowerCase()) ||
|
item.fqdn?.toLowerCase().includes(searchLower) ||
|
||||||
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
item.description?.toLowerCase().includes(searchLower) ||
|
||||||
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
item.tags?.some(tag => tag.name.toLowerCase().includes(searchLower)));
|
||||||
}).sort(sortFn);
|
}).sort(sortFn);
|
||||||
},
|
},
|
||||||
get filteredPostgresqls() {
|
get allFilteredItems() {
|
||||||
if (this.search === '') {
|
return [
|
||||||
return Object.values(this.postgresqls).sort(sortFn);
|
this.applications,
|
||||||
}
|
this.postgresqls,
|
||||||
this.postgresqls = Object.values(this.postgresqls);
|
this.redis,
|
||||||
return this.postgresqls.filter(item => {
|
this.mongodbs,
|
||||||
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
this.mysqls,
|
||||||
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
this.mariadbs,
|
||||||
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
this.keydbs,
|
||||||
}).sort(sortFn);
|
this.dragonflies,
|
||||||
},
|
this.clickhouses,
|
||||||
get filteredRedis() {
|
this.services
|
||||||
if (this.search === '') {
|
].flatMap((items) => this.filterAndSort(items))
|
||||||
return Object.values(this.redis).sort(sortFn);
|
}
|
||||||
}
|
|
||||||
this.redis = Object.values(this.redis);
|
|
||||||
return this.redis.filter(item => {
|
|
||||||
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
||||||
}).sort(sortFn);
|
|
||||||
},
|
|
||||||
get filteredMongodbs() {
|
|
||||||
if (this.search === '') {
|
|
||||||
return Object.values(this.mongodbs).sort(sortFn);
|
|
||||||
}
|
|
||||||
this.mongodbs = Object.values(this.mongodbs);
|
|
||||||
return this.mongodbs.filter(item => {
|
|
||||||
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
||||||
}).sort(sortFn);
|
|
||||||
},
|
|
||||||
get filteredMysqls() {
|
|
||||||
if (this.search === '') {
|
|
||||||
return Object.values(this.mysqls).sort(sortFn);
|
|
||||||
}
|
|
||||||
this.mysqls = Object.values(this.mysqls);
|
|
||||||
return this.mysqls.filter(item => {
|
|
||||||
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
||||||
}).sort(sortFn);
|
|
||||||
},
|
|
||||||
get filteredMariadbs() {
|
|
||||||
if (this.search === '') {
|
|
||||||
return Object.values(this.mariadbs).sort(sortFn);
|
|
||||||
}
|
|
||||||
this.mariadbs = Object.values(this.mariadbs);
|
|
||||||
return this.mariadbs.filter(item => {
|
|
||||||
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
||||||
}).sort(sortFn);
|
|
||||||
},
|
|
||||||
get filteredKeydbs() {
|
|
||||||
if (this.search === '') {
|
|
||||||
return Object.values(this.keydbs).sort(sortFn);
|
|
||||||
}
|
|
||||||
this.keydbs = Object.values(this.keydbs);
|
|
||||||
return this.keydbs.filter(item => {
|
|
||||||
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
||||||
}).sort(sortFn);
|
|
||||||
},
|
|
||||||
get filteredDragonflies() {
|
|
||||||
if (this.search === '') {
|
|
||||||
return Object.values(this.dragonflies).sort(sortFn);
|
|
||||||
}
|
|
||||||
this.dragonflies = Object.values(this.dragonflies);
|
|
||||||
return this.dragonflies.filter(item => {
|
|
||||||
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
||||||
}).sort(sortFn);
|
|
||||||
},
|
|
||||||
get filteredClickhouses() {
|
|
||||||
if (this.search === '') {
|
|
||||||
return Object.values(this.clickhouses).sort(sortFn);
|
|
||||||
}
|
|
||||||
this.clickhouses = Object.values(this.clickhouses);
|
|
||||||
return this.clickhouses.filter(item => {
|
|
||||||
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
||||||
}).sort(sortFn);
|
|
||||||
},
|
|
||||||
get filteredServices() {
|
|
||||||
if (this.search === '') {
|
|
||||||
return Object.values(this.services).sort(sortFn);
|
|
||||||
}
|
|
||||||
this.services = Object.values(this.services);
|
|
||||||
return this.services.filter(item => {
|
|
||||||
return item.name?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.description?.toLowerCase().includes(this.search.toLowerCase()) ||
|
|
||||||
item.tags?.some(tag => tag.name.toLowerCase().includes(this.search.toLowerCase()));
|
|
||||||
}).sort(sortFn);
|
|
||||||
},
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -63,9 +63,11 @@ class="font-bold dark:text-warning text-coollabs">{{ $env->key }}</span>.
|
|||||||
@else
|
@else
|
||||||
<x-forms.checkbox instantSave id="env.is_build_time" label="Build Variable?" />
|
<x-forms.checkbox instantSave id="env.is_build_time" label="Build Variable?" />
|
||||||
<x-forms.checkbox instantSave id="env.is_multiline" label="Is Multiline?" />
|
<x-forms.checkbox instantSave id="env.is_multiline" label="Is Multiline?" />
|
||||||
<x-forms.checkbox instantSave id="env.is_literal"
|
@if (!data_get($env, 'is_multiline'))
|
||||||
helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it form another value. In this case, you should set this to true."
|
<x-forms.checkbox instantSave id="env.is_literal"
|
||||||
label="Is Literal?" />
|
helper="This means that when you use $VARIABLES in a value, it should be interpreted as the actual characters '$VARIABLES' and not as the value of a variable named VARIABLE.<br><br>Useful if you have $ sign in your value and there are some characters after it, but you would not like to interpolate it form another value. In this case, you should set this to true."
|
||||||
|
label="Is Literal?" />
|
||||||
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
}
|
}
|
||||||
}">
|
}">
|
||||||
<div class="flex items-center gap-2 ">
|
<div class="flex items-center gap-2 ">
|
||||||
@if ($resource?->type() === 'application')
|
@if ($resource?->type() === 'application' || str($resource?->type())->startsWith('standalone'))
|
||||||
<h4>{{ $container }}</h4>
|
<h4>{{ $container }}</h4>
|
||||||
@else
|
@else
|
||||||
<h3>{{ str($container)->beforeLast('-')->headline() }}</h3>
|
<h3>{{ str($container)->beforeLast('-')->headline() }}</h3>
|
||||||
|
@ -6,7 +6,7 @@ set -e # Exit immediately if a command exits with a non-zero status
|
|||||||
#set -u # Treat unset variables as an error and exit
|
#set -u # Treat unset variables as an error and exit
|
||||||
set -o pipefail # Cause a pipeline to return the status of the last command that exited with a non-zero status
|
set -o pipefail # Cause a pipeline to return the status of the last command that exited with a non-zero status
|
||||||
|
|
||||||
VERSION="1.3.1"
|
VERSION="1.3.2"
|
||||||
DOCKER_VERSION="26.0"
|
DOCKER_VERSION="26.0"
|
||||||
|
|
||||||
CDN="https://cdn.coollabs.io/coolify"
|
CDN="https://cdn.coollabs.io/coolify"
|
||||||
@ -22,6 +22,11 @@ if [ "$OS_TYPE" = "pop" ]; then
|
|||||||
OS_TYPE="ubuntu"
|
OS_TYPE="ubuntu"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if the OS is linuxmint, if so, change it to ubuntu
|
||||||
|
if [ "$OS_TYPE" = "linuxmint" ]; then
|
||||||
|
OS_TYPE="ubuntu"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$OS_TYPE" = "arch" ]; then
|
if [ "$OS_TYPE" = "arch" ]; then
|
||||||
OS_VERSION="rolling"
|
OS_VERSION="rolling"
|
||||||
else
|
else
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.0.0-beta.295"
|
"version": "4.0.0-beta.297"
|
||||||
},
|
},
|
||||||
"sentinel": {
|
"sentinel": {
|
||||||
"version": "0.0.4"
|
"version": "0.0.4"
|
||||||
|
Loading…
Reference in New Issue
Block a user