Browse Source

rename project

generic-ui
Mario Colque 11 years ago
parent
commit
57ec70d88d
  1. 24
      README.md
  2. 1
      app/views/404.jade
  3. 2
      app/views/includes/head.jade
  4. 1
      app/views/index.jade
  5. 2
      bower.json
  6. 10
      config/env/development.js
  7. 6
      config/env/production.js
  8. 10
      config/env/test.js
  9. 6
      etc/bitcoind/bitcoin-testnet.conf
  10. 8
      etc/bitcoind/bitcoin.conf
  11. 10
      package.json
  12. 30
      public/js/app.js
  13. 4
      public/js/config.js
  14. 2
      public/js/controllers/address.js
  15. 2
      public/js/controllers/blocks.js
  16. 2
      public/js/controllers/header.js
  17. 2
      public/js/controllers/index.js
  18. 2
      public/js/controllers/search.js
  19. 4
      public/js/controllers/status.js
  20. 2
      public/js/controllers/transactions.js
  21. 2
      public/js/init.js
  22. 2
      public/js/services/address.js
  23. 4
      public/js/services/blocks.js
  24. 2
      public/js/services/global.js
  25. 2
      public/js/services/socket.js
  26. 2
      public/js/services/status.js
  27. 8
      public/js/services/transactions.js

24
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:<your_username>/mystery.git
$ git clone git@github.com:<your_username>/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 <your_path_to>/mystery/node_modules
$ cd <your_path_to>/insight/node_modules
$ ln -s <path_to>/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)

1
app/views/404.jade

@ -10,4 +10,3 @@ block content
#error-stack-trace
pre
code!= error

2
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')

1
app/views/index.jade

@ -2,4 +2,3 @@ extends layouts/default
block content
section.container(data-ng-view)

2
bower.json

@ -1,5 +1,5 @@
{
"name": "Mystery",
"name": "Insight",
"version": "0.0.1",
"dependencies": {
"angular": "latest",

10
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,
}
};

6
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'
}
}
};

10
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',
}
};

6
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

8
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.*'

10
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",

30
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', []);

4
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('!');
}

2
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() {

2
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() {

2
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 = [

2
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) {

2
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() {

4
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

2
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() {

2
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']);
});

2
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'
}, {

4
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');
}]);

2
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 = {

2
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) {

2
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'
});

8
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');
}]);

Loading…
Cancel
Save