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

+25
View File
@@ -0,0 +1,25 @@
<?php
/**
* Renders the configured captcha inside a form.
*
* @var \App\View\AppView $this
* @var array<string, mixed> $captcha Result of CaptchaInterface::challenge()
*/
$type = $captcha['type'] ?? 'none';
?>
<?php if ($type === 'math') : ?>
<div class="input text">
<label for="captcha-answer"><?= __('Sicherheitsfrage: Was ist {0}?', h($captcha['question'])) ?></label>
<input type="text" inputmode="numeric" pattern="-?[0-9]*" autocomplete="off" required
id="captcha-answer" name="<?= h($captcha['field']) ?>" class="input-short">
</div>
<?php elseif ($type === 'recaptcha') : ?>
<div class="input text">
<?php if (empty($captcha['siteKey'])) : ?>
<p class="hint hint--error"><?= __('reCAPTCHA ist aktiviert, aber nicht konfiguriert (RECAPTCHA_SITE_KEY fehlt).') ?></p>
<?php else : ?>
<div class="g-recaptcha" data-sitekey="<?= h($captcha['siteKey']) ?>"></div>
<?php $this->Html->script('https://www.google.com/recaptcha/api.js', ['block' => 'script', 'async' => true, 'defer' => true, 'once' => true]) ?>
<?php endif; ?>
</div>
<?php endif; ?>
+15
View File
@@ -0,0 +1,15 @@
<?php
/**
* @var \App\View\AppView $this
* @var array $params
* @var string $message
*/
$class = 'message';
if (!empty($params['class'])) {
$class .= ' ' . $params['class'];
}
if (!isset($params['escape']) || $params['escape'] !== false) {
$message = h($message);
}
?>
<div class="<?= h($class) ?>" onclick="this.classList.add('hidden');"><?= $message ?></div>
+11
View File
@@ -0,0 +1,11 @@
<?php
/**
* @var \App\View\AppView $this
* @var array $params
* @var string $message
*/
if (!isset($params['escape']) || $params['escape'] !== false) {
$message = h($message);
}
?>
<div class="message error" onclick="this.classList.add('hidden');"><?= $message ?></div>
+11
View File
@@ -0,0 +1,11 @@
<?php
/**
* @var \App\View\AppView $this
* @var array $params
* @var string $message
*/
if (!isset($params['escape']) || $params['escape'] !== false) {
$message = h($message);
}
?>
<div class="message" onclick="this.classList.add('hidden');"><?= $message ?></div>
+11
View File
@@ -0,0 +1,11 @@
<?php
/**
* @var \App\View\AppView $this
* @var array $params
* @var string $message
*/
if (!isset($params['escape']) || $params['escape'] !== false) {
$message = h($message);
}
?>
<div class="message success" onclick="this.classList.add('hidden')"><?= $message ?></div>
+11
View File
@@ -0,0 +1,11 @@
<?php
/**
* @var \App\View\AppView $this
* @var array $params
* @var string $message
*/
if (!isset($params['escape']) || $params['escape'] !== false) {
$message = h($message);
}
?>
<div class="message warning" onclick="this.classList.add('hidden');"><?= $message ?></div>