This commit is contained in:
Andras Bacsai
2023-05-25 14:05:44 +02:00
parent ea2a13dff2
commit d2b0823cd0
40 changed files with 284 additions and 279 deletions

View File

@@ -1 +1 @@
<x-inputs.button wire:click='createEmptyProject'>Empty Project</x-inputs.button>
<x-forms.button wire:click='createEmptyProject'>Empty Project</x-forms.button>

View File

@@ -3,11 +3,11 @@
<h1>Select a private key</h1>
@foreach ($private_keys as $key)
@if ($private_key_id == $key->id)
<x-inputs.button class="bg-blue-500" wire:click.defer="setPrivateKey('{{ $key->id }}')">
{{ $key->name }}</x-inputs.button>
<x-forms.button class="bg-blue-500" wire:click.defer="setPrivateKey('{{ $key->id }}')">
{{ $key->name }}</x-forms.button>
@else
<x-inputs.button wire:click.defer="setPrivateKey('{{ $key->id }}')">{{ $key->name }}
</x-inputs.button>
<x-forms.button wire:click.defer="setPrivateKey('{{ $key->id }}')">{{ $key->name }}
</x-forms.button>
@endif
@endforeach
</div>
@@ -15,17 +15,17 @@
<h1>Choose a repository</h1>
<form wire:submit.prevent='submit'>
<div class="flex items-end gap-2 pb-2">
<x-inputs.input class="w-96" id="repository_url" label="Repository URL" />
<x-forms.input class="w-96" id="repository_url" label="Repository URL" />
@if ($is_static)
<x-inputs.input id="publish_directory" label="Publish Directory" />
<x-forms.input id="publish_directory" label="Publish Directory" />
@else
<x-inputs.input type="number" id="port" label="Port" :readonly="$is_static" />
<x-forms.input type="number" id="port" label="Port" :readonly="$is_static" />
@endif
<x-inputs.input instantSave type="checkbox" id="is_static" label="Static Site?" />
<x-forms.input instantSave type="checkbox" id="is_static" label="Static Site?" />
</div>
<x-inputs.button type="submit">
<x-forms.button type="submit">
Submit
</x-inputs.button>
</x-forms.button>
</form>
@endisset
</div>

View File

@@ -2,9 +2,9 @@
@if ($github_apps->count() > 0)
<h1>Choose a GitHub App</h1>
@foreach ($github_apps as $ghapp)
<x-inputs.button wire:key="{{ $ghapp->id }}" wire:click="loadRepositories({{ $ghapp->id }})">
<x-forms.button wire:key="{{ $ghapp->id }}" wire:click="loadRepositories({{ $ghapp->id }})">
{{ $ghapp->name }}
</x-inputs.button>
</x-forms.button>
@endforeach
<div>
@if ($repositories->count() > 0)
@@ -18,7 +18,7 @@
@endif
@endforeach
</select>
<x-inputs.button wire:click="loadBranches">Select Repository</x-inputs.button>
<x-forms.button wire:click="loadBranches">Select Repository</x-forms.button>
@endif
</div>
<div>
@@ -35,7 +35,7 @@
@endif
@endforeach
</select>
<x-inputs.button wire:click="submit">Save</x-inputs.button>
<x-forms.button wire:click="submit">Save</x-forms.button>
@endif
</div>
@else

View File

@@ -1,20 +1,20 @@
<div>
<h1>Enter a public repository URL</h1>
<form class="flex flex-col gap-2" wire:submit.prevent='submit'>
<x-inputs.checkbox instantSave id="is_static" label="Is it a static site?" />
<x-forms.checkbox instantSave id="is_static" label="Is it a static site?" />
<div class="flex gap-2">
<x-inputs.input id="repository_url" label="Repository URL"
<x-forms.input id="repository_url" label="Repository URL"
helper="<span class='inline-block font-bold text-warning'>Example</span>https://github.com/coollabsio/coolify-examples => main branch will be selected<br>https://github.com/coollabsio/coolify-examples/tree/nodejs-fastify => nodejs-fastify branch will be selected" />
@if ($is_static)
<x-inputs.input id="publish_directory" label="Publish Directory"
<x-forms.input id="publish_directory" label="Publish Directory"
helper="If there is a build process involved (like Svelte, React, Next, etc..), please specify the output directory for the build assets." />
@else
<x-inputs.input type="number" id="port" label="Port" :readonly="$is_static"
<x-forms.input type="number" id="port" label="Port" :readonly="$is_static"
helper="The port your application listens on." />
@endif
</div>
<x-inputs.button type="submit">
<x-forms.button type="submit">
Submit
</x-inputs.button>
</x-forms.button>
</form>
</div>