udpates
This commit is contained in:
@@ -72,6 +72,9 @@ a {
|
||||
.main-navbar {
|
||||
@apply fixed h-full overflow-hidden pt-14;
|
||||
}
|
||||
.kbd-custom {
|
||||
@apply px-2 text-xs border border-dashed rounded border-neutral-700 text-warning;
|
||||
}
|
||||
.icon {
|
||||
@apply w-6 h-6;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" />
|
||||
<path d="M21 21l-6 -6" />
|
||||
</svg>
|
||||
<span class="px-2 ml-2 text-xs border border-dashed rounded border-neutral-700 text-warning">/</span>
|
||||
<span class="ml-2 kbd-custom">/</span>
|
||||
</div>
|
||||
<div class="relative" role="dialog" aria-modal="true" v-if="showCommandPalette" @keyup.esc="resetState">
|
||||
<div class="fixed inset-0 transition-opacity bg-opacity-75 bg-coolgray-100" @click.self="resetState">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<x-layout-simple>
|
||||
<div class="flex items-center justify-center h-screen">
|
||||
<div>
|
||||
<div class="w-1/2 min-w-fit">
|
||||
<div class="flex flex-col items-center pb-8">
|
||||
<div class="text-5xl font-bold tracking-tight text-center text-white">Coolify</div>
|
||||
<x-version />
|
||||
@@ -8,13 +8,13 @@
|
||||
<div class="flex items-center gap-2">
|
||||
<h1>{{ __('auth.login') }}</h1>
|
||||
@if ($is_registration_enabled)
|
||||
<a href="/register" class="flex justify-center pt-2 hover:no-underline">
|
||||
<button
|
||||
class="normal-case rounded-none btn btn-sm btn-primary bg-coollabs-gradient">{{ __('auth.register_now') }}</button>
|
||||
<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 class="w-96">
|
||||
<div>
|
||||
<form action="/login" method="POST" class="flex flex-col gap-2">
|
||||
@csrf
|
||||
@env('local')
|
||||
@@ -29,8 +29,13 @@
|
||||
<x-forms.input required type="email" name="email" label="{{ __('input.email') }}" autofocus />
|
||||
<x-forms.input required type="password" name="password" label="{{ __('input.password') }}" />
|
||||
@endenv
|
||||
|
||||
<x-forms.button type="submit">{{ __('auth.login') }}</x-forms.button>
|
||||
@if (!$is_registration_enabled)
|
||||
<div class="text-sm text-center">{{ __('auth.registration_disabled') }}</div>
|
||||
@endif
|
||||
@if ($errors->any())
|
||||
<div class="text-center text-error">
|
||||
<div class="text-xs text-center text-error">
|
||||
<span>{{ __('auth.failed') }}</span>
|
||||
</div>
|
||||
@endif
|
||||
@@ -39,10 +44,6 @@
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
<x-forms.button type="submit">{{ __('auth.login') }}</x-forms.button>
|
||||
@if (!$is_registration_enabled)
|
||||
<div class="text-sm text-center">{{ __('auth.registration_disabled') }}</div>
|
||||
@endif
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<x-layout-simple>
|
||||
<div class="flex items-center justify-center min-h-screen">
|
||||
<div>
|
||||
<div class="flex items-center justify-center min-h-screen ">
|
||||
<div class="w-1/2">
|
||||
<div class="flex flex-col items-center pb-8">
|
||||
<div class="text-5xl font-bold tracking-tight text-center text-white">Coolify</div>
|
||||
<x-version />
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<h1>{{ __('auth.register') }}</h1>
|
||||
<a href="/login" class="flex justify-center pt-2 hover:no-underline">
|
||||
<button
|
||||
class="normal-case rounded-none btn btn-sm btn-primary bg-coollabs-gradient">{{ __('auth.already_registered') }}</button>
|
||||
<a href="/login"
|
||||
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.already_registered') }}
|
||||
</a>
|
||||
</div>
|
||||
<form action="/register" method="POST" class="flex flex-col gap-2">
|
||||
@@ -37,10 +37,8 @@
|
||||
<x-forms.button type="submit">{{ __('auth.register') }}</x-forms.button>
|
||||
</form>
|
||||
@if ($errors->any())
|
||||
<div class="fixed top-0 text-xs alert alert-error">
|
||||
<ul>
|
||||
<li>{{ __('auth.failed') }}</li>
|
||||
</ul>
|
||||
<div class="text-xs text-center text-error">
|
||||
<span>{{ __('auth.failed') }}</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
<x-layout>
|
||||
<livewire:run-command :servers="$servers" />
|
||||
<h1 class="pb-2">Command Center</h1>
|
||||
@if ($servers->count() > 0)
|
||||
<livewire:run-command :servers="$servers" />
|
||||
@else
|
||||
<div>No validated servers found.</div>
|
||||
@endif
|
||||
</x-layout>
|
||||
|
||||
@@ -1,6 +1,24 @@
|
||||
<x-layout>
|
||||
<h1 class="pb-2">Dashboard</h1>
|
||||
<div class="text-sm ">
|
||||
Something useful will be here.
|
||||
<div class="pb-10 text-sm">
|
||||
Something (more) useful will be here.
|
||||
</div>
|
||||
<div class="w-full rounded shadow stats stats-vertical lg:stats-horizontal">
|
||||
<div class="stat">
|
||||
<div class="stat-title">Servers</div>
|
||||
<div class="stat-value">{{ $servers }}</div>
|
||||
</div>
|
||||
|
||||
<div class="stat">
|
||||
<div class="stat-title">Projects</div>
|
||||
<div class="stat-value">{{ $projects }}</div>
|
||||
</div>
|
||||
|
||||
<div class="stat">
|
||||
<div class="stat-title">Resources</div>
|
||||
<div class="stat-value">{{ $resources }}</div>
|
||||
<div class="stat-desc">Applications, databases, etc...</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</x-layout>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<div>
|
||||
<h1 class="pb-2">Command Center</h1>
|
||||
<div class="pb-4 text-sm">Outputs are not saved at the moment, only available until you refresh or navigate.</div>
|
||||
<form class="flex items-end justify-center gap-2" wire:submit.prevent='runCommand'>
|
||||
<x-forms.input placeholder="ls -l" autofocus noDirty id="command" label="Command" required />
|
||||
|
||||
@@ -68,12 +68,22 @@
|
||||
<div class="flex items-center gap-2 py-4">
|
||||
<h3>Private Key</h3>
|
||||
<a href="{{ route('server.private-key', ['server_uuid' => $server->uuid]) }}">
|
||||
<x-forms.button>Change</x-forms.button>
|
||||
<x-forms.button>
|
||||
@if (data_get($server, 'privateKey.uuid'))
|
||||
Change
|
||||
@else
|
||||
Add
|
||||
@endif
|
||||
</x-forms.button>
|
||||
</a>
|
||||
</div>
|
||||
<a href="{{ route('private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
|
||||
<button class="text-white btn-link">{{ data_get($server, 'privateKey.name') }}</button>
|
||||
</a>
|
||||
@if (data_get($server, 'privateKey.uuid'))
|
||||
<a href="{{ route('private-key.show', ['private_key_uuid' => data_get($server, 'privateKey.uuid')]) }}">
|
||||
<button class="text-white btn-link">{{ data_get($server, 'privateKey.name') }}</button>
|
||||
</a>
|
||||
@else
|
||||
<div class="text-sm">No private key attached.</div>
|
||||
@endif
|
||||
<div class="flex items-center gap-2 py-4">
|
||||
<h3>Destinations</h3>
|
||||
<a href="{{ route('destination.new', ['server_id' => $server->id]) }}">
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
<x-layout>
|
||||
<h1>Profile</h1>
|
||||
<div class="pb-10 text-sm breadcrumbs">
|
||||
<ul>
|
||||
<li>
|
||||
Your user profile settings.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<livewire:profile.form :request="$request" />
|
||||
<h3>2FA</h3>
|
||||
<h3 class="py-4">Two-factor Authentication</h3>
|
||||
@if (session('status') == 'two-factor-authentication-enabled')
|
||||
<div class="mb-4 text-sm font-medium">
|
||||
Please finish configuring two factor authentication below. Read the QR code or enter the secret key
|
||||
@@ -15,10 +22,10 @@
|
||||
</form>
|
||||
<div>
|
||||
<div>{!! $request->user()->twoFactorQrCodeSvg() !!}</div>
|
||||
<div x-data="{ showCode: false }">
|
||||
<div x-data="{ showCode: false }" class="py-2">
|
||||
<x-forms.button x-on:click="showCode = !showCode">Show secret key to manually enter</x-forms.button>
|
||||
<template x-if="showCode">
|
||||
<div class="text-sm">{!! decrypt($request->user()->two_factor_secret) !!}</div>
|
||||
<div class="py-2 text-sm">{!! decrypt($request->user()->two_factor_secret) !!}</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
@@ -63,7 +70,7 @@
|
||||
</div>
|
||||
@endif
|
||||
@else
|
||||
<div class="text-sm">Two factor authentication is <span class="text-helper">disabled</span>.</div>
|
||||
<div class="pb-2 text-sm">Two factor authentication is <span class="text-helper">disabled</span>.</div>
|
||||
<form action="/user/two-factor-authentication" method="POST">
|
||||
@csrf
|
||||
<x-forms.button type="submit">Configure 2FA</x-forms.button>
|
||||
|
||||
@@ -12,11 +12,15 @@
|
||||
<a href="{{ route('project.show', ['project_uuid' => data_get($project, 'uuid')]) }}"
|
||||
class="box">{{ $project->name }}</a>
|
||||
@empty
|
||||
<div x-data>
|
||||
No project found. Use the <button x-on:click="$dispatch('slash')" class='text-white underline'>magic
|
||||
bar</button> to create a new
|
||||
<div>
|
||||
No project found. Use the magic
|
||||
bar (press <span class="kbd-custom">/</span>) to create a new
|
||||
project.
|
||||
</div>
|
||||
<div>
|
||||
If you do not have a project yet, just create a resource (application, database, etc.) first, it will
|
||||
create a new project for you automatically.
|
||||
</div>
|
||||
@endforelse
|
||||
</div>
|
||||
</x-layout>
|
||||
|
||||
@@ -7,10 +7,17 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="flex flex-col gap-2">
|
||||
<div class="grid grid-cols-2">
|
||||
@forelse ($servers as $server)
|
||||
<a href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}"
|
||||
class="box">{{ $server->name }}</a>
|
||||
<a class="text-center hover:no-underline box group"
|
||||
href="{{ route('server.show', ['server_uuid' => data_get($server, 'uuid')]) }}">
|
||||
<div class="group-hover:text-white">
|
||||
<div>{{ $server->name }}</div>
|
||||
@if (!$server->settings->is_validated)
|
||||
<div class="text-xs text-error">not validated</div>
|
||||
@endif
|
||||
</div>
|
||||
</a>
|
||||
@empty
|
||||
<div class="flex flex-col">
|
||||
<div>Without a server, you won't be able to do much.</div>
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="py-4">
|
||||
<h2>Invite a new member</h2>
|
||||
{{-- <div class="py-4">
|
||||
<h3>Invite a new member</h3>
|
||||
<form class="flex items-center gap-2">
|
||||
<x-forms.input type="email" name="email" placeholder="Email" />
|
||||
<x-forms.button>Invite</x-forms.button>
|
||||
</form>
|
||||
</div>
|
||||
</div> --}}
|
||||
</x-layout>
|
||||
|
||||
Reference in New Issue
Block a user