2020-11-27 12:41:57 +01:00
|
|
|
import { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser';
|
2019-07-21 16:59:47 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
2020-11-27 12:41:57 +01:00
|
|
|
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
2020-02-16 16:15:07 +01:00
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
2020-02-29 21:32:12 +01:00
|
|
|
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
2021-08-16 23:11:34 +02:00
|
|
|
import { NgxEchartsModule } from 'ngx-echarts';
|
2020-02-16 16:15:07 +01:00
|
|
|
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
import { AppComponent } from './components/app/app.component';
|
|
|
|
|
|
|
|
import { StartComponent } from './components/start/start.component';
|
|
|
|
import { ElectrsApiService } from './services/electrs-api.service';
|
|
|
|
import { TransactionComponent } from './components/transaction/transaction.component';
|
|
|
|
import { TransactionsListComponent } from './components/transactions-list/transactions-list.component';
|
|
|
|
import { AmountComponent } from './components/amount/amount.component';
|
|
|
|
import { StateService } from './services/state.service';
|
|
|
|
import { BlockComponent } from './components/block/block.component';
|
|
|
|
import { AddressComponent } from './components/address/address.component';
|
|
|
|
import { SearchFormComponent } from './components/search-form/search-form.component';
|
2020-09-22 00:51:34 +02:00
|
|
|
import { LatestBlocksComponent } from './components/latest-blocks/latest-blocks.component';
|
2020-02-16 16:15:07 +01:00
|
|
|
import { WebsocketService } from './services/websocket.service';
|
|
|
|
import { AddressLabelsComponent } from './components/address-labels/address-labels.component';
|
|
|
|
import { MempoolBlocksComponent } from './components/mempool-blocks/mempool-blocks.component';
|
|
|
|
import { MasterPageComponent } from './components/master-page/master-page.component';
|
2021-03-13 12:24:50 +01:00
|
|
|
import { BisqMasterPageComponent } from './components/bisq-master-page/bisq-master-page.component';
|
2021-07-27 16:10:38 +02:00
|
|
|
import { LiquidMasterPageComponent } from './components/liquid-master-page/liquid-master-page.component';
|
2020-02-16 16:15:07 +01:00
|
|
|
import { AboutComponent } from './components/about/about.component';
|
|
|
|
import { TelevisionComponent } from './components/television/television.component';
|
|
|
|
import { StatisticsComponent } from './components/statistics/statistics.component';
|
|
|
|
import { BlockchainBlocksComponent } from './components/blockchain-blocks/blockchain-blocks.component';
|
|
|
|
import { BlockchainComponent } from './components/blockchain/blockchain.component';
|
2020-02-17 14:39:20 +01:00
|
|
|
import { FooterComponent } from './components/footer/footer.component';
|
2020-02-25 22:29:57 +01:00
|
|
|
import { AudioService } from './services/audio.service';
|
2020-03-17 15:53:20 +01:00
|
|
|
import { MempoolBlockComponent } from './components/mempool-block/mempool-block.component';
|
2021-12-15 20:53:12 +01:00
|
|
|
import { FeeDistributionGraphComponent } from './components/fee-distribution-graph/fee-distribution-graph.component';
|
2021-08-21 06:46:28 +02:00
|
|
|
import { IncomingTransactionsGraphComponent } from './components/incoming-transactions-graph/incoming-transactions-graph.component';
|
2021-07-17 13:58:16 +02:00
|
|
|
import { TimeSpanComponent } from './components/time-span/time-span.component';
|
2020-03-23 18:52:08 +01:00
|
|
|
import { SeoService } from './services/seo.service';
|
2020-03-29 18:59:04 +02:00
|
|
|
import { MempoolGraphComponent } from './components/mempool-graph/mempool-graph.component';
|
2022-01-06 11:59:33 +01:00
|
|
|
import { PoolRankingComponent } from './components/pool-ranking/pool-ranking.component';
|
2022-02-08 10:56:51 +01:00
|
|
|
import { PoolComponent } from './components/pool/pool.component';
|
2021-09-25 01:13:07 +02:00
|
|
|
import { LbtcPegsGraphComponent } from './components/lbtc-pegs-graph/lbtc-pegs-graph.component';
|
2020-04-28 12:10:31 +02:00
|
|
|
import { AssetComponent } from './components/asset/asset.component';
|
2022-02-05 22:20:26 +01:00
|
|
|
import { AssetsComponent } from './components/assets/assets.component';
|
|
|
|
import { AssetsNavComponent } from './components/assets/assets-nav/assets-nav.component';
|
2020-07-02 12:56:15 +02:00
|
|
|
import { StatusViewComponent } from './components/status-view/status-view.component';
|
2020-07-03 18:45:19 +02:00
|
|
|
import { MinerComponent } from './components/miner/miner.component';
|
|
|
|
import { SharedModule } from './shared/shared.module';
|
2020-07-24 17:37:35 +02:00
|
|
|
import { NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
|
2020-07-29 10:16:09 +02:00
|
|
|
import { FeesBoxComponent } from './components/fees-box/fees-box.component';
|
2020-09-21 14:41:12 +02:00
|
|
|
import { DashboardComponent } from './dashboard/dashboard.component';
|
2022-01-17 05:33:07 +01:00
|
|
|
import { DifficultyComponent } from './components/difficulty/difficulty.component';
|
2020-09-22 00:51:34 +02:00
|
|
|
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
|
2022-01-14 10:09:40 +01:00
|
|
|
import { faFilter, faAngleDown, faAngleUp, faAngleRight, faAngleLeft, faBolt, faChartArea, faCogs, faCubes, faHammer, faDatabase, faExchangeAlt, faInfoCircle,
|
2021-12-17 00:24:26 +01:00
|
|
|
faLink, faList, faSearch, faCaretUp, faCaretDown, faTachometerAlt, faThList, faTint, faTv, faAngleDoubleDown, faSortUp, faAngleDoubleUp, faChevronDown, faFileAlt, faRedoAlt, faArrowAltCircleRight, faExternalLinkAlt, faBook, faListUl } from '@fortawesome/free-solid-svg-icons';
|
2021-12-01 23:01:50 +01:00
|
|
|
import { ApiDocsComponent } from './components/docs/api-docs.component';
|
|
|
|
import { DocsComponent } from './components/docs/docs.component';
|
2021-12-17 01:11:54 +01:00
|
|
|
import { ApiDocsNavComponent } from './components/docs/api-docs-nav.component';
|
2021-12-01 23:01:50 +01:00
|
|
|
import { CodeTemplateComponent } from './components/docs/code-template.component';
|
2020-10-11 12:23:52 +02:00
|
|
|
import { TermsOfServiceComponent } from './components/terms-of-service/terms-of-service.component';
|
2021-08-02 11:42:18 +02:00
|
|
|
import { PrivacyPolicyComponent } from './components/privacy-policy/privacy-policy.component';
|
2021-07-24 21:40:11 +02:00
|
|
|
import { TrademarkPolicyComponent } from './components/trademark-policy/trademark-policy.component';
|
2020-10-26 20:58:29 +01:00
|
|
|
import { StorageService } from './services/storage.service';
|
2020-11-27 12:41:57 +01:00
|
|
|
import { HttpCacheInterceptor } from './services/http-cache.interceptor';
|
2022-01-10 12:50:21 +01:00
|
|
|
import { LanguageService } from './services/language.service';
|
2021-05-18 11:23:39 +02:00
|
|
|
import { SponsorComponent } from './components/sponsor/sponsor.component';
|
2021-10-19 13:37:45 +02:00
|
|
|
import { PushTransactionComponent } from './components/push-transaction/push-transaction.component';
|
2021-12-17 00:24:26 +01:00
|
|
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
2022-02-05 22:20:26 +01:00
|
|
|
import { AssetsFeaturedComponent } from './components/assets/assets-featured/assets-featured.component';
|
|
|
|
import { AssetGroupComponent } from './components/assets/asset-group/asset-group.component';
|
2022-02-12 21:46:42 +01:00
|
|
|
import { AssetCirculationComponent } from './components/asset-circulation/asset-circulation.component';
|
2022-02-16 09:32:12 +01:00
|
|
|
import { MiningDashboardComponent } from './components/mining-dashboard/mining-dashboard.component';
|
2022-02-18 07:26:15 +01:00
|
|
|
import { HashrateChartComponent } from './components/hashrate-chart/hashrate-chart.component';
|
2022-02-24 08:55:18 +01:00
|
|
|
import { HashrateChartPoolsComponent } from './components/hashrates-chart-pools/hashrate-chart-pools.component';
|
2022-02-18 07:26:15 +01:00
|
|
|
import { MiningStartComponent } from './components/mining-start/mining-start.component';
|
2022-02-21 19:33:03 +01:00
|
|
|
import { AmountShortenerPipe } from './shared/pipes/amount-shortener.pipe';
|
2022-02-27 16:53:16 +01:00
|
|
|
import { ShortenStringPipe } from './shared/pipes/shorten-string-pipe/shorten-string.pipe';
|
2022-03-09 21:21:44 +01:00
|
|
|
import { DifficultyAdjustmentsTable } from './components/difficulty-adjustments-table/difficulty-adjustments-table.components';
|
2022-03-10 18:35:37 +01:00
|
|
|
import { BlocksList } from './components/blocks-list/blocks-list.component';
|
2019-07-21 16:59:47 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
AboutComponent,
|
2020-02-16 16:15:07 +01:00
|
|
|
MasterPageComponent,
|
2021-03-13 12:24:50 +01:00
|
|
|
BisqMasterPageComponent,
|
2021-07-27 16:10:38 +02:00
|
|
|
LiquidMasterPageComponent,
|
2019-07-27 17:43:17 +02:00
|
|
|
TelevisionComponent,
|
2020-02-16 16:15:07 +01:00
|
|
|
BlockchainComponent,
|
|
|
|
StartComponent,
|
2019-07-23 17:13:36 +02:00
|
|
|
BlockchainBlocksComponent,
|
2020-02-16 16:15:07 +01:00
|
|
|
StatisticsComponent,
|
|
|
|
TransactionComponent,
|
|
|
|
BlockComponent,
|
|
|
|
TransactionsListComponent,
|
|
|
|
AddressComponent,
|
|
|
|
AmountComponent,
|
2020-09-22 00:51:34 +02:00
|
|
|
LatestBlocksComponent,
|
2020-02-16 16:15:07 +01:00
|
|
|
SearchFormComponent,
|
2021-07-17 13:58:16 +02:00
|
|
|
TimeSpanComponent,
|
2020-02-16 16:15:07 +01:00
|
|
|
AddressLabelsComponent,
|
|
|
|
MempoolBlocksComponent,
|
2020-02-17 14:39:20 +01:00
|
|
|
FooterComponent,
|
2020-03-17 15:53:20 +01:00
|
|
|
MempoolBlockComponent,
|
2021-12-15 20:53:12 +01:00
|
|
|
FeeDistributionGraphComponent,
|
2021-08-21 06:46:28 +02:00
|
|
|
IncomingTransactionsGraphComponent,
|
2020-03-29 18:59:04 +02:00
|
|
|
MempoolGraphComponent,
|
2022-01-06 11:59:33 +01:00
|
|
|
PoolRankingComponent,
|
2022-02-08 10:56:51 +01:00
|
|
|
PoolComponent,
|
2021-09-25 01:13:07 +02:00
|
|
|
LbtcPegsGraphComponent,
|
2020-04-28 12:10:31 +02:00
|
|
|
AssetComponent,
|
2020-05-02 11:29:34 +02:00
|
|
|
AssetsComponent,
|
2020-05-09 19:35:21 +02:00
|
|
|
MinerComponent,
|
2020-07-02 12:56:15 +02:00
|
|
|
StatusViewComponent,
|
2020-07-29 10:16:09 +02:00
|
|
|
FeesBoxComponent,
|
2020-09-21 14:41:12 +02:00
|
|
|
DashboardComponent,
|
2022-01-17 05:33:07 +01:00
|
|
|
DifficultyComponent,
|
2020-10-07 18:24:01 +02:00
|
|
|
ApiDocsComponent,
|
2021-06-06 22:06:56 +02:00
|
|
|
CodeTemplateComponent,
|
2020-10-11 12:23:52 +02:00
|
|
|
TermsOfServiceComponent,
|
2021-08-02 11:42:18 +02:00
|
|
|
PrivacyPolicyComponent,
|
2021-07-24 21:40:11 +02:00
|
|
|
TrademarkPolicyComponent,
|
2021-05-18 11:23:39 +02:00
|
|
|
SponsorComponent,
|
2021-10-19 13:37:45 +02:00
|
|
|
PushTransactionComponent,
|
2021-12-01 23:01:50 +01:00
|
|
|
DocsComponent,
|
2021-12-17 01:11:54 +01:00
|
|
|
ApiDocsNavComponent,
|
2022-02-05 22:20:26 +01:00
|
|
|
AssetsNavComponent,
|
|
|
|
AssetsFeaturedComponent,
|
|
|
|
AssetGroupComponent,
|
2022-02-12 21:46:42 +01:00
|
|
|
AssetCirculationComponent,
|
2022-02-16 09:32:12 +01:00
|
|
|
MiningDashboardComponent,
|
2022-02-18 07:26:15 +01:00
|
|
|
HashrateChartComponent,
|
2022-02-24 08:55:18 +01:00
|
|
|
HashrateChartPoolsComponent,
|
2022-02-18 07:26:15 +01:00
|
|
|
MiningStartComponent,
|
2022-02-21 19:33:03 +01:00
|
|
|
AmountShortenerPipe,
|
2022-03-09 21:21:44 +01:00
|
|
|
DifficultyAdjustmentsTable,
|
2022-03-10 18:35:37 +01:00
|
|
|
BlocksList,
|
2019-07-21 16:59:47 +02:00
|
|
|
],
|
|
|
|
imports: [
|
2020-11-06 22:30:52 +01:00
|
|
|
BrowserModule.withServerTransition({ appId: 'serverApp' }),
|
2020-11-27 12:41:57 +01:00
|
|
|
BrowserTransferStateModule,
|
2019-07-21 16:59:47 +02:00
|
|
|
AppRoutingModule,
|
2020-02-16 16:15:07 +01:00
|
|
|
HttpClientModule,
|
|
|
|
BrowserAnimationsModule,
|
2020-02-29 21:32:12 +01:00
|
|
|
InfiniteScrollModule,
|
2020-07-24 17:37:35 +02:00
|
|
|
NgbTypeaheadModule,
|
2021-12-17 00:24:26 +01:00
|
|
|
NgbModule,
|
2020-09-22 00:51:34 +02:00
|
|
|
FontAwesomeModule,
|
2020-07-03 18:45:19 +02:00
|
|
|
SharedModule,
|
2021-08-16 23:11:34 +02:00
|
|
|
NgxEchartsModule.forRoot({
|
|
|
|
echarts: () => import('echarts')
|
|
|
|
})
|
2019-07-21 16:59:47 +02:00
|
|
|
],
|
|
|
|
providers: [
|
2020-02-16 16:15:07 +01:00
|
|
|
ElectrsApiService,
|
|
|
|
StateService,
|
|
|
|
WebsocketService,
|
2020-02-25 22:29:57 +01:00
|
|
|
AudioService,
|
2020-03-23 18:52:08 +01:00
|
|
|
SeoService,
|
2020-10-26 20:58:29 +01:00
|
|
|
StorageService,
|
2022-01-10 12:50:21 +01:00
|
|
|
LanguageService,
|
2022-02-27 16:53:16 +01:00
|
|
|
ShortenStringPipe,
|
2020-11-27 12:41:57 +01:00
|
|
|
{ provide: HTTP_INTERCEPTORS, useClass: HttpCacheInterceptor, multi: true }
|
2019-07-21 16:59:47 +02:00
|
|
|
],
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
2020-09-22 00:51:34 +02:00
|
|
|
export class AppModule {
|
|
|
|
constructor(library: FaIconLibrary) {
|
|
|
|
library.addIcons(faInfoCircle);
|
|
|
|
library.addIcons(faChartArea);
|
|
|
|
library.addIcons(faTv);
|
2020-09-26 17:46:26 +02:00
|
|
|
library.addIcons(faTachometerAlt);
|
|
|
|
library.addIcons(faCubes);
|
2022-01-14 10:09:40 +01:00
|
|
|
library.addIcons(faHammer);
|
2020-10-07 18:24:01 +02:00
|
|
|
library.addIcons(faCogs);
|
2020-09-22 00:51:34 +02:00
|
|
|
library.addIcons(faThList);
|
|
|
|
library.addIcons(faList);
|
|
|
|
library.addIcons(faTachometerAlt);
|
|
|
|
library.addIcons(faDatabase);
|
2020-09-22 01:55:45 +02:00
|
|
|
library.addIcons(faSearch);
|
2020-10-26 12:29:25 +01:00
|
|
|
library.addIcons(faLink);
|
|
|
|
library.addIcons(faBolt);
|
2020-10-27 09:26:37 +01:00
|
|
|
library.addIcons(faTint);
|
2021-10-06 20:44:05 +02:00
|
|
|
library.addIcons(faFilter);
|
2020-10-27 10:34:27 +01:00
|
|
|
library.addIcons(faAngleDown);
|
|
|
|
library.addIcons(faAngleUp);
|
2020-11-16 13:27:06 +01:00
|
|
|
library.addIcons(faExchangeAlt);
|
2021-03-22 12:04:50 +01:00
|
|
|
library.addIcons(faAngleDoubleUp);
|
|
|
|
library.addIcons(faAngleDoubleDown);
|
2021-04-23 13:09:51 +02:00
|
|
|
library.addIcons(faChevronDown);
|
2021-05-12 13:57:46 +02:00
|
|
|
library.addIcons(faFileAlt);
|
2021-06-06 22:07:45 +02:00
|
|
|
library.addIcons(faRedoAlt);
|
2021-07-15 22:23:37 +02:00
|
|
|
library.addIcons(faArrowAltCircleRight);
|
2021-07-19 01:34:01 +02:00
|
|
|
library.addIcons(faExternalLinkAlt);
|
2021-07-26 21:00:40 +02:00
|
|
|
library.addIcons(faSortUp);
|
|
|
|
library.addIcons(faCaretUp);
|
|
|
|
library.addIcons(faCaretDown);
|
2021-08-13 00:49:39 +02:00
|
|
|
library.addIcons(faAngleRight);
|
|
|
|
library.addIcons(faAngleLeft);
|
2021-12-01 23:01:50 +01:00
|
|
|
library.addIcons(faBook);
|
2021-12-17 00:24:26 +01:00
|
|
|
library.addIcons(faListUl);
|
2020-09-22 00:51:34 +02:00
|
|
|
}
|
|
|
|
}
|