Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ice cream 11.0.2! #10

Merged
merged 69 commits into from
Jul 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
9abcdd7
Update dev version to 0.11.1
sulkaharo Feb 7, 2019
f8410ab
remove + from version, make way for 0.11.1, upgrade webpack (#4277)
PieterGit Feb 7, 2019
42feacc
Improvement: causes client to say Ok Ok when the alarm test button is…
sulkaharo Feb 17, 2019
6532dac
Merge pull request #4371 from nightscout/wip/allow_speech_on_ios
sulkaharo Feb 17, 2019
3ee22d4
Added janrpn as maintainer of the Danish language (#4379)
janrpn Feb 21, 2019
83a8dea
Changed base image to node:10-alpine (#4409)
m-a-v Feb 24, 2019
762fec6
Wrong Korean translation update (#4407)
jungsomyeong Feb 24, 2019
219aea1
@diabetlum added in the list (#4328)
XP2025A Feb 24, 2019
9445996
Turkish language updates (#4271)
XP2025A Feb 24, 2019
546b0f6
Testing if recent changes have fixed builds in Linux-based Travis ins…
sulkaharo Mar 3, 2019
59e79b1
Make sure NPM is up to date
sulkaharo Mar 3, 2019
4f8f428
Merge pull request #4434 from nightscout/wip/travis_test
sulkaharo Mar 3, 2019
ad338bf
Protein and Fat logging support (#3830)
sulkaharo Mar 3, 2019
d437b56
Node and npm update (#4412)
PieterGit Mar 5, 2019
654be7b
Croatian translation (#4349)
OpossumGit Mar 5, 2019
83321fa
Remove profile toggle and always show Profile Editor link (#4448)
unsoluble Mar 5, 2019
55b11bc
Add support for rendering Triple Up and Triple Down Direction (#4458)
sulkaharo Mar 14, 2019
d7185bc
release candiate for 0.11.2 with Minimed EU Server and Guardian Conne…
PieterGit Mar 20, 2019
db5d8fe
cover request.secure in HTTPS redirect exemption (#4483)
thecubic Mar 25, 2019
d73958d
Fix CSP handling (#4449)
sulkaharo Apr 6, 2019
6223212
Enable id query with no date (#4481)
jpcunningh Apr 6, 2019
3e4b45b
Fix stale data alarms on latest iOS (#4542)
sulkaharo Apr 20, 2019
98d8eba
Wip/ios springboard app fixes (#4543)
sulkaharo Apr 20, 2019
bbcd3c5
Moved to braces module, which is maintained and doesn't have vulnerab…
sulkaharo Apr 23, 2019
9cf02e8
Wip/libre reporting fixes (#4502)
rob-andy Apr 28, 2019
3ea590d
Add display_units as a required variable (#4559)
unsoluble Apr 28, 2019
32b61b1
re-add out of range RMS (#4450)
mitchellhenke Apr 28, 2019
4efc799
Allow framing in Helmet, as many users have setups like monitoring tw…
sulkaharo Apr 28, 2019
2574f90
Fixed alexa doc link. (#4423)
tanja3981 Apr 28, 2019
9e090e0
uncomment the rest of rms
jasoncalabrese May 5, 2019
585882e
display '50+ U', when there's no reservoir value for an Eros pod
jasoncalabrese May 5, 2019
9d88a37
display Loop override in a new pill
jasoncalabrese May 7, 2019
1c7b480
css tweaks so the pills align better
jasoncalabrese May 7, 2019
7c2f67f
Merge pull request #4577 from jasoncalabrese/uncomment-rms
jasoncalabrese May 8, 2019
3c41724
another CSS tweak that allows the pills on the right side to wrap
jasoncalabrese May 8, 2019
1c4bc54
Merge pull request #4578 from jasoncalabrese/pump-status-manufacturer…
jasoncalabrese May 9, 2019
a4f9b52
update readme to include the override plugin and resole TODO
jasoncalabrese May 9, 2019
3ffc005
Merge pull request #4587 from jasoncalabrese/override-mode
jasoncalabrese May 9, 2019
99800c8
fix loop test to expect evBG in the pill value
jasoncalabrese May 10, 2019
b139151
Merge pull request #4601 from jasoncalabrese/fix-loop-test
jasoncalabrese May 10, 2019
2ac89d2
Add try/catch blocks to around plugin calls, which should in most cas…
sulkaharo May 19, 2019
0bac2b5
add triple-arrow svgs (#4640)
unsoluble May 24, 2019
5ac49cd
Fix BG data wrapping issue with Chrome (#4667)
sulkaharo May 30, 2019
6ed5ee0
feat: clock view code refactor (#4639)
sulkaharo Jun 20, 2019
5953613
move BG span style to css and include rawbg (#4670)
jasoncalabrese Jun 20, 2019
fa28b0c
Fix distribution report totals (#4691)
sulkaharo Jun 20, 2019
a6787b5
Clamp treatments & load less data (#4697)
sulkaharo Jun 20, 2019
8653d49
* Package reporting plugins separately into another bundle to reduce …
sulkaharo Jun 30, 2019
ca04cc2
Run code through a linter when in dev mode
sulkaharo Jul 1, 2019
76d103f
Remove a couple unnecessary logging lines
sulkaharo Jul 1, 2019
8959287
Calculate a has for treatments for deduplication (type + timestamp) (…
sulkaharo Jul 14, 2019
dfe9d1b
Fix tests
sulkaharo Jul 14, 2019
e9576df
Add documentation
sulkaharo Jul 15, 2019
f9d59c4
Packaging / development improvements (#4710)
sulkaharo Jul 15, 2019
b04476e
Normalize Treatment, Entry and Device Status object dates to be all i…
sulkaharo Jul 17, 2019
8f25a6e
Fix all issues from ESLint (#4730)
sulkaharo Jul 17, 2019
b933da2
* Merge branch 'master' into dev
sulkaharo Jul 17, 2019
9380557
Add eslint ignores to a false positive
sulkaharo Jul 19, 2019
851b08f
Fix issues found with linting in the server code & update module vers…
sulkaharo Jul 19, 2019
ad19131
* Bump version to 0.12.0 for release
sulkaharo Jul 19, 2019
b627d31
Merge pull request #4733 from nightscout/dev
sulkaharo Jul 20, 2019
f874183
BUGFIX: Fix the clock to load the javascript bundle from the right place
sulkaharo Jul 20, 2019
41ff79a
Merge branch 'dev'
sulkaharo Jul 20, 2019
629e375
Bump version number to 0.12.1
sulkaharo Jul 20, 2019
26f698a
Bump version to 0.12.1
sulkaharo Jul 20, 2019
0dd701e
Add small close button to the clock views
sulkaharo Jul 20, 2019
4626156
Add close buttons to all views accessible from the main menu, to prev…
sulkaharo Jul 20, 2019
7d7e577
Bump version to 0.12.2
sulkaharo Jul 20, 2019
5fea10a
Merge pull request #4748 from nightscout/dev
sulkaharo Jul 20, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

14 changes: 14 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
"plugins": [ ],
"extends": [
"eslint:recommended"
],
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jquery": true
}
};
16 changes: 16 additions & 0 deletions .jsbeautifyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"indent_size": 2
, "indent_char": " "
, "comma_first": true
, "keep-array-indentation": true
, "space_after_named_function": true
, "space_after_anon_function": true
, "end_with_newline": true
, "brace_style": "collapse,preserve-inline"
, "space_in_brace": true
, "space-in-paren": false
, "break-chained-methods": false
, "max-preserve-newlines": 2
, "space-after-anon-function": false
, "indent-empty-lines": false
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.x
10.16.0
54 changes: 31 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
language: node_js
node_js:
- "10"
- "8"
os:
- osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
# https://github.com/Homebrew/homebrew-core/issues/26358
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink python; fi
# "brew install" can succeed but return 1 if it has "caveats".
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mongodb || true; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start mongodb; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install docker || true; fi
sudo: required
dist: xenial

node_js-steps: &node_js-steps
language: node_js
before_install:
- if [[ `npm --version` != "6.4.1" ]]; then npm install -g npm@latest; npm --version; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
# https://github.com/Homebrew/homebrew-core/issues/26358
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink python; fi
# "brew install" can succeed but return 1 if it has "caveats".
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mongodb || true; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start mongodb; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install docker || true; fi
script: make travis
after_success:
- nvm version
- if [[ ! -z "$DOCKER_USER" ]]; then docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} && git checkout -- . && git clean -fd . && make docker_release; fi
after_script: make report
services:
- mongodb
- docker
matrix:
fast_finish: true
services:
- mongodb
- docker
script: make travis
after_success:
- nvm version
- if [[ ! -z "$DOCKER_USER" ]]; then docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} && git checkout -- . && git clean -fd . && make docker_release; fi
after_script: make report
allow_failures:
node_js: "node"
include:
- node_js: "8"
<<: *node_js-steps
- node_js: "10"
<<: *node_js-steps
- node_js: "node" # Latest Node is not supported, and recommend, but we'll test it to know incompatibility issues
<<: *node_js-steps
56 changes: 14 additions & 42 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
**Table of Contents**

- [Contributing to cgm-remote-monitor](#contributing-to-cgm-remote-monitor)
- [Design](#design)
- [Design & new features](#design--new-features)
- [Develop on `dev`](#develop-on-dev)
- [Style Guide](#style-guide)
- [Create a prototype](#create-a-prototype)
- [Submit a pull request](#submit-a-pull-request)
- [Bug fixing](#bug-fixing)
- [Comments and issues](#comments-and-issues)
- [Co-ordination](#co-ordination)
- [Other Dev Tips](#other-dev-tips)
Expand Down Expand Up @@ -53,6 +54,10 @@ We develop on the `dev` branch. All new pull requests should be targeted to `dev

You can get the dev branch checked out using `git checkout dev`.

Once checked out, install the dependencies using `npm install`, then copy the included `my.env.template`file to `my.env` and edit the file to include your settings (like the Mongo URL). Leave the `NODE_ENV=development` line intact. Once set, run the site using `npm run dev`. This will start Nigthscout in the development mode, with different code packaging rules and automatic restarting of the server using nodemon, when you save changed files on disk. The client also hot-reloads new code in, but it's recommended to reload the the website after changes due to the way the plugin sandbox works.

If you want to additionaly test the site in production mode, create a file called `my.prod.env` that's a copy of the dev file but with `NODE_ENV=production` and start the site using `npm run prod`.

## Style Guide

Some simple rules that will make it easier to maintain our codebase:
Expand All @@ -76,15 +81,7 @@ If in doubt, format your code with `js-beautify --indent-size 2 --comma-first -

## Create a prototype

<<<<<<< HEAD
Fork cgm-remote-monitor and create a branch.
You can create a branch using `git checkout -b wip/add-my-widget`.
This creates a new branch called `wip/add-my-widget`. The `wip`
stands for work in progress and is a common prefix so that we know
what to expect when reviewing many branches.
=======
Fork cgm-remote-monitor and create a branch. You can create a branch using `git checkout -b wip/add-my-widget`. This creates a new branch called `wip/add-my-widget`. The `wip` stands for work in progress and is a common prefix so that when know what to expect when reviewing many branches.
>>>>>>> master

## Submit a pull request

Expand All @@ -95,8 +92,6 @@ This can be done by checking your code `git commit -avm 'my improvements are her
Now that the commits are available on github, you can click on the compare buttons on your fork to create a pull request. Make sure to select [Nightscout's `dev` branch](https://github.com/nightscout/cgm-remote-monitor/tree/dev).

We assume all new Pull Requests are at least smoke tested by the author and all code in the PR actually works.
<<<<<<< HEAD

Please include a description of what the features do and rationalize why the changes are needed.

If you add any new NPM module dependencies, you have to rationalize why there are needed - we prefer pull requests that reduce dependencies, not add them.
Expand All @@ -106,26 +101,13 @@ When adding new features that add confugration options, please ensure the `READM
## Bug fixing

If you've fixed a bug, please consider adding a unit test to the `/tests` folder that reproduces the original bug without the change.

Try to identify the root cause of the issue and fix the issue. Pull requests that simply add null checks to hide issues are unlikely to be accepted.

This can be done by committing your code `git commit -avm 'my
improvements are here'`, and pushing it to the branch you created on your own
fork. This will probably look something like
`git push -u origin wip/add-my-widget`.
=======

Please include a description of what the features do and rationalize why the changes are needed.

If you add any new NPM module dependencies, you have to rationalize why there are needed - we prefer pull requests that reduce dependencies, not add them.

When adding new features that add confugration options, please ensure the `README` document is amended with information on the new configuration.

## Bug fixing

If you've fixed a bug, please consider adding a unit test to the `/tests` folder that reproduces the original bug without the change.

Try to identify the root cause of the issue and fix the issue. Pull requests that simply add null checks to hide issues are unlikely to be accepted.
>>>>>>> master

Please include instructions how to test the changes.

Expand All @@ -137,25 +119,11 @@ We encourage liberal use of the comments, including images where appropriate.

Most cgm-remote-monitor hackers use github's ticketing system, along with Facebook cgm-in-the-cloud, and gitter.

<<<<<<< HEAD
We use [git-flow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow), with `master` as our production, stable branch, and
`dev` is used to queue changes for upcoming releases. Everything else is
done on branches, hopefully with names that indicate what to expect.

Once `dev` has been reviewed and people feel it's time to release, we
follow the git-flow release process, which creates a new tag and bumps
the version correctly. See [sem-ver](https://semver.org/) for versioning strategy.

Every commit is tested by Travis CI. We encourage adding tests to
validate your design. We encourage discussing your use cases to help
everyone get a better understanding of your design.
=======
We use git-flow, with `master` as our production, stable branch, and `dev` is used to queue up for upcoming releases. Everything else is done on branches, hopefully with names that indicate what to expect.

Once `dev` has been reviewed and people feel it's time to release, we follow the git-flow release process, which creates a new tag and bumps the version correctly. See sem-ver for versioning strategy.

Every commit is tested by travis. We encourage adding tests to validate your design. We encourage discussing your use cases to help everyone get a better understanding of your design.
>>>>>>> master

## Other Dev Tips

Expand All @@ -177,8 +145,10 @@ Also if you can't code, it's possible to contribute by improving the documentati
[@apanasef]: https://github.com/apanasef
[@bewest]: https://github.com/bewest
[@danamlewis]: https://github.com/danamlewis
[@diabetlum]: https://github.com/diabetlum
[@herzogmedia]: https://github.com/herzogmedia
[@jamieowendexcom ]: https://github.com/jamieowendexcom
[@janrpn]: https://github.com/janrpn
[@jasoncalabrese]: https://github.com/jasoncalabrese
[@jizhongwen]: https://github.com/jizhongwen
[@jpcunningh]: https://github.com/jpcunningh
Expand All @@ -197,6 +167,7 @@ Also if you can't code, it's possible to contribute by improving the documentati
[@tynbendad]: https://github.com/tynbendad
[@unsoluble]: https://github.com/unsoluble
[@viderehh]: https://github.com/viderehh
[@OpossumGit]: https://github.com/OpossumGit

| Contribution area | List of contributors |
| ------------------------------------- | ---------------------------------- |
Expand Down Expand Up @@ -255,14 +226,14 @@ Languages with less than 90% coverage will be removed in a future Nightscout ver
| Български (`bg`) |Please volunteer| OK |
| Čeština (`cs`) |Please volunteer|OK |
| Deutsch (`de`) |[@viderehh] [@herzogmedia] |OK |
| Dansk (`dk`) |Please volunteer|OK |
| Dansk (`dk`) | [@janrpn] |OK |
| Ελληνικά `(el`)|Please volunteer|Needs attention: 68.5%|
| English (`en`)|Please volunteer|OK|
| Español (`es`) |Please volunteer|OK|
| Suomi (`fi`)|[@sulkaharo] |OK|
| Français (`fr`)|Please volunteer|OK|
| עברית (`he`)|Please volunteer|OK|
| Hrvatski (`hr`)|Please volunteer|Needs attention: 47.8%|
| Hrvatski (`hr`)|[@OpossumGit]|Needs attention: 47.8% - committed 100% to dev|
| Italiano (`it`)|Please volunteer|OK|
| 日本語 (`ja`)|[@LuminaryXion]|Working on this|
| 한국어 (`ko`)|Please volunteer|Needs attention: 80.6%|
Expand All @@ -274,6 +245,7 @@ Languages with less than 90% coverage will be removed in a future Nightscout ver
| Русский (`ru`)|[@apanasef]|OK|
| Slovenčina (`sk`)|Please volunteer|OK|
| Svenska (`sv`)|Please volunteer|OK|
| Türkçe (`tr`)|[@diabetlum]|OK|
| 中文(简体) (`zh_cn`) | [@jizhongwen]|OK|
| 中文(繁體) (`zh_tw`) | [@jizhongwen]|Needs attention: 25.0%
| 日本語 (`ja_jp`) | [@LuminaryXion]|
Expand All @@ -284,5 +256,5 @@ Languages with less than 90% coverage will be removed in a future Nightscout ver
| ------------------------------------- | -------------------- |
| All active developers: | [@jasoncalabrese] [@jpcunningh] [@jweismann] [@komarserjio] [@mdomox] [@MilosKozak] [@PieterGit] [@rickfriele] [@sulkaharo]
| All active testers/documentors: | [@danamlewis] [@jamieowendexcom] [@mcdafydd] [@oteroos] [@rarneson] [@tynbendad] [@unsoluble]
| All active translators: | [@apanasef] [@jizhongwen] [@viderehh] [@herzogmedia] [@LuminaryXion]
| All active translators: | [@apanasef] [@jizhongwen] [@viderehh] [@herzogmedia] [@LuminaryXion] [@OpossumGit]

10 changes: 5 additions & 5 deletions Dockerfile.example
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM node:8.9.1
FROM node:10-alpine

MAINTAINER Nightscout Contributors

RUN apt-get update && \
apt-get -y dist-upgrade

RUN mkdir -p /opt/app
ADD . /opt/app
WORKDIR /opt/app
RUN chown -R node:node /opt/app
USER node

RUN npm install && \
npm run postinstall && \
npm run env
npm run env && \
npm audit fix

EXPOSE 1337

Expand Down
Loading