Updated info.js to show deprecation messages when utilizing the options.json. Added translation status to info.js. Implemented the TRANSLATION_HIDDEN_LANGUAGES, TASK_CLEANUP_EXPIRED and TASK_CLEANUP_UNUSED environment variables in variables.js. Updated language dropdown to hide themselves if the number of allowed languages is lower than 2. Added the created at field within details.ejs. Implemented cleanup.js for automatically cleaning-up expired and unused vouchers. Updated the languages.js util with global filters. Added country flags to languages.js. Updated docker-compose.yml. Dependency updates. Updated README.md. Lowered log intensity within server.js

This commit is contained in:
Glenn de Haan
2025-08-26 18:21:30 +02:00
parent f36fa1144a
commit 7af385c8fe
14 changed files with 332 additions and 188 deletions

View File

@@ -149,8 +149,14 @@ services:
LOG_LEVEL: 'info'
# Sets the default translation for dropdowns
TRANSLATION_DEFAULT: 'en'
# Hides languages from the UI, example: en,nl,de
TRANSLATION_HIDDEN_LANGUAGES: ''
# Enables/disables translation debugging, when enabled only translation keys are shown
TRANSLATION_DEBUG: 'false'
# Enables/disables an automated task to clean up expired vouchers from UniFi
TASK_CLEANUP_EXPIRED: 'false'
# Enables/disables an automated task to clean up unused vouchers (Vouchers unused a day after creation) from UniFi
TASK_CLEANUP_UNUSED: 'false'
# Optional volume mapping to override assets
volumes:
- ./branding:/kiosk
@@ -208,7 +214,10 @@ The structure of the file should use lowercase versions of the environment varia
"kiosk_homepage": false,
"log_level": "info",
"translation_default": "en",
"translation_debug": false
"translation_hidden_languages": "",
"translation_debug": false,
"task_cleanup_expired": false,
"task_cleanup_unused": false
}
```