Blacked and isorted the python files

Prettied and eslinted the typescript/html files
This commit is contained in:
2020-10-11 10:56:29 +05:30
parent b31db593c2
commit d677cfb1ea
505 changed files with 7560 additions and 5650 deletions

View File

@ -1,11 +1,24 @@
<mat-dialog-content>
<form [formGroup]="form">
<div fxLayout="row" fxLayoutAlign="space-around start" fxLayout.lt-md="column" fxLayoutGap="20px"
fxLayoutGap.lt-md="0px">
<div
fxLayout="row"
fxLayoutAlign="space-around start"
fxLayout.lt-md="column"
fxLayoutGap="20px"
fxLayoutGap.lt-md="0px"
>
<mat-form-field fxFlex>
<mat-label>Pax</mat-label>
<input type="text" matInput #quantity placeholder="Pax" formControlName="pax" autocomplete="off"
(focus)="quantity.select()" cdkFocusInitial>
<input
type="text"
matInput
#quantity
placeholder="Pax"
formControlName="pax"
autocomplete="off"
(focus)="quantity.select()"
cdkFocusInitial
/>
</mat-form-field>
</div>
</form>

View File

@ -8,9 +8,8 @@ describe('PaxComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ PaxComponent ]
})
.compileComponents();
declarations: [PaxComponent],
}).compileComponents();
}));
beforeEach(() => {

View File

@ -1,11 +1,11 @@
import { Component, Inject, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { FormBuilder, FormGroup } from '@angular/forms';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
@Component({
selector: 'app-pax',
templateUrl: './pax.component.html',
styleUrls: ['./pax.component.css']
styleUrls: ['./pax.component.css'],
})
export class PaxComponent implements OnInit {
form: FormGroup;
@ -20,18 +20,18 @@ export class PaxComponent implements OnInit {
ngOnInit() {
this.form.setValue({
pax: this.data
pax: this.data,
});
}
createForm() {
this.form = this.fb.group({
pax: ''
pax: '',
});
}
accept(): void {
const pax = this.form.value.pax;
const { pax } = this.form.value;
this.dialogRef.close(pax);
}
}