Umfragen-Plugin (0.32.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 5m33s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 5m25s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 6m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m54s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m9s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m55s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m12s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m48s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m52s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 5m33s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 5m25s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 6m7s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m54s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m9s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m55s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m12s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m48s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m52s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
08953d52cb
commit
3f67fde50b
153 changed files with 2075 additions and 329 deletions
19
plugins-core/umfragen/resources/js/blocks/PollBlock.vue
Normal file
19
plugins-core/umfragen/resources/js/blocks/PollBlock.vue
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<script setup>
|
||||
import { inject } from 'vue';
|
||||
import { Vote } from '@lucide/vue';
|
||||
import PollForm from '../components/PollForm.vue';
|
||||
|
||||
defineProps({ block: { type: Object, required: true } });
|
||||
|
||||
const editing = inject('pagebuilder:editing', false);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section v-if="block.props" class="rounded-lg border bg-card p-5 @3xl:p-8">
|
||||
<p class="mb-1 flex items-center gap-1.5 text-xs font-semibold tracking-wider text-brand-text uppercase"><Vote class="size-3.5" /> Umfrage</p>
|
||||
<h3 class="text-xl font-semibold tracking-tight">{{ block.props.title }}</h3>
|
||||
<p v-if="block.props.description" class="mt-2 text-sm leading-relaxed whitespace-pre-line text-muted-foreground">{{ block.props.description }}</p>
|
||||
<PollForm :key="block.props.id" :poll="block.props" :disabled="editing" compact class="mt-6" />
|
||||
</section>
|
||||
<p v-else-if="editing" class="rounded-lg border border-dashed p-4 text-sm text-muted-foreground">Bitte rechts eine Umfrage auswählen.</p>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue