mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-05-09 08:25:29 +02:00
[PR #92] [MERGED] Feature/unifi integration api #117
Labels
No labels
bug
enhancement
pull-request
question
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/unifi-voucher-site#117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/glenndehaan/unifi-voucher-site/pull/92
Author: @glenndehaan
Created: 8/27/2025
Status: ✅ Merged
Merged: 8/27/2025
Merged by: @glenndehaan
Base:
master← Head:feature/unifi-integration-api📝 Commits (8)
68dd918Refactored 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 theUNIFI_TOKENto 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 idsf36fa11Refactored server.js into separate controllers. ImplementedUNIFI_TOKENstartup check within info.js. ImplementedKIOSK_HOMEPAGEenvironment variable. Implemented new / redirect structure base onKIOSK_HOMEPAGEvariable. Implemented Admin UI button within kiosk.ejs. Updated array.js with new deprecated variables. Updated docker-compose.yml. Updated README.md.7af385cUpdated info.js to show deprecation messages when utilizing the options.json. Added translation status to info.js. Implemented theTRANSLATION_HIDDEN_LANGUAGES,TASK_CLEANUP_EXPIREDandTASK_CLEANUP_UNUSEDenvironment 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.js19d7e4cRefactor fetch.js to utilize global cache7b8a996Removed 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 deprecatedUNIFI_USERNAMEandUNIFI_PASSWORDfrom variables.js. Updated docker-compose.yml. Removed old dependencies. Updated README.mdc2d90c3Updated README.md. Updated info.js guest warning09d2e24Migrated languages.js from master39797a0Merge remote-tracking branch 'origin/master' into feature/unifi-integration-api📊 Changes
32 files changed (+1831 additions, -1519 deletions)
View changed files
➕
.docs/images/integrations_example.png(+0 -0)📝
README.md(+61 -14)➕
controllers/api.js(+247 -0)➕
controllers/authentication.js(+85 -0)➕
controllers/bulk.js(+111 -0)➕
controllers/error.js(+36 -0)➕
controllers/kiosk.js(+168 -0)➕
controllers/status.js(+37 -0)➕
controllers/voucher.js(+291 -0)➕
controllers/vouchers.js(+142 -0)📝
docker-compose.yml(+6 -2)📝
modules/cache.js(+4 -1)📝
modules/info.js(+19 -3)📝
modules/print.js(+16 -16)📝
modules/unifi.js(+77 -222)📝
modules/variables.js(+5 -2)📝
package-lock.json(+135 -353)📝
package.json(+5 -11)📝
server.js(+56 -817)📝
template/components/bulk-print.ejs(+15 -15)...and 12 more files
📄 Description
No description provided
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.