Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.12.x
8.x
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Minimum browser requirements for viewing the site:

Windows installation software requirements:

- [Node.js](http://nodejs.org/) Latest Node 8 LTS (Node 8.12.0 or later). Use [Install instructions for Node](https://nodejs.org/en/download/package-manager/) or use `setup.sh`)
- [Node.js](http://nodejs.org/) Use latest Node 8 LTS (Node 8.14.0 or later). Node 9 is not supported. Node 10 LTS is not recommended yet. Use [Install instructions for Node](https://nodejs.org/en/download/package-manager/) or use `setup.sh`)
- [MongoDB](https://www.mongodb.com/download-center?jmp=nav#community) 3.x or later. MongoDB 2.4 is only supported for Raspberry Pi.

As a non-root user clone this repo then install dependencies into the root of the project:
Expand All @@ -149,7 +149,7 @@ SCM_COMMAND_IDLE_TIMEOUT=300
```
- See [install MongoDB, Node.js, and Nightscouton a single Windows system](https://github.com/jaylagorio/Nightscout-on-Windows-Server). if you want to host your Nightscout outside of the cloud. Although the instructions are intended for Windows Server the procedure is compatible with client versions of Windows such as Windows 7 and Windows 10.
- If you deploy to Windows and want to develop or test you need to install [Cygwin](https://www.cygwin.com/) (use [setup-x86_64.exe](https://www.cygwin.com/setup-x86_64.exe) and make sure to install `build-essential` package. Test your configuration by executing `make` and check if all tests are ok.
- There may be some issues with Node 10.6.0 or later with Nightscout. Node 10 support will be in the 0.11 release. Please don't use Nightscout with (Node 9 or) Node 10 at this moment.
- There may be some issues with Node 10.14.1 or later with Nightscout. Node 10 support will be added in the Nightscout 0.12 release. Please don't use Nightscout with (Node 9 or) Node 10 at this moment.

# Usage

Expand Down
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ function create(env, ctx) {
// serve the static content
app.use(staticFiles);

var swaggerFiles = express.static(env.swagger_files, {
const swaggerUiAssetPath = require("swagger-ui-dist").getAbsoluteFSPath();
var swaggerFiles = express.static(swaggerUiAssetPath, {
maxAge: maxAge
});

Expand Down
17 changes: 0 additions & 17 deletions bundle/index.js

This file was deleted.

1 change: 0 additions & 1 deletion env.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ function config ( ) {
env.HOSTNAME = readENV('HOSTNAME', null);
env.IMPORT_CONFIG = readENV('IMPORT_CONFIG', null);
env.static_files = readENV('NIGHTSCOUT_STATIC_FILES', __dirname + '/static/');
env.swagger_files = readENV('NIGHTSCOUT_SWAGGER_FILES', __dirname + '/node_modules/swagger-ui-dist/');
env.debug = {
minify: readENVTruthy('DEBUG_MINIFY', true)
};
Expand Down
1 change: 1 addition & 0 deletions lib/server/bootevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ function boot (env, language) {
});

ctx.bus.on('data-loaded', function updatePlugins ( ) {
console.info('reloading sandbox data');
var sbx = require('../sandbox')().serverInit(env, ctx);
ctx.plugins.setProperties(sbx);
ctx.notifications.initRequests();
Expand Down
96 changes: 48 additions & 48 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@
}
},
"engines": {
"node": "8.12.x",
"node": "8.x",
"npm": "6.x"
},
"dependencies": {
"ajv": "^6.5.5",
"async": "^0.9.2",
"body-parser": "^1.18.3",
"bootevent": "0.0.1",
Expand All @@ -74,7 +73,6 @@
"js-storage": "^1.0.4",
"jsonwebtoken": "^8.4.0",
"lodash": "^4.17.11",
"long": "^4.0.0",
"mime": "^2.4.0",
"minimed-connect-to-nightscout": "^1.1.1",
"moment": "^2.22.2",
Expand All @@ -87,14 +85,14 @@
"pushover-notifications": "^1.2.0",
"random-token": "0.0.8",
"request": "^2.88.0",
"semver": "^5.6.0",
"share2nightscout-bridge": "git://github.com/nightscout/share2nightscout-bridge.git#wip/generalize",
"shiro-trie": "^0.4.8",
"simple-statistics": "^0.7.0",
"socket.io": "^2.1.1",
"swagger-ui-dist": "^3.20.1",
"socket.io": "~2.1.1",
"swagger-ui-dist": "^3.20.2",
"traverse": "^0.6.6",
"uglify-js": "^3.4.9",
"uuid": "^3.2.1"
"uglify-js": "^3.4.9"
},
"devDependencies": {
"benv": "^3.3.0",
Expand All @@ -107,7 +105,7 @@
"should": "^13.2.3",
"style-loader": "^0.23.1",
"supertest": "^3.3.0",
"webpack": "^4.26.1",
"webpack": "^4.27.1",
"webpack-bundle-analyzer": "^3.0.3",
"webpack-cli": "^3.1.2"
}
Expand Down
Loading