Rückmeldungen, Hintergrundaufgaben, Systemzustand und Web-Installer
- Rückmeldungen an den Hersteller (docs/specs/feedback.md): Fehlerbericht und
Funktionswunsch, nur freigeschaltete Wege, Idempotency-Key je Meldung,
Warteschlange mit höchstens fünf Versuchen, 422 am Feld, 429 mit Wartezeit,
404 blendet den Weg aus, Referenznummer und „Meine Rückmeldungen“,
sichtbare technische Angaben und Datenschutzhinweis über dem Absendeknopf
- Hintergrundaufgaben ohne Dauerprozess: Cron, Web-Cron (/cron/{token}) oder
Pseudo-Cron nach dem Seitenaufruf; Queue in kurzen Häppchen
- Seite „Systemzustand“ mit Voraussetzungen, Grenzen, Betrieb, Sicherheit und
Anleitung für den Cronjob
- Web-Installer (Systemprüfung → Datenbank → Administrator), legt .env und
Anwendungsschlüssel selbst an, arbeitet vor der Einrichtung ohne Datenbank
- Datenbank-Benachrichtigungen im Admin-Bereich
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
43244d751a
commit
029dbd243d
38 changed files with 2274 additions and 12 deletions
55
resources/views/install/account.blade.php
Normal file
55
resources/views/install/account.blade.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
@extends('install.layout', ['step' => 3])
|
||||
|
||||
@section('content')
|
||||
<h1>Portal und Administrator</h1>
|
||||
<p class="lead">Mit diesem Konto verwalten Sie das Portal. Weitere Personen legen Sie später im Admin-Bereich an oder binden Ihren Identity Provider an.</p>
|
||||
|
||||
<form method="post" action="/install/konto">
|
||||
@csrf
|
||||
<label for="portal_name">Name des Portals</label>
|
||||
<input id="portal_name" name="portal_name" value="{{ old('portal_name', 'Mitarbeiterportal') }}" required>
|
||||
@error('portal_name') <div class="error">{{ $message }}</div> @enderror
|
||||
|
||||
<div class="row">
|
||||
<div>
|
||||
<label for="first_name">Vorname</label>
|
||||
<input id="first_name" name="first_name" value="{{ old('first_name') }}" required autocomplete="given-name">
|
||||
@error('first_name') <div class="error">{{ $message }}</div> @enderror
|
||||
</div>
|
||||
<div>
|
||||
<label for="last_name">Nachname</label>
|
||||
<input id="last_name" name="last_name" value="{{ old('last_name') }}" required autocomplete="family-name">
|
||||
@error('last_name') <div class="error">{{ $message }}</div> @enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label for="email">E-Mail-Adresse</label>
|
||||
<input id="email" name="email" type="email" value="{{ old('email') }}" required autocomplete="username">
|
||||
@error('email') <div class="error">{{ $message }}</div> @enderror
|
||||
|
||||
<div class="row">
|
||||
<div>
|
||||
<label for="password">Passwort</label>
|
||||
<input id="password" name="password" type="password" required autocomplete="new-password">
|
||||
</div>
|
||||
<div>
|
||||
<label for="password_confirmation">Wiederholen</label>
|
||||
<input id="password_confirmation" name="password_confirmation" type="password" required autocomplete="new-password">
|
||||
</div>
|
||||
</div>
|
||||
@error('password') <div class="error">{{ $message }}</div> @else <div class="hint">Mindestens 10 Zeichen, mit Buchstaben und Ziffern.</div> @enderror
|
||||
|
||||
<fieldset>
|
||||
<legend>Lizenz (optional, für Updates)</legend>
|
||||
<label for="license_email">Lizenz-E-Mail</label>
|
||||
<input id="license_email" name="license_email" type="email" value="{{ old('license_email') }}" autocomplete="off">
|
||||
@error('license_email') <div class="error">{{ $message }}</div> @enderror
|
||||
<label for="license_key">Lizenzschlüssel</label>
|
||||
<input id="license_key" name="license_key" type="password" autocomplete="off">
|
||||
@error('license_key') <div class="error">{{ $message }}</div> @enderror
|
||||
<div class="hint">Kann auch später unter „Aktualisierung“ hinterlegt werden.</div>
|
||||
</fieldset>
|
||||
|
||||
<button type="submit">Einrichtung abschließen</button>
|
||||
</form>
|
||||
@endsection
|
||||
38
resources/views/install/database.blade.php
Normal file
38
resources/views/install/database.blade.php
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
@extends('install.layout', ['step' => 2])
|
||||
|
||||
@section('content')
|
||||
<h1>Datenbank</h1>
|
||||
<p class="lead">Die Zugangsdaten finden Sie in der Verwaltung Ihres Hosters. Die Datenbank muss dort bereits angelegt sein (MySQL ab 8.0 oder MariaDB ab 10.6).</p>
|
||||
|
||||
<form method="post" action="/install/datenbank">
|
||||
@csrf
|
||||
<div class="row3">
|
||||
<div>
|
||||
<label for="host">Server</label>
|
||||
<input id="host" name="host" value="{{ old('host', $values['host']) }}" required>
|
||||
</div>
|
||||
<div>
|
||||
<label for="port">Port</label>
|
||||
<input id="port" name="port" type="number" value="{{ old('port', $values['port']) }}" required>
|
||||
</div>
|
||||
</div>
|
||||
@error('host') <div class="error">{{ $message }}</div> @enderror
|
||||
|
||||
<label for="database">Name der Datenbank</label>
|
||||
<input id="database" name="database" value="{{ old('database', $values['database']) }}" required>
|
||||
@error('database') <div class="error">{{ $message }}</div> @enderror
|
||||
|
||||
<div class="row">
|
||||
<div>
|
||||
<label for="username">Benutzer</label>
|
||||
<input id="username" name="username" value="{{ old('username', $values['username']) }}" required autocomplete="off">
|
||||
</div>
|
||||
<div>
|
||||
<label for="password">Passwort</label>
|
||||
<input id="password" name="password" type="password" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit">Verbindung prüfen und speichern</button>
|
||||
</form>
|
||||
@endsection
|
||||
48
resources/views/install/layout.blade.php
Normal file
48
resources/views/install/layout.blade.php
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>Einrichtung</title>
|
||||
<style>
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; min-height: 100vh; background: #f4f5f7; color: #1a1d21; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
|
||||
main { max-width: 560px; margin: 0 auto; padding: 48px 16px; }
|
||||
.card { background: #fff; border: 1px solid #e3e5e8; border-radius: 10px; padding: 32px; }
|
||||
h1 { font-size: 22px; margin: 0 0 4px; }
|
||||
.lead { color: #5f6670; margin: 0 0 24px; }
|
||||
.steps { display: flex; gap: 8px; margin-bottom: 20px; font-size: 13px; color: #5f6670; }
|
||||
.steps span { padding: 4px 10px; border-radius: 999px; background: #e9ebee; }
|
||||
.steps .active { background: #0f4c5c; color: #fff; }
|
||||
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
|
||||
input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d5d8dd; border-radius: 6px; font: inherit; }
|
||||
input:focus { outline: 2px solid #8eb1bd; border-color: #31697a; }
|
||||
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
||||
.row3 { display: grid; grid-template-columns: 3fr 1fr; gap: 12px; }
|
||||
button { margin-top: 24px; height: 42px; padding: 0 20px; border: 0; border-radius: 6px; background: #0f4c5c; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
|
||||
button:disabled { opacity: .5; cursor: not-allowed; }
|
||||
.error { color: #c62828; font-size: 13px; margin-top: 6px; }
|
||||
.hint { color: #5f6670; font-size: 13px; margin-top: 6px; }
|
||||
.check { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid #eef0f2; }
|
||||
.check:first-child { border-top: 0; }
|
||||
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
|
||||
.ok { background: #16a34a; } .warning { background: #d97706; } .error-dot { background: #dc2626; }
|
||||
fieldset { border: 1px solid #e3e5e8; border-radius: 8px; padding: 4px 16px 16px; margin: 24px 0 0; }
|
||||
legend { font-size: 13px; font-weight: 600; padding: 0 6px; }
|
||||
@media (max-width: 480px) { .row, .row3 { grid-template-columns: 1fr; } .card { padding: 24px 18px; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="steps">
|
||||
<span @class(['active' => $step === 1])>1 Systemprüfung</span>
|
||||
<span @class(['active' => $step === 2])>2 Datenbank</span>
|
||||
<span @class(['active' => $step === 3])>3 Administrator</span>
|
||||
</div>
|
||||
<div class="card">
|
||||
@yield('content')
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
21
resources/views/install/requirements.blade.php
Normal file
21
resources/views/install/requirements.blade.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
@extends('install.layout', ['step' => 1])
|
||||
|
||||
@section('content')
|
||||
<h1>Willkommen</h1>
|
||||
<p class="lead">In drei Schritten ist Ihr Mitarbeiterportal eingerichtet. Zuerst prüfen wir, ob der Server alles Nötige mitbringt.</p>
|
||||
|
||||
@foreach ($checks as $check)
|
||||
<div class="check">
|
||||
<span @class(['dot', 'ok' => $check['status'] === 'ok', 'warning' => $check['status'] === 'warning', 'error-dot' => $check['status'] === 'error'])></span>
|
||||
<div><strong>{{ $check['label'] }}</strong><br><span class="hint">{{ $check['message'] }}</span></div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
@unless ($envWritable)
|
||||
<p class="error">Die Konfigurationsdatei .env fehlt oder ist nicht beschreibbar. Bitte Schreibrechte für das Installationsverzeichnis vergeben.</p>
|
||||
@endunless
|
||||
|
||||
<form action="/install/datenbank" method="get">
|
||||
<button type="submit" @disabled(! $canContinue)>Weiter zur Datenbank</button>
|
||||
</form>
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue