2019-07-21 16:59:47 +02:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { HttpClientModule } 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';
|
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';
|
|
|
|
import { AboutComponent } from './components/about/about.component';
|
|
|
|
import { TelevisionComponent } from './components/television/television.component';
|
|
|
|
import { StatisticsComponent } from './components/statistics/statistics.component';
|
|
|
|
import { ChartistComponent } from './components/statistics/chartist.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';
|
|
|
|
import { FeeDistributionGraphComponent } from './components/fee-distribution-graph/fee-distribution-graph.component';
|
2020-03-22 22:07:31 +01:00
|
|
|
import { TimespanComponent } from './components/timespan/timespan.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';
|
2020-04-28 12:10:31 +02:00
|
|
|
import { AssetComponent } from './components/asset/asset.component';
|
2020-05-02 11:29:34 +02:00
|
|
|
import { AssetsComponent } from './assets/assets.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';
|
2020-09-22 00:51:34 +02:00
|
|
|
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
|
2020-09-26 17:46:26 +02:00
|
|
|
import { faChartArea, faCube, faCubes, faDatabase, faInfo, faInfoCircle, faList, faQuestion, faQuestionCircle, faSearch, faTachometerAlt, faThList, faTv } from '@fortawesome/free-solid-svg-icons';
|
2019-07-21 16:59:47 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
AboutComponent,
|
2020-02-16 16:15:07 +01:00
|
|
|
MasterPageComponent,
|
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,
|
2020-03-22 22:07:31 +01:00
|
|
|
TimespanComponent,
|
2020-02-16 16:15:07 +01:00
|
|
|
AddressLabelsComponent,
|
|
|
|
MempoolBlocksComponent,
|
|
|
|
ChartistComponent,
|
2020-02-17 14:39:20 +01:00
|
|
|
FooterComponent,
|
2020-03-17 15:53:20 +01:00
|
|
|
MempoolBlockComponent,
|
|
|
|
FeeDistributionGraphComponent,
|
2020-03-29 18:59:04 +02:00
|
|
|
MempoolGraphComponent,
|
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,
|
2019-07-21 16:59:47 +02:00
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
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,
|
2020-09-22 00:51:34 +02:00
|
|
|
FontAwesomeModule,
|
2020-07-03 18:45:19 +02:00
|
|
|
SharedModule,
|
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,
|
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);
|
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-09-22 00:51:34 +02:00
|
|
|
}
|
|
|
|
}
|