mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 07:52:34 +00:00
@ -0,0 +1,33 @@
|
||||
<x-modal name="install-phpmyadmin">
|
||||
<form wire:submit.prevent="install" class="p-6">
|
||||
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
||||
{{ __('Install PHPMyAdmin') }}
|
||||
</h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="allowed_ip" :value="__('Allowed IP')" />
|
||||
<x-text-input wire:model.defer="allowed_ip" id="allowed_ip" name="allowed_ip" class="mt-1 w-full" />
|
||||
@error('allowed_ip')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="port" :value="__('Port')" />
|
||||
<x-text-input wire:model.defer="port" id="port" name="port" class="mt-1 w-full" />
|
||||
@error('port')
|
||||
<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 class="ml-3" @started.window="$dispatch('close')">
|
||||
{{ __('Install') }}
|
||||
</x-primary-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-modal>
|
@ -1,11 +1,29 @@
|
||||
<div>
|
||||
<x-card-header>
|
||||
<x-slot name="title">{{ __("Services") }}</x-slot>
|
||||
<x-slot name="description">{{ __("All services that we installed on your server are here") }}</x-slot>
|
||||
<x-slot name="title">{{ __('Services') }}</x-slot>
|
||||
<x-slot name="description">{{ __('All services that we installed on your server are here') }}</x-slot>
|
||||
<x-slot name="aside">
|
||||
<x-dropdown>
|
||||
<x-slot name="trigger">
|
||||
<x-primary-button>
|
||||
{{ __('Install Service') }}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 ml-1">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
|
||||
</svg>
|
||||
</x-primary-button>
|
||||
</x-slot>
|
||||
<x-slot name="content">
|
||||
<x-dropdown-link class="cursor-pointer" x-on:click="$dispatch('open-modal', 'install-phpmyadmin')">
|
||||
{{ __('PHPMyAdmin') }}
|
||||
</x-dropdown-link>
|
||||
</x-slot>
|
||||
</x-dropdown>
|
||||
<livewire:services.install-p-h-p-my-admin :server="$server" />
|
||||
</x-slot>
|
||||
</x-card-header>
|
||||
|
||||
<div class="space-y-3">
|
||||
@foreach($services as $service)
|
||||
@foreach ($services as $service)
|
||||
<x-item-card>
|
||||
<div class="flex-none">
|
||||
<img src="{{ asset('static/images/' . $service->name . '.svg') }}" class="h-10 w-10" alt="">
|
||||
@ -20,24 +38,30 @@
|
||||
<x-dropdown>
|
||||
<x-slot name="trigger">
|
||||
<x-secondary-button>
|
||||
{{ __("Actions") }}
|
||||
{{ __('Actions') }}
|
||||
</x-secondary-button>
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="content">
|
||||
@if($service->status == \App\Enums\ServiceStatus::STOPPED)
|
||||
<x-dropdown-link class="cursor-pointer" wire:click="start({{ $service->id }})">
|
||||
{{ __("Start") }}
|
||||
@if($service->unit)
|
||||
@if ($service->status == \App\Enums\ServiceStatus::STOPPED)
|
||||
<x-dropdown-link class="cursor-pointer" wire:click="start({{ $service->id }})">
|
||||
{{ __('Start') }}
|
||||
</x-dropdown-link>
|
||||
@endif
|
||||
@if ($service->status == \App\Enums\ServiceStatus::READY)
|
||||
<x-dropdown-link class="cursor-pointer" wire:click="stop({{ $service->id }})">
|
||||
{{ __('Stop') }}
|
||||
</x-dropdown-link>
|
||||
@endif
|
||||
<x-dropdown-link class="cursor-pointer" wire:click="restart({{ $service->id }})">
|
||||
{{ __('Restart') }}
|
||||
</x-dropdown-link>
|
||||
@else
|
||||
<x-dropdown-link class="cursor-pointer" wire:click="uninstall({{ $service->id }})">
|
||||
{{ __('Uninstall') }}
|
||||
</x-dropdown-link>
|
||||
@endif
|
||||
@if($service->status == \App\Enums\ServiceStatus::READY)
|
||||
<x-dropdown-link class="cursor-pointer" wire:click="stop({{ $service->id }})">
|
||||
{{ __("Stop") }}
|
||||
</x-dropdown-link>
|
||||
@endif
|
||||
<x-dropdown-link class="cursor-pointer" wire:click="restart({{ $service->id }})">
|
||||
{{ __("Restart") }}
|
||||
</x-dropdown-link>
|
||||
</x-slot>
|
||||
</x-dropdown>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user