mirror of
https://github.com/mempool/mempool.git
synced 2025-01-09 23:16:48 +01:00
61 lines
1.9 KiB
TypeScript
61 lines
1.9 KiB
TypeScript
|
import { NgModule } from '@angular/core';
|
||
|
import { CommonModule } from '@angular/common';
|
||
|
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';
|
||
|
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';
|
||
|
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
|
||
|
import { BisqIconComponent } from '../components/bisq-icon/bisq-icon.component';
|
||
|
import { faLeaf, faQuestion, faExclamationTriangle, faRocket, faRetweet, faFileAlt, faMoneyBill, faEye, faEyeSlash, faLock, faLockOpen } from '@fortawesome/free-solid-svg-icons';
|
||
|
|
||
|
@NgModule({
|
||
|
declarations: [
|
||
|
ScriptpubkeyTypePipe,
|
||
|
RelativeUrlPipe,
|
||
|
Hex2asciiPipe,
|
||
|
BytesPipe,
|
||
|
VbytesPipe,
|
||
|
WuBytesPipe,
|
||
|
CeilPipe,
|
||
|
ShortenStringPipe,
|
||
|
BisqIconComponent,
|
||
|
],
|
||
|
imports: [
|
||
|
CommonModule,
|
||
|
FontAwesomeModule,
|
||
|
],
|
||
|
providers: [
|
||
|
VbytesPipe,
|
||
|
],
|
||
|
exports: [
|
||
|
ScriptpubkeyTypePipe,
|
||
|
RelativeUrlPipe,
|
||
|
Hex2asciiPipe,
|
||
|
BytesPipe,
|
||
|
VbytesPipe,
|
||
|
WuBytesPipe,
|
||
|
CeilPipe,
|
||
|
ShortenStringPipe,
|
||
|
BisqIconComponent,
|
||
|
]
|
||
|
})
|
||
|
export class SharedModule {
|
||
|
constructor(library: FaIconLibrary) {
|
||
|
library.addIcons(faQuestion);
|
||
|
library.addIcons(faExclamationTriangle);
|
||
|
library.addIcons(faRocket);
|
||
|
library.addIcons(faRetweet);
|
||
|
library.addIcons(faLeaf);
|
||
|
library.addIcons(faFileAlt);
|
||
|
library.addIcons(faMoneyBill);
|
||
|
library.addIcons(faEye);
|
||
|
library.addIcons(faEyeSlash);
|
||
|
library.addIcons(faLock);
|
||
|
library.addIcons(faLockOpen);
|
||
|
}
|
||
|
}
|