Skip to content

Commit

Permalink
refactor: regenerated project format after prettier upgrade to v3
Browse files Browse the repository at this point in the history
* With the new major version of the prettier the `trailingComma` property was changed to `all`
- many final commas were added across the all projects.
  • Loading branch information
HejdaJakub committed Oct 23, 2023
1 parent 71fa5e9 commit a97eecf
Show file tree
Hide file tree
Showing 484 changed files with 7,372 additions and 7,240 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AdminAttributesComponent implements OnInit {
constructor(
private dialog: MatDialog,
private attributesManager: AttributesManagerService,
public authResolver: GuiAuthResolver
public authResolver: GuiAuthResolver,
) {}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class AdminAuditLogComponent implements OnInit {

constructor(
private auditMessagesManagerService: AuditMessagesManagerService,
private cd: ChangeDetectorRef
private cd: ChangeDetectorRef,
) {}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class AdminBlockedLoginsComponent implements OnInit {
private cd: ChangeDetectorRef,
private dialog: MatDialog,
private attributesService: AttributesManagerService,
public authResolver: GuiAuthResolver
public authResolver: GuiAuthResolver,
) {}

refreshTable(): void {
Expand Down Expand Up @@ -103,7 +103,7 @@ export class AdminBlockedLoginsComponent implements OnInit {
this.selectedNamespaces.splice(
0,
this.selectedNamespaces.length,
...namespaces.map((namespace) => (namespace === '' ? null : namespace))
...namespaces.map((namespace) => (namespace === '' ? null : namespace)),
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AdminConsentHubsComponent implements OnInit {
private notificator: NotificatorService,
private translate: PerunTranslateService,
private store: StoreService,
private dialog: MatDialog
private dialog: MatDialog,
) {}

ngOnInit(): void {
Expand Down Expand Up @@ -79,7 +79,7 @@ export class AdminConsentHubsComponent implements OnInit {
this.consentsManager.evaluateConsentsForConsentHubs(consentHubIds).subscribe({
next: () => {
this.notificator.showSuccess(
this.translate.instant('ADMIN.CONSENT_HUBS.EVALUATION_FINISH')
this.translate.instant('ADMIN.CONSENT_HUBS.EVALUATION_FINISH'),
);
this.selection.clear();
this.loading = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class AdminExtSourcesComponent implements OnInit {

constructor(
private extSourceService: ExtSourcesManagerService,
public authResolver: GuiAuthResolver
public authResolver: GuiAuthResolver,
) {}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class AdminOwnersComponent implements OnInit {
constructor(
private ownersManagerService: OwnersManagerService,
private dialog: MatDialog,
private guiAuthResolver: GuiAuthResolver
private guiAuthResolver: GuiAuthResolver,
) {}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class AdminSearcherComponent implements OnInit {
constructor(
private attributesManager: AttributesManagerService,
private searcher: SearcherService,
private voService: VosManagerService
private voService: VosManagerService,
) {}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class AdminServicesComponent implements OnInit {
constructor(
private serviceManager: ServicesManagerService,
private dialog: MatDialog,
public authResolver: GuiAuthResolver
public authResolver: GuiAuthResolver,
) {}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ServiceDestinationsComponent implements OnInit {
private translate: PerunTranslateService,
private dialog: MatDialog,
public authResolver: GuiAuthResolver,
private entityStorageService: EntityStorageService
private entityStorageService: EntityStorageService,
) {}

ngOnInit(): void {
Expand Down Expand Up @@ -90,7 +90,7 @@ export class ServiceDestinationsComponent implements OnInit {
this.serviceManager.blockServicesOnDestinations({ richDestinations: destinations }).subscribe({
next: () => {
this.notificator.showSuccess(
this.translate.instant('SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS')
this.translate.instant('SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS'),
);
this.refreshTable();
},
Expand All @@ -104,7 +104,7 @@ export class ServiceDestinationsComponent implements OnInit {
.subscribe({
next: () => {
this.notificator.showSuccess(
this.translate.instant('SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS')
this.translate.instant('SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS'),
);
this.refreshTable();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class ServiceDetailPageComponent implements OnInit {
public authResolver: GuiAuthResolver,
private translate: TranslateService,
private notificator: NotificatorService,
private entityStorageService: EntityStorageService
private entityStorageService: EntityStorageService,
) {}

ngOnInit(): void {
Expand Down Expand Up @@ -101,10 +101,10 @@ export class ServiceDetailPageComponent implements OnInit {
this.serviceManager.updateService({ service: this.service }).subscribe(
() => {
this.notificator.showSuccess(
this.translate.instant('SERVICE_DETAIL.STATUS_CHANGE_SUCCESS') as string
this.translate.instant('SERVICE_DETAIL.STATUS_CHANGE_SUCCESS') as string,
);
},
() => (this.service.enabled = !this.service.enabled)
() => (this.service.enabled = !this.service.enabled),
);
}

Expand All @@ -113,10 +113,10 @@ export class ServiceDetailPageComponent implements OnInit {
this.serviceManager.updateService({ service: this.service }).subscribe(
() => {
this.notificator.showSuccess(
this.translate.instant('SERVICE_DETAIL.PROPAGATION_CHANGE_SUCCESS') as string
this.translate.instant('SERVICE_DETAIL.PROPAGATION_CHANGE_SUCCESS') as string,
);
},
() => (this.service.useExpiredMembers = !this.service.useExpiredMembers)
() => (this.service.useExpiredMembers = !this.service.useExpiredMembers),
);
}

Expand All @@ -140,8 +140,8 @@ export class ServiceDetailPageComponent implements OnInit {
.evaluateConsentsForService(this.service.id)
.subscribe(() =>
this.notificator.showSuccess(
this.translate.instant('SERVICE_DETAIL.EVALUATION_FINISH') as string
)
this.translate.instant('SERVICE_DETAIL.EVALUATION_FINISH') as string,
),
);
}
});
Expand All @@ -156,7 +156,7 @@ export class ServiceDetailPageComponent implements OnInit {
this.sideMenuService.setAdminItems([serviceItems]);
this.loading = false;
},
() => (this.loading = false)
() => (this.loading = false),
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class ServiceRequiredAttributesComponent implements OnInit {
private attributeManager: AttributesManagerService,
private dialog: MatDialog,
public authResolver: GuiAuthResolver,
private entityStorageService: EntityStorageService
private entityStorageService: EntityStorageService,
) {}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export class AdminUsersComponent implements OnInit {
attributes: string[] = [];
update = false;

constructor(private storeService: StoreService, private cd: ChangeDetectorRef) {}
constructor(
private storeService: StoreService,
private cd: ChangeDetectorRef,
) {}

ngOnInit(): void {
this.loading$ = of(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class UserDestinationGraphComponent implements OnInit {
private resourceManager: ResourcesManagerService,
private groupService: GroupsManagerService,
private voService: VosManagerService,
private translate: TranslateService
private translate: TranslateService,
) {}

static findConnectedGroups(groups1: Group[], groups2: Group[]): Group[] {
Expand Down Expand Up @@ -220,14 +220,14 @@ export class UserDestinationGraphComponent implements OnInit {
private connectToGroups(
facility: Facility,
member: Member,
connectedResources: Resource[]
connectedResources: Resource[],
): void {
this.facilityManager.getAllowedGroups(facility.id, member.voId).subscribe((allowedGroups) => {
if (allowedGroups.length !== 0) {
this.groupService.getMemberGroups(member.id).subscribe((memberGroups) => {
const connectedGroups: Group[] = UserDestinationGraphComponent.findConnectedGroups(
allowedGroups,
memberGroups
memberGroups,
);
if (connectedGroups.length !== 0) {
for (const group of connectedGroups) {
Expand All @@ -254,12 +254,12 @@ export class UserDestinationGraphComponent implements OnInit {
private connectToResource(
facility: Facility,
group: Group,
connectedResources: Resource[]
connectedResources: Resource[],
): void {
this.resourceManager.getAssignedResourcesWithGroup(group.id).subscribe((assignedResources) => {
const resources: Resource[] = UserDestinationGraphComponent.findConnectedResources(
assignedResources,
connectedResources
connectedResources,
);
for (const resource of resources) {
this.resourceManager
Expand All @@ -278,7 +278,7 @@ export class UserDestinationGraphComponent implements OnInit {
voId: number,
group: Group,
resource: Resource,
facility: Facility
facility: Facility,
): void {
if (this.findEntityInGraph('Facility: ' + facility.id.toString()) === -1) {
const nodeId3 = '' + this.id().toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class UserDestinationRelationshipComponent implements OnInit {
private facilityManager: FacilitiesManagerService,
private serviceService: ServicesManagerService,
private router: Router,
private notificator: NotificatorService
private notificator: NotificatorService,
) {}

ngOnInit(): void {
Expand All @@ -46,7 +46,7 @@ export class UserDestinationRelationshipComponent implements OnInit {
distinctUntilChanged(),
tap(() => (this.loading = true)),
switchMap((term: string) => this.usersService.findUsers(term)),
tap(() => (this.loading = false))
tap(() => (this.loading = false)),
);
this.translate
.get('ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class AdminUserDetailPageComponent implements OnInit {
public authResolver: GuiAuthResolver,
private entityStorageService: EntityStorageService,
private router: Router,
private store: StoreService
private store: StoreService,
) {}

ngOnInit(): void {
Expand Down Expand Up @@ -115,7 +115,7 @@ export class AdminUserDetailPageComponent implements OnInit {
}

private openDialog(
dialogComponent: ComponentType<AnonymizeUserDialogComponent | DeleteUserDialogComponent>
dialogComponent: ComponentType<AnonymizeUserDialogComponent | DeleteUserDialogComponent>,
): void {
const config = getDefaultDialogConfig<
AnonymizeUserDialogComponentData | DeleteUserDialogComponentData
Expand Down
2 changes: 1 addition & 1 deletion apps/admin-gui/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class AppComponent implements OnInit, AfterViewInit {
private router: Router,
private initAuth: InitAuthService,
private authService: AuthService,
private cd: ChangeDetectorRef
private cd: ChangeDetectorRef,
) {
this.cache.init();
this.getScreenSize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class AdminGuiConfigService {
private dialog: MatDialog,
private location: Location,
private guiAuthResolver: GuiAuthResolver,
private mfaHandlerService: MfaHandlerService
private mfaHandlerService: MfaHandlerService,
) {}

initialize(): Promise<void> {
Expand All @@ -123,7 +123,7 @@ export class AdminGuiConfigService {
.then(() => this.appConfigService.loadAppInstanceConfig())
.then(() => this.appConfigService.setApiUrl())
.then(() =>
this.appConfigService.initializeColors(this.entityColorConfigs, this.colorConfigs)
this.appConfigService.initializeColors(this.entityColorConfigs, this.colorConfigs),
)
.then(() => this.appConfigService.setInstanceFavicon())
.then(() => this.initAuthService.verifyAuth())
Expand Down Expand Up @@ -185,7 +185,7 @@ export class AdminGuiConfigService {

private loadPolicies(): Promise<void> {
return firstValueFrom(this.authzSevice.getAllPolicies()).then((policies) =>
this.guiAuthResolver.setPerunPolicies(policies)
this.guiAuthResolver.setPerunPolicies(policies),
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { CacheRouteReuseStrategy } from './cache-route-reuse-strategy';
providedIn: 'root',
})
export class CacheHelperService {
constructor(private router: Router, private routeReuseStrategy: RouteReuseStrategy) {
constructor(
private router: Router,
private routeReuseStrategy: RouteReuseStrategy,
) {
const cache = routeReuseStrategy as CacheRouteReuseStrategy;

router.events.subscribe((event) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class CancelConfigurationDialogComponent implements OnInit {
@Inject(MAT_DIALOG_DATA) public data: CancelConfigurationDialogData,
private facilityService: FacilitiesManagerService,
private notificator: NotificatorService,
private translate: TranslateService
private translate: TranslateService,
) {}

ngOnInit(): void {
Expand All @@ -51,12 +51,12 @@ export class CancelConfigurationDialogComponent implements OnInit {
this.facilityService.deleteFacility(this.data.facilityId, true).subscribe(
() => {
this.notificator.showSuccess(
this.translate.instant('DIALOGS.CANCEL_CONFIG.SUCCESS') as string
this.translate.instant('DIALOGS.CANCEL_CONFIG.SUCCESS') as string,
);
this.dialogRef.close(true);
this.loading = false;
},
() => (this.loading = false)
() => (this.loading = false),
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class ConfigUnsavedDialogComponent implements OnInit {

constructor(
public dialogRef: MatDialogRef<ConfigUnsavedDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: ConfigUnsavedDialogData
@Inject(MAT_DIALOG_DATA) public data: ConfigUnsavedDialogData,
) {}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class NoServiceDialogComponent implements OnInit {

constructor(
public dialogRef: MatDialogRef<NoServiceDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: NoServiceDialogData
@Inject(MAT_DIALOG_DATA) public data: NoServiceDialogData,
) {}

ngOnInit(): void {
Expand Down
Loading

0 comments on commit a97eecf

Please sign in to comment.