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-07-26 11:23:47 +00:00
|
|
|
<div class="flex flex-col pt-10">
|
|
|
|
@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-07 17:25:32 +00:00
|
|
|
<h3 class="pb-4">Applications</h3>
|
2023-07-26 11:23:47 +00:00
|
|
|
<div class="flex flex-col justify-center gap-2 text-left xl:flex-row">
|
|
|
|
<div class="gap-2 py-4 cursor-pointer group hover:bg-coollabs bg-coolgray-200"
|
2023-08-08 09:51:36 +00:00
|
|
|
wire:click="set_type('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>
|
|
|
|
<div class="gap-2 py-4 cursor-pointer group hover:bg-coollabs bg-coolgray-200"
|
2023-08-08 09:51:36 +00:00
|
|
|
wire:click="set_type('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>
|
|
|
|
<div class="gap-2 py-4 cursor-pointer group hover:bg-coollabs bg-coolgray-200"
|
2023-08-08 09:51:36 +00:00
|
|
|
wire:click="set_type('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-07 17:25:32 +00:00
|
|
|
<h3 class="py-4">Databases</h3>
|
|
|
|
<div class="flex flex-col justify-center gap-2 text-left xl:flex-row">
|
|
|
|
<div class="gap-2 py-4 cursor-pointer group hover:bg-coollabs bg-coolgray-200"
|
2023-08-08 09:51:36 +00:00
|
|
|
wire:click="set_type('postgresql')">
|
2023-08-07 17:25:32 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class="group-hover:text-white">
|
|
|
|
PostgreSQL
|
|
|
|
</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>
|
|
|
|
|
|
|
|
</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>
|
|
|
|
<div class="flex flex-col justify-center gap-2 text-left xl:flex-row">
|
|
|
|
@foreach ($servers as $server)
|
|
|
|
<div class="gap-2 py-4 cursor-pointer group hover:bg-coollabs bg-coolgray-200"
|
2023-08-08 09:51:36 +00:00
|
|
|
wire:click="set_server({{ $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>
|
|
|
|
@endforeach
|
|
|
|
</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>
|
|
|
|
<div class="flex flex-col justify-center gap-2 text-left xl:flex-row">
|
|
|
|
@foreach ($destinations as $destination)
|
|
|
|
<div class="gap-2 py-4 cursor-pointer group hover:bg-coollabs bg-coolgray-200"
|
2023-08-08 09:51:36 +00:00
|
|
|
wire:click="set_destination('{{ $destination->uuid }}')">
|
2023-07-26 11:23:47 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
<div class="group-hover:text-white">
|
|
|
|
{{ $destination->name }}
|
|
|
|
</div>
|
|
|
|
<div class="text-xs group-hover:text-white">
|
2023-07-26 11:28:05 +00:00
|
|
|
{{ $destination->network }}</div>
|
2023-07-26 11:23:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|