Commit Graph
100 Commits
Author SHA1 Message Date
Sulka HaroandGitHub 4ace12594e 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
2020-11-17 14:17:17 +02:00
Sulka Haro 2a96c449f3 Merge branch 'master' into dev 2020-11-15 19:16:47 +02:00
Sulka HaroandGitHub 695e98b427 Create codeql-analysis.yml 2020-11-15 13:23:03 +02:00
Sulka Haro cb14de0514 Bump version to 14.0.8 2020-11-15 11:29:01 +02:00
Sulka HaroandGitHub 257dfb2a98 Merge pull request #6445 from nightscout/dev
Release 14.0.7
2020-11-15 11:09:52 +02:00
Sulka Haro e7d080adf8 Increase load interval to 5 seconds 2020-11-15 10:46:35 +02:00
Sulka Haro a9692d19b7 * Added basal and careportal to default plugins
* Changed report BG target to allow fractional numbers
2020-11-15 10:30:29 +02:00
Sulka Haro d7f472aad6 Fix the read detection to work correctly with MongoDB Atlas 2020-11-14 16:00:41 +02:00
Sulka Haro edf432aa47 Merge branch 'master' into dev 2020-11-14 14:48:49 +02:00
Sulka Haro 384de77714 Fix unit tests 2020-11-14 14:48:10 +02:00
Sulka HaroandGitHub 5f59c1d48e Update app.json 2020-11-14 12:00:04 +02:00
Sulka Haro 85c59a66a9 Merge branch 'master' into dev 2020-11-14 11:36:48 +02:00
Sulka Haro 978f20553f Add file missing from previous commit 2020-11-14 11:06:32 +02:00
Sulka Haro 376c790710 Add runtime state tracking to Nightscout, where client now checks if the server has loaded initial data from Mongo before the user is directed to the UI 2020-11-14 11:05:43 +02:00
Sulka HaroandGitHub b762ade017 Fix batch (#6248)
* Use the delta plugin data to show the delta in the clock views
* Update Node checks
* Fix disabling the BG alarms for simple alarms
* Load battery and other rare events up to two months back
* Possibly fixes compatibility with ios9 - needs testing
* Unified black and color clock layouts
* Update clock data every 20 seconds
* Update clock time every second
* Fix how CSP policy is set for Helmet, fixes #6260
* Authorization fix for misformatted URLs
* Added unit test for batch upload of CGM entries
* Improved / removed some logging
* Test if user is in read only mode when Nightscout starts and give an error if so
2020-11-10 18:02:28 +02:00
Sulka HaroandGitHub bc55b073bc Update config.yml 2020-10-29 12:52:43 +02:00
Sulka HaroandGitHub 8ba3793209 Delete --individual-troubleshooting-help.md 2020-10-29 12:47:38 +02:00
Sulka HaroandGitHub fe33f7ffa0 Create config.yml 2020-10-29 12:46:23 +02:00
Sulka HaroandGitHub 0aed5c93a0 Update README.md
Explicitly link to the application template in Github
2020-10-03 09:07:13 +03:00
Sulka Haro f08f9eac52 * Bump version to 14.0.7
* Add onerror handler for pushover
2020-09-30 09:14:59 +03:00
Sulka HaroandGitHub 18188105d1 Merge pull request #6148 from nightscout/dev
Nightscout release 14.0.6 Liquorice
2020-09-28 13:08:31 +03:00
Sulka Haro 48f5578e8a Make empty cache detection a bit more aggressive to account for cache flush and data insert happening concurrently 2020-09-28 11:12:42 +03:00
Sulka HaroandGitHub a8b53f54e5 Support uploading device statuses in batches (#6147)
* Support uploading device statuses in batches
* Correctly report batch insertion results
2020-09-28 10:51:27 +03:00
Sulka Haro 0dd1254bf4 Bump version to 14.0.6 2020-09-28 09:36:21 +03:00
Sulka HaroandGitHub 9315b06283 Merge pull request #6135 from nightscout/dev
Nightscout 14.0.5 Liquorice
2020-09-27 18:00:01 +03:00
Sulka Haro 4ba636d0b2 Fix MONGODB_URI reference in error message 2020-09-27 17:33:11 +03:00
Sulka Haro 0670c5a913 Add error cat to error page 2020-09-27 17:23:49 +03:00
Sulka HaroandGitHub dfa86a9c6a Fix memory leak and cache update issues in 14.0.4 (#6133)
* Fix a memory leak in 14.0.4
* Fix linter error in ddata.js
* Move data retention periods to caching
* Update _id of inserted entries and device status so merging to cache works correctly
* Reset the data in ddata before updating
* Fix typo on entry cache retention period
* Have device status cache retention period follow configuration
* Fix _id injection in treatments
2020-09-27 17:16:42 +03:00
Sulka Haro 48096fc30b Merge branch 'master' into dev 2020-09-27 15:56:20 +03:00
Sulka HaroandGitHub 6d6cf31011 Update --individual-troubleshooting-help.md 2020-09-27 14:56:22 +03:00
Sulka HaroandGitHub 5af8d6358c Update --bug-report.md 2020-09-27 14:54:43 +03:00
Sulka HaroandGitHub 4d2a731a53 Update --feature-request--.md 2020-09-27 14:54:33 +03:00
Sulka Haro 54a5b35578 Remove require statement breaking deploys 2020-09-27 12:01:48 +03:00
Sulka Haro 84c245c90f Fix tests 2020-09-25 18:56:36 +03:00
Sulka Haro eec131bc3b Add file missing from last commit 2020-09-25 18:43:51 +03:00
Sulka Haro d3c1613132 Less intimidating error page on start, which also checks for api_secret 2020-09-25 18:43:31 +03:00
Sulka Haro a8956bc4cc Don't report an error on every reconnect 2020-09-25 14:07:46 +03:00
Sulka Haro f8461655bc * Fix security test
* Change boot and caching to expose Mongo connection errors
2020-09-25 12:53:31 +03:00
Sulka Haro 8ac973471b Make settings parsing whitespace tolerant 2020-09-25 10:37:23 +03:00
Sulka Haro 07eee47257 Fix Pebble API detecting mmol units from settings 2020-09-24 22:31:56 +03:00
Sulka Haro de792d244d Bump version to 14.0.5 and fix #6050 2020-09-24 22:06:02 +03:00
Sulka HaroandGitHub a95ad79f06 Merge pull request #6078 from nightscout/dev
Nightscout 14.0.4 Liquorice
2020-09-23 22:30:36 +03:00
Sulka Haro 3f1081e3aa Bump version to .4 2020-09-22 12:44:31 +03:00
Sulka HaroandGitHub cde9aa3835 Merge pull request #6056 from nightscout/cache_invalidation
Refactor in-memory caching
2020-09-22 11:51:14 +03:00
Sulka Haro 54008a7122 Remove excess logging 2020-09-22 11:14:13 +03:00
Sulka Haro 1059232f16 * Add cache update events to websocket API
* Remove the validation for created_at in REST API ;(
2020-09-21 20:46:53 +03:00
Sulka Haro a75c5a300a Fix data order for REST API 2020-09-20 19:14:33 +03:00
Sulka Haro f878ce115b Add support for CGM data and device statuses. Refactor dataloader to use the new model and reduce queries back down 2020-09-20 18:36:19 +03:00
Sulka Haro 0c7e9bf456 * Require created_at for Treatments on insert
* Refactoring the cache: moved to another file and support flushing from bus events
2020-09-19 18:17:20 +03:00
Sulka HaroandGitHub 6e50c2356d Merge pull request #6009 from nightscout/dev
Release 14.0.3 Liquorice
2020-09-16 16:35:51 +03:00
Sulka Haro a0043ec206 Bump treatments default limit default to 1000 objects for queries that include other query parameters 2020-09-16 16:10:44 +03:00
Sulka Haro 8a1d6bf84a Fix reports unit test 2020-09-16 11:46:22 +03:00
Sulka Haro b62ab3c21a Bumped up the number of treatments loaded / day for reporting 2020-09-16 11:21:04 +03:00
Sulka Haro 90f91c3e18 * Bump version to 14.0.3
* Fix a bug in the REST API query for profiles
2020-09-16 10:46:17 +03:00
Sulka HaroandGitHub 92f23e6616 Merge pull request #6004 from nightscout/dev
Release 14.0.2
2020-09-16 10:11:22 +03:00
Sulka Haro fbe3e9b571 One more increase to treatment load time to cover long overrides 2020-09-16 09:52:42 +03:00
Sulka Haro 0a79cb1e2d Bump treatment delta loading to four hours 2020-09-15 15:39:25 +03:00
Sulka Haro b6201647df When merging inserts and updates from the database, ensure we always use the new data over the old data 2020-09-15 14:54:38 +03:00
Sulka Haro 5f0b77bc21 * Remove unnecessary logging to help with Papertrail limits
* Load more treatments and entries to fix caching issues (need to add better cache invalidation to really fix this)
2020-09-15 10:07:31 +03:00
Sulka Haro 685ae5cd5d Cleaned old appcache references 2020-09-14 19:32:29 +03:00
Sulka Haro cd256ab1bc Serve Last-Modified header for the service worker to help with some browsers misdetecting caching 2020-09-14 19:29:53 +03:00
Sulka HaroandGitHub 345b171c2c Merge pull request #5980 from nightscout/absolute_amount
Load absolute dosing from amount field
2020-09-14 16:08:00 +03:00
Sulka HaroandGitHub 5cdba4a001 Merge pull request #5987 from jpcunningh/fix-recursion
Fix Brushing Recursion Error
2020-09-14 16:07:45 +03:00
Sulka Haro 663f439137 Bump dev to 14.0.2 2020-09-13 14:54:21 +03:00
Sulka HaroandGitHub 4f85e19461 Merge pull request #5984 from nightscout/dev
Release 14.0.1
2020-09-13 14:48:57 +03:00
Sulka HaroandGitHub f04e7d7ca0 Merge pull request #5983 from pazaan/pazaan/fix-iquorice-treatment-report
Fix `Treatments` report for `mmol/L` users
2020-09-13 14:42:35 +03:00
Sulka Haro 0c11bf05e4 Bump version to 14.0.1 2020-09-13 14:42:14 +03:00
Sulka HaroandGitHub e54a6b8c10 Merge pull request #5526 from nightscout/dev
Release 14.0.0
2020-09-13 10:34:42 +03:00
Sulka Haro 14621a4f29 Update README to point to new docs 2020-09-13 10:03:36 +03:00
Sulka Haro 57e33a0fe1 Normalize treatments to support absolute doses from the amount field 2020-09-12 10:38:35 +03:00
Sulka Haro 5aef24545b Remove logging statements 2020-09-10 19:55:38 +03:00
Sulka Haro c113424045 Bumping version to 14.0.0 given this is a relatively large update and we want people on Atlas to all migrate to this version 2020-09-10 09:29:06 +03:00
Sulka HaroandGitHub 801900597a Optimize Nightscout database usage (#5947)
* On periodic polls, only load delta for CGM data, treatments and device statuses
* Serve basic CGM data API queries from in-memory cache. Increases the Nightscout memory footprint but should significantly reduce the Mongo load
* Serve device status, CGM and treatment records from memory cache
* Support count parameter in /profile
2020-09-09 20:11:57 +03:00
Sulka Haro 6613e761cf feat Add robots.txt to disallow site crawling 2020-08-30 10:55:37 +03:00
Sulka HaroandGitHub 0c229638f0 Re-enable CSP configuration (#5867)
* Re-enable CSP configuration
2020-08-22 10:49:28 +03:00
Sulka HaroandGitHub d504a66187 Split view CSP support (#5864)
* Parse split view frames into frameAncestors
2020-08-21 11:09:18 +03:00
Sulka Haro 3e1cc14b99 Serve the CSP to everyone 2020-08-20 17:21:04 +03:00
Sulka HaroandGitHub fd90f4e58b CSP and service worker improvements (#5856)
* Add connectSrc for Safari compatibiity
* Add new font URL for Google Fonts compatibility
* Reload on re-registering the worker
* Change Mongo version in github to fix builds
2020-08-20 17:15:29 +03:00
Sulka Haro 293655984b Upgrade Helmet to 4.0.0 2020-08-19 11:21:56 +03:00
Sulka Haro 359e6a6128 * Limit the default number of profiles returned by the API to fix issues with users who are syncing a large amount of profiles from an APS.
* Fix profile reporting
2020-08-19 11:03:21 +03:00
Sulka Haro f4f456a125 * Updated several packages to remove issues from NPM audit
* Fix excess logging in settings.js
* Removed heapdump package, which was causing issues for some users
2020-08-18 12:29:31 +03:00
Sulka Haro b8e69d90ae Fix temporary target cancellation 2020-08-18 11:20:11 +03:00
Sulka HaroandGitHub 9b048dddb7 Fix audit errors, button order (#5694)
* * Update packages giving npm audit errors
* Fix Mongo test that broke after update (now uses async/await on getting the connection)
* Restore original navigation bar button order

* Disable Node 10 tests
2020-07-12 12:46:06 +03:00
Sulka HaroandGitHub 9236771b29 Sanitize data from manual careportal entries so only fields with actual data are sent to the server (#5619) 2020-05-05 22:18:42 +03:00
Sulka HaroandGitHub 4cdd00db40 Fix topbar collapse on small screens (#5562)
* Fix top bar collapsing on small screens

* Fix wide button array overflowing the button bar
2020-03-09 08:19:08 +02:00
Sulka Haro 9611373924 Merge branch 'master' into dev for release 2020-02-22 17:23:45 +02:00
Sulka Haro 32f4791ef1 Update version to 13.1.0 2020-02-22 17:17:18 +02:00
Sulka Haro 7d95b06c20 Fix settings test 2020-02-22 17:07:21 +02:00
Sulka Haro dcf8248a1b Add more variables to the special list 2020-02-16 22:46:40 +02:00
Sulka HaroandGitHub 729747a2f8 Allow flagging specific settings to be not exposed the /properties and /status APIs (#5525) 2020-02-16 14:30:15 +02:00
Sulka HaroandGitHub 77795cae5a Split view (#5518)
* Adds a 2, 3, 4 and 8 way split view option

* Updated description

* Generate the table on demand, so any number of sites from 1 to 8 generates a sensible layout

* Update readme & don't crash if a name is missing
2020-02-16 14:15:27 +02:00
Sulka Haro 765d7f8ea5 Fix: Round interporlated mg/dL value to an integer 2020-02-08 11:22:12 +02:00
Sulka HaroandGitHub 82f00763d6 Move app caching to a service worker (#5504)
* Move app caching to a webworker

* Code cleanup

* Code cleanup

* Make Codacy happy

* More parentheses
2020-02-05 08:16:25 +02:00
Sulka Haro baad198bd5 Fix earlier merge error with predictions having moved to the report bundle 2020-01-18 13:37:53 +02:00
Sulka Haro d095482c2c Run CI Action for Pull Requests 2020-01-14 08:05:51 -08:00
Sulka HaroandGitHub 64663d2bfc Send coverage reports to Codacy (#5444)
* Send coverage reports to Codacy

* Action secrets may not be read from forks :(

* Let's see if this fixes the path & key passing

* Ok one more try for the Actions env

* Run tests and coverage separately

* Try increasing the admintools test runtime for Node 10

* Run tests only once
2020-01-12 18:49:19 +00:00
4f9f735164 Pr/5379 (#5441)
* Release 13.0.1 (#5329)

* Release ref update v2 (#5301)

* Updated release name and number

* Added missing version number

* Added missing version number

* Fix auth dialog sizing error (#5315)

* Fix auth dialog sizing error (#5314)

* Fix auth dialog sizing error

* Fix Client Init After Auth

(cherry picked from commit 1bf416c3bb964ed555850c3fc55977d69980b8e5)

* update NS minor version

* Added handlers and translations for CGM info

* Defined translate()

* Fixed sensor state reference

* Improved wording for tx age response

* Improved wording for session duration response

* Updated documentation and templates

* Updated README.md TOC and a reference to it

* Added CGM battery info

* Added unit reference to CGM battery levels

* Added handlers and translations for CGM info

* Defined translate()

* Fixed sensor state reference

* Improved wording for tx age response

* Improved wording for session duration response

* Updated documentation and templates

* Updated README.md TOC and a reference to it

* Added CGM battery info

* Added unit reference to CGM battery levels

* Updated API reference in Google Home template

Co-authored-by: Caleb <inventor96@users.noreply.github.com>
2020-01-11 12:40:33 +00:00
Sulka HaroandGitHub df035779ab Merge pull request #5394 from nightscout/fix_timeago
Fix timeago alarms (again)
2020-01-01 13:30:55 +02:00
Sulka Haro 9817b03f57 Remove the server side test 2020-01-01 13:18:52 +02:00
Sulka Haro 44519b939a Fix timeago alarms (again). The changes to the rendered had an unintended consequence of triggering the timeago detection less frequently, causing the code to think the client has been hibernating, thus suppressing the alarms. The update changes the clock to be updated more frequently (this updating the hibernation detection), fixing the issue 2020-01-01 13:11:46 +02:00