From 9afe07906d53f338e3c455c960a5f3a56f2b7b68 Mon Sep 17 00:00:00 2001 From: hunicus <93150691+hunicus@users.noreply.github.com> Date: Wed, 24 May 2023 11:39:29 -0400 Subject: [PATCH] Clean out unused ts --- .../accelerator-landing.component.html | 6 +- .../accelerator-landing.component.ts | 55 +------------------ 2 files changed, 4 insertions(+), 57 deletions(-) diff --git a/frontend/src/app/components/accelerator-landing/accelerator-landing.component.html b/frontend/src/app/components/accelerator-landing/accelerator-landing.component.html index 172708df5..70d46f803 100644 --- a/frontend/src/app/components/accelerator-landing/accelerator-landing.component.html +++ b/frontend/src/app/components/accelerator-landing/accelerator-landing.component.html @@ -30,15 +30,15 @@
-
What makes Mempool Accelerator™ different from other accelerators?
+
What makes Mempool Accelerator™ different from other accelerators?

Mempool Accelerator™ strives to be fair, reliable, and transparent. The fee you pay to accelerate, for example, is based on the fair market price for blockspace—which you can verify from your own node running The Mempool Open Source Project™.

-
My transaction has been stuck for days. How quickly can Mempool Accelerator™ get it confirmed?
+
My transaction has been stuck for days. How quickly can Mempool Accelerator™ get it confirmed?

Mempool Accelerator™ prioritizes your transaction directly with mining pools based on the feerate ceiling you determine.

While it is not possible to provide a precise timeframe, your transaction will go from being "stuck" in the mempool to being in the top portion of pending transactions likely to be confirmed soon.

-
When will Mempool Accelerator™ be available?
+
When will Mempool Accelerator™ be available?

Soon™. Join the waitlist to be notified when it's ready.

diff --git a/frontend/src/app/components/accelerator-landing/accelerator-landing.component.ts b/frontend/src/app/components/accelerator-landing/accelerator-landing.component.ts index d46f041f5..07582da07 100644 --- a/frontend/src/app/components/accelerator-landing/accelerator-landing.component.ts +++ b/frontend/src/app/components/accelerator-landing/accelerator-landing.component.ts @@ -1,72 +1,19 @@ -import { ChangeDetectionStrategy, Component, Inject, LOCALE_ID, OnInit } from '@angular/core'; -import { WebsocketService } from '../../services/websocket.service'; +import { Component, OnInit } from '@angular/core'; import { SeoService } from '../../services/seo.service'; import { StateService } from '../../services/state.service'; -import { Observable } from 'rxjs'; -import { ApiService } from '../../services/api.service'; -import { IBackendInfo } from '../../interfaces/websocket.interface'; -import { Router, ActivatedRoute } from '@angular/router'; -import { map, tap } from 'rxjs/operators'; -import { ITranslators } from '../../interfaces/node-api.interface'; -import { DOCUMENT } from '@angular/common'; @Component({ selector: 'app-accelerator-landing', templateUrl: './accelerator-landing.component.html', styleUrls: ['./accelerator-landing.component.scss'], - changeDetection: ChangeDetectionStrategy.OnPush, }) export class AcceleratorLandingComponent implements OnInit { constructor( - public stateService: StateService, - private router: Router, - private route: ActivatedRoute, ) { } ngOnInit() { } - - anchorLinkClick( event: any ) { - let targetId = ""; - if( event.target.nodeName === "A" ) { - targetId = event.target.hash.substring(1); - } else { - let element = event.target; - while( element.nodeName !== "A" ) { - element = element.parentElement; - } - targetId = element.hash.substring(1); - } - if( this.route.snapshot.fragment === targetId && document.getElementById( targetId )) { - document.getElementById( targetId ).scrollIntoView(); - } - this.openEndpointContainer( targetId ); - } - - openEndpointContainer( targetId ) { - let tabHeaderHeight = 0; - if (document.getElementById( targetId + "-tab-header" )) { - tabHeaderHeight = document.getElementById( targetId + "-tab-header" ).scrollHeight; - } - if( targetId ) { - const endpointContainerEl = document.querySelector( "#" + targetId ); - const endpointContentEl = document.querySelector( "#" + targetId + " .endpoint-content" ); - const endPointContentElHeight = endpointContentEl.clientHeight; - - if( endpointContentEl.classList.contains( "open" ) ) { - endpointContainerEl.style.height = "auto"; - endpointContentEl.style.top = "-10000px"; - endpointContentEl.style.opacity = "0"; - endpointContentEl.classList.remove( "open" ); - } else { - endpointContainerEl.style.height = endPointContentElHeight + tabHeaderHeight + 28 + "px"; - endpointContentEl.style.top = tabHeaderHeight + 28 + "px"; - endpointContentEl.style.opacity = "1"; - endpointContentEl.classList.add( "open" ); - } - } - } }