forked from coollabsio/coolify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4177ca
commit e4704fb
Showing
16 changed files
with
121 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<x-layout> | ||
<h1>Destinations</h1> | ||
<div class="pt-2 pb-10 text-sm">All Destinations</div> | ||
<div class="grid grid-cols-2 gap-2"> | ||
@forelse ($destinations as $destination) | ||
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker') | ||
<a class="flex gap-4 text-center hover:no-underline box group" | ||
href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}"> | ||
<div class="group-hover:text-white"> | ||
<div>{{ $destination->name }}</div> | ||
</div> | ||
</a> | ||
@endif | ||
@if ($destination->getMorphClass() === 'App\Models\SwarmDocker') | ||
<a class="flex gap-4 text-center hover:no-underline box group" | ||
href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}"> | ||
|
||
<div class="group-hover:text-white"> | ||
<div>{{ $destination->name }}</div> | ||
</div> | ||
</a> | ||
@endif | ||
@empty | ||
<div> | ||
<div>No destinations found.</div> | ||
<x-use-magic-bar /> | ||
</div> | ||
@endforelse | ||
</div> | ||
</x-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<x-layout> | ||
<h1>Destination</h1> | ||
<livewire:destination.form :destination="$destination" /> | ||
</x-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
<div x-data="{ deleteDestination: false }"> | ||
<x-naked-modal show="deleteDestination" message='Are you sure you would like to delete this destination?' /> | ||
<form class="flex flex-col gap-4" wire:submit.prevent='submit'> | ||
<x-forms.input id="destination.name" label="Name" /> | ||
<x-forms.input id="destination.server.ip" label="Server IP" readonly /> | ||
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker') | ||
<x-forms.input id="destination.network" label="Docker Network" readonly /> | ||
@endif | ||
<div> | ||
<x-forms.button type="submit"> | ||
<form class="flex flex-col"> | ||
<div class="flex items-center gap-2"> | ||
<h1>Destination</h1> | ||
<x-forms.button wire:click.prevent='submit' type="submit"> | ||
Save | ||
</x-forms.button> | ||
<x-forms.button x-on:click.prevent="deleteDestination = true"> | ||
Delete | ||
</x-forms.button> | ||
</div> | ||
|
||
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker') | ||
<div class="pt-2 pb-10 text-sm">Your standalone docker network.</div> | ||
@else | ||
<div class="pt-2 pb-10 text-sm">Your swarm docker network.</div> | ||
@endif | ||
<div class="flex gap-2"> | ||
<x-forms.input id="destination.name" label="Name" /> | ||
<x-forms.input id="destination.server.ip" label="Server IP" readonly /> | ||
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker') | ||
<x-forms.input id="destination.network" label="Docker Network" readonly /> | ||
@endif | ||
</div> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<x-layout> | ||
GitLab WIP | ||
WIP | ||
</x-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters