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

@ -3,7 +3,7 @@ import { onMounted, ref } from 'vue';
import { Link } from '@inertiajs/vue3';
import { useEventListener, useResizeObserver } from '@vueuse/core';
import { ChevronLeft, ChevronRight } from '@lucide/vue';
import { quickLinkIcons } from '@/lib/icons';
import { icons } from '@/lib/icons';
defineProps({
links: { type: Array, required: true },
@ -66,7 +66,7 @@ useEventListener(track, 'scroll', update, { passive: true });
:rel="link.new_tab ? 'noopener' : undefined"
class="flex w-[116px] shrink-0 snap-start flex-col items-center gap-2.5 rounded-md bg-muted px-2 py-4 text-center transition-colors hover:bg-brand-soft"
>
<component :is="quickLinkIcons[link.icon] ?? quickLinkIcons.link" class="size-6 text-brand-text" :stroke-width="1.6" />
<component :is="icons[link.icon] ?? icons.link" class="size-6 text-brand-text" :stroke-width="1.6" />
<span class="text-xs leading-tight font-medium">{{ link.label }}</span>
</component>
</div>