wip
This commit is contained in:
3
resources/views/components/button.blade.php
Normal file
3
resources/views/components/button.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<button wire:loading.remove {{ $attributes }} class="btn btn-primary rounded-none btn-xs no-animation"> {{ $slot }} </button>
|
||||
|
||||
<button wire:loading class="btn btn-disabled rounded-none btn-xs no-animation"> {{ $slot }}</button>
|
||||
24
resources/views/components/layout.blade.php
Normal file
24
resources/views/components/layout.blade.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" data-theme="light" class="h-full">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ $title ?? 'Coolify' }}</title>
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
@vite(['resources/js/app.js', 'resources/css/app.css'])
|
||||
@livewireStyles
|
||||
</head>
|
||||
|
||||
<body class="h-full">
|
||||
@auth
|
||||
<x-navbar />
|
||||
@endauth
|
||||
<main class="h-full pt-10 p-4">
|
||||
{{ $slot }}
|
||||
</main>
|
||||
|
||||
@livewireScripts
|
||||
</body>
|
||||
|
||||
</html>
|
||||
15
resources/views/components/navbar.blade.php
Normal file
15
resources/views/components/navbar.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<nav class="flex space-x-4 p-2 fixed right-0">
|
||||
@env('local')
|
||||
<a href="/run-command">Run command</a>
|
||||
{{-- <livewire:create-token /> --}}
|
||||
<a href="/debug">Debug</a>
|
||||
<a href="/debug/logs" target="_blank">Debug Logs</a>
|
||||
{{-- <a href="/debug/inertia">Debug(inertia)</a> --}}
|
||||
@endenv
|
||||
<a href="/">Dashboard</a>
|
||||
<a href="/profile">Profile</a>
|
||||
<form action="/logout" method="POST">
|
||||
@csrf
|
||||
<button type="submit">Logout</button>
|
||||
</form>
|
||||
</nav>
|
||||
5
resources/views/demo.blade.php
Normal file
5
resources/views/demo.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<x-layout>
|
||||
|
||||
<livewire:run-command />
|
||||
|
||||
</x-layout>
|
||||
44
resources/views/livewire/run-command.blade.php
Executable file
44
resources/views/livewire/run-command.blade.php
Executable file
@@ -0,0 +1,44 @@
|
||||
<div>
|
||||
<div>
|
||||
<div>
|
||||
<label for="command">
|
||||
<input class="ring-1" id="command" wire:model="command" type="text"/>
|
||||
</label>
|
||||
<button class="btn btn-success btn-xs rounded-none" wire:click="runCommand">
|
||||
Run command
|
||||
<button>
|
||||
</div>
|
||||
|
||||
@isset($activity?->id)
|
||||
<div>
|
||||
Activity: <span>{{ $activity?->id ?? 'waiting' }}</span>
|
||||
</div>
|
||||
@endisset
|
||||
</div>
|
||||
|
||||
<div class="w-full h-10"></div>
|
||||
|
||||
<pre
|
||||
style="
|
||||
background-color: #FFFFFF;
|
||||
width: 1200px;
|
||||
height: 600px;
|
||||
overflow-y: scroll;
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
"
|
||||
placeholder="Build output"
|
||||
@if($isKeepAliveOn || $manualKeepAlive) wire:poll.750ms="polling" @endif
|
||||
>
|
||||
{{ data_get($activity, 'description') }}
|
||||
</pre>
|
||||
|
||||
<div>
|
||||
<input id="manualKeepAlive" name="manualKeepAlive" type="checkbox" wire:model="manualKeepAlive">
|
||||
<label for="manualKeepAlive"> Live content </label>
|
||||
</div>
|
||||
|
||||
@if($isKeepAliveOn || $manualKeepAlive)
|
||||
Polling...
|
||||
@endif
|
||||
</div>
|
||||
@@ -13,6 +13,10 @@
|
||||
<h1 class="text-3xl font-bold">
|
||||
Hello from Coolify!
|
||||
</h1>
|
||||
|
||||
<p class="mt-4">
|
||||
<a href="/demo"> See demo </a>
|
||||
</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user