frontend URLs: ./resources -> /resources

This patch was created by:
find ./frontend -type f -exec sed -i 's|\./resources|/resources|g' {} \;
This commit is contained in:
Erik Arvstedt
2022-07-11 13:32:24 +02:00
parent 90b9c5fe8a
commit 355e89ce55
18 changed files with 46 additions and 46 deletions

View File

@@ -97,7 +97,7 @@
<td *ngIf="stateService.env.MINING_DASHBOARD" class="table-cell-mined pl-lg-4">
<a class="clear-link" [routerLink]="[('/mining/pool/' + block.extras.pool.slug) | relativeUrl]">
<img width="22" height="22" 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>
</a>
</td>

View File

@@ -151,7 +151,7 @@ export class DashboardComponent implements OnInit {
if (this.stateService.env.MINING_DASHBOARD === true) {
for (const block of acc) {
// @ts-ignore: Need to add an extra field for the template
block.extras.pool.logo = `./resources/mining-pools/` +
block.extras.pool.logo = `/resources/mining-pools/` +
block.extras.pool.name.toLowerCase().replace(' ', '').replace('.', '') + '.svg';
}
}