Refactor/brand plenario io #15
No files matched your search
+1
-1
@@ -83,7 +83,7 @@ yarn-error.log
|
|||||||
# PHP CS Fixer
|
# PHP CS Fixer
|
||||||
.php_cs.cache
|
.php_cs.cache
|
||||||
.php-cs-fixer.cache
|
.php-cs-fixer.cache
|
||||||
# Plenario: lokale SQLite-Datenbank und Mail-Dumps
|
# PlenarIO: lokale SQLite-Datenbank und Mail-Dumps
|
||||||
/data/*.sqlite
|
/data/*.sqlite
|
||||||
/data/*.sqlite-journal
|
/data/*.sqlite-journal
|
||||||
/data/*.sqlite-wal
|
/data/*.sqlite-wal
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ Du arbeitest in diesem Projekt als **Senior PHP-Entwickler** (CakePHP, modernes
|
|||||||
|
|
||||||
## Projekt in einem Satz
|
## Projekt in einem Satz
|
||||||
|
|
||||||
Plenario ist ein Mentimeter-/Claper-ähnliches Live-Umfragetool auf **CakePHP 5.4**: Umfrage per
|
PlenarIO ist ein Mentimeter-/Claper-ähnliches Live-Umfragetool auf **CakePHP 5.4**: Umfrage per
|
||||||
E-Mail anlegen, kein Login, Verwaltung über einen geheimen Admin-Link, Teilnahme per Code.
|
E-Mail anlegen, kein Login, Verwaltung über einen geheimen Admin-Link, Teilnahme per Code.
|
||||||
|
|
||||||
## Befehle
|
## Befehle
|
||||||
@@ -184,6 +184,9 @@ Kein WebSocket: Presenter (`/admin/{token}/state`) und Teilnehmende (`/p/{code}/
|
|||||||
## Konventionen
|
## Konventionen
|
||||||
|
|
||||||
- Sprache der UI: **Deutsch**, Texte über `__()`. Code, Kommentare, Bezeichner: Englisch.
|
- Sprache der UI: **Deutsch**, Texte über `__()`. Code, Kommentare, Bezeichner: Englisch.
|
||||||
|
- Produktname in allen sichtbaren Texten, Mails, Doku und Kommentaren: **PlenarIO** (Wortspiel Plenum + Input/Output).
|
||||||
|
Technische Bezeichner bleiben unverändert (`Plenario.*` in der Config, `window.Plenario`, `PlenarioTestTrait`,
|
||||||
|
`plenario.css/js`, Cookie `plenario_pid`, `localStorage`-Schlüssel, Repo, Domain, DB-Datei); bestehende Migrationen nicht anfassen.
|
||||||
- PHP: `declare(strict_types=1);`, CakePHP Coding Standard (`phpcs.xml`), typisierte Properties statt dynamischer.
|
- PHP: `declare(strict_types=1);`, CakePHP Coding Standard (`phpcs.xml`), typisierte Properties statt dynamischer.
|
||||||
- Tables über `fetchTable()` holen und in typisierte Properties legen.
|
- Tables über `fetchTable()` holen und in typisierte Properties legen.
|
||||||
- Einrückung 4 Spaces, LF (siehe `.editorconfig`).
|
- Einrückung 4 Spaces, LF (siehe `.editorconfig`).
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Plenario
|
# PlenarIO
|
||||||
|
|
||||||
Live-Umfragen für Vorträge, Workshops und Meetings – ähnlich wie Mentimeter oder Claper,
|
Live-Umfragen für Vorträge, Workshops und Meetings – ähnlich wie Mentimeter oder Claper,
|
||||||
aber **ohne Login**: Wer eine Umfrage anlegt, bekommt einen geheimen Admin-Link per E-Mail.
|
aber **ohne Login**: Wer eine Umfrage anlegt, bekommt einen geheimen Admin-Link per E-Mail.
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
# Plenario environment configuration
|
# PlenarIO environment configuration
|
||||||
# Copy to config/.env (not committed) or set these as real environment variables.
|
# Copy to config/.env (not committed) or set these as real environment variables.
|
||||||
# Real environment variables take precedence over this file.
|
# Real environment variables take precedence over this file.
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ APP_DEFAULT_LOCALE=de_DE
|
|||||||
# Empty = .eml files in tmp/mails/ (development only!)
|
# Empty = .eml files in tmp/mails/ (development only!)
|
||||||
# EMAIL_TRANSPORT_DEFAULT_URL=smtp://user:password@mail.example.org:587?tls=true
|
# EMAIL_TRANSPORT_DEFAULT_URL=smtp://user:password@mail.example.org:587?tls=true
|
||||||
MAIL_FROM=noreply@plenario.example.org
|
MAIL_FROM=noreply@plenario.example.org
|
||||||
MAIL_FROM_NAME=Plenario
|
MAIL_FROM_NAME=PlenarIO
|
||||||
|
|
||||||
# --- Captcha ----------------------------------------------------------------
|
# --- Captcha ----------------------------------------------------------------
|
||||||
# none | math | recaptcha
|
# none | math | recaptcha
|
||||||
|
|||||||
+2
-2
@@ -9,7 +9,7 @@ use function Cake\Core\env;
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
/*
|
/*
|
||||||
* Plenario application settings.
|
* PlenarIO application settings.
|
||||||
*
|
*
|
||||||
* Every value can be overridden in config/app_local.php or via environment
|
* Every value can be overridden in config/app_local.php or via environment
|
||||||
* variables (see config/.env.example).
|
* variables (see config/.env.example).
|
||||||
@@ -306,7 +306,7 @@ return [
|
|||||||
'Email' => [
|
'Email' => [
|
||||||
'default' => [
|
'default' => [
|
||||||
'transport' => 'default',
|
'transport' => 'default',
|
||||||
'from' => [env('MAIL_FROM', 'noreply@localhost') => env('MAIL_FROM_NAME', 'Plenario')],
|
'from' => [env('MAIL_FROM', 'noreply@localhost') => env('MAIL_FROM_NAME', 'PlenarIO')],
|
||||||
/*
|
/*
|
||||||
* Will by default be set to config value of App.encoding, if that exists otherwise to UTF-8.
|
* Will by default be set to config value of App.encoding, if that exists otherwise to UTF-8.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ require CAKE . 'functions.php';
|
|||||||
* security risks. See https://github.com/josegonzalez/php-dotenv#general-security-information
|
* security risks. See https://github.com/josegonzalez/php-dotenv#general-security-information
|
||||||
* for more information for recommended practices.
|
* for more information for recommended practices.
|
||||||
*/
|
*/
|
||||||
// Plenario: config/.env is optional. Real environment variables always win.
|
// PlenarIO: config/.env is optional. Real environment variables always win.
|
||||||
if (file_exists(CONFIG . '.env')) {
|
if (file_exists(CONFIG . '.env')) {
|
||||||
$dotenv = new \josegonzalez\Dotenv\Loader([CONFIG . '.env']);
|
$dotenv = new \josegonzalez\Dotenv\Loader([CONFIG . '.env']);
|
||||||
$dotenv->parse()
|
$dotenv->parse()
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Plenario routes.
|
* PlenarIO routes.
|
||||||
*
|
*
|
||||||
* Public: / start page (create poll, join by code)
|
* Public: / start page (create poll, join by code)
|
||||||
* /recover re-send admin links by e-mail
|
* /recover re-send admin links by e-mail
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use Cake\Event\EventInterface;
|
|||||||
use Cake\Http\Response;
|
use Cake\Http\Response;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base controller of Plenario.
|
* Base controller of PlenarIO.
|
||||||
*/
|
*/
|
||||||
class AppController extends Controller
|
class AppController extends Controller
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ class EmbedController extends AppController
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Still visible: keeps the slide live – but never takes it back when the
|
* Still visible: keeps the slide live – but never takes it back when the
|
||||||
* presenter has switched to another slide in Plenario in the meantime.
|
* presenter has switched to another slide in PlenarIO in the meantime.
|
||||||
*
|
*
|
||||||
* @return \Cake\Http\Response
|
* @return \Cake\Http\Response
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use App\Model\Entity\Poll;
|
|||||||
use Cake\Mailer\Mailer;
|
use Cake\Mailer\Mailer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mails sent by Plenario. Templates: templates/email/{html,text}/.
|
* Mails sent by PlenarIO. Templates: templates/email/{html,text}/.
|
||||||
*/
|
*/
|
||||||
class PollMailer extends Mailer
|
class PollMailer extends Mailer
|
||||||
{
|
{
|
||||||
@@ -41,7 +41,7 @@ class PollMailer extends Mailer
|
|||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setTo($email)
|
->setTo($email)
|
||||||
->setSubject(__('Deine Admin-Links bei Plenario'))
|
->setSubject(__('Deine Admin-Links bei PlenarIO'))
|
||||||
->setEmailFormat('both')
|
->setEmailFormat('both')
|
||||||
->setViewVars(compact('links'))
|
->setViewVars(compact('links'))
|
||||||
->viewBuilder()
|
->viewBuilder()
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class Poll extends Entity
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shows a slide to the participants (from Plenario itself: no embed timeout).
|
* Shows a slide to the participants (from PlenarIO itself: no embed timeout).
|
||||||
*
|
*
|
||||||
* @param int $slideId Slide id (must belong to this poll, checked by the caller)
|
* @param int $slideId Slide id (must belong to this poll, checked by the caller)
|
||||||
* @return void
|
* @return void
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ class PollsTable extends Table
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Pauses the poll when the embedded slide that made itself live has stopped reporting
|
* Pauses the poll when the embedded slide that made itself live has stopped reporting
|
||||||
* (presentation moved on to a non-Plenario slide, or was closed without a pause beacon).
|
* (presentation moved on to a non-PlenarIO slide, or was closed without a pause beacon).
|
||||||
* Called lazily whenever the state is read, like SlidesTable::closeIfExpired().
|
* Called lazily whenever the state is read, like SlidesTable::closeIfExpired().
|
||||||
*
|
*
|
||||||
* @param \App\Model\Entity\Poll $poll Poll
|
* @param \App\Model\Entity\Poll $poll Poll
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ $title = $this->fetch('title');
|
|||||||
<?php if ($this->fetch('noindex')) : ?>
|
<?php if ($this->fetch('noindex')) : ?>
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<title><?= $title ? h($title) . ' · ' : '' ?>Plenario</title>
|
<title><?= $title ? h($title) . ' · ' : '' ?>PlenarIO</title>
|
||||||
<?= $this->element('theme_init') ?>
|
<?= $this->element('theme_init') ?>
|
||||||
<?= $this->Html->meta('icon') ?>
|
<?= $this->Html->meta('icon') ?>
|
||||||
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
|
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
|
||||||
@@ -26,7 +26,7 @@ $title = $this->fetch('title');
|
|||||||
<header class="site-header">
|
<header class="site-header">
|
||||||
<div class="container site-header__inner">
|
<div class="container site-header__inner">
|
||||||
<a class="brand" href="<?= $this->Url->build(['_name' => 'home']) ?>">
|
<a class="brand" href="<?= $this->Url->build(['_name' => 'home']) ?>">
|
||||||
<span class="brand__mark" aria-hidden="true"></span>Plenario
|
<span class="brand__mark" aria-hidden="true"></span><span>Plenar<span class="brand__io">IO</span></span>
|
||||||
</a>
|
</a>
|
||||||
<nav class="site-nav">
|
<nav class="site-nav">
|
||||||
<a href="<?= $this->Url->build(['_name' => 'join']) ?>"><?= __('Teilnehmen') ?></a>
|
<a href="<?= $this->Url->build(['_name' => 'join']) ?>"><?= __('Teilnehmen') ?></a>
|
||||||
@@ -40,7 +40,7 @@ $title = $this->fetch('title');
|
|||||||
<?= $this->fetch('content') ?>
|
<?= $this->fetch('content') ?>
|
||||||
</main>
|
</main>
|
||||||
<footer class="site-footer container">
|
<footer class="site-footer container">
|
||||||
<span>Plenario – <?= __('Live-Umfragen ohne Login') ?></span>
|
<span>PlenarIO – <?= __('Live-Umfragen ohne Login') ?></span>
|
||||||
</footer>
|
</footer>
|
||||||
<?= $this->Html->script('plenario') ?>
|
<?= $this->Html->script('plenario') ?>
|
||||||
<?= $this->fetch('script') ?>
|
<?= $this->fetch('script') ?>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body style="margin:0;padding:24px;background:#f4f5fb;font-family:Segoe UI,Helvetica,Arial,sans-serif;color:#1d1f33;">
|
<body style="margin:0;padding:24px;background:#f4f5fb;font-family:Segoe UI,Helvetica,Arial,sans-serif;color:#1d1f33;">
|
||||||
<div style="max-width:560px;margin:0 auto;background:#ffffff;border-radius:12px;padding:32px;">
|
<div style="max-width:560px;margin:0 auto;background:#ffffff;border-radius:12px;padding:32px;">
|
||||||
<p style="margin:0 0 24px;font-size:20px;font-weight:700;color:#4b3fe0;">Plenario</p>
|
<p style="margin:0 0 24px;font-size:20px;font-weight:700;color:#4b3fe0;">PlenarIO</p>
|
||||||
<?= $this->fetch('content') ?>
|
<?= $this->fetch('content') ?>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<?= $this->Html->charset() ?>
|
<?= $this->Html->charset() ?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
<title><?= h($this->fetch('title')) ?> · Plenario</title>
|
<title><?= h($this->fetch('title')) ?> · PlenarIO</title>
|
||||||
<?= $this->element('theme_init') ?>
|
<?= $this->element('theme_init') ?>
|
||||||
<?= $this->Html->meta('icon') ?>
|
<?= $this->Html->meta('icon') ?>
|
||||||
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
|
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<header class="site-header">
|
<header class="site-header">
|
||||||
<div class="container site-header__inner">
|
<div class="container site-header__inner">
|
||||||
<a class="brand" href="<?= $this->Url->build('/') ?>"><span class="brand__mark" aria-hidden="true"></span>Plenario</a>
|
<a class="brand" href="<?= $this->Url->build('/') ?>"><span class="brand__mark" aria-hidden="true"></span><span>Plenar<span class="brand__io">IO</span></span></a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<main class="container main">
|
<main class="container main">
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
<meta name="csrf-token" content="<?= h((string)$this->request->getAttribute('csrfToken')) ?>">
|
<meta name="csrf-token" content="<?= h((string)$this->request->getAttribute('csrfToken')) ?>">
|
||||||
<title><?= h($this->fetch('title')) ?> · Plenario</title>
|
<title><?= h($this->fetch('title')) ?> · PlenarIO</title>
|
||||||
<?= $this->element('theme_init', ['key' => 'plenario-theme-present', 'fallback' => 'dark']) ?>
|
<?= $this->element('theme_init', ['key' => 'plenario-theme-present', 'fallback' => 'dark']) ?>
|
||||||
<?= $this->Html->meta('icon') ?>
|
<?= $this->Html->meta('icon') ?>
|
||||||
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
|
<?= $this->Html->css(['normalize.min', 'plenario']) ?>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Plenario stylesheet – no framework, no build step.
|
* PlenarIO stylesheet – no framework, no build step.
|
||||||
* Sections: tokens · base · layout · components · forms · admin · participant · results · presenter
|
* Sections: tokens · base · layout · components · forms · admin · participant · results · presenter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -112,6 +112,7 @@ h3 { font-size: 1.05rem; margin-top: 1.6em; }
|
|||||||
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
|
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
|
||||||
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
|
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
|
||||||
.brand__mark { width: 22px; height: 22px; border-radius: 6px; background: conic-gradient(var(--c0) 0 40%, var(--c1) 0 65%, var(--c2) 0 85%, var(--c3) 0); }
|
.brand__mark { width: 22px; height: 22px; border-radius: 6px; background: conic-gradient(var(--c0) 0 40%, var(--c1) 0 65%, var(--c2) 0 85%, var(--c3) 0); }
|
||||||
|
.brand__io { color: var(--primary); }
|
||||||
.site-nav { display: flex; gap: 20px; font-size: .95rem; }
|
.site-nav { display: flex; gap: 20px; font-size: .95rem; }
|
||||||
.site-nav a { color: var(--muted); text-decoration: none; }
|
.site-nav a { color: var(--muted); text-decoration: none; }
|
||||||
.site-nav a:hover { color: var(--text); }
|
.site-nav a:hover { color: var(--text); }
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Plenario frontend – plain JavaScript, no build step, no dependencies.
|
* PlenarIO frontend – plain JavaScript, no build step, no dependencies.
|
||||||
*
|
*
|
||||||
* Modules (auto-initialised by data attributes):
|
* Modules (auto-initialised by data attributes):
|
||||||
* - [data-copy] copy the value of the sibling [data-copy-source]
|
* - [data-copy] copy the value of the sibling [data-copy-source]
|
||||||
|
|||||||
Reference in new issue
Block a user