Implement instance-wide SPA navigation toggle that enables smooth page transitions with prefetching on hover. Excludes terminal links which require full page lifecycle for WebSocket connections. Adds defensive checks to global-search component for SPA navigation compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
44 lines
2 KiB
PHP
44 lines
2 KiB
PHP
<div>
|
|
<x-slot:title>
|
|
Destinations | Coolify
|
|
</x-slot>
|
|
<div class="flex items-center gap-2">
|
|
<h1>Destinations</h1>
|
|
@if ($servers->count() > 0)
|
|
@can('createAnyResource')
|
|
<x-modal-input buttonTitle="+ Add" title="New Destination">
|
|
<livewire:destination.new.docker />
|
|
</x-modal-input>
|
|
@endcan
|
|
@endif
|
|
</div>
|
|
<div class="subtitle">Network endpoints to deploy your resources.</div>
|
|
<div class="grid gap-4 lg:grid-cols-2 -mt-1">
|
|
@forelse ($servers as $server)
|
|
@forelse ($server->destinations() as $destination)
|
|
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
|
|
<a class="coolbox group" {{ wireNavigate() }}
|
|
href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
|
|
<div class="flex flex-col justify-center mx-6">
|
|
<div class="box-title">{{ $destination->name }}</div>
|
|
<div class="box-description">Server: {{ $destination->server->name }}</div>
|
|
</div>
|
|
</a>
|
|
@endif
|
|
@if ($destination->getMorphClass() === 'App\Models\SwarmDocker')
|
|
<a class="coolbox group" {{ wireNavigate() }}
|
|
href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
|
|
<div class="flex flex-col mx-6">
|
|
<div class="box-title">{{ $destination->name }}</div>
|
|
<div class="box-description">server: {{ $destination->server->name }}</div>
|
|
</div>
|
|
</a>
|
|
@endif
|
|
@empty
|
|
<div>No destinations found.</div>
|
|
@endforelse
|
|
@empty
|
|
<div>No servers found.</div>
|
|
@endforelse
|
|
</div>
|
|
</div>
|