forked from nightscout/cgm-remote-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nightscout#3 from nightscout/dev
Dev
- Loading branch information
Showing
412 changed files
with
79,292 additions
and
33,420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["@babel/preset-env"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [ master ] | ||
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@v2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
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@v1 | ||
|
||
# ℹ️ 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@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
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: [12.x, 14.x] | ||
mongodb-version: [4.2, 4.4] | ||
|
||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
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_dev: | ||
name: Publish dev branch to Docker Hub | ||
needs: test | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/dev' && github.repository_owner == 'nightscout' | ||
env: | ||
DOCKER_IMAGE: nightscout/cgm-remote-monitor | ||
steps: | ||
- 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@v2 | ||
- name: Build, tag and push the dev Docker image | ||
if: success() | ||
run: | | ||
docker build --no-cache=true -t ${{ env.DOCKER_IMAGE }}:dev_${{ github.sha }} . | ||
docker image push ${{ env.DOCKER_IMAGE }}:dev_${{ github.sha }} | ||
docker tag ${{ env.DOCKER_IMAGE }}:dev_${{ github.sha }} ${{ env.DOCKER_IMAGE }}:latest_dev | ||
docker image push ${{ env.DOCKER_IMAGE }}:latest_dev | ||
publish_master: | ||
name: Publish master branch to Docker Hub | ||
needs: test | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' && github.repository_owner == 'nightscout' | ||
env: | ||
DOCKER_IMAGE: nightscout/cgm-remote-monitor | ||
steps: | ||
- 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@v2 | ||
- name: get-npm-version | ||
if: success() | ||
id: package-version | ||
uses: martinbeentjes/npm-get-version-action@master | ||
- name: Build, tag and push the master Docker image | ||
if: success() | ||
run: | | ||
docker build --no-cache=true -t ${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }} . | ||
docker image push ${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }} | ||
docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }} ${{ env.DOCKER_IMAGE }}:latest | ||
docker image push ${{ env.DOCKER_IMAGE }}:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8.11.x | ||
14.15.3 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.