Menü: Symbole je Menüpunkt, gemeinsame Symbolauswahl
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m47s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m33s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m41s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m41s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m41s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m44s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m18s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m9s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m0s

- Optionales Symbol für jeden Menü- und Unterpunkt (Kopfzeile,
  Aufklappmenüs, „Mehr“, Handy-Menü)
- Gemeinsame Liste resources/icons/icons.json (66 Lucide-Symbole) für
  Menü, Schnellzugriffe und Pagebuilder; `npm run icons` erzeugt
  Frontend-Zuordnung und SVGs für die Vorschau im Admin
- Admin-Auswahl mit Symbolvorschau und Suche

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 14:14:52 +00:00
parent dda250aaad
commit 23c36d28b5
179 changed files with 872 additions and 684 deletions

View file

@ -7,37 +7,6 @@ namespace App\Support;
*/
class QuickLinks
{
/**
* Auswahl an Symbolen (Lucide-Namen). Das Portal bündelt genau diese Symbole,
* deshalb ist die Liste bewusst begrenzt.
*/
public const ICONS = [
'link' => 'Link',
'clock' => 'Uhr / Zeiterfassung',
'calendar-days' => 'Kalender / Dienstplan',
'plane' => 'Urlaub',
'receipt' => 'Reisekosten / Belege',
'graduation-cap' => 'Fortbildung',
'headset' => 'IT-Support',
'utensils' => 'Speiseplan',
'car' => 'Fahrdienst',
'file-text' => 'Formulare / Dokumente',
'book-open' => 'Handbuch / Richtlinien',
'users' => 'Personen / Teams',
'mail' => 'E-Mail',
'message-square' => 'Chat / Feedback',
'lightbulb' => 'Ideen',
'shield-check' => 'Datenschutz / Sicherheit',
'heart-handshake' => 'Soziales / MAV',
'building-2' => 'Standorte',
'wrench' => 'Technik / Hausmeister',
'monitor' => 'Anwendung',
'folder' => 'Ablage',
'phone' => 'Telefonbuch',
'megaphone' => 'Ankündigungen',
'briefcase' => 'Stellenangebote',
];
public function __construct(private readonly Settings $settings) {}
/**
@ -54,7 +23,7 @@ class QuickLinks
return array_values(array_map(fn (array $link) => [
'label' => (string) ($link['label'] ?? ''),
'url' => preg_match('#^(https?://|/)#i', (string) ($link['url'] ?? '')) ? (string) $link['url'] : '#',
'icon' => array_key_exists($link['icon'] ?? '', self::ICONS) ? $link['icon'] : 'link',
'icon' => Icons::has($link['icon'] ?? null) ? $link['icon'] : 'link',
'new_tab' => (bool) ($link['new_tab'] ?? false),
], $links));
}