Commit Graph

251 Commits

Author SHA1 Message Date
Glenn de Haan
5867bc423b Updated ejs dependency. Fixed docker healthcheck IPv4 binding. Reworked unifi.js settings/config sections. Removed 1-hour session timeout from unifi.js. Implemented retry params for all unifi.js functions. Implemented re-authentication functions within catch blocks in unifi.js 2.5.1 2024-04-15 18:01:59 +02:00
Glenn de Haan
30d66b9dfc Added the jsonwebtoken package. Implemented a web jwt verify flow. Added missing JSON responses for api auth flows. Added jwt module. Moved bytes.js, logo.js, time.js and types.js to utils folder. Updated README.md. Implemented HA config check to allow API service configuration. Implemented JWT initialization. Replaced authorization cookie contents with JWT token. Implemented /api/vouchers endpoint. Updated /api endpoints list. 2.5.0 2024-04-12 18:01:42 +02:00
Glenn de Haan
78c891cdbd Fixed SERVICE_WEB variable not working correctly. Implemented missing HA voucher_custom config setting. Fixed VOUCHER_CUSTOM variable not working correctly. Fixed an issue where HA voucher_types config was not used during validation causing an incorrect error. Added bytes conversion 2.4.1 2024-04-08 20:49:54 +02:00
Glenn de Haan
a80f533abf Fixed missing logo link. Implemented custom voucher type. Implemented custom voucher fields. Fixed divider visibility on dark mode. Changed default VOUCHER_TYPES to single-use voucher type. Implemented VOUCHER_CUSTOM environment variable. 2.4.0 2024-04-07 11:28:48 +02:00
Glenn de Haan
8756452be0 Fixed padding issue for amount field 2.3.2 2024-04-06 21:52:37 +02:00
Glenn de Haan
54d6cb1191 Updated dependencies. Removed unneeded dependency 2.3.1 2024-04-06 21:35:27 +02:00
Glenn de Haan
db0bd72cc2 Updated screenshots. Implemented color-scheme script to force browser color-scheme. Implemented print functionality. Updated README.md. Implemented print route. 2.3.0 2024-04-06 21:25:30 +02:00
Glenn de Haan
ddc512b77a Implemented reusable UniFi sessions. Fixed UniFi login rate-limit trigger. Implemented bulk voucher generation. Implemented revoke/delete voucher function. Added grayscale logo. Fixed issue where headers are send 2 times. 2.2.0 2024-04-04 21:07:14 +02:00
Glenn de Haan
4404fabafa Refactored unifi.js to separate logic. Updated application header. Fixed incorrect screen-reader text. Updated sync button text. Implemented last sync date/time. Implemented cache util. Fixed missing vouchers check to prevent 'headers are already send' error. Fixed missing cache sync on api voucher creation. Implemented auto sync every 15 minutes 2.1.0 2024-04-03 23:15:10 +02:00
Glenn de Haan
65c79b1f3d Removed SID middleware. Implemented cache module. Updated screenshots. Removed old background images. Updated manifest.json. Updated 404 and login background color. Updated error alert styling. Updated voucher branding/layout. Updated README.md. Cleanup server.js. Removed GET /voucher route. Updated redirects to GET /vouchers. Implemented caching mechanism for UniFi vouchers overview. Implemented force refresh option. 2.0.0 2024-03-26 20:21:36 +01:00
Glenn de Haan
23c8e990e7 Removed unneeded UniFi call to speed up communication 2024-03-25 19:33:39 +01:00
Glenn de Haan
d64a787065 Updated 404 and login branding/layout. Moved tailwind dependencies to dev-dependencies. Patched follow-redirects. Implemented separate dependencies stage within Dockerfile to shrink image size. 2024-03-25 19:14:38 +01:00
Glenn de Haan
88fbf7c182 Implemented a logger. Fix UniFi error messages. Implemented additional UniFi logging 1.1.0 2024-03-24 12:21:08 +01:00
Glenn de Haan
a0a3933650 Updated the README.md 1.0.0 2024-03-23 18:34:00 +01:00
Glenn de Haan
997a3ac73f Allow tag based deployments 2024-03-23 18:02:03 +01:00
Glenn de Haan
a693632ef0 Added additional log for verifying external config 2024-03-23 17:44:10 +01:00
Glenn de Haan
3a083061cf Switch external config provider path 2024-03-23 17:42:22 +01:00
Glenn de Haan
d147b8e5ad Implemented external config provider for HA. Removed debug line 2024-03-23 17:33:29 +01:00
Glenn de Haan
186485d947 Fixed missing baseUrl for 404 2024-03-23 17:01:41 +01:00
Glenn de Haan
1ec0ebedf0 Implemented HA ingress path header prefix 2024-03-23 16:58:35 +01:00
Glenn de Haan
0a4c0e358e Added a debug header for HA testing 2024-03-23 16:43:00 +01:00
Glenn de Haan
95989c212c Implemented API endpoints. Update README.md. Implemented health endpoint. Updated dependencies 2024-03-22 17:13:37 +01:00
Glenn de Haan
611e8cc45c #30 Implemented environment variable to disable built-in authentication system 2024-03-04 20:49:42 +01:00
Glenn de Haan
bcc44cc64d Updated README.md 2024-01-22 21:50:50 +01:00
Glenn de Haan
6935b45f17 Updated logo's and manifest.json 2024-01-22 21:40:10 +01:00
Glenn de Haan
03fb5356ef Updated dependencies. Introduced a styled 404 page. Implemented a new authorization system including separate login flow. Implemented flash message system to removal all query url parameters. Made SID more persistent between sessions. Implemented new vouchers overview. Improved color scheme for info and error flash messages. Updated README.md 2024-01-22 19:27:42 +01:00
Glenn de Haan
172473536b #24 Implement spinner to indicate progress 2024-01-15 19:19:57 +01:00
Glenn de Haan
44fce43241 Cleanup Dockerfile. Implemented separate build stage 2024-01-15 19:00:06 +01:00
Glenn de Haan
796b2034b1 Removed older cpu architectures to speed up build times 2024-01-15 19:00:06 +01:00
Glenn de Haan
bf9478ebad Updated dependencies. Fixed #28, unable to use the single-use voucher type 2024-01-15 19:00:00 +01:00
Glenn de Haan
93c9ccaccb Updated dependencies. Also changed the way a controller object is created 2023-01-02 17:28:42 +01:00
Glenn de Haan
19e3d7e04c #21 Fixed missing -webkit-text-fill-color to override default safari styles 2022-12-18 10:42:59 +01:00
Glenn de Haan
998d9479c7 Implemented remapping of expiration 2022-11-15 22:17:10 +01:00
Glenn de Haan
1dbbcd9e44 Handle incorrect post requests correctly 2022-11-14 16:43:11 +01:00
Glenn de Haan
65c29e2e83 Implemented voucher types. Updated the README.md 2022-11-14 16:36:29 +01:00
Glenn de Haan
006343a248 Updated the dependencies. Changed the GitHub actions 2022-10-06 17:37:57 +02:00
Glenn de Haan
ead4e927c1 Rebuild application for UniFi OS, Network v7 2022-10-06 17:33:58 +02:00
Glenn de Haan
22162db21a Mayor V2 refactor. Now also available on DockerHub 2021-01-16 09:45:22 +01:00
Glenn de Haan
0e2053846a Create FUNDING.yml 2019-06-18 08:56:10 +02:00
Glenn de Haan
73f1ca5953 Fixed the add to homescreen for cryos 2018-03-12 12:30:09 +01:00
Glenn de Haan
b4eab450e7 Updated the readme 2018-03-09 13:38:28 +01:00
Glenn de Haan
b3fe3a5768 Removed socket protocol for prod errors 2018-02-27 22:33:32 +01:00
Glenn de Haan
c428f1f94a Lighthouse improvements 2018-02-27 22:27:59 +01:00
Glenn de Haan
f21ef8d1e4 Removed mangle from webpack since it is breaking the prod build 2018-02-27 22:07:46 +01:00
Glenn de Haan
0541173415 Fixed the base url's 2018-02-27 21:50:08 +01:00
Glenn de Haan
a80c585f4a Completed the UniFi create voucher flow. 2018-02-27 21:25:04 +01:00
Glenn de Haan
acd81fb2b2 Updated the config files 2018-02-27 21:09:22 +01:00
Glenn de Haan
2a9c607137 Added the basic frontend and login flow 2018-02-27 20:35:38 +01:00
Glenn de Haan
9c1870b741 Fixed the initial assets generation 2018-02-27 08:30:47 +01:00
Glenn de Haan
cd93e31bb5 Added the basic js/css frontend to the express app 2018-02-26 22:52:19 +01:00