mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-08 17:32:35 +00:00
@ -0,0 +1,48 @@
|
||||
<x-secondary-button class="!w-full" x-on:click="$dispatch('open-modal', 'install-mariadb')">Install</x-secondary-button>
|
||||
@push("modals")
|
||||
<x-modal name="install-mariadb">
|
||||
<form
|
||||
id="install-mariadb-form"
|
||||
hx-post="{{ route("servers.services.install", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-mariadb-form"
|
||||
class="p-6"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="name" value="mariadb" />
|
||||
<input type="hidden" name="type" value="database" />
|
||||
|
||||
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
||||
{{ __("Install mariadb") }}
|
||||
</h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="version" value="Version" />
|
||||
<x-select-input id="version" name="version" class="mt-1 w-full">
|
||||
@foreach (collect(config("core.databases_name"))->filter(fn ($value) => $value == "mariadb") as $db => $value)
|
||||
<option value="{{ config("core.databases_version")[$db] }}">
|
||||
{{ config("core.databases_name")[$db] }} {{ config("core.databases_version")[$db] }}
|
||||
</option>
|
||||
@endforeach
|
||||
</x-select-input>
|
||||
@error("version")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
|
||||
@error("type")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mt-6 flex justify-end">
|
||||
<x-secondary-button type="button" x-on:click="$dispatch('close')">
|
||||
{{ __("Cancel") }}
|
||||
</x-secondary-button>
|
||||
|
||||
<x-primary-button id="btn-install-mariadb" hx-disable class="ml-3">
|
||||
{{ __("Install") }}
|
||||
</x-primary-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-modal>
|
||||
@endpush
|
48
resources/views/services/partials/installers/mysql.blade.php
Normal file
48
resources/views/services/partials/installers/mysql.blade.php
Normal file
@ -0,0 +1,48 @@
|
||||
<x-secondary-button class="!w-full" x-on:click="$dispatch('open-modal', 'install-mysql')">Install</x-secondary-button>
|
||||
@push("modals")
|
||||
<x-modal name="install-mysql">
|
||||
<form
|
||||
id="install-mysql-form"
|
||||
hx-post="{{ route("servers.services.install", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-mysql-form"
|
||||
class="p-6"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="name" value="mysql" />
|
||||
<input type="hidden" name="type" value="database" />
|
||||
|
||||
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
||||
{{ __("Install Mysql") }}
|
||||
</h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="version" value="Version" />
|
||||
<x-select-input id="version" name="version" class="mt-1 w-full">
|
||||
@foreach (collect(config("core.databases_name"))->filter(fn ($value) => $value == "mysql") as $db => $value)
|
||||
<option value="{{ config("core.databases_version")[$db] }}">
|
||||
{{ config("core.databases_name")[$db] }} {{ config("core.databases_version")[$db] }}
|
||||
</option>
|
||||
@endforeach
|
||||
</x-select-input>
|
||||
@error("version")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
|
||||
@error("type")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mt-6 flex justify-end">
|
||||
<x-secondary-button type="button" x-on:click="$dispatch('close')">
|
||||
{{ __("Cancel") }}
|
||||
</x-secondary-button>
|
||||
|
||||
<x-primary-button id="btn-install-mysql" hx-disable class="ml-3">
|
||||
{{ __("Install") }}
|
||||
</x-primary-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-modal>
|
||||
@endpush
|
13
resources/views/services/partials/installers/nginx.blade.php
Normal file
13
resources/views/services/partials/installers/nginx.blade.php
Normal file
@ -0,0 +1,13 @@
|
||||
<form
|
||||
id="install-nginx"
|
||||
class="w-full"
|
||||
hx-post="{{ route("servers.services.install", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-nginx"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="name" value="nginx" />
|
||||
<input type="hidden" name="type" value="webserver" />
|
||||
<input type="hidden" name="version" value="latest" />
|
||||
<x-secondary-button class="!w-full" hx-disable>Install</x-secondary-button>
|
||||
</form>
|
43
resources/views/services/partials/installers/php.blade.php
Normal file
43
resources/views/services/partials/installers/php.blade.php
Normal file
@ -0,0 +1,43 @@
|
||||
<x-secondary-button class="!w-full" x-on:click="$dispatch('open-modal', 'install-php')">Install</x-secondary-button>
|
||||
@push("modals")
|
||||
<x-modal name="install-php">
|
||||
<form
|
||||
id="install-php-form"
|
||||
hx-post="{{ route("servers.services.install", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-php-form"
|
||||
class="p-6"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="type" value="php" />
|
||||
|
||||
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
||||
{{ __("Install PHP") }}
|
||||
</h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="version" value="Version" />
|
||||
<x-select-input id="version" name="version" class="mt-1 w-full">
|
||||
@foreach (config("core.php_versions") as $p)
|
||||
<option value="{{ $p }}">
|
||||
{{ $p }}
|
||||
</option>
|
||||
@endforeach
|
||||
</x-select-input>
|
||||
@error("version")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mt-6 flex justify-end">
|
||||
<x-secondary-button type="button" x-on:click="$dispatch('close')">
|
||||
{{ __("Cancel") }}
|
||||
</x-secondary-button>
|
||||
|
||||
<x-primary-button id="btn-install-php" hx-disable class="ml-3">
|
||||
{{ __("Install") }}
|
||||
</x-primary-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-modal>
|
||||
@endpush
|
@ -0,0 +1,50 @@
|
||||
<x-secondary-button class="!w-full" x-on:click="$dispatch('open-modal', 'install-postgresql')">
|
||||
Install
|
||||
</x-secondary-button>
|
||||
@push("modals")
|
||||
<x-modal name="install-postgresql">
|
||||
<form
|
||||
id="install-postgresql-form"
|
||||
hx-post="{{ route("servers.services.install", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-postgresql-form"
|
||||
class="p-6"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="name" value="postgresql" />
|
||||
<input type="hidden" name="type" value="database" />
|
||||
|
||||
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
||||
{{ __("Install postgresql") }}
|
||||
</h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="version" value="Version" />
|
||||
<x-select-input id="version" name="version" class="mt-1 w-full">
|
||||
@foreach (collect(config("core.databases_name"))->filter(fn ($value) => $value == "postgresql") as $db => $value)
|
||||
<option value="{{ config("core.databases_version")[$db] }}">
|
||||
{{ config("core.databases_name")[$db] }} {{ config("core.databases_version")[$db] }}
|
||||
</option>
|
||||
@endforeach
|
||||
</x-select-input>
|
||||
@error("version")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
|
||||
@error("type")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mt-6 flex justify-end">
|
||||
<x-secondary-button type="button" x-on:click="$dispatch('close')">
|
||||
{{ __("Cancel") }}
|
||||
</x-secondary-button>
|
||||
|
||||
<x-primary-button id="btn-install-postgresql" hx-disable class="ml-3">
|
||||
{{ __("Install") }}
|
||||
</x-primary-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-modal>
|
||||
@endpush
|
13
resources/views/services/partials/installers/redis.blade.php
Normal file
13
resources/views/services/partials/installers/redis.blade.php
Normal file
@ -0,0 +1,13 @@
|
||||
<form
|
||||
id="install-redis"
|
||||
class="w-full"
|
||||
hx-post="{{ route("servers.services.install", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-redis"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="name" value="redis" />
|
||||
<input type="hidden" name="type" value="memory_database" />
|
||||
<input type="hidden" name="version" value="latest" />
|
||||
<x-secondary-button class="!w-full" hx-disable>Install</x-secondary-button>
|
||||
</form>
|
@ -0,0 +1,13 @@
|
||||
<form
|
||||
id="install-supervisor"
|
||||
class="w-full"
|
||||
hx-post="{{ route("servers.services.install", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-supervisor"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="name" value="supervisor" />
|
||||
<input type="hidden" name="type" value="process_manager" />
|
||||
<input type="hidden" name="version" value="latest" />
|
||||
<x-secondary-button class="!w-full" hx-disable>Install</x-secondary-button>
|
||||
</form>
|
13
resources/views/services/partials/installers/ufw.blade.php
Normal file
13
resources/views/services/partials/installers/ufw.blade.php
Normal file
@ -0,0 +1,13 @@
|
||||
<form
|
||||
id="install-ufw"
|
||||
class="w-full"
|
||||
hx-post="{{ route("servers.services.install", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-ufw"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="name" value="ufw" />
|
||||
<input type="hidden" name="type" value="firewall" />
|
||||
<input type="hidden" name="version" value="latest" />
|
||||
<x-secondary-button class="!w-full" hx-disable>Install</x-secondary-button>
|
||||
</form>
|
@ -0,0 +1,39 @@
|
||||
<x-secondary-button class="!w-full" x-on:click="$dispatch('open-modal', 'install-vito-agent')">
|
||||
Install
|
||||
</x-secondary-button>
|
||||
@push("modals")
|
||||
<x-modal name="install-vito-agent">
|
||||
<form
|
||||
id="install-vito-agent-form"
|
||||
hx-post="{{ route("servers.services.install", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-vito-agent-form"
|
||||
class="p-6"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="name" value="vito-agent" />
|
||||
<input type="hidden" name="type" value="monitoring" />
|
||||
<input type="hidden" name="version" value="latest" />
|
||||
|
||||
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
||||
{{ __("Install Vito Agent") }}
|
||||
</h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-alert-warning>
|
||||
Vito Agent is only works if you are running your Vito instance on a cloud not local!
|
||||
</x-alert-warning>
|
||||
</div>
|
||||
|
||||
<div class="mt-6 flex justify-end">
|
||||
<x-secondary-button type="button" x-on:click="$dispatch('close')">
|
||||
{{ __("Cancel") }}
|
||||
</x-secondary-button>
|
||||
|
||||
<x-primary-button id="btn-vito-agent" hx-disable class="ml-3">
|
||||
{{ __("Install") }}
|
||||
</x-primary-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-modal>
|
||||
@endpush
|
Reference in New Issue
Block a user