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