lasthourcloud/resources/views/project/database/configuration.blade.php

62 lines
3.0 KiB
PHP
Raw Normal View History

2023-08-07 16:46:40 +00:00
<x-layout>
<h1>Configuration</h1>
<livewire:project.database.heading :database="$database"/>
2023-08-07 16:46:40 +00:00
<x-modal modalId="logs">
<x-slot:modalBody>
<livewire:activity-monitor :header="true"/>
2023-08-07 16:46:40 +00:00
</x-slot:modalBody>
<x-slot:modalSubmit>
<x-forms.button onclick="logs.close()" type="submit">
Close
</x-forms.button>
</x-slot:modalSubmit>
</x-modal>
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }"
class="flex h-full pt-6">
2023-08-07 16:46:40 +00:00
<div class="flex flex-col gap-4 min-w-fit">
<a :class="activeTab === 'general' && 'text-white'"
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
2023-08-07 16:46:40 +00:00
<a :class="activeTab === 'environment-variables' && 'text-white'"
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
href="#">Environment
2023-08-07 16:46:40 +00:00
Variables</a>
<a :class="activeTab === 'destination' && 'text-white'"
@click.prevent="activeTab = 'destination'; window.location.hash = 'destination'"
href="#">Destination
2023-08-07 16:46:40 +00:00
</a>
<a :class="activeTab === 'storages' && 'text-white'"
@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'" href="#">Storages
2023-08-07 16:46:40 +00:00
</a>
<a :class="activeTab === 'resource-limits' && 'text-white'"
@click.prevent="activeTab = 'resource-limits'; window.location.hash = 'resource-limits'"
href="#">Resource Limits
2023-08-07 16:46:40 +00:00
</a>
<a :class="activeTab === 'danger' && 'text-white'"
@click.prevent="activeTab = 'danger'; window.location.hash = 'danger'" href="#">Danger Zone
2023-08-07 16:46:40 +00:00
</a>
</div>
<div class="w-full pl-8">
<div x-cloak x-show="activeTab === 'general'" class="h-full">
2023-08-07 20:14:21 +00:00
@if ($database->type() === 'standalone-postgresql')
<livewire:project.database.postgresql.general :database="$database"/>
2023-08-07 16:46:40 +00:00
@endif
</div>
<div x-cloak x-show="activeTab === 'environment-variables'">
<livewire:project.shared.environment-variable.all :resource="$database"/>
2023-08-07 16:46:40 +00:00
</div>
<div x-cloak x-show="activeTab === 'destination'">
<livewire:project.shared.destination :destination="$database->destination"/>
2023-08-07 16:46:40 +00:00
</div>
<div x-cloak x-show="activeTab === 'storages'">
<livewire:project.shared.storages.all :resource="$database"/>
2023-08-07 16:46:40 +00:00
</div>
<div x-cloak x-show="activeTab === 'resource-limits'">
<livewire:project.shared.resource-limits :resource="$database"/>
2023-08-07 16:46:40 +00:00
</div>
<div x-cloak x-show="activeTab === 'danger'">
<livewire:project.shared.danger :resource="$database"/>
2023-08-07 16:46:40 +00:00
</div>
</div>
</div>
</x-layout>