Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m24s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m26s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m46s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m31s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m18s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
63 lines
3.9 KiB
PHP
63 lines
3.9 KiB
PHP
<x-filament-panels::page>
|
||
<style>
|
||
.ih-demo-text { font-size: .875rem; line-height: 1.5rem; color: rgb(55 65 81); }
|
||
.ih-demo-text p + p, .ih-demo-text p + ul, .ih-demo-text ul + p { margin-top: .5rem; }
|
||
.ih-demo-text ul { list-style: disc; padding-left: 1.25rem; }
|
||
.ih-demo-status { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; margin-bottom: 1rem; }
|
||
.ih-demo-dot { width: .625rem; height: .625rem; border-radius: 999px; background: rgb(156 163 175); }
|
||
.ih-demo-dot-on { background: rgb(22 163 74); }
|
||
.ih-demo-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
|
||
.ih-demo-count { border: 1px solid rgb(229 231 235); border-radius: .5rem; padding: .625rem .75rem; }
|
||
.ih-demo-count strong { display: block; font-size: 1.25rem; line-height: 1.75rem; }
|
||
.ih-demo-count span { font-size: .8125rem; color: rgb(107 114 128); }
|
||
.ih-demo-hint { font-size: .8125rem; color: rgb(107 114 128); margin-top: .75rem; }
|
||
.dark .ih-demo-text { color: rgb(209 213 219); }
|
||
.dark .ih-demo-count { border-color: rgb(55 65 81); }
|
||
.dark .ih-demo-count span, .dark .ih-demo-hint { color: rgb(156 163 175); }
|
||
</style>
|
||
|
||
<x-filament::section heading="Wozu Demo-Inhalte?">
|
||
<div class="ih-demo-text">
|
||
<p>Füllt eine Test- oder Vorführinstallation mit realistischen Beispielinhalten, damit Startseite, Neuigkeiten, Kalender, Personenverzeichnis und Module nicht leer sind.</p>
|
||
<p>Angelegt werden – soweit das jeweilige Plugin aktiv ist:</p>
|
||
<ul>
|
||
<li>16 Beispielpersonen mit Funktion, Bereich, Standort und Organigramm (ohne Anmeldemöglichkeit)</li>
|
||
<li>Neuigkeiten mit Titelbildern, Termine, Inhaltsseiten, Downloads und Ordner im Qualitätsmanagement</li>
|
||
<li>Einträge in „Gemeinsam feiern“, Geburtstage, eine Kachel auf der Startseite und – falls noch leer – Schnellzugriffe</li>
|
||
</ul>
|
||
<p>Alles wird vermerkt und lässt sich mit einem Klick vollständig wieder entfernen. Überschriebene Einstellungen werden dabei zurückgesetzt. Bitte nicht in einer produktiv genutzten Installation verwenden.</p>
|
||
</div>
|
||
</x-filament::section>
|
||
|
||
<x-filament::section heading="Status">
|
||
<div class="ih-demo-status">
|
||
<span @class(['ih-demo-dot', 'ih-demo-dot-on' => $installed])></span>
|
||
@if ($installed)
|
||
Demo-Inhalte sind angelegt{{ $installedAt ? ' (seit '.$installedAt->timezone(config('app.timezone'))->format('d.m.Y, H:i').' Uhr)' : '' }}.
|
||
@else
|
||
Keine Demo-Inhalte angelegt.
|
||
@endif
|
||
</div>
|
||
|
||
@if ($installed && $counts !== [])
|
||
<div class="ih-demo-counts">
|
||
@foreach ($counts as $label => $count)
|
||
<div class="ih-demo-count"><strong>{{ $count }}</strong><span>{{ $label }}</span></div>
|
||
@endforeach
|
||
</div>
|
||
@endif
|
||
|
||
@if ($installed)
|
||
<x-filament::button color="danger" icon="heroicon-o-trash" wire:click="remove" wire:target="remove"
|
||
wire:confirm="Alle Demo-Inhalte samt Bildern und Dateien endgültig entfernen?">
|
||
Demo-Inhalte entfernen
|
||
</x-filament::button>
|
||
@else
|
||
<x-filament::button icon="heroicon-o-sparkles" wire:click="install" wire:target="install"
|
||
wire:confirm="Demo-Inhalte jetzt anlegen? Das kann bis zu einer Minute dauern.">
|
||
Demo-Inhalte anlegen
|
||
</x-filament::button>
|
||
<p class="ih-demo-hint">Die Titelbilder werden von picsum.photos geladen. Ohne Internetverbindung des Servers werden einfarbige Platzhalter verwendet.</p>
|
||
@endif
|
||
</x-filament::section>
|
||
</x-filament-panels::page>
|