mirror of
https://github.com/arnaucube/goBlockchainDataAnalysis.git
synced 2026-02-07 03:36:44 +01:00
added pages blocks, txs, addresses, and beta section
This commit is contained in:
16
web/views/addresses/addresses.html
Normal file
16
web/views/addresses/addresses.html
Normal file
@@ -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>
|
||||
24
web/views/addresses/addresses.js
Normal file
24
web/views/addresses/addresses.js
Normal file
@@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
11
web/views/beta/beta.html
Normal file
11
web/views/beta/beta.html
Normal file
@@ -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>
|
||||
14
web/views/beta/beta.js
Normal file
14
web/views/beta/beta.js
Normal file
@@ -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) {
|
||||
|
||||
});
|
||||
51
web/views/blocks/blocks.html
Normal file
51
web/views/blocks/blocks.html
Normal file
@@ -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>
|
||||
24
web/views/blocks/blocks.js
Normal file
24
web/views/blocks/blocks.js
Normal file
@@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
@@ -10,29 +10,34 @@
|
||||
<i class="fa fa-home o_sidebarIcon" aria-hidden="true"></i> Main
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#!/network">
|
||||
<i class="fa fa-chain o_sidebarIcon" aria-hidden="true"></i> Network
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#!/addressNetwork">
|
||||
<i class="fa fa-sitemap o_sidebarIcon" aria-hidden="true"></i> Address Network
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#!/sankey">
|
||||
<i class="fa fa-code-fork o_sidebarIcon" aria-hidden="true"></i> Sankey diagram
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#!/dateAnalysis">
|
||||
<i class="fa fa-bar-chart o_sidebarIcon" aria-hidden="true"></i> Date Analysis
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)">
|
||||
<i class="fa fa-area-chart o_sidebarIcon" aria-hidden="true"></i> Timeline
|
||||
<a href="#!/blocks">
|
||||
<i class="fa fa-chain o_sidebarIcon" aria-hidden="true"></i> Blocks
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#!/txs">
|
||||
<i class="fa fa-square-o o_sidebarIcon" aria-hidden="true"></i> Transactions
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#!/addresses">
|
||||
<i class="fa fa-qrcode o_sidebarIcon" aria-hidden="true"></i> Addresses
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a ng-href="#!/beta">
|
||||
<i class="fa fa-bug o_sidebarIcon" aria-hidden="true"></i> Beta
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="col-sm-12">
|
||||
BlockHeight: <a ng-href="#!/block/{{tx.blockheight}}">{{tx.blockheight}}</a>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
51
web/views/txs/txs.html
Normal file
51
web/views/txs/txs.html
Normal file
@@ -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>
|
||||
24
web/views/txs/txs.js
Normal file
24
web/views/txs/txs.js
Normal file
@@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user