mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
add postgresql (#118)
This commit is contained in:
@ -65,20 +65,22 @@ class="mt-1 w-full"
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<label for="db-remote" class="inline-flex items-center">
|
||||
<input
|
||||
id="db-remote"
|
||||
type="checkbox"
|
||||
x-model="remote"
|
||||
name="remote"
|
||||
class="rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:border-gray-700 dark:bg-gray-900 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"
|
||||
/>
|
||||
<span class="ml-2 text-sm text-gray-600 dark:text-gray-400">
|
||||
{{ __("Enable remote access") }}
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
@if (in_array($server->database()?->name, config("core.database_features.remote")))
|
||||
<div class="mt-6">
|
||||
<label for="db-remote" class="inline-flex items-center">
|
||||
<input
|
||||
id="db-remote"
|
||||
type="checkbox"
|
||||
x-model="remote"
|
||||
name="remote"
|
||||
class="rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:border-gray-700 dark:bg-gray-900 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"
|
||||
/>
|
||||
<span class="ml-2 text-sm text-gray-600 dark:text-gray-400">
|
||||
{{ __("Enable remote access") }}
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div x-show="remote">
|
||||
<div class="mt-6">
|
||||
|
@ -41,20 +41,22 @@ class="mt-1 w-full"
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<label for="user-remote" class="inline-flex items-center">
|
||||
<input
|
||||
id="user-remote"
|
||||
type="checkbox"
|
||||
x-model="remote"
|
||||
name="remote"
|
||||
class="rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:border-gray-700 dark:bg-gray-900 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"
|
||||
/>
|
||||
<span class="ml-2 text-sm text-gray-600 dark:text-gray-400">
|
||||
{{ __("Enable remote access") }}
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
@if (in_array($server->database()?->name, config("core.database_features.remote")))
|
||||
<div class="mt-6">
|
||||
<label for="user-remote" class="inline-flex items-center">
|
||||
<input
|
||||
id="user-remote"
|
||||
type="checkbox"
|
||||
x-model="remote"
|
||||
name="remote"
|
||||
class="rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:border-gray-700 dark:bg-gray-900 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"
|
||||
/>
|
||||
<span class="ml-2 text-sm text-gray-600 dark:text-gray-400">
|
||||
{{ __("Enable remote access") }}
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div x-show="remote">
|
||||
<div class="mt-6">
|
||||
|
@ -1,9 +1,10 @@
|
||||
@php
|
||||
use App\Enums\Database;
|
||||
use App\Enums\Webserver;
|
||||
use App\Enums\ServerType;
|
||||
@endphp
|
||||
|
||||
<x-container x-data="">
|
||||
<x-container x-data="{type: '{{ old('type', ServerType::REGULAR) }}'}">
|
||||
<x-card>
|
||||
<x-slot name="title">{{ __("Create new Server") }}</x-slot>
|
||||
<x-slot name="description">
|
||||
@ -193,7 +194,7 @@ class="mt-1 block w-full"
|
||||
|
||||
<div>
|
||||
<x-input-label for="type" value="Server Type" />
|
||||
<x-select-input id="type" name="type" class="mt-1 w-full">
|
||||
<x-select-input x-model="type" id="type" name="type" class="mt-1 w-full">
|
||||
@foreach (config("core.server_types") as $serverType)
|
||||
<option value="{{ $serverType }}" @if($serverType == old('type')) selected @endif>
|
||||
{{ $serverType }}
|
||||
@ -206,7 +207,7 @@ class="mt-1 block w-full"
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 gap-3 lg:grid-cols-3">
|
||||
<div>
|
||||
<div x-show="['regular'].includes(type)">
|
||||
<x-input-label for="webserver" value="Webserver" />
|
||||
<x-select-input id="webserver" name="webserver" class="mt-1 w-full">
|
||||
@foreach (config("core.webservers") as $ws)
|
||||
@ -219,7 +220,7 @@ class="mt-1 block w-full"
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
<div>
|
||||
<div x-show="['regular', 'database'].includes(type)">
|
||||
<x-input-label for="database" value="Database" />
|
||||
<x-select-input id="database" name="database" class="mt-1 w-full">
|
||||
@foreach (config("core.databases") as $db)
|
||||
@ -232,7 +233,7 @@ class="mt-1 block w-full"
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
<div>
|
||||
<div x-show="['regular'].includes(type)">
|
||||
<x-input-label for="php" value="PHP" />
|
||||
<x-select-input id="php" name="php" class="mt-1 w-full">
|
||||
@foreach (config("core.php_versions") as $p)
|
||||
|
Reference in New Issue
Block a user