From 89068858e654664ccd36f872837b1aa9edf00795 Mon Sep 17 00:00:00 2001 From: Mario Colque Date: Wed, 26 Feb 2014 12:05:30 -0300 Subject: [PATCH] fixed jshint warnings --- .gitignore | 7 ------- Gruntfile.js | 2 +- config/config.js | 10 +++++----- config/express.js | 5 ++--- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 896506df..f9c314aa 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,6 @@ npm-debug.log .nodemonignore .DS_Store -public/lib/* db/txs/* db/txs db/testnet/txs/* @@ -37,10 +36,4 @@ db/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 diff --git a/Gruntfile.js b/Gruntfile.js index 4f1547e1..387fd7f4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -34,7 +34,7 @@ module.exports = function(grunt) { }, jshint: { all: { - src: ['Gruntfile.js', 'insight.js', 'app/**/*.js', 'lib/*.js'], + src: ['Gruntfile.js', 'insight.js', 'app/**/*.js', 'lib/*.js', 'config/*.js'], options: { jshintrc: true } diff --git a/config/config.js b/config/config.js index 76a9c14e..3be97dac 100644 --- a/config/config.js +++ b/config/config.js @@ -17,9 +17,9 @@ if (process.env.INSIGHT_NETWORK === 'livenet') { } else { env = 'testnet'; - db = './db/testnet', - port = '3001', - b_port = '18332', + db = './db/testnet'; + port = '3001'; + b_port = '18332'; p2p_port = '18333'; } @@ -71,8 +71,8 @@ module.exports = { poolMatchFile: './etc/minersPoolStrings.json', // Time to refresh the currency rate. In minutes - currencyRefresh: 10 - , keys: { + currencyRefresh: 10, + keys: { segmentio: process.env.INSIGHT_SEGMENTIO_KEY } }; diff --git a/config/express.js b/config/express.js index 32cfaa5d..4072ebf9 100644 --- a/config/express.js +++ b/config/express.js @@ -4,8 +4,7 @@ * Module dependencies. */ var express = require('express'), - helpers = require('view-helpers'), - config = require('./config') + config = require('./config'), path = require('path'); 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); //IMPORTANT: for html5mode, this line must to be before app.router - app.use(express.static(staticPath); + app.use(express.static(staticPath)); } // manual helpers