2023-06-16 10:35:40 +00:00
|
|
|
<nav class="flex pt-2 pb-10">
|
|
|
|
<ol class="flex items-center">
|
|
|
|
<li class="inline-flex items-center">
|
|
|
|
<a class="text-xs truncate lg:text-sm"
|
|
|
|
href="{{ route('project.show', ['project_uuid' => request()->route('project_uuid')]) }}">
|
|
|
|
{{ $application->environment->project->name }}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div class="flex items-center">
|
|
|
|
<svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor" viewBox="0 0 20 20"
|
|
|
|
xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path fill-rule="evenodd"
|
|
|
|
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
|
|
|
clip-rule="evenodd"></path>
|
|
|
|
</svg>
|
|
|
|
<a class="text-xs truncate lg:text-sm"
|
|
|
|
href="{{ route('project.resources', ['environment_name' => request()->route('environment_name'), 'project_uuid' => request()->route('project_uuid')]) }}">{{ request()->route('environment_name') }}</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div class="flex items-center">
|
|
|
|
<svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor"
|
|
|
|
viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path fill-rule="evenodd"
|
|
|
|
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
|
|
|
clip-rule="evenodd"></path>
|
|
|
|
</svg>
|
|
|
|
<span class="text-xs truncate lg:text-sm">{{ data_get($application, 'name') }}</span>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div class="flex items-center">
|
|
|
|
<svg aria-hidden="true" class="w-4 h-4 mx-1 font-bold text-warning" fill="currentColor"
|
|
|
|
viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path fill-rule="evenodd"
|
|
|
|
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
|
|
|
clip-rule="evenodd"></path>
|
|
|
|
</svg>
|
|
|
|
<livewire:project.application.status :application="$application" />
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
2023-06-12 10:00:01 +00:00
|
|
|
<nav class="flex items-end gap-4 py-2 border-b-2 border-solid border-coolgray-200">
|
2023-05-22 13:47:40 +00:00
|
|
|
<a class="{{ request()->routeIs('project.application.configuration') ? 'text-white' : '' }}"
|
2023-05-09 07:54:43 +00:00
|
|
|
href="{{ route('project.application.configuration', [
|
|
|
|
'project_uuid' => Route::current()->parameters()['project_uuid'],
|
|
|
|
'application_uuid' => Route::current()->parameters()['application_uuid'],
|
|
|
|
'environment_name' => Route::current()->parameters()['environment_name'],
|
|
|
|
]) }}">
|
2023-05-22 20:30:33 +00:00
|
|
|
<button>Configuration</button>
|
2023-05-08 10:22:45 +00:00
|
|
|
</a>
|
2023-05-22 13:47:40 +00:00
|
|
|
<a class="{{ request()->routeIs('project.application.deployments') ? 'text-white' : '' }}"
|
2023-05-09 07:54:43 +00:00
|
|
|
href="{{ route('project.application.deployments', [
|
|
|
|
'project_uuid' => Route::current()->parameters()['project_uuid'],
|
|
|
|
'application_uuid' => Route::current()->parameters()['application_uuid'],
|
|
|
|
'environment_name' => Route::current()->parameters()['environment_name'],
|
|
|
|
]) }}">
|
2023-05-22 20:30:33 +00:00
|
|
|
<button>Deployments</button>
|
2023-05-16 18:47:59 +00:00
|
|
|
</a>
|
2023-05-18 13:19:23 +00:00
|
|
|
<div class="flex-1"></div>
|
2023-06-07 19:44:16 +00:00
|
|
|
<div class="group">
|
2023-06-16 11:57:36 +00:00
|
|
|
<label tabindex="0" class="flex items-center gap-2 cursor-pointer hover:text-white"> Links
|
2023-06-05 10:07:55 +00:00
|
|
|
<x-chevron-down />
|
2023-05-31 19:37:32 +00:00
|
|
|
</label>
|
2023-06-14 10:48:29 +00:00
|
|
|
<div class="absolute hidden group-hover:block">
|
|
|
|
<ul tabindex="0"
|
|
|
|
class="relative -ml-24 text-xs text-white normal-case rounded min-w-max menu bg-coolgray-200">
|
2023-05-26 08:20:09 +00:00
|
|
|
<li>
|
2023-06-14 10:48:29 +00:00
|
|
|
<a target="_blank" class="text-xs text-white rounded-none hover:no-underline"
|
2023-06-07 19:44:16 +00:00
|
|
|
href="{{ $application->gitBranchLocation }}">
|
2023-06-12 12:38:32 +00:00
|
|
|
<x-git-icon git="{{ $application->source?->getMorphClass() }}" />
|
2023-06-07 19:44:16 +00:00
|
|
|
Git Repository
|
2023-05-26 08:20:09 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2023-06-07 19:44:16 +00:00
|
|
|
@if (data_get($application, 'fqdn'))
|
2023-06-16 11:57:36 +00:00
|
|
|
@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"
|
|
|
|
target="_blank" href="{{ $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>{{ $fqdn }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
2023-06-07 19:44:16 +00:00
|
|
|
@endif
|
2023-06-16 14:22:17 +00:00
|
|
|
@if (data_get($application, 'previews')->count() > 0)
|
|
|
|
@foreach (data_get($application, 'previews') as $preview)
|
|
|
|
@if (data_get($preview, 'fqdn'))
|
|
|
|
<li>
|
|
|
|
<a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"
|
|
|
|
target="_blank" href="{{ data_get($preview, '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>PR{{ data_get($preview, 'pull_request_id') }} |
|
|
|
|
{{ data_get($preview, 'fqdn') }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@endif
|
2023-06-07 19:44:16 +00:00
|
|
|
@if (data_get($application, 'ports_mappings_array'))
|
|
|
|
@foreach ($application->ports_mappings_array as $port)
|
2023-06-16 09:01:27 +00:00
|
|
|
@if (isDev())
|
2023-06-07 19:44:16 +00:00
|
|
|
<li>
|
|
|
|
<a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"
|
|
|
|
target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}">
|
|
|
|
<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>{{ $port }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@else
|
|
|
|
<li>
|
2023-06-21 09:58:10 +00:00
|
|
|
<a class="text-xs text-white rounded-none hover:no-underline hover:bg-coollabs"
|
|
|
|
target="_blank"
|
2023-06-21 10:07:08 +00:00
|
|
|
href="http://{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}">
|
2023-06-21 09:58:10 +00:00
|
|
|
<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>{{ $port }}
|
2023-06-07 19:44:16 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
</ul>
|
|
|
|
</div>
|
2023-05-22 13:47:40 +00:00
|
|
|
</div>
|
2023-05-16 19:49:29 +00:00
|
|
|
<livewire:project.application.deploy :applicationId="$application->id" />
|
2023-04-19 10:42:15 +00:00
|
|
|
</nav>
|