Skip to content

Commit

Permalink
smartfy
Browse files Browse the repository at this point in the history
  • Loading branch information
leoreinaux committed May 1, 2018
1 parent ddcd05c commit 0e15d52
Show file tree
Hide file tree
Showing 22 changed files with 54 additions and 52 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"insight",
"blockchain",
"blockexplorer",
"bitcoin",
"smartcash",
"bitcore",
"front-end"
],
Expand Down
8 changes: 4 additions & 4 deletions po/de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ msgid ""
"<strong>insight</strong> is an <a href=\"http://live.insight.is/\" target="
"\"_blank\">open-source Bitcoin blockchain explorer</a> with complete REST "
"and websocket APIs that can be used for writing web wallets and other apps "
"that need more advanced blockchain queries than provided by bitcoind RPC. "
"that need more advanced blockchain queries than provided by smartcashd RPC. "
"Check out the <a href=\"https://github.com/bitpay/insight-ui\" target=\"_blank"
"\">source code</a>."
msgstr ""
Expand Down Expand Up @@ -91,11 +91,11 @@ msgstr "Serialisierte Bytes"

#: public/views/includes/connection.html
msgid ""
"Can't connect to bitcoind to get live updates from the p2p network. (Tried "
"connecting to bitcoind at {{host}}:{{port}} and failed.)"
"Can't connect to smartcashd to get live updates from the p2p network. (Tried "
"connecting to smartcashd at {{host}}:{{port}} and failed.)"
msgstr ""
"Es ist nicht möglich mit Bitcoind zu verbinden um live Aktualisierungen vom "
"P2P Netzwerk zu erhalten. (Verbindungsversuch zu bitcoind an {{host}}:"
"P2P Netzwerk zu erhalten. (Verbindungsversuch zu smartcashd an {{host}}:"
"{{port}} ist fehlgeschlagen.)"

#: public/views/includes/connection.html
Expand Down
10 changes: 5 additions & 5 deletions po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ msgid ""
"<strong>insight</strong> is an <a href=\"http://live.insight.is/\" target="
"\"_blank\">open-source Bitcoin blockchain explorer</a> with complete REST "
"and websocket APIs that can be used for writing web wallets and other apps "
"that need more advanced blockchain queries than provided by bitcoind RPC. "
"that need more advanced blockchain queries than provided by smartcashd RPC. "
"Check out the <a href=\"https://github.com/bitpay/insight-ui\" target=\"_blank"
"\">source code</a>."
msgstr ""
Expand Down Expand Up @@ -90,11 +90,11 @@ msgstr "Bytes Serializados"

#: public/views/includes/connection.html
msgid ""
"Can't connect to bitcoind to get live updates from the p2p network. (Tried "
"connecting to bitcoind at {{host}}:{{port}} and failed.)"
"Can't connect to smartcashd to get live updates from the p2p network. (Tried "
"connecting to smartcashd at {{host}}:{{port}} and failed.)"
msgstr ""
"No se pudo conectar a bitcoind para obtener actualizaciones en vivo de la "
"red p2p. (Se intentó conectar a bitcoind de {{host}}:{{port}} y falló.)"
"No se pudo conectar a smartcashd para obtener actualizaciones en vivo de la "
"red p2p. (Se intentó conectar a smartcashd de {{host}}:{{port}} y falló.)"

#: public/views/includes/connection.html
msgid "Can't connect to insight server. Attempting to reconnect..."
Expand Down
10 changes: 5 additions & 5 deletions po/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ msgid ""
"<strong>insight</strong> is an <a href=\"http://live.insight.is/\" target="
"\"_blank\">open-source Bitcoin blockchain explorer</a> with complete REST "
"and websocket APIs that can be used for writing web wallets and other apps "
"that need more advanced blockchain queries than provided by bitcoind RPC. "
"that need more advanced blockchain queries than provided by smartcashd RPC. "
"Check out the <a href=\"https://github.com/bitpay/insight-ui\" target=\"_blank"
"\">source code</a>."
msgstr ""
"<strong>insight</strong>は、bitcoind RPCの提供するものよりも詳細なブロック"
"<strong>insight</strong>は、smartcashd RPCの提供するものよりも詳細なブロック"
"チェインへの問い合わせを必要とするウェブウォレットやその他のアプリを書くのに"
"使える、完全なRESTおよびwebsocket APIを備えた<a href=\"http://live.insight."
"is/\" target=\"_blank\">オープンソースのビットコインブロックエクスプローラ</"
Expand Down Expand Up @@ -104,10 +104,10 @@ msgstr "シリアライズ後の容量 (バイト)"

#: public/views/includes/connection.html
msgid ""
"Can't connect to bitcoind to get live updates from the p2p network. (Tried "
"connecting to bitcoind at {{host}}:{{port}} and failed.)"
"Can't connect to smartcashd to get live updates from the p2p network. (Tried "
"connecting to smartcashd at {{host}}:{{port}} and failed.)"
msgstr ""
"P2Pネットワークからライブ情報を取得するためにbitcoindへ接続することができませ"
"P2Pネットワークからライブ情報を取得するためにsmartcashdへ接続することができませ"
"んでした。({{host}}:{{port}} への接続を試みましたが、失敗しました。)"

#: public/views/includes/connection.html
Expand Down
2 changes: 1 addition & 1 deletion public/css/main.min.css

Large diffs are not rendered by default.

Binary file added public/img/smartlogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="fragment" content="!">
<title data-ng-bind="$root.title + $root.titleDetail + ' | Insight'">Insight</title>
<meta name="keywords" content="bitcoins, transactions, blocks, address, block chain, best block, mining difficulty, hash serialized">
<meta name="description" content="Bitcoin Insight. View detailed information on all bitcoin transactions and block. {{ $root.title + $root.titleDetail }}">
<meta name="keywords" content="smartcash, transactions, blocks, address, block chain, best block, mining difficulty, hash serialized">
<meta name="description" content="Smartcash Insight. View detailed information on all smartcash transactions and block. {{ $root.title + $root.titleDetail }}">
<link rel="shortcut icon" href="img/icons/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,400italic">
<link rel="stylesheet" href="css/main.min.css">
Expand Down
4 changes: 2 additions & 2 deletions public/js/main.min.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions public/src/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ margin-left: 0;
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {background-color: #373D42;}

.navbar-default {
background-color: #8DC429;
background-color: #f4b517;
margin: 0;
border: 0;
}
Expand Down Expand Up @@ -162,7 +162,7 @@ margin-left: 0;

.navbar-default .navbar-brand {
color: #FFFFFF;
padding: 20px 15px;
padding: 13px 15px;
}

.navbar-form .form-control {
Expand Down Expand Up @@ -316,7 +316,7 @@ margin-left: 0;
border-radius: 2px;
}
.btn-primary {
background-color: #8DC429;
background-color: #f4b517;
border: 2px solid #76AF0F;
}

Expand Down Expand Up @@ -363,7 +363,7 @@ margin-left: 0;
}

.txvalues-primary {
background-color: #8DC429;
background-color: #f4b517;
}

.txvalues-default {
Expand All @@ -386,7 +386,7 @@ margin-left: 0;
font-size: 14px;
font-weight: normal;
}
.progress-bar-info { background-color: #8DC429; }
.progress-bar-info { background-color: #f4b517; }

/* Set the fixed height of the footer here */
#footer {
Expand Down Expand Up @@ -826,7 +826,7 @@ a.v_highlight_more {
}
.txvalues-primary {
background: none;
color: #8DC429;
color: #f4b517;
}
.txvalues-default {
background: none;
Expand Down
2 changes: 1 addition & 1 deletion public/src/js/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var defaultLanguage = localStorage.getItem('insight-language') || 'en';
var defaultCurrency = localStorage.getItem('insight-currency') || 'BTC';
var defaultCurrency = localStorage.getItem('insight-currency') || 'SMART';

angular.module('insight',[
'ngAnimate',
Expand Down
10 changes: 5 additions & 5 deletions public/src/js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ angular.module('insight').config(function($routeProvider) {
$routeProvider.
when('/block/:blockHash', {
templateUrl: 'views/block.html',
title: 'Bitcoin Block '
title: 'Smartcash Block '
}).
when('/block-index/:blockHeight', {
controller: 'BlocksController',
Expand All @@ -17,23 +17,23 @@ angular.module('insight').config(function($routeProvider) {
}).
when('/tx/:txId/:v_type?/:v_index?', {
templateUrl: 'views/transaction.html',
title: 'Bitcoin Transaction '
title: 'Smartcash Transaction '
}).
when('/', {
templateUrl: 'views/index.html',
title: 'Home'
}).
when('/blocks', {
templateUrl: 'views/block_list.html',
title: 'Bitcoin Blocks solved Today'
title: 'Smartcash Blocks solved Today'
}).
when('/blocks-date/:blockDate/:startTimestamp?', {
templateUrl: 'views/block_list.html',
title: 'Bitcoin Blocks solved '
title: 'Smartcash Blocks solved '
}).
when('/address/:addrStr', {
templateUrl: 'views/address.html',
title: 'Bitcoin Address '
title: 'Smartcash Address '
}).
when('/status', {
templateUrl: 'views/status.html',
Expand Down
6 changes: 3 additions & 3 deletions public/src/js/controllers/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ angular.module('insight.address').controller('AddressController',
var addrStr = $routeParams.addrStr;

var _startSocket = function() {
socket.on('bitcoind/addresstxid', function(data) {
socket.on('smartcashd/addresstxid', function(data) {
if (data.address === addrStr) {
$rootScope.$broadcast('tx', data.txid);
var base = document.querySelector('base');
var beep = new Audio(base.href + '/sound/transaction.mp3');
beep.play();
}
});
socket.emit('subscribe', 'bitcoind/addresstxid', [addrStr]);
socket.emit('subscribe', 'smartcashd/addresstxid', [addrStr]);
};

var _stopSocket = function () {
socket.emit('unsubscribe', 'bitcoind/addresstxid', [addrStr]);
socket.emit('unsubscribe', 'smartcashd/addresstxid', [addrStr]);
};

socket.on('connect', function() {
Expand Down
4 changes: 2 additions & 2 deletions public/src/js/controllers/currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ angular.module('insight.currency').controller('CurrencyController',

if (this.symbol === 'USD') {
response = _roundFloat((value * this.factor), 2);
} else if (this.symbol === 'mBTC') {
} else if (this.symbol === 'mSMART') {
this.factor = 1000;
response = _roundFloat((value * this.factor), 5);
} else if (this.symbol === 'bits') {
Expand All @@ -47,7 +47,7 @@ angular.module('insight.currency').controller('CurrencyController',
Currency.get({}, function(res) {
$rootScope.currency.factor = $rootScope.currency.bitstamp = res.data.bitstamp;
});
} else if (currency === 'mBTC') {
} else if (currency === 'mSMART') {
$rootScope.currency.factor = 1000;
} else if (currency === 'bits') {
$rootScope.currency.factor = 1000000;
Expand Down
Loading

0 comments on commit 0e15d52

Please sign in to comment.