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
612460c
commit abf778c
Showing
31 changed files
with
198 additions
and
214 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
<input type="text" name="email" placeholder="email" @env('local') value="[email protected]" @endenv | ||
autofocus /> | ||
<input type="password" name="password" placeho lder="Password" @env('local') value="password" @endenv /> | ||
<button type="submit">Login</button> | ||
<x-inputs.button type="submit">Login</x-inputs.button> | ||
</form> | ||
@if ($errors->any()) | ||
<div class="alert alert-danger"> | ||
|
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 was deleted.
Oops, something went wrong.
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,13 @@ | ||
@props([ | ||
'defaultClass' => 'bg-indigo-500', | ||
'confirm' => null, | ||
'confirmAction' => null, | ||
]) | ||
|
||
<button {{ $attributes }} {{ $attributes->merge(['class' => $defaultClass]) }} | ||
@if ($attributes->whereStartsWith('wire:click')) wire:target="{{ $attributes->whereStartsWith('wire:click')->first() }}" | ||
wire:loading.class="text-black bg-green-500" wire:loading.attr="disabled" wire:loading.class.remove="{{ $defaultClass }} {{ $attributes->whereStartsWith('class')->first() }}" @endif | ||
@isset($confirm) x-on:click="toggleConfirmModal('{{ $confirm }}')" @endisset | ||
@isset($confirmAction) @confirm.window="$wire.{{ $confirmAction }}()" @endisset> | ||
{{ $slot }} | ||
</button> |
12 changes: 12 additions & 0 deletions
12
...ces/views/components/form-input.blade.php → ...s/views/components/inputs/input.blade.php
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
20 changes: 13 additions & 7 deletions
20
resources/views/livewire/destination/new/standalone-docker.blade.php
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,15 +1,21 @@ | ||
<div> | ||
<form class="flex flex-col" wire:submit.prevent='submit'> | ||
<x-form-input id="name" label="Name" required /> | ||
<x-form-input id="network" label="Network" required /> | ||
<x-form-input id="server_id" label="Server ID" required /> | ||
<x-inputs.input id="name" label="Name" required /> | ||
<x-inputs.input id="network" label="Network" required /> | ||
<x-inputs.input id="server_id" label="Server ID" required /> | ||
@foreach ($servers as $key) | ||
<button @if ($server_id == $key->id) class="bg-green-500" @endif | ||
wire:click.prevent="setServerId('{{ $key->id }}')">{{ $key->name }}</button> | ||
@if ($server_id == $key->id) | ||
<x-inputs.button class="bg-green-500" wire:click.prevent="setServerId('{{ $key->id }}')"> | ||
{{ $key->name }} | ||
</x-inputs.button> | ||
@else | ||
<x-inputs.button wire:click.prevent="setServerId('{{ $key->id }}')">{{ $key->name }} | ||
</x-inputs.button> | ||
@endif | ||
@endforeach | ||
<button class="mt-4" type="submit"> | ||
<x-inputs.button class="mt-4" type="submit"> | ||
Submit | ||
</button> | ||
</x-inputs.button> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<div> | ||
@if (auth()->user()->teams->contains(0)) | ||
<button wire:loading.class="text-black bg-green-500" wire:loading.attr="disabled" wire:click='upgrade'>Force | ||
Upgrade</button> | ||
<x-inputs.button wire:click='upgrade'>Force Upgrade</x-inputs.button> | ||
@endif | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<div> | ||
<form class="flex flex-col gap-2 w-96" wire:submit.prevent='changePrivateKey'> | ||
<x-form-input id="private_key_name" label="Name" required /> | ||
<x-form-input id="private_key_description" label="Longer Description" /> | ||
<x-form-input type="textarea" id="private_key_value" label="Private Key" required /> | ||
<button type="submit"> | ||
<x-inputs.input id="private_key_name" label="Name" required /> | ||
<x-inputs.input id="private_key_description" label="Longer Description" /> | ||
<x-inputs.input type="textarea" id="private_key_value" label="Private Key" required /> | ||
<x-inputs.button type="submit"> | ||
Submit | ||
</button> | ||
<button class="bg-red-500" @confirm.window="$wire.delete('{{ $private_key_uuid }}')" | ||
x-on:click="toggleConfirmModal('Are you sure you would like to delete this application?')"> | ||
</x-inputs.button> | ||
<x-inputs.button class="bg-red-500" confirm='Are you sure you would like to delete this private key?' | ||
confirmAction="delete('{{ $private_key_uuid }}')"> | ||
Delete | ||
</button> | ||
</x-inputs.button> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<div> | ||
<form class="flex flex-col gap-2 w-96" wire:submit.prevent='createPrivateKey'> | ||
<x-form-input id="private_key_name" label="Name" required /> | ||
<x-form-input id="private_key_description" label="Longer Description" /> | ||
<x-form-input type="textarea" id="private_key_value" label="Private Key" required /> | ||
<button type="submit"> | ||
<x-inputs.input id="private_key_name" label="Name" required /> | ||
<x-inputs.input id="private_key_description" label="Longer Description" /> | ||
<x-inputs.input type="textarea" id="private_key_value" label="Private Key" required /> | ||
<x-inputs.button type="submit"> | ||
Submit | ||
</button> | ||
</x-inputs.button> | ||
</form> | ||
</div> |
17 changes: 9 additions & 8 deletions
17
resources/views/livewire/project/application/deploy.blade.php
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
10 changes: 5 additions & 5 deletions
10
resources/views/livewire/project/application/source.blade.php
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,9 +1,9 @@ | ||
<div> | ||
<p>Source Name: {{ data_get($application,'source.name') }}</p> | ||
<p>Is Public Source: {{ data_get($application,'source.is_public') }}</p> | ||
<p>Source Name: {{ data_get($application, 'source.name') }}</p> | ||
<p>Is Public Source: {{ data_get($application, 'source.is_public') }}</p> | ||
<div class="flex flex-col w-96"> | ||
<x-form-input id="application.git_repository" label="Git Repository" readonly /> | ||
<x-form-input id="application.git_branch" label="Git Branch" readonly /> | ||
<x-form-input id="application.git_commit_sha" label="Git Commit SHA" readonly /> | ||
<x-inputs.input id="application.git_repository" label="Git Repository" readonly /> | ||
<x-inputs.input id="application.git_branch" label="Git Branch" readonly /> | ||
<x-inputs.input id="application.git_commit_sha" label="Git Commit SHA" readonly /> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<button wire:click='createEmptyProject'>Empty Project</button> | ||
<x-inputs.button wire:click='createEmptyProject'>Empty Project</x-inputs.button> |
Oops, something went wrong.