sankey in frontend works, added logs system, added getLastTx in backend and frontend

This commit is contained in:
arnaucode
2017-08-07 22:00:07 +02:00
parent 2c67f57b7b
commit fe164456fb
11 changed files with 107 additions and 51 deletions

View File

@@ -3,10 +3,14 @@
<div class="col-sm-4">
<div class="panel">
<div class="panel-heading c_blueGrey300">
<h3 class="panel-title">Last blocks</h3>
<h3 class="panel-title">Last addresses</h3>
</div>
<div class="panel-body" style="max-height: 500px;overflow-y: scroll;">
<div class="list-group-item" ng-repeat="node in addresses">
<div class="row-content">
<p class="list-group-item-text">{{node.id}}</p>
</div>
</div>
</div>
</div>
</div>

View File

@@ -10,5 +10,14 @@ angular.module('app.main', ['ngRoute'])
}])
.controller('MainCtrl', function($scope, $http) {
$scope.addresses = [];
$http.get(urlapi + 'lasttx')
.then(function(data, status, headers, config) {
console.log('data success');
console.log(data);
$scope.addresses = data.data;
}, function(data, status, headers, config) {
console.log('data error');
});
});