build: Use prettier for typescript

Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
Ralph Hopman
2025-01-15 11:59:30 +00:00
committed by Adam Saghy
parent 9d6cf1514a
commit cac1d11ad7
1812 changed files with 22516 additions and 16862 deletions
@@ -34,24 +34,25 @@ export class NotificationsTrayComponent implements OnInit, OnDestroy {
* Shares, Savings, Deposits, Loans routes inaccessible because of dependency on entity ID.
*/
routeMap: any = {
'client' : '/clients/',
'group' : '/groups/',
'loan': '/loans-accounts/',
'center' : '/centers/',
'shareAccount' : '/shares-accounts/',
'fixedDeposit' : '/fixed-deposits-accounts/',
'recurringDepositAccount': '/recurring-deposits-accounts/',
'savingsAccount' : '/savings-accounts/',
'shareProduct': '/products/share-products/',
'loanProduct' : '/products/loan-products/'
client: '/clients/',
group: '/groups/',
loan: '/loans-accounts/',
center: '/centers/',
shareAccount: '/shares-accounts/',
fixedDeposit: '/fixed-deposits-accounts/',
recurringDepositAccount: '/recurring-deposits-accounts/',
savingsAccount: '/savings-accounts/',
shareProduct: '/products/share-products/',
loanProduct: '/products/loan-products/'
};
/**
* @param {NotificationsService} notificationsService Notifications Service
*/
constructor(public notificationsService: NotificationsService) {
forkJoin([this.notificationsService.getNotifications(true, 9), this.notificationsService.getNotifications(false, 9)])
.subscribe((response: any[]) => {
forkJoin([
this.notificationsService.getNotifications(true, 9),
this.notificationsService.getNotifications(false, 9)]).subscribe((response: any[]) => {
this.readNotifications = response[0].pageItems;
this.unreadNotifications = response[1].pageItems;
this.setNotifications();
@@ -83,7 +84,9 @@ export class NotificationsTrayComponent implements OnInit, OnDestroy {
this.setNotifications();
});
// this.mockNotifications(); // Uncomment for Testing.
this.timer = setTimeout(() => { this.fetchUnreadNotifications(); }, this.waitTime * 1000);
this.timer = setTimeout(() => {
this.fetchUnreadNotifications();
}, this.waitTime * 1000);
}
/**
@@ -107,5 +110,4 @@ export class NotificationsTrayComponent implements OnInit, OnDestroy {
this.setNotifications();
});
}
}