Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Fixes for explorer #2

Merged
merged 5 commits into from
Dec 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bsq_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import bsq_globals

bsq_globals.init()
bsq_globals.chainstate_dict=load_json_file(config.dataDir + 'json/all/blocks.json')
bsq_globals.chainstate_dict=load_json_file('www/data/json/all/blocks.json')

lines_per_page=10

Expand Down
5 changes: 0 additions & 5 deletions config.py

This file was deleted.

7 changes: 7 additions & 0 deletions update_data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

DATADIR=/home/user/.local/share/seed_BTC_TESTNET_p66zj5dzhccqhes3/btc_testnet/db


rsync -r $DATADIR/db/ www/data
python bsq_json.py
6 changes: 3 additions & 3 deletions www/btc02.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ function BTCController($scope, $http) {
$scope.currentPage = 1;
$scope.numberOfPages = 12; // this we will get somehow from the server
$scope.firstLoad = true;
$scope.prevClass='disabled';
$scope.nextClass='';
$scope.prevClass = 'disabled';
$scope.nextClass = '';

$scope.createIconPopup = function () {
$('.iconPopupInit').popover({ trigger: "hover" });
};
Expand Down
6 changes: 4 additions & 2 deletions www/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
.txtype_text {
padding-left: 5px;
visibility: hidden;
font-size: 80%;
font-size: 100%;
}
.icon-file-text .txtype {
color: #818181;
Expand Down Expand Up @@ -73,13 +73,15 @@
color: #ffac00;
}

#footer {
display: none;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
Expand Down
38 changes: 19 additions & 19 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="trans in transactions">
<tr ng-repeat="trans in transactions">
<td ng-switch on="trans.txType">
<!--<img class="icon24 round-corner {{trans.txType}} iconPopupInit"
src="ico/{{trans.txType}}24t.png"
Expand Down Expand Up @@ -130,63 +130,63 @@
<td ng-switch on="trans.txType">
<span ng-switch-when="UNVERIFIED">
<span class="icon-question-sign txtype dao-tx-type-unverified-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="INVALID">
<span class="icon-warning-sign txtype dao-tx-type-invalid-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="GENESIS">
<span class="icon-rocket txtype dao-tx-type-genesis-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="TRANSFER_BSQ">
<span class="icon-retweet txtype dao-tx-type-self-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="PAY_TRADE_FEE">
<span class="icon-leaf txtype dao-tx-type-trade-fee-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="PROPOSAL">
<span class="icon-file-text txtype dao-tx-type-proposal-fee-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="COMPENSATION_REQUEST">
<span class="icon-money txtype dao-tx-type-issuance-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="REIMBURSEMENT_REQUEST">
<span class="icon-money txtype dao-tx-type-issuance-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="BLIND_VOTE">
<span class="icon-eye-close txtype dao-tx-type-vote-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="VOTE_REVEAL">
<span class="icon-eye-open txtype dao-tx-type-vote-reveal-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="LOCKUP">
<span class="icon-lock txtype dao-tx-type-lockup-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="UNLOCK">
<span class="icon-unlock txtype dao-tx-type-unlock-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="ASSET_LISTING_FEE">
<span class="icon-file-text txtype dao-tx-type-proposal-fee-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-when="PROOF_OF_BURN">
<span class="icon-file-text txtype dao-tx-type-proposal-fee-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
<span ng-switch-default>
<span class="icon-question-sign txtype dao-tx-type-unverified-icon"></span>
<span class=txtype_text>{{trans.txType}}</span>
<span class=txtype_text>{{trans.txTypeDisplayString}}</span>
</span>
</td>
<td ng-switch on="trans.txType">
Expand Down Expand Up @@ -219,9 +219,9 @@
<li class="{{nextClass}}"><a ng-href='#here' ng-click='nextPages()'>&nbsp;next&nbsp;</a></li>
</ul>
<br/>
<ul class="pagination">
<li ng-repeat="page in pages" class="{{page.class}}"><a ng-href="#here" ng-click='partToggle(page.number)'><img ng-click="alert('ciao');" src="img/{{page.img}}.png" /></a></li>
</ul>
<!--<ul class="pagination">-->
<!--<li ng-repeat="page in pages" class="{{page.class}}"><a ng-href="#here" ng-click='partToggle(page.number)'><img ng-click="alert('ciao');" src="img/{{page.img}}.png" /></a></li>-->
<!--</ul>-->
</div>
</div>
</div>
Expand Down