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

Dev #9

Open
wants to merge 3,481 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3481 commits
Select commit Hold shift + click to select a range
c09616c
Add Arabic as an option to translations
sulkaharo Dec 11, 2021
4b38e32
obscure private device provenance
bewest Dec 14, 2021
a2f2751
de facto standard LOW and HIGH values
bewest Dec 15, 2021
6b98e01
ensure obfuscation only affects rendered values
bewest Dec 15, 2021
0de4b94
Merge branch 'dev' into wip/bewest/obscure-provenance
bewest Dec 15, 2021
4b96124
ensre that objects from api/v2 are also obscured
bewest Dec 15, 2021
4e91c91
Merge branch 'wip/bewest/obscure-provenance' of github.com:nightscout…
bewest Dec 15, 2021
5ceb82d
Merge pull request #7249 from nightscout/wip/bewest/obscure-provenance
bewest Dec 15, 2021
aca8d5a
Fixes an issue where treatment units were all rewritten on load, rega…
sulkaharo Jan 5, 2022
4625050
Change deduping interval
MilosKozak Jan 7, 2022
dd0c7f0
Point readme to correct location of swagger.yaml
Jan 28, 2022
6dc2b2b
mark compatible with node 14 and node 16
bewest Feb 16, 2022
fabd798
add node 16 to supported list
bewest Feb 16, 2022
9ccba7e
Merge pull request #7285 from nightscout/MilosKozak-patch-2
MilosKozak Feb 20, 2022
ded6fa9
Test against nodejs 16.x
viq Mar 2, 2022
5a96281
Fix expiration time on remote notifications for Loop
ps2 Mar 15, 2022
1a356a0
Special reservoir handling for both Eros and DASH
ps2 Mar 18, 2022
47d1831
reservoir level override
ps2 Mar 19, 2022
74495b1
reservoir level override
ps2 Mar 19, 2022
28bf9e1
reservoir level override
ps2 Mar 19, 2022
6f02d51
Remove debug print
ps2 Mar 21, 2022
c8a1a9c
Show automatic bolus decisions from enacted field
ps2 Mar 28, 2022
9ce3920
fix typo
ps2 Mar 28, 2022
ad1bcbf
Merge pull request #7380 from ps2/omnipod-reservoir
bewest Apr 19, 2022
eb8b71c
Merge branch 'dev' into automatic-bolus
bewest Apr 19, 2022
537ed5e
Add sent-at time to notification payload
ps2 Apr 20, 2022
d080b95
Merge remote-tracking branch 'origin/dev' into fix-apns-expiration
ps2 Apr 20, 2022
d53f574
Merge pull request #7375 from ps2/fix-apns-expiration
bewest Apr 21, 2022
555f699
Merge pull request #7385 from ps2/automatic-bolus
bewest Apr 30, 2022
06012e5
Merge branch 'dev' into wip/bewest/upgrade-node
bewest Apr 30, 2022
30cc5ca
Merge pull request #8 from nightscout/master
samihusseingit Jun 27, 2022
38c9a21
Results could be null and crash the website
samihusseingit Jun 29, 2022
e601717
Merge branch 'dev' into master
sulkaharo Jun 29, 2022
a1a2e74
npm install share2nightscout-bridge@^0.2.9
bewest Jun 30, 2022
5cf72ce
npm install minimed-connect-to-nightscout@^1.5.3
bewest Jun 30, 2022
3e2520b
Merge branch 'viq-patch-2' into wip/bewest/upgrade-node
bewest Jun 30, 2022
e715cd2
give automated tests more time to finish
bewest Jun 30, 2022
e72924c
Merge pull request #7468 from samihusseingit/master
bewest Jun 30, 2022
cef684e
Merge branch 'dev' into wip/bewest/upgrade-node
bewest Jun 30, 2022
ead83e0
npm audit fix
bewest Jun 30, 2022
08e2225
Merge branch 'wip/bewest/upgrade-node' of github.com:nightscout/cgm-r…
bewest Jun 30, 2022
0d1aed7
Revert "npm audit fix" due to test failure
bewest Jun 30, 2022
40b7cbf
Merge pull request #7343 from nightscout/wip/bewest/upgrade-node
bewest Jun 30, 2022
27a882f
rm package-lock.json && npm install
bewest Jul 18, 2022
5d0d320
npm install --no-optional
bewest Jul 18, 2022
39936b9
Fix incorrect appending for loop enacted status
ps2 Jul 18, 2022
cd5c983
Merge pull request #7488 from ps2/loop-enacted-fixes
bewest Jul 18, 2022
3e1f459
Merge branch 'dev' into wip/bewest/issue-7475
bewest Jul 18, 2022
c9f3a12
n 10; rm package-lock.json && npm install
bewest Aug 8, 2022
a9dfc76
Merge branch 'wip/bewest/issue-7475' of github.com:nightscout/cgm-rem…
bewest Aug 8, 2022
4172a67
Include remote carb created date
gestrich Aug 13, 2022
1a83292
Remove unused OTP field from Remote Override form.
gestrich Aug 14, 2022
b15e436
make github tested workflows and node entines match
bewest Aug 14, 2022
a5c67b5
Merge pull request #7487 from nightscout/wip/bewest/issue-7475
bewest Aug 14, 2022
755bdc9
Merge branch 'dev' into bugfix/remote-carb-created-date
bewest Aug 14, 2022
a5fcc84
Merge branch 'dev' into bugfix/remove-remote-override-otp
bewest Aug 14, 2022
df85fd2
Merge pull request #7512 from gestrich/bugfix/remote-carb-created-date
bewest Aug 14, 2022
3213835
Merge branch 'dev' into bugfix/remove-remote-override-otp
bewest Aug 14, 2022
fb4d467
update Node requirements. This is a follow up from https://github.com…
PieterGit Aug 15, 2022
0a81915
drop Node 18 support for now
PieterGit Aug 15, 2022
652baed
update all webpack related plugins to latest version
PieterGit Aug 15, 2022
b7ee1bf
upgrade mocha to 8.4.0 and nodemon to 2.0.19 and recreate package-loc…
PieterGit Aug 16, 2022
4a64be2
remove two critical vulnerabilities in npm packages. Remove codacy-co…
PieterGit Aug 16, 2022
3c516d5
support > 0.25% of browerslist, see if we can support iOS 9.3.x as we…
PieterGit Aug 16, 2022
7b01d49
Experimenting around changing build artefact location to go to node_m…
sulkaharo Aug 28, 2022
37a2a0d
Try .cache in node_modules
sulkaharo Aug 29, 2022
a6eb156
Fix app.js
sulkaharo Aug 29, 2022
ec3cf94
* Fix tests
sulkaharo Aug 30, 2022
6c03dcd
Remove mkdir from package.json and change key generation to a post sc…
sulkaharo Aug 30, 2022
6978a90
Fix package running the post script
sulkaharo Aug 30, 2022
2e4551e
Merge branch 'dev' into new_cache_location
sulkaharo Aug 30, 2022
3d9a60d
Build Docker image for arm64 architecture (#7043)
p5nbTgip0r Sep 13, 2022
0bf616b
Merge pull request #7237 from nightscout/dev
bewest Sep 30, 2022
2e7f695
initialize new dev area post-release
bewest Sep 30, 2022
9f622c2
Merge branch 'dev20220815' of github.com:PieterGit/cgm-remote-monitor…
bewest Oct 1, 2022
64d93e6
allow any LTS version
bewest Oct 1, 2022
a8da747
Merge pull request #7568 from nightscout/wip/bewest/PieterGit-dev2022…
bewest Oct 1, 2022
aed9998
Merge branch 'dev' into new_cache_location
bewest Oct 1, 2022
8706658
Merge pull request #7526 from sulkaharo/new_cache_location
bewest Oct 1, 2022
2e1ee38
inject text instead of HTML name
bewest Oct 1, 2022
1db4047
avoid HTML injection
bewest Oct 1, 2022
74ce49c
Merge pull request #7569 from nightscout/wip/bewest/code-ql-analysis
bewest Oct 1, 2022
dbce9db
codeql text/html injection in food.js
bewest Oct 1, 2022
09c9f81
Merge pull request #7570 from nightscout/wip/bewest/code-ql-analysis
bewest Oct 1, 2022
0fd05c2
fix webpack 5 in Lerna
k2s Oct 29, 2022
e78a63f
fix formatting of empty spaces
k2s Oct 29, 2022
ed7fdf7
fix don't print error about IMPORT_CONFIG if not defined
k2s Oct 29, 2022
2c6ba28
Merge pull request #7647 from k2s/fix-empty-import-config
bewest Nov 1, 2022
bcfe437
Merge branch 'dev' into bugfix/remove-remote-override-otp
bewest Nov 16, 2022
efc994b
remove Heroku deploy button from readme
bewest Nov 16, 2022
4aa0657
Merge pull request #7513 from gestrich/bugfix/remove-remote-override-otp
bewest Nov 16, 2022
8594a2d
Regenerated package-lock with newer NPM and fixed a unit test that br…
sulkaharo Dec 30, 2022
bd40046
Change the SHA1 validation to be case insensitive (#7780)
sulkaharo Dec 30, 2022
79e80c5
New Crowdin updates (#7238)
sulkaharo Dec 30, 2022
08d07c0
Bump jsonwebtoken from 8.5.1 to 9.0.0 (#7787)
dependabot[bot] Dec 30, 2022
05bbc55
Update codeql-analysis.yml
sulkaharo Dec 31, 2022
ad7706d
Merge branch 'master' into dev
sulkaharo Jan 1, 2023
6834822
Update package-lock so it matches the package.json
sulkaharo Jan 1, 2023
6ad4ef1
Update socket.io and uuid packages (#7793)
sulkaharo Jan 1, 2023
ba76940
Fix Server error (#7784)
Joerg-Schoemer Jan 1, 2023
2dfc471
Forwarded fix (#7593)
dnicolaas Jan 1, 2023
e1f75cb
Change viewport scale to fix layout on iPhone (#7623)
sulkaharo Jan 1, 2023
3a06295
Refactor moment to be loaded from ctx (#7331)
sulkaharo Jan 1, 2023
8e59864
Adding USE_NPM_INSTALL to the Heroku deploy file so new deploys work
sulkaharo Jan 5, 2023
6bccede
Change automated tests to run against the major Mongo releases from l…
sulkaharo Jan 5, 2023
30216aa
Update codeQL actions to v2
sulkaharo Jan 5, 2023
3636f37
Update actions/checkout action to v3
sulkaharo Jan 5, 2023
bdcb706
Generate package-lock with npm 6 to fix deployment issues on various …
sulkaharo Jan 6, 2023
c1de8a5
Disabling some date magic from Careportal that's breaking date entry
sulkaharo Jan 9, 2023
fd701e9
Fixes a bug introduced in #7273 (#7825)
sulkaharo Jan 12, 2023
a6ad678
add a note on OBSCURED and OBSCURE_DEVICE_PROVENANCE
bewest Jan 12, 2023
2927301
Allow DELETE via PATCH/UPDATE operation too
MilosKozak Jan 13, 2023
a09e586
rollback wrong commit
MilosKozak Jan 13, 2023
bc8ccc8
Merge master to dev so Git is in sync (#7834)
sulkaharo Jan 15, 2023
c343719
apiv3 fix patch operation (#7807)
MilosKozak Jan 17, 2023
05de94e
Delete v3 api identifiers when cloning a record in profile editor (#7…
sulkaharo Jan 23, 2023
26a8cf1
Downgrade jsdom to version 11.11.0 (#7851)
sulkaharo Jan 24, 2023
0426b01
Fix api v3 users seeing gaps in CGM data (#7853)
sulkaharo Jan 24, 2023
0541e2a
daytoday reports are always in the profile's time zone
bewest Jan 15, 2023
a47b367
pin start of day in profile's timezone
bewest Jan 15, 2023
0330e13
ensure timezones assigned once in daily reports
bewest Jan 23, 2023
8983713
ensure daily reports dates translate to profile timezone
bewest Jan 23, 2023
f51fac9
clock at the end of the day is 23:59:59.999
bewest Jan 23, 2023
28e75a6
Possibly fix Loop time zones not being recognised in profile editor a…
sulkaharo Jan 24, 2023
6a543c8
Merge branch 'dev' into wip/bewest/daytoday-redo-03
sulkaharo Jan 24, 2023
250b808
New Crowdin updates (#7808)
sulkaharo Jan 24, 2023
0ee0712
redact console log lines
bewest Jan 24, 2023
8e0ec88
Merge branch 'wip/bewest/daytoday-redo-03' of github.com:nightscout/c…
bewest Jan 24, 2023
a4f9271
Revert "clock at the end of the day is 23:59:59.999"
bewest Jan 26, 2023
f6b2d4f
Revert "Revert "clock at the end of the day is 23:59:59.999""
bewest Jan 26, 2023
10dd236
daytoday: Align start of day with data across zones
bewest Jan 26, 2023
b376239
Merge branch 'dev' into wip/bewest/daytoday-redo-03
bewest Jan 26, 2023
d185cf6
Update Mongo URL parser to 1.0.2 to fix issues Scott H found (#7606)
sulkaharo Jan 27, 2023
3b7528a
minimum attempt to protect /api/v2/ endpoints (#7554)
bewest Jan 27, 2023
5d3268a
Merge branch 'dev' into wip/bewest/daytoday-redo-03
bewest Jan 27, 2023
48d1ae3
tweak tests/logging
bewest Jan 27, 2023
664efe6
Merge branch 'wip/bewest/daytoday-redo-03' of github.com:nightscout/c…
bewest Jan 27, 2023
a805939
fix test with fixtures both ways
bewest Jan 27, 2023
903669a
Merge pull request #7857 from nightscout/wip/bewest/daytoday-redo-03
bewest Jan 28, 2023
adc70b7
Add logging limits to all services (mongo, nightscout and traefik) (#…
bjornoleh Feb 9, 2023
2795892
Add event type to event on treatment notify if it's missing (#7888)
sulkaharo Feb 13, 2023
d1fe8f5
Fixed pushover callbacks not being processed (#7876)
yodax Feb 18, 2023
0f69153
Added charging state to the uploader battery pill when it's provided …
yodax Feb 18, 2023
4e1f364
Fix loading JWT when auth subject has no permissions (#7894)
sulkaharo Feb 18, 2023
89d7eb6
Alarm sockets for api v3 (#7858)
MilosKozak Feb 18, 2023
ac1a7d1
Api3 remove auth token (#6863)
PetrOndrusek Feb 18, 2023
93df3c4
cheat for tests across different time zones
bewest Feb 21, 2023
97a4ee7
Merge pull request #7905 from nightscout/wip/bewest/fix-timezone-test
bewest Feb 21, 2023
32b2376
Fixes #7910
sulkaharo Feb 25, 2023
d7f4432
* Add a unit test to check the /entries endpoint returns values in co…
sulkaharo Feb 25, 2023
a4d07cd
Merge pull request #7911 from nightscout/wip/sulka/fix_entries_api
bewest Feb 25, 2023
867fc96
Ensure indexes for Roles and Subjects collections as part of boot (#7…
MarcinJuraszek Feb 26, 2023
ec83b57
Merge branch 'master' into dev
sulkaharo Feb 26, 2023
aa4faa6
New Crowdin updates (#7869)
sulkaharo Mar 29, 2023
25672ea
experimental support for nightscout-connect
bewest Apr 7, 2023
1020ec3
pass new sbx via event argument
bewest Apr 8, 2023
37a4ec1
Merge branch 'dev' into wip/bewest/document-data-rights
bewest May 2, 2023
9874a50
Merge pull request #7828 from nightscout/wip/bewest/document-data-rights
bewest May 2, 2023
9258cdc
Merge branch 'dev' into wip/bewest/nightscout-connect
bewest May 2, 2023
728b7be
temporary nightscout-connect by url
bewest May 9, 2023
cf5646b
Increase debounce for data loads to 15 seconds and trigger a data-loa…
sulkaharo May 29, 2023
8faf5dc
use released version of nightscout-connect
bewest May 31, 2023
4b4b9b0
Merge branch 'wip/bewest/nightscout-connect' of github.com:nightscout…
bewest May 31, 2023
93ffb25
Upgrade Mongo driver to latest legacy-API compatible version
sulkaharo Jun 1, 2023
32163a0
* Fix storage so tests pass with new Mongo driver
sulkaharo Jun 1, 2023
d29ff5c
allow running with node 20, current release
bewest Jun 1, 2023
65707ad
refactor IMPORT_CONFIG to use axios instead of request.
bewest Jun 1, 2023
ea56b79
Fix authorization storage
sulkaharo Jun 2, 2023
f96435b
bump minimed-connect-to-nighscout version
bewest Jun 2, 2023
7f05018
* Creates new V2 API to load minimized current system state in one re…
sulkaharo Jun 4, 2023
69dba90
Fix loading SBX
sulkaharo Jun 4, 2023
d2c9838
* Rename API to Summary
sulkaharo Jun 6, 2023
d09355e
Rename files to match api
sulkaharo Jun 6, 2023
99a152f
Only include noise if there is noise
sulkaharo Jun 6, 2023
6beb8a4
nightscout-connnect upgrade
bewest Jun 7, 2023
c2199c1
Merge remote-tracking branch 'official/easystate-api' into wip/bewest…
bewest Jun 7, 2023
5231543
better internal support for nightscout-connect
bewest Jun 7, 2023
5064984
bump minimed-connect-to-nightscout package
bewest Jun 9, 2023
4397fa7
introduce connect, initiate deprecation for bridge and mmconnect.
bewest Jun 9, 2023
6354494
Fix default value of the checkbox in plugin-specific settings (#8031)
Jackenmen Jun 10, 2023
5f953df
Fix label's `for` attribute for plugin-specific settings (#8030)
Jackenmen Jun 10, 2023
e7e04fc
use latest version of nightscout-connect
bewest Jun 13, 2023
e37db6b
Merge branch 'dev' into wip/bewest/nightscout-connect
bewest Jun 14, 2023
9d55ea5
Merge pull request #7983 from nightscout/wip/bewest/nightscout-connect
bewest Jun 14, 2023
e9d087d
Update Docker to use the same Node version as defined in .nvmrc
sulkaharo Jun 17, 2023
8b39822
Merge branch 'wip/bewest/nightscout-connect' of github.com:nightscout…
bewest Jun 19, 2023
29f84c1
bump nightscout-connect patch version
bewest Jun 19, 2023
f3afaec
Merge pull request #8039 from nightscout/wip/bewest/nightscout-connect
bewest Jun 19, 2023
726a99a
New translations en.json (Ukrainian)
sulkaharo Jun 21, 2023
cd766c2
New translations en.json (Ukrainian)
sulkaharo Jun 21, 2023
e99a166
Fix null values in the summary API
sulkaharo Jun 28, 2023
c2f1108
Remove node-apn
gestrich Jul 1, 2023
f63566b
Remove pem library
gestrich Jul 1, 2023
34bd1ff
Remove base64url library
gestrich Jul 1, 2023
20675cc
add @parse/node-apn library
gestrich Jul 1, 2023
d500fd8
Import new node library
gestrich Jun 29, 2023
282a992
Merge pull request #8042 from nightscout/crowdin_incoming
bewest Aug 4, 2023
613a699
Merge pull request #8047 from gestrich/feature/2023/06/bg/node-apn-up…
bewest Aug 5, 2023
a5acd9b
update nightscout-connect 0.0.8
bewest Aug 5, 2023
6296a75
update nightscout-connect dependency
bewest Aug 6, 2023
d602de1
bump nightscout-connect 0.0.10
bewest Aug 6, 2023
b4ab7ce
New translations en.json (Greek)
sulkaharo Aug 21, 2023
79df562
npm install nightscout-connect@^0.0.11
bewest Aug 25, 2023
9f2f98b
allow client to load successfully without requiring API SECRET
bewest Sep 3, 2023
5488df4
Merge pull request #8085 from nightscout/wip/bewest/api-secret-free-r…
bewest Sep 3, 2023
203f16f
README.md: use shareous1 for Nightscout connect using Dexcom share
bjornoleh Aug 13, 2023
2ba788d
Merge branch 'dev' into crowdin_incoming
sulkaharo Sep 13, 2023
0e485b4
Enable Ukrainian in translations
sulkaharo Sep 13, 2023
c591292
New translations en.json (Chinese Simplified)
sulkaharo Sep 14, 2023
b0756cc
New translations en.json (Chinese Simplified)
sulkaharo Sep 15, 2023
0b44d5d
New translations en.json (Spanish)
sulkaharo Sep 15, 2023
ed10ca1
New translations en.json (Chinese Simplified)
sulkaharo Sep 15, 2023
8b5c3d8
APIv3 sync only on srvModified
MilosKozak Sep 25, 2023
f722bb6
Merge branch 'dev' into apiv3sync
MilosKozak Sep 25, 2023
5f8c734
Merge pull request #8100 from nightscout/apiv3sync
bewest Oct 3, 2023
10cd789
Merge branch 'dev' into shareous
bjornoleh Oct 6, 2023
b1eb27e
Merge pull request #8073 from bjornoleh/shareous
bewest Oct 6, 2023
6e1c69f
Merge branch 'dev' into readme-swagger-link
bewest Oct 12, 2023
4a461e5
Merge pull request #7312 from jakobsandberg/readme-swagger-link
bewest Oct 12, 2023
3893eb4
allow running any version of LTS
bewest Oct 12, 2023
ebece1b
n 14 && npm install
bewest Oct 12, 2023
48dfa22
set expectation to take around 15 seconds for first load
bewest Oct 12, 2023
c6c0a0a
Merge remote-tracking branch 'official/dev' into less_frequent_db_upd…
bewest Oct 12, 2023
7819223
Allow any LTS version.
bewest Oct 12, 2023
6964916
n 14 && npm install
bewest Oct 12, 2023
97a603f
upgrade nightscout-connect@^0.0.12, npm install
bewest Oct 12, 2023
2757fe5
Merge pull request #8026 from nightscout/less_frequent_db_updates
bewest Oct 12, 2023
2d18433
Merge branch 'dev' into crowdin_incoming
bewest Oct 12, 2023
5d83048
Merge pull request #8082 from nightscout/crowdin_incoming
bewest Oct 13, 2023
da3b2ee
Merge pull request #7809 from nightscout/dev
bewest Oct 18, 2023
b2a59ee
create next dev area post release
bewest Oct 18, 2023
2e65b1d
Revert "Merge pull request #8026 from nightscout/less_frequent_db_upd…
bewest Oct 19, 2023
89354e5
bump nightscout-connect version
bewest Oct 20, 2023
bfecbe7
Merge pull request #8115 from nightscout/hotfix/revert/8026
bewest Oct 20, 2023
f46f869
Merge pull request #8109 from nightscout/dev
bewest Oct 20, 2023
c22b9e6
create space for developing post release
bewest Oct 20, 2023
cfe89c8
bump for dev post release of 15.0.1
bewest Oct 20, 2023
b166afc
socket.io: enable legacy v2 connections
bewest Oct 21, 2023
40dc7b0
restore compat with socket.io v2 client
Oct 21, 2023
19be01d
socket.io prefer version from @thecubic
bewest Oct 22, 2023
73c8089
Merge pull request #8127 from nightscout/wip/bewest/restore-v2
bewest Oct 22, 2023
0fbacfd
alarmSocket: customizing authorization requirements
bewest Oct 22, 2023
e0c35bc
Merge branch 'dev' into wip/bewest/8107-profile-buttons
bewest Oct 22, 2023
d8fe025
alarmSocket: document and prep concept
bewest Oct 22, 2023
1fa6af4
alarmSocket: don't double initialize, stub out non-global-ack
bewest Oct 22, 2023
c089286
remove spurious logging in profileeditor
bewest Oct 23, 2023
a7ebb30
add notes regarding handling unauthorized ACK request
bewest Oct 23, 2023
44f70db
Merge pull request #8132 from nightscout/wip/bewest/8107-profile-buttons
bewest Oct 24, 2023
21e0591
Merge pull request #8128 from nightscout/dev
bewest Oct 25, 2023
5b440b7
create room for dev post release
bewest Oct 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

12 changes: 12 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Browsers we support
# See https://github.com/browserslist/browserslist for details

> 0.25%
ios_saf 9.3
ios_saf 10.3
ios_saf 13.7
ios_saf 14.8
not dead
not and_uc 12.12
not ie 11

2 changes: 1 addition & 1 deletion .deployment
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[config]
command = bash deploy.sh
command = bash bin/azure-deploy.sh
18 changes: 18 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Don't include the .git history in the Docker image:
.git

# Items from .gitignore
bower_components/
node_modules/
bundle/bundle.out.js
.idea/
*.iml
my.env
*.env
static/bower_components/
.*.sw?
.DS_Store
.vagrant
/iisnode
coverage/
npm-debug.log
35 changes: 35 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
'plugins': [
'security'
],
'extends': [
'eslint:recommended',
'plugin:security/recommended'
],
'parser': 'babel-eslint',
'env': {
'browser': true,
'commonjs': true,
'es6': true,
'node': true,
'mocha': true,
'jquery': true
},
'rules': {
'security/detect-object-injection' : 0,
'no-unused-vars': [
'error',
{
'varsIgnorePattern': 'should|expect'
}
]
},
'overrides': [
{
'files': ['lib/client/*.js'],
'rules': {
'security/detect-object-injection': 0
}
}
],
};
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/--bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: "\U0001F41BBug report"
about: Create a report to help us improve things
label: bug

---

**If you need support for Nightscout, PLEASE DO NOT FILE A TICKET HERE**
For support, please post a question to the "CGM in The Cloud" group in Facebook
(https://www.facebook.com/groups/cgminthecloud) or visit the WeAreNotWaiting Discord at https://discord.gg/zg7CvCQ

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Your setup information**
- What version of Nightscout (e.g. 0.10.3)
- What type of CGM, and how do you get your data there? (e.g. G4 and ShareBridge, or wired receiver, etc.)
- Is your issue specific to a browser (Firefox/Safari/Chrome?) or a device (Android phone, etc.)?

**Additional context**
Add any other context about the problem here.
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/--feature-request--.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: "\U0001F4A1Feature request\U0001F4A1"
about: Suggest an idea for this project

---

**If you need support for Nightscout, PLEASE DO NOT FILE A TICKET HERE**
For support, please post a question to the "CGM in The Cloud" group in Facebook
(https://www.facebook.com/groups/cgminthecloud) or visit the WeAreNotWaiting Discord at https://discord.gg/zg7CvCQ

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Troubleshooting Documentation
url: http://nightscout.github.io/troubleshoot/troublehoot/
about: Having trouble with Nightscout? Please check our step by step troubleshooting instructions.
- name: Nightscout Community Support in Facebook
url: https://www.facebook.com/groups/cgminthecloud
about: If you're a Nightscout user and have trouble with your site, please post questions here. We don't have the resources to answer support questions posted here as tickets.
- name: Nightscout Community Support in Discord
url: https://discord.gg/zg7CvCQ
about: If you're a Nightscout user and have trouble with your site, please post questions here. We don't have the resources to answer support questions posted here as tickets.
69 changes: 69 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
# ******** NOTE ********

name: "CodeQL"

on:
push:
branches: [ dev ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ dev ]
schedule:
- cron: '43 23 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev' && github.repository_owner == 'nightscout'

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
90 changes: 90 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: CI test and publish Docker image

on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
mongodb-version: [4.4, 5.0, 6.0]

steps:
- name: Git Checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Start MongoDB ${{ matrix.mongodb-version }}
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Install dependencies
run: npm install
- name: Run Tests
run: npm run-script test-ci
- name: Send Coverage
run: npm run-script coverage

publish:
name: Publish to Docker Hub
needs: test
runs-on: ubuntu-latest
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev') && github.repository_owner == 'nightscout'
env:
DOCKER_IMAGE: nightscout/cgm-remote-monitor
PLATFORMS: linux/amd64,linux/arm64
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Clean git Checkout
if: success()
uses: actions/checkout@v3
- name: Build, tag and push the dev Docker image
if: success() && github.ref == 'refs/heads/dev'
uses: docker/build-push-action@v2
with:
context: .
push: true
no-cache: true
platforms: ${{ env.PLATFORMS }}
tags: |
${{ env.DOCKER_IMAGE }}:dev_${{ github.sha }}
${{ env.DOCKER_IMAGE }}:latest_dev

- name: Get Nightscout release version
if: success() && github.ref == 'refs/heads/master'
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: Build, tag and push the master Docker image
if: success() && github.ref == 'refs/heads/master'
uses: docker/build-push-action@v2
with:
context: .
push: true
no-cache: true
platforms: ${{ env.PLATFORMS }}
tags: |
${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }}
${{ env.DOCKER_IMAGE }}:latest
16 changes: 15 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ node_modules/

bundle/bundle.out.js

.vscode/
.idea/
*.iml
my.env
my.*.env
*.pem

*.env
static/bower_components/
.*.sw?
.DS_Store
Expand All @@ -20,3 +22,15 @@ static/bower_components/
coverage/

npm-debug.log
*.heapsnapshot

/tmp
/.vs
/cgm-remote-monitor.njsproj
/cgm-remote-monitor.sln
/obj/Debug
/*.bat

# directories created by docker-compose.yml
mongo-data/
letsencrypt/
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
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.16.0
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

Loading