Commit Graph
57 Commits
Author SHA1 Message Date
Sulka HaroandGitHub 7c0a00537b Wip/clock hide state management (#4944)
* Add tap-to-show close buttons

* oops, small typos

* remove unused class

* Add state management to the clock close button hiding
2019-09-15 19:01:29 +03:00
PieterGitandGitHub d0e14de83d Fix clock if authentication is enabled (#4914)
* Fix clock if authentication is enabled
Add .npmignore file

* Add time to clock view back

* Formatting

* Select browser language for authentication dialog
Make authentication dialog bigger to suit for other languages.

* Update hashauth.js

* Update hashauth.js

* Update hashauth.js

* Update hashauth.js

* Select language from localStorage

And get suitable language for the very first auth dialog (before the settings were read from server or user can select language in the configuration)

* remove extra `/ ` from clockview, otherwise bundle will not load and search for domain `bundle`

fixes https://github.com/nightscout/cgm-remote-monitor/pull/4860#pullrequestreview-277209223

* remove .npmignore for now.

should be merged in seperated PR

* small fixes
2019-08-22 20:50:51 +02:00
ireneusz-ptakandGitHub 4638db55cc staleTime div is missing in the clockview 2019-07-30 17:07:34 +02:00
Sulka HaroandGitHub cdc7669abb Changed logic for the Clock Close button: 1) The show now defaults to false. When enabled, the close X always appears, 2) The views also accept this parameter from a GET parameter, which is set when navigating to the view from the menu, so users can bookmark the page without the parameter (#4824) 2019-07-29 16:30:16 +03:00
Sulka Haro 6499480c27 Merge branch 'dev' into plugin_pref_ui 2019-07-26 12:49:59 +03:00
Sulka Haro 2b0b19d6df Adds a new feature for plugins, where plugin extended settings can be changed in the client. Needs expanding on later - currently only supports booleans as checkboxes. 2019-07-25 21:33:42 +03:00
Sulka Haro 7503512bbe Merge branch 'dev' into less_obtrusive_clock_close 2019-07-24 21:33:34 +03:00
John WestonandPieterGit a39b245baa fix: Temp basal input fix for browsers that don't follow standards (Samsung phones, Kindle Fire) 2019-07-24 19:37:53 +02:00
Sulka Haro 3373c27bef * Close button color is much dimmer and changes color appropriately in the color view
* HIDE_CLOCK_CLOSEBUTTON setting to hide the button altogether (set to TRUE or ON to hide buttons altogether)
* Fix CSS for toolbar positioning in the main view
* Fix documentation on the clock URLs and add mention of the setting
2019-07-24 10:57:36 +03:00
Sulka Haro 561f42af91 Fix main view button alignment 2019-07-21 11:58:24 +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
Sulka Haro 0dd701e7e4 Add small close button to the clock views 2019-07-20 14:29:49 +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 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 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
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
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 HaroandPieterGit d73958de1b Fix CSP handling (#4449)
* Change incompatible module and fix a memory leak in the process

* Fix fonts, allow websocket

* Oops fix a brainfart with using the hostname

* Don't inlude null hostname

* Update the shrinkwrap

* Instantiate new cache if new instance of profile code is created. Calculate IOB with three digit precision to keep tests happy (and this is roughly the precision we're operating at anyway).

* - implement @jweismann suggestions https://github.com/nightscout/cgm-remote-monitor/pull/4449#issuecomment-469868508
- add frameAncestors, baseUri and formAction protection

* update README and run doctoc

* fix reportOnly

* add objectSrc

* Use modern CSS loading

* Change CSS to use the "official" async loading across the board (which hopefully plays nicer with CSP)

* first release candiate for 0.11.2 with Minimed EU Server and Guardian Connect integration

- integrates https://github.com/mddub/minimed-connect-to-nightscout/pull/11 into Nightscout

* bump node 10 LTS version

* increase logging, fix /swagger.yaml

* fix typo

* set version to rc2, update mongodb to 3.2.2

* add SECURE_CSP_REPORT_ONLY (default false).

* npm update and revert to requiring Node versions without security issues.
2019-04-06 17:02:05 +02:00
John WestonandPieterGit 83321faeaa Remove profile toggle and always show Profile Editor link (#4448)
* Remove Profile Editor toggle

`profile` isn't an optional plugin anymore; doesn't need this display toggle. (Plus it was erroneously toggling off in the absence of the `basal` plugin — see #4442.)

* Remove profilecontrol class
2019-03-05 22:02:32 +01: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
PieterGitandGitHub 2260fb4027 Merge pull request #4162 from unsoluble/bgclock-24h-fix
bgclock 24h fix
2019-02-02 22:34:27 +01: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
John Weston 82c76789dc Pad 24h hours with zero 2018-12-30 09:15:21 -08:00
John Weston 5acf173378 Update bgclock.html
Fix for clock showing "24:xx" in 24-hour mode.
2018-12-29 10:04:12 -08:00
PieterGitandSulka Haro 1769f2d837 speech and Warning, Pump Battery Low Alarm issue during Clock testing... (#3709)
* Fix Warning, Pump Battery Low Alarm cannot be disabled

* fix Clock Views language.js

* see if this will solve the problems with the speech plugin detection at the client

* fix dutch spelling

* translate Clock Views:

* disable again

* Update language.js
2018-07-26 11:02:46 +03: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
John WestonandGitHub d8ce6234e9 Add translate tag to "Clock Views: 2018-07-18 18:52:13 -07: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
Henrik Sjöstrand d1667481d9 Loopalyzer works 2018-05-29 23:09:37 +02:00
John WestonandSulka Haro 6ec78dd1ca Fix clock scaling (#3355)
* Update simple clock scaling

Brings clock.html in line with clock-color.html, in terms of proper viewport scaling. Also adds "minutes ago" text on stale data, which I think is appropriate even in this stripped-down view.

* Fix bgclock scaling

Bring bgclock.html in line with the other clock views, in terms of proper viewport scaling.

* fix typo
2018-05-18 09:19:20 +03:00
David BolandandPieterGit dbc7fe7d05 Change Reporting screen default to "newest on top"
Many email GUI's place newest on top, less scrolling, adjusting my nightscout to do that too, since I have to keep clicking it anyways! -dboland
2018-02-18 13:53:08 +01:00
David BolandandPieterGit 751b28c00e Fix "dispalyed" typo
Fix typo for hover tip for "Raw BG" display in the settings drawer.
2018-02-18 13:49:37 +01:00
John Weston 7cbc60523f Add clock view structure to nav 2018-02-11 18:23:20 -08:00
John WestonandSulka Haro ab3289f6d3 Add "Check for Updates" link (#3206)
Link to http://nightscout.github.io/pages/update-fork/ added to the
main info panel.
2018-01-02 22:53:14 +02:00
John Weston 526be8cd8c Links for both Clock Views 2017-12-31 16:17:55 -08:00
Sulka Haro 5692d88bf6 24 hour clock support for bgclock.html 2017-12-01 15:29:35 +02:00
Sulka Haro 26dd8584ff * Update Finnish localization
* Change SMB visualization to be more friendly
* Add BG Clock to navigation
* Updated release version
2017-12-01 15:08:27 +02:00
Daniel HarrelsonandSulka Haro 6dc5b55d37 Update bgclock.html (#3039)
* Update index.html

* Update index.html

* Update index.html

* Update index.html

Remove alarms.

* Update index.html

* Update index.html

Removed alarms:

Line 669 & 670
            <audio src="audio/alarm.mp3" preload="auto" loop="true" class="alarm mp3" type="audio/mp3"></audio>
	    <audio src="audio/alarm2.mp3" preload="auto" loop="true" class="urgent alarm2 mp3" type="audio/mp3"></audio>

* Add Trend Arrow

Add Trend Arrow to glucose value

* Update index.html
2017-11-28 18:40:29 +02:00
Sulka HaroandGitHub 9e0cc8bffc Merge pull request #2926 from nightscout/rendering
Make SMBs and predictions fit better
2017-11-01 22:00:08 +02:00
Scott 6607729904 Merge remote-tracking branch 'origin/dev' into rendering
Conflicts:
	npm-shrinkwrap.json
2017-10-31 15:40:17 -07:00
Alim HassamandAlim hassam 3867becfcb Add Total daily pasal to profile editor.
Small improvoment to profile editor while geting familiar
about the code. Added a simple estimated total daily basal field.
2017-10-25 20:13:52 -04:00
Scott e60ff3aa9d change default back to 3HR 2017-10-16 18:06:54 -07:00
Scott 6c86a6d404 replace 3HR with 2HR and (default) 4HR views 2017-10-16 18:01:11 -07:00
MilosKozak 257371f43f add fat,protein,energy to food editor 2017-10-16 21:25:08 +02:00
John Weston 4e1837d21c Remove pattern regex from basal change field
Having the regex require integers means that only the numeric keypad
will pop on iOS. This prevents the entry of negative values, which is
pretty critical for temp basals.
2017-10-09 11:05:35 -07:00