Bugfix: Dashboard - Difficulty adjustment component. (#663)
* Add color to previous retarget. Add absolute number pipe. Change plus and minus signs to fa icons. Change Fee Estimate title to Transactions Fees. Set min and max difficulty adjustments. * Add projectID to cypress conf. * Change icon to fa-caret. * Remove unecessary icons.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { AbsolutePipe } from './absolute.pipe';
|
||||
|
||||
describe('AbsolutePipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new AbsolutePipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
8
frontend/src/app/shared/pipes/absolute/absolute.pipe.ts
Normal file
8
frontend/src/app/shared/pipes/absolute/absolute.pipe.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({ name: 'absolute' })
|
||||
export class AbsolutePipe implements PipeTransform {
|
||||
transform(nr: number) {
|
||||
return Math.abs(nr);
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import { CeilPipe } from './pipes/math-ceil/math-ceil.pipe';
|
||||
import { Hex2asciiPipe } from './pipes/hex2ascii/hex2ascii.pipe';
|
||||
import { Decimal2HexPipe } from './pipes/decimal2hex/decimal2hex.pipe';
|
||||
import { AsmStylerPipe } from './pipes/asm-styler/asm-styler.pipe';
|
||||
import { AbsolutePipe } from './pipes/absolute/absolute.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';
|
||||
@@ -36,6 +37,7 @@ import { ColoredPriceDirective } from './directives/colored-price.directive';
|
||||
RelativeUrlPipe,
|
||||
Hex2asciiPipe,
|
||||
AsmStylerPipe,
|
||||
AbsolutePipe,
|
||||
BytesPipe,
|
||||
VbytesPipe,
|
||||
WuBytesPipe,
|
||||
@@ -78,6 +80,7 @@ import { ColoredPriceDirective } from './directives/colored-price.directive';
|
||||
RelativeUrlPipe,
|
||||
Hex2asciiPipe,
|
||||
AsmStylerPipe,
|
||||
AbsolutePipe,
|
||||
BytesPipe,
|
||||
VbytesPipe,
|
||||
WuBytesPipe,
|
||||
|
||||
Reference in New Issue
Block a user