Skip to content

Commit

Permalink
style: 🚨lint all files correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoss54 committed Nov 29, 2023
1 parent ef78c92 commit 6ae04f7
Show file tree
Hide file tree
Showing 161 changed files with 617 additions and 218 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
export class BadgeDirective implements OnInit {
@Input('sfeirBadge') isManager: boolean;

constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {}
constructor(
private readonly element: ElementRef<HTMLElement>,
private readonly renderer: Renderer2,
) {}

ngOnInit(): void {
if (this.isManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class PeopleComponent implements OnInit {
people$: Observable<Array<People>> = EMPTY;
view$: BehaviorSubject<'card' | 'list'> = new BehaviorSubject('card');

constructor(private readonly peopleService: PeopleService, private readonly matDialogService: MatDialog) {}
constructor(
private readonly peopleService: PeopleService,
private readonly matDialogService: MatDialog,
) {}

ngOnInit(): void {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
Expand All @@ -38,7 +41,7 @@ export class PeopleComponent implements OnInit {
switchMap(() => {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
return this.people$;
})
}),
)
.subscribe();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
export class BadgeDirective implements OnInit {
@Input('sfeirBadge') isManager: boolean;

constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {}
constructor(
private readonly element: ElementRef<HTMLElement>,
private readonly renderer: Renderer2,
) {}

ngOnInit(): void {
if (this.isManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class PeopleComponent implements OnInit {
people$: Observable<Array<People>> = EMPTY;
view$: BehaviorSubject<'card' | 'list'> = new BehaviorSubject('card');

constructor(private readonly peopleService: PeopleService, private readonly matDialogService: MatDialog) {}
constructor(
private readonly peopleService: PeopleService,
private readonly matDialogService: MatDialog,
) {}

ngOnInit(): void {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
export class BadgeDirective implements OnInit {
@Input('sfeirBadge') isManager: boolean;

constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {}
constructor(
private readonly element: ElementRef<HTMLElement>,
private readonly renderer: Renderer2,
) {}

ngOnInit(): void {
if (this.isManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class PeopleComponent implements OnInit {
people$: Observable<Array<People>> = EMPTY;
view$: BehaviorSubject<'card' | 'list'> = new BehaviorSubject('card');

constructor(private readonly peopleService: PeopleService, private readonly matDialogService: MatDialog) {}
constructor(
private readonly peopleService: PeopleService,
private readonly matDialogService: MatDialog,
) {}

ngOnInit(): void {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
Expand All @@ -38,7 +41,7 @@ export class PeopleComponent implements OnInit {
switchMap(() => {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
return this.people$;
})
}),
)
.subscribe();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
export class BadgeDirective implements OnInit {
@Input('sfeirBadge') isManager: boolean;

constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {}
constructor(
private readonly element: ElementRef<HTMLElement>,
private readonly renderer: Renderer2,
) {}

ngOnInit(): void {
if (this.isManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class PeopleComponent implements OnInit {
people$: Observable<Array<People>> = EMPTY;
view$: BehaviorSubject<'card' | 'list'> = new BehaviorSubject('card');

constructor(private readonly peopleService: PeopleService, private readonly matDialogService: MatDialog) {}
constructor(
private readonly peopleService: PeopleService,
private readonly matDialogService: MatDialog,
) {}

ngOnInit(): void {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
Expand All @@ -38,7 +41,7 @@ export class PeopleComponent implements OnInit {
switchMap(() => {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
return this.people$;
})
}),
)
.subscribe();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
export class BadgeDirective implements OnInit {
@Input('sfeirBadge') isManager: boolean;

constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {}
constructor(
private readonly element: ElementRef<HTMLElement>,
private readonly renderer: Renderer2,
) {}

ngOnInit(): void {
if (this.isManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class PeopleComponent implements OnInit {
people$: Observable<Array<People>> = EMPTY;
view$: BehaviorSubject<'card' | 'list'> = new BehaviorSubject('card');

constructor(private readonly peopleService: PeopleService, private readonly matDialogService: MatDialog) {}
constructor(
private readonly peopleService: PeopleService,
private readonly matDialogService: MatDialog,
) {}

ngOnInit(): void {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
Expand All @@ -38,7 +41,7 @@ export class PeopleComponent implements OnInit {
switchMap(() => {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
return this.people$;
})
}),
)
.subscribe();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ import { People, PeopleForm } from '../../shared/models/people.model';
})
export class UpdatePersonComponent implements OnInit {
person$: Observable<People> = EMPTY;
constructor(private readonly route: ActivatedRoute, private readonly location: Location, private readonly peopleService: PeopleService) {}
constructor(
private readonly route: ActivatedRoute,
private readonly location: Location,
private readonly peopleService: PeopleService,
) {}

ngOnInit(): void {
this.person$ = this.route.paramMap.pipe(
map(params => params.get('id')),
switchMap(id => this.peopleService.getPersonDetails(id))
switchMap(id => this.peopleService.getPersonDetails(id)),
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
export class BadgeDirective implements OnInit {
@Input('sfeirBadge') isManager: boolean;

constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {}
constructor(
private readonly element: ElementRef<HTMLElement>,
private readonly renderer: Renderer2,
) {}

ngOnInit(): void {
if (this.isManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class PeopleComponent implements OnInit {
people$: Observable<Array<People>> = EMPTY;
view$: BehaviorSubject<'card' | 'list'> = new BehaviorSubject('card');

constructor(private readonly peopleService: PeopleService, private readonly matDialogService: MatDialog) {}
constructor(
private readonly peopleService: PeopleService,
private readonly matDialogService: MatDialog,
) {}

ngOnInit(): void {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
Expand All @@ -38,7 +41,7 @@ export class PeopleComponent implements OnInit {
switchMap(() => {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
return this.people$;
})
}),
)
.subscribe();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
export class BadgeDirective implements OnInit {
@Input('sfeirBadge') isManager: boolean;

constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {}
constructor(
private readonly element: ElementRef<HTMLElement>,
private readonly renderer: Renderer2,
) {}

ngOnInit(): void {
if (this.isManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class PeopleComponent implements OnInit {
people$: Observable<Array<People>> = EMPTY;
view$: BehaviorSubject<'card' | 'list'> = new BehaviorSubject('card');

constructor(private readonly peopleService: PeopleService, private readonly matDialogService: MatDialog) {}
constructor(
private readonly peopleService: PeopleService,
private readonly matDialogService: MatDialog,
) {}

ngOnInit(): void {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
Expand All @@ -38,7 +41,7 @@ export class PeopleComponent implements OnInit {
switchMap(() => {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
return this.people$;
})
}),
)
.subscribe();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ import { People, PeopleForm } from '../../shared/models/people.model';
})
export class UpdatePersonComponent implements OnInit {
person$: Observable<People> = EMPTY;
constructor(private readonly route: ActivatedRoute, private readonly location: Location, private readonly peopleService: PeopleService) {}
constructor(
private readonly route: ActivatedRoute,
private readonly location: Location,
private readonly peopleService: PeopleService,
) {}

ngOnInit(): void {
this.person$ = this.route.paramMap.pipe(
map(params => params.get('id')),
switchMap(id => this.peopleService.getPersonDetails(id))
switchMap(id => this.peopleService.getPersonDetails(id)),
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
export class BadgeDirective implements OnInit {
@Input('sfeirBadge') isManager: boolean;

constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {}
constructor(
private readonly element: ElementRef<HTMLElement>,
private readonly renderer: Renderer2,
) {}

ngOnInit(): void {
if (this.isManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class PeopleComponent implements OnInit {
people$: Observable<Array<People>> = EMPTY;
view$: BehaviorSubject<'card' | 'list'> = new BehaviorSubject('card');

constructor(private readonly peopleService: PeopleService, private readonly matDialogService: MatDialog) {}
constructor(
private readonly peopleService: PeopleService,
private readonly matDialogService: MatDialog,
) {}

ngOnInit(): void {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
Expand All @@ -38,7 +41,7 @@ export class PeopleComponent implements OnInit {
switchMap(() => {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
return this.people$;
})
}),
)
.subscribe();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ import { People, PeopleForm } from '../../shared/models/people.model';
})
export class UpdatePersonComponent implements OnInit {
person$: Observable<People> = EMPTY;
constructor(private readonly route: ActivatedRoute, private readonly location: Location, private readonly peopleService: PeopleService) {}
constructor(
private readonly route: ActivatedRoute,
private readonly location: Location,
private readonly peopleService: PeopleService,
) {}

ngOnInit(): void {
this.person$ = this.route.paramMap.pipe(
map(params => params.get('id')),
switchMap(id => this.peopleService.getPersonDetails(id))
switchMap(id => this.peopleService.getPersonDetails(id)),
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
export class BadgeDirective implements OnInit {
@Input('sfeirBadge') isManager: boolean;

constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {}
constructor(
private readonly element: ElementRef<HTMLElement>,
private readonly renderer: Renderer2,
) {}

ngOnInit(): void {
if (this.isManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class PeopleComponent implements OnInit {
people$: Observable<Array<People>> = EMPTY;
view$: BehaviorSubject<'card' | 'list'> = new BehaviorSubject('card');

constructor(private readonly peopleService: PeopleService, private readonly matDialogService: MatDialog) {}
constructor(
private readonly peopleService: PeopleService,
private readonly matDialogService: MatDialog,
) {}

ngOnInit(): void {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
Expand All @@ -38,7 +41,7 @@ export class PeopleComponent implements OnInit {
switchMap(() => {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
return this.people$;
})
}),
)
.subscribe();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ import { People, PeopleForm } from '../../shared/models/people.model';
})
export class UpdatePersonComponent implements OnInit {
person$: Observable<People> = EMPTY;
constructor(private readonly route: ActivatedRoute, private readonly location: Location, private readonly peopleService: PeopleService) {}
constructor(
private readonly route: ActivatedRoute,
private readonly location: Location,
private readonly peopleService: PeopleService,
) {}

ngOnInit(): void {
this.person$ = this.route.paramMap.pipe(
map(params => params.get('id')),
switchMap(id => this.peopleService.getPersonDetails(id))
switchMap(id => this.peopleService.getPersonDetails(id)),
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';
export class BadgeDirective implements OnInit {
@Input('sfeirBadge') isManager: boolean;

constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {}
constructor(
private readonly element: ElementRef<HTMLElement>,
private readonly renderer: Renderer2,
) {}

ngOnInit(): void {
if (this.isManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export class PeopleComponent implements OnInit {
people$: Observable<Array<People>> = EMPTY;
view$: BehaviorSubject<'card' | 'list'> = new BehaviorSubject('card');

constructor(private readonly peopleService: PeopleService, private readonly matDialogService: MatDialog) {}
constructor(
private readonly peopleService: PeopleService,
private readonly matDialogService: MatDialog,
) {}

ngOnInit(): void {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
Expand All @@ -38,7 +41,7 @@ export class PeopleComponent implements OnInit {
switchMap(() => {
this.people$ = this.peopleService.getPeople().pipe(shareReplay(1));
return this.people$;
})
}),
)
.subscribe();
}
Expand Down
Loading

0 comments on commit 6ae04f7

Please sign in to comment.