2023-08-07 16:46:40 +00:00
|
|
|
<x-layout>
|
|
|
|
<h1>Configuration</h1>
|
2023-08-11 18:19:42 +00:00
|
|
|
<livewire:project.database.heading :database="$database" />
|
2023-08-09 15:57:27 +00:00
|
|
|
<x-modal modalId="startDatabase">
|
2023-08-07 16:46:40 +00:00
|
|
|
<x-slot:modalBody>
|
2023-09-22 12:47:25 +00:00
|
|
|
<livewire:activity-monitor header="Database Startup Logs" />
|
2023-08-07 16:46:40 +00:00
|
|
|
</x-slot:modalBody>
|
|
|
|
<x-slot:modalSubmit>
|
2023-08-09 15:57:27 +00:00
|
|
|
<x-forms.button onclick="startDatabase.close()" type="submit">
|
2023-08-07 16:46:40 +00:00
|
|
|
Close
|
|
|
|
</x-forms.button>
|
|
|
|
</x-slot:modalSubmit>
|
|
|
|
</x-modal>
|
2023-08-11 18:19:42 +00:00
|
|
|
<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">
|
2023-10-24 12:31:28 +00:00
|
|
|
<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'"
|
2023-08-11 18:19:42 +00:00
|
|
|
@click.prevent="activeTab = 'environment-variables'; window.location.hash = 'environment-variables'"
|
|
|
|
href="#">Environment
|
2023-08-07 16:46:40 +00:00
|
|
|
Variables</a>
|
2023-10-24 12:31:28 +00:00
|
|
|
<a :class="activeTab === 'server' && 'text-white'"
|
|
|
|
@click.prevent="activeTab = 'server';
|
|
|
|
window.location.hash = 'server'"
|
|
|
|
href="#">Server
|
2023-08-07 16:46:40 +00:00
|
|
|
</a>
|
2023-10-24 12:31:28 +00:00
|
|
|
<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>
|
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-10-24 12:31:28 +00:00
|
|
|
<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>
|
2023-10-24 12:31:28 +00:00
|
|
|
<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')
|
2023-08-11 18:19:42 +00:00
|
|
|
<livewire:project.database.postgresql.general :database="$database" />
|
2023-10-24 12:31:28 +00:00
|
|
|
@elseif ($database->type() === 'standalone-redis')
|
2023-10-12 15:18:33 +00:00
|
|
|
<livewire:project.database.redis.general :database="$database" />
|
2023-10-24 12:31:28 +00:00
|
|
|
@elseif ($database->type() === 'standalone-mongodb')
|
|
|
|
<livewire:project.database.mongodb.general :database="$database" />
|
|
|
|
@elseif ($database->type() === 'standalone-mysql')
|
|
|
|
<livewire:project.database.mysql.general :database="$database" />
|
|
|
|
@elseif ($database->type() === 'standalone-mariadb')
|
|
|
|
<livewire:project.database.mariadb.general :database="$database" />
|
2023-10-12 15:18:33 +00:00
|
|
|
@endif
|
2023-08-07 16:46:40 +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="$database" />
|
2023-08-07 16:46:40 +00:00
|
|
|
</div>
|
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="$database->destination" />
|
2023-08-07 16:46:40 +00:00
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'storages'">
|
2023-10-04 07:58:39 +00:00
|
|
|
<livewire:project.service.storage :resource="$database" />
|
2023-08-07 16:46:40 +00:00
|
|
|
</div>
|
2023-10-25 08:43:07 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'webhooks'">
|
|
|
|
<livewire:project.shared.webhooks :resource="$database" />
|
|
|
|
</div>
|
2023-08-07 16:46:40 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'resource-limits'">
|
2023-08-11 18:19:42 +00:00
|
|
|
<livewire:project.shared.resource-limits :resource="$database" />
|
2023-08-07 16:46:40 +00:00
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'danger'">
|
2023-08-11 18:19:42 +00:00
|
|
|
<livewire:project.shared.danger :resource="$database" />
|
2023-08-07 16:46:40 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</x-layout>
|