Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 5m21s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m55s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m40s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m42s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m25s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m57s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m34s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
66 lines
1.4 KiB
JavaScript
66 lines
1.4 KiB
JavaScript
import {
|
|
Box,
|
|
Columns3,
|
|
Contact,
|
|
FileDown,
|
|
FolderTree,
|
|
Heading,
|
|
Image,
|
|
Images,
|
|
ListChecks,
|
|
ListCollapse,
|
|
MessageSquareWarning,
|
|
Minus,
|
|
MousePointerClick,
|
|
MoveVertical,
|
|
Newspaper,
|
|
PanelTop,
|
|
GalleryHorizontalEnd,
|
|
Play,
|
|
Quote,
|
|
SquareDashed,
|
|
Table,
|
|
Text,
|
|
CalendarDays,
|
|
ClipboardList,
|
|
Cake,
|
|
Component,
|
|
LayoutDashboard,
|
|
} from '@lucide/vue';
|
|
|
|
/**
|
|
* Symbole der Blockarten (Namen aus App\Pagebuilder\Blocks, Lucide-Schreibweise).
|
|
* Unbekannte Symbole von Plugin-Blöcken fallen auf „box“ zurück.
|
|
*/
|
|
const icons = {
|
|
'square-dashed': SquareDashed,
|
|
'columns-3': Columns3,
|
|
'panel-top': PanelTop,
|
|
'list-collapse': ListCollapse,
|
|
'message-square-warning': MessageSquareWarning,
|
|
heading: Heading,
|
|
text: Text,
|
|
quote: Quote,
|
|
'mouse-pointer-click': MousePointerClick,
|
|
'list-checks': ListChecks,
|
|
table: Table,
|
|
minus: Minus,
|
|
'move-vertical': MoveVertical,
|
|
image: Image,
|
|
images: Images,
|
|
play: Play,
|
|
panorama: GalleryHorizontalEnd,
|
|
contact: Contact,
|
|
'file-down': FileDown,
|
|
'folder-tree': FolderTree,
|
|
newspaper: Newspaper,
|
|
'calendar-days': CalendarDays,
|
|
'clipboard-list': ClipboardList,
|
|
cake: Cake,
|
|
component: Component,
|
|
'layout-dashboard': LayoutDashboard,
|
|
};
|
|
|
|
export function blockIcon(name) {
|
|
return icons[name] ?? Box;
|
|
}
|