2023-04-26 11:01:09 +00:00
|
|
|
<x-layout>
|
2023-06-02 10:34:45 +00:00
|
|
|
<h1>Configuration</h1>
|
2023-08-11 18:19:42 +00:00
|
|
|
<livewire:project.application.heading :application="$application" />
|
|
|
|
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex h-full pt-6">
|
2023-05-18 11:26:35 +00:00
|
|
|
<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-08-11 18:19:42 +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-08-11 18:19:42 +00:00
|
|
|
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
|
|
|
|
href="#">Environment
|
2023-05-04 13:45:53 +00:00
|
|
|
Variables</a>
|
2023-08-11 20:41:47 +00:00
|
|
|
@if ($application->git_based())
|
|
|
|
<a :class="activeTab === 'source' && 'text-white'"
|
|
|
|
@click.prevent="activeTab = 'source'; window.location.hash = 'source'" href="#">Source</a>
|
|
|
|
@endif
|
2023-09-22 12:47:25 +00:00
|
|
|
<a :class="activeTab === 'server' && 'text-white'"
|
2023-10-04 07:58:39 +00:00
|
|
|
@click.prevent="activeTab = 'server'; window.location.hash = 'server'" href="#">Server
|
2023-04-19 12:47:11 +00:00
|
|
|
</a>
|
2023-05-17 07:08:32 +00:00
|
|
|
<a :class="activeTab === 'storages' && 'text-white'"
|
2023-08-11 18:19:42 +00:00
|
|
|
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'" href="#">Storages
|
2023-05-16 11:11:05 +00:00
|
|
|
</a>
|
2023-10-25 08:43:07 +00:00
|
|
|
<a :class="activeTab === 'webhooks' && 'text-white'"
|
|
|
|
@click.prevent="activeTab = 'webhooks'; window.location.hash = 'webhooks'" href="#">Webhooks
|
|
|
|
</a>
|
2023-08-11 20:41:47 +00:00
|
|
|
@if ($application->git_based())
|
|
|
|
<a :class="activeTab === 'previews' && 'text-white'"
|
2023-09-29 12:26:19 +00:00
|
|
|
@click.prevent="activeTab = 'previews'; window.location.hash = 'previews'" href="#">Preview
|
2023-08-11 20:41:47 +00:00
|
|
|
Deployments
|
|
|
|
</a>
|
|
|
|
@endif
|
2023-09-22 13:29:19 +00:00
|
|
|
<a :class="activeTab === 'health' && 'text-white'"
|
2023-10-04 07:58:39 +00:00
|
|
|
@click.prevent="activeTab = 'health'; window.location.hash = 'health'" href="#">Health Checks
|
|
|
|
</a>
|
2023-05-17 10:14:18 +00:00
|
|
|
<a :class="activeTab === 'rollback' && 'text-white'"
|
2023-08-11 18:19:42 +00:00
|
|
|
@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'"
|
2023-08-11 18:19:42 +00:00
|
|
|
@click.prevent="activeTab = 'resource-limits'; window.location.hash = 'resource-limits'"
|
|
|
|
href="#">Resource Limits
|
2023-05-17 09:59:48 +00:00
|
|
|
</a>
|
2023-05-18 11:26:35 +00:00
|
|
|
<a :class="activeTab === 'danger' && 'text-white'"
|
2023-08-11 18:19:42 +00:00
|
|
|
@click.prevent="activeTab = 'danger'; window.location.hash = 'danger'" href="#">Danger Zone
|
2023-05-18 11:26:35 +00:00
|
|
|
</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-08-11 18:19:42 +00:00
|
|
|
<livewire:project.application.general :application="$application" />
|
2023-05-16 11:11:05 +00:00
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'environment-variables'">
|
2023-08-11 18:19:42 +00:00
|
|
|
<livewire:project.shared.environment-variable.all :resource="$application" />
|
2023-05-16 11:11:05 +00:00
|
|
|
</div>
|
2023-08-11 20:41:47 +00:00
|
|
|
@if ($application->git_based())
|
|
|
|
<div x-cloak x-show="activeTab === 'source'">
|
|
|
|
<livewire:project.application.source :application="$application" />
|
|
|
|
</div>
|
|
|
|
@endif
|
2023-09-22 12:47:25 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'server'">
|
2023-08-11 18:19:42 +00:00
|
|
|
<livewire:project.shared.destination :destination="$application->destination" />
|
2023-05-16 11:11:05 +00:00
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'storages'">
|
2023-10-04 07:58:39 +00:00
|
|
|
<livewire:project.service.storage :resource="$application" />
|
2023-05-16 11:11:05 +00:00
|
|
|
</div>
|
2023-10-25 08:43:07 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'webhooks'">
|
|
|
|
<livewire:project.shared.webhooks :resource="$application" />
|
|
|
|
</div>
|
2023-05-30 13:52:17 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'previews'">
|
2023-08-11 18:19:42 +00:00
|
|
|
<livewire:project.application.previews :application="$application" />
|
2023-05-30 13:52:17 +00:00
|
|
|
</div>
|
2023-09-22 13:29:19 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'health'">
|
|
|
|
<livewire:project.shared.health-checks :resource="$application" />
|
|
|
|
</div>
|
2023-05-17 10:14:18 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'rollback'">
|
2023-08-11 18:19:42 +00:00
|
|
|
<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'">
|
2023-08-11 18:19:42 +00:00
|
|
|
<livewire:project.shared.resource-limits :resource="$application" />
|
2023-05-17 09:59:48 +00:00
|
|
|
</div>
|
2023-05-18 11:26:35 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'danger'">
|
2023-08-11 18:19:42 +00:00
|
|
|
<livewire:project.shared.danger :resource="$application" />
|
2023-05-18 11:26:35 +00:00
|
|
|
</div>
|
2023-04-19 10:42:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-26 11:01:09 +00:00
|
|
|
</x-layout>
|