2020-07-13 21:46:25 +07:00
|
|
|
<div class="container-xl">
|
2020-07-13 23:22:24 +07:00
|
|
|
<h1 style="float: left;">Address</h1>
|
2020-07-13 21:46:25 +07:00
|
|
|
<a [routerLink]="['/address/' | relativeUrl, addressString]" style="line-height: 56px; margin-left: 10px;">
|
|
|
|
<span class="d-inline d-lg-none">{{ addressString | shortenString : 24 }}</span>
|
|
|
|
<span class="d-none d-lg-inline">{{ addressString }}</span>
|
|
|
|
</a>
|
|
|
|
<app-clipboard [text]="addressString"></app-clipboard>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
<ng-template [ngIf]="!isLoadingAddress && !error">
|
|
|
|
<div class="box">
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>Total received</td>
|
|
|
|
<td>{{ totalReceived / 100 }} BSQ</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Total sent</td>
|
|
|
|
<td>{{ totalSent / 100 }} BSQ</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Final balance</td>
|
|
|
|
<td>{{ (totalReceived - totalSent) / 100 }} BSQ</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="w-100 d-block d-md-none"></div>
|
|
|
|
<div class="col qrcode-col">
|
|
|
|
<div class="qr-wrapper">
|
|
|
|
<app-qrcode [data]="addressString"></app-qrcode>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<h2>{{ transactions.length | number }} transactions</h2>
|
|
|
|
|
|
|
|
<ng-template ngFor let-tx [ngForOf]="transactions">
|
|
|
|
|
|
|
|
<div class="header-bg box" style="padding: 10px; margin-bottom: 10px;">
|
|
|
|
<a [routerLink]="['/tx/' | relativeUrl, tx.id]" [state]="{ data: tx }">
|
|
|
|
<span style="float: left;" class="d-block d-md-none">{{ tx.id | shortenString : 16 }}</span>
|
|
|
|
<span style="float: left;" class="d-none d-md-block">{{ tx.id }}</span>
|
|
|
|
</a>
|
|
|
|
<div class="float-right">
|
|
|
|
{{ tx.time | date:'yyyy-MM-dd HH:mm' }}
|
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<app-bisq-transfers [tx]="tx"></app-bisq-transfers>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<ng-template [ngIf]="isLoadingAddress && !error">
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<table class="table table-borderless table-striped">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2"><span class="skeleton-loader"></span></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="w-100 d-block d-md-none"></div>
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<ng-template [ngIf]="error">
|
|
|
|
<div class="text-center">
|
|
|
|
Error loading address data.
|
|
|
|
<br>
|
|
|
|
<i>{{ error.error }}</i>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|