Skip to content

Commit

Permalink
update to 14.2.latest (#1)
Browse files Browse the repository at this point in the history
* Bump version to 14.0.8

* Revised Norwegian (nb) translations (#6525)

* Revised translation (nb)

Revised translation after a first pass through the Norwegian (nb) translation.

* Added missing translations in Day to day report

Missing translation of 'Bolus average , 'Basal average' and 'Base basal average' from daytoday.js

* Translate (nb) missing translations in Day to day report

* Minor changes Day to day report

* Missing translation from glucosedistributon.js of 

'Out of Range RMS is calculated by squaring the distance out of range for all glucose readings for the examined period, summing them, dividing by the count and taking the square root. This metric is similar to in-range percentage but weights readings far out of range higher. Lower values are better.')

* Translate (nb) Out of range RMS....

'Out of Range RMS is calculated by squaring the distance out of range for all glucose readings for the examined period, summing them, dividing by the count and taking the square root. This metric is similar to in-range percentage but weights readings far out of range higher. Lower values are better.'

* Translate (nb) Reports: Percentile Chart

* Reports - Treatments: Added missing translation of 'Carbs/Food/Time' from 

cgm-remote-monitor\lib\report_plugins\treatments.js

* Transkate (nb) Carbs/Food/Time

* Nitpicking

* Move localisation to Crowdin (#6518)

* Update Crowdin configuration file

* Update Crowdin configuration file

* Add languages for pushing

* Update Crowdin configuration file

* Update source file en.json

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Romanian)

* New translations en.json (Dutch)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Korean)

* New translations en.json (French)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* Remove folders

* New translations en.json (Romanian)

* New translations en.json (Korean)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Japanese)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Romanian)

* New translations en.json (Korean)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Japanese)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Norwegian Bokmal)

* Update Crowdin configuration file

* New translations en.json (Spanish)

* New translations en.json (Chinese Simplified)

* New translations en.json (Chinese Traditional)

* New translations en.json (Italian)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Norwegian Bokmal)

* Loading all languages now works

* * Fix unit tests
* Have server load localizations

* Adding some more keys

* New Crowdin updates (#6531)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Finnish)

* New translations en.json (Japanese)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Italian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Croatian)

* Update source file en.json

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* Remove old translation status tool

* Update CONTRIBUTING

* * Reformat the source language file
* Fix an English key being in Hebrew

* One more tiny formatting fix

* Inzulin -> Insulin in English

* Fix typo in Portugues Brazilian language code

* New Crowdin updates (#6535)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Spanish)

* New translations en.json (German)

* New translations en.json (Czech)

* New translations en.json (German)

* New translations en.json (Czech)

* New translations en.json (German)

* New translations en.json (Dutch)

* Update source file en.json

* New translations en.json (German)

* New translations en.json (Dutch)

* New translations en.json (German)

* New translations en.json (German)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (German)

* New translations en.json (German)

* New translations en.json (German)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Russian)

* New translations en.json (Czech)

* New translations en.json (Russian)

* New translations en.json (Russian)

* New translations en.json (Czech)

* New translations en.json (Hungarian)

* New translations en.json (Russian)

* New translations en.json (Dutch)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Dutch)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Romanian)

* New translations en.json (Korean)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Japanese)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (Norwegian Bokmal)

* Update source file en.json

* New translations en.json (Dutch)

* New translations en.json (Romanian)

* New translations en.json (Korean)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Japanese)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (Norwegian Bokmal)

* Update source file en.json

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Russian)

* New translations en.json (French)

* New translations en.json (Greek)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Russian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* Update CONTRIBUTING.md (#6540)

regarding translation

Co-authored-by: Sulka Haro <[email protected]>

* Typo correction (#6558)

* Increased the width of the inlinepiechart to fit the Dutch translated legend (#6539)

* Refactor `mongo-storage.js`  (#6589)

* Refactor `mongo-storage.js`

* Use async/await instead of promises
* Fixes a bug in the previous implementation where a promise error was
  not being caught and handled

* Code cleanup

* Fixes the color changes based on BG target preferences in the clock views (#6592)

* Added some boot logging & allow booting using Node 14 LTS

* * Fix a bug with reloading while the server is starting
* Workaround for the plugins being re-executed multiple times in rapid succession during site load, causing timing issues

* Fix timing issue with a test using async, causing tests to randomly fail

* Refactor core auth (#6596)

* Auth resolve now supports async/await
* Read only tokens can be used for authentication and the UI shows privileges for these accounts correctly
* Failed attempt at authenticating an API_SECRET or token delays subsequent auth attempt by 5000 ms

* New Crowdin updates (#6567)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Spanish)

* New translations en.json (German)

* New translations en.json (Czech)

* New translations en.json (German)

* New translations en.json (Czech)

* New translations en.json (German)

* New translations en.json (Dutch)

* Update source file en.json

* New translations en.json (German)

* New translations en.json (Dutch)

* New translations en.json (German)

* New translations en.json (German)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (German)

* New translations en.json (German)

* New translations en.json (German)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Russian)

* New translations en.json (Czech)

* New translations en.json (Russian)

* New translations en.json (Russian)

* New translations en.json (Czech)

* New translations en.json (Hungarian)

* New translations en.json (Russian)

* New translations en.json (Dutch)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Dutch)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Romanian)

* New translations en.json (Korean)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Japanese)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (Norwegian Bokmal)

* Update source file en.json

* New translations en.json (Dutch)

* New translations en.json (Romanian)

* New translations en.json (Korean)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Japanese)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (Norwegian Bokmal)

* Update source file en.json

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (Russian)

* New translations en.json (French)

* New translations en.json (Greek)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Russian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Italian)

* New translations en.json (Hebrew)

* New translations en.json (Hebrew)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hebrew)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hebrew)

* New translations en.json (Greek)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Swedish)

* New translations en.json (Swedish)

* New translations en.json (Russian)

* New translations en.json (Russian)

* New translations en.json (Hebrew)

* New translations en.json (Hungarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Croatian)

* Bump version to 14.1.0 given changes to auth and localization

* New Crowdin updates (#6640)

* New translations en.json (Hebrew)

* New translations en.json (German)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Dutch)

* New translations en.json (Swedish)

* New translations en.json (Russian)

* New translations en.json (Russian)

* Fix applying localizations to plugin names in client preferences

* * Refactor how the levels dependency is loaded, to fix some localization issues
* Moves reporting client to the bundles

* Oops, push the unit test changes as well

* Fix pushover init

* Fix pushover test

* New Crowdin updates (#6652)

* New translations en.json (Norwegian Bokmal)

* Update source file en.json

* New translations en.json (Hebrew)

* New translations en.json (Hungarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Croatian)

* New translations en.json (Greek)

* New translations en.json (Dutch)

* New translations en.json (Finnish)

* Various fixes to localization - #6516 #6523 #6524

* Test new dev version of minimed-connect-to-nightscout

Try out plugin with recent fixes, thanks to @fredmk.

* * More small localization fixes
* Change link to point to github.io docs

* Fix upbat.js levels reference

* Fix authorization renewal

* New Crowdin updates (#6653)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hebrew)

* New translations en.json (Hungarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Croatian)

* Update source file en.json

* New translations en.json (Czech)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (Dutch)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Swedish)

* New translations en.json (Norwegian Bokmal)

* Update source file en.json

* New translations en.json (Hebrew)

* New translations en.json (Hungarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Croatian)

* New translations en.json (Dutch)

* New translations en.json (Swedish)

* New translations en.json (Czech)

* New translations en.json (Romanian)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Russian)

* Add a missing localization, fix unit tests

* Fix a localization key

* Rename Weekly Success report to Weekly Distribution

* Fix a bug with auth calls that send a false API secret

* upgrade minimed-connect-to-nightscout 1.5.0

Update to version available in npm.

* Replace Travis build with a GitHub Action (#6690)

* Create Docker release workflow for GA
* Remove Travis workflow
* Remove dependency on Makefile
* Update default environment to Node 14
* Use git SHA instead of version for `dev` images

* APIv3: Cache invalidation + refactoring (#6688)

* APIv3: isolating documents from tests (not allowing clashes of calculated identifiers)

* removing unused async keyword

* fixing api v3 swagger and moving it to /api3-docs

* APIv3: adding cachedCollection stub of cachedCollection storage implementation

* APIv3: mongo cachedCollection storage implementation

* APIv3: testing and debugging cache updates

* APIv3: more testing on cache updates

* APIv3: fixing bad async functions

* APIv3: finishing cache invalidation tests

Co-authored-by: Petr Ondrusek <[email protected]>
Co-authored-by: Petr Ondrůšek <[email protected]>
Co-authored-by: Sulka Haro <[email protected]>

* New Crowdin updates (#6675)

* New translations en.json (Hebrew)

* New translations en.json (Hungarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Croatian)

* New translations en.json (Dutch)

* New translations en.json (Greek)

* New translations en.json (Romanian)

* New translations en.json (Finnish)

* Update source file en.json

* New translations en.json (Romanian)

* New translations en.json (Romanian)

* New translations en.json (Finnish)

* New translations en.json (Romanian)

* New translations en.json (Romanian)

* New translations en.json (Turkish)

* Update source file en.json

* New translations en.json (Hebrew)

* New translations en.json (Hungarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Croatian)

* New translations en.json (Greek)

* New translations en.json (French)

* New translations en.json (Czech)

* New translations en.json (Norwegian Bokmal)

* Update source file en.json

* New translations en.json (Romanian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Russian)

* New translations en.json (Finnish)

* New translations en.json (Czech)

* New translations en.json (Czech)

* Update source file en.json

* german translations template for googlehome integration (#6674)

Co-authored-by: tanja3981 <[email protected]>

* Added support for multiple uploaders in virtual assistant delta calculation (#6559)

* Added support for multiple uploaders in delta calculation

* Moved moment creation

* Moved delta stuff into bgnow plugin

* Typo

* Removed old implementation

* Removed accidental translations

* Added new translation key

* Removed duplicate translation key (#6699)

* New Crowdin updates (#6700)

* New translations en.json (Hebrew)

* New translations en.json (Hungarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Croatian)

* Update source file en.json

* New translations en.json (Dutch)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Czech)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (German)

* * Additional unit test for the authorization API
* Stop logging the API SECRET

* * Bump version to 14.1.1
* Allow reducing timer length in delays for security tests

* Re-enable partial report test

* Security improvement batch (#6622)

* Adds a new method for the server to push notifies to the client, which require administration privileges from the user. If there are messages in queue but user is not privileged, she is notified of pending messages

* Fix unit tests

* Increase timeouts on tests

* Add translations

* * Aggregate admin messages
* Send admin message on auth fail
* Sending messages over bus
* XSS filtering of objects sent over the REST API

* Warn users if their instance is world readable

* Fix adminnotifies init()

* Fix couple issues from Codacy

* APIv3: wrapping all results in JSON (#6703)

* APIv3: isolating documents from tests (not allowing clashes of calculated identifiers)

* removing unused async keyword

* fixing api v3 swagger and moving it to /api3-docs

* APIv3: adding cachedCollection stub of cachedCollection storage implementation

* APIv3: mongo cachedCollection storage implementation

* APIv3: testing and debugging cache updates

* APIv3: more testing on cache updates

* APIv3: fixing bad async functions

* APIv3: finishing cache invalidation tests

* APIv3: wrapping VERSION result

* APIv3: wrapping STATUS result

* APIv3: wrapping DELETE result

* APIv3: wrapping READ result + partially SEARCH and HISTORY

* APIv3: wrapping CREATE result

* APIv3: wrapping UPDATE + PATCH result

* APIv3: wrapping LAST MODIFIED result

* APIv3: updating swagger doc

* APIv3: updating tutorial.md

* APIv3: tuning tests

* APIv3: merge dev

Co-authored-by: Petr Ondrusek <[email protected]>
Co-authored-by: Petr Ondrůšek <[email protected]>
Co-authored-by: Sulka Haro <[email protected]>

* * Improved internal API for injecting values into localization keys
* Fix a hard to translate key that was split to two separate values

* Don't run docker push on forks (#6718)

Skip the docker push steps if the repo owner is not 'nightscout'.

* Cherry picking CI flow file so users don't get a CI build fail after merging to latest release

* Support pump status upload display override (#6698)

* Fix admin localization

* Clean statics & bundle more (#6745)

* * Remove unused old version of MFB
* Bundle food, profile editor
* Clean up the static folders

* Fix tests

* feat: disable pump battery alarms at night option (#5359)

* feat: add feature to disable pump battery alarms at night

* add timezone handling for server side

* Update pump.test.js

* Update pump.test.js

* Update pump.test.js

Co-authored-by: Jeremy Cunningham <[email protected]>
Co-authored-by: Sulka Haro <[email protected]>

* Add eslint security plugin (#5450)

Co-authored-by: Jakob Sandberg <[email protected]>
Co-authored-by: Sulka Haro <[email protected]>

* Allow api3 behind reverse proxy (#5631)

* Allow api3 behind reverse proxy

* fix test

Co-authored-by: Sulka Haro <[email protected]>

* Move to package-lock, as per #5735

* New Crowdin updates (#6713)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Hebrew)

* New translations en.json (Hungarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Croatian)

* Update source file en.json

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Greek)

* New translations en.json (French)

* New translations en.json (Dutch)

* New translations en.json (Greek)

* New translations en.json (Swedish)

* New translations en.json (Czech)

* New translations en.json (Russian)

* New translations en.json (Romanian)

* Update source file en.json

* New translations en.json (Hebrew)

* New translations en.json (Hungarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Croatian)

* New translations en.json (Romanian)

* New translations en.json (Hebrew)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Hungarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Croatian)

* Update source file en.json

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Greek)

* New translations en.json (Swedish)

* New translations en.json (German)

* New translations en.json (Russian)

* New translations en.json (Czech)

* New translations en.json (German)

* New translations en.json (Hungarian)

* New translations en.json (Hungarian)

* New translations en.json (Dutch)

* New translations en.json (Hebrew)

* New translations en.json (Russian)

* New translations en.json (French)

* New translations en.json (Spanish)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Russian)

* New translations en.json (French)

* New translations en.json (Spanish)

* New translations en.json (Danish)

* New translations en.json (Portuguese, Brazilian)

* Implemented #6720 - Added es_ES template for Alexa (#6779)

* Added sensor code transmitter ID fields (#6780)

* Copied #5442 - Duplicated @c-robertson's work

* Added tx id and sensor code to tooltip

* Added swagger docs for the new fields

* Added missing language keys

* Added new fields to sage plugin display

Co-authored-by: Sulka Haro <[email protected]>

* #6701 Save report preferences (#6761)

Proof of concept to demonstrate saving report preferences

Co-authored-by: Sulka Haro <[email protected]>

* New Crowdin updates (#6769)

* New translations en.json (Russian)

* New translations en.json (Romanian)

* New translations en.json (Bulgarian)

* New translations en.json (Finnish)

* New translations en.json (Hindi)

* New translations en.json (French)

* New translations en.json (Swedish)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Italian)

* New translations en.json (Slovenian)

* New translations en.json (Slovenian)

* New translations en.json (Arabic)

* New translations en.json (Greek)

* New translations en.json (French)

* New translations en.json (Bulgarian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Bulgarian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (French)

* New translations en.json (Croatian)

* New translations en.json (Italian)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (German)

* New translations en.json (Hebrew)

* New translations en.json (Italian)

* New translations en.json (Hindi)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Hungarian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Finnish)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Arabic)

* Catch error from websocket device status dedupe (#6777)

* Catch error from websocket device status dedupe

* Patch two more locations that don't catch errors correctly

* Changes the bundling so the site works on old Safari versions (#6800)

* Changes the bundling so the site works on old Safari versions

* Fix quotes

* Cache babel output for faster development

* Round insulin value in treatment tooltip (#6776)

* rename toFixedMin to toRoundedStr

* round the insulin value

* Typo correction for translation (#6805)

* #6701 Report storage tests (#6814)

* #6701 Report storage tests

Functional and unit tests

* #6701 Test cleanup

* #6701 js-storage teardown

The first time js-storage is required it evaluates if it's running in the browser or not: https://github.com/julien-maurel/js-storage/blob/master/js.storage.js#L423 and will define the localstorage getters and setters accordingly. This becomes an issue if testing localstorage between UI and non-UI tests. reportstorage.test.js was requiring it before hashauth.test.js causing a conflict.

* #6701 false positive test

The page isn't refreshing

Co-authored-by: Sulka Haro <[email protected]>

* Update mongo-storage.js (#6811)

- use default time outs
- remove MongoDB_URI (including user name and password) from public error message
- fix typos

Co-authored-by: Sulka Haro <[email protected]>

* Unit test teardown improvements (#6821)

* Clear module require()s between tests
Clear profile cache between tests

* Fix authentication for careportal test

* Add logging to see where the careportal test gets to

* Even more logging for headless setup

* Change to use before and after in careportal test

* Add time logging

* Bump headless setup time to a full minute

* More timers to figure out what's slow in GA

* Bump up timeout on failing test

* New Crowdin updates (#6804)

* New translations en.json (Hebrew)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Dutch)

* New translations en.json (Swedish)

* New translations en.json (Czech)

* New translations en.json (Hungarian)

* New translations en.json (Croatian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Russian)

* New translations en.json (Chinese Simplified)

* New translations en.json (Bulgarian)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Portuguese)

* New translations en.json (Portuguese)

* New translations en.json (Portuguese)

* New translations en.json (Portuguese)

* replace deprecated bodyParser ctor (#6819)

Co-authored-by: Sulka Haro <[email protected]>

* Bolus settings (#6834)

* Add bolus plugin and restructure rendering settings

* Add setting to prevent automated micro boluses from triggering notifications and snoozing alarms

* clean up

* Small change to the bolus-settings branch so it supports flexible configuration that enables the old behavior

* Translations

* Fix settings default

Co-authored-by: Jason Calabrese <[email protected]>

* Added a specific rendering for BG Check events on the Day to Day report. (#6530)

Added an option to hide BG Check and other events on the Day to Day report.

Co-authored-by: Sulka Haro <[email protected]>

* New Crowdin updates (#6833)

* New translations en.json (Portuguese)

* New translations en.json (Spanish)

* New translations en.json (Hebrew)

* New translations en.json (Japanese)

* New translations en.json (Arabic)

* New translations en.json (Hindi)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Italian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Finnish)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Portuguese)

* Update source file en.json

* New translations en.json (Finnish)

* New translations en.json (German)

* 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

* Bump version to 14.2.0

* Fix Procfile, Dockerfile

* Revert to old token hash generation method

* Fix admin message localization, timer presentation

* * Fix #6843
* Don't do sync file access on requests to swagger files or service worker
* Adds an API test

* Add unit test for socket.io connect (#6845)

* Add unit test for socket.io connect

* Fix white space

* * Fix hard to understand loopalyzer localization key
* Fix websocket in unauthenticated cases

* Change authentication dialog button label to be more descriptive

* Remove duplicate key

* * Better unit test for admin notifications.
* Localisable API_SECRET warning
* Fix admin message time display when message is recent

* * Add Slovenian and fix Slovakian language code
* Hide Traditional Chinese due to low coverage
* Add Portuguese to the menu

* * Disabling tests that interfere with other tests
* Fix view include syntax
* Change Slovenian name to correct language

* Update webpack to v5 (#6844)

* upgrade webpack info

* cleanup eslint findings

* fix eslint formatter stylish error

* lazy is invalid option for webpack dev middleware

* upgrade webpack to 5.x

* remove unsupported terser option

* fix missing process polyfill dependency

* try alternate proces fix

* fix css image reference

* add statements to import missing css files to index.html

* TerserPlugin no longer required

* add missing css links

* remove terser

Co-authored-by: Jeremy Cunningham <[email protected]>
Co-authored-by: Sulka Haro <[email protected]>

* New Crowdin updates (#6837)

* New translations en.json (Hebrew)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Spanish)

* New translations en.json (German)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Dutch)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Swedish)

* New translations en.json (Bulgarian)

* New translations en.json (Danish)

* New translations en.json (French)

* New translations en.json (Danish)

* New translations en.json (Greek)

* New translations en.json (Danish)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Portuguese)

* New translations en.json (Greek)

* New translations en.json (Greek)

* New translations en.json (Russian)

* Update source file en.json

* New translations en.json (Hebrew)

* New translations en.json (Japanese)

* New translations en.json (Arabic)

* New translations en.json (Hindi)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Italian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Finnish)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Portuguese)

* New translations en.json (Spanish)

* New translations en.json (Greek)

* New translations en.json (Russian)

* New translations en.json (Portuguese)

* New translations en.json (Portuguese)

* New translations en.json (Norwegian Bokmal)

* Update source file en.json

* New translations en.json (Hebrew)

* New translations en.json (Japanese)

* New translations en.json (Arabic)

* New translations en.json (Hindi)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Italian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Finnish)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Portuguese)

* Update source file en.json

* New translations en.json (Japanese)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Finnish)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Spanish)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Portuguese)

* New translations en.json (French)

* New translations en.json (Greek)

* New translations en.json (Hebrew)

* New translations en.json (Japanese)

* New translations en.json (Arabic)

* New translations en.json (Hindi)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Italian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Finnish)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Portuguese)

* Update source file en.json

* Update source file en.json

* New translations en.json (Slovenian)

* Update source file en.json

* New translations en.json (Hebrew)

* New translations en.json (Japanese)

* New translations en.json (Portuguese)

* New translations en.json (Arabic)

* New translations en.json (Hindi)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Italian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Finnish)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Slovak)

* Update source file en.json

* New translations en.json (Portuguese)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Finnish)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Greek)

* New translations en.json (French)

* New translations en.json (Portuguese)

* Fix issue reported by CodeQL

* Removes an undocumented feature that has a javascript injection vulnerability

* Fix bug with previous removal

* Reduce the amount of false positives reported

* Cgm delta fix (#6848)

* If CGM value has changed, push it to server

* Fix VScode overeager code add

* Merge updated CGM data into client dataset

* Fix form parsing

* Fix json decoding for some api endpoints

* Remove broken header definition

* Fix Brazilian Portuguese language code

* Use password entropy analysis for determining password strength

* Api3 remove Date header (#6855)

* APIv3: isolating documents from tests (not allowing clashes of calculated identifiers)

* removing unused async keyword

* fixing api v3 swagger and moving it to /api3-docs

* APIv3: finishing cache invalidation tests

Co-authored-by: Petr Ondrusek <[email protected]>
Co-authored-by: Petr Ondrůšek <[email protected]>
Co-authored-by: Sulka Haro <[email protected]>

* New Crowdin updates (#6849)

* New translations en.json (Greek)

* New translations en.json (Dutch)

* New translations en.json (Swedish)

* New translations en.json (Russian)

* New translations en.json (Russian)

* New translations en.json (Greek)

* New translations en.json (Portuguese)

* Notify users if they're reusing the API_SECRET for Mongo password

* Fix version number generation

* New Crowdin updates (#6858)

* New translations en.json (Greek)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Greek)

* New translations en.json (Hebrew)

* New translations en.json (Japanese)

* New translations en.json (Portuguese)

* New translations en.json (Arabic)

* New translations en.json (Hindi)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Slovenian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Italian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Finnish)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Greek)

* New translations en.json (Slovak)

* Update source file en.json

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Greek)

* New translations en.json (Swedish)

* New translations en.json (Russian)

* New translations en.json (Romanian)

* New translations en.json (French)

* New translations en.json (Czech)

* New translations en.json (Danish)

* New translations en.json (Portuguese)

* New translations en.json (German)

* New translations en.json (Dutch)

* New translations en.json (Polish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Polish)

* New translations en.json (Romanian)

* New translations en.json (Romanian)

* New translations en.json (Greek)

* New translations en.json (Finnish)

* New translations en.json (Russian)

* * Only run CodeQL in NS repo (#6873)

* Fix server.js location for Azure

* New translations en.json (Romanian) (#6869)

* New Crowdin updates (#6874)

* New translations en.json (Czech)

* New translations en.json (Czech)

* New translations en.json (Spanish)

* New translations en.json (Hungarian)

* New translations en.json (Hungarian)

* New translations en.json (Hungarian)

* * Bump version to 14.2.1
* Update socket.io

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Greek)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Portuguese, Brazilian)

* * Bump dev to 14.2.2
* Add ADMIN_NOTIFIES_ENABLED feature flag
* Skip setting language code if language value is not null

* Fix adminnotifies test

* re-install server.js at root

This continues to allow using server.js programmatically from the root of the
project.

* include standard header for server.js at root.

* task: clean repo root

This change seeks to continue tidying up the repo.

* The database_configuration.json file is not used and has not been used since
  the project was published on github.  We remove the ability to look at files
  inside the source tree for database credentials.

*  Move example-profiles.md to the relevant documentation for plugins area and
   update the link to match.

* move script for repo maintenance aside

This script is used to help prep release branches and tags.  Since it's not
crucial to the business of remote monitoring and only useful as a maintenance
tool, we're moving it away from the project root.

* task: clean project root

Move update image into docs folder, away from project root.

* remove empty file from project root

* task: clean project root

setup.sh appears to be a developer utility to assist in bootstrapping a debian
based system.  It is intended to help install the dependencies needed to run
node, and not used in any automated deploy pipeline.

Instructions have been updated to suite this change which simply moves the
developer tool out of the project repo and into the bin subdirectory.

* task: tidy project root

This change moves the azure deployment script from the root of the project into
the bin subdirectory with a name that makes its purpose more clear.

.deployment file has been updated to execute the new path.

* task: tidy project root: webpack

This change attempts to tidy the project root by moving webpack configuration
into it's own subdirectory.  The metadata has been updated to match this information.

In addition, the configuration file itself is simplified for future maintainers
in some ways. Now the configuration to a projectRoot which is calculated
exactly once, instead of introspecting from __dirname each time.

* t…
  • Loading branch information
22 people committed Apr 7, 2021
1 parent 42b103b commit e38cc60
Show file tree
Hide file tree
Showing 263 changed files with 43,104 additions and 23,025 deletions.
2 changes: 1 addition & 1 deletion .deployment
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[config]
command = bash deploy.sh
command = bash bin/azure-deploy.sh
44 changes: 28 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
module.exports = {
"plugins": [ ],
"extends": [
"eslint:recommended"
'plugins': [
'security'
],
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"mocha": true,
"jquery": true
'extends': [
'eslint:recommended',
'plugin:security/recommended'
],
'parser': 'babel-eslint',
'env': {
'browser': true,
'commonjs': true,
'es6': true,
'node': true,
'mocha': true,
'jquery': true
},
"rules": {
"no-unused-vars": [
"error",
'rules': {
'security/detect-object-injection' : 0,
'no-unused-vars': [
'error',
{
"varsIgnorePattern": "should|expect"
'varsIgnorePattern': 'should|expect'
}
]
}
},
'overrides': [
{
'files': ['lib/client/*.js'],
'rules': {
'security/detect-object-injection': 0
}
}
],
};
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev' && github.repository_owner == 'nightscout'

strategy:
fail-fast: false
Expand Down
113 changes: 86 additions & 27 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,93 @@
name: CI test
name: CI test and publish Docker image

on: [push, pull_request]
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev

jobs:
build:

runs-on: ubuntu-16.04

test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [12.x, 14.x]
mongodb-version: [4.2, 4.4]

steps:
- name: Git Checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Start MongoDB ${{ matrix.mongodb-version }}
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Install dependencies
run: npm install
- name: Run Tests
run: npm run-script test-ci
- name: Send Coverage
run: npm run-script coverage

publish_dev:
name: Publish dev branch to Docker Hub
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev' && github.repository_owner == 'nightscout'
env:
DOCKER_IMAGE: nightscout/cgm-remote-monitor
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Clean git Checkout
if: success()
uses: actions/checkout@v2
- name: Build, tag and push the dev Docker image
if: success()
run: |
docker build --no-cache=true -t ${{ env.DOCKER_IMAGE }}:dev_${{ github.sha }} .
docker image push ${{ env.DOCKER_IMAGE }}:dev_${{ github.sha }}
docker tag ${{ env.DOCKER_IMAGE }}:dev_${{ github.sha }} ${{ env.DOCKER_IMAGE }}:latest_dev
docker image push ${{ env.DOCKER_IMAGE }}:latest_dev
publish_master:
name: Publish master branch to Docker Hub
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && github.repository_owner == 'nightscout'
env:
DOCKER_IMAGE: nightscout/cgm-remote-monitor
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Install MongoDB
run: |
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo apt-get install -y --allow-downgrades mongodb-org=4.4.0 mongodb-org-server=4.4.0 mongodb-org-shell=4.4.0 mongodb-org-mongos=4.4.0 mongodb-org-tools=4.4.0
- name: Start MongoDB
run: sudo systemctl start mongod
- name: Run Tests
run: npm run-script test-ci
- name: Send Coverage
run: npm run-script coverage
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Clean git Checkout
if: success()
uses: actions/checkout@v2
- name: get-npm-version
if: success()
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: Build, tag and push the master Docker image
if: success()
run: |
docker build --no-cache=true -t ${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }} .
docker image push ${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }}
docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }} ${{ env.DOCKER_IMAGE }}:latest
docker image push ${{ env.DOCKER_IMAGE }}:latest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ bundle/bundle.out.js
*.iml
my.env
my.*.env
*.pem

static/bower_components/
.*.sw?
Expand All @@ -28,7 +29,6 @@ npm-debug.log
/cgm-remote-monitor.njsproj
/cgm-remote-monitor.sln
/obj/Debug
/bin
/*.bat

start.sh
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.16.0
14.15.3
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

47 changes: 7 additions & 40 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
- [List of Contributors](#list-of-contributors)
- [Core developers, contributing developers, coordinators and documentation writers](#core-developers-contributing-developers-coordinators-and-documentation-writers)
- [Plugin contributors](#plugin-contributors)
- [Translators](#translators)
- [List of all contributors](#list-of-all-contributors)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
Expand All @@ -35,6 +34,11 @@
[coverage-url]: https://coveralls.io/r/nightscout/cgm-remote-monitor?branch=master
[discord-img]: https://img.shields.io/discord/629952586895851530?label=discord%20chat
[discord-url]: https://discord.gg/rTKhrqz
[example-env-template]: docs/example-template.env

## Translations

Please visit our [project in Crowdin](https://crowdin.com/project/nightscout) to translate Nigthscout. If you want to add a new language, please get in touch with the dev team in [Discord][discord-url].

## Installation for development

Expand All @@ -46,15 +50,15 @@ Nightscout is a Node.js application. The basic installation of the software for
dependency installation has to be done using a non-root user - _do not use root_ for development and hosting
the software!
3. Get a Mongo database by either installing Mongo locally, or get a free cloud account from mLab or MongoDB Atlas.
4. Configure Nightscout by copying `my.env.template` to `my.env` and run it - see the next chapter in the instructions
4. Configure Nightscout by copying [`docs/example-template.env`][example-env-template] to `my.env` and run it - see the next chapter in the instructions

## Develop on `dev`

We develop on the `dev` branch. All new pull requests should be targeted to `dev`. The `master` branch is only used for distributing the latest version of the tested sources.

You can get the `dev` branch checked out using `git checkout dev`.

Once checked out, install the dependencies using `npm install`, then copy the included `my.env.template`file to `my.env` and edit the file to include your settings (like the Mongo URL). Leave the `NODE_ENV=development` line intact. Once set, run the site using `npm run dev`. This will start Nightscout in the development mode, with different code packaging rules and automatic restarting of the server using nodemon, when you save changed files on disk. The client also hot-reloads new code in, but it's recommended to reload the website after changes due to the way the plugin sandbox works.
Once checked out, install the dependencies using `npm install`, then copy the included [`docs/example-template.env`][example-env-template] to `my.env` file to `my.env` and edit the file to include your settings (like the Mongo URL). Leave the `NODE_ENV=development` line intact. Once set, run the site using `npm run dev`. This will start Nightscout in the development mode, with different code packaging rules and automatic restarting of the server using nodemon, when you save changed files on disk. The client also hot-reloads new code in, but it's recommended to reload the website after changes due to the way the plugin sandbox works.

Note the template sets `INSECURE_USE_HTTP` to `true` to enable the site to work over HTTP in local development.

Expand Down Expand Up @@ -188,8 +192,6 @@ Also if you can't code, it's possible to contribute by improving the documentati
| Core developers: | [@jasoncalabrese] [@MilosKozak] [@PieterGit] [@sulkaharo] |
| Former Core developers: (not active): | [@bewest] |
| Contributing developers: | [@jpcunningh] [@scottleibrand] [@komarserjio] [@jweismann] |
| Release coordination 0.10.x: | [@PieterGit] [@sulkaharo] |
| Release coordination 0.11.x: | [@PieterGit] |
| Issue/Pull request coordination: | Please volunteer |
| Cleaning up git fork spam: | Please volunteer |
| Documentation writers: | [@andrew-warrington] [@unsoluble] [@tynbendad] [@danamlewis] [@rarneson] |
Expand Down Expand Up @@ -230,41 +232,6 @@ Also if you can't code, it's possible to contribute by improving the documentati
| [`upbat` (Uploader Battery)](README.md#upbat-uploader-battery)| [@jpcunningh] | Please volunteer |
| [`xdrip-js` (xDrip-js)](README.md#xdrip-js-xdrip-js)| [@jpcunningh] | Please volunteer |
### Translators
See `/translations` of your Nightscout, to view the current translation coverage and the missing items.
Languages with less than 90% coverage will be removed in a future Nightscout versions.
| Language | List of translators | Status
| ------------- | -------------------- |-------------------- |
| Български (`bg`) |Please volunteer| OK |
| Čeština (`cs`) |Please volunteer|OK |
| Deutsch (`de`) |[@viderehh] [@herzogmedia] |OK |
| Dansk (`dk`) | [@janrpn] |OK |
| Ελληνικά (`el`)|Please volunteer|Needs attention: 68.5%|
| English (`en`)|Please volunteer|OK|
| Español (`es`) |Please volunteer|OK|
| Suomi (`fi`)|[@sulkaharo] |OK|
| Français (`fr`)|Please volunteer|OK|
| עברית (`he`)| [@jakebloom] |OK|
| Hrvatski (`hr`)|[@OpossumGit]|OK|
| Italiano (`it`)|Please volunteer|OK|
| 日本語 (`ja`)|[@LuminaryXion]|Working on this|
| 한국어 (`ko`)|Please volunteer|Needs attention: 80.6%|
| Norsk (Bokmål) (`nb`)|Please volunteer|OK|
| Nederlands (`nl`)|[@PieterGit]|OK|
| Polski (`pl`)|[@Bartlomiejsz]|OK|
| Português (Brasil) (`pt`)|Please volunteer|OK|
| Română (`ro`)|Please volunteer|OK|
| Русский (`ru`)|[@apanasef]|OK|
| Slovenčina (`sk`)|Please volunteer|OK|
| Svenska (`sv`)|Please volunteer|OK|
| Türkçe (`tr`)|[@diabetlum]|OK|
| 中文(简体) (`zh_cn`) | [@jizhongwen]|OK|
| 中文(繁體) (`zh_tw`) | [@jizhongwen]|Needs attention: 25.0%
| 日本語 (`ja_jp`) | [@LuminaryXion]|
### List of all contributors
| Contribution area | List of contributors |
| ------------------------------------- | -------------------- |
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.example → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:10-alpine
FROM node:14.15.3-alpine

MAINTAINER Nightscout Contributors
LABEL maintainer="Nightscout Contributors"

RUN mkdir -p /opt/app
ADD . /opt/app
Expand All @@ -15,4 +15,4 @@ RUN npm install && \

EXPOSE 1337

CMD ["node", "server.js"]
CMD ["node", "lib/server/server.js"]
Loading

0 comments on commit e38cc60

Please sign in to comment.