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
ca9ac9f
commit 05c9126
Showing
11 changed files
with
118 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace App\View\Components\Forms; | ||
|
||
use Closure; | ||
use Illuminate\Contracts\View\View; | ||
use Illuminate\View\Component; | ||
use Visus\Cuid2\Cuid2; | ||
use Illuminate\Support\Str; | ||
|
||
class Input extends Component | ||
{ | ||
public function __construct( | ||
public string|null $id = null, | ||
public string|null $name = null, | ||
public string|null $type = 'text', | ||
public string|null $value = null, | ||
public string|null $label = null, | ||
public string|null $placeholder = null, | ||
public bool $required = false, | ||
public bool $disabled = false, | ||
public bool $readonly = false, | ||
public string|null $helper = null, | ||
public bool $noDirty = false, | ||
public bool $cannotPeakPassword = false, | ||
) { | ||
} | ||
|
||
public function render(): View|Closure|string | ||
{ | ||
if (is_null($this->id)) $this->id = new Cuid2(7); | ||
if (is_null($this->name)) $this->name = $this->id; | ||
|
||
$this->label = Str::title($this->label); | ||
return view('components.forms.input'); | ||
} | ||
} |
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,20 +1,25 @@ | ||
<x-layout-simple> | ||
<div class="flex items-center justify-center h-screen"> | ||
<div class="min-h-screen hero"> | ||
<div class="w-96 min-w-fit"> | ||
<div class="flex flex-col items-center pb-8"> | ||
<div class="text-5xl font-extrabold tracking-tight text-center text-white">Coolify</div> | ||
<x-version /> | ||
</div> | ||
<div class="flex items-center gap-2"> | ||
<h1>{{ __('auth.login') }}</h1> | ||
|
||
@if ($is_registration_enabled) | ||
<a href="/register" | ||
class="text-xs text-center text-white normal-case bg-transparent border-none rounded no-animation hover:no-underline btn btn-sm bg-coollabs-gradient"> | ||
{{ __('auth.register_now') }} | ||
</a> | ||
@endif | ||
</div> | ||
<div> | ||
<form action="/login" method="POST" class="flex flex-col gap-2"> | ||
@csrf | ||
@env('local') | ||
<x-forms.input value="[email protected]" type="email" name="email" label="{{ __('input.email') }}" | ||
autofocus /> | ||
<x-forms.input value="[email protected]" type="email" name="email" | ||
label="{{ __('input.email') }}" autofocus /> | ||
|
||
<x-forms.input value="password" type="password" name="password" | ||
label="{{ __('input.password') }}" /> | ||
|
@@ -27,12 +32,7 @@ | |
@endenv | ||
|
||
<x-forms.button type="submit">{{ __('auth.login') }}</x-forms.button> | ||
@if ($is_registration_enabled) | ||
<a href="/register" | ||
class="text-xs text-center text-white normal-case bg-transparent border-none rounded no-animation hover:no-underline btn btn-sm bg-coollabs-gradient"> | ||
{{ __('auth.register_now') }} | ||
</a> | ||
@else | ||
@if (!$is_registration_enabled) | ||
<div class="text-sm text-center">{{ __('auth.registration_disabled') }}</div> | ||
@endif | ||
@if ($errors->any()) | ||
|
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
4 changes: 2 additions & 2 deletions
4
resources/views/livewire/project/application/environment-variable/show.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