Quiz: Fragenanzahl abschaltbar und im Layout-Editor platzierbar
- "Frage X / N" im Overlay als drittes Layout-Element: Schalter in der Steuerung, Rahmen, Größen-Griff und Regler im Layout-Editor - alte Layouts werden beim Lesen ergänzt (layout_vollstaendig) - WhiteNoise: beim runserver Dateien bei jeder Anfrage frisch lesen, sonst kam nach CSS/JS-Änderungen der alte Stand mit falscher Länge an - 3 neue Tests (81 insgesamt), README und Changelog aktualisiert Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca4342b5fe
commit
19d9e34533
11 files changed
+119
-18
No files matched your search
@@ -55,7 +55,7 @@ Seit den jüngsten Commits wurde das Archiv um mehrere Praxisfunktionen erweiter
|
||||
|
||||
### 🎮 Quiz (Testmodul, `/quiz/`)
|
||||
* **Quiz spielen:** Fragen aus dem Archiv wie in der Sendung – Frage als Bauchbinde, darunter die Auflösung mit den Buttons „Gelöst“ / „Nicht gelöst“, oben ein Countdown (Standard 45 Minuten). Zufällige Fragen (Anzahl, Jahr, Kategorie) oder alle Fragen einer echten Folge.
|
||||
* **Streamer-Modus (nur Admins):** Einstellungsseite mit Panel (1–8 Personen, Namen frei oder aus dem Archiv), Moderator-Steuerung mit Countdown inkl. Pause für Werbung, Position und Größe von Countdown und Bauchbinden per Drag & Drop, Bauchbinden ein-/ausblenden, „Gelöst“ mit Auswahl der Löser, Tastenkürzeln und Auswertung pro Person am Ende. Die Bauchbinden erscheinen in einem separaten Fenster mit transparentem Hintergrund, das über einen geheimen Link als Browserquelle in OBS eingebunden wird (1920 × 1080).
|
||||
* **Streamer-Modus (nur Admins):** Einstellungsseite mit Panel (1–8 Personen, Namen frei oder aus dem Archiv), Moderator-Steuerung mit Countdown inkl. Pause für Werbung, Position und Größe von Countdown, Bauchbinden und Fragenanzahl per Drag & Drop (Fragenanzahl abschaltbar), Bauchbinden ein-/ausblenden, „Gelöst“ mit Auswahl der Löser, Tastenkürzeln und Auswertung pro Person am Ende. Die Bauchbinden erscheinen in einem separaten Fenster mit transparentem Hintergrund, das über einen geheimen Link als Browserquelle in OBS eingebunden wird (1920 × 1080).
|
||||
|
||||
Alle Änderungen mit Zeitstempel stehen in der [Changelog.md](Changelog.md).
|
||||
|
||||
@@ -124,7 +124,7 @@ So installierst du das Projekt lokal und sauber mit einer Python-Umgebung und ei
|
||||
```bash
|
||||
python manage.py runserver
|
||||
```
|
||||
Danach ist die App unter `http://127.0.0.1:8000` erreichbar. CSS, JavaScript und Bilder liefert WhiteNoise aus, auch mit `DEBUG=False` – `--insecure` und `collectstatic` sind nicht nötig. Neue statische Dateien werden beim Serverstart eingelesen.
|
||||
Danach ist die App unter `http://127.0.0.1:8000` erreichbar. CSS, JavaScript und Bilder liefert WhiteNoise aus, auch mit `DEBUG=False` – `--insecure` und `collectstatic` sind nicht nötig. Beim Entwicklungsserver sind Änderungen an CSS/JS sofort sichtbar; im Betrieb (z. B. gunicorn) werden sie beim Neustart eingelesen.
|
||||
|
||||
### 🧪 Tests
|
||||
Die Tests laufen auf einer SQLite-Datenbank im Arbeitsspeicher, der MySQL-User braucht dafür keine zusätzlichen Rechte:
|
||||
@@ -204,7 +204,7 @@ Recent commits expanded the archive with several practical improvements focused
|
||||
|
||||
### 🎮 Quiz (test module, `/quiz/`)
|
||||
* **Play the quiz:** Questions from the archive just like on the show – the question as a lower third, the answer below with "Solved" / "Not solved" buttons, a countdown at the top (45 minutes by default). Random questions (count, year, category) or all questions of a real episode.
|
||||
* **Streamer mode (admins only):** Settings page with panel (1–8 people, free names or names from the archive), moderator control with countdown including pause for ad breaks, position and size of countdown and lower thirds via drag & drop, toggling lower thirds, "Solved" with selection of who solved it, keyboard shortcuts, and per-person statistics at the end. The lower thirds are shown in a separate window with transparent background, embedded in OBS as a browser source via a secret link (1920 × 1080).
|
||||
* **Streamer mode (admins only):** Settings page with panel (1–8 people, free names or names from the archive), moderator control with countdown including pause for ad breaks, position and size of countdown, lower thirds and question counter via drag & drop (counter can be hidden), toggling lower thirds, "Solved" with selection of who solved it, keyboard shortcuts, and per-person statistics at the end. The lower thirds are shown in a separate window with transparent background, embedded in OBS as a browser source via a secret link (1920 × 1080).
|
||||
|
||||
All changes with timestamps are listed in [Changelog.md](Changelog.md) (German).
|
||||
|
||||
@@ -272,7 +272,7 @@ Follow these steps to install the project locally in a clean Python environment
|
||||
```bash
|
||||
python manage.py runserver
|
||||
```
|
||||
The app is then available at `http://127.0.0.1:8000`. CSS, JavaScript, and images are served by WhiteNoise, also with `DEBUG=False` – neither `--insecure` nor `collectstatic` is required. New static files are picked up when the server starts.
|
||||
The app is then available at `http://127.0.0.1:8000`. CSS, JavaScript, and images are served by WhiteNoise, also with `DEBUG=False` – neither `--insecure` nor `collectstatic` is required. With the development server, changes to CSS/JS are visible immediately; in production (e.g. gunicorn) they are picked up on restart.
|
||||
|
||||
### 🧪 Tests
|
||||
Tests run on an in-memory SQLite database, so the MySQL user needs no extra privileges:
|
||||
|
||||
Reference in new issue
Block a user