2023-04-26 11:01:09 +00:00
|
|
|
<x-layout>
|
2023-06-02 10:34:45 +00:00
|
|
|
<h1>Configuration</h1>
|
2023-06-07 19:44:16 +00:00
|
|
|
<nav class="flex pt-2 pb-10 text-sm">
|
|
|
|
<ol class="inline-flex items-center">
|
|
|
|
<li class="inline-flex items-center">
|
|
|
|
<a href="{{ route('project.show', ['project_uuid' => request()->route('project_uuid')]) }}">
|
2023-05-23 07:53:24 +00:00
|
|
|
{{ $application->environment->project->name }}</a>
|
2023-05-22 20:30:33 +00:00
|
|
|
</li>
|
2023-06-07 19:44:16 +00:00
|
|
|
<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
|
|
|
|
href="{{ route('project.resources', ['environment_name' => request()->route('environment_name'), 'project_uuid' => request()->route('project_uuid')]) }}">{{ request()->route('environment_name') }}</a>
|
|
|
|
</div>
|
2023-05-22 20:30:33 +00:00
|
|
|
</li>
|
2023-06-05 10:07:55 +00:00
|
|
|
<li>
|
2023-06-07 19:44:16 +00:00
|
|
|
<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>{{ data_get($application, 'name') }}</span>
|
|
|
|
</div>
|
2023-06-05 10:07:55 +00:00
|
|
|
</li>
|
2023-06-07 19:44:16 +00:00
|
|
|
</ol>
|
|
|
|
</nav>
|
|
|
|
|
2023-05-17 07:26:50 +00:00
|
|
|
<x-applications.navbar :application="$application" />
|
2023-05-18 11:26:35 +00:00
|
|
|
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex h-full pt-6">
|
|
|
|
<div class="flex flex-col gap-4 min-w-fit">
|
2023-05-17 07:08:32 +00:00
|
|
|
<a :class="activeTab === 'general' && 'text-white'"
|
2023-05-04 13:45:53 +00:00
|
|
|
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
|
2023-05-17 07:08:32 +00:00
|
|
|
<a :class="activeTab === 'environment-variables' && 'text-white'"
|
2023-05-04 13:45:53 +00:00
|
|
|
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
|
|
|
|
href="#">Environment
|
|
|
|
Variables</a>
|
2023-05-17 07:08:32 +00:00
|
|
|
<a :class="activeTab === 'source' && 'text-white'"
|
2023-05-04 13:45:53 +00:00
|
|
|
@click.prevent="activeTab = 'source'; window.location.hash = 'source'" href="#">Source</a>
|
2023-05-17 07:08:32 +00:00
|
|
|
<a :class="activeTab === 'destination' && 'text-white'"
|
2023-05-04 13:45:53 +00:00
|
|
|
@click.prevent="activeTab = 'destination'; window.location.hash = 'destination'"
|
2023-04-26 12:29:33 +00:00
|
|
|
href="#">Destination
|
2023-04-19 12:47:11 +00:00
|
|
|
</a>
|
2023-05-17 07:08:32 +00:00
|
|
|
<a :class="activeTab === 'storages' && 'text-white'"
|
2023-05-16 11:11:05 +00:00
|
|
|
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'" href="#">Storages
|
|
|
|
</a>
|
2023-05-30 13:52:17 +00:00
|
|
|
<a :class="activeTab === 'previews' && 'text-white'"
|
|
|
|
@click.prevent="activeTab = 'previews'; window.location.hash = 'previews'" href="#">Previews
|
2023-05-31 08:19:29 +00:00
|
|
|
Deployments
|
2023-05-30 13:52:17 +00:00
|
|
|
</a>
|
2023-05-17 10:14:18 +00:00
|
|
|
<a :class="activeTab === 'rollback' && 'text-white'"
|
|
|
|
@click.prevent="activeTab = 'rollback'; window.location.hash = 'rollback'" href="#">Rollback
|
2023-05-16 13:45:20 +00:00
|
|
|
</a>
|
2023-05-17 09:59:48 +00:00
|
|
|
<a :class="activeTab === 'resource-limits' && 'text-white'"
|
|
|
|
@click.prevent="activeTab = 'resource-limits'; window.location.hash = 'resource-limits'"
|
|
|
|
href="#">Resource Limits
|
|
|
|
</a>
|
2023-05-18 11:26:35 +00:00
|
|
|
<a :class="activeTab === 'danger' && 'text-white'"
|
|
|
|
@click.prevent="activeTab = 'danger'; window.location.hash = 'danger'" href="#">Danger Zone
|
|
|
|
</a>
|
2023-04-19 10:42:15 +00:00
|
|
|
</div>
|
2023-05-18 11:26:35 +00:00
|
|
|
<div class="w-full pl-8">
|
|
|
|
<div x-cloak x-show="activeTab === 'general'" class="h-full">
|
2023-05-16 11:11:05 +00:00
|
|
|
<livewire:project.application.general :application="$application" />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'environment-variables'">
|
|
|
|
<livewire:project.application.environment-variable.all :application="$application" />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'source'">
|
|
|
|
<livewire:project.application.source :application="$application" />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'destination'">
|
|
|
|
<livewire:project.application.destination :destination="$application->destination" />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'storages'">
|
|
|
|
<livewire:project.application.storages.all :application="$application" />
|
|
|
|
</div>
|
2023-05-30 13:52:17 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'previews'">
|
|
|
|
<livewire:project.application.previews :application="$application" />
|
|
|
|
</div>
|
2023-05-17 10:14:18 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'rollback'">
|
|
|
|
<livewire:project.application.rollback :application="$application" />
|
2023-05-16 13:45:20 +00:00
|
|
|
</div>
|
2023-05-17 09:59:48 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'resource-limits'">
|
|
|
|
<livewire:project.application.resource-limits :application="$application" />
|
|
|
|
</div>
|
2023-05-18 11:26:35 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'danger'">
|
|
|
|
<livewire:project.application.danger :application="$application" />
|
|
|
|
</div>
|
2023-04-19 10:42:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-26 11:01:09 +00:00
|
|
|
</x-layout>
|