Symbole: alle Lucide-Symbole lokal verfügbar
All checks were successful
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m35s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m37s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m41s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m52s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m56s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 4m2s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 4m21s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 4m5s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s

- Vollständiger Satz (1.854 Symbole + Aliase älterer Namen) in
  resources/icons/svg.php (Admin) und resources/js/lib/icon-set.js
  (Portal, wird nur bei Bedarf geladen)
- Kuratierte 66 mit deutscher Bezeichnung bleiben im Hauptpaket und
  stehen in Auswahlfeldern vorne; die Suche findet alle
- AppIcon-Komponente für Menü, Schnellzugriffe und Pagebuilder;
  Symbolfeld im Pagebuilder mit Suche

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 14:50:13 +00:00
parent 23c36d28b5
commit c71131d054
151 changed files with 4621 additions and 512 deletions

View file

@ -0,0 +1,37 @@
<script setup>
import { computed, watchEffect } from 'vue';
import { icons } from '@/lib/icons';
import { iconMarkup, loadIconSet } from '@/lib/iconSet';
/**
* Ein Symbol nach Namen. Kuratierte Symbole sind sofort da, alle anderen kommen
* aus dem nachgeladenen Symbolsatz – der Platz bleibt so lange reserviert.
*/
const props = defineProps({
name: { type: String, default: null },
strokeWidth: { type: [Number, String], default: 2 },
});
const component = computed(() => (props.name ? icons[props.name] : null));
const markup = computed(() => (component.value ? null : iconMarkup(props.name)));
watchEffect(() => {
if (props.name && !component.value) loadIconSet();
});
</script>
<template>
<component :is="component" v-if="component" :stroke-width="strokeWidth" aria-hidden="true" />
<svg
v-else-if="name"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
:stroke-width="strokeWidth"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
v-html="markup ?? ''"
/>
</template>

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 { icons } from '@/lib/icons';
import AppIcon from '@/components/AppIcon.vue';
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="icons[link.icon] ?? icons.link" class="size-6 text-brand-text" :stroke-width="1.6" />
<AppIcon :name="link.icon || 'link'" class="size-6 text-brand-text" :stroke-width="1.6" />
<span class="text-xs leading-tight font-medium">{{ link.label }}</span>
</component>
</div>