refactoring (#116)

- refactoring architecture
- fix incomplete ssh logs
- code editor for scripts in the app
- remove Jobs and SSHCommands
This commit is contained in:
Saeed Vaziry
2024-03-14 20:03:43 +01:00
committed by GitHub
parent cee4a70c3c
commit 428140b931
472 changed files with 24110 additions and 8159 deletions

View File

@ -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"))

View File

@ -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>

View File

@ -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>