fixed jshint warnings
This commit is contained in:
parent
c706deff2f
commit
89068858e6
|
@ -27,7 +27,6 @@ npm-debug.log
|
||||||
.nodemonignore
|
.nodemonignore
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
public/lib/*
|
|
||||||
db/txs/*
|
db/txs/*
|
||||||
db/txs
|
db/txs
|
||||||
db/testnet/txs/*
|
db/testnet/txs/*
|
||||||
|
@ -37,10 +36,4 @@ db/blocks
|
||||||
db/testnet/blocks/*
|
db/testnet/blocks/*
|
||||||
db/testnet/blocks
|
db/testnet/blocks
|
||||||
|
|
||||||
public/js/angularjs-all.js
|
|
||||||
public/js/main.js
|
|
||||||
public/js/vendors.js
|
|
||||||
|
|
||||||
public/css/main.css
|
|
||||||
|
|
||||||
README.html
|
README.html
|
||||||
|
|
|
@ -34,7 +34,7 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
jshint: {
|
jshint: {
|
||||||
all: {
|
all: {
|
||||||
src: ['Gruntfile.js', 'insight.js', 'app/**/*.js', 'lib/*.js'],
|
src: ['Gruntfile.js', 'insight.js', 'app/**/*.js', 'lib/*.js', 'config/*.js'],
|
||||||
options: {
|
options: {
|
||||||
jshintrc: true
|
jshintrc: true
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,9 +17,9 @@ if (process.env.INSIGHT_NETWORK === 'livenet') {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
env = 'testnet';
|
env = 'testnet';
|
||||||
db = './db/testnet',
|
db = './db/testnet';
|
||||||
port = '3001',
|
port = '3001';
|
||||||
b_port = '18332',
|
b_port = '18332';
|
||||||
p2p_port = '18333';
|
p2p_port = '18333';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,8 +71,8 @@ module.exports = {
|
||||||
poolMatchFile: './etc/minersPoolStrings.json',
|
poolMatchFile: './etc/minersPoolStrings.json',
|
||||||
|
|
||||||
// Time to refresh the currency rate. In minutes
|
// Time to refresh the currency rate. In minutes
|
||||||
currencyRefresh: 10
|
currencyRefresh: 10,
|
||||||
, keys: {
|
keys: {
|
||||||
segmentio: process.env.INSIGHT_SEGMENTIO_KEY
|
segmentio: process.env.INSIGHT_SEGMENTIO_KEY
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
* Module dependencies.
|
* Module dependencies.
|
||||||
*/
|
*/
|
||||||
var express = require('express'),
|
var express = require('express'),
|
||||||
helpers = require('view-helpers'),
|
config = require('./config'),
|
||||||
config = require('./config')
|
|
||||||
path = require('path');
|
path = require('path');
|
||||||
|
|
||||||
module.exports = function(app, historicSync, peerSync) {
|
module.exports = function(app, historicSync, peerSync) {
|
||||||
|
@ -42,7 +41,7 @@ module.exports = function(app, historicSync, peerSync) {
|
||||||
var staticPath = path.normalize(config.rootPath + '/../../' + process.env.INSIGHT_PUBLIC_PATH);
|
var staticPath = path.normalize(config.rootPath + '/../../' + process.env.INSIGHT_PUBLIC_PATH);
|
||||||
|
|
||||||
//IMPORTANT: for html5mode, this line must to be before app.router
|
//IMPORTANT: for html5mode, this line must to be before app.router
|
||||||
app.use(express.static(staticPath);
|
app.use(express.static(staticPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
// manual helpers
|
// manual helpers
|
||||||
|
|
Loading…
Reference in New Issue