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.
This commit is contained in:
Naiel
2026-02-23 14:37:08 +00:00
parent 75947d3468
commit 543d1c3202
8 changed files with 554 additions and 961 deletions

View File

@@ -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")