From 543d1c3202eff862f1c6dc88480665c7b73f10d6 Mon Sep 17 00:00:00 2001
From: Naiel <109038805+naielv@users.noreply.github.com>
Date: Mon, 23 Feb 2026 14:37:08 +0000
Subject: [PATCH] feat: Add panel page with daily quiz and update functionality
- Introduced a new panel page that includes a daily quiz based on the menu and tasks for the day.
- Implemented functions to fetch and decrypt daily data, build quiz questions, and render the quiz interface.
- Added a button to refresh the application, clearing the cache and updating the service worker.
- Enhanced service worker to manage application version checks and handle CouchDB URL prefix.
- Created a version.json file to manage application versioning.
---
build.py | 3 +-
src/index.html | 2 +-
src/page/cajas.js | 950 ----------------------------------------------
src/page/index.js | 2 +
src/page/panel.js | 357 +++++++++++++++++
src/pwa.js | 166 +++++++-
src/sw.js | 32 +-
src/version.json | 3 +
8 files changed, 554 insertions(+), 961 deletions(-)
delete mode 100644 src/page/cajas.js
create mode 100644 src/page/panel.js
create mode 100644 src/version.json
diff --git a/build.py b/build.py
index 75ab305..31a66aa 100644
--- a/build.py
+++ b/build.py
@@ -2,6 +2,7 @@ import json
import os
import shutil
import sys
+import time
def get_all_files(directory):
files = []
@@ -14,7 +15,7 @@ def get_all_files(directory):
return files
PREFETCH = ""
-VERSIONCO = "2026-02"
+VERSIONCO = "2026-02-23_" + time.strftime("%Y%m%d%H%M%S")
HANDLEPARSE = get_all_files("src")
TITLE = os.environ.get("TELESEC_TITLE", "TeleSec")
HOSTER = os.environ.get("TELESEC_HOSTER", "EuskadiTech")
diff --git a/src/index.html b/src/index.html
index 59e2f53..3c81648 100644
--- a/src/index.html
+++ b/src/index.html
@@ -86,10 +86,10 @@
+
-