mirror of
https://github.com/mempool/mempool.git
synced 2025-01-19 05:34:03 +01:00
Addig fronend flag (SPONSORS_ENABLED) to enable Sponsors in the gui.
refs #122
This commit is contained in:
parent
b6738dd9e8
commit
5b8dbfca74
@ -4,5 +4,6 @@
|
|||||||
"BISQ_ENABLED": false,
|
"BISQ_ENABLED": false,
|
||||||
"BISQ_SEPARATE_BACKEND": false,
|
"BISQ_SEPARATE_BACKEND": false,
|
||||||
"ELCTRS_ITEMS_PER_PAGE": 25,
|
"ELCTRS_ITEMS_PER_PAGE": 25,
|
||||||
"KEEP_BLOCKS_AMOUNT": 8
|
"KEEP_BLOCKS_AMOUNT": 8,
|
||||||
|
"SPONSORS_ENABLED": false
|
||||||
}
|
}
|
@ -39,6 +39,7 @@ interface Env {
|
|||||||
LIQUID_ENABLED: boolean;
|
LIQUID_ENABLED: boolean;
|
||||||
BISQ_ENABLED: boolean;
|
BISQ_ENABLED: boolean;
|
||||||
BISQ_SEPARATE_BACKEND: boolean;
|
BISQ_SEPARATE_BACKEND: boolean;
|
||||||
|
SPONSORS_ENABLED: boolean;
|
||||||
ELCTRS_ITEMS_PER_PAGE: number;
|
ELCTRS_ITEMS_PER_PAGE: number;
|
||||||
KEEP_BLOCKS_AMOUNT: number;
|
KEEP_BLOCKS_AMOUNT: number;
|
||||||
}
|
}
|
||||||
@ -48,6 +49,7 @@ const defaultEnv: Env = {
|
|||||||
'LIQUID_ENABLED': false,
|
'LIQUID_ENABLED': false,
|
||||||
'BISQ_ENABLED': false,
|
'BISQ_ENABLED': false,
|
||||||
'BISQ_SEPARATE_BACKEND': false,
|
'BISQ_SEPARATE_BACKEND': false,
|
||||||
|
'SPONSORS_ENABLED': false,
|
||||||
'ELCTRS_ITEMS_PER_PAGE': 25,
|
'ELCTRS_ITEMS_PER_PAGE': 25,
|
||||||
'KEEP_BLOCKS_AMOUNT': 8
|
'KEEP_BLOCKS_AMOUNT': 8
|
||||||
};
|
};
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
|
<ng-template [ngIf]="sponsorsEnabled">
|
||||||
|
|
||||||
<h2>❤️ Sponsors</h2>
|
<h2>❤️ Sponsors</h2>
|
||||||
|
|
||||||
<div *ngFor="let sponsor of sponsors$ | async; let i = index" (click)="openTwitterProfile(sponsor.handle)" class="profile_photo d-inline-block" [class.ml-3]="i > 0" [ngStyle]="{'background-image': 'url(' + sponsor.imageUrl + ')'}" [title]="sponsor.handle"></div>
|
<div *ngFor="let sponsor of sponsors$ | async; let i = index" (click)="openTwitterProfile(sponsor.handle)" class="profile_photo d-inline-block" [class.ml-3]="i > 0" [ngStyle]="{'background-image': 'url(' + sponsor.imageUrl + ')'}" [title]="sponsor.handle"></div>
|
||||||
@ -56,6 +58,8 @@
|
|||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
<h2>Open source</h2>
|
<h2>Open source</h2>
|
||||||
|
|
||||||
<a target="_blank" class="b2812e30 f2874b88 fw6 mb3 mt2 truncate black-80 f4 link" rel="noopener noreferrer nofollow" href="https://github.com/mempool/mempool">
|
<a target="_blank" class="b2812e30 f2874b88 fw6 mb3 mt2 truncate black-80 f4 link" rel="noopener noreferrer nofollow" href="https://github.com/mempool/mempool">
|
||||||
|
@ -5,6 +5,7 @@ import { StateService } from 'src/app/services/state.service';
|
|||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
import { ApiService } from 'src/app/services/api.service';
|
import { ApiService } from 'src/app/services/api.service';
|
||||||
|
import { env } from '../../app.constants';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-about',
|
selector: 'app-about',
|
||||||
@ -17,6 +18,7 @@ export class AboutComponent implements OnInit {
|
|||||||
donationStatus = 1;
|
donationStatus = 1;
|
||||||
sponsors$: Observable<any>;
|
sponsors$: Observable<any>;
|
||||||
donationObj: any;
|
donationObj: any;
|
||||||
|
sponsorsEnabled = env.SPONSORS_ENABLED;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private websocketService: WebsocketService,
|
private websocketService: WebsocketService,
|
||||||
|
Loading…
Reference in New Issue
Block a user