Add initial Plenario live polling app
CI / Deploy / test (push) Successful in 49s
CI / Deploy / deploy (push) Failing after 5s

CakePHP 5.4 app for live polls: create via email without login, manage
via secret admin link, join via code. Includes slide types (choice,
wordcloud, open, scale, content), presenter mode, CSV export, captcha,
throttling, tests and Gitea CI/deploy workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 13:24:29 +01:00
commit eb319f8c1e
120 files changed
+15572

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\Poll $poll
* @var string $adminUrl
* @var string $joinUrl
*/
?>
<p><?= __('Hallo,') ?></p>
<p><?= __('deine Umfrage <strong>{0}</strong> wurde angelegt. Über den folgenden Link kannst du Fragen anlegen, die Präsentation starten und Ergebnisse ansehen:', h($poll->title)) ?></p>
<p style="margin:24px 0;">
<a href="<?= h($adminUrl) ?>" style="display:inline-block;background:#4b3fe0;color:#ffffff;text-decoration:none;padding:12px 20px;border-radius:8px;font-weight:600;"><?= __('Umfrage verwalten') ?></a>
</p>
<p style="font-size:13px;color:#5b5f7a;word-break:break-all;"><?= h($adminUrl) ?></p>
<p><strong><?= __('Wichtig:') ?></strong> <?= __('Wer diesen Link kennt, kann die Umfrage bearbeiten. Gib ihn nicht weiter.') ?></p>
<p><?= __('Teilnehmende erreichen die Umfrage unter {0} mit dem Code <strong>{1}</strong>.', '<a href="' . h($joinUrl) . '">' . h($joinUrl) . '</a>', h($poll->formattedJoinCode())) ?></p>
<p style="font-size:13px;color:#5b5f7a;"><?= __('Du hast diese Umfrage nicht angelegt? Dann kannst du diese E-Mail ignorieren.') ?></p>
+22
View File
@@ -0,0 +1,22 @@
<?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://cakephp.org CakePHP(tm) Project
* @since 0.10.0
* @license https://opensource.org/licenses/mit-license.php MIT License
* @var \Cake\View\View $this
* @var string $content
*/
$lines = explode("\n", $content);
foreach ($lines as $line) :
echo '<p> ' . $line . "</p>\n";
endforeach;
+17
View File
@@ -0,0 +1,17 @@
<?php
/**
* @var \App\View\AppView $this
* @var list<array{title: string, url: string, created: string}> $links
*/
?>
<p><?= __('Hallo,') ?></p>
<p><?= __('du hast deine Admin-Links angefordert. Zu dieser E-Mail-Adresse gehören folgende Umfragen:') ?></p>
<ul style="padding-left:18px;">
<?php foreach ($links as $link) : ?>
<li style="margin-bottom:12px;">
<a href="<?= h($link['url']) ?>" style="color:#4b3fe0;font-weight:600;"><?= h($link['title']) ?></a><br>
<span style="font-size:13px;color:#5b5f7a;"><?= __('angelegt am {0}', h($link['created'])) ?></span>
</li>
<?php endforeach; ?>
</ul>
<p style="font-size:13px;color:#5b5f7a;"><?= __('Du hast diese E-Mail nicht angefordert? Dann kannst du sie ignorieren – deine Links bleiben unverändert gültig.') ?></p>
+24
View File
@@ -0,0 +1,24 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\Poll $poll
* @var string $adminUrl
* @var string $joinUrl
*/
?>
<?= __('Hallo,') ?>
<?= __('deine Umfrage "{0}" wurde angelegt. Über den folgenden Link kannst du Fragen anlegen, die Präsentation starten und Ergebnisse ansehen:', $poll->title) ?>
<?= $adminUrl ?>
<?= __('Wichtig: Wer diesen Link kennt, kann die Umfrage bearbeiten. Gib ihn nicht weiter.') ?>
<?= __('Teilnehmende erreichen die Umfrage unter {0} mit dem Code {1}.', $joinUrl, $poll->formattedJoinCode()) ?>
<?= __('Du hast diese Umfrage nicht angelegt? Dann kannst du diese E-Mail ignorieren.') ?>
+18
View File
@@ -0,0 +1,18 @@
<?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://cakephp.org CakePHP(tm) Project
* @since 0.10.0
* @license https://opensource.org/licenses/mit-license.php MIT License
* @var \Cake\View\View $this
* @var string $content
*/
echo $content;
+19
View File
@@ -0,0 +1,19 @@
<?php
/**
* @var \App\View\AppView $this
* @var list<array{title: string, url: string, created: string}> $links
*/
?>
<?= __('Hallo,') ?>
<?= __('du hast deine Admin-Links angefordert. Zu dieser E-Mail-Adresse gehören folgende Umfragen:') ?>
<?php foreach ($links as $link) : ?>
- <?= $link['title'] ?> (<?= __('angelegt am {0}', $link['created']) ?>)
<?= $link['url'] ?>
<?php endforeach; ?>
<?= __('Du hast diese E-Mail nicht angefordert? Dann kannst du sie ignorieren – deine Links bleiben unverändert gültig.') ?>