build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<span (mouseenter)="mouseEnter()" (mouseleave)="mouseLeave()" *ngIf="!emptyValue">
|
||||
<span class="m-l-3" *ngIf="isLongValue()" (click)="showValue()"><fa-icon icon="eye" size="sm" [title]="textValue"></fa-icon></span>
|
||||
<span class="m-l-3" *ngIf="isLongValue()" (click)="showValue()"
|
||||
><fa-icon icon="eye" size="sm" [title]="textValue"></fa-icon
|
||||
></span>
|
||||
<span class="m-l-5" *ngIf="isLongValue()" (click)="showValue()">{{ textValue | truncateText: printChars }}...</span>
|
||||
<span class="m-l-5" *ngIf="!isLongValue()" (click)="showValue()">{{ textValue }}</span>
|
||||
</span>
|
||||
|
||||
@@ -8,9 +8,8 @@ describe('LongTextComponent', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ LongTextComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
declarations: [LongTextComponent]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(LongTextComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
||||
@@ -16,10 +16,10 @@ export class LongTextComponent implements OnInit {
|
||||
|
||||
printChars = 30;
|
||||
|
||||
constructor() { }
|
||||
constructor() {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.emptyValue = (!this.textValue || this.textValue === '');
|
||||
this.emptyValue = !this.textValue || this.textValue === '';
|
||||
this.printChars = this.chars;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ export class LongTextComponent implements OnInit {
|
||||
if (this.textValue == null) {
|
||||
return false;
|
||||
}
|
||||
return (this.textValue.length > 25);
|
||||
return this.textValue.length > 25;
|
||||
}
|
||||
|
||||
showValue() {
|
||||
|
||||
Reference in New Issue
Block a user