@ -0,0 +1,16 @@ |
|||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<div class="panel"> |
||||
|
<div class="panel-heading c_deepPurpleG300to500"> |
||||
|
<h3 class="panel-title">Last addresses used</h3> |
||||
|
</div> |
||||
|
<div class="panel-body"> |
||||
|
<div class="list-group-item" ng-repeat="address in addresses"> |
||||
|
<div class="row-content"> |
||||
|
<a ng-href="#!/address/{{address.hash}}" class="list-group-item-text">{{address.hash}}</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
@ -0,0 +1,24 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
angular.module('app.addresses', ['ngRoute']) |
||||
|
|
||||
|
.config(['$routeProvider', function($routeProvider) { |
||||
|
$routeProvider.when('/addresses', { |
||||
|
templateUrl: 'views/addresses/addresses.html', |
||||
|
controller: 'AddressesCtrl' |
||||
|
}); |
||||
|
}]) |
||||
|
|
||||
|
.controller('AddressesCtrl', function($scope, $http) { |
||||
|
|
||||
|
//last addr
|
||||
|
$scope.addresses = []; |
||||
|
$http.get(urlapi + 'lastaddr') |
||||
|
.then(function(data, status, headers, config) { |
||||
|
console.log(data); |
||||
|
$scope.addresses = data.data; |
||||
|
}, function(data, status, headers, config) { |
||||
|
console.log('data error'); |
||||
|
}); |
||||
|
|
||||
|
}); |
@ -0,0 +1,11 @@ |
|||||
|
<div class="row"> |
||||
|
<div class="col-sm-12"> |
||||
|
<a ng-href="#!/network" class="btn btn-raised btn-lg c_deepPurple400"> |
||||
|
<i class="fa fa-chain o_sidebarIcon" aria-hidden="true"></i> Network |
||||
|
</a> |
||||
|
<a ng-href="#!/sankey" class="btn btn-raised btn-lg c_deepPurple400"> |
||||
|
<i class="fa fa-code-fork o_sidebarIcon" aria-hidden="true"></i> Sankey Diagram |
||||
|
</a> |
||||
|
<a ng-href="#!/beta" class="btn btn-raised btn-lg c_deepPurple400">Known addresses</a> |
||||
|
</div> |
||||
|
</div> |
@ -0,0 +1,14 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
angular.module('app.beta', ['ngRoute']) |
||||
|
|
||||
|
.config(['$routeProvider', function($routeProvider) { |
||||
|
$routeProvider.when('/beta', { |
||||
|
templateUrl: 'views/beta/beta.html', |
||||
|
controller: 'BetaCtrl' |
||||
|
}); |
||||
|
}]) |
||||
|
|
||||
|
.controller('BetaCtrl', function($scope, $http, $routeParams) { |
||||
|
|
||||
|
}); |
@ -0,0 +1,51 @@ |
|||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<div class="panel"> |
||||
|
<div class="panel-heading c_deepPurpleG300to500"> |
||||
|
<h3 class="panel-title">Last Tx with amount</h3> |
||||
|
</div> |
||||
|
<div class="panel-body"> |
||||
|
<table class="table table-hover"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>BlockHeight</th> |
||||
|
<th>Txid</th> |
||||
|
<th>Input</th> |
||||
|
<th>Output</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<tr ng-repeat="tx in txs"> |
||||
|
<td style="max-width:20px; overflow:hidden;"> |
||||
|
<a ng-href="#!/block/{{tx.blockheight}}" class="list-group-item-text"> |
||||
|
{{tx.blockheight}} |
||||
|
</a> |
||||
|
</td> |
||||
|
<td style="max-width:20px; overflow:hidden;"> |
||||
|
<a ng-href="#!/address/{{tx.from}}" class="list-group-item-text"> |
||||
|
{{tx.txid}} |
||||
|
</a> |
||||
|
</td> |
||||
|
<td style="max-width:20px; overflow:hidden;"> |
||||
|
<table><tbody><tr ng-repeat="vin in tx.vin"><td> |
||||
|
<a ng-href="#!/address/{{vin.address}}" class="list-group-item-text"> |
||||
|
{{vin.address}} |
||||
|
</a> |
||||
|
:{{vin.amount}} |
||||
|
</td></tr></tbody></table> |
||||
|
</td> |
||||
|
<td style="max-width:20px; overflow:hidden;"> |
||||
|
<table><tbody><tr ng-repeat="vout in tx.vout"><td> |
||||
|
<a ng-href="#!/address/{{vout.address}}" class="list-group-item-text"> |
||||
|
{{vout.address}} |
||||
|
</a> |
||||
|
:{{vout.value}} |
||||
|
</td></tr></tbody></table> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
@ -0,0 +1,24 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
angular.module('app.blocks', ['ngRoute']) |
||||
|
|
||||
|
.config(['$routeProvider', function($routeProvider) { |
||||
|
$routeProvider.when('/blocks', { |
||||
|
templateUrl: 'views/blocks/blocks.html', |
||||
|
controller: 'BlocksCtrl' |
||||
|
}); |
||||
|
}]) |
||||
|
|
||||
|
.controller('BlocksCtrl', function($scope, $http) { |
||||
|
|
||||
|
//last tx
|
||||
|
$scope.txs = []; |
||||
|
$http.get(urlapi + 'lasttx') |
||||
|
.then(function(data, status, headers, config) { |
||||
|
console.log(data); |
||||
|
$scope.txs = data.data; |
||||
|
}, function(data, status, headers, config) { |
||||
|
console.log('data error'); |
||||
|
}); |
||||
|
|
||||
|
}); |
@ -0,0 +1,51 @@ |
|||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<div class="panel"> |
||||
|
<div class="panel-heading c_deepPurpleG300to500"> |
||||
|
<h3 class="panel-title">Last Tx with amount</h3> |
||||
|
</div> |
||||
|
<div class="panel-body"> |
||||
|
<table class="table table-hover"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>BlockHeight</th> |
||||
|
<th>Txid</th> |
||||
|
<th>Input</th> |
||||
|
<th>Output</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<tr ng-repeat="tx in txs"> |
||||
|
<td style="max-width:20px; overflow:hidden;"> |
||||
|
<a ng-href="#!/block/{{tx.blockheight}}" class="list-group-item-text"> |
||||
|
{{tx.blockheight}} |
||||
|
</a> |
||||
|
</td> |
||||
|
<td style="max-width:20px; overflow:hidden;"> |
||||
|
<a ng-href="#!/address/{{tx.from}}" class="list-group-item-text"> |
||||
|
{{tx.txid}} |
||||
|
</a> |
||||
|
</td> |
||||
|
<td style="max-width:20px; overflow:hidden;"> |
||||
|
<table><tbody><tr ng-repeat="vin in tx.vin"><td> |
||||
|
<a ng-href="#!/address/{{vin.address}}" class="list-group-item-text"> |
||||
|
{{vin.address}} |
||||
|
</a> |
||||
|
:{{vin.amount}} |
||||
|
</td></tr></tbody></table> |
||||
|
</td> |
||||
|
<td style="max-width:20px; overflow:hidden;"> |
||||
|
<table><tbody><tr ng-repeat="vout in tx.vout"><td> |
||||
|
<a ng-href="#!/address/{{vout.address}}" class="list-group-item-text"> |
||||
|
{{vout.address}} |
||||
|
</a> |
||||
|
:{{vout.value}} |
||||
|
</td></tr></tbody></table> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
@ -0,0 +1,24 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
angular.module('app.txs', ['ngRoute']) |
||||
|
|
||||
|
.config(['$routeProvider', function($routeProvider) { |
||||
|
$routeProvider.when('/txs', { |
||||
|
templateUrl: 'views/txs/txs.html', |
||||
|
controller: 'TxsCtrl' |
||||
|
}); |
||||
|
}]) |
||||
|
|
||||
|
.controller('TxsCtrl', function($scope, $http) { |
||||
|
|
||||
|
//last tx
|
||||
|
$scope.txs = []; |
||||
|
$http.get(urlapi + 'lasttx') |
||||
|
.then(function(data, status, headers, config) { |
||||
|
console.log(data); |
||||
|
$scope.txs = data.data; |
||||
|
}, function(data, status, headers, config) { |
||||
|
console.log('data error'); |
||||
|
}); |
||||
|
|
||||
|
}); |