Allgemeine Kachel „Spruch/Zitat“ (core::Quote) für Kunden-Plugins
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m56s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m54s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m20s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m11s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 4m15s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 4m4s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 3m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 3m40s
CI / Build-Artefakte aktuell (pull_request) Successful in 52s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m56s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m54s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m20s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m11s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 4m15s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 4m4s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 3m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 3m40s
CI / Build-Artefakte aktuell (pull_request) Successful in 52s
Kunden-Plugins ohne eigene Oberfläche können damit Startseiten-Kacheln füllen – erstes Beispiel: Plugin „Monatsspruch“ (eigenes Repository). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
97879ce243
commit
4332b02efb
98 changed files with 444 additions and 382 deletions
31
resources/js/widgets/Quote.vue
Normal file
31
resources/js/widgets/Quote.vue
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<script setup>
|
||||
import { Quote } from '@lucide/vue';
|
||||
|
||||
/**
|
||||
* Allgemeine Kachel „Spruch/Zitat“ – für Plugins ohne eigene Oberfläche
|
||||
* (z. B. separat installierte Kunden-Plugins): Widgets::add(…, 'core::Quote', …)
|
||||
* mit den Eigenschaften unten.
|
||||
*/
|
||||
defineProps({
|
||||
title: { type: String, default: '' }, // z. B. „Monatsspruch Oktober“
|
||||
text: { type: String, required: true },
|
||||
source: { type: String, default: '' }, // z. B. „Galater 5,1“
|
||||
note: { type: String, default: '' }, // z. B. Übersetzung, Quelle
|
||||
link: { type: Object, default: null }, // { label, url }
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="relative overflow-hidden rounded-lg border bg-card p-5">
|
||||
<Quote class="absolute -top-1 -right-1 size-20 rotate-180 text-brand/10" aria-hidden="true" />
|
||||
<p v-if="title" class="text-xs font-semibold tracking-wide text-brand-text uppercase">{{ title }}</p>
|
||||
<blockquote class="relative mt-2">
|
||||
<p class="text-[15px] leading-relaxed text-pretty">„{{ text }}“</p>
|
||||
<footer v-if="source" class="mt-2 text-sm font-semibold">{{ source }}</footer>
|
||||
</blockquote>
|
||||
<p v-if="note || link" class="mt-3 border-t pt-2 text-xs text-muted-foreground">
|
||||
{{ note }}
|
||||
<a v-if="link" :href="link.url" target="_blank" rel="noopener" class="text-brand-text hover:underline">{{ link.label }}</a>
|
||||
</p>
|
||||
</section>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue