2023-07-26 11:23:47 +00:00
|
|
|
<div x-data x-init="$wire.load_servers">
|
|
|
|
<h1>New Resource</h1>
|
2023-08-07 17:25:32 +00:00
|
|
|
<div class="pb-4 ">Deploy resources, like Applications, Databases, Services...</div>
|
2023-08-11 20:41:47 +00:00
|
|
|
<div class="flex flex-col gap-2 pt-10">
|
2023-07-26 11:23:47 +00:00
|
|
|
@if ($current_step === 'type')
|
|
|
|
<ul class="pb-10 steps">
|
2023-07-26 11:28:05 +00:00
|
|
|
<li class="step step-secondary">Select Source Type</li>
|
2023-07-26 11:23:47 +00:00
|
|
|
<li class="step">Select a Server</li>
|
|
|
|
<li class="step">Select a Destination</li>
|
|
|
|
</ul>
|
2023-08-11 20:41:47 +00:00
|
|
|
<h2>Applications</h2>
|
|
|
|
<div class="grid justify-start grid-cols-1 gap-2 text-left xl:grid-cols-3">
|
2023-09-05 10:14:31 +00:00
|
|
|
<div class="box group" wire:click="setType('public')">
|
2023-07-26 11:23:47 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class="group-hover:text-white">
|
|
|
|
Public Repository
|
|
|
|
</div>
|
|
|
|
<div class="text-xs group-hover:text-white">
|
2023-08-08 09:51:36 +00:00
|
|
|
You can deploy any kind of public repositories from the supported git servers.
|
|
|
|
</div>
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-05 10:14:31 +00:00
|
|
|
<div class="box group" wire:click="setType('private-gh-app')">
|
2023-07-26 11:23:47 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class="group-hover:text-white">
|
|
|
|
Private Repository
|
|
|
|
</div>
|
|
|
|
<div class="text-xs group-hover:text-white">
|
2023-08-08 09:51:36 +00:00
|
|
|
You can deploy public & private repositories through your GitHub Apps.
|
|
|
|
</div>
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-05 10:14:31 +00:00
|
|
|
<div class="box group" wire:click="setType('private-deploy-key')">
|
2023-07-26 11:23:47 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class="group-hover:text-white">
|
|
|
|
Private Repository (with deploy key)
|
|
|
|
</div>
|
|
|
|
<div class="text-xs group-hover:text-white">
|
2023-08-08 09:51:36 +00:00
|
|
|
You can deploy public & private repositories with a simple deploy key.
|
|
|
|
</div>
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-08-11 20:41:47 +00:00
|
|
|
<div class="grid justify-start grid-cols-1 gap-2 text-left xl:grid-cols-3">
|
2023-09-05 10:14:31 +00:00
|
|
|
<div class="box group" wire:click="setType('dockerfile')">
|
2023-08-11 20:41:47 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class="group-hover:text-white">
|
|
|
|
Based on a Dockerfile
|
|
|
|
</div>
|
|
|
|
<div class="text-xs group-hover:text-white">
|
|
|
|
You can deploy a simple Dockerfile, without Git.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h2 class="py-4">Databases</h2>
|
2023-09-05 10:14:31 +00:00
|
|
|
<div class="grid justify-start grid-cols-1 gap-2 text-left xl:grid-cols-3">
|
|
|
|
<div class="box group" wire:click="setType('postgresql')">
|
2023-08-07 17:25:32 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class="group-hover:text-white">
|
2023-09-05 10:14:31 +00:00
|
|
|
New PostgreSQL
|
2023-08-07 17:25:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="text-xs group-hover:text-white">
|
2023-08-08 09:51:36 +00:00
|
|
|
The most loved relational database in the world.
|
|
|
|
</div>
|
2023-08-07 17:25:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-05 10:14:31 +00:00
|
|
|
{{-- <div class="box group" wire:click="setType('existing-postgresql')">
|
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class="group-hover:text-white">
|
|
|
|
Backup Existing PostgreSQL
|
|
|
|
</div>
|
|
|
|
<div class="text-xs group-hover:text-white">
|
|
|
|
Schedule a backup of an existing PostgreSQL database.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div> --}}
|
2023-08-07 17:25:32 +00:00
|
|
|
</div>
|
2023-09-11 11:52:54 +00:00
|
|
|
<h2 class="py-4">Services</h2>
|
|
|
|
<div class="grid justify-start grid-cols-1 gap-2 text-left xl:grid-cols-3">
|
|
|
|
Ghost, Plausible, Wordpress, etc... Coming very very soon...
|
|
|
|
</div>
|
2023-07-26 11:23:47 +00:00
|
|
|
@endif
|
|
|
|
@if ($current_step === 'servers')
|
|
|
|
<ul class="pb-10 steps">
|
2023-07-26 11:28:05 +00:00
|
|
|
<li class="step step-secondary">Select Source Type</li>
|
2023-07-26 11:23:47 +00:00
|
|
|
<li class="step step-secondary">Select a Server</li>
|
|
|
|
<li class="step">Select a Destination</li>
|
|
|
|
</ul>
|
2023-08-30 12:46:51 +00:00
|
|
|
<div class="flex flex-col justify-center gap-2 text-left xl:flex-row">
|
2023-08-21 08:18:11 +00:00
|
|
|
@forelse($servers as $server)
|
2023-09-05 10:14:31 +00:00
|
|
|
<div class="box group" wire:click="setServer({{ $server }})">
|
2023-07-26 11:23:47 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class="group-hover:text-white">
|
|
|
|
{{ $server->name }}
|
|
|
|
</div>
|
|
|
|
<div class="text-xs group-hover:text-white">
|
|
|
|
{{ $server->description }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-08-21 08:18:11 +00:00
|
|
|
@empty
|
|
|
|
<div>
|
2023-09-05 10:14:31 +00:00
|
|
|
<div>No validated & reachable servers found. <a class="text-white underline" href="/servers">
|
|
|
|
Go to servers page
|
|
|
|
</a></div>
|
2023-08-21 08:18:11 +00:00
|
|
|
|
|
|
|
<x-use-magic-bar link="/server/new" />
|
|
|
|
</div>
|
|
|
|
@endforelse
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
@if ($current_step === 'destinations')
|
|
|
|
<ul class="pb-10 steps">
|
2023-07-26 11:28:05 +00:00
|
|
|
<li class="step step-secondary">Select Source Type</li>
|
2023-07-26 11:23:47 +00:00
|
|
|
<li class="step step-secondary">Select a Server</li>
|
|
|
|
<li class="step step-secondary">Select a Destination</li>
|
|
|
|
</ul>
|
2023-08-30 12:46:51 +00:00
|
|
|
<div class="flex flex-col justify-center gap-2 text-left xl:flex-row">
|
2023-08-30 09:26:46 +00:00
|
|
|
@foreach ($standaloneDockers as $standaloneDocker)
|
2023-09-05 10:14:31 +00:00
|
|
|
<div class="box group" wire:click="setDestination('{{ $standaloneDocker->uuid }}')">
|
2023-07-26 11:23:47 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
2023-08-30 09:26:46 +00:00
|
|
|
<div class="font-bold group-hover:text-white">
|
2023-09-05 10:14:31 +00:00
|
|
|
Standalone Docker <span class="text-xs">({{ $standaloneDocker->name }})</span>
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
|
|
|
<div class="text-xs group-hover:text-white">
|
2023-08-30 09:26:46 +00:00
|
|
|
network: {{ $standaloneDocker->network }}</div>
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
2023-08-30 09:26:46 +00:00
|
|
|
@foreach ($swarmDockers as $swarmDocker)
|
2023-09-05 10:14:31 +00:00
|
|
|
<div class="box group" wire:click="setDestination('{{ $swarmDocker->uuid }}')">
|
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class="font-bold group-hover:text-white">
|
|
|
|
Swarm Docker <span class="text-xs">({{ $swarmDocker->name }})</span>
|
|
|
|
</div>
|
2023-08-30 09:26:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-05 10:14:31 +00:00
|
|
|
@endforeach
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
2023-09-05 10:14:31 +00:00
|
|
|
@if ($current_step === 'existing-postgresql')
|
2023-09-11 11:52:54 +00:00
|
|
|
<form wire:submit.prevent='addExistingPostgresql' class="flex items-end gap-2">
|
|
|
|
<x-forms.input placeholder="postgres://username:password@database:5432" label="Database URL"
|
|
|
|
id="existingPostgresqlUrl" />
|
|
|
|
<x-forms.button type="submit">Add Database</x-forms.button>
|
|
|
|
</form>
|
2023-09-05 10:14:31 +00:00
|
|
|
@endif
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|