diff --git a/backend/Dockerfile b/backend/Dockerfile
index cbe0c8b..8e9eba5 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -21,7 +21,7 @@ COPY --chown=node:node backend/src ./src
# stat/leer los archivos; copiar con `--chmod=644 … /dir/` deja el propio
# directorio en 0644 y nginx falla con "Permission denied". Por eso se fijan
# los permisos explícitamente después del COPY.
-COPY frontend/checada.html frontend/panel.html frontend/becario.html frontend/theme.js frontend/logo-taboada.png /usr/share/nginx/html/
+COPY frontend/checada.html frontend/panel.html frontend/becario.html frontend/kiosco.html frontend/theme.js frontend/logo-taboada.png /usr/share/nginx/html/
RUN chmod 755 /usr/share/nginx/html && chmod 644 /usr/share/nginx/html/*
COPY --chmod=644 backend/nginx-default.conf /etc/nginx/http.d/default.conf
COPY --chmod=755 backend/docker-entrypoint.sh /docker-entrypoint.sh
diff --git a/frontend/kiosco.html b/frontend/kiosco.html
new file mode 100644
index 0000000..3578fad
--- /dev/null
+++ b/frontend/kiosco.html
@@ -0,0 +1,169 @@
+
+
+
+
+
+Taboada — Kiosco
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/panel.html b/frontend/panel.html
index 13c5f41..3f6a79d 100644
--- a/frontend/panel.html
+++ b/frontend/panel.html
@@ -438,7 +438,7 @@ function VistaBecario({ becarioId, onBack, onError }) {
// ═══════════════════ Configuración ═══════════════════
function VistaConfig({ onError }) {
const [cfg, setCfg] = useState(null);
- const [f, setF] = useState({ inicio: "", fin: "", tarea_activa: false, meta: "" });
+ const [f, setF] = useState({ inicio: "", fin: "", tarea_activa: false, meta: "", qr_rotacion: "" });
const [busy, setBusy] = useState(false);
const [okMsg, setOkMsg] = useState(null);
const load = useCallback(async () => {
@@ -450,6 +450,7 @@ function VistaConfig({ onError }) {
fin: c.ventana_horaria?.fin || "20:00",
tarea_activa: c.tarea_activa === true,
meta: c.meta_horas_default ?? 480,
+ qr_rotacion: c.qr_rotacion_seg ?? 45,
});
} catch (e) { onError(e.message); }
}, [onError]);
@@ -461,6 +462,7 @@ function VistaConfig({ onError }) {
ventana_horaria: { inicio: f.inicio, fin: f.fin },
tarea_activa: f.tarea_activa,
meta_horas_default: Number(f.meta),
+ qr_rotacion_seg: Number(f.qr_rotacion),
}) });
setOkMsg("Configuración guardada."); await load();
} catch (err) { onError(err.message); } finally { setBusy(false); }
@@ -481,8 +483,19 @@ function VistaConfig({ onError }) {
setF({ ...f, tarea_activa: v })} label="Pedir el concepto de la tarea al checar (switch global)" />
setF({ ...f, meta: e.target.value })} style={{ maxWidth: "160px" }} />
+
+
+ Kiosco de checada (QR)
+ Cada cuánto rota el código del kiosco. La validez de cada código es el doble de este valor (colchón para quien escanea en el cambio).
+ setF({ ...f, qr_rotacion: e.target.value })} style={{ maxWidth: "160px" }} />
+
{okMsg && {okMsg}}
- {busy ? "Guardando…" : "Guardar configuración"}
+