Refactor db migrations

This commit is contained in:
Andras Bacsai
2023-08-09 16:47:24 +02:00
parent a3353aac0c
commit 04622a9e3b
16 changed files with 57 additions and 49 deletions

View File

@@ -3,6 +3,10 @@
href="{{ route('project.database.configuration', $parameters) }}">
<button>Configuration</button>
</a>
<a class="{{ request()->routeIs('project.database.backups') ? 'text-white' : '' }}"
href="{{ route('project.database.backups', $parameters) }}">
<button>Backups</button>
</a>
{{-- <x-applications.links :application="$application" /> --}}
<div class="flex-1"></div>
{{-- <x-applications.advanced :application="$application" /> --}}

View File

@@ -4,7 +4,7 @@
<p>This resource will be deleted. It is not reversible. <br>Please think again.</p>
</x-slot:modalBody>
</x-modal>
<h3>Danger Zone</h3>
<h2>Danger Zone</h2>
<div class="">Woah. I hope you know what are you doing.</div>
<h4 class="pt-4">Delete Resource</h4>
<div class="pb-4">This will stop your containers, delete all related data, etc. Beware! There is no coming

View File

@@ -81,7 +81,7 @@
</div>
</div>
@endif
<h3>Danger Zone</h3>
<h2>Danger Zone</h2>
<div class="">Woah. I hope you know what are you doing.</div>
<h4 class="pt-4">Delete Server</h4>
<div class="pb-4">This will remove this server from Coolify. Beware! There is no coming

View File

@@ -4,7 +4,7 @@
<p>This team be deleted. It is not reversible. <br>Please think again.</p>
</x-slot:modalBody>
</x-modal>
<h3>Danger Zone</h3>
<h2>Danger Zone</h2>
<div class="pb-4">Woah. I hope you know what are you doing.</div>
<h4 class="pb-4">Delete Team</h4>
@if (session('currentTeam.id') === 0)

View File

@@ -0,0 +1,18 @@
<x-layout>
<h1>Backups</h1>
<livewire:project.database.heading :database="$database"/>
<div class="pt-6">
<h2 class="pb-4">Scheduled Backups</h2>
<div class="flex flex-wrap gap-2">
@forelse($database->scheduledBackups as $backup)
<div class="box flex flex-col">
<div>Frequency: {{$backup->frequency}}</div>
<div>Keep locally: {{$backup->keep_locally}}</div>
<div>Sync to S3: {{$backup->save_s3}}</div>
</div>
@empty
<div>No scheduled backups configured.</div>
@endforelse
</div>
</div>
</x-layout>