From 57ec70d88df1b3c7513dd1555e9da52dd2d59363 Mon Sep 17 00:00:00 2001 From: Mario Colque Date: Fri, 17 Jan 2014 11:46:12 -0300 Subject: [PATCH] rename project --- README.md | 24 ++++++++++----------- app/views/404.jade | 1 - app/views/includes/head.jade | 2 +- app/views/index.jade | 1 - bower.json | 2 +- config/env/development.js | 10 ++++----- config/env/production.js | 6 +++--- config/env/test.js | 10 ++++----- etc/bitcoind/bitcoin-testnet.conf | 6 ++---- etc/bitcoind/bitcoin.conf | 8 ++----- package.json | 10 ++++----- public/js/app.js | 30 +++++++++++++-------------- public/js/config.js | 4 ++-- public/js/controllers/address.js | 2 +- public/js/controllers/blocks.js | 2 +- public/js/controllers/header.js | 2 +- public/js/controllers/index.js | 2 +- public/js/controllers/search.js | 2 +- public/js/controllers/status.js | 4 ++-- public/js/controllers/transactions.js | 2 +- public/js/init.js | 2 +- public/js/services/address.js | 2 +- public/js/services/blocks.js | 4 ++-- public/js/services/global.js | 2 +- public/js/services/socket.js | 2 +- public/js/services/status.js | 2 +- public/js/services/transactions.js | 8 +++---- 27 files changed, 72 insertions(+), 80 deletions(-) diff --git a/README.md b/README.md index 025aa2c..dc344c6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Mystery +# Insight Project description. @@ -23,14 +23,14 @@ $ npm install -g bower * UI Bootstrap - Defined as bower module in the [bower.json](bower.json) file. ## Quick Install - To install Mystery on local, you have to fork the main repository to your + To install Insight on local, you have to fork the main repository to your computer: - https://github.com/bitpay/mystery + https://github.com/bitpay/insight Then clone it wherever you want: - $ git clone git@github.com:/mystery.git + $ git clone git@github.com:/insight.git $ cd myster @@ -63,9 +63,9 @@ $ npm install -g bower $ git clone git@github.com:gasteve/node-bufferput.git - Create symbolic link of node-bufferput in your mystery folder: + Create symbolic link of node-bufferput in your insight folder: - $ cd /mystery/node_modules + $ cd /insight/node_modules $ ln -s /node-bufferput bufferput Get bitcore from github repository: @@ -78,10 +78,10 @@ $ npm install -g bower $ npm install - Then create a symbolic link from this to your mystery repository. We need to + Then create a symbolic link from this to your insight repository. We need to use bitcore from github, not with npm for now: - $ cd mystery/node_modules + $ cd insight/node_modules $ rm -R bitcore @@ -89,7 +89,7 @@ $ npm install -g bower ## Syncing old blockchain data - Run sync from mystery repository (to save old blocks and transactions in MongoDB): + Run sync from insight repository (to save old blocks and transactions in MongoDB): $ utils/sync.js @@ -181,7 +181,7 @@ If you want to use a external bitcoind server set BITCOIND_HOST / BITCOIND_PORT ### Environment Variables Settings There are three environments provided by default, __development__, __test__, and __production__. Each of these environments has the following configuration options: -* __db__ - This is the name of the MongoDB database to use, and is set by default to __mystery-dev__ for the development environment. +* __db__ - This is the name of the MongoDB database to use, and is set by default to __insight-dev__ for the development environment. * __app.name__ - This is the name of your app or website, and can be different for each environment. You can tell which environment you are running by looking at the TITLE attribute that your app generates. To run with a different environment, just specify NODE_ENV as you call grunt: @@ -194,13 +194,13 @@ If you are using node instead of grunt, it is very similar: ### Development enviroment -To run mystery locally for development: +To run insight locally for development: $ NODE_ENV=development grunt ## Github -[Mystery](https://github.com/bitpay/mystery) +[Insight](https://github.com/bitpay/insight) ## License (The MIT License) diff --git a/app/views/404.jade b/app/views/404.jade index 2f0d9e8..af5da97 100755 --- a/app/views/404.jade +++ b/app/views/404.jade @@ -10,4 +10,3 @@ block content #error-stack-trace pre code!= error - diff --git a/app/views/includes/head.jade b/app/views/includes/head.jade index 0afd52f..d056400 100755 --- a/app/views/includes/head.jade +++ b/app/views/includes/head.jade @@ -6,7 +6,7 @@ head title= appName+' - '+title meta(http-equiv='Content-type', content='text/html;charset=UTF-8') meta(name="keywords", content="node.js, express, mongoose, mongodb, angularjs") - meta(name="description", content="Mystery") + meta(name="description", content="Insight") link(rel='shortcut icon', href='/img/icons/favicon.ico', type='image/x-icon') diff --git a/app/views/index.jade b/app/views/index.jade index 310005d..a74f173 100755 --- a/app/views/index.jade +++ b/app/views/index.jade @@ -2,4 +2,3 @@ extends layouts/default block content section.container(data-ng-view) - diff --git a/bower.json b/bower.json index cac4318..1212d2b 100644 --- a/bower.json +++ b/bower.json @@ -1,5 +1,5 @@ { - "name": "Mystery", + "name": "Insight", "version": "0.0.1", "dependencies": { "angular": "latest", diff --git a/config/env/development.js b/config/env/development.js index fbe2cb4..4820635 100755 --- a/config/env/development.js +++ b/config/env/development.js @@ -1,14 +1,14 @@ 'use strict'; module.exports = { - db: "mongodb://localhost/mystery-dev", + db: 'mongodb://localhost/insight-dev', app: { - name: "Mystery - Development" + name: 'Insight - Development' }, bitcoind: { protocol: process.env.BITCOIND_PROTO || 'http', - user: process.env.BITCOIND_USER || 'mystery', - pass: process.env.BITCOIND_PASS || 'real_mystery', + user: process.env.BITCOIND_USER || 'user', + pass: process.env.BITCOIND_PASS || 'pass', host: process.env.BITCOIND_HOST || '127.0.0.1', port: process.env.BITCOIND_PORT || '18332', disableAgent: true, @@ -16,4 +16,4 @@ module.exports = { network: 'testnet', disableP2pSync: false, disableHistoricSync: false, -} +}; diff --git a/config/env/production.js b/config/env/production.js index 5d2c3b4..f001799 100755 --- a/config/env/production.js +++ b/config/env/production.js @@ -1,8 +1,8 @@ 'use strict'; module.exports = { - db: "mongodb://localhost/mystery", + db: 'mongodb://localhost/insight', app: { - name: "Mystery - Production" + name: 'Insight - Production' } -} \ No newline at end of file +}; diff --git a/config/env/test.js b/config/env/test.js index abebba3..a4af1e1 100755 --- a/config/env/test.js +++ b/config/env/test.js @@ -1,18 +1,18 @@ 'use strict'; module.exports = { - db: "mongodb://localhost/mystery-test", + db: 'mongodb://localhost/insight-test', app: { - name: "Mystery - Test" + name: 'Insight - Test' }, port: '3301', bitcoind: { protocol: process.env.BITCOIND_PROTO || 'http', - user: process.env.BITCOIND_USER || 'mystery', - pass: process.env.BITCOIND_PASS || 'real_mystery', + user: process.env.BITCOIND_USER || 'user', + pass: process.env.BITCOIND_PASS || 'pass', host: process.env.BITCOIND_HOST || '127.0.0.1', port: process.env.BITCOIND_PORT || '18332', disableAgent: true, }, network: 'testnet', -} +}; diff --git a/etc/bitcoind/bitcoin-testnet.conf b/etc/bitcoind/bitcoin-testnet.conf index 8c5a52c..d1b7fee 100644 --- a/etc/bitcoind/bitcoin-testnet.conf +++ b/etc/bitcoind/bitcoin-testnet.conf @@ -1,5 +1,5 @@ -rpcuser=mystery -rpcpassword=real_mystery +rpcuser=user +rpcpassword=pass server=1 txindex=1 @@ -9,5 +9,3 @@ rpcallowip='192.168.1.*' rpcport=18332 testnet=3 - - diff --git a/etc/bitcoind/bitcoin.conf b/etc/bitcoind/bitcoin.conf index 936a949..ef20965 100644 --- a/etc/bitcoind/bitcoin.conf +++ b/etc/bitcoind/bitcoin.conf @@ -1,12 +1,8 @@ -rpcuser=mystery -rpcpassword=real_mystery +rpcuser=user +rpcpassword=pass server=1 txindex=1 # Allow connections outsite localhost? rpcallowip=192.168.1.* rpcallowip='192.168.1.*' - - - - diff --git a/package.json b/package.json index 3ddffc8..4f0587d 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "mystery", + "name": "insight", "version": "0.0.1", "private": true, "author": { "name": "Ryan X Charles", "email": "ryan@bitpay.com" }, - "repository": "git://github.com/bitpay/mystery.git", + "repository": "git://github.com/bitpay/insight.git", "contributors": [ { "name": "Matias Alejo Garcia", @@ -30,12 +30,12 @@ } ], "bugs": { - "url": "https://github.com/bitpay/mystery/issues" + "url": "https://github.com/bitpay/insight/issues" }, - "homepage": "https://github.com/bitpay/mystery", + "homepage": "https://github.com/bitpay/insight", "license": "MIT", "keywords": [ - "mystery", + "insight", "secret", "enigma", "riddle", diff --git a/public/js/app.js b/public/js/app.js index 397baf8..fd2fffd 100755 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,26 +1,26 @@ 'use strict'; -angular.module('mystery', +angular.module('insight', ['ngAnimate', 'ngCookies', 'ngResource', 'ngRoute', 'ui.bootstrap', 'ui.route', - 'mystery.system', - 'mystery.socket', - 'mystery.blocks', - 'mystery.transactions', + 'insight.system', + 'insight.socket', + 'insight.blocks', + 'insight.transactions', 'monospaced.qrcode', - 'mystery.address', - 'mystery.search', - 'mystery.status' + 'insight.address', + 'insight.search', + 'insight.status' ]); -angular.module('mystery.system', []); -angular.module('mystery.socket', []); -angular.module('mystery.blocks', []); -angular.module('mystery.transactions', []); -angular.module('mystery.address', []); -angular.module('mystery.search', []); -angular.module('mystery.status', []); +angular.module('insight.system', []); +angular.module('insight.socket', []); +angular.module('insight.blocks', []); +angular.module('insight.transactions', []); +angular.module('insight.address', []); +angular.module('insight.search', []); +angular.module('insight.status', []); diff --git a/public/js/config.js b/public/js/config.js index 45fd3dc..2d07439 100755 --- a/public/js/config.js +++ b/public/js/config.js @@ -1,7 +1,7 @@ 'use strict'; //Setting up route -angular.module('mystery').config(['$routeProvider', +angular.module('insight').config(['$routeProvider', function($routeProvider) { $routeProvider. when('/block/:blockHash', { @@ -32,7 +32,7 @@ angular.module('mystery').config(['$routeProvider', ]); //Setting HTML5 Location Mode -angular.module('mystery').config(['$locationProvider', +angular.module('insight').config(['$locationProvider', function($locationProvider) { $locationProvider.hashPrefix('!'); } diff --git a/public/js/controllers/address.js b/public/js/controllers/address.js index bc894a3..926f3f8 100644 --- a/public/js/controllers/address.js +++ b/public/js/controllers/address.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('mystery.address').controller('AddressController', ['$scope', '$routeParams', '$location', 'Global', 'Address', function ($scope, $routeParams, $location, Global, Address) { +angular.module('insight.address').controller('AddressController', ['$scope', '$routeParams', '$location', 'Global', 'Address', function ($scope, $routeParams, $location, Global, Address) { $scope.global = Global; $scope.findOne = function() { diff --git a/public/js/controllers/blocks.js b/public/js/controllers/blocks.js index d9277eb..fe8f059 100644 --- a/public/js/controllers/blocks.js +++ b/public/js/controllers/blocks.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('mystery.blocks').controller('BlocksController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Blocks', function ($scope, $routeParams, $location, Global, Block, Blocks) { +angular.module('insight.blocks').controller('BlocksController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Blocks', function ($scope, $routeParams, $location, Global, Block, Blocks) { $scope.global = Global; $scope.list = function() { diff --git a/public/js/controllers/header.js b/public/js/controllers/header.js index 53df9f8..fc9eed3 100755 --- a/public/js/controllers/header.js +++ b/public/js/controllers/header.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('mystery.system').controller('HeaderController', ['$scope', 'Global', function ($scope, Global) { +angular.module('insight.system').controller('HeaderController', ['$scope', 'Global', function ($scope, Global) { $scope.global = Global; $scope.menu = [ diff --git a/public/js/controllers/index.js b/public/js/controllers/index.js index 712bb88..12eec9d 100755 --- a/public/js/controllers/index.js +++ b/public/js/controllers/index.js @@ -2,7 +2,7 @@ var TRANSACTION_DISPLAYED = 5; var BLOCKS_DISPLAYED = 5; -angular.module('mystery.system').controller('IndexController', ['$scope', 'Global', 'socket', 'Blocks', 'Transactions', function($scope, Global, socket, Blocks, Transactions) { +angular.module('insight.system').controller('IndexController', ['$scope', 'Global', 'socket', 'Blocks', 'Transactions', function($scope, Global, socket, Blocks, Transactions) { $scope.global = Global; socket.on('tx', function(tx) { diff --git a/public/js/controllers/search.js b/public/js/controllers/search.js index 43a3199..a41b9fe 100644 --- a/public/js/controllers/search.js +++ b/public/js/controllers/search.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('mystery.search').controller('SearchController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Transaction', 'Address', function ($scope, $routeParams, $location, Global, Block, Transaction, Address) { +angular.module('insight.search').controller('SearchController', ['$scope', '$routeParams', '$location', 'Global', 'Block', 'Transaction', 'Address', function ($scope, $routeParams, $location, Global, Block, Transaction, Address) { $scope.global = Global; $scope.search = function() { diff --git a/public/js/controllers/status.js b/public/js/controllers/status.js index e219cec..8b5b538 100644 --- a/public/js/controllers/status.js +++ b/public/js/controllers/status.js @@ -1,8 +1,8 @@ 'use strict'; -angular.module('mystery.status').controller('StatusController', ['$scope', '$routeParams', '$location', 'Global', 'Status', function ($scope, $routeParams, $location, Global, Status) { +angular.module('insight.status').controller('StatusController', ['$scope', '$routeParams', '$location', 'Global', 'Status', function ($scope, $routeParams, $location, Global, Status) { $scope.global = Global; - + $scope.getData = function(q) { Status.get({ q: q diff --git a/public/js/controllers/transactions.js b/public/js/controllers/transactions.js index 10d5f9f..665929a 100644 --- a/public/js/controllers/transactions.js +++ b/public/js/controllers/transactions.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('mystery.transactions').controller('transactionsController', ['$scope', '$routeParams', '$location', 'Global', 'Transaction', 'TransactionsByBlock', 'TransactionsByAddress', function ($scope, $routeParams, $location, Global, Transaction, TransactionsByBlock, TransactionsByAddress) { +angular.module('insight.transactions').controller('transactionsController', ['$scope', '$routeParams', '$location', 'Global', 'Transaction', 'TransactionsByBlock', 'TransactionsByAddress', function ($scope, $routeParams, $location, Global, Transaction, TransactionsByBlock, TransactionsByAddress) { $scope.global = Global; $scope.findOne = function() { diff --git a/public/js/init.js b/public/js/init.js index b226e6f..51e012e 100755 --- a/public/js/init.js +++ b/public/js/init.js @@ -5,5 +5,5 @@ angular.element(document).ready(function() { if (window.location.hash === '#_=_') window.location.hash = '#!'; //Then init the app - angular.bootstrap(document, ['mystery']); + angular.bootstrap(document, ['insight']); }); diff --git a/public/js/services/address.js b/public/js/services/address.js index 1151fb7..6773267 100644 --- a/public/js/services/address.js +++ b/public/js/services/address.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('mystery.address').factory('Address', ['$resource', function($resource) { +angular.module('insight.address').factory('Address', ['$resource', function($resource) { return $resource('/api/addr/:addrStr', { addrStr: '@addStr' }, { diff --git a/public/js/services/blocks.js b/public/js/services/blocks.js index 6bdd578..346b650 100644 --- a/public/js/services/blocks.js +++ b/public/js/services/blocks.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('mystery.blocks').factory('Block', ['$resource', function($resource) { +angular.module('insight.blocks').factory('Block', ['$resource', function($resource) { return $resource('/api/block/:blockHash', { blockHash: '@blockHash' }, { @@ -20,6 +20,6 @@ angular.module('mystery.blocks').factory('Block', ['$resource', function($resour }); }]); -angular.module('mystery.blocks').factory('Blocks', ['$resource', function($resource) { +angular.module('insight.blocks').factory('Blocks', ['$resource', function($resource) { return $resource('/api/blocks'); }]); diff --git a/public/js/services/global.js b/public/js/services/global.js index 7900652..dfda2fc 100755 --- a/public/js/services/global.js +++ b/public/js/services/global.js @@ -1,7 +1,7 @@ 'use strict'; //Global service for global variables -angular.module('mystery.system').factory('Global', [ +angular.module('insight.system').factory('Global', [ function() { var _this = this; _this._data = { diff --git a/public/js/services/socket.js b/public/js/services/socket.js index ca8fa93..2ffe741 100644 --- a/public/js/services/socket.js +++ b/public/js/services/socket.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('mystery.socket').factory('socket', ['$rootScope', function($rootScope) { +angular.module('insight.socket').factory('socket', ['$rootScope', function($rootScope) { var socket = io.connect(); return { on: function(eventName, callback) { diff --git a/public/js/services/status.js b/public/js/services/status.js index 2a066bf..f911c33 100644 --- a/public/js/services/status.js +++ b/public/js/services/status.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('mystery.status').factory('Status', ['$resource', function($resource) { +angular.module('insight.status').factory('Status', ['$resource', function($resource) { return $resource('/api/status', { q: '@q' }); diff --git a/public/js/services/transactions.js b/public/js/services/transactions.js index 33c3795..d1b0b35 100644 --- a/public/js/services/transactions.js +++ b/public/js/services/transactions.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('mystery.transactions').factory('Transaction', ['$resource', function($resource) { +angular.module('insight.transactions').factory('Transaction', ['$resource', function($resource) { return $resource('/api/tx/:txId', { txId: '@txId' }, { @@ -20,18 +20,18 @@ angular.module('mystery.transactions').factory('Transaction', ['$resource', func }); }]); -angular.module('mystery.transactions').factory('TransactionsByBlock', ['$resource', function($resource) { +angular.module('insight.transactions').factory('TransactionsByBlock', ['$resource', function($resource) { return $resource('/api/txs', { block: '@block' }); }]); -angular.module('mystery.transactions').factory('TransactionsByAddress', ['$resource', function($resource) { +angular.module('insight.transactions').factory('TransactionsByAddress', ['$resource', function($resource) { return $resource('/api/txs', { address: '@address' }); }]); -angular.module('mystery.transactions').factory('Transactions', ['$resource', function($resource) { +angular.module('insight.transactions').factory('Transactions', ['$resource', function($resource) { return $resource('/api/txs'); }]);