diff --git a/frontend/mempool-frontend-config.sample.json b/frontend/mempool-frontend-config.sample.json index 0312fd054..a5fe5c55e 100644 --- a/frontend/mempool-frontend-config.sample.json +++ b/frontend/mempool-frontend-config.sample.json @@ -4,5 +4,6 @@ "BISQ_ENABLED": false, "BISQ_SEPARATE_BACKEND": false, "ELCTRS_ITEMS_PER_PAGE": 25, - "KEEP_BLOCKS_AMOUNT": 8 + "KEEP_BLOCKS_AMOUNT": 8, + "SPONSORS_ENABLED": false } \ No newline at end of file diff --git a/frontend/src/app/app.constants.ts b/frontend/src/app/app.constants.ts index fb493de5a..7e817d714 100644 --- a/frontend/src/app/app.constants.ts +++ b/frontend/src/app/app.constants.ts @@ -39,6 +39,7 @@ interface Env { LIQUID_ENABLED: boolean; BISQ_ENABLED: boolean; BISQ_SEPARATE_BACKEND: boolean; + SPONSORS_ENABLED: boolean; ELCTRS_ITEMS_PER_PAGE: number; KEEP_BLOCKS_AMOUNT: number; } @@ -48,6 +49,7 @@ const defaultEnv: Env = { 'LIQUID_ENABLED': false, 'BISQ_ENABLED': false, 'BISQ_SEPARATE_BACKEND': false, + 'SPONSORS_ENABLED': false, 'ELCTRS_ITEMS_PER_PAGE': 25, 'KEEP_BLOCKS_AMOUNT': 8 }; diff --git a/frontend/src/app/components/about/about.component.html b/frontend/src/app/components/about/about.component.html index c31534ac8..a7a289b20 100644 --- a/frontend/src/app/components/about/about.component.html +++ b/frontend/src/app/components/about/about.component.html @@ -12,49 +12,53 @@

-

❤️ Sponsors

+ -
-

- - +

❤️ Sponsors

-
-
-
-
- +
+

+ + + +
+ +
+
+ +
+
- -
-
-
- @ +
+
+ @ +
+
- -
-
- -
- -
- -
-
- +
+ +
+
-
-

{{ donationObj.address }}

-

Waiting for transaction...

-
-
-
-

Donation confirmed!
Thank you!

-

If you specified a Twitter handle, the profile photo should now be visible on this page when you reload.

-
+
+
+ +
+
+

{{ donationObj.address }}

+

Waiting for transaction...

+
+
-

+
+

Donation confirmed!
Thank you!

+

If you specified a Twitter handle, the profile photo should now be visible on this page when you reload.

+
+ +

+ +

Open source

diff --git a/frontend/src/app/components/about/about.component.ts b/frontend/src/app/components/about/about.component.ts index 8e85e472a..fbdeb73dc 100644 --- a/frontend/src/app/components/about/about.component.ts +++ b/frontend/src/app/components/about/about.component.ts @@ -5,6 +5,7 @@ import { StateService } from 'src/app/services/state.service'; import { Observable } from 'rxjs'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { ApiService } from 'src/app/services/api.service'; +import { env } from '../../app.constants'; @Component({ selector: 'app-about', @@ -17,6 +18,7 @@ export class AboutComponent implements OnInit { donationStatus = 1; sponsors$: Observable; donationObj: any; + sponsorsEnabled = env.SPONSORS_ENABLED; constructor( private websocketService: WebsocketService,