mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 08:52:35 +00:00
remote monitor (#167)
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
@include("services.partials.unit-actions.restart", ["disabled" => true])
|
||||
@include("services.partials.unit-actions.start", ["disabled" => true])
|
||||
@include("services.partials.unit-actions.stop", ["disabled" => true])
|
||||
@include("services.partials.unit-actions.enable", ["disabled" => true])
|
||||
@include("services.partials.unit-actions.disable", ["disabled" => true])
|
||||
@include("services.partials.unit-actions.uninstall")
|
@ -0,0 +1,37 @@
|
||||
<x-secondary-button class="!w-full" x-on:click="$dispatch('open-modal', 'install-remote-monitor')">
|
||||
Install
|
||||
</x-secondary-button>
|
||||
@push("modals")
|
||||
<x-modal name="install-remote-monitor">
|
||||
<form
|
||||
id="install-remote-monitor-form"
|
||||
hx-post="{{ route("servers.services.install", ["server" => $server]) }}"
|
||||
hx-swap="outerHTML"
|
||||
hx-select="#install-remote-monitor-form"
|
||||
class="p-6"
|
||||
>
|
||||
@csrf
|
||||
<input type="hidden" name="name" value="remote-monitor" />
|
||||
<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 Remote Monitor") }}
|
||||
</h2>
|
||||
|
||||
@error("type")
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
|
||||
<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-remote-monitor" hx-disable class="ml-3">
|
||||
{{ __("Install") }}
|
||||
</x-primary-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-modal>
|
||||
@endpush
|
@ -21,7 +21,8 @@ class="p-6"
|
||||
|
||||
<div class="mt-6">
|
||||
<x-alert-warning>
|
||||
Vito Agent is only works if you are running your Vito instance on a cloud not local!
|
||||
Vito Agent is only works if you are running your Vito instance on a cloud not local! Consider
|
||||
installing remote-monitor instead.
|
||||
</x-alert-warning>
|
||||
</div>
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
<x-icon-button
|
||||
:disabled="isset($disabled) ? $disabled : false"
|
||||
data-tooltip="Disable Service"
|
||||
class="cursor-pointer"
|
||||
href="{{ route('servers.services.disable', ['server' => $server, 'service' => $service]) }}"
|
||||
|
@ -1,5 +1,5 @@
|
||||
<x-icon-button
|
||||
:disabled="$service->status != \App\Enums\ServiceStatus::DISABLED"
|
||||
:disabled="isset($disabled) ? $disabled : $service->status != \App\Enums\ServiceStatus::DISABLED"
|
||||
data-tooltip="Enable Service"
|
||||
class="cursor-pointer"
|
||||
href="{{ route('servers.services.enable', ['server' => $server, 'service' => $service]) }}"
|
||||
|
@ -1,4 +1,5 @@
|
||||
<x-icon-button
|
||||
:disabled="isset($disabled) ? $disabled : false"
|
||||
data-tooltip="Restart Service"
|
||||
class="cursor-pointer"
|
||||
href="{{ route('servers.services.restart', ['server' => $server, 'service' => $service]) }}"
|
||||
|
@ -1,5 +1,5 @@
|
||||
<x-icon-button
|
||||
:disabled="$service->status != \App\Enums\ServiceStatus::STOPPED"
|
||||
:disabled="isset($disabled) ? $disabled : $service->status != \App\Enums\ServiceStatus::STOPPED"
|
||||
data-tooltip="Start Service"
|
||||
class="cursor-pointer"
|
||||
href="{{ route('servers.services.start', ['server' => $server, 'service' => $service]) }}"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<x-icon-button
|
||||
:disabled="isset($disabled) ? $disabled : $service->status != \App\Enums\ServiceStatus::READY"
|
||||
data-tooltip="Stop Service"
|
||||
:disabled="$service->status != \App\Enums\ServiceStatus::READY"
|
||||
class="cursor-pointer"
|
||||
href="{{ route('servers.services.stop', ['server' => $server, 'service' => $service]) }}"
|
||||
>
|
||||
|
Reference in New Issue
Block a user