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
+14 -15
View File
@@ -12,11 +12,10 @@ import { Observable, of } from 'rxjs';
providedIn: 'root'
})
export class NotificationsService {
/**
* @param {HttpClient} http Http Client to send requests.
*/
constructor(private http: HttpClient) { }
constructor(private http: HttpClient) {}
/**
* @returns {Observable<any>} Notifications.
@@ -30,7 +29,7 @@ export class NotificationsService {
* @returns {Observable<any>} Notifications.
*/
updateNotifications(): Observable<any> {
return this.http.put('/notifications', { });
return this.http.put('/notifications', {});
}
/**
@@ -39,20 +38,20 @@ export class NotificationsService {
getMockUnreadNotification(): Observable<any> {
const date = new Date();
return of({
'totalFilteredRecords': 1,
'pageItems': [
{ 'id': Math.floor(Math.random() * 100),
'objectType': 'client',
'objectId': Math.floor(Math.random() * 10),
'action': 'clientCreated',
'actorId': 2,
'content': 'Client Created',
'isRead': false,
'isSystemGenerated': false,
'createdAt': `${date.toLocaleDateString()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`
totalFilteredRecords: 1,
pageItems: [
{
id: Math.floor(Math.random() * 100),
objectType: 'client',
objectId: Math.floor(Math.random() * 10),
action: 'clientCreated',
actorId: 2,
content: 'Client Created',
isRead: false,
isSystemGenerated: false,
createdAt: `${date.toLocaleDateString()} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`
}
]
});
}
}