1116 Commits
Author SHA1 Message Date
1c349527a1 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 <jpcunningh@gmail.com>
Co-authored-by: Sulka Haro <sulka@sulka.net>
2021-02-07 17:25:19 +02:00
Sulka HaroandGitHub 647ed20de1 Clean statics & bundle more (#6745)
* * Remove unused old version of MFB
* Bundle food, profile editor
* Clean up the static folders

* Fix tests
2021-01-17 12:20:48 +02:00
Sulka HaroandGitHub 914ba78f36 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
2021-01-07 22:46:55 +02:00
Sulka Haro c12ad765be * Refactor how the levels dependency is loaded, to fix some localization issues
* Moves reporting client to the bundles
2020-12-14 20:31:20 +02:00
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 0670c5a913 Add error cat to error page 2020-09-27 17:23:49 +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 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
MatthewandGitHub d26091bae7 Fix Issue #5763 - Change $.ajax to /api/v1/profile (#5704) 2020-09-08 09:15:51 +03:00
802d98684f Fixes #4991 - Now selects basal profile based day by day (#5572)
* Test profile settings

* NPM Version change

* Use console log

* Use console log for client

* Use console log for client.sbx

* Use console log for client.ddata

* Use console log for client again

* revert

* Added multi-profile reporting capabilities

Co-authored-by: VIS TFS Admin <liveid@visualsolution.co.uk>
2020-06-12 17:47:28 +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
stephencmortonandGitHub cd2ad5e1ae client - mobile - Axis label font is scaled on small screens (#5512)
On phones or other small screens, the axis labels (especially x axis)
were previously an unreadable jumble of too-close letters
2020-02-16 14:14:45 +02:00
Dominik DzieniaandGitHub 44ab2a79dc Plugin to show database size (% of available space or in MiB) (#5496)
* Database size plugin - pill that displays current mongoDB database size

* Enabled dbsize by default

* Fixed bug with dbsize not shownig when size is (rounded) 0% but real bytes > 0

* Cleanup & update to iconfont generation manual

* Changed how warning/urgent levels are configured - from absolute MiB to percentage of DBSIZE_MAX
2020-02-10 08:56:38 +02:00
Bartłomiej SzubertandSulka Haro ddbda15c0a Move toolbar and authentication status to partial and include on each page (#5393)
* Move authentication status to partial and include on each page

* Move toolbar to partial

Co-authored-by: Sulka Haro <sulka@sulka.net>
2020-01-06 19:31:03 +02:00
Bartłomiej SzubertandSulka Haro 5e47c4d0ed Fix #5188 - move predictions to bundle and don't render chart on predictions offset change (#5395)
* Fix #5188 - move predictions to bundle and don't render chart on predictions offset change

* Fix predictions show for day to day
2020-01-06 19:24:45 +02:00
Andrew DixonandSulka Haro f7922a6bd7 Basic report page style fixes and updates (#5387) 2020-01-01 11:20:48 +02:00
Sulka HaroandGitHub 04b47f6109 Add 4 hour option to view (#5289)
* Revert "change default back to 3HR"

This reverts commit e60ff3aa9d.

* shorten HR to H to avoid line-wrapping on mobile

* try larger label font: 35 instead of 25 (vs. 40)

* add comma

* deviceInfo.recent null check

* default back to 3, w/ 4 as an option

* re-add H to single-digit hours

* * Don't use cache manifest all all for development
* Add 4 hours option to view and change the labelling to remove language issues
* Have page scale the minor pill widths more gracefully
2019-12-14 16:07:47 +00:00
John WestonandSulka Haro 7a0204842a Add BrowserStack badge to the Readme (#5001)
* Create robots.txt

* Update robots.txt

* Delete robots.txt

* add browserstack logo image

* add BrowserStack badge/link to readme

* add resized BrowserStack logo

* Delete browserstack-logo-600x315.png
2019-10-09 22:56:54 +03:00
John WestonandGitHub 1a26b2a3e8 Remove profile conversion warning
This modal dialog about converting the profile to a format that 0.9.0 or earlier won't support is still popping on fresh installs, shouldn't be required at this point.
2019-07-31 11:16:02 -07: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
Jason CalabreseandSulka Haro 5953613a21 move BG span style to css and include rawbg (#4670) 2019-06-20 08:58:24 +03:00
John WestonandJason Calabrese 0bac2b5d5f add triple-arrow svgs (#4640) 2019-05-24 08:11:27 -07:00
Jason Calabrese 3c41724dbd another CSS tweak that allows the pills on the right side to wrap 2019-05-08 09:56:28 -07:00
Jason Calabrese 1c7b480ffd css tweaks so the pills align better 2019-05-07 18:19:35 -07:00
rob-andyandSulka Haro 9cf02e8544 Wip/libre reporting fixes (#4502)
* release 0.11.1 (#4279)

* Update dev version to 0.11.1

* remove + from version, make way for 0.11.1, upgrade webpack (#4277)

* Reporting compatibiilty fixes for Libre/Miaomiao

  * Allow sgv readings that are spaced 1 minute apart (report.js)
  * Calculate GVI using the actual time deltas of each individual sgv record (don't assume 5 minute gaps)
  * Calculate rapid rise deltas using time delta of the sgv record (don't assume 5 minute gaps)
  * Fix bug in GVIDelta calculation

* Bug fixes after testing

  * Each for loop was dropping the last 2 values of the array
      - firstly, due to using < instead of <= for the length comparator
      - secondly, the last value in the array is never checked, so it was not added

* Code clean ups

  * Commented out all unused references to RMS calculation
  * Removed unused totals variable
  * Formatted using project js-beautify rules

* Update npm-shrinkwrap.json
2019-04-28 22:23:47 +03:00
Sulka HaroandGitHub 3e4b45b2de Fix stale data alarms on latest iOS (#4542)
* Suspend TimeAgo reports for 15 seconds if the app has been sleeping. Add a BACK link to reports (due to iOS now not resetting springboard web apps, so it's impossible to go back to the main view)

* Move detection to another plugin call
2019-04-20 20:12:36 +03:00
Sulka HaroandGitHub ad338bfdb7 Protein and Fat logging support (#3830)
* Add protein and fat logging to CarePortal, simple sums to day to day reporting, grams in graphs

* Add fat and protein to swagger

* Fix aggregate report sometimes considering logged carbs, protein and fat as a string. Add editing of protein and fat to reports. Show protein and carbs on daily reports
2019-03-03 12:20:05 +02:00
Sulka HaroandGitHub 3acd7c8445 Fix auth button ui & update cache busting for App Cache (#4270)
* small doc fix to comments on Node versions

* Update README.md

* * Fixes authentication dialog UI on Mobile Safari
* Improves app cache busting, so after deploy the app is guaranteed to notice it has to reload content
* Small fix to Finnish language related to auth UI
2019-02-07 22:14:34 +02:00
PieterGitandGitHub 090b4dddb6 Reimplement Predictions support to Reports (#4254)
* reimplement https://github.com/nightscout/cgm-remote-monitor/pull/3179 (Predictions support to Reports)

* add predictions.js
2019-02-04 23:50:48 +01:00
PieterGit 04ec3ab92d make Saving profile translatable 2019-02-02 17:12:41 +01:00
dan 7022079769 Merge remote-tracking branch 'upstream/dev' into dev 2019-01-30 23:37:42 +00:00
PieterGit 2fded6035b Merge branch 'weektoweek-report' of https://github.com/jpcunningh/cgm-remote-monitor into 201812_needs_testing 2019-01-05 19:59:49 +01:00
Jeremy Cunningham a2a92480a3 Cleanup code for initializing weektoweek scale 2019-01-04 19:46:26 -06:00
Jeremy Cunningham 716fd76338 Make default scale y initialize correctly 2019-01-04 19:39:44 -06:00
Jeremy Cunningham 8f29632fb6 Make weektoweek use SCALE_Y system setting correctly 2019-01-04 18:29:13 -06:00
PieterGit 89ce188266 PR with several PR's that needs testing
Also did update some npm packages and resolved conflicts
2018-12-31 14:07:39 +01:00
Jeremy Cunningham 06d7e4eb50 Don't render week to week if not selected 2018-12-04 22:51:46 -06:00
Jeremy Cunningham 14fa9ef3d5 Color by day and week report specific size and scale 2018-12-04 22:02:00 -06:00
PieterGit 292ed122a3 update fontello
use  fontello-cli --config ./config.json install and move the files to the staic/glyphs directory
2018-11-21 22:16:48 +01:00
dan a0f0ef4095 Fix re-loading bug in profile editor and ensure changes made by the user aren't lost 2018-11-20 17:13:26 +00:00
PieterGit 986e2bc8be add contributor table and rerun doctoc 2018-11-16 21:19:06 +01:00
dan e930b1d0cf fix daylight saving bug in profile editor
where From time select lists are showing duplicate/missing entries
2018-10-28 13:14:05 +00:00
PieterGitandGitHub 0da19dc660 Merge pull request #3957 from komarserjio/fixed-treatment-edit-bug
Fixed edit/delete treatment bug (in reports)
2018-10-14 00:05:36 +02:00
Serhii Komar c9babffa1a Fixed edit/delete treatment bug (in reports) 2018-09-29 23:14:40 +02:00
Jason CalabreseandPieterGit 5829eab921 fix bold fonts in tooltips labels
cherry picking from https://github.com/nightscout/cgm-remote-monitor/pull/3746
2018-07-29 08:44:05 +02:00
PieterGit c9f020c0c3 make tooltip bolder and only show 3 significant digits for remaining insulin 2018-07-29 00:16:23 +02:00
PieterGit 0a9487a604 Merge branch 'more-clock-options' of https://github.com/unsoluble/cgm-remote-monitor into 201807_clock2 2018-07-19 23:31:32 +02:00
Sulka Haro 8aae73d84e Fixes #3679 2018-07-10 17:06:04 +03:00
PieterGitandGitHub 71c6bb44a8 Merge branch 'dev' into more-clock-options 2018-06-25 23:15:01 +02:00