2023-04-26 11:01:09 +00:00
|
|
|
<x-layout>
|
2023-05-10 10:22:27 +00:00
|
|
|
<x-applications.navbar :applicationId="$application->id" :gitBranchLocation="$application->gitBranchLocation" />
|
2023-05-16 18:47:59 +00:00
|
|
|
<h1 class="py-10">Configuration</h1>
|
2023-05-16 11:11:05 +00:00
|
|
|
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex pt-6">
|
2023-05-16 18:47:59 +00:00
|
|
|
<div class="flex flex-col min-w-fit">
|
|
|
|
<a :class="activeTab === 'general' && 'text-coollabs-100'"
|
2023-05-04 13:45:53 +00:00
|
|
|
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
|
2023-05-16 18:47:59 +00:00
|
|
|
<a :class="activeTab === 'environment-variables' && 'text-coollabs-100'"
|
2023-05-04 13:45:53 +00:00
|
|
|
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
|
|
|
|
href="#">Environment
|
|
|
|
Variables</a>
|
2023-05-16 18:47:59 +00:00
|
|
|
<a :class="activeTab === 'source' && 'text-coollabs-100'"
|
2023-05-04 13:45:53 +00:00
|
|
|
@click.prevent="activeTab = 'source'; window.location.hash = 'source'" href="#">Source</a>
|
2023-05-16 18:47:59 +00:00
|
|
|
<a :class="activeTab === 'destination' && 'text-coollabs-100'"
|
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-16 18:47:59 +00:00
|
|
|
<a :class="activeTab === 'storages' && 'text-coollabs-100'"
|
2023-05-16 11:11:05 +00:00
|
|
|
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'" href="#">Storages
|
|
|
|
</a>
|
2023-05-16 18:47:59 +00:00
|
|
|
<a :class="activeTab === 'revert' && 'text-coollabs-100'"
|
2023-05-16 13:45:20 +00:00
|
|
|
@click.prevent="activeTab = 'revert'; window.location.hash = 'revert'" href="#">Revert
|
|
|
|
</a>
|
2023-05-16 18:47:59 +00:00
|
|
|
{{-- <a :class="activeTab === 'previews' && 'text-coollabs-100'"
|
2023-05-16 11:11:05 +00:00
|
|
|
@click.prevent="activeTab = 'previews'; window.location.hash = 'previews'" href="#">Previews
|
2023-05-16 12:11:55 +00:00
|
|
|
</a> --}}
|
2023-04-19 10:42:15 +00:00
|
|
|
</div>
|
2023-05-16 11:11:05 +00:00
|
|
|
<div class="w-full pl-8">
|
|
|
|
<div x-cloak x-show="activeTab === 'general'">
|
|
|
|
<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-16 13:45:20 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'revert'">
|
2023-05-16 15:53:48 +00:00
|
|
|
<livewire:project.application.revert :application="$application" />
|
2023-05-16 13:45:20 +00:00
|
|
|
</div>
|
2023-05-16 12:11:55 +00:00
|
|
|
{{-- <div x-cloak x-show="activeTab === 'previews'">
|
2023-05-16 11:11:05 +00:00
|
|
|
<livewire:project.application.previews :application="$application" />
|
2023-05-16 12:11:55 +00:00
|
|
|
</div> --}}
|
2023-04-19 10:42:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-26 11:01:09 +00:00
|
|
|
</x-layout>
|