Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Task/prettify files 20251204 (#6033)
Thomas Kaulccea6481abbf
diff --git a/apps/api/src/interceptors/redact-values-in-response/redact-values-in-response.interceptor.ts b/apps/api/src/interceptors/redact-values-in-response/redact-values-in-response.interceptor.tsindex 5e28e1591c..5ecf7c48df 100644--- a/apps/api/src/interceptors/redact-values-in-response/redact-values-in-response.interceptor.ts+++ b/apps/api/src/interceptors/redact-values-in-response/redact-values-in-response.interceptor.ts@@ -16,9 +16,10 @@ import { Observable } from 'rxjs';import { map } from 'rxjs/operators';@Injectable()-export class RedactValuesInResponseInterceptor<T>- implements NestInterceptor<T, any>-{+export class RedactValuesInResponseInterceptor<T> implements NestInterceptor<+ T,+ any+> {public intercept(context: ExecutionContext,next: CallHandler<T>diff --git a/apps/api/src/interceptors/transform-data-source-in-request/transform-data-source-in-request.interceptor.ts b/apps/api/src/interceptors/transform-data-source-in-request/transform-data-source-in-request.interceptor.tsindex 3931f362cd..3bd9c05e7c 100644--- a/apps/api/src/interceptors/transform-data-source-in-request/transform-data-source-in-request.interceptor.ts+++ b/apps/api/src/interceptors/transform-data-source-in-request/transform-data-source-in-request.interceptor.ts@@ -11,9 +11,9 @@ import { DataSource } from '@prisma/client';import { Observable } from 'rxjs';@Injectable()-export class TransformDataSourceInRequestInterceptor<T>- implements NestInterceptor<T, any>-{+export class TransformDataSourceInRequestInterceptor<+ T+> implements NestInterceptor<T, any> {public constructor(private readonly configurationService: ConfigurationService) {}diff --git a/apps/api/src/interceptors/transform-data-source-in-response/transform-data-source-in-response.interceptor.ts b/apps/api/src/interceptors/transform-data-source-in-response/transform-data-source-in-response.interceptor.tsindex fea5d6fe68..9af256671f 100644--- a/apps/api/src/interceptors/transform-data-source-in-response/transform-data-source-in-response.interceptor.ts+++ b/apps/api/src/interceptors/transform-data-source-in-response/transform-data-source-in-response.interceptor.ts@@ -13,9 +13,9 @@ import { Observable } from 'rxjs';import { map } from 'rxjs/operators';@Injectable()-export class TransformDataSourceInResponseInterceptor<T>- implements NestInterceptor<T, any>-{+export class TransformDataSourceInResponseInterceptor<+ T+> implements NestInterceptor<T, any> {private encodedDataSourceMap: {[dataSource: string]: string;} = {};diff --git a/apps/client/src/app/pages/blog/blog-page.routes.ts b/apps/client/src/app/pages/blog/blog-page.routes.tsindex 36d111c19b..90d27bdfb4 100644--- a/apps/client/src/app/pages/blog/blog-page.routes.ts+++ b/apps/client/src/app/pages/blog/blog-page.routes.ts@@ -34,117 +34,117 @@ export const routes: Routes = [canActivate: [AuthGuard],path: '2022/01/ghostfolio-first-months-in-open-source',loadComponent: () =>- import(- './2022/01/first-months-in-open-source/first-months-in-open-source-page.component'- ).then((c) => c.FirstMonthsInOpenSourcePageComponent),+ import('./2022/01/first-months-in-open-source/first-months-in-open-source-page.component').then(+ (c) => c.FirstMonthsInOpenSourcePageComponent+ ),title: 'First months in Open Source'},{canActivate: [AuthGuard],path: '2022/07/ghostfolio-meets-internet-identity',loadComponent: () =>- import(- './2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.component'- ).then((c) => c.GhostfolioMeetsInternetIdentityPageComponent),+ import('./2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.component').then(+ (c) => c.GhostfolioMeetsInternetIdentityPageComponent+ ),title: 'Ghostfolio meets Internet Identity'},{canActivate: [AuthGuard],path: '2022/07/how-do-i-get-my-finances-in-order',loadComponent: () =>- import(- './2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component'- ).then((c) => c.HowDoIGetMyFinancesInOrderPageComponent),+ import('./2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component').then(+ (c) => c.HowDoIGetMyFinancesInOrderPageComponent+ ),title: 'How do I get my finances in order?'},{canActivate: [AuthGuard],path: '2022/08/500-stars-on-github',loadComponent: () =>- import(- './2022/08/500-stars-on-github/500-stars-on-github-page.component'- ).then((c) => c.FiveHundredStarsOnGitHubPageComponent),+ import('./2022/08/500-stars-on-github/500-stars-on-github-page.component').then(+ (c) => c.FiveHundredStarsOnGitHubPageComponent+ ),title: '500 Stars on GitHub'},{canActivate: [AuthGuard],path: '2022/10/hacktoberfest-2022',loadComponent: () =>- import(- './2022/10/hacktoberfest-2022/hacktoberfest-2022-page.component'- ).then((c) => c.Hacktoberfest2022PageComponent),+ import('./2022/10/hacktoberfest-2022/hacktoberfest-2022-page.component').then(+ (c) => c.Hacktoberfest2022PageComponent+ ),title: 'Hacktoberfest 2022'},{canActivate: [AuthGuard],path: '2022/11/black-friday-2022',loadComponent: () =>- import(- './2022/11/black-friday-2022/black-friday-2022-page.component'- ).then((c) => c.BlackFriday2022PageComponent),+ import('./2022/11/black-friday-2022/black-friday-2022-page.component').then(+ (c) => c.BlackFriday2022PageComponent+ ),title: 'Black Friday 2022'},{canActivate: [AuthGuard],path: '2022/12/the-importance-of-tracking-your-personal-finances',loadComponent: () =>- import(- './2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.component'- ).then((c) => c.TheImportanceOfTrackingYourPersonalFinancesPageComponent),+ import('./2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.component').then(+ (c) => c.TheImportanceOfTrackingYourPersonalFinancesPageComponent+ ),title: 'The importance of tracking your personal finances'},{canActivate: [AuthGuard],path: '2023/01/ghostfolio-auf-sackgeld-vorgestellt',loadComponent: () =>- import(- './2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.component'- ).then((c) => c.GhostfolioAufSackgeldVorgestelltPageComponent),+ import('./2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.component').then(+ (c) => c.GhostfolioAufSackgeldVorgestelltPageComponent+ ),title: 'Ghostfolio auf Sackgeld.com vorgestellt'},{canActivate: [AuthGuard],path: '2023/02/ghostfolio-meets-umbrel',loadComponent: () =>- import(- './2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.component'- ).then((c) => c.GhostfolioMeetsUmbrelPageComponent),+ import('./2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.component').then(+ (c) => c.GhostfolioMeetsUmbrelPageComponent+ ),title: 'Ghostfolio meets Umbrel'},{canActivate: [AuthGuard],path: '2023/03/ghostfolio-reaches-1000-stars-on-github',loadComponent: () =>- import(- './2023/03/1000-stars-on-github/1000-stars-on-github-page.component'- ).then((c) => c.ThousandStarsOnGitHubPageComponent),+ import('./2023/03/1000-stars-on-github/1000-stars-on-github-page.component').then(+ (c) => c.ThousandStarsOnGitHubPageComponent+ ),title: 'Ghostfolio reaches 1’000 Stars on GitHub'},{canActivate: [AuthGuard],path: '2023/05/unlock-your-financial-potential-with-ghostfolio',loadComponent: () =>- import(- './2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component'- ).then((c) => c.UnlockYourFinancialPotentialWithGhostfolioPageComponent),+ import('./2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component').then(+ (c) => c.UnlockYourFinancialPotentialWithGhostfolioPageComponent+ ),title: 'Unlock your Financial Potential with Ghostfolio'},{canActivate: [AuthGuard],path: '2023/07/exploring-the-path-to-fire',loadComponent: () =>- import(- './2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component'- ).then((c) => c.ExploringThePathToFirePageComponent),+ import('./2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component').then(+ (c) => c.ExploringThePathToFirePageComponent+ ),title: 'Exploring the Path to FIRE'},{canActivate: [AuthGuard],path: '2023/08/ghostfolio-joins-oss-friends',loadComponent: () =>- import(- './2023/08/ghostfolio-joins-oss-friends/ghostfolio-joins-oss-friends-page.component'- ).then((c) => c.GhostfolioJoinsOssFriendsPageComponent),+ import('./2023/08/ghostfolio-joins-oss-friends/ghostfolio-joins-oss-friends-page.component').then(+ (c) => c.GhostfolioJoinsOssFriendsPageComponent+ ),title: 'Ghostfolio joins OSS Friends'},{@@ -160,9 +160,9 @@ export const routes: Routes = [canActivate: [AuthGuard],path: '2023/09/hacktoberfest-2023',loadComponent: () =>- import(- './2023/09/hacktoberfest-2023/hacktoberfest-2023-page.component'- ).then((c) => c.Hacktoberfest2023PageComponent),+ import('./2023/09/hacktoberfest-2023/hacktoberfest-2023-page.component').then(+ (c) => c.Hacktoberfest2023PageComponent+ ),title: 'Hacktoberfest 2023'},{@@ -178,18 +178,18 @@ export const routes: Routes = [canActivate: [AuthGuard],path: '2023/11/hacktoberfest-2023-debriefing',loadComponent: () =>- import(- './2023/11/hacktoberfest-2023-debriefing/hacktoberfest-2023-debriefing-page.component'- ).then((c) => c.Hacktoberfest2023DebriefingPageComponent),+ import('./2023/11/hacktoberfest-2023-debriefing/hacktoberfest-2023-debriefing-page.component').then(+ (c) => c.Hacktoberfest2023DebriefingPageComponent+ ),title: 'Hacktoberfest 2023 Debriefing'},{canActivate: [AuthGuard],path: '2024/09/hacktoberfest-2024',loadComponent: () =>- import(- './2024/09/hacktoberfest-2024/hacktoberfest-2024-page.component'- ).then((c) => c.Hacktoberfest2024PageComponent),+ import('./2024/09/hacktoberfest-2024/hacktoberfest-2024-page.component').then(+ (c) => c.Hacktoberfest2024PageComponent+ ),title: 'Hacktoberfest 2024'},{@@ -205,9 +205,9 @@ export const routes: Routes = [canActivate: [AuthGuard],path: '2025/09/hacktoberfest-2025',loadComponent: () =>- import(- './2025/09/hacktoberfest-2025/hacktoberfest-2025-page.component'- ).then((c) => c.Hacktoberfest2025PageComponent),+ import('./2025/09/hacktoberfest-2025/hacktoberfest-2025-page.component').then(+ (c) => c.Hacktoberfest2025PageComponent+ ),title: 'Hacktoberfest 2025'},{diff --git a/apps/client/src/app/pages/resources/resources-page.routes.ts b/apps/client/src/app/pages/resources/resources-page.routes.tsindex 58cdad4d34..1079882380 100644--- a/apps/client/src/app/pages/resources/resources-page.routes.ts+++ b/apps/client/src/app/pages/resources/resources-page.routes.ts@@ -33,9 +33,9 @@ export const routes: Routes = [{path: publicRoutes.resources.subRoutes.personalFinanceTools.path,loadChildren: () =>- import(- './personal-finance-tools/personal-finance-tools-page.routes'- ).then((m) => m.routes)+ import('./personal-finance-tools/personal-finance-tools-page.routes').then(+ (m) => m.routes+ )}],path: '',diff --git a/libs/common/src/lib/interfaces/responses/data-provider-ghostfolio-asset-profile-response.interface.ts b/libs/common/src/lib/interfaces/responses/data-provider-ghostfolio-asset-profile-response.interface.tsindex 7fd0314fb4..3ea635c6d2 100644--- a/libs/common/src/lib/interfaces/responses/data-provider-ghostfolio-asset-profile-response.interface.ts+++ b/libs/common/src/lib/interfaces/responses/data-provider-ghostfolio-asset-profile-response.interface.ts@@ -1,4 +1,3 @@import { SymbolProfile } from '@prisma/client';-export interface DataProviderGhostfolioAssetProfileResponse- extends Partial<SymbolProfile> {}+export interface DataProviderGhostfolioAssetProfileResponse extends Partial<SymbolProfile> {}diff --git a/libs/common/src/lib/interfaces/simplewebauthn.interface.ts b/libs/common/src/lib/interfaces/simplewebauthn.interface.tsindex ef0a14ffae..69464b961e 100644--- a/libs/common/src/lib/interfaces/simplewebauthn.interface.ts+++ b/libs/common/src/lib/interfaces/simplewebauthn.interface.ts@@ -3,8 +3,7 @@ export interface AuthenticatorAssertionResponse extends AuthenticatorResponse {readonly signature: ArrayBuffer;readonly userHandle: ArrayBuffer | null;}-export interface AuthenticatorAttestationResponse- extends AuthenticatorResponse {+export interface AuthenticatorAttestationResponse extends AuthenticatorResponse {readonly attestationObject: ArrayBuffer;}export interface AuthenticationExtensionsClientInputs {@@ -57,8 +56,7 @@ export interface PublicKeyCredentialRequestOptions {timeout?: number;userVerification?: UserVerificationRequirement;}-export interface PublicKeyCredentialUserEntity- extends PublicKeyCredentialEntity {+export interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {displayName: string;id: BufferSource;}@@ -99,11 +97,10 @@ export declare type BufferSource = ArrayBufferView | ArrayBuffer;export declare type PublicKeyCredentialType = 'public-key';export declare type UvmEntry = number[];-export interface PublicKeyCredentialCreationOptionsJSON- extends Omit<- PublicKeyCredentialCreationOptions,- 'challenge' | 'user' | 'excludeCredentials'- > {+export interface PublicKeyCredentialCreationOptionsJSON extends Omit<+ PublicKeyCredentialCreationOptions,+ 'challenge' | 'user' | 'excludeCredentials'+> {user: PublicKeyCredentialUserEntityJSON;challenge: Base64URLString;excludeCredentials: PublicKeyCredentialDescriptorJSON[];@@ -113,21 +110,24 @@ export interface PublicKeyCredentialCreationOptionsJSON* A variant of PublicKeyCredentialRequestOptions suitable for JSON transmission to the browser to* (eventually) get passed into navigator.credentials.get(...) in the browser.*/-export interface PublicKeyCredentialRequestOptionsJSON- extends Omit<- PublicKeyCredentialRequestOptions,- 'challenge' | 'allowCredentials'- > {+export interface PublicKeyCredentialRequestOptionsJSON extends Omit<+ PublicKeyCredentialRequestOptions,+ 'challenge' | 'allowCredentials'+> {challenge: Base64URLString;allowCredentials?: PublicKeyCredentialDescriptorJSON[];extensions?: AuthenticationExtensionsClientInputs;}-export interface PublicKeyCredentialDescriptorJSON- extends Omit<PublicKeyCredentialDescriptor, 'id'> {+export interface PublicKeyCredentialDescriptorJSON extends Omit<+ PublicKeyCredentialDescriptor,+ 'id'+> {id: Base64URLString;}-export interface PublicKeyCredentialUserEntityJSON- extends Omit<PublicKeyCredentialUserEntity, 'id'> {+export interface PublicKeyCredentialUserEntityJSON extends Omit<+ PublicKeyCredentialUserEntity,+ 'id'+> {id: string;}/**@@ -140,11 +140,10 @@ export interface AttestationCredential extends PublicKeyCredential {* A slightly-modified AttestationCredential to simplify working with ArrayBuffers that* are Base64URL-encoded in the browser so that they can be sent as JSON to the server.*/-export interface AttestationCredentialJSON- extends Omit<- AttestationCredential,- 'response' | 'rawId' | 'getClientExtensionResults'- > {+export interface AttestationCredentialJSON extends Omit<+ AttestationCredential,+ 'response' | 'rawId' | 'getClientExtensionResults'+> {rawId: Base64URLString;response: AuthenticatorAttestationResponseJSON;clientExtensionResults: AuthenticationExtensionsClientOutputs;@@ -160,11 +159,10 @@ export interface AssertionCredential extends PublicKeyCredential {* A slightly-modified AssertionCredential to simplify working with ArrayBuffers that* are Base64URL-encoded in the browser so that they can be sent as JSON to the server.*/-export interface AssertionCredentialJSON- extends Omit<- AssertionCredential,- 'response' | 'rawId' | 'getClientExtensionResults'- > {+export interface AssertionCredentialJSON extends Omit<+ AssertionCredential,+ 'response' | 'rawId' | 'getClientExtensionResults'+> {rawId: Base64URLString;response: AuthenticatorAssertionResponseJSON;clientExtensionResults: AuthenticationExtensionsClientOutputs;@@ -173,11 +171,10 @@ export interface AssertionCredentialJSON* A slightly-modified AuthenticatorAttestationResponse to simplify working with ArrayBuffers that* are Base64URL-encoded in the browser so that they can be sent as JSON to the server.*/-export interface AuthenticatorAttestationResponseJSON- extends Omit<- AuthenticatorAttestationResponseFuture,- 'clientDataJSON' | 'attestationObject'- > {+export interface AuthenticatorAttestationResponseJSON extends Omit<+ AuthenticatorAttestationResponseFuture,+ 'clientDataJSON' | 'attestationObject'+> {clientDataJSON: Base64URLString;attestationObject: Base64URLString;}@@ -185,11 +182,10 @@ export interface AuthenticatorAttestationResponseJSON* A slightly-modified AuthenticatorAssertionResponse to simplify working with ArrayBuffers that* are Base64URL-encoded in the browser so that they can be sent as JSON to the server.*/-export interface AuthenticatorAssertionResponseJSON- extends Omit<- AuthenticatorAssertionResponse,- 'authenticatorData' | 'clientDataJSON' | 'signature' | 'userHandle'- > {+export interface AuthenticatorAssertionResponseJSON extends Omit<+ AuthenticatorAssertionResponse,+ 'authenticatorData' | 'clientDataJSON' | 'signature' | 'userHandle'+> {authenticatorData: Base64URLString;clientDataJSON: Base64URLString;signature: Base64URLString;@@ -217,8 +213,7 @@ export declare type Base64URLString = string;** Properties marked optional are not supported in all browsers.*/-export interface AuthenticatorAttestationResponseFuture- extends AuthenticatorAttestationResponse {+export interface AuthenticatorAttestationResponseFuture extends AuthenticatorAttestationResponse {getTransports?: () => AuthenticatorTransport[];getAuthenticatorData?: () => ArrayBuffer;getPublicKey?: () => ArrayBuffer;diff --git a/libs/common/src/lib/validators/is-currency-code.ts b/libs/common/src/lib/validators/is-currency-code.tsindex 771818b056..76c6f4fe22 100644--- a/libs/common/src/lib/validators/is-currency-code.ts+++ b/libs/common/src/lib/validators/is-currency-code.ts@@ -21,9 +21,7 @@ export function IsCurrencyCode(validationOptions?: ValidationOptions) {}@ValidatorConstraint({ async: false })-export class IsExtendedCurrencyConstraint- implements ValidatorConstraintInterface-{+export class IsExtendedCurrencyConstraint implements ValidatorConstraintInterface {public defaultMessage() {return '$property must be a valid ISO4217 currency code';}diff --git a/libs/ui/src/lib/assistant/interfaces/interfaces.ts b/libs/ui/src/lib/assistant/interfaces/interfaces.tsindex e018e0eb6e..c00a2b832e 100644--- a/libs/ui/src/lib/assistant/interfaces/interfaces.ts+++ b/libs/ui/src/lib/assistant/interfaces/interfaces.ts@@ -3,8 +3,10 @@ import { AccountWithValue, DateRange } from '@ghostfolio/common/types';import { SearchMode } from '../enums/search-mode';-export interface AccountSearchResultItem- extends Pick<AccountWithValue, 'id' | 'name'> {+export interface AccountSearchResultItem extends Pick<+ AccountWithValue,+ 'id' | 'name'+> {mode: SearchMode.ACCOUNT;routerLink: string[];}diff --git a/libs/ui/src/lib/entity-logo/entity-logo.component.html b/libs/ui/src/lib/entity-logo/entity-logo.component.htmlindex f0abad2857..942ea23e5d 100644--- a/libs/ui/src/lib/entity-logo/entity-logo.component.html+++ b/libs/ui/src/lib/entity-logo/entity-logo.component.html@@ -1,6 +1,6 @@@if (src) {<img- onerror="this.style.display='none'"+ onerror="this.style.display = 'none'"[ngClass]="{ large: size === 'large' }"[src]="src"[title]="tooltip ? tooltip : ''"