mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 17:02:34 +00:00
refactoring
This commit is contained in:
@ -1,42 +1,53 @@
|
||||
<x-app-layout>
|
||||
<x-app-layout :server="$site->server">
|
||||
@if(isset($pageTitle))
|
||||
<x-slot name="pageTitle">{{ $site->domain }} - {{ $pageTitle }}</x-slot>
|
||||
@endif
|
||||
|
||||
<x-container class="flex">
|
||||
@if($site->status == \App\Enums\SiteStatus::READY)
|
||||
<div class="hidden lg:block lg:flex-none w-64">
|
||||
<x-sidebar-link :href="route('servers.sites.show', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.show')">
|
||||
<x-heroicon-o-home class="w-6 h-6 mr-1" />
|
||||
{{ __('Overview') }}
|
||||
</x-sidebar-link>
|
||||
<x-sidebar-link :href="route('servers.sites.application', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.application')">
|
||||
<x-heroicon-o-window class="w-6 h-6 mr-1" />
|
||||
{{ __('Application') }}
|
||||
</x-sidebar-link>
|
||||
<x-sidebar-link :href="route('servers.sites.ssl', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.ssl')">
|
||||
<x-heroicon-o-lock-closed class="w-6 h-6 mr-1" />
|
||||
{{ __('SSL') }}
|
||||
</x-sidebar-link>
|
||||
<x-sidebar-link :href="route('servers.sites.queues', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.queues')">
|
||||
<x-heroicon-o-queue-list class="w-6 h-6 mr-1" />
|
||||
{{ __('Queues') }}
|
||||
</x-sidebar-link>
|
||||
<x-sidebar-link :href="route('servers.sites.settings', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.settings')">
|
||||
<x-heroicon-o-cog-6-tooth class="w-6 h-6 mr-1" />
|
||||
{{ __('Settings') }}
|
||||
</x-sidebar-link>
|
||||
<x-sidebar-link :href="route('servers.sites.logs', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.logs')">
|
||||
<x-heroicon-o-square-3-stack-3d class="w-6 h-6 mr-1" />
|
||||
{{ __('Logs') }}
|
||||
</x-sidebar-link>
|
||||
<x-sidebar-link :href="route('servers.sites', ['server' => $site->server])">
|
||||
<x-heroicon-o-arrow-left class="w-6 h-6 mr-1" />
|
||||
{{ __('Go Back') }}
|
||||
</x-sidebar-link>
|
||||
</div>
|
||||
@endif
|
||||
<x-slot name="header">
|
||||
<h2 class="text-lg font-semibold">
|
||||
<a href="{{ $site->activeSsl ? 'https://' : 'http://' . $site->domain }}" target="_blank">{{ $site->domain }}</a>
|
||||
</h2>
|
||||
<div class="flex flex-col items-end">
|
||||
<livewire:sites.site-status :site="$site" />
|
||||
<x-input-label class="cursor-pointer mt-1" x-data="{ copied: false }" x-clipboard.raw="{{ $site->web_directory_path }}">
|
||||
<div class="text-sm flex items-center" x-on:click="copied = true; setTimeout(() => {copied = false}, 2000)">
|
||||
<div x-show="copied" class="flex items-center mr-1">
|
||||
<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 text-primary-600 dark:text-white font-bold">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0118 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3l1.5 1.5 3-3.75" />
|
||||
</svg>
|
||||
</div>
|
||||
{{ $site->web_directory_path }}
|
||||
</div>
|
||||
</x-input-label>
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="sidebar">
|
||||
<div class="flex items-center justify-center py-2 px-3 h-16 border-b border-gray-200 dark:border-gray-800">
|
||||
<div class="w-full">
|
||||
@include('layouts.partials.site-select', ['server' => $site->server, 'site' => $site ])
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-3 space-y-2">
|
||||
<x-secondary-sidebar-link :href="route('servers.sites.show', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.show')">
|
||||
{{ __('Application') }}
|
||||
</x-secondary-sidebar-link>
|
||||
<x-secondary-sidebar-link :href="route('servers.sites.ssl', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.ssl')">
|
||||
{{ __('SSL') }}
|
||||
</x-secondary-sidebar-link>
|
||||
<x-secondary-sidebar-link :href="route('servers.sites.queues', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.queues')">
|
||||
{{ __('Queues') }}
|
||||
</x-secondary-sidebar-link>
|
||||
<x-secondary-sidebar-link :href="route('servers.sites.settings', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.settings')">
|
||||
{{ __('Settings') }}
|
||||
</x-secondary-sidebar-link>
|
||||
<x-secondary-sidebar-link :href="route('servers.sites.logs', ['server' => $site->server, 'site' => $site])" :active="request()->routeIs('servers.sites.logs')">
|
||||
{{ __('Logs') }}
|
||||
</x-secondary-sidebar-link>
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
<x-container class="flex">
|
||||
<div class="w-full space-y-10">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user