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

0.8 beta2 #851

Closed
wants to merge 899 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
899 commits
Select commit Hold shift + click to select a range
65d0e30
create a new profile when building a new sandbox
jasoncalabrese Jul 26, 2015
0473b11
Merge commit '65d0e3029223567a4b5a0ccdc9f426088c00cc53' into wip/cagefix
sulkaharo Jul 26, 2015
60ec386
enablealerts -> enableAlerts
sulkaharo Jul 26, 2015
8f49e33
Remove debug logging line
sulkaharo Jul 26, 2015
5b15f4c
Documentation fix
sulkaharo Jul 26, 2015
3a1103c
Merge pull request #744 from sulkaharo/wip/cagefix
jasoncalabrese Jul 26, 2015
65d646a
Merge pull request #743 from nightscout/wip/valuebytime-fix
jasoncalabrese Jul 26, 2015
fb12cd5
Merge branch 'dev' into wip/announce
jasoncalabrese Jul 26, 2015
d5d2b72
fix env.hasExtendedSetting to work with the weird CUSTOMCONNSTR_ azur…
jasoncalabrese Jul 26, 2015
eac4ac2
refactoring to fix a couple codacy issues
jasoncalabrese Jul 26, 2015
4072e7e
Merge pull request #746 from nightscout/wip/pushnotify-issues
jasoncalabrese Jul 26, 2015
545d4e5
a little refactoring of buildConfirmText to lower complexity
jasoncalabrese Jul 26, 2015
d3932ca
clean up treatments.create, extend tests to verify it's working
jasoncalabrese Jul 26, 2015
2930520
Merge pull request #747 from nightscout/wip/treatment-issues
jasoncalabrese Jul 26, 2015
376f3f5
don't replicate bad date format for tests
jasoncalabrese Jul 27, 2015
0927ab4
Merge pull request #750 from nightscout/wip/less-baddates
jasoncalabrese Jul 27, 2015
852d105
Updating Heroku app.json
someoneAnyone Jul 27, 2015
bc45a8f
removed generator
someoneAnyone Jul 27, 2015
e0dc574
fix indents
jasoncalabrese Jul 27, 2015
f4e24c2
Merge pull request #751 from nightscout/wip/add-options-app-json
jasoncalabrese Jul 27, 2015
43781ea
Merge branch 'dev' into wip/stale-switch
jasoncalabrese Jul 27, 2015
c8983a9
better visibility change detection
jasoncalabrese Jul 27, 2015
ea74506
merged dev into wip/announce and fixed conflicts
jasoncalabrese Jul 27, 2015
da38e08
fix announcement clearing
jasoncalabrese Jul 27, 2015
5f476d6
add 30m forecast to the foucusRangeMS
jasoncalabrese Jul 27, 2015
f83b310
fix customTitle; some renaming; try harder not to show time ago after…
jasoncalabrese Jul 27, 2015
d7471a5
Fixes === comparison between a string and a number
sulkaharo Jul 27, 2015
2e4f640
Parse extended settings that represent a number to a number
sulkaharo Jul 27, 2015
2e2c3b1
Structural changes to make Codacy happier
sulkaharo Jul 27, 2015
2ac0e5e
Merge pull request #752 from sulkaharo/wip/cagefix
jasoncalabrese Jul 27, 2015
8522920
Let's see if this wakes up Codacy
sulkaharo Jul 27, 2015
ae5cbc8
Merge pull request #754 from sulkaharo/wip/deltacodacy
sulkaharo Jul 27, 2015
183b6f3
refactoring and fix to clear timeAgo alarm faster
jasoncalabrese Jul 28, 2015
0dc231c
refactoring
jasoncalabrese Jul 28, 2015
93240c5
Merge branch 'dev' into wip/stale-switch
jasoncalabrese Jul 28, 2015
9902ea6
get rid of all the visibilityChangedAt code
jasoncalabrese Jul 28, 2015
34957ea
more clean up before merging
jasoncalabrese Jul 28, 2015
d80dd43
<br/>
jasoncalabrese Jul 28, 2015
d425b2d
Merge pull request #741 from nightscout/wip/announce
jasoncalabrese Jul 28, 2015
0b6e361
merged dev into wip/client-refactor and ported over changes from befo…
jasoncalabrese Jul 29, 2015
519e9e0
replace the all the scattered time contants with a little module
jasoncalabrese Jul 29, 2015
ef86c7c
;'s
jasoncalabrese Jul 29, 2015
31ce8cb
lot of refactoring to have common settings for client and server
jasoncalabrese Jul 30, 2015
4e383e4
remove unused
jasoncalabrese Jul 30, 2015
0fe624f
Update language.js
lifeexcellence Jul 30, 2015
5bd03f6
Swedish translation update
sebastianlorant Jul 30, 2015
e43d886
Merge pull request #757 from lifeexcellence/dev
jasoncalabrese Jul 31, 2015
9b30436
move most of the focus/context data rendering to a new module
jasoncalabrese Jul 31, 2015
d7eb240
plugins.init() now expects settings
jasoncalabrese Jul 31, 2015
26f35f3
remove unused
jasoncalabrese Jul 31, 2015
7976c80
introduce a chart module, still lot to move over and then lots of ref…
jasoncalabrese Jul 31, 2015
1a2bda8
Update language.js
lifeexcellence Jul 31, 2015
8821255
Update language.js
lifeexcellence Jul 31, 2015
6278f38
Bulgarian language - test version - 1
xpucuto Jul 31, 2015
f314516
Merge pull request #759 from xpucuto/patch-2
jasoncalabrese Aug 1, 2015
c8bc4a6
Update language.js
lifeexcellence Aug 1, 2015
7b5f35c
move a bunch more over to chart.js
jasoncalabrese Aug 1, 2015
a7236c5
clean up
jasoncalabrese Aug 1, 2015
07b694f
bug fixing and refactoring
jasoncalabrese Aug 1, 2015
1a69692
Merge pull request #758 from lifeexcellence/dev
jasoncalabrese Aug 1, 2015
92b6555
Merge branch 'dev' into wip/client-refactor
jasoncalabrese Aug 1, 2015
ecf3061
Chrome on windows is producing error in language 'en'
MilosKozak Aug 1, 2015
cf0720a
fixed a few little typos in language.js, how did the build pass for t…
jasoncalabrese Aug 1, 2015
ec62d63
Merge pull request #762 from nightscout/wip/lang-typos
jasoncalabrese Aug 1, 2015
71b9ef1
Merge branch 'dev' into wip/client-refactor
jasoncalabrese Aug 1, 2015
943bba3
Merge pull request #761 from MilosKozak/patch-1
jasoncalabrese Aug 1, 2015
b13d86a
Merge branch 'dev' into wip/client-refactor
jasoncalabrese Aug 1, 2015
caa7262
;
jasoncalabrese Aug 1, 2015
d7648fe
Bulgarian language - full
xpucuto Aug 1, 2015
1f579b2
fix quotes
jasoncalabrese Aug 2, 2015
db81a4a
mock d3.timer so we can exercise some more client code
jasoncalabrese Aug 2, 2015
5bae02d
try running client test in mmol mode
jasoncalabrese Aug 2, 2015
0aa8dd4
a little more coverage
jasoncalabrese Aug 2, 2015
0e3e276
support legacy pushover group key to maintain compatability
jasoncalabrese Aug 2, 2015
4bdb289
added some logging to pushover startup
jasoncalabrese Aug 3, 2015
702728d
some pushover refactoring
jasoncalabrese Aug 3, 2015
f99f364
fix formatting
jasoncalabrese Aug 3, 2015
1330502
more autoformatting fixes
jasoncalabrese Aug 3, 2015
c22f6d3
added browser-settings tests
jasoncalabrese Aug 3, 2015
8731d70
some tweeks to get a little more coverage
jasoncalabrese Aug 3, 2015
7d678c6
Bulgarian language - full - edit 03.08.2015
xpucuto Aug 3, 2015
0096a05
Merge pull request #767 from xpucuto/patch-1
jasoncalabrese Aug 3, 2015
ec68db7
more fixes for the azure CUSTOMCONNSTR_ vars
jasoncalabrese Aug 3, 2015
a33509c
Merge pull request #765 from nightscout/wip/pushover-group-key
jasoncalabrese Aug 3, 2015
75cf962
merged dev to wip/client-refactor and fixed env.test.js conflict
jasoncalabrese Aug 3, 2015
2053db3
clean up, don't seem to need the benv.require's
jasoncalabrese Aug 3, 2015
f9f69aa
pull the rest of the static js into the bundle and get some tests setup
jasoncalabrese Aug 4, 2015
0fa9aca
fix bug with with canceling pushover alarms
jasoncalabrese Aug 4, 2015
4d40afa
lots of careportal refactoring and testing
jasoncalabrese Aug 4, 2015
eeb5b42
careportal refactoring and testing - missing files
jasoncalabrese Aug 4, 2015
e802b34
fix bug with with canceling pushover alarms
jasoncalabrese Aug 4, 2015
5d81de6
return an empty array from mergeDataUpdate instead of null
jasoncalabrese Aug 4, 2015
205e6bc
clean up
jasoncalabrese Aug 4, 2015
91d0129
Merge pull request #770 from nightscout/wip/pushover-cancel-fix
jasoncalabrese Aug 4, 2015
c1c5dc6
moved some sgv only css to a new file that can be ignore for validati…
jasoncalabrese Aug 4, 2015
f1a766f
don't check time ago during refreshChart
jasoncalabrese Aug 4, 2015
a63d41c
fix to get custom thresholds from server; some clean up
jasoncalabrese Aug 4, 2015
d9e3af9
don't need to expose as much in the root Nightscout bundle object now
jasoncalabrese Aug 4, 2015
ae69dda
fix settings test
jasoncalabrese Aug 4, 2015
2d23444
Merge pull request #2 from nightscout/dev
divishinating Aug 4, 2015
78ad12a
Update language.js
divishinating Aug 4, 2015
9cc70dd
Merge pull request #772 from divishinating/wip/french-translation
jasoncalabrese Aug 4, 2015
c70a9fc
fixed window.innerWidth bug that caused lots more treatments to be dr…
jasoncalabrese Aug 5, 2015
2c8e42c
Merge branch 'dev' into wip/client-refactor
jasoncalabrese Aug 5, 2015
8a1251d
language typos, don't know why travis didn't catch them in the PR
jasoncalabrese Aug 5, 2015
95b3f27
Merge pull request #773 from nightscout/wip/fix-language-again
jasoncalabrese Aug 5, 2015
6ab5260
Merge branch 'dev' into wip/client-refactor
jasoncalabrese Aug 5, 2015
ae5e665
very basic test for language translations
jasoncalabrese Aug 5, 2015
dac4ec4
Merge pull request #774 from nightscout/wip/language-test
jasoncalabrese Aug 5, 2015
eb3a376
Merge branch 'dev' into wip/client-refactor
jasoncalabrese Aug 5, 2015
70f0ffb
drawTreatment refactoring
jasoncalabrese Aug 5, 2015
cd07d44
;...
jasoncalabrese Aug 5, 2015
c7b3d8e
careportal fixes; convert values to Number on the server
jasoncalabrese Aug 6, 2015
1229a69
gather extended setting last, after ENABLE has been updated
jasoncalabrese Aug 6, 2015
1917b9b
Croatian translation update
shpeksy Aug 7, 2015
6a93394
Merge pull request #727 from nightscout/wip/client-refactor
jasoncalabrese Aug 8, 2015
a180ed5
Use the bridge directly with @bewest
jasoncalabrese Aug 9, 2015
e382260
removed debug
jasoncalabrese Aug 9, 2015
cba4400
update readme for the bridge plugin and fix interval
jasoncalabrese Aug 9, 2015
4a0e58e
prevent possible case where data from share comes in before listeners…
jasoncalabrese Aug 9, 2015
5c38122
need to set setInterval or only get data 1 time; move most code to br…
jasoncalabrese Aug 9, 2015
a4d78d0
patch to make more reusable/testable
bewest Aug 9, 2015
dd7158e
fix bug
bewest Aug 9, 2015
c79720a
isolate options for testing
bewest Aug 9, 2015
f0cfb4c
fix syntax error
bewest Aug 9, 2015
ad3c0a5
Make variable name match ENV variable name
bewest Aug 9, 2015
4322ca1
test the bridge wrapper
jasoncalabrese Aug 10, 2015
ed6b60d
adjust the xScale.domain so we don't need the placeholder point kludg…
jasoncalabrese Aug 10, 2015
58ba103
remove unused
jasoncalabrese Aug 10, 2015
aa9d230
Merge branch 'patch-1' of https://github.com/shpeksy/cgm-remote-monit…
jasoncalabrese Aug 10, 2015
a1c96a2
added missing '
jasoncalabrese Aug 10, 2015
4850716
Merge branch 'shpeksy-patch-1' into dev
jasoncalabrese Aug 10, 2015
d98f0d2
fixed some bugs with stale data and retro mode
jasoncalabrese Aug 11, 2015
f287a05
hide the trend direction when there's no current data
jasoncalabrese Aug 11, 2015
4aca880
Merge pull request #777 from nightscout/wip/bridge
jasoncalabrese Aug 11, 2015
49d6d9f
profile editor, hash authentication
MilosKozak Aug 11, 2015
f42e110
cleanup some issues found by codacy
jasoncalabrese Aug 11, 2015
ccd4abb
fix passing params on treatment api
MilosKozak Aug 11, 2015
6db621a
codacy
MilosKozak Aug 11, 2015
a46f969
codacy 2
MilosKozak Aug 11, 2015
88fe759
Merge pull request #779 from nightscout/wip/un-kludge
jasoncalabrese Aug 12, 2015
34ae766
Merge pull request #783 from MilosKozak/patch-1
jasoncalabrese Aug 12, 2015
abee465
show an empty chart instead of blowing up when theres no data
jasoncalabrese Aug 12, 2015
30a6ce4
remove unused var, and rename function to be more clear
jasoncalabrese Aug 12, 2015
52aa083
remove unused script
MilosKozak Aug 12, 2015
b536ae4
Merge pull request #784 from nightscout/wip/empty-display
jasoncalabrese Aug 12, 2015
c1511fe
0.8.0-dev version bump
jasoncalabrese Aug 13, 2015
e7f739e
Merge pull request #785 from nightscout/wip/0.8-bump
jasoncalabrese Aug 13, 2015
acbba3b
minor fix for possible error when treatment data is missing
jasoncalabrese Aug 14, 2015
11500e2
Merge branch 'newprofileeditor' of https://github.com/MilosKozak/cgm-…
jasoncalabrese Aug 14, 2015
8cb893d
make sure we can get #chartContainer before trying to update the chart
jasoncalabrese Aug 14, 2015
4978830
added most basic test for profileeditor
jasoncalabrese Aug 14, 2015
ebeecda
mongo api 1.4 -> 2.0 change
MilosKozak Aug 14, 2015
c22f3b6
Merge pull request #788 from MilosKozak/mongoapipatch
jasoncalabrese Aug 15, 2015
589ced1
Merge branch 'dev' into wip/profileeditor
jasoncalabrese Aug 15, 2015
82d41fd
minor formatting while reading code
jasoncalabrese Aug 15, 2015
21e66ce
don't overwrite created_at durring save if it already exists
jasoncalabrese Aug 15, 2015
221d707
update icons and title
jasoncalabrese Aug 15, 2015
dd319ca
profile editor updates
jasoncalabrese Aug 15, 2015
c7da03d
clean up, safer defaults
jasoncalabrese Aug 15, 2015
01f45c7
added support for passing an array of features to isEnabled to see if…
jasoncalabrese Aug 15, 2015
86a275b
attach label to checkbox
jasoncalabrese Aug 15, 2015
a54e1bd
add link to 'Edit treatment Profile' if any related plugins are enabled
jasoncalabrese Aug 15, 2015
1aa8a67
;
jasoncalabrese Aug 15, 2015
3b5cb23
added language selection to the settings panel
jasoncalabrese Aug 16, 2015
deab2b9
make codacy happy
jasoncalabrese Aug 16, 2015
21e0192
Merge pull request #786 from nightscout/wip/treatmentcurrent-fix
jasoncalabrese Aug 16, 2015
ca0d5e9
Merge pull request #793 from nightscout/wip/language-select
jasoncalabrese Aug 16, 2015
4c2b88d
fix conflicts with Swedish translations; correct some Portuguese lang…
jasoncalabrese Aug 16, 2015
2a024ef
Merge pull request #795 from nightscout/sebastianlorant-patch-1
jasoncalabrese Aug 16, 2015
6170489
Merge pull request #787 from nightscout/wip/profileeditor
jasoncalabrese Aug 16, 2015
6a60df5
include stale data in the adjustment used to transition the threshold…
jasoncalabrese Aug 16, 2015
24d737b
Merge pull request #796 from nightscout/wip/stalelines-fix
jasoncalabrese Aug 16, 2015
8524f8c
hide the upbat pill if there is no uploader batter value
jasoncalabrese Aug 16, 2015
3108c0f
Merge pull request #797 from nightscout/wip/upbat-hide
jasoncalabrese Aug 16, 2015
afd0202
0.8 beta1 bump
jasoncalabrese Aug 16, 2015
51ca71d
Merge pull request #800 from nightscout/wip/beta1-bump
jasoncalabrese Aug 16, 2015
13a5a90
Send BWP to Pebble
sulkaharo Aug 16, 2015
390af0e
Remove logging
sulkaharo Aug 16, 2015
76c40c5
dynamical resize chart top and height based on bottom of the pills
jasoncalabrese Aug 17, 2015
f930610
delete pushover receipts after they are used so alarms can't be acked…
jasoncalabrese Aug 17, 2015
791e4f2
Italian translations from @francescaneri
jasoncalabrese Aug 17, 2015
bd393d1
Merge pull request #814 from nightscout/francescaneri-patch-1
jasoncalabrese Aug 17, 2015
bb59871
Merge pull request #812 from nightscout/wip/remove-reciepts
jasoncalabrese Aug 17, 2015
bb850ae
update2 it-laguage.js
francesca3 Aug 17, 2015
0d87ca3
update2 it-laguage.js
francesca3 Aug 17, 2015
f039a60
Merge pull request #815 from francescaneri/patch-1
jasoncalabrese Aug 17, 2015
e269db8
Edited by Johan Lorant (swedish)
sebastianlorant Aug 17, 2015
0deac61
update3 it-laguage.js
francesca3 Aug 17, 2015
58df55d
Merge pull request #818 from francescaneri/patch-1
jasoncalabrese Aug 17, 2015
304570f
fix minor conflicts
jasoncalabrese Aug 18, 2015
59f7c25
Bulgarian language edit - 18.08.2015
xpucuto Aug 18, 2015
e628a76
Merge pull request #821 from xpucuto/patch-3
jasoncalabrese Aug 18, 2015
902f41e
fix css indents
jasoncalabrese Aug 19, 2015
b007b67
danish translation
Aug 19, 2015
a717c68
Merge pull request #1 from nightscout/dev
Aug 19, 2015
98d0b5d
allow the pills to wrap, lots of little adjustments
jasoncalabrese Aug 19, 2015
a0b025d
fix bottomOfPills to work when there aren't offsets in the tests
jasoncalabrese Aug 19, 2015
1a470d2
adjust renderer since prevChartWidth moved to chart; and tweek to pre…
jasoncalabrese Aug 19, 2015
44caab3
adjust the width of the open top line, to cover the bottom of the X axis
jasoncalabrese Aug 19, 2015
1f42e32
css clean up get rid of !important some hacks
jasoncalabrese Aug 19, 2015
868952a
adjust rawbg pill padding
jasoncalabrese Aug 19, 2015
d4ab336
minor tweeks to prevent extra scroll bars in IE
jasoncalabrese Aug 19, 2015
5ad6a25
fix more css indents
jasoncalabrese Aug 19, 2015
2ce6982
adjust line-height to get pill borders just right
jasoncalabrese Aug 19, 2015
fb231c8
no more !important's
jasoncalabrese Aug 20, 2015
d2f8517
Danish translation
Aug 20, 2015
167454e
ups
Aug 20, 2015
ebd48d9
more line-height and font size pill tweeks
jasoncalabrese Aug 20, 2015
c8293c0
adjust sort of languages
jasoncalabrese Aug 20, 2015
c8d9a0d
if there isn't a battery value, don't set the field
jasoncalabrese Aug 20, 2015
70c2265
some pebble refactoring and a few more tests
jasoncalabrese Aug 21, 2015
405fe2b
Merge pull request #825 from nightscout/wip/chart-dynamicsize
jasoncalabrese Aug 21, 2015
dd79707
Merge pull request #828 from nightscout/wip/pebble-nobattery
jasoncalabrese Aug 21, 2015
0dfafb3
Merge commit 'dd79707f2d6e01f37ce7688f3f5df9b52822e32b' into wip/pebb…
sulkaharo Aug 21, 2015
94103c7
Fixed to work with latest dev
sulkaharo Aug 22, 2015
1787eb3
some minor fixes and improvements for the profile editor
jasoncalabrese Aug 22, 2015
5a1baeb
fix profile editor test
jasoncalabrese Aug 22, 2015
eda1fd7
adjust size is WIDTH_SMALL_DOTS limit since there is a little less pa…
jasoncalabrese Aug 23, 2015
647fcee
fix some issues found by codacy
jasoncalabrese Aug 23, 2015
428f022
Merge pull request #833 from nightscout/wip/pe-improve
jasoncalabrese Aug 23, 2015
e19af92
use client settings instead of the base serverSettings
jasoncalabrese Aug 23, 2015
26fd773
fix path for renamed file
jasoncalabrese Aug 23, 2015
1a533d7
Merge pull request #834 from nightscout/wip/pe-settings
jasoncalabrese Aug 23, 2015
e30a5ae
split example profiles out from the readme
jasoncalabrese Aug 23, 2015
460e14c
forgot to pop from stash
jasoncalabrese Aug 23, 2015
9797040
remove outdated reference to database_configuration.json
jasoncalabrese Aug 23, 2015
e4eaf81
don't link to the out-of-date .info site
jasoncalabrese Aug 23, 2015
7b54701
Merge pull request #835 from nightscout/wip/example-profiles
jasoncalabrese Aug 23, 2015
6828a73
don't spam the console by logging the whole bundle at startup
jasoncalabrese Aug 23, 2015
1779e61
support for disabling default features
jasoncalabrese Aug 23, 2015
ccc3775
use _.each everywhere instead of the _.forEach alias
jasoncalabrese Aug 23, 2015
eb776da
Merge pull request #836 from nightscout/wip/enable-disable
jasoncalabrese Aug 23, 2015
0f0aac5
npm run env - show environment variables
bewest Aug 23, 2015
3643cad
allow API to search by type even easier
bewest Aug 24, 2015
716acc5
add delete capability to REST api
bewest Aug 24, 2015
b2e1c66
Merge branch 'dev' of github.com:nightscout/cgm-remote-monitor into w…
bewest Aug 24, 2015
7ec2cab
Merge branch 'wip/npm-tweaks' into wip/enhance-rest-api
bewest Aug 24, 2015
7f637e4
add dateString to indexedFields
bewest Aug 24, 2015
923a506
fix codacy issues
bewest Aug 24, 2015
a511ebe
gah, duplicate code fix for duplicate code
bewest Aug 24, 2015
b506aa3
Merge pull request #839 from nightscout/wip/npm-tweaks
jasoncalabrese Aug 24, 2015
2ce2afc
Update renderer.js
hichameyessou Aug 20, 2015
9b02b44
Merge pull request #841 from nightscout/wip/hichameyessou/translations
jasoncalabrese Aug 24, 2015
269ba27
clean up prepReqModel and add delete test
jasoncalabrese Aug 25, 2015
1b0f647
Merge pull request #840 from nightscout/wip/enhance-rest-api
jasoncalabrese Aug 25, 2015
b739644
Merge pull request #802 from sulkaharo/wip/pebblebwp
jasoncalabrese Aug 25, 2015
ed8fb24
don't check snooze times for announcements since they are a manual event
jasoncalabrese Aug 25, 2015
263a6cd
Merge pull request #842 from nightscout/wip/unsnoozeable-announcement…
jasoncalabrese Aug 25, 2015
c16538b
beta2 bump
jasoncalabrese Aug 25, 2015
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
44 changes: 44 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**

- [Contributing to cgm-remote-monitor](#contributing-to-cgm-remote-monitor)
- [Design](#design)
- [Develop on `dev`](#develop-on-dev)
- [Style Guide](#style-guide)
- [Create a prototype](#create-a-prototype)
- [Submit a pull request](#submit-a-pull-request)
- [Comments and issues](#comments-and-issues)
- [Co-ordination](#co-ordination)
- [Other Dev Tips](#other-dev-tips)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->


# Contributing to cgm-remote-monitor

Expand Down Expand Up @@ -30,6 +46,24 @@ design.
We develop on the `dev` branch.
You can get the dev branch checked out using `git checkout dev`.

## Style Guide

Some simple rules, that will make it easier to maintain our codebase:

* All indenting should use 2 space where possible (js, css, html, etc)
* A space before function parameters, such as: `function boom (name, callback) { }`, this makes searching for calls easier
* Name your callback functions, such as `boom('the name', function afterBoom ( result ) { }`
* Don't include author names in the header of your files, if you need to give credit to someone else do it in the commit comment.
* Use the comma first style, for example:

```javascript
var data = {
value: 'the value'
, detail: 'the details...'
, time: Date.now()
};
```

## Create a prototype

Fork cgm-remote-monitor and create a branch.
Expand Down Expand Up @@ -77,3 +111,13 @@ 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.

## Other Dev Tips

* Join the [Gitter chat][gitter-url]
* Get a local dev environment setup if you haven't already
* Try breaking up big features/improvements into small parts. It's much easier to accept small PR's
* Create tests for your new code, and for the old code too. We are aiming for a full test coverage.
* If your going to be working in old code that needs lots of reformatting consider doing the clean as a separate PR.
* If you can find others to help test your PR is will help get them merged in sooner.

10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ MONGO_CONNECTION?=mongodb://localhost/test_db
CUSTOMCONNSTR_mongo_settings_collection?=test_settings
CUSTOMCONNSTR_mongo_collection?=test_sgvs
MONGO_SETTINGS=MONGO_CONNECTION=${MONGO_CONNECTION} \
CUSTOMCONNSTR_mongo_collection=${CUSTOMCONNSTR_mongo_collection} \
CUSTOMCONNSTR_mongo_settings_collection=${CUSTOMCONNSTR_mongo_settings_collection}
CUSTOMCONNSTR_mongo_collection=${CUSTOMCONNSTR_mongo_collection}

# XXX.bewest: Mocha is an odd process, and since things are being
# wrapped and transformed, this odd path needs to be used, not the
Expand All @@ -23,6 +22,7 @@ MOCHA=./node_modules/mocha/bin/_mocha
# Pinned from dependency list.
ISTANBUL=./node_modules/.bin/istanbul
ANALYZED=./coverage/lcov.info
export CODACY_REPO_TOKEN=e29ae5cf671f4f918912d9864316207c

all: test

Expand All @@ -34,6 +34,12 @@ report:
test -f ${ANALYZED} && \
(npm install coveralls && cat ${ANALYZED} | \
./node_modules/.bin/coveralls) || echo "NO COVERAGE"
test -f ${ANALYZED} && \
(npm install codecov.io && cat ${ANALYZED} | \
./node_modules/codecov.io/bin/codecov.io.js) || echo "NO COVERAGE"
test -f ${ANALYZED} && \
(npm install codacy-coverage && cat ${ANALYZED} | \
YOURPACKAGE_COVERAGE=1 ./node_modules/codacy-coverage/bin/codacy-coverage.js) || echo "NO COVERAGE"

test:
${MONGO_SETTINGS} ${MOCHA} -R tap ${TESTS}
Expand Down
193 changes: 169 additions & 24 deletions README.md

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions Release.md

This file was deleted.

23 changes: 7 additions & 16 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,18 @@ function create (env, ctx) {
///////////////////////////////////////////////////
// api and json object variables
///////////////////////////////////////////////////
var api = require('./lib/api/')(env, ctx.entries, ctx.settings, ctx.treatments, ctx.profiles, ctx.devicestatus);
var pebble = ctx.pebble;
var api = require('./lib/api/')(env, ctx);

var app = express();
app.entries = ctx.entries;
app.treatments = ctx.treatments;
app.profiles = ctx.profiles;
app.devicestatus = ctx.devicestatus;
var appInfo = env.name + ' ' + env.version;
app.set('title', appInfo);
app.enable('trust proxy'); // Allows req.secure test on heroku https connections.

app.use(compression({filter: shouldCompress}));

function shouldCompress(req, res) {
//TODO: return false here if we find a condition where we don't want to compress
// fallback to standard filter function
return compression.filter(req, res);
}
app.use(compression({filter: function shouldCompress(req, res) {
//TODO: return false here if we find a condition where we don't want to compress
// fallback to standard filter function
return compression.filter(req, res);
}}));

//if (env.api_secret) {
// console.log("API_SECRET", env.api_secret);
Expand All @@ -32,7 +25,7 @@ function create (env, ctx) {


// pebble data
app.get('/pebble', pebble(ctx.entries, ctx.treatments, ctx.profiles, ctx.devicestatus, env));
app.get('/pebble', ctx.pebble);

//app.get('/package.json', software);

Expand All @@ -46,8 +39,6 @@ function create (env, ctx) {
var bundle = require('./bundle')();
app.use(bundle);

// Handle errors with express's errorhandler, to display more readable error messages.

// Handle errors with express's errorhandler, to display more readable error messages.
var errorhandler = require('errorhandler');
//if (process.env.NODE_ENV === 'development') {
Expand Down
15 changes: 15 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@
"description": "Pushover user key, required for Pushover notifications. Leave blank if not using Pushover.",
"value": "",
"required": false
},
"CUSTOM_TITLE": {
"description": "Customize the name of the website, usually the name of T1.",
"value": "",
"required": false
},
"THEME": {
"description": "Possible values default or colors",
"value": "",
"required": false
},
"SHOW_RAWBG": {
"description": "Possible values always, never or noise",
"value": "",
"required": false
}
},
"addons": [
Expand Down
9 changes: 9 additions & 0 deletions bin/post-sgv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
# "date": "1413782506964"

curl -H "Content-Type: application/json" -H "api-secret: $API_SECRET" -XPOST 'http://localhost:1337/api/v1/entries/' -d '{
"sgv": 100,
"type": "sgv",
"direction": "Flat",
"date": "1415950912800"
}'
5 changes: 2 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "nightscout",
"version": "0.7.0",
"version": "0.8.0-beta2",
"dependencies": {
"angularjs": "1.3.0-beta.19",
"bootstrap": "~3.2.0",
"d3": "3.4.3",
"jquery": "2.1.0",
"jQuery-Storage-API": "~1.7.2",
"tipsy-jmalonzo": "~1.0.1",
"jsSHA": "~1.5.0"
"jquery-ui": "~1.11.3"
},
"resolutions": {
"jquery": "2.1.0"
Expand Down
15 changes: 9 additions & 6 deletions bundle/bundle.source.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
(function () {

window.Nightscout = window.Nightscout || {};
window._ = require('lodash');
window.$ = window.jQuery = require('jquery');
window.moment = require('moment-timezone');
window.Nightscout = window.Nightscout || {};

window.Nightscout = {
iob: require('../lib/iob')()
, units: require('../lib/units')()
};
window.Nightscout = {
client: require('../lib/client')
, plugins: require('../lib/plugins/')().registerClientDefaults()
};

console.info("Nightscout bundle ready", window.Nightscout);
console.info('Nightscout bundle ready');

})();

Loading