From ce3127baffcc2d7435c95bc9585e925b1e0fc714 Mon Sep 17 00:00:00 2001 From: SITO Date: Wed, 23 Sep 2026 11:32:25 +0200 Subject: [PATCH] =?UTF-8?q?Secci=C3=B3n=20=C2=ABPedir=20evento=C2=BB=20con?= =?UTF-8?q?=20gestor=20de=20reservas=20y=20calendario=20legible=20en=20m?= =?UTF-8?q?=C3=B3vil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - /pedir/: calendario de fechas pedidas (negro) y confirmadas (verde), findes tranqui y con ruido, solo findes por defecto con opción de ver la semana entera. Se pincha un día libre y, sin sesión, se pide entrar y se vuelve al formulario con la fecha puesta. - Gestor en Go (gestor/): cuentas por colectivo con argon2id, sesiones y CSRF, cupo y ventana de la asamblea, caducidades, registro append-only. - La cuenta de la asamblea confirma, rechaza, cambia turnos de finde y en «Todas las fechas» quita o modifica cualquier evento. - Orden «cuenta» y «clave» con -clave y -definitiva para fijar contraseñas desde el servidor; ninguna contraseña va en el repositorio. - Botón «Pedir evento» arriba de la barra lateral en todas las páginas. - Calendario semanal en móvil: lista de días con nombre y hora de cada cita. - Fuentes servidas desde fuentes/: fuera Google Fonts en todas las páginas. --- 404.html | 6 +- calendario.html | 6 +- colectivos.html | 6 +- eventos.html | 6 +- fuentes/anton-latin.woff2 | Bin 0 -> 18612 bytes fuentes/rocksalt-latin.woff2 | Bin 0 -> 58668 bytes fuentes/specialelite-latin.woff2 | Bin 0 -> 53296 bytes gestor/almacen.go | 238 ++++++ gestor/auth.go | 355 ++++++++ gestor/config.go | 94 +++ gestor/go.mod | 7 + gestor/go.sum | 4 + gestor/main.go | 352 ++++++++ gestor/modelo.go | 171 ++++ gestor/pedir.go | 1042 ++++++++++++++++++++++++ gestor/pedir_test.go | 23 + gestor/plantillas/_marco.tmpl.html | 92 +++ gestor/plantillas/_mes.tmpl.html | 42 + gestor/plantillas/clave.tmpl.html | 31 + gestor/plantillas/cuentas.tmpl.html | 87 ++ gestor/plantillas/editar.tmpl.html | 49 ++ gestor/plantillas/fallo.tmpl.html | 9 + gestor/plantillas/findes.tmpl.html | 45 + gestor/plantillas/mis-fechas.tmpl.html | 64 ++ gestor/plantillas/nueva.tmpl.html | 51 ++ gestor/plantillas/pendientes.tmpl.html | 35 + gestor/plantillas/portada.tmpl.html | 65 ++ gestor/plantillas/todas.tmpl.html | 53 ++ gestor/reglas.go | 252 ++++++ gestor/reglas_test.go | 250 ++++++ gestor/vista.go | 152 ++++ index.css | 434 +++++++++- index.html | 6 +- panel.html | 15 +- subdir/campa.html | 6 +- subdir/contacto.html | 6 +- subdir/sobre_nosotrxs.html | 6 +- tatus.html | 21 +- 38 files changed, 4029 insertions(+), 52 deletions(-) create mode 100644 fuentes/anton-latin.woff2 create mode 100644 fuentes/rocksalt-latin.woff2 create mode 100644 fuentes/specialelite-latin.woff2 create mode 100644 gestor/almacen.go create mode 100644 gestor/auth.go create mode 100644 gestor/config.go create mode 100644 gestor/go.mod create mode 100644 gestor/go.sum create mode 100644 gestor/main.go create mode 100644 gestor/modelo.go create mode 100644 gestor/pedir.go create mode 100644 gestor/pedir_test.go create mode 100644 gestor/plantillas/_marco.tmpl.html create mode 100644 gestor/plantillas/_mes.tmpl.html create mode 100644 gestor/plantillas/clave.tmpl.html create mode 100644 gestor/plantillas/cuentas.tmpl.html create mode 100644 gestor/plantillas/editar.tmpl.html create mode 100644 gestor/plantillas/fallo.tmpl.html create mode 100644 gestor/plantillas/findes.tmpl.html create mode 100644 gestor/plantillas/mis-fechas.tmpl.html create mode 100644 gestor/plantillas/nueva.tmpl.html create mode 100644 gestor/plantillas/pendientes.tmpl.html create mode 100644 gestor/plantillas/portada.tmpl.html create mode 100644 gestor/plantillas/todas.tmpl.html create mode 100644 gestor/reglas.go create mode 100644 gestor/reglas_test.go create mode 100644 gestor/vista.go diff --git a/404.html b/404.html index a77afe1..88a22b6 100644 --- a/404.html +++ b/404.html @@ -15,9 +15,6 @@ - - - @@ -31,6 +28,9 @@