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,26 @@
import { shallowRef } from 'vue';
/**
* Alle Symbole (Lucide) – lokal, aber als eigene Datei, die erst geladen wird,
* wenn ein Symbol außerhalb der kuratierten Auswahl gebraucht wird.
*/
export const iconSet = shallowRef(null);
let loading = null;
export function loadIconSet() {
loading ??= import('./icon-set.js').then((module) => {
iconSet.value = { icons: module.default, aliases: module.aliases };
return iconSet.value;
});
return loading;
}
/** SVG-Inhalt eines Symbols aus dem geladenen Satz (oder null). */
export function iconMarkup(name) {
const set = iconSet.value;
if (!set || !name) return null;
return set.icons[name] ?? set.icons[set.aliases[name]] ?? null;
}