Commit Graph

404 Commits

Author SHA1 Message Date
nickelblack619
a61be4487e Revert "Update api.js"
This reverts commit 6cfae61e6d.
2025-12-29 18:40:03 +00:00
nickelblack619
6cfae61e6d Update api.js 2025-12-29 19:19:05 +01:00
nickelblack619
f1901b7e9e Add notes utility to API GET vouchers response 2025-12-28 02:13:04 +01:00
nickelblack619
e6a5d56f4c Add note input sanitization for voucher creation
Sanitize note input and limit its length to 255 characters before creating the voucher code.
2025-12-28 02:09:07 +01:00
Glenn de Haan
a361770aee Updated dependencies. Implemented default locale redirect on /kiosk (Force users to default translation) 8.5.0 2025-12-08 17:06:01 +01:00
Glenn de Haan
d8f7b6b580 Dependency updates. Fixed incorrect logo path for ESC/POS printer function 8.4.1 2025-12-05 21:02:55 +01:00
Glenn de Haan
24bfbedc42 Updated dependencies. Moved email assets from base64 to attachments to improve support in Gmail. Implemented custom email branding support. Implemented custom print branding support. Moved image assets to email/kiosk directory. Implemented kiosk dark mode logo support. Updated README.md 8.4.0 2025-12-02 18:42:35 +01:00
Glenn de Haan
4e3ca28f7a Added missing package-lock.json updates 8.3.2 2025-12-01 18:38:54 +01:00
Glenn de Haan
843892874d Merge pull request #105 from glenndehaan/l10n_master
New Crowdin updates
2025-12-01 18:36:21 +01:00
Glenn de Haan
8836b8bfb0 New translations time.json (German) 2025-12-01 18:35:01 +01:00
Glenn de Haan
fd08d789ee New translations kiosk.json (German) 2025-12-01 18:35:00 +01:00
Glenn de Haan
88da3880e6 New translations email.json (German) 2025-12-01 18:34:59 +01:00
Glenn de Haan
5b672ede8b Fixed OIDC loop when using local authentication. Removed default auth setting for mail.js. Updated dependencies 2025-12-01 18:29:55 +01:00
Glenn de Haan
7bffaa4ebb Moved fetchUserInfo call to authorization.js middleware. Catch fetchUserInfo exceptions, causing invalided session to be stuck 8.3.1 2025-11-11 18:57:04 +01:00
Glenn de Haan
10f95864f9 Merge pull request #98 from glenndehaan/l10n_master
New Crowdin updates
2025-11-09 08:26:49 +01:00
Glenn de Haan
e347f67249 Implemented the AUTH_OIDC_REDIRECT_LOGIN environment variable. Added an OIDC redirect function within authentication.js controller. Updated README.md. Updated dependencies 8.3.0 2025-10-31 08:33:40 +01:00
Glenn de Haan
3aca70b0ba New translations time.json (Persian) 2025-10-21 11:30:14 +02:00
Glenn de Haan
b7c0a83bc4 New translations kiosk.json (Persian) 2025-10-21 11:30:14 +02:00
Glenn de Haan
9e047b9186 New translations print.json (Persian) 2025-10-21 11:30:12 +02:00
Glenn de Haan
552d544a31 New translations email.json (Persian) 2025-10-21 11:30:11 +02:00
Glenn de Haan
7cd513b057 Dependency updates 8.2.2 2025-10-14 18:33:49 +02:00
Glenn de Haan
3154a7d305 Updated languages.js with new languages 8.2.1 2025-09-29 23:42:45 +02:00
Glenn de Haan
3aef53f2cf Merge pull request #96 from glenndehaan/l10n_master
New Crowdin updates
2025-09-29 23:40:25 +02:00
Glenn de Haan
bcdcaf472b New translations time.json (Serbian (Cyrillic)) 2025-09-29 08:58:48 +02:00
Glenn de Haan
061ecb471c New translations kiosk.json (Serbian (Cyrillic)) 2025-09-29 08:58:47 +02:00
Glenn de Haan
f5b8529fa8 New translations print.json (Serbian (Cyrillic)) 2025-09-29 08:58:47 +02:00
Glenn de Haan
845e2b7ce9 New translations email.json (Serbian (Cyrillic)) 2025-09-29 08:58:46 +02:00
Glenn de Haan
ae6aa9b5a1 Implemented KIOSK_TIMEOUT environment variable. Introduced adjustable kiosk timeout timer. Moved static animation from style.css to kiosk.ejs. Fixed incorrect preload tag within kiosk.ejs. Added missing bg.jpg preload tag within kiosk.ejs. Updated docker-compose.yml. Dependency updates. Updated README.md 8.2.0 2025-09-23 19:24:34 +02:00
Glenn de Haan
cecc09ab85 New translations time.json (Serbian (Cyrillic)) 2025-09-23 08:50:45 +02:00
Glenn de Haan
e38ba6c6a0 New translations kiosk.json (Serbian (Cyrillic)) 2025-09-23 08:50:44 +02:00
Glenn de Haan
eac891b6ff New translations print.json (Serbian (Cyrillic)) 2025-09-23 08:50:43 +02:00
Glenn de Haan
7ac4208de9 New translations email.json (Serbian (Cyrillic)) 2025-09-23 08:50:42 +02:00
Glenn de Haan
2fe4576c90 Hide copy to clipboard button if browser API is not available 8.1.1 2025-09-08 23:04:04 +02:00
Glenn de Haan
4b215541b2 Implemented KIOSK_EMAIL environment variable. Lowered log output from unifi.js. Implemented kiosk email toggle. Fixed missing kiosk printer check causing errors. Updated README.md 8.1.0 2025-08-28 19:06:41 +02:00
Glenn de Haan
2d54e42bc9 Merge pull request #92 from glenndehaan/feature/unifi-integration-api
Feature/unifi integration api
8.0.0
2025-08-27 19:25:24 +02:00
Glenn de Haan
39797a077d Merge remote-tracking branch 'origin/master' into feature/unifi-integration-api
# Conflicts:
#	utils/languages.js
2025-08-27 19:20:10 +02:00
Glenn de Haan
09d2e24cdb Migrated languages.js from master 2025-08-27 19:19:22 +02:00
Glenn de Haan
c2d90c312c Updated README.md. Updated info.js guest warning 2025-08-27 19:16:55 +02:00
Glenn de Haan
7b8a996452 Removed old UniFi username check from info.js. Implemented temporary guest features warning in info.js. Cleanup unifi.js to remove legacy implementation and switch to UniFi Integrations. Removed deprecated UNIFI_USERNAME and UNIFI_PASSWORD from variables.js. Updated docker-compose.yml. Removed old dependencies. Updated README.md 2025-08-26 18:51:48 +02:00
Glenn de Haan
19d7e4c0c6 Refactor fetch.js to utilize global cache 2025-08-26 18:35:20 +02:00
Glenn de Haan
7af385c8fe 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 2025-08-26 18:21:30 +02:00
Glenn de Haan
1612186144 Updated the languages.js with new languages 7.2.2 2025-08-22 18:32:49 +02:00
Glenn de Haan
5d076b6f5a Merge pull request #89 from glenndehaan/l10n_master
New Crowdin updates
2025-08-22 18:30:33 +02:00
Glenn de Haan
f36fa1144a Refactored server.js into separate controllers. Implemented UNIFI_TOKEN startup check within info.js. Implemented KIOSK_HOMEPAGE environment variable. Implemented new / redirect structure base on KIOSK_HOMEPAGE variable. Implemented Admin UI button within kiosk.ejs. Updated array.js with new deprecated variables. Updated docker-compose.yml. Updated README.md. 2025-08-22 18:27:14 +02:00
Glenn de Haan
3a7adee945 New translations time.json (Czech) 2025-08-22 08:30:11 +02:00
Glenn de Haan
519286b0ee New translations kiosk.json (Czech) 2025-08-22 08:30:11 +02:00
Glenn de Haan
433d395e09 New translations print.json (Czech) 2025-08-22 08:30:10 +02:00
Glenn de Haan
6891de55ba New translations email.json (Czech) 2025-08-22 08:30:09 +02:00
Glenn de Haan
68dd918d31 Refactored print.js, bulk-print.ejs, details.ejs, email.ejs, print.ejs, voucher.ejs and size.js for object compatibility with the UniFi Integration API. Updated the unifi.js module to implement the UniFi Integration API. Added the UNIFI_TOKEN to variables.js. Added fetch.js util. Check for undefined state in notes.js. Added undici to the dependencies. server.js refactored for compatibility with the UniFi integration API. Fixed incorrect quote filter within server.js. Temporary fixed guest mapping to voucher_code instead of ids 2025-08-08 19:38:10 +02:00
Glenn de Haan
21f5be6a0a Fixed notes.js util to catch null values 7.2.1 2025-07-31 23:25:00 +02:00