11 Commits
Author SHA1 Message Date
Sulka Haro bc188d9163 * Disabling tests that interfere with other tests
* Fix view include syntax
* Change Slovenian name to correct language
2021-02-06 19:11:36 +02:00
Sulka HaroandGitHub d7e011d8f5 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
2021-02-02 19:53:30 +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 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
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
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 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 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 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
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
Sulka Haro fc0bd46946 Move all html files to views folder, update to use the rendered cache buster 2017-09-11 19:49:05 +03:00