This commit is contained in:
Andras Bacsai
2023-04-19 12:42:15 +02:00
parent d6c725ea83
commit d947175e4b
35 changed files with 333 additions and 112 deletions

View File

@@ -0,0 +1,7 @@
<x-layout>
<h1>{{ $title ?? 'NOT SET' }}</h1>
<x-applications.navbar :applicationId="$applicationId" />
<div>
{{ $slot }}
</div>
</x-layout>

View File

@@ -0,0 +1,5 @@
<nav class="flex gap-4 py-2 bg-gray-100">
<a href="{{ route('project.applications.configuration', Route::current()->parameters()) }}">Configuration</a>
<a href="{{ route('project.applications.deployments', Route::current()->parameters()) }}">Deployments</a>
<livewire:deploy-application :applicationId="$applicationId" />
</nav>

View File

@@ -1,6 +1,16 @@
<label for={{ $name }}>{{ $name }}</label>
<input id={{ $name }} wire:model={{ $name }} type="text" name={{ $name }}
{{ $required }} />
<label for={{ $name }}>
@if ($label)
{{ $label }}
@else
{{ $name }}
@endif
@if ($required)
*
@endif
</label>
<input id={{ $name }} wire:model.defer={{ $name }} type="text" name={{ $name }}
@if ($required) required @endif
@if ($readonly) readOnly=true disabled=true @endif />
@error($name)
<span class="text-red-500">{{ $message }}</span>
@enderror

View File

@@ -7,6 +7,8 @@
<title>{{ $title ?? 'Coolify' }}</title>
<meta name="csrf-token" content="{{ csrf_token() }}">
@vite(['resources/js/app.js', 'resources/css/app.css'])
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
<style>[x-cloak] { display: none !important; }</style>
@livewireStyles
</head>

View File

@@ -1,4 +1,4 @@
<nav>
<nav class="flex gap-2 ">
<div>v{{ config('coolify.version') }}</div>
@guest
<a href="/login">Login</a>
@@ -14,6 +14,6 @@
@csrf
<button type="submit">Logout</button>
</form>
<livewire:check-update>
{{-- <livewire:check-update> --}}
@endauth
</nav>