2020-07-03 23:45:19 +07:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { CommonModule } from '@angular/common';
|
2022-05-24 13:48:45 +04:00
|
|
|
import { NgbCollapse, NgbCollapseModule, NgbRadioGroup, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
|
2022-05-19 23:47:44 +04:00
|
|
|
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
|
|
|
|
import { faFilter, faAngleDown, faAngleUp, faAngleRight, faAngleLeft, faBolt, faChartArea, faCogs, faCubes, faHammer, faDatabase, faExchangeAlt, faInfoCircle,
|
|
|
|
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';
|
|
|
|
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
|
|
import { MasterPageComponent } from '../components/master-page/master-page.component';
|
|
|
|
import { BisqMasterPageComponent } from '../components/bisq-master-page/bisq-master-page.component';
|
|
|
|
import { LiquidMasterPageComponent } from '../components/liquid-master-page/liquid-master-page.component';
|
|
|
|
import { AboutComponent } from '../components/about/about.component';
|
2020-07-03 23:45:19 +07:00
|
|
|
import { VbytesPipe } from './pipes/bytes-pipe/vbytes.pipe';
|
|
|
|
import { ShortenStringPipe } from './pipes/shorten-string-pipe/shorten-string.pipe';
|
|
|
|
import { CeilPipe } from './pipes/math-ceil/math-ceil.pipe';
|
|
|
|
import { Hex2asciiPipe } from './pipes/hex2ascii/hex2ascii.pipe';
|
2021-05-01 03:55:02 +04:00
|
|
|
import { Decimal2HexPipe } from './pipes/decimal2hex/decimal2hex.pipe';
|
2021-08-18 18:57:35 +05:30
|
|
|
import { FeeRoundingPipe } from './pipes/fee-rounding/fee-rounding.pipe';
|
2020-11-21 04:47:39 +09:00
|
|
|
import { AsmStylerPipe } from './pipes/asm-styler/asm-styler.pipe';
|
2021-07-26 16:00:40 -03:00
|
|
|
import { AbsolutePipe } from './pipes/absolute/absolute.pipe';
|
2020-07-03 23:45:19 +07:00
|
|
|
import { RelativeUrlPipe } from './pipes/relative-url/relative-url.pipe';
|
|
|
|
import { ScriptpubkeyTypePipe } from './pipes/scriptpubkey-type-pipe/scriptpubkey-type.pipe';
|
|
|
|
import { BytesPipe } from './pipes/bytes-pipe/bytes.pipe';
|
|
|
|
import { WuBytesPipe } from './pipes/bytes-pipe/wubytes.pipe';
|
2022-04-24 22:53:27 +04:00
|
|
|
import { BlockchainComponent } from '../components/blockchain/blockchain.component';
|
2020-07-11 00:17:13 +07:00
|
|
|
import { TimeSinceComponent } from '../components/time-since/time-since.component';
|
2021-07-17 08:58:16 -03:00
|
|
|
import { TimeUntilComponent } from '../components/time-until/time-until.component';
|
2020-07-13 15:16:12 +07:00
|
|
|
import { ClipboardComponent } from '../components/clipboard/clipboard.component';
|
2020-07-13 21:46:25 +07:00
|
|
|
import { QrcodeComponent } from '../components/qrcode/qrcode.component';
|
2020-07-14 21:26:02 +07:00
|
|
|
import { FiatComponent } from '../fiat/fiat.component';
|
2021-06-06 17:06:56 -03:00
|
|
|
import { NgbNavModule, NgbTooltipModule, NgbButtonsModule, NgbPaginationModule, NgbDropdownModule, NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap';
|
2020-07-19 14:54:42 +07:00
|
|
|
import { TxFeaturesComponent } from '../components/tx-features/tx-features.component';
|
|
|
|
import { TxFeeRatingComponent } from '../components/tx-fee-rating/tx-fee-rating.component';
|
2020-07-24 18:41:15 +07:00
|
|
|
import { ReactiveFormsModule } from '@angular/forms';
|
2021-05-12 14:51:55 +04:00
|
|
|
import { LanguageSelectorComponent } from '../components/language-selector/language-selector.component';
|
2021-05-13 19:23:43 +04:00
|
|
|
import { ColoredPriceDirective } from './directives/colored-price.directive';
|
2022-04-24 22:53:27 +04:00
|
|
|
import { NoSanitizePipe } from './pipes/no-sanitize.pipe';
|
|
|
|
import { MempoolBlocksComponent } from '../components/mempool-blocks/mempool-blocks.component';
|
|
|
|
import { BlockchainBlocksComponent } from '../components/blockchain-blocks/blockchain-blocks.component';
|
|
|
|
import { AmountComponent } from '../components/amount/amount.component';
|
|
|
|
import { RouterModule } from '@angular/router';
|
2022-05-16 16:50:42 +02:00
|
|
|
import { CapAddressPipe } from './pipes/cap-address-pipe/cap-address-pipe';
|
2022-05-19 23:47:44 +04:00
|
|
|
import { StartComponent } from '../components/start/start.component';
|
|
|
|
import { TransactionComponent } from '../components/transaction/transaction.component';
|
|
|
|
import { TransactionsListComponent } from '../components/transactions-list/transactions-list.component';
|
|
|
|
import { BlockComponent } from '../components/block/block.component';
|
2022-06-14 00:33:48 +00:00
|
|
|
import { BlockOverviewGraphComponent } from '../components/block-overview-graph/block-overview-graph.component';
|
2022-06-15 01:40:05 +00:00
|
|
|
import { BlockOverviewTooltipComponent } from '../components/block-overview-tooltip/block-overview-tooltip.component';
|
2022-05-19 23:47:44 +04:00
|
|
|
import { AddressComponent } from '../components/address/address.component';
|
|
|
|
import { SearchFormComponent } from '../components/search-form/search-form.component';
|
|
|
|
import { AddressLabelsComponent } from '../components/address-labels/address-labels.component';
|
|
|
|
import { FooterComponent } from '../components/footer/footer.component';
|
|
|
|
import { TimeSpanComponent } from '../components/time-span/time-span.component';
|
|
|
|
import { AssetComponent } from '../components/asset/asset.component';
|
|
|
|
import { AssetsComponent } from '../components/assets/assets.component';
|
|
|
|
import { AssetsNavComponent } from '../components/assets/assets-nav/assets-nav.component';
|
|
|
|
import { StatusViewComponent } from '../components/status-view/status-view.component';
|
|
|
|
import { FeesBoxComponent } from '../components/fees-box/fees-box.component';
|
|
|
|
import { DifficultyComponent } from '../components/difficulty/difficulty.component';
|
|
|
|
import { TermsOfServiceComponent } from '../components/terms-of-service/terms-of-service.component';
|
|
|
|
import { PrivacyPolicyComponent } from '../components/privacy-policy/privacy-policy.component';
|
|
|
|
import { TrademarkPolicyComponent } from '../components/trademark-policy/trademark-policy.component';
|
|
|
|
import { SponsorComponent } from '../components/sponsor/sponsor.component';
|
|
|
|
import { PushTransactionComponent } from '../components/push-transaction/push-transaction.component';
|
|
|
|
import { AssetsFeaturedComponent } from '../components/assets/assets-featured/assets-featured.component';
|
|
|
|
import { AssetGroupComponent } from '../components/assets/asset-group/asset-group.component';
|
|
|
|
import { AssetCirculationComponent } from '../components/asset-circulation/asset-circulation.component';
|
|
|
|
import { AmountShortenerPipe } from '../shared/pipes/amount-shortener.pipe';
|
|
|
|
import { DifficultyAdjustmentsTable } from '../components/difficulty-adjustments-table/difficulty-adjustments-table.components';
|
|
|
|
import { BlocksList } from '../components/blocks-list/blocks-list.component';
|
|
|
|
import { RewardStatsComponent } from '../components/reward-stats/reward-stats.component';
|
|
|
|
import { DataCyDirective } from '../data-cy.directive';
|
|
|
|
import { LoadingIndicatorComponent } from '../components/loading-indicator/loading-indicator.component';
|
|
|
|
import { IndexingProgressComponent } from '../components/indexing-progress/indexing-progress.component';
|
2022-05-31 22:21:59 +04:00
|
|
|
import { SvgImagesComponent } from '../components/svg-images/svg-images.component';
|
2022-04-27 02:52:23 +04:00
|
|
|
import { ChangeComponent } from '../components/change/change.component';
|
2022-05-19 23:47:44 +04:00
|
|
|
|
2020-07-03 23:45:19 +07:00
|
|
|
@NgModule({
|
|
|
|
declarations: [
|
2020-07-19 14:54:42 +07:00
|
|
|
ClipboardComponent,
|
|
|
|
TimeSinceComponent,
|
2021-07-17 08:58:16 -03:00
|
|
|
TimeUntilComponent,
|
2020-07-19 14:54:42 +07:00
|
|
|
QrcodeComponent,
|
|
|
|
FiatComponent,
|
|
|
|
TxFeaturesComponent,
|
|
|
|
TxFeeRatingComponent,
|
2021-05-12 14:51:55 +04:00
|
|
|
LanguageSelectorComponent,
|
2020-07-03 23:45:19 +07:00
|
|
|
ScriptpubkeyTypePipe,
|
|
|
|
RelativeUrlPipe,
|
2022-04-24 22:53:27 +04:00
|
|
|
NoSanitizePipe,
|
2020-07-03 23:45:19 +07:00
|
|
|
Hex2asciiPipe,
|
2020-11-21 04:47:39 +09:00
|
|
|
AsmStylerPipe,
|
2021-07-26 16:00:40 -03:00
|
|
|
AbsolutePipe,
|
2020-07-03 23:45:19 +07:00
|
|
|
BytesPipe,
|
|
|
|
VbytesPipe,
|
|
|
|
WuBytesPipe,
|
|
|
|
CeilPipe,
|
|
|
|
ShortenStringPipe,
|
2022-05-16 16:50:42 +02:00
|
|
|
CapAddressPipe,
|
2021-05-01 03:55:02 +04:00
|
|
|
Decimal2HexPipe,
|
2021-08-18 18:57:35 +05:30
|
|
|
FeeRoundingPipe,
|
2021-05-13 19:23:43 +04:00
|
|
|
ColoredPriceDirective,
|
2022-04-24 22:53:27 +04:00
|
|
|
BlockchainComponent,
|
|
|
|
MempoolBlocksComponent,
|
|
|
|
BlockchainBlocksComponent,
|
|
|
|
AmountComponent,
|
2022-05-19 23:47:44 +04:00
|
|
|
AboutComponent,
|
|
|
|
MasterPageComponent,
|
|
|
|
BisqMasterPageComponent,
|
|
|
|
LiquidMasterPageComponent,
|
|
|
|
StartComponent,
|
|
|
|
TransactionComponent,
|
|
|
|
BlockComponent,
|
2022-06-14 00:33:48 +00:00
|
|
|
BlockOverviewGraphComponent,
|
2022-06-15 01:40:05 +00:00
|
|
|
BlockOverviewTooltipComponent,
|
2022-05-19 23:47:44 +04:00
|
|
|
TransactionsListComponent,
|
|
|
|
AddressComponent,
|
|
|
|
SearchFormComponent,
|
|
|
|
TimeSpanComponent,
|
|
|
|
AddressLabelsComponent,
|
|
|
|
FooterComponent,
|
|
|
|
AssetComponent,
|
|
|
|
AssetsComponent,
|
|
|
|
StatusViewComponent,
|
|
|
|
FeesBoxComponent,
|
|
|
|
DifficultyComponent,
|
|
|
|
TermsOfServiceComponent,
|
|
|
|
PrivacyPolicyComponent,
|
|
|
|
TrademarkPolicyComponent,
|
|
|
|
SponsorComponent,
|
|
|
|
PushTransactionComponent,
|
|
|
|
AssetsNavComponent,
|
|
|
|
AssetsFeaturedComponent,
|
|
|
|
AssetGroupComponent,
|
|
|
|
AssetCirculationComponent,
|
|
|
|
AmountShortenerPipe,
|
|
|
|
DifficultyAdjustmentsTable,
|
|
|
|
BlocksList,
|
|
|
|
DataCyDirective,
|
|
|
|
RewardStatsComponent,
|
|
|
|
LoadingIndicatorComponent,
|
|
|
|
IndexingProgressComponent,
|
2022-05-31 22:21:59 +04:00
|
|
|
SvgImagesComponent,
|
2022-04-27 02:52:23 +04:00
|
|
|
ChangeComponent,
|
2020-07-03 23:45:19 +07:00
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
CommonModule,
|
2022-04-24 22:53:27 +04:00
|
|
|
RouterModule,
|
2020-07-24 18:41:15 +07:00
|
|
|
ReactiveFormsModule,
|
2020-07-18 12:59:12 +07:00
|
|
|
NgbNavModule,
|
2020-07-19 14:54:42 +07:00
|
|
|
NgbTooltipModule,
|
2020-07-24 18:41:15 +07:00
|
|
|
NgbButtonsModule,
|
|
|
|
NgbPaginationModule,
|
2022-05-24 13:48:45 +04:00
|
|
|
NgbTypeaheadModule,
|
2020-07-24 18:41:15 +07:00
|
|
|
NgbDropdownModule,
|
2022-05-24 13:48:45 +04:00
|
|
|
NgbCollapseModule,
|
2022-05-19 23:47:44 +04:00
|
|
|
InfiniteScrollModule,
|
|
|
|
FontAwesomeModule,
|
2020-07-03 23:45:19 +07:00
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
VbytesPipe,
|
2022-01-10 15:50:21 +04:00
|
|
|
RelativeUrlPipe,
|
2022-04-24 22:53:27 +04:00
|
|
|
NoSanitizePipe,
|
2022-05-19 23:47:44 +04:00
|
|
|
ShortenStringPipe,
|
|
|
|
CapAddressPipe,
|
2022-04-27 02:52:23 +04:00
|
|
|
AmountShortenerPipe,
|
2020-07-03 23:45:19 +07:00
|
|
|
],
|
|
|
|
exports: [
|
2022-04-24 22:53:27 +04:00
|
|
|
RouterModule,
|
2020-07-24 18:41:15 +07:00
|
|
|
ReactiveFormsModule,
|
2022-05-24 13:48:45 +04:00
|
|
|
NgbNavModule,
|
2020-07-19 14:54:42 +07:00
|
|
|
NgbTooltipModule,
|
2020-07-24 18:41:15 +07:00
|
|
|
NgbButtonsModule,
|
|
|
|
NgbPaginationModule,
|
2022-05-24 13:48:45 +04:00
|
|
|
NgbTypeaheadModule,
|
2020-07-24 18:41:15 +07:00
|
|
|
NgbDropdownModule,
|
2022-05-24 13:48:45 +04:00
|
|
|
NgbCollapseModule,
|
|
|
|
InfiniteScrollModule,
|
|
|
|
FontAwesomeModule,
|
2020-07-19 14:54:42 +07:00
|
|
|
TimeSinceComponent,
|
2021-07-17 08:58:16 -03:00
|
|
|
TimeUntilComponent,
|
2020-07-19 14:54:42 +07:00
|
|
|
ClipboardComponent,
|
|
|
|
QrcodeComponent,
|
|
|
|
FiatComponent,
|
|
|
|
TxFeaturesComponent,
|
|
|
|
TxFeeRatingComponent,
|
2021-05-12 14:51:55 +04:00
|
|
|
LanguageSelectorComponent,
|
2020-07-03 23:45:19 +07:00
|
|
|
ScriptpubkeyTypePipe,
|
|
|
|
RelativeUrlPipe,
|
|
|
|
Hex2asciiPipe,
|
2020-11-21 04:47:39 +09:00
|
|
|
AsmStylerPipe,
|
2021-07-26 16:00:40 -03:00
|
|
|
AbsolutePipe,
|
2020-07-03 23:45:19 +07:00
|
|
|
BytesPipe,
|
|
|
|
VbytesPipe,
|
|
|
|
WuBytesPipe,
|
|
|
|
CeilPipe,
|
|
|
|
ShortenStringPipe,
|
2022-05-16 16:50:42 +02:00
|
|
|
CapAddressPipe,
|
2021-05-01 03:55:02 +04:00
|
|
|
Decimal2HexPipe,
|
2021-08-18 18:57:35 +05:30
|
|
|
FeeRoundingPipe,
|
2021-05-13 19:23:43 +04:00
|
|
|
ColoredPriceDirective,
|
2022-04-24 22:53:27 +04:00
|
|
|
NoSanitizePipe,
|
|
|
|
BlockchainComponent,
|
|
|
|
MempoolBlocksComponent,
|
|
|
|
BlockchainBlocksComponent,
|
|
|
|
AmountComponent,
|
2022-05-19 23:47:44 +04:00
|
|
|
StartComponent,
|
|
|
|
TransactionComponent,
|
|
|
|
BlockComponent,
|
2022-06-14 00:33:48 +00:00
|
|
|
BlockOverviewGraphComponent,
|
2022-06-15 01:40:05 +00:00
|
|
|
BlockOverviewTooltipComponent,
|
2022-05-19 23:47:44 +04:00
|
|
|
TransactionsListComponent,
|
|
|
|
AddressComponent,
|
|
|
|
SearchFormComponent,
|
|
|
|
TimeSpanComponent,
|
|
|
|
AddressLabelsComponent,
|
|
|
|
FooterComponent,
|
|
|
|
AssetComponent,
|
|
|
|
AssetsComponent,
|
|
|
|
StatusViewComponent,
|
|
|
|
FeesBoxComponent,
|
|
|
|
DifficultyComponent,
|
|
|
|
TermsOfServiceComponent,
|
|
|
|
PrivacyPolicyComponent,
|
|
|
|
TrademarkPolicyComponent,
|
|
|
|
SponsorComponent,
|
|
|
|
PushTransactionComponent,
|
|
|
|
AssetsNavComponent,
|
|
|
|
AssetsFeaturedComponent,
|
|
|
|
AssetGroupComponent,
|
|
|
|
AssetCirculationComponent,
|
|
|
|
AmountShortenerPipe,
|
|
|
|
DifficultyAdjustmentsTable,
|
|
|
|
BlocksList,
|
|
|
|
DataCyDirective,
|
|
|
|
RewardStatsComponent,
|
|
|
|
LoadingIndicatorComponent,
|
|
|
|
IndexingProgressComponent,
|
2022-05-31 22:21:59 +04:00
|
|
|
SvgImagesComponent,
|
2022-04-27 02:52:23 +04:00
|
|
|
ChangeComponent,
|
2020-07-03 23:45:19 +07:00
|
|
|
]
|
|
|
|
})
|
2022-05-19 23:47:44 +04:00
|
|
|
export class SharedModule {
|
|
|
|
constructor(library: FaIconLibrary) {
|
|
|
|
library.addIcons(faInfoCircle);
|
|
|
|
library.addIcons(faChartArea);
|
|
|
|
library.addIcons(faTv);
|
|
|
|
library.addIcons(faTachometerAlt);
|
|
|
|
library.addIcons(faCubes);
|
|
|
|
library.addIcons(faHammer);
|
|
|
|
library.addIcons(faCogs);
|
|
|
|
library.addIcons(faThList);
|
|
|
|
library.addIcons(faList);
|
|
|
|
library.addIcons(faTachometerAlt);
|
|
|
|
library.addIcons(faDatabase);
|
|
|
|
library.addIcons(faSearch);
|
|
|
|
library.addIcons(faLink);
|
|
|
|
library.addIcons(faBolt);
|
|
|
|
library.addIcons(faTint);
|
|
|
|
library.addIcons(faFilter);
|
|
|
|
library.addIcons(faAngleDown);
|
|
|
|
library.addIcons(faAngleUp);
|
|
|
|
library.addIcons(faExchangeAlt);
|
|
|
|
library.addIcons(faAngleDoubleUp);
|
|
|
|
library.addIcons(faAngleDoubleDown);
|
|
|
|
library.addIcons(faChevronDown);
|
|
|
|
library.addIcons(faFileAlt);
|
|
|
|
library.addIcons(faRedoAlt);
|
|
|
|
library.addIcons(faArrowAltCircleRight);
|
|
|
|
library.addIcons(faExternalLinkAlt);
|
|
|
|
library.addIcons(faSortUp);
|
|
|
|
library.addIcons(faCaretUp);
|
|
|
|
library.addIcons(faCaretDown);
|
|
|
|
library.addIcons(faAngleRight);
|
|
|
|
library.addIcons(faAngleLeft);
|
|
|
|
library.addIcons(faBook);
|
|
|
|
library.addIcons(faListUl);
|
|
|
|
library.addIcons(faDownload);
|
|
|
|
}
|
|
|
|
}
|