Merge branch 'master' into natsoni/timeline-tooltip

This commit is contained in:
natsoni committed 2024-07-26 11:04:17 +02:00
commit 54c9970386
39 files changed
+2748 -2759

No files matched your search

@@ -85,8 +85,8 @@ tr, td, th {
}
.pool-logo {
width: 22px;
height: 22px;
width: 18px;
height: 18px;
position: relative;
top: -1px;
margin-right: 2px;
@@ -83,9 +83,9 @@ export class AccelerationsListComponent implements OnInit, OnDestroy {
this.pageChange(this.page);
});
this.miningService.getMiningStats('1m').subscribe(stats => {
for (const pool of stats.pools) {
this.pools[pool.poolUniqueId] = pool;
this.miningService.getPools().subscribe(pools => {
for (const pool of pools) {
this.pools[pool.unique_id] = pool;
}
});
}
@@ -5,7 +5,7 @@
<br><br>
<h2>Privacy Policy</h2>
<h6>Updated: July 10, 2024</h6>
<h6>Updated: July 19, 2024</h6>
<br><br>
@@ -35,7 +35,7 @@
<ul>
<li>We use basic webserver logging (nginx) for sysadmin purposes, which collects your IP address along with the requests you make. These logs are deleted after 10 days, and we do not share this data with any third-party. To conceal your IP address from our webserver logs, we recommend that you use Tor Browser with our Tor v3 hidden service onion hostname.</li>
<li>We use basic webserver logging (nginx) for sysadmin purposes, which collects your IP address along with the requests you make. These logs are deleted after 10 days, and we do not share this data with any third-party.</li>
<br>
+14 -1
View File
@@ -31,6 +31,7 @@ export class MiningService {
data: MiningStats;
}
} = {};
poolsData: SinglePoolStats[] = [];
constructor(
private stateService: StateService,
@@ -57,7 +58,19 @@ export class MiningService {
);
}
}
/**
* Get names and slugs of all pools
*/
public getPools(): Observable<any[]> {
return this.poolsData.length ? of(this.poolsData) : this.apiService.listPools$(undefined).pipe(
map(response => {
this.poolsData = response.body;
return this.poolsData;
})
);
}
/**
* Set the hashrate power of ten we want to display
*/