Seiten: Bausteine und Vorlagen (0.22.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 5m0s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 5m0s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m50s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m33s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m11s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m46s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m24s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m17s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 07:48:02 +00:00
parent 8817727283
commit 2166a7e11a
129 changed files with 1381 additions and 267 deletions

View file

@ -1,6 +1,6 @@
<script setup>
import { computed, inject } from 'vue';
import { ChevronDown, ChevronUp, Copy, EyeOff, GripVertical, Trash2 } from '@lucide/vue';
import { ChevronDown, ChevronUp, Component, Copy, EyeOff, GripVertical, Trash2 } from '@lucide/vue';
import { blockComponent } from '../registry';
import { blockIcon } from './icons';
@ -46,6 +46,7 @@ const view = computed(() => ({ ...props.block, props: editor.previews[props.bloc
<button type="button" class="grid size-6 place-items-center rounded hover:bg-accent" title="Nach oben" @click="editor.move(block.id, -1)"><ChevronUp class="size-3.5" /></button>
<button type="button" class="grid size-6 place-items-center rounded hover:bg-accent" title="Nach unten" @click="editor.move(block.id, 1)"><ChevronDown class="size-3.5" /></button>
<button type="button" class="grid size-6 place-items-center rounded hover:bg-accent" title="Duplizieren" @click="editor.duplicate(block.id)"><Copy class="size-3.5" /></button>
<button v-if="editor.saveAsSnippet && block.type !== 'pages.snippet'" type="button" class="grid size-6 place-items-center rounded hover:bg-accent" title="Als Baustein speichern (wiederverwendbar)" @click="editor.saveAsSnippet(block.id)"><Component class="size-3.5" /></button>
<button type="button" class="grid size-6 place-items-center rounded text-destructive hover:bg-destructive/10" title="Entfernen" @click="editor.remove(block.id)"><Trash2 class="size-3.5" /></button>
</div>

View file

@ -24,6 +24,7 @@ import {
CalendarDays,
ClipboardList,
Cake,
Component,
} from '@lucide/vue';
/**
@ -55,6 +56,7 @@ const icons = {
'calendar-days': CalendarDays,
'clipboard-list': ClipboardList,
cake: Cake,
component: Component,
};
export function blockIcon(name) {