23 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
MilosKozak cb6097e1d1 codacy 2016-10-24 12:41:39 +02:00
MilosKozak 801fa485cc canulaage translation 2016-10-23 21:29:17 +02:00
Jason Calabrese a0544a3c2d fix cage/sage tests 2016-06-09 15:15:44 -07:00
Jason Calabrese 59e5efa45c new notification groups for independent notifications/alarms from different plugins 2016-05-17 01:31:48 -07:00
Jason Calabrese 160bb8bac4 refactor server side data code 2015-12-25 01:31:55 -08:00
Jason Calabrese 7e55b250c2 update readme for openaps plugin; fix a few codacy issues 2015-12-06 17:51:32 -08:00
Jason Calabrese 2a9c5d1ee8 merge dev into wip/timeago and fix conflicts 2015-11-25 08:56:22 -07:00
MilosKozak 19f946ea75 fix canulaage.test 2015-11-05 20:59:13 +01:00
Jason Calabrese 75b84dd13f pull the ticker and notifications into the client
align client and server sandboxe inits some more
update tests
2015-10-28 22:56:57 -07:00
Jason Calabrese 31ce8cbb92 lot of refactoring to have common settings for client and server 2015-07-30 13:46:13 -07:00
Sulka Haro 88e9fa2ac8 Better test for cannula age pill, fix bug for 0 hour age 2015-07-26 20:26:39 +03:00
Sulka Haro 0cf101837c Added a test for the site change event notes 2015-07-16 16:11:45 +03:00
Jason Calabrese ca773ba7da split notification levels out for easier use 2015-07-12 23:46:21 -07:00
Jason Calabrese 48fb534219 treatment.created_at -> mills; less new Date's and less .getTime()'s 2015-07-07 19:23:23 -07:00
Sulka Haro 81f352b198 Added a test for cannula age alarm. Fix for wrong alert level when alert is not urgent. 2015-07-06 00:47:47 +03:00
Sulka Haro 64d128018a Notify user of cannula age upon 48 and 72 hours 2015-07-04 09:47:48 +03:00
Jason Calabrese fd585720b8 fix lots of little issues reported by codacy 2015-06-30 23:34:59 -07:00
Jason Calabrese 6b8a17b781 converted the uploader battery pill to a plugin; some refactoring and cleanup 2015-06-21 00:21:40 -07:00
Jason Calabrese 890cb71477 added cannula age test 2015-06-13 23:27:34 -07:00