2023-11-21 14:31:46 +00:00
|
|
|
<div>
|
2023-06-02 10:34:45 +00:00
|
|
|
<h1>Configuration</h1>
|
2024-04-12 10:44:49 +00:00
|
|
|
<livewire:project.shared.configuration-checker :resource="$application" />
|
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">
|
2024-03-24 15:00:25 +00:00
|
|
|
<div class="flex flex-col gap-2 xl:w-48">
|
|
|
|
<a class="menu-item" :class="activeTab === 'general' && 'menu-item-active'"
|
2023-08-11 18:19:42 +00:00
|
|
|
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
|
2023-12-18 13:01:25 +00:00
|
|
|
@if ($application->destination->server->isSwarm())
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'swarm' && 'menu-item-active'"
|
2023-12-18 13:01:25 +00:00
|
|
|
@click.prevent="activeTab = 'swarm'; window.location.hash = 'swarm'" href="#">Swarm
|
|
|
|
Configuration</a>
|
|
|
|
@endif
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'advanced' && 'menu-item-active'"
|
2023-11-20 10:35:31 +00:00
|
|
|
@click.prevent="activeTab = 'advanced'; window.location.hash = 'advanced'" href="#">Advanced</a>
|
2023-11-10 12:46:14 +00:00
|
|
|
@if ($application->build_pack !== 'static')
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'environment-variables' && 'menu-item-active'"
|
2023-11-10 12:46:14 +00:00
|
|
|
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
|
|
|
|
href="#">Environment
|
|
|
|
Variables</a>
|
|
|
|
@endif
|
2024-04-15 17:47:17 +00:00
|
|
|
@if ($application->build_pack !== 'static')
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'storages' && 'menu-item-active'"
|
2024-01-16 14:19:14 +00:00
|
|
|
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'" href="#">Storages
|
|
|
|
</a>
|
|
|
|
@endif
|
2023-08-11 20:41:47 +00:00
|
|
|
@if ($application->git_based())
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'source' && 'menu-item-active'"
|
2023-08-11 20:41:47 +00:00
|
|
|
@click.prevent="activeTab = 'source'; window.location.hash = 'source'" href="#">Source</a>
|
|
|
|
@endif
|
2024-04-12 10:44:49 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'servers' && 'menu-item-active'" class="flex items-center gap-2"
|
2024-02-07 13:55:06 +00:00
|
|
|
@click.prevent="activeTab = 'servers'; window.location.hash = 'servers'" href="#">Servers
|
2024-03-02 13:55:39 +00:00
|
|
|
@if (str($application->status)->contains('degraded'))
|
|
|
|
<span title="Some servers are unavailable">
|
|
|
|
<svg class="w-4 h-4 text-error" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
<path fill="currentColor"
|
|
|
|
d="M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71m-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.77 4.77 0 0 1 8 0l87.44 151.87a3.56 3.56 0 0 1 .02 3.73M116 136v-32a12 12 0 0 1 24 0v32a12 12 0 0 1-24 0m28 40a16 16 0 1 1-16-16a16 16 0 0 1 16 16" />
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
@endif
|
2023-04-19 12:47:11 +00:00
|
|
|
</a>
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'scheduled-tasks' && 'menu-item-active'"
|
2024-01-16 14:19:14 +00:00
|
|
|
@click.prevent="activeTab = 'scheduled-tasks'; window.location.hash = 'scheduled-tasks'"
|
|
|
|
href="#">Scheduled Tasks
|
|
|
|
</a>
|
|
|
|
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'webhooks' && 'menu-item-active'"
|
2023-10-25 08:43:07 +00:00
|
|
|
@click.prevent="activeTab = 'webhooks'; window.location.hash = 'webhooks'" href="#">Webhooks
|
|
|
|
</a>
|
2024-01-29 09:43:18 +00:00
|
|
|
@if ($application->git_based())
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'previews' && 'menu-item-active'"
|
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-11-27 10:54:55 +00:00
|
|
|
@if ($application->build_pack !== 'static' && $application->build_pack !== 'dockercompose')
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'health' && 'menu-item-active'"
|
2023-11-20 12:49:10 +00:00
|
|
|
@click.prevent="activeTab = 'health'; window.location.hash = 'health'" href="#">Healthchecks
|
2023-11-10 12:46:14 +00:00
|
|
|
</a>
|
|
|
|
@endif
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'rollback' && 'menu-item-active'"
|
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-11-27 10:54:55 +00:00
|
|
|
@if ($application->build_pack !== 'dockercompose')
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'resource-limits' && 'menu-item-active'"
|
2023-11-27 10:54:55 +00:00
|
|
|
@click.prevent="activeTab = 'resource-limits'; window.location.hash = 'resource-limits'"
|
|
|
|
href="#">Resource Limits
|
|
|
|
</a>
|
|
|
|
@endif
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'resource-operations' && 'menu-item-active'"
|
2024-01-22 15:08:18 +00:00
|
|
|
@click.prevent="activeTab = 'resource-operations'; window.location.hash = 'resource-operations'"
|
|
|
|
href="#">Resource Operations
|
2024-01-22 14:12:38 +00:00
|
|
|
</a>
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'tags' && 'menu-item-active'"
|
2024-02-01 14:38:12 +00:00
|
|
|
@click.prevent="activeTab = 'tags'; window.location.hash = 'tags'" href="#">Tags
|
|
|
|
</a>
|
2024-03-24 15:00:25 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'danger' && 'menu-item-active'"
|
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>
|
2023-12-18 13:01:25 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'swarm'" class="h-full">
|
2024-04-17 13:16:08 +00:00
|
|
|
<livewire:project.application.swarm :application="$application" />
|
2023-12-18 13:01:25 +00:00
|
|
|
</div>
|
2023-11-20 10:35:31 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'advanced'" class="h-full">
|
2024-04-17 13:16:08 +00:00
|
|
|
<livewire:project.application.advanced :application="$application" />
|
2023-11-20 10:35:31 +00:00
|
|
|
</div>
|
2023-05-16 11:11:05 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'environment-variables'">
|
2024-04-17 13:16:08 +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'">
|
2024-04-17 13:16:08 +00:00
|
|
|
<livewire:project.application.source :application="$application" />
|
2023-08-11 20:41:47 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2024-02-07 13:55:06 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'servers'">
|
2024-04-17 13:16:08 +00:00
|
|
|
<livewire:project.shared.destination :resource="$application" :servers="$servers" />
|
2023-05-16 11:11:05 +00:00
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'storages'">
|
2024-04-17 13:16:08 +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'">
|
2024-04-17 13:16:08 +00:00
|
|
|
<livewire:project.shared.webhooks :resource="$application" />
|
2023-10-25 08:43:07 +00:00
|
|
|
</div>
|
2023-05-30 13:52:17 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'previews'">
|
2024-04-17 13:16:08 +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'">
|
2024-04-17 13:16:08 +00:00
|
|
|
<livewire:project.shared.health-checks :resource="$application" />
|
2023-09-22 13:29:19 +00:00
|
|
|
</div>
|
2023-05-17 10:14:18 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'rollback'">
|
2024-04-17 13:16:08 +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'">
|
2024-04-17 13:16:08 +00:00
|
|
|
<livewire:project.shared.resource-limits :resource="$application" />
|
2023-05-17 09:59:48 +00:00
|
|
|
</div>
|
2024-01-01 18:33:16 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'scheduled-tasks'">
|
2024-04-17 13:16:08 +00:00
|
|
|
<livewire:project.shared.scheduled-task.all :resource="$application" />
|
2024-01-01 18:33:16 +00:00
|
|
|
</div>
|
2024-01-22 15:08:18 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'resource-operations'">
|
2024-04-17 13:16:08 +00:00
|
|
|
<livewire:project.shared.resource-operations :resource="$application" />
|
2024-01-22 14:12:38 +00:00
|
|
|
</div>
|
2024-02-01 14:38:12 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'tags'">
|
2024-04-17 13:16:08 +00:00
|
|
|
<livewire:project.shared.tags :resource="$application" />
|
2024-02-01 14:38:12 +00:00
|
|
|
</div>
|
2023-05-18 11:26:35 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'danger'">
|
2023-12-07 21:56:55 +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-11-21 14:31:46 +00:00
|
|
|
</div>
|