mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Removed git-rev due to unclear benefit. Removed unused dependencies.
This commit is contained in:
@@ -79,17 +79,6 @@ function setAPISecret() {
|
||||
|
||||
function setVersion() {
|
||||
var software = require('./package.json');
|
||||
var git = require('git-rev');
|
||||
|
||||
if (readENV('APPSETTING_ScmType') === readENV('ScmType') && readENV('ScmType') === 'GitHub') {
|
||||
env.head = require('./scm-commit-id.json');
|
||||
console.log('SCM COMMIT ID', env.head);
|
||||
} else {
|
||||
git.short(function record_git_head(head) {
|
||||
console.log('GIT HEAD', head);
|
||||
env.head = head || readENV('SCM_COMMIT_ID') || readENV('COMMIT_HASH', '');
|
||||
});
|
||||
}
|
||||
env.version = software.version;
|
||||
env.name = software.name;
|
||||
}
|
||||
|
||||
+1
-5
@@ -11,11 +11,7 @@ function create (env, ctx) {
|
||||
// set up express app with our options
|
||||
app.set('name', env.name);
|
||||
app.set('version', env.version);
|
||||
// app.set('head', env.head);
|
||||
function get_head ( ) {
|
||||
return env.head;
|
||||
}
|
||||
wares.get_head = get_head;
|
||||
|
||||
app.set('units', env.DISPLAY_UNITS);
|
||||
// Only allow access to the API if API_SECRET is set on the server.
|
||||
app.disable('api');
|
||||
|
||||
@@ -23,7 +23,6 @@ function configure (app, wares, env, ctx) {
|
||||
, apiEnabled: app.enabled('api')
|
||||
, careportalEnabled: app.enabled('api') && env.settings.enable.indexOf('careportal') > -1
|
||||
, boluscalcEnabled: app.enabled('api') && env.settings.enable.indexOf('boluscalc') > -1
|
||||
, head: wares.get_head( )
|
||||
, settings: env.settings
|
||||
, extendedSettings: app.extendedClientSettings
|
||||
, authorized: ctx.authorization.authorize(req.query.token || '')
|
||||
|
||||
@@ -20,9 +20,7 @@ function init(env, ctx) {
|
||||
var dataloader = { };
|
||||
|
||||
dataloader.update = function update(ddata, opts, done) {
|
||||
|
||||
console.log("Database is connected: " + ctx.store.client.isConnected());
|
||||
|
||||
|
||||
if (opts && done == null && opts.call) {
|
||||
done = opts;
|
||||
opts = { lastUpdated: Date.now( ), frame: false };
|
||||
|
||||
@@ -52,7 +52,6 @@ function init (env, ctx, server) {
|
||||
, apiEnabled: apiEnabled
|
||||
, careportalEnabled: apiEnabled && env.settings.enable.indexOf('careportal') > -1
|
||||
, boluscalcEnabled: apiEnabled && env.settings.enable.indexOf('boluscalc') > -1
|
||||
, head: env.head
|
||||
, settings: env.settings
|
||||
, extendedSettings: ctx.plugins && ctx.plugins.extendedClientSettings ? ctx.plugins.extendedClientSettings(env.extendedSettings) : {}
|
||||
};
|
||||
|
||||
Generated
+683
-1531
File diff suppressed because it is too large
Load Diff
+4
-12
@@ -50,12 +50,11 @@
|
||||
"npm": "5.6.x || 5.2.0 || 5.3.0 || 5.0.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"ajv": "^5.5.1",
|
||||
"async": "^0.9.2",
|
||||
"body-parser": "^1.18.2",
|
||||
"bootevent": "0.0.1",
|
||||
"compression": "^1.7.1",
|
||||
"css-loader": "^0.28.7",
|
||||
"css-loader": "^0.28.9",
|
||||
"cssmin": "^0.4.3",
|
||||
"d3": "^3.5.17",
|
||||
"ejs": "^2.5.7",
|
||||
@@ -66,10 +65,8 @@
|
||||
"express": "^4.16.2",
|
||||
"express-extension-to-accept": "0.0.2",
|
||||
"express-minify": "^0.2.0",
|
||||
"file-loader": "^0.11.2",
|
||||
"file-loader": "^1.1.6",
|
||||
"flot": "^0.8.0-alpha",
|
||||
"forever": "^0.15.3",
|
||||
"git-rev": "git://github.com/bewest/git-rev.git",
|
||||
"jquery": "^2.2.4",
|
||||
"jquery-ui-bundle": "^1.12.1",
|
||||
"jquery.tipsy": "^1.0.3",
|
||||
@@ -77,16 +74,14 @@
|
||||
"jsonwebtoken": "^7.4.3",
|
||||
"lodash": "^4.17.4",
|
||||
"long": "^3.2.0",
|
||||
"mfb": "^0.12.0",
|
||||
"minimed-connect-to-nightscout": "git://github.com/mddub/minimed-connect-to-nightscout.git#v1.1.0",
|
||||
"moment": "^2.19.3",
|
||||
"moment-timezone": "^0.5.14",
|
||||
"mongodb": "^3.0.0",
|
||||
"mongodb": "^3.0.2",
|
||||
"mongomock": "^0.1.2",
|
||||
"mqtt": "^0.3.13",
|
||||
"node-cache": "^4.1.1",
|
||||
"parse-duration": "^0.1.1",
|
||||
"path": "^0.12.7",
|
||||
"prettyjson": "^1.2.1",
|
||||
"pushover-notifications": "^0.2.4",
|
||||
"random-token": "0.0.8",
|
||||
@@ -96,12 +91,9 @@
|
||||
"shiro-trie": "^0.3.13",
|
||||
"simple-statistics": "^0.7.0",
|
||||
"socket.io": "^1.7.4",
|
||||
"style-loader": "^0.18.2",
|
||||
"sugar": "^1.5.0",
|
||||
"sync-exec": "^0.6.2",
|
||||
"style-loader": "^0.20.1",
|
||||
"traverse": "^0.6.6",
|
||||
"uglify-js": "^3.2.1",
|
||||
"uuid": "^3.1.0",
|
||||
"webpack": "^3.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user