Add first pass of the web interface: Sites index + detail, via Livewire

Home page is now a Livewire-powered, searchable/paginated Site list
(search by domain) instead of the stock Laravel welcome page. Clicking
a site goes to a plain controller-rendered detail page listing its
pages. Shared layout at resources/views/components/layouts/app.blade.php.
This commit is contained in:
m105
2026-07-22 21:16:17 +03:00
parent 4dd5a3c17d
commit f15eb5aec1
10 changed files with 1876 additions and 228 deletions
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ isset($title) ? $title.' — ' : '' }}{{ config('app.name', 'Huginn') }}</title>
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
</head>
<body class="min-h-screen bg-white text-neutral-900 antialiased dark:bg-neutral-950 dark:text-neutral-100">
<header class="border-b border-neutral-200 dark:border-neutral-800">
<div class="mx-auto flex max-w-5xl items-center px-4 py-4">
<a href="{{ route('sites.index') }}" class="text-lg font-semibold">Huginn</a>
</div>
</header>
<main>
{{ $slot }}
</main>
@livewireScripts
</body>
</html>