2023-06-30 08:49:00 +00:00
|
|
|
<div class="group">
|
2023-09-22 09:23:49 +00:00
|
|
|
<label tabindex="0" class="flex items-center gap-2 cursor-pointer hover:text-white"> Open Application
|
2023-08-11 18:19:42 +00:00
|
|
|
<x-chevron-down />
|
2023-06-30 08:49:00 +00:00
|
|
|
</label>
|
|
|
|
|
2023-09-30 13:08:40 +00:00
|
|
|
<div class="absolute z-50 hidden group-hover:block">
|
2023-06-30 08:49:00 +00:00
|
|
|
<ul tabindex="0" class="relative -ml-24 text-xs text-white normal-case rounded min-w-max menu bg-coolgray-200">
|
2023-09-22 09:23:49 +00:00
|
|
|
@if (data_get($application, 'gitBrancLocation'))
|
|
|
|
<li>
|
|
|
|
<a target="_blank"
|
|
|
|
class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs hover:text-white"
|
|
|
|
href="{{ $application->gitBranchLocation }}">
|
|
|
|
<x-git-icon git="{{ $application->source?->getMorphClass() }}" />
|
|
|
|
Git Repository
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
2023-06-30 08:49:00 +00:00
|
|
|
@if (data_get($application, 'fqdn'))
|
2023-11-27 10:54:55 +00:00
|
|
|
@if (data_get($application, 'build_pack') === 'dockercompose')
|
|
|
|
@foreach (collect(json_decode($this->application->docker_compose_domains)) as $fqdn)
|
|
|
|
@if (data_get($fqdn, 'domain'))
|
|
|
|
<li>
|
|
|
|
<a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs hover:text-white"
|
|
|
|
target="_blank" href="{{ getFqdnWithoutPort(data_get($fqdn, 'domain')) }}">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"
|
|
|
|
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
|
|
|
|
stroke-linejoin="round">
|
|
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
|
|
<path d="M9 15l6 -6" />
|
|
|
|
<path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />
|
|
|
|
<path
|
|
|
|
d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />
|
|
|
|
</svg>{{ getFqdnWithoutPort(data_get($fqdn, 'domain')) }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
@foreach (Str::of(data_get($application, 'fqdn'))->explode(',') as $fqdn)
|
|
|
|
<li>
|
|
|
|
<a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs hover:text-white"
|
|
|
|
target="_blank" href="{{ getFqdnWithoutPort($fqdn) }}">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"
|
|
|
|
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
|
|
|
|
stroke-linejoin="round">
|
|
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
|
|
<path d="M9 15l6 -6" />
|
|
|
|
<path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />
|
|
|
|
<path
|
|
|
|
d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />
|
|
|
|
</svg>{{ getFqdnWithoutPort($fqdn) }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
2023-06-30 08:49:00 +00:00
|
|
|
@endif
|
2023-09-22 09:23:49 +00:00
|
|
|
@if (data_get($application, 'previews', collect([]))->count() > 0)
|
2023-06-30 08:49:00 +00:00
|
|
|
@foreach (data_get($application, 'previews') as $preview)
|
|
|
|
@if (data_get($preview, 'fqdn'))
|
|
|
|
<li>
|
2023-07-13 11:16:24 +00:00
|
|
|
<a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs hover:text-white"
|
2023-09-24 15:39:12 +00:00
|
|
|
target="_blank" href="{{ getFqdnWithoutPort(data_get($preview, 'fqdn')) }}">
|
2023-06-30 08:49:00 +00:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"
|
2023-08-11 18:19:42 +00:00
|
|
|
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
|
|
|
|
stroke-linejoin="round">
|
|
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
|
|
<path d="M9 15l6 -6" />
|
|
|
|
<path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />
|
2023-06-30 08:49:00 +00:00
|
|
|
<path
|
2023-08-11 18:19:42 +00:00
|
|
|
d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />
|
2023-08-08 09:51:36 +00:00
|
|
|
</svg>
|
|
|
|
PR{{ data_get($preview, 'pull_request_id') }} |
|
2023-06-30 08:49:00 +00:00
|
|
|
{{ data_get($preview, 'fqdn') }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
@if (data_get($application, 'ports_mappings_array'))
|
|
|
|
@foreach ($application->ports_mappings_array as $port)
|
2023-08-27 13:23:47 +00:00
|
|
|
@if (isDev())
|
2023-06-30 08:49:00 +00:00
|
|
|
<li>
|
2023-07-13 11:16:24 +00:00
|
|
|
<a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs hover:text-white"
|
2023-08-11 18:19:42 +00:00
|
|
|
target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">
|
2023-06-30 08:49:00 +00:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"
|
2023-08-11 18:19:42 +00:00
|
|
|
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
|
|
|
|
stroke-linejoin="round">
|
|
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
|
|
<path d="M9 15l6 -6" />
|
|
|
|
<path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />
|
2023-06-30 08:49:00 +00:00
|
|
|
<path
|
2023-08-11 18:19:42 +00:00
|
|
|
d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />
|
2023-08-08 09:51:36 +00:00
|
|
|
</svg>
|
|
|
|
Port {{ $port }}
|
2023-06-30 08:49:00 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@else
|
|
|
|
<li>
|
2023-07-13 11:16:24 +00:00
|
|
|
<a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs hover:text-white"
|
2023-08-11 18:19:42 +00:00
|
|
|
target="_blank"
|
|
|
|
href="http://{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}">
|
2023-06-30 08:49:00 +00:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24"
|
2023-08-11 18:19:42 +00:00
|
|
|
stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round"
|
|
|
|
stroke-linejoin="round">
|
|
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
|
|
<path d="M9 15l6 -6" />
|
|
|
|
<path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />
|
2023-06-30 08:49:00 +00:00
|
|
|
<path
|
2023-08-11 18:19:42 +00:00
|
|
|
d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />
|
2023-08-08 09:51:36 +00:00
|
|
|
</svg>
|
|
|
|
Port {{ $port }}
|
2023-06-30 08:49:00 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|