Commit Graph
5232 Commits
Author SHA1 Message Date
Sulka Haro 5f15e1f010 * Remove the Deploy To Azure button
* Make wording for Azure deploy even more stern
2019-07-24 11:18:02 +03:00
Sulka HaroandGitHub d2f21a5911 Merge pull request #4794 from nightscout/load_sensor_stop
Load the latest 'Sensor Stop' event from last 32 days
2019-07-24 11:05:13 +03:00
Sulka Haro 9acd999633 Load the latest 'Sensor Stop' event in case user has a Start and Stop event that are both outside the 2-day full data load window 2019-07-24 11:03:56 +03:00
Sulka HaroandGitHub c9b7e5c37a Merge pull request #4769 from PieterGit/201907_dev
feat: Allow Node 12 and Node 10.15.2 for Azure
2019-07-23 15:01:55 +03:00
Sulka HaroandGitHub ae2e8c9801 Merge pull request #4782 from nightscout/master
Merge documentation change back to dev
2019-07-23 15:00:30 +03:00
Sulka HaroandGitHub 0dd7347eae Merge pull request #4775 from unsoluble/patch-1
Update browser requirements
2019-07-23 14:59:33 +03:00
Sulka HaroandGitHub eb3e4c804a Merge pull request #4779 from mastacheata/patch-1
Only set INSECURE_USE_HTTP as last resort
2019-07-23 14:57:24 +03:00
Sulka HaroandGitHub 3d5fc8df72 Merge pull request #4778 from mastacheata/patch-2
Perform HTTP to HTTPS redirect using 307 status
2019-07-23 14:56:05 +03:00
Benedikt BauerandGitHub 2fed98a1fa Only set INSECURE_USE_HTTP as last resort
I've changed the explanation for the `INSECURE_USE_HTTP` environment variable.
The old first line describing this setting in just one sentence was wrong and the next line basically suggested turning this security feature off in situations where it's not needed.
In the nightscout code you check if either the connection is secure by itself or if the X-Forwarded-Proto header is set (which it should be by default in all major reverse proxy applications).
It should be unnecessary to change that setting even in a reverse proxy environment.
2019-07-22 22:13:45 +02:00
Benedikt BauerandGitHub 7f5f74c8ca Perform HTTP to HTTPS redirect using 307 status
302 and 307 basically do the same thing with just one important difference:
The default 302 redirect from express.js tells the browser to repeat the request with the new URL using the GET verb.
When using the 307 status code manually, this tells the browser to repeat the very same request against the new URL using all the same parameters, headers and most important HTTP verbs.

In practice this is important every time you want to change settings or flip a switch or enter your API key (that information will never arrive at the server)
It's even more important when you get to the site through a reverse proxy that doesn't properly set the X-Forwarded-Proto header.
2019-07-22 22:01:19 +02:00
John WestonandGitHub 1c940788e4 Update browser requirements 2019-07-22 09:58:03 -07:00
PieterGit 99e8d6f373 up WEBSITE_NODE_DEFAULT_VERSION to 10.15.2 2019-07-22 07:59:36 +02:00
PieterGit 6e6cd29570 drop Node ^12.6.0 from package.json, because it is not recommended yet (but it works) 2019-07-22 02:00:38 +02:00
PieterGit 8d6e5514d2 allow Azure with Node ^10.15.2 and allow Node 12 2019-07-22 01:50:52 +02:00
PieterGit 6a7f5983dd Merge branch 'dev' of https://github.com/nightscout/cgm-remote-monitor into 201907_dev 2019-07-22 01:31:32 +02:00
Sulka Haro 561f42af91 Fix main view button alignment 2019-07-21 11:58:24 +03:00
Sulka HaroandGitHub 5fea10aa27 Merge pull request #4748 from nightscout/dev
Release 0.12.2
0.12.2
2019-07-20 18:29:57 +03:00
Sulka Haro 7d7e57716b Bump version to 0.12.2 2019-07-20 18:27:52 +03:00
Sulka Haro 4626156a2b Add close buttons to all views accessible from the main menu, to prevent users on iOS getting stuck 2019-07-20 18:23:35 +03:00
PieterGit f0b3e1a589 allow Node 12 2019-07-20 13:55:05 +02:00
Sulka Haro 0dd701e7e4 Add small close button to the clock views 2019-07-20 14:29:49 +03:00
Sulka Haro 26f698ac6c Bump version to 0.12.1 0.12.1 2019-07-20 14:00:15 +03:00
Sulka Haro 629e3754f3 Bump version number to 0.12.1 2019-07-20 13:59:44 +03:00
Sulka Haro 41ff79a2e6 Merge branch 'dev' 2019-07-20 13:54:15 +03:00
Sulka Haro f874183959 BUGFIX: Fix the clock to load the javascript bundle from the right place 2019-07-20 13:53:05 +03:00
Sulka HaroandGitHub b627d311ce Merge pull request #4733 from nightscout/dev
Release 0.12.0
0.12.0
2019-07-20 10:06:15 +03:00
Sulka Haro ad1913182e * Bump version to 0.12.0 for release
* update package.json and nvmrc to point to latest 10 series LTS node
* Add my.env.template, referred to in dev docs
2019-07-19 10:13:36 +03:00
Sulka Haro 851b08ff4c Fix issues found with linting in the server code & update module versions based on npm audit 2019-07-19 09:46:40 +03:00
Sulka Haro 938055730c Add eslint ignores to a false positive 2019-07-19 09:16:53 +03:00
Sulka Haro b933da2b97 * Merge branch 'master' into dev
* Update version to 0.11.2-rc3
2019-07-17 15:18:04 +03:00
Sulka HaroandGitHub 8f25a6e7a4 Fix all issues from ESLint (#4730)
* Cherry picks the ES language changes from #4690

* Fix small issues found in linting

* * Fix all but one eslint complaint in the bundled code
* Add eslint and js-beautify rc files into the repo
2019-07-17 15:04:57 +03:00
Sulka HaroandGitHub b04476e1f9 Normalize Treatment, Entry and Device Status object dates to be all in UTC Strings (#4658)
* Normalize Treatment object dates to be all in UTC Strings, as expected by the codebase

* Also normalize the device status data

* Sort the results so results with mixed dates are returned in correct order

* Use MomentJS to correctly parse the offsets & output the offset to objects at all times

* Removing a debug console log message causing excessive logging

* Use UTC date values for queries even if client asks for zoned dates

* Remove extra sorting based on date. Code clarifications

* * Add missing parseZone() call to treatments
* Check isValid() date on entries

* Use isValid() to check date validity for device status data
2019-07-17 09:03:39 +03:00
Sulka HaroandGitHub f9d59c4e3e Packaging / development improvements (#4710)
* * Package reporting plugins separately into another bundle to reduce main bundle size
* Use moment timezone webpack plugin to load less time zone data
* When server is run in development mode, hot reload code changes without restart

* Run code through a linter when in dev mode

* Remove a couple unnecessary logging lines

* Fix tests
2019-07-15 14:38:36 +03:00
Sulka Haro e9576df740 Add documentation 2019-07-15 13:22:01 +03:00
Sulka Haro dfe9d1baef Fix tests 2019-07-14 20:49:03 +03:00
Sulka HaroandGitHub 8959287474 Calculate a has for treatments for deduplication (type + timestamp) (#4724) 2019-07-14 20:40:55 +03:00
Sulka Haro 76d103f399 Remove a couple unnecessary logging lines 2019-07-01 17:55:46 +03:00
Sulka Haro ca04cc2d9a Run code through a linter when in dev mode 2019-07-01 17:54:40 +03:00
Sulka Haro 8653d492f2 * Package reporting plugins separately into another bundle to reduce main bundle size
* Use moment timezone webpack plugin to load less time zone data
* When server is run in development mode, hot reload code changes without restart
2019-06-30 20:58:04 +03:00
Sulka HaroandGitHub a6787b5f8b Clamp treatments & load less data (#4697)
* Reduce the amount of days we load treatments for and load the latest entry of each type we need from last month, to have the site load faster

* Clamp treatments fit to the BG curve at 22
2019-06-20 09:01:26 +03:00
Sulka HaroandGitHub fa28b0cd05 Fix distribution report totals (#4691)
* Distribution totals were miscalculated due to data interpolation. This also adds filtering for non-sgv dexcom entries - we need a new feature so user can define what CGM system she's on and set the lower bound of acceptable CGM values appropriately

* Remove debug logging
2019-06-20 08:59:11 +03:00
Jason CalabreseandSulka Haro 5953613a21 move BG span style to css and include rawbg (#4670) 2019-06-20 08:58:24 +03:00
Sulka HaroandGitHub 6ed5ee0ec0 feat: clock view code refactor (#4639)
* * Full refactor of the clockface code. Clocks now get their own small javascript bundle that contains the bare minimum client (from /lib/client/clock-client.js)
* Clocks no longer have separate HTML files but each has unique CSS definitions
* Fixed the bug where a finger measurement showed NaN in the clock

* Update shrinkwrap to match package.json

* Revert accidental index.html changes

* Bunch of minor fixes (#4641)

* Add triple arrows

* remove time

* grey arrows on bgclock

* try again on arrow fill

* Update bgclock.css

* fix double-mmol-conversion

* Update clock-client.js

* tabs to spaces everywhere

* Refactors based on Jason's comments

* Remove the clock bundle generation from app.js
2019-06-20 08:55:52 +03:00
Sulka HaroandGitHub 5ac49cda73 Fix BG data wrapping issue with Chrome (#4667) 2019-05-30 22:50:09 +03:00
John WestonandJason Calabrese 0bac2b5d5f add triple-arrow svgs (#4640) 2019-05-24 08:11:27 -07:00
Sulka HaroandGitHub 2ac89d254e Add try/catch blocks to around plugin calls, which should in most cases prevent a single data error in a single plugin from taking down the entire Nightscout (#4595) 2019-05-19 11:43:01 +03:00
Jason CalabreseandGitHub b139151626 Merge pull request #4601 from jasoncalabrese/fix-loop-test
fix loop test to expect evBG in the pill value
2019-05-10 10:51:07 -07:00
Jason Calabrese 99800c85a5 fix loop test to expect evBG in the pill value 2019-05-10 09:55:54 -07:00
Jason CalabreseandGitHub 3ffc005b8a Merge pull request #4587 from jasoncalabrese/override-mode
feat: Override mode plugin
2019-05-08 19:27:31 -07:00
Jason Calabrese a4f9b52850 update readme to include the override plugin and resole TODO 2019-05-08 19:20:30 -07:00