mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
refactoring (#116)
- refactoring architecture - fix incomplete ssh logs - code editor for scripts in the app - remove Jobs and SSHCommands
This commit is contained in:
@ -1,6 +1,12 @@
|
||||
<x-server-layout :server="$server">
|
||||
<x-slot name="pageTitle">{{ __("PHP") }}</x-slot>
|
||||
|
||||
@error("version")
|
||||
<x-alert-danger>
|
||||
<x-input-error :messages="$errors->get('version')" />
|
||||
</x-alert-danger>
|
||||
@enderror
|
||||
|
||||
@include("php.partials.installed-versions")
|
||||
|
||||
@if ($server->defaultService("php"))
|
||||
|
@ -17,13 +17,11 @@ class="p-6"
|
||||
<x-select-input name="extension" class="mt-1 w-full">
|
||||
<option value="" selected>{{ __("Select") }}</option>
|
||||
@foreach (config("core.php_extensions") as $extension)
|
||||
<option value="{{ $extension }}" {{-- @if(in_array($extension, $installedExtensions)) disabled @endif --}}>
|
||||
<option
|
||||
value="{{ $extension }}"
|
||||
x-bind:disabled="installedExtensions.includes('{{ $extension }}')"
|
||||
>
|
||||
{{ $extension }}
|
||||
{{--
|
||||
@if (in_array($extension, $installedExtensions))
|
||||
({{ __("Installed") }})
|
||||
@endif
|
||||
--}}
|
||||
</option>
|
||||
@endforeach
|
||||
</x-select-input>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div x-data="{ version: '', uninstallAction: '' }">
|
||||
<div x-data="{ version: '', uninstallAction: '', installedExtensions: [] }">
|
||||
<x-card-header>
|
||||
<x-slot name="title">{{ __("Installed PHPs") }}</x-slot>
|
||||
<x-slot name="description">
|
||||
@ -33,7 +33,7 @@
|
||||
<x-slot name="content">
|
||||
<x-dropdown-link
|
||||
class="cursor-pointer"
|
||||
x-on:click="version = '{{ $php->version }}'; $dispatch('open-modal', 'install-extension')"
|
||||
x-on:click="version = '{{ $php->version }}'; installedExtensions = {{ json_encode($php->type_data['extensions'] ?? []) }}; $dispatch('open-modal', 'install-extension')"
|
||||
>
|
||||
{{ __("Install Extension") }}
|
||||
</x-dropdown-link>
|
||||
|
Reference in New Issue
Block a user