mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
refactoring
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
<x-td>
|
||||
@if($deployment->status != \App\Enums\DeploymentStatus::DEPLOYING)
|
||||
<x-icon-button wire:click="showLog({{ $deployment->id }})" wire:loading.attr="disabled">
|
||||
Logs
|
||||
</x-icon-button>
|
||||
@endif
|
||||
</x-td>
|
||||
|
36
resources/views/livewire/application/env.blade.php
Normal file
36
resources/views/livewire/application/env.blade.php
Normal file
@ -0,0 +1,36 @@
|
||||
<div x-data="">
|
||||
<x-secondary-button x-on:click="$dispatch('open-modal', 'update-env')">{{ __(".env") }}</x-secondary-button>
|
||||
<x-modal name="update-env">
|
||||
<form wire:submit.prevent="save" class="p-6">
|
||||
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100">
|
||||
{{ __('Update .env File') }}
|
||||
</h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<x-input-label for="env" :value="__('.env')" />
|
||||
<x-textarea wire:model.defer="env" rows="10" id="env" name="env" class="mt-1 w-full" />
|
||||
@error('env')
|
||||
<x-input-error class="mt-2" :messages="$message" />
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="mt-6 flex items-center justify-end">
|
||||
@if (session('status') === 'updating-env')
|
||||
<p class="mr-2">{{ __('Updating env...') }}</p>
|
||||
@endif
|
||||
|
||||
@if (session('status') === 'env-updated')
|
||||
<p class="mr-2">{{ __('Saved') }}</p>
|
||||
@endif
|
||||
|
||||
<x-secondary-button type="button" x-on:click="$dispatch('close')">
|
||||
{{ __('Cancel') }}
|
||||
</x-secondary-button>
|
||||
|
||||
<x-primary-button class="ml-3">
|
||||
{{ __('Save') }}
|
||||
</x-primary-button>
|
||||
</div>
|
||||
</form>
|
||||
</x-modal>
|
||||
</div>
|
@ -10,6 +10,9 @@
|
||||
<div class="mr-2">
|
||||
<livewire:application.deployment-script :site="$site" />
|
||||
</div>
|
||||
<div class="mr-2">
|
||||
<livewire:application.env :site="$site" />
|
||||
</div>
|
||||
<div>
|
||||
<livewire:application.deploy :site="$site" />
|
||||
</div>
|
||||
|
@ -16,6 +16,7 @@
|
||||
<x-slot name="trigger">
|
||||
<x-secondary-button>
|
||||
{{ __("Change") }}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="ml-1 h-5 w-5"><path fill-rule="evenodd" d="M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z" clip-rule="evenodd"></path></svg>
|
||||
</x-secondary-button>
|
||||
</x-slot>
|
||||
<x-slot name="content">
|
||||
|
@ -3,7 +3,9 @@
|
||||
<x-slot name="title">{{ __("Installed PHPs") }}</x-slot>
|
||||
<x-slot name="description">{{ __("You can see and manage your PHP installations") }}</x-slot>
|
||||
<x-slot name="aside">
|
||||
@include('livewire.php.partials.install-new-php')
|
||||
<div class="flex items-center">
|
||||
@include('livewire.php.partials.install-new-php')
|
||||
</div>
|
||||
</x-slot>
|
||||
</x-card-header>
|
||||
|
||||
@ -22,6 +24,7 @@
|
||||
<x-slot name="trigger">
|
||||
<x-secondary-button>
|
||||
{{ __("Actions") }}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="ml-1 h-5 w-5"><path fill-rule="evenodd" d="M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z" clip-rule="evenodd"></path></svg>
|
||||
</x-secondary-button>
|
||||
</x-slot>
|
||||
<x-slot name="content">
|
||||
|
@ -1,7 +1,8 @@
|
||||
<x-dropdown>
|
||||
<x-slot name="trigger">
|
||||
<x-primary-button>
|
||||
{{ __("Install") }}
|
||||
{{ __("Install PHP") }}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="ml-1 h-5 w-5"><path fill-rule="evenodd" d="M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z" clip-rule="evenodd"></path></svg>
|
||||
</x-primary-button>
|
||||
</x-slot>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div>
|
||||
<x-card-header>
|
||||
<x-slot name="title">{{ __("Queues") }}</x-slot>
|
||||
<x-slot name="description">{{ __("You can manage and create queues for your site") }}</x-slot>
|
||||
<x-slot name="description">{{ __("You can manage and create queues for your site via supervisor") }}</x-slot>
|
||||
<x-slot name="aside">
|
||||
<livewire:queues.create-queue :site="$site" />
|
||||
</x-slot>
|
||||
|
@ -1,11 +1,25 @@
|
||||
<div>
|
||||
@if($site->status === \App\Enums\SiteStatus::INSTALLING)
|
||||
@include('livewire.sites.partials.installing', ['site' => $site])
|
||||
|
||||
<livewire:server-logs.logs-list :server="$site->server" :site="$site" :count="10" />
|
||||
@endif
|
||||
@if($site->status === \App\Enums\SiteStatus::INSTALLATION_FAILED)
|
||||
@include('livewire.sites.partials.installation-failed', ['site' => $site])
|
||||
|
||||
<livewire:server-logs.logs-list :server="$site->server" :site="$site" :count="10" />
|
||||
@endif
|
||||
@if($site->status === \App\Enums\SiteStatus::READY)
|
||||
@include('livewire.sites.partials.site-overview', ['site' => $site])
|
||||
@if($site->type == \App\Enums\SiteType::LARAVEL)
|
||||
<livewire:application.laravel-app :site="$site" />
|
||||
@endif
|
||||
|
||||
@if($site->type == \App\Enums\SiteType::PHP)
|
||||
<livewire:application.php-app :site="$site" />
|
||||
@endif
|
||||
|
||||
@if($site->type == \App\Enums\SiteType::WORDPRESS)
|
||||
<livewire:application.wordpress-app :site="$site" />
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user