12 Commits

Author SHA1 Message Date
2fac92356d feat: footer, auto-pause on no viewers, and Redsys question submissions
- Footer: add site-footer with one-liner + Cloud Host branding linking to cloudhost.es (mobile only, hidden on desktop)
- Auto-pause: game pauses automatically after AUTOPAUSE_DELAY_MS (default 60s) with no viewers connected; auto-resumes when first viewer connects; shows "Esperando espectadores…" in the UI
- Redsys: new /pregunta page lets viewers pay 1€ via Redsys to submit a fill-in question; submitted questions are used as prompts in the next round instead of AI generation; new redsys.ts implements HMAC_SHA256_V1 signing (3DES key derivation + HMAC-SHA256); notification endpoint at /api/redsys/notificacion handles server-to-server confirmation
- db.ts: questions table with createPendingQuestion / markQuestionPaid / getNextPendingQuestion / markQuestionUsed
- .env.sample: added AUTOPAUSE_DELAY_MS, PUBLIC_URL, REDSYS_* vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 14:03:30 +01:00
2abea42c18 feat: convert to argument.es — Spanish, vote buttons, Docker
- Translate all ~430 prompts to Spanish with cultural adaptations
- Translate all UI strings (frontend, admin, history, broadcast)
- Translate AI system prompts; models now respond in Spanish
- Replace Twitch/Fossabot viewer voting with in-site vote buttons
- Add POST /api/vote endpoint (IP-based, supports vote switching)
- Vote buttons appear during voting phase with active state highlight
- Rename project to argument.es throughout (package.json, cookie, DB)
- Add docker-compose.yml with SQLite volume mount
- Add .env.sample documenting all required and optional vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 13:09:00 +01:00
Theo Browne
79f9dab7fb new layout for model rankings 2026-02-22 18:44:49 -08:00
Theo Browne
845065ac8f voting why not lol 2026-02-22 17:22:59 -08:00
Theo Browne
4d56f95f9f bug fixes 2026-02-22 16:40:30 -08:00
Theo Browne
c01f3ff076 cleanup events + limits + more logs 2026-02-22 16:23:46 -08:00
Theo Browne
43003a5b01 no more view count on broadcast 2026-02-22 16:05:08 -08:00
Theo Browne
deeeeae8f7 auto refresh 2026-02-22 03:12:44 -08:00
Theo Browne
a7b2a24f02 fix layout a bit 2026-02-22 03:09:01 -08:00
Theo Browne
c1d817b271 changes 2026-02-22 03:03:43 -08:00
Theo Browne
8d2aa7e7d6 Fix loading states 2026-02-22 03:00:37 -08:00
Theo Browne
4fe8432a16 broadcast 2026-02-22 02:15:29 -08:00