ui fixes
This commit is contained in:
parent
a6e76dfabc
commit
82f3d54bc3
@ -116,7 +116,6 @@ class ProjectController extends Controller
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
$service->parse(isNew: true);
|
$service->parse(isNew: true);
|
||||||
|
|
||||||
return redirect()->route('project.service.configuration', [
|
return redirect()->route('project.service.configuration', [
|
||||||
'service_uuid' => $service->uuid,
|
'service_uuid' => $service->uuid,
|
||||||
'environment_name' => $environment->name,
|
'environment_name' => $environment->name,
|
||||||
|
@ -47,7 +47,7 @@ class Select extends Component
|
|||||||
}
|
}
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
if ($this->search) $this->loadServices();
|
$this->loadServices();
|
||||||
return view('livewire.project.new.select');
|
return view('livewire.project.new.select');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,6 @@ function remote_process(
|
|||||||
// }
|
// }
|
||||||
function savePrivateKeyToFs(Server $server)
|
function savePrivateKeyToFs(Server $server)
|
||||||
{
|
{
|
||||||
ray(data_get($server, 'privateKey.private_key'));
|
|
||||||
if (data_get($server, 'privateKey.private_key') === null) {
|
if (data_get($server, 'privateKey.private_key') === null) {
|
||||||
throw new \Exception("Server {$server->name} does not have a private key");
|
throw new \Exception("Server {$server->name} does not have a private key");
|
||||||
}
|
}
|
||||||
|
@ -967,6 +967,10 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
$foundEnv = EnvironmentVariable::where([
|
||||||
|
'key' => $key,
|
||||||
|
'service_id' => $resource->id,
|
||||||
|
])->first();
|
||||||
if ($value->contains(':-')) {
|
if ($value->contains(':-')) {
|
||||||
$key = $value->before(':');
|
$key = $value->before(':');
|
||||||
$defaultValue = $value->after(':-');
|
$defaultValue = $value->after(':-');
|
||||||
|
@ -156,7 +156,7 @@
|
|||||||
<x-forms.button wire:click='loadServices'>Reload Services List</x-forms.button>
|
<x-forms.button wire:click='loadServices'>Reload Services List</x-forms.button>
|
||||||
<input
|
<input
|
||||||
class="w-full text-white rounded input input-sm bg-coolgray-200 disabled:bg-coolgray-200/50 disabled:border-none placeholder:text-coolgray-500 read-only:text-neutral-500 read-only:bg-coolgray-200/50"
|
class="w-full text-white rounded input input-sm bg-coolgray-200 disabled:bg-coolgray-200/50 disabled:border-none placeholder:text-coolgray-500 read-only:text-neutral-500 read-only:bg-coolgray-200/50"
|
||||||
wire:model.debounce.200ms="search" placeholder="Search..."></input>
|
wire:model.live.debounce.200ms="search" placeholder="Search...">
|
||||||
</div>
|
</div>
|
||||||
<div class="grid justify-start grid-cols-1 gap-2 text-left xl:grid-cols-3">
|
<div class="grid justify-start grid-cols-1 gap-2 text-left xl:grid-cols-3">
|
||||||
@if ($loadingServices)
|
@if ($loadingServices)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<x-forms.button type="submit">Save</x-forms.button>
|
<x-forms.button type="submit">Save</x-forms.button>
|
||||||
<x-forms.button class="w-64"
|
<x-forms.button class="w-64"
|
||||||
onclick="Livewire.dispatch('openModal', {component: {component: 'modals.edit-compose', arguments: arguments: {{ json_encode(['serviceId' => $service->id]) }} } })">Edit
|
onclick="Livewire.dispatch('openModal', {component: 'modal.edit-compose', arguments: {{ json_encode(['serviceId' => $service->id]) }} })">Edit
|
||||||
Compose
|
Compose
|
||||||
File</x-forms.button>
|
File</x-forms.button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
<div>
|
|
||||||
@isset($jsPath)
|
|
||||||
<script>
|
|
||||||
{!! file_get_contents($jsPath) !!}
|
|
||||||
</script>
|
|
||||||
@endisset
|
|
||||||
@isset($cssPath)
|
|
||||||
<style>
|
|
||||||
{!! file_get_contents($cssPath) !!}
|
|
||||||
</style>
|
|
||||||
@endisset
|
|
||||||
|
|
||||||
<div x-data="LivewireUIModal()" x-init="init()" x-on:close.stop="setShowPropertyTo(false)"
|
|
||||||
x-on:keydown.escape.window="closeModalOnEscape()" x-show="show" class="fixed inset-0 z-40 overflow-y-auto"
|
|
||||||
style="display: none;">
|
|
||||||
<div class="flex items-end justify-center px-4 pt-4 pb-10 text-center sm:block sm:p-0">
|
|
||||||
<div x-show="show" x-on:click="closeModalOnClickAway()" x-transition:enter="ease-out duration-300"
|
|
||||||
x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
|
|
||||||
x-transition:leave="ease-in duration-200" x-transition:leave-start="opacity-100"
|
|
||||||
x-transition:leave-end="opacity-0" class="fixed inset-0 transition-all transform">
|
|
||||||
<div class="absolute inset-0 bg-black opacity-70"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{-- <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span> --}}
|
|
||||||
|
|
||||||
<div x-show="show && showActiveComponent" x-transition:enter="ease-out duration-200"
|
|
||||||
x-transition:enter-start="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
||||||
x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100"
|
|
||||||
x-transition:leave="ease-in duration-200"
|
|
||||||
x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100"
|
|
||||||
x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
||||||
class="w-full overflow-hidden text-left align-bottom transition-all transform sm:my-8 sm:align-middle sm:w-full"
|
|
||||||
id="modal-container" x-trap.noscroll.inert="show && showActiveComponent" aria-modal="true">
|
|
||||||
@forelse($components as $id => $component)
|
|
||||||
<div class="sm:mx-20" x-show.immediate="activeComponent == '{{ $id }}'"
|
|
||||||
x-ref="{{ $id }}" wire:key="{{ $id }}">
|
|
||||||
@livewire($component['name'], $component['attributes'], key($id))
|
|
||||||
</div>
|
|
||||||
@empty
|
|
||||||
@endforelse
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
57
resources/views/vendor/wire-elements-modal/modal.blade.php
vendored
Normal file
57
resources/views/vendor/wire-elements-modal/modal.blade.php
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<div>
|
||||||
|
@isset($jsPath)
|
||||||
|
<script>{!! file_get_contents($jsPath) !!}</script>
|
||||||
|
@endisset
|
||||||
|
@isset($cssPath)
|
||||||
|
<style>{!! file_get_contents($cssPath) !!}</style>
|
||||||
|
@endisset
|
||||||
|
|
||||||
|
<div
|
||||||
|
x-data="LivewireUIModal()"
|
||||||
|
x-on:close.stop="setShowPropertyTo(false)"
|
||||||
|
x-on:keydown.escape.window="closeModalOnEscape()"
|
||||||
|
x-show="show"
|
||||||
|
class="fixed inset-0 z-10 overflow-y-auto"
|
||||||
|
style="display: none;"
|
||||||
|
>
|
||||||
|
<div class="flex items-end justify-center min-h-screen px-4 pt-4 pb-10 text-center sm:block sm:p-0">
|
||||||
|
<div
|
||||||
|
x-show="show"
|
||||||
|
x-on:click="closeModalOnClickAway()"
|
||||||
|
x-transition:enter="ease-out duration-300"
|
||||||
|
x-transition:enter-start="opacity-0"
|
||||||
|
x-transition:enter-end="opacity-100"
|
||||||
|
x-transition:leave="ease-in duration-200"
|
||||||
|
x-transition:leave-start="opacity-100"
|
||||||
|
x-transition:leave-end="opacity-0"
|
||||||
|
class="fixed inset-0 transition-all transform"
|
||||||
|
>
|
||||||
|
<div class="absolute inset-0 bg-black opacity-70"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{-- <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span> --}}
|
||||||
|
|
||||||
|
<div
|
||||||
|
x-show="show && showActiveComponent"
|
||||||
|
x-transition:enter="ease-out duration-300"
|
||||||
|
x-transition:enter-start="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
||||||
|
x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100"
|
||||||
|
x-transition:leave="ease-in duration-200"
|
||||||
|
x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100"
|
||||||
|
x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
||||||
|
x-bind:class="modalWidth"
|
||||||
|
class="w-full overflow-hidden text-left align-bottom transition-all transform sm:align-middle sm:w-full"
|
||||||
|
id="modal-container"
|
||||||
|
x-trap.noscroll.inert="show && showActiveComponent"
|
||||||
|
aria-modal="true"
|
||||||
|
>
|
||||||
|
@forelse($components as $id => $component)
|
||||||
|
<div class="sm:mx-20 sm:my-8" x-show.immediate="activeComponent == '{{ $id }}'" x-ref="{{ $id }}" wire:key="{{ $id }}">
|
||||||
|
@livewire($component['name'], $component['arguments'], key($id))
|
||||||
|
</div>
|
||||||
|
@empty
|
||||||
|
@endforelse
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
Loading…
x
Reference in New Issue
Block a user