Compare commits
16 Commits
v2.5.0-bet
...
v2.5.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf5821c8c8 | ||
|
|
a2e23014f4 | ||
|
|
811c14a6bd | ||
|
|
a34d87148b | ||
|
|
a45a8db479 | ||
|
|
672f71c515 | ||
|
|
2c16bbb0e9 | ||
|
|
63f7709e82 | ||
|
|
15b13ef4a4 | ||
|
|
75303c7a34 | ||
|
|
1a6048f0ab | ||
|
|
ae6a408c05 | ||
|
|
1015cbfa94 | ||
|
|
f5f0329d39 | ||
|
|
80a7b6d8d5 | ||
|
|
d7d45146c8 |
@@ -10,7 +10,7 @@ cp /etc/nginx/nginx.conf /patch/nginx.conf
|
|||||||
sed -i "s/__MEMPOOL_FRONTEND_HTTP_PORT__/${__MEMPOOL_FRONTEND_HTTP_PORT__}/g" /patch/nginx.conf
|
sed -i "s/__MEMPOOL_FRONTEND_HTTP_PORT__/${__MEMPOOL_FRONTEND_HTTP_PORT__}/g" /patch/nginx.conf
|
||||||
cat /patch/nginx.conf > /etc/nginx/nginx.conf
|
cat /patch/nginx.conf > /etc/nginx/nginx.conf
|
||||||
|
|
||||||
if [ "${LIGHTNING_DETECTED_PORT}" = "9735" ];then
|
if [ "${LIGHTNING_DETECTED_PORT}" != "" ];then
|
||||||
export LIGHTNING=true
|
export LIGHTNING=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -156,4 +156,5 @@
|
|||||||
|
|
||||||
.symbol {
|
.symbol {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<div class="symbol" i18n="difficulty-box.average-block-time">Average block time</div>
|
<div class="symbol" i18n="difficulty-box.average-block-time">Average block time</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div *ngIf="epochData.remainingBlocks < 1870; else recentlyAdjusted" class="card-text" [ngStyle]="{'color': epochData.colorAdjustments}">
|
<div *ngIf="epochData.remainingBlocks < 1870; else recentlyAdjusted" class="card-text bigger" [ngStyle]="{'color': epochData.colorAdjustments}">
|
||||||
<span *ngIf="epochData.change > 0; else arrowDownDifficulty" >
|
<span *ngIf="epochData.change > 0; else arrowDownDifficulty" >
|
||||||
<fa-icon class="retarget-sign" [icon]="['fas', 'caret-up']" [fixedWidth]="true"></fa-icon>
|
<fa-icon class="retarget-sign" [icon]="['fas', 'caret-up']" [fixedWidth]="true"></fa-icon>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -30,9 +30,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.card-text {
|
.card-text {
|
||||||
font-size: 20px;
|
font-size: 18px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin-bottom: 0.2rem;
|
||||||
|
&.bigger {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,6 +165,7 @@
|
|||||||
|
|
||||||
.symbol {
|
.symbol {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.epoch-progress {
|
.epoch-progress {
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
<h2 i18n="lightning.node-fee-distribution">Fee distribution</h2>
|
<h2 i18n="lightning.node-fee-distribution">Fee distribution</h2>
|
||||||
<div class="chart" echarts [initOpts]="chartInitOptions" [options]="chartOptions" (chartInit)="onChartInit($event)"></div>
|
<div class="chart" echarts [initOpts]="chartInitOptions" [options]="chartOptions" (chartInit)="onChartInit($event)"></div>
|
||||||
<div class="text-center loadingGraphs" *ngIf="isLoading">
|
<div class="text-center loadingGraphs" *ngIf="isLoading">
|
||||||
<div class="spinner-border text-light"></div>d
|
<div class="spinner-border text-light"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export class NodeStatisticsChartComponent implements OnInit {
|
|||||||
color: 'grey',
|
color: 'grey',
|
||||||
fontSize: 15
|
fontSize: 15
|
||||||
},
|
},
|
||||||
text: `Loading`,
|
text: $localize`No data to display yet. Try again later.`,
|
||||||
left: 'center',
|
left: 'center',
|
||||||
top: 'center'
|
top: 'center'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -133,3 +133,10 @@
|
|||||||
top: 450px;
|
top: 450px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.indexing-message {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 100px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -205,18 +205,13 @@ export class NodesChannelsMap implements OnInit {
|
|||||||
prepareChartOptions(nodes, channels) {
|
prepareChartOptions(nodes, channels) {
|
||||||
let title: object;
|
let title: object;
|
||||||
if (channels.length === 0 && !this.placeholder) {
|
if (channels.length === 0 && !this.placeholder) {
|
||||||
this.chartOptions = null;
|
this.isLoading = false;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// empty map fallback
|
|
||||||
if (channels.length === 0 && this.placeholder) {
|
|
||||||
title = {
|
title = {
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: 'white',
|
color: 'white',
|
||||||
fontSize: 18
|
fontSize: 18
|
||||||
},
|
},
|
||||||
text: $localize`No geolocation data available`,
|
text: $localize`No data to display yet. Try again later.`,
|
||||||
left: 'center',
|
left: 'center',
|
||||||
top: 'center'
|
top: 'center'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div [class]="!widget ? 'bottom-padding' : 'pb-0'" class="container pb-lg-0">
|
<div *ngIf="!indexingInProgress else indexing" [class]="!widget ? 'bottom-padding' : 'pb-0'" class="container pb-lg-0">
|
||||||
<div [class]="widget ? 'chart-widget' : 'chart'" echarts [initOpts]="chartInitOptions" [options]="chartOptions"
|
<div [class]="widget ? 'chart-widget' : 'chart'" echarts [initOpts]="chartInitOptions" [options]="chartOptions"
|
||||||
(chartInit)="onChartInit($event)">
|
(chartInit)="onChartInit($event)">
|
||||||
</div>
|
</div>
|
||||||
@@ -99,3 +99,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
|
<ng-template #indexing>
|
||||||
|
<div class="indexing-message" i18n="lightning.indexing-in-progress">Indexing in progress</div>
|
||||||
|
</ng-template>
|
||||||
|
|||||||
@@ -167,4 +167,14 @@
|
|||||||
padding-left: 105px;
|
padding-left: 105px;
|
||||||
padding-right: 105px;
|
padding-right: 105px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.indexing-message {
|
||||||
|
font-size: 15px;
|
||||||
|
color: grey;
|
||||||
|
font-weight: bold;
|
||||||
|
width: 100%;
|
||||||
|
padding-top: 100px;
|
||||||
|
text-align: center;
|
||||||
|
height: 240px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ export class NodesPerISPChartComponent implements OnInit {
|
|||||||
sortBy = 'capacity';
|
sortBy = 'capacity';
|
||||||
showUnknown = false;
|
showUnknown = false;
|
||||||
chartInstance = undefined;
|
chartInstance = undefined;
|
||||||
|
indexingInProgress = false;
|
||||||
|
|
||||||
@HostBinding('attr.dir') dir = 'ltr';
|
@HostBinding('attr.dir') dir = 'ltr';
|
||||||
|
|
||||||
@@ -88,6 +89,8 @@ export class NodesPerISPChartComponent implements OnInit {
|
|||||||
|
|
||||||
this.prepareChartOptions(data.ispRanking);
|
this.prepareChartOptions(data.ispRanking);
|
||||||
|
|
||||||
|
this.indexingInProgress = !data.ispRanking.length;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
taggedISP: data.ispRanking.length,
|
taggedISP: data.ispRanking.length,
|
||||||
clearnetCapacity: data.clearnetCapacity,
|
clearnetCapacity: data.clearnetCapacity,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 31 KiB |
Reference in New Issue
Block a user