10 Commits
Author SHA1 Message Date
Sulka HaroandGitHub 3a0629578e Refactor moment to be loaded from ctx (#7331)
* Experimental branch that replaces momentjs with dayjs in the client

* Revert unintentional change

* feat

* Turns out dayjs is a no-go, but this has some good restructuring so submitting that
2023-01-01 19:14:59 +02:00
Sulka HaroandGitHub d7e011d8f5 Refactoring organisation, bundling and security improvements (#6765)
* * Simplified bundling to just one bundle
* Removed cache invalidation token from bundling
* Generate strong persistent random string on deploy to use for JWT signing
* WIP: moving api-secret and JWT signing to a separate centralized security component
* Moved some server components away from project root
* Fix issues reported by linter

* Ignore detect-object-injection everywhere but the client

* Make admin message button red

* Remove alarms for some security alerts on code

* api_secret is now fully contained in the enclave
2021-02-02 19:53:30 +02:00
Sulka Haro a0738414f2 Oops, push the unit test changes as well 2020-12-14 22:08:53 +02:00
Sulka HaroandGitHub cb33193e08 Server-side localization fixes, better speech api use (#3724)
* Adds API to plugin manager that calls plugins to visualize alarms

* Refactoring how the translation object is managed after discovering every server-side plugin had it's own instance of the translations and the language code wasn't propagated to any code that generated alarms

* Add more missing translations

* Some more localization fixes
Update Finnish to 100% localized
Change Mongo connection to not stop retrying connecting

* Better scaling for mmol
Fix bug in detecting new BG values

* Delta calculation was the wrong way round :D

* add missing dutch translations

* Have tests bail early & tell Mocha to exit at the end of the run

* Try if Travis likes running tests one by one better

* Enable blocking IO for Travis
2018-07-27 16:04:07 +03:00
Sulka Haro dc3611d234 Fix SAGE pill test failing due to summer time change 2017-11-01 21:42:47 +02:00
MilosKozak a3c0e9f510 fix tests 2016-10-25 00:27:32 +02:00
MilosKozak 7f164cffec sage translation 2016-10-25 00:14:42 +02:00
Jason Calabrese a0544a3c2d fix cage/sage tests 2016-06-09 15:15:44 -07:00
Jason Calabrese 299a958cc3 renamed Sendor Change to Sensor Insert 2016-05-29 16:32:58 -07:00
Jason Calabrese 8148c5fa2c fix/cleanup some things with SAGE/CAGE/IAGE and add a SAGE test 2016-05-29 13:00:00 -07:00