mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 01:04:28 +01:00
Merge branch 'master' into lightning-scripts
This commit is contained in:
commit
105b67e566
@ -108,7 +108,7 @@ class PoolsParser {
|
|||||||
|
|
||||||
if (slug === undefined) {
|
if (slug === undefined) {
|
||||||
// Only keep alphanumerical
|
// Only keep alphanumerical
|
||||||
slug = poolNames[i].replace(/[^a-z0-9]/gi,'').toLowerCase();
|
slug = poolNames[i].replace(/[^a-z0-9]/gi, '').toLowerCase();
|
||||||
logger.debug(`No slug found for '${poolNames[i]}', generating it => '${slug}'`);
|
logger.debug(`No slug found for '${poolNames[i]}', generating it => '${slug}'`);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -135,10 +135,11 @@ class PoolsParser {
|
|||||||
logger.debug(`Update pools table now`);
|
logger.debug(`Update pools table now`);
|
||||||
|
|
||||||
// Add new mining pools into the database
|
// Add new mining pools into the database
|
||||||
let queryAdd: string = 'INSERT INTO pools(name, link, regexes, addresses) VALUES ';
|
let queryAdd: string = 'INSERT INTO pools(name, link, regexes, addresses, slug) VALUES ';
|
||||||
for (let i = 0; i < finalPoolDataAdd.length; ++i) {
|
for (let i = 0; i < finalPoolDataAdd.length; ++i) {
|
||||||
queryAdd += `('${finalPoolDataAdd[i].name}', '${finalPoolDataAdd[i].link}',
|
queryAdd += `('${finalPoolDataAdd[i].name}', '${finalPoolDataAdd[i].link}',
|
||||||
'${JSON.stringify(finalPoolDataAdd[i].regexes)}', '${JSON.stringify(finalPoolDataAdd[i].addresses)}'),`;
|
'${JSON.stringify(finalPoolDataAdd[i].regexes)}', '${JSON.stringify(finalPoolDataAdd[i].addresses)}',
|
||||||
|
${JSON.stringify(finalPoolDataAdd[i].slug)}),`;
|
||||||
}
|
}
|
||||||
queryAdd = queryAdd.slice(0, -1) + ';';
|
queryAdd = queryAdd.slice(0, -1) + ';';
|
||||||
|
|
||||||
@ -180,7 +181,7 @@ class PoolsParser {
|
|||||||
const [rows]: any[] = await connection.query({ sql: 'SELECT name from pools where name="Unknown"', timeout: 120000 });
|
const [rows]: any[] = await connection.query({ sql: 'SELECT name from pools where name="Unknown"', timeout: 120000 });
|
||||||
if (rows.length === 0) {
|
if (rows.length === 0) {
|
||||||
await connection.query({
|
await connection.query({
|
||||||
sql: `INSERT INTO pools(name, link, regexes, addresses)
|
sql: `INSERT INTO pools(name, link, regexes, addresses, slug)
|
||||||
VALUES("Unknown", "https://learnmeabitcoin.com/technical/coinbase-transaction", "[]", "[]", "unknown");
|
VALUES("Unknown", "https://learnmeabitcoin.com/technical/coinbase-transaction", "[]", "[]", "unknown");
|
||||||
`});
|
`});
|
||||||
} else {
|
} else {
|
||||||
@ -189,7 +190,7 @@ class PoolsParser {
|
|||||||
regexes='[]', addresses='[]',
|
regexes='[]', addresses='[]',
|
||||||
slug='unknown'
|
slug='unknown'
|
||||||
WHERE name='Unknown'
|
WHERE name='Unknown'
|
||||||
`)
|
`);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.err('Unable to insert "Unknown" mining pool');
|
logger.err('Unable to insert "Unknown" mining pool');
|
||||||
|
@ -169,7 +169,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="community-integrations-sponsor">
|
<div class="selfhosted-integrations-sponsor">
|
||||||
<h3 i18n="about.self-hosted-integrations">Self-Hosted Integrations</h3>
|
<h3 i18n="about.self-hosted-integrations">Self-Hosted Integrations</h3>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<a href="https://github.com/getumbrel/umbrel" target="_blank" title="Umbrel">
|
<a href="https://github.com/getumbrel/umbrel" target="_blank" title="Umbrel">
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
.alliances,
|
.alliances,
|
||||||
.enterprise-sponsor,
|
.enterprise-sponsor,
|
||||||
.community-integrations-sponsor,
|
.community-integrations-sponsor,
|
||||||
|
.selfhosted-integrations-sponsor,
|
||||||
.maintainers {
|
.maintainers {
|
||||||
margin-top: 68px;
|
margin-top: 68px;
|
||||||
margin-bottom: 68px;
|
margin-bottom: 68px;
|
||||||
@ -108,6 +109,7 @@
|
|||||||
.contributors,
|
.contributors,
|
||||||
.community-sponsor,
|
.community-sponsor,
|
||||||
.community-integrations-sponsor,
|
.community-integrations-sponsor,
|
||||||
|
.selfhosted-integrations-sponsor,
|
||||||
.maintainers {
|
.maintainers {
|
||||||
.wrapper {
|
.wrapper {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -181,3 +183,8 @@
|
|||||||
.no-about-margin {
|
.no-about-margin {
|
||||||
height: 10px;
|
height: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.community-integrations-sponsor {
|
||||||
|
max-width: 750px;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="pool text-left" [class]="widget ? 'widget' : ''">
|
<td class="pool text-left" [class]="widget ? 'widget' : ''">
|
||||||
<div class="tooltip-custom">
|
<div class="tooltip-custom">
|
||||||
<a class="clear-link" [routerLink]="['/mining/pool' | relativeUrl, block.extras.pool.id]">
|
<a class="clear-link" [routerLink]="['/mining/pool' | relativeUrl, block.extras.pool.slug]">
|
||||||
<img width="25" height="25" src="{{ block.extras.pool['logo'] }}"
|
<img width="25" height="25" src="{{ block.extras.pool['logo'] }}"
|
||||||
onError="this.src = './resources/mining-pools/default.svg'">
|
onError="this.src = './resources/mining-pools/default.svg'">
|
||||||
<span class="pool-name">{{ block.extras.pool.name }}</span>
|
<span class="pool-name">{{ block.extras.pool.name }}</span>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<ng-template #done>
|
<ng-template #done>
|
||||||
<ng-template [ngIf]="miner" [ngIfElse]="unknownMiner">
|
<ng-template [ngIf]="miner" [ngIfElse]="unknownMiner">
|
||||||
<a placement="bottom" [ngbTooltip]="title" [href]="url" target="_blank" class="badge badge-primary">{{ miner }}</a>
|
<a placement="bottom" [ngbTooltip]="title" [href]="url" [target]="target" class="badge badge-primary">{{ miner }}</a>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template #unknownMiner>
|
<ng-template #unknownMiner>
|
||||||
<span class="badge badge-secondary" i18n="miner.tag.unknown-miner">Unknown</span>
|
<span class="badge badge-secondary" i18n="miner.tag.unknown-miner">Unknown</span>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import { Component, Input, OnChanges, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
import { Component, Input, OnChanges, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
||||||
import { AssetsService } from 'src/app/services/assets.service';
|
import { AssetsService } from 'src/app/services/assets.service';
|
||||||
import { Transaction } from 'src/app/interfaces/electrs.interface';
|
import { Transaction } from 'src/app/interfaces/electrs.interface';
|
||||||
|
import { StateService } from 'src/app/services/state.service';
|
||||||
|
import { RelativeUrlPipe } from 'src/app/shared/pipes/relative-url/relative-url.pipe';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-miner',
|
selector: 'app-miner',
|
||||||
@ -13,11 +15,14 @@ export class MinerComponent implements OnChanges {
|
|||||||
miner = '';
|
miner = '';
|
||||||
title = '';
|
title = '';
|
||||||
url = '';
|
url = '';
|
||||||
|
target = '_blank';
|
||||||
loading = true;
|
loading = true;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private assetsService: AssetsService,
|
private assetsService: AssetsService,
|
||||||
private cd: ChangeDetectorRef,
|
private cd: ChangeDetectorRef,
|
||||||
|
public stateService: StateService,
|
||||||
|
private relativeUrlPipe: RelativeUrlPipe,
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
ngOnChanges() {
|
ngOnChanges() {
|
||||||
@ -40,7 +45,13 @@ export class MinerComponent implements OnChanges {
|
|||||||
if (pools.payout_addresses[vout.scriptpubkey_address]) {
|
if (pools.payout_addresses[vout.scriptpubkey_address]) {
|
||||||
this.miner = pools.payout_addresses[vout.scriptpubkey_address].name;
|
this.miner = pools.payout_addresses[vout.scriptpubkey_address].name;
|
||||||
this.title = $localize`:@@miner-identified-by-payout:Identified by payout address: '${vout.scriptpubkey_address}:PAYOUT_ADDRESS:'`;
|
this.title = $localize`:@@miner-identified-by-payout:Identified by payout address: '${vout.scriptpubkey_address}:PAYOUT_ADDRESS:'`;
|
||||||
this.url = pools.payout_addresses[vout.scriptpubkey_address].link;
|
const pool = pools.payout_addresses[vout.scriptpubkey_address];
|
||||||
|
if (this.stateService.env.MINING_DASHBOARD && pools.slugs[pool.name] !== undefined) {
|
||||||
|
this.url = this.relativeUrlPipe.transform(`/mining/pool/${pools.slugs[pool.name]}`);
|
||||||
|
this.target = '';
|
||||||
|
} else {
|
||||||
|
this.url = pool.link;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,9 +59,15 @@ export class MinerComponent implements OnChanges {
|
|||||||
if (pools.coinbase_tags.hasOwnProperty(tag)) {
|
if (pools.coinbase_tags.hasOwnProperty(tag)) {
|
||||||
const coinbaseAscii = this.hex2ascii(this.coinbaseTransaction.vin[0].scriptsig);
|
const coinbaseAscii = this.hex2ascii(this.coinbaseTransaction.vin[0].scriptsig);
|
||||||
if (coinbaseAscii.indexOf(tag) > -1) {
|
if (coinbaseAscii.indexOf(tag) > -1) {
|
||||||
this.miner = pools.coinbase_tags[tag].name;
|
const pool = pools.coinbase_tags[tag];
|
||||||
|
this.miner = pool.name;
|
||||||
this.title = $localize`:@@miner-identified-by-coinbase:Identified by coinbase tag: '${tag}:TAG:'`;
|
this.title = $localize`:@@miner-identified-by-coinbase:Identified by coinbase tag: '${tag}:TAG:'`;
|
||||||
this.url = pools.coinbase_tags[tag].link;
|
if (this.stateService.env.MINING_DASHBOARD && pools.slugs[pool.name] !== undefined) {
|
||||||
|
this.url = this.relativeUrlPipe.transform(`/mining/pool/${pools.slugs[pool.name]}`);
|
||||||
|
this.target = '';
|
||||||
|
} else {
|
||||||
|
this.url = pool.link;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,44 +9,104 @@
|
|||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-lg-9">
|
<div class="col-lg-9">
|
||||||
<table class="table table-borderless table-striped" style="table-layout: fixed;">
|
<table class="table table-borderless table-striped" style="table-layout: fixed;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
|
||||||
<td class="label">Tags</td>
|
<!-- Regexes desktop -->
|
||||||
<td class="text-truncate" *ngIf="poolStats.pool.regexes.length else nodata">
|
<tr *ngIf="!isMobile()">
|
||||||
<div class="scrollable">
|
<td class="label" i18n="mining.tags">Tags</td>
|
||||||
|
<td *ngIf="poolStats.pool.regexes.length else nodata">
|
||||||
|
{{ poolStats.pool.regexes }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<!-- Regexes mobile -->
|
||||||
|
<tr *ngIf="isMobile()">
|
||||||
|
<td colspan=2>
|
||||||
|
<span i18n="mining.tags" class="label">Tags</span>
|
||||||
|
<div *ngIf="poolStats.pool.regexes.length else nodata" class="overflow-auto">
|
||||||
{{ poolStats.pool.regexes }}
|
{{ poolStats.pool.regexes }}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td class="label">Addresses</td>
|
<!-- Addresses desktop -->
|
||||||
<td class="text-truncate" *ngIf="poolStats.pool.addresses.length else nodata">
|
<tr *ngIf="!isMobile()">
|
||||||
<div class="scrollable">
|
<td class="label" i18n="mining.addresses">Addresses</td>
|
||||||
<a *ngFor="let address of poolStats.pool.addresses"
|
<td *ngIf="poolStats.pool.addresses.length else nodata" style="padding-bottom: 0;">
|
||||||
|
<a [routerLink]="['/address' | relativeUrl, poolStats.pool.addresses[0]]" class="first-address">
|
||||||
|
{{ poolStats.pool.addresses[0] }}
|
||||||
|
</a>
|
||||||
|
<button *ngIf="poolStats.pool.addresses.length >= 2" style="transform: translateY(-3px);"
|
||||||
|
type="button" class="btn btn-outline-info btn-sm float-right" (click)="collapse.toggle()"
|
||||||
|
[attr.aria-expanded]="!gfg" aria-controls="collapseExample">
|
||||||
|
<span i18n="show-all">Show all</span> ({{ poolStats.pool.addresses.length }})
|
||||||
|
</button>
|
||||||
|
<div #collapse="ngbCollapse" [(ngbCollapse)]="gfg">
|
||||||
|
<a *ngFor="let address of poolStats.pool.addresses | slice: 1"
|
||||||
[routerLink]="['/address' | relativeUrl, address]">{{
|
[routerLink]="['/address' | relativeUrl, address]">{{
|
||||||
address }}<br></a>
|
address }}<br></a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<ng-template #nodata>
|
</tr>
|
||||||
<td class="right-mobile">~</td>
|
|
||||||
</ng-template>
|
<!-- Addresses mobile -->
|
||||||
|
<tr *ngIf="isMobile()">
|
||||||
|
<td colspan=2>
|
||||||
|
<span class="label" i18n="mining.addresses">Addresses</span>
|
||||||
|
<div *ngIf="poolStats.pool.addresses.length else nodatamobile">
|
||||||
|
<button *ngIf="poolStats.pool.addresses.length >= 2" type="button"
|
||||||
|
class="btn btn-outline-info btn-sm float-right small-button" (click)="collapse.toggle()"
|
||||||
|
[attr.aria-expanded]="!gfg" aria-controls="collapseExample">
|
||||||
|
<span i18n="show-all">Show all</span> ({{ poolStats.pool.addresses.length }})
|
||||||
|
</button>
|
||||||
|
<a [routerLink]="['/address' | relativeUrl, poolStats.pool.addresses[0]]">
|
||||||
|
{{ poolStats.pool.addresses[0] | shortenString: 40 }}
|
||||||
|
</a>
|
||||||
|
<div #collapse="ngbCollapse" [(ngbCollapse)]="gfg" style="width: 100%">
|
||||||
|
<a *ngFor="let address of poolStats.pool.addresses | slice: 1"
|
||||||
|
[routerLink]="['/address' | relativeUrl, address]">{{
|
||||||
|
address | shortenString: 40 }}<br></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-3">
|
<div class="col-lg-3">
|
||||||
<table class="table table-borderless table-striped">
|
<table class="table table-borderless table-striped">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
|
||||||
<td class="label">Mined Blocks</td>
|
<!-- Mined blocks desktop -->
|
||||||
|
<tr *ngIf="!isMobile()">
|
||||||
|
<td class="label" i18n="mining.mined-blocks">Mined Blocks</td>
|
||||||
<td class="data">{{ formatNumber(poolStats.blockCount, this.locale, '1.0-0') }}</td>
|
<td class="data">{{ formatNumber(poolStats.blockCount, this.locale, '1.0-0') }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<!-- Mined blocks desktop -->
|
||||||
<td class="label">Empty Blocks</td>
|
<tr *ngIf="isMobile()">
|
||||||
|
<td colspan=2>
|
||||||
|
<span class="label" i18n="mining.mined-blocks">Mined Blocks</span>
|
||||||
|
<div>{{ formatNumber(poolStats.blockCount, this.locale, '1.0-0') }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<!-- Empty blocks desktop -->
|
||||||
|
<tr *ngIf="!isMobile()">
|
||||||
|
<td class="label" i18n="mining.empty-blocks">Empty Blocks</td>
|
||||||
<td class="data">{{ formatNumber(poolStats.emptyBlocks, this.locale, '1.0-0') }}</td>
|
<td class="data">{{ formatNumber(poolStats.emptyBlocks, this.locale, '1.0-0') }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<!-- Empty blocks mobile -->
|
||||||
|
<tr *ngIf="isMobile()">
|
||||||
|
<td colspan="2">
|
||||||
|
<span class="label" i18n="mining.empty-blocks">Blocks</span>
|
||||||
|
<div>{{ formatNumber(poolStats.emptyBlocks, this.locale, '1.0-0') }}</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@ -54,14 +114,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<ng-template #nodata>
|
||||||
|
<td>~</td>
|
||||||
|
</ng-template>
|
||||||
|
<ng-template #nodatamobile>
|
||||||
|
<div>~</div>
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
<div class="chart" echarts [initOpts]="chartInitOptions" [options]="chartOptions"></div>
|
<div class="chart" echarts [initOpts]="chartInitOptions" [options]="chartOptions"></div>
|
||||||
<div class="text-center loadingGraphs" *ngIf="isLoading">
|
<div class="text-center loadingGraphs" *ngIf="isLoading">
|
||||||
<div class="spinner-border text-light"></div>
|
<div class="spinner-border text-light"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table table-borderless" [alwaysCallback]="true" infiniteScroll
|
<table class="table table-borderless" [alwaysCallback]="true" infiniteScroll [infiniteScrollDistance]="1.5"
|
||||||
[infiniteScrollDistance]="1.5" [infiniteScrollUpDistance]="1.5" [infiniteScrollThrottle]="50"
|
[infiniteScrollUpDistance]="1.5" [infiniteScrollThrottle]="50" (scrolled)="loadMore()">
|
||||||
(scrolled)="loadMore()">
|
|
||||||
<thead>
|
<thead>
|
||||||
<th class="height" i18n="latest-blocks.height">Height</th>
|
<th class="height" i18n="latest-blocks.height">Height</th>
|
||||||
<th class="timestamp" i18n="latest-blocks.timestamp">Timestamp</th>
|
<th class="timestamp" i18n="latest-blocks.timestamp">Timestamp</th>
|
||||||
@ -147,7 +213,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="mb-3" style="display:flex; position: relative">
|
<div class="mb-3" style="display:flex; position: relative">
|
||||||
<div class="skeleton-loader mr-3" style="width: 50px; height: 50px"></div>
|
<div class="skeleton-loader mr-3" style="width: 50px; height: 50px"></div>
|
||||||
<h1 class="m-0 pt-1 pt-md-0"><div class="skeleton-loader" style="position: absolute; top: 32%; width: 150px; height: 20px"></div></h1>
|
<h1 class="m-0 pt-1 pt-md-0">
|
||||||
|
<div class="skeleton-loader" style="position: absolute; top: 32%; width: 150px; height: 20px"></div>
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
@ -155,41 +223,88 @@
|
|||||||
<div class="col-lg-9">
|
<div class="col-lg-9">
|
||||||
<table class="table table-borderless table-striped">
|
<table class="table table-borderless table-striped">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
|
||||||
<td class="label">Tags</td>
|
<!-- Regexes desktop -->
|
||||||
<td class="text-truncate">
|
<tr *ngIf="!isMobile()">
|
||||||
|
<td class="label" i18n="mining.tags">Tags</td>
|
||||||
|
<td>
|
||||||
<div class="skeleton-loader"></div>
|
<div class="skeleton-loader"></div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td class="label">Addresses</td>
|
<!-- Regexes mobile -->
|
||||||
<td class="text-truncate">
|
<tr *ngIf="isMobile()">
|
||||||
<div class="scrollable">
|
<td colspan=2>
|
||||||
|
<span class="label" i18n="mining.tags">Tags</span>
|
||||||
|
<div class="overflow-auto">
|
||||||
<div class="skeleton-loader"></div>
|
<div class="skeleton-loader"></div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<!-- Addresses desktop -->
|
||||||
|
<tr *ngIf="!isMobile()">
|
||||||
|
<td class="label" i18n="mining.addresses">Addresses</td>
|
||||||
|
<td>
|
||||||
|
<div class="skeleton-loader"></div>
|
||||||
|
</td>
|
||||||
<ng-template #nodata>
|
<ng-template #nodata>
|
||||||
<td>~</td>
|
<td>~</td>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<!-- Addresses mobile -->
|
||||||
|
<tr *ngIf="isMobile()">
|
||||||
|
<td colspan=2>
|
||||||
|
<span class="label" i18n="mining.addresses">Addresses</span>
|
||||||
|
<div>
|
||||||
|
<div class="skeleton-loader"></div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-3">
|
<div class="col-lg-3">
|
||||||
<table class="table table-borderless table-striped" >
|
<table class="table table-borderless table-striped">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
|
||||||
<td class="label">Mined Blocks</td>
|
<!-- Mined blocks desktop -->
|
||||||
<td class="text-truncate">
|
<tr *ngIf="!isMobile()">
|
||||||
|
<td class="label" i18n="mining.mined-blocks">Mined Blocks</td>
|
||||||
|
<td class="data">
|
||||||
<div class="skeleton-loader"></div>
|
<div class="skeleton-loader"></div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<!-- Mined blocks desktop -->
|
||||||
<td class="label">Empty Blocks</td>
|
<tr *ngIf="isMobile()">
|
||||||
<td class="text-truncate">
|
<td colspan=2>
|
||||||
|
<span class="label" i18n="mining.mined-blocks">Mined Blocks</span>
|
||||||
|
<div>
|
||||||
|
<div class="skeleton-loader"></div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<!-- Empty blocks desktop -->
|
||||||
|
<tr *ngIf="!isMobile()">
|
||||||
|
<td class="label" i18n="mining.empty-blocks">Empty Blocks</td>
|
||||||
|
<td class="data">
|
||||||
<div class="skeleton-loader"></div>
|
<div class="skeleton-loader"></div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<!-- Empty blocks mobile -->
|
||||||
|
<tr *ngIf="isMobile()">
|
||||||
|
<td colspan="2">
|
||||||
|
<span class="label" i18n="mining.empty-blocks">Blocks</span>
|
||||||
|
<div>
|
||||||
|
<div class="skeleton-loader"></div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -45,13 +45,17 @@ div.scrollable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
width: 35%;
|
width: 30%;
|
||||||
|
@media (max-width: 767.98px) {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.data {
|
.data {
|
||||||
text-align: left;
|
text-align: right;
|
||||||
padding-left: 25%;
|
padding-left: 25%;
|
||||||
@media (max-width: 991px) {
|
@media (max-width: 992px) {
|
||||||
|
text-align: left;
|
||||||
padding-left: 12px;
|
padding-left: 12px;
|
||||||
}
|
}
|
||||||
@media (max-width: 450px) {
|
@media (max-width: 450px) {
|
||||||
@ -132,12 +136,6 @@ div.scrollable {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-mobile {
|
|
||||||
@media (max-width: 450px) {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.skeleton-loader {
|
.skeleton-loader {
|
||||||
max-width: 200px;
|
max-width: 200px;
|
||||||
}
|
}
|
||||||
@ -151,3 +149,11 @@ div.scrollable {
|
|||||||
top: 600px;
|
top: 600px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.small-button {
|
||||||
|
height: 20px;
|
||||||
|
transform: translateY(-20px);
|
||||||
|
font-size: 10px;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
@ -19,6 +19,8 @@ export class PoolComponent implements OnInit {
|
|||||||
@Input() right: number | string = 45;
|
@Input() right: number | string = 45;
|
||||||
@Input() left: number | string = 75;
|
@Input() left: number | string = 75;
|
||||||
|
|
||||||
|
gfg = true;
|
||||||
|
|
||||||
formatNumber = formatNumber;
|
formatNumber = formatNumber;
|
||||||
poolStats$: Observable<PoolStat>;
|
poolStats$: Observable<PoolStat>;
|
||||||
blocks$: Observable<BlockExtended[]>;
|
blocks$: Observable<BlockExtended[]>;
|
||||||
|
Loading…
Reference in New Issue
Block a user