Added the kiosk_example.png. Updated the README.md. Implemented timer styles within style.css. Added kiosk output within info.js. Set default locale to 'en' for mail.js. Implemented KIOSK_ENABLED and KIOSK_VOUCHER_TYPE environment variables within variables.js. Added kiosk_bg.jpg. Updated navigation.ejs with kiosk link. Added kiosk.ejs template. Updated status.ejs and status.js with kiosk module status. Updated docker-compose.yml. Added /kiosk routes to server.js. Added kioskEnabled states to required routes in server.js

This commit is contained in:
Glenn de Haan
2025-03-14 19:18:07 +01:00
parent bd047558e5
commit 30ef63f277
13 changed files with 448 additions and 1 deletions

View File

@@ -80,6 +80,15 @@ module.exports = () => {
info: 'https://github.com/glenndehaan/unifi-voucher-site#email-functionality',
modules: {}
},
kiosk: {
status: {
text: variables.kioskEnabled ? 'Enabled' : 'Disabled',
state: variables.kioskEnabled ? 'green' : 'red'
},
details: variables.kioskEnabled ? `Kiosk service enabled on http://0.0.0.0:3000/kiosk.` : 'Kiosk service not enabled.',
info: 'https://github.com/glenndehaan/unifi-voucher-site#kiosk-functionality',
modules: {}
},
authentication: {
status: {
text: !variables.authDisabled ? 'Enabled' : 'Disabled',