Browse Source

Merge branch 'main' into task/upgrade-ngx-skeleton-loader-to-version-14.0.0

pull/8374/head
Thomas Kaul 3 weeks ago
committed by GitHub
parent
commit
c98ae8048e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 14
      CHANGELOG.md
  2. 6
      README.md
  3. 49
      apps/api/src/app/endpoints/sitemap/sitemap.service.ts
  4. 2
      apps/api/src/main.ts
  5. 161
      apps/api/src/middlewares/html-template.middleware.spec.ts
  6. 193
      apps/api/src/middlewares/html-template.middleware.ts
  7. 29
      apps/api/src/services/benchmark/benchmark.service.ts
  8. 33
      apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts
  9. 109
      apps/api/src/services/i18n/i18n.service.spec.ts
  10. 36
      apps/api/src/services/i18n/i18n.service.ts
  11. 14
      apps/api/src/services/portfolio-table/portfolio-table.service.spec.ts
  12. 13
      apps/api/src/services/portfolio-table/portfolio-table.service.ts
  13. 85
      apps/api/src/services/symbol-profile/symbol-profile.service.spec.ts
  14. 34
      apps/api/src/services/symbol-profile/symbol-profile.service.ts
  15. 8
      apps/api/src/services/symbol/symbol.service.ts
  16. 2
      apps/api/src/services/user/user.service.ts
  17. 4
      apps/client/src/app/app.component.ts
  18. 4
      apps/client/src/app/components/admin-market-data/asset-profile-dialog-host/asset-profile-dialog-host.component.ts
  19. 8
      apps/client/src/app/components/admin-platform/admin-platform.component.ts
  20. 8
      apps/client/src/app/components/admin-tag/admin-tag.component.ts
  21. 4
      apps/client/src/app/components/admin-users/admin-users.component.ts
  22. 4
      apps/client/src/app/components/user-account-access/access-dialog-host/access-dialog-host.component.ts
  23. 8
      apps/client/src/app/pages/accounts/account-dialog-host/account-dialog-host.component.ts
  24. 99
      apps/client/src/app/pages/i18n/i18n-page.html
  25. 6
      apps/client/src/app/pages/portfolio/activities/activities-page.component.ts
  26. 3
      apps/client/src/app/pages/portfolio/activities/activity-dialog-host/activity-dialog-host.component.ts
  27. 4
      apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts
  28. 3
      apps/client/src/app/pages/register/register-page.component.ts
  29. 4
      apps/client/src/app/services/user/user.service.ts
  30. 2
      apps/client/src/index.html
  31. 2
      apps/client/src/locales/messages.de.xlf
  32. 52
      apps/client/src/locales/messages.es.xlf
  33. 6
      apps/client/src/styles.scss
  34. 4
      libs/ui/src/lib/benchmark/benchmark.component.ts
  35. 4
      libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts
  36. 4
      package-lock.json
  37. 2
      package.json

14
CHANGELOG.md

@ -9,12 +9,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the content of the pricing page
- Improved the language localization for Spanish (`es`)
- Upgraded `ngx-skeleton-loader` from version `13.0.0` to `14.0.0`
## 3.98.0 - 2026-11-04
### Changed
- Improved the content of the pricing page
- Changed the viewport to resize the content when the on-screen keyboard opens on _Android_ (`interactive-widget=resizes-content`)
- Improved the meta descriptions of the public pages and the blog posts
- Disabled the biometric authentication on all devices when generating a new _Security Token_
- Improved the language localization for German (`de`)
### Fixed
- Fixed the flickering of the navigation items in the header for logged-in users
- Fixed the height of the dialogs on mobile
- Fixed the description of the `ROOT_URL` requirement for the server of the Model Context Protocol (MCP) (experimental)
## 3.97.0 - 2026-11-02

6
README.md

@ -110,7 +110,7 @@ Find answers to commonly asked questions about self-hosting Ghostfolio in our [F
| `REDIS_PORT` | `number` | | The port where _Redis_ is running |
| `REDIS_TLS` | `boolean` (optional) | `false` | Enables TLS/SSL connection to _Redis_ |
| `REQUEST_TIMEOUT` | `number` (optional) | `3000` | The timeout of network requests to data providers in milliseconds |
| `ROOT_URL` | `string` (optional) | `http://0.0.0.0:3333` | The root URL of the Ghostfolio application, used for generating callback URLs and external links. |
| `ROOT_URL` | `string` (optional) | `http://0.0.0.0:3333` | The root URL of the Ghostfolio application, used for generating callback URLs and external links. The endpoint of the _Model Context Protocol_ (MCP) accepts only requests to the host name of this URL. |
| `TRUST_PROXY` | `string` (optional) | | The [trust proxy](https://expressjs.com/en/guide/behind-proxies.html) setting of _Express.js_ to determine the client IP address for rate limiting, e.g. `1` if the Ghostfolio application runs behind a single reverse proxy |
#### OpenID Connect OIDC (experimental)
@ -405,7 +405,7 @@ The _Model Context Protocol_ (MCP) server lets an AI client read your portfolio,
### Prerequisites
- Set `ENABLE_FEATURE_MCP` to `true`
- Set `ROOT_URL` to the public URL of your instance if a client calls the endpoint from a browser page. The host name of `ROOT_URL` is the only accepted origin.
- Set `ROOT_URL` to the public URL of your instance. The clients must use the host name of this URL: the endpoint accepts only requests to this host name, and a request from a browser page only with this host name as origin. If a reverse proxy is in front of your instance, it must send the original `Host` header.
- Grant an access of the type _MCP_ in _My Ghostfolio_ under _Access_ and copy its token
An _MCP_ access with the _Restricted view_ permission reads the portfolio without the monetary values. Grant the _View_ permission to let the client also read the monetary values. Grant the _Restricted view and manage_ or the _View and manage_ permission to let the client also import activities and update the cash balances of your accounts.
@ -415,7 +415,7 @@ An _MCP_ access with the _Restricted view_ permission reads the portfolio withou
Point the client to the endpoint below and set the MCP access token as the _Bearer Token_.
```
POST http://localhost:3333/mcp
POST <INSERT_ROOT_URL>/mcp
"Authorization": "Bearer <INSERT_MCP_ACCESS_TOKEN>"
```

49
apps/api/src/app/endpoints/sitemap/sitemap.service.ts

@ -9,9 +9,6 @@ import { Injectable } from '@nestjs/common';
@Injectable()
export class SitemapService {
private static readonly TRANSLATION_TAGGED_MESSAGE_REGEX =
/:.*@@(?<id>[a-zA-Z0-9.]+):(?<message>.+)/;
public constructor(
private readonly configurationService: ConfigurationService,
private readonly i18nService: I18nService
@ -148,26 +145,13 @@ export class SitemapService {
const rootUrl = this.configurationService.get('ROOT_URL');
return SUPPORTED_LANGUAGE_CODES.flatMap((languageCode) => {
const resourcesPath = this.i18nService.getTranslation({
languageCode,
id: publicRoutes.resources.path.match(
SitemapService.TRANSLATION_TAGGED_MESSAGE_REGEX
).groups.id
});
const personalFinanceToolsPath = this.i18nService.getTranslation({
languageCode,
id: publicRoutes.resources.subRoutes.personalFinanceTools.path.match(
SitemapService.TRANSLATION_TAGGED_MESSAGE_REGEX
).groups.id
});
const productPath = this.i18nService.getTranslation({
languageCode,
id: publicRoutes.resources.subRoutes.personalFinanceTools.subRoutes.product.path.match(
SitemapService.TRANSLATION_TAGGED_MESSAGE_REGEX
).groups.id
});
const [resourcesPath, personalFinanceToolsPath, productPath] =
this.i18nService.getLocalizedRouterLink({
languageCode,
routerLink:
publicRoutes.resources.subRoutes.personalFinanceTools.subRoutes
.product.routerLink
});
return personalFinanceTools.map(({ alias, key }) => {
const routerLink = [
@ -217,21 +201,10 @@ export class SitemapService {
rootUrl: string;
route?: PublicRoute;
}): string {
const segments =
route?.routerLink.map((link) => {
const match = link.match(
SitemapService.TRANSLATION_TAGGED_MESSAGE_REGEX
);
const segment = match
? (this.i18nService.getTranslation({
languageCode,
id: match.groups.id
}) ?? match.groups.message)
: link;
return segment.replace(/^\/+|\/+$/, '');
}) ?? [];
const segments = this.i18nService.getLocalizedRouterLink({
languageCode,
routerLink: route?.routerLink ?? []
});
const location = [rootUrl, languageCode, ...segments].join('/');

2
apps/api/src/main.ts

@ -151,7 +151,7 @@ async function bootstrap() {
const { hostname } = new URL(configurationService.get('ROOT_URL'));
logger.warn(
`The Model Context Protocol (MCP) is enabled, but ROOT_URL is not set. A client which calls the endpoint from a browser page is accepted only with the origin ${hostname}.`
`The Model Context Protocol (MCP) is enabled, but ROOT_URL is not set. The endpoint accepts only requests to the host name ${hostname}. Set ROOT_URL to the public URL of the instance.`
);
}

161
apps/api/src/middlewares/html-template.middleware.spec.ts

@ -0,0 +1,161 @@
import { I18nService } from '@ghostfolio/api/services/i18n/i18n.service';
import { personalFinanceTools } from '@ghostfolio/common/personal-finance-tools';
import { Logger } from '@nestjs/common';
import { NextFunction, Request, Response } from 'express';
import { readFileSync, readdirSync } from 'node:fs';
import { HtmlTemplateMiddleware } from './html-template.middleware';
jest.mock('@ghostfolio/api/environments/environment', () => {
return { environment: { production: true, rootUrl: 'https://ghostfol.io' } };
});
jest.mock('node:fs', () => {
return {
...jest.requireActual('node:fs'),
readFileSync: jest.fn(),
readdirSync: jest.fn()
};
});
const genericDescription = 'Generic description';
const indexHtml = '<meta content="${description}" name="description" />';
const productPath =
'/en/resources/personal-finance-tools/open-source-alternative-to-8figures';
function createLocale({
pricingDescription = 'Pricing description',
productDescription
}: {
pricingDescription?: string;
productDescription: string;
}) {
return `
<xliff>
<trans-unit id="metaDescription">
<source>${genericDescription}</source>
</trans-unit>
<trans-unit id="metaDescription.pricing">
<source>${pricingDescription}</source>
</trans-unit>
<trans-unit id="metaDescription.resources.personalFinanceTools.product">
<source>${productDescription}</source>
</trans-unit>
<trans-unit id="routes.pricing">
<source>pricing</source>
</trans-unit>
<trans-unit id="routes.resources">
<source>resources</source>
</trans-unit>
<trans-unit id="routes.resources.personalFinanceTools">
<source>personal-finance-tools</source>
</trans-unit>
<trans-unit id="routes.resources.personalFinanceTools.openSourceAlternativeTo">
<source>open-source-alternative-to</source>
</trans-unit>
</xliff>
`;
}
function getResponseBody({
locale,
originalUrl
}: {
locale: string;
originalUrl: string;
}) {
(readdirSync as jest.Mock).mockReturnValue(['messages.xlf']);
(readFileSync as jest.Mock).mockImplementation((path: string) => {
return path.endsWith('index.html') ? indexHtml : locale;
});
const i18nService = new I18nService();
i18nService.onModuleInit();
const send = jest.fn();
new HtmlTemplateMiddleware(i18nService).use(
{ originalUrl } as Request,
{ send } as unknown as Response,
jest.fn() as NextFunction
);
return send.mock.calls[0][0];
}
describe('HtmlTemplateMiddleware', () => {
beforeEach(() => {
jest.spyOn(Logger.prototype, 'warn').mockImplementation();
});
afterEach(() => {
jest.restoreAllMocks();
});
it('serves the description of a public route', () => {
expect(
getResponseBody({
locale: createLocale({ productDescription: 'Compare ${name}' }),
originalUrl: '/en/pricing'
})
).toContain('content="Pricing description"');
});
it('interpolates the name into the description of a personal finance tool', () => {
expect(
getResponseBody({
locale: createLocale({ productDescription: 'Compare ${name}' }),
originalUrl: productPath
})
).toContain('content="Compare 8FIGURES"');
});
it.each(
personalFinanceTools.filter(({ alias, key }) => {
return (alias ?? key).includes('.');
})
)(
'serves the template of a personal finance tool with a dot in the key ($key)',
({ alias, key, name }) => {
expect(
getResponseBody({
locale: createLocale({ productDescription: 'Compare ${name}' }),
originalUrl: `/en/resources/personal-finance-tools/open-source-alternative-to-${alias ?? key}`
})
).toContain(`content="Compare ${name}"`);
}
);
it('falls back to the generic description if the name token is not in the description of a personal finance tool', () => {
expect(
getResponseBody({
locale: createLocale({ productDescription: 'Compare ${product}' }),
originalUrl: productPath
})
).toContain(`content="${genericDescription}"`);
});
it('falls back to the generic description if the description of a personal finance tool contains another token than the name token', () => {
expect(
getResponseBody({
locale: createLocale({
productDescription: 'Compare ${name} (${product})'
}),
originalUrl: productPath
})
).toContain(`content="${genericDescription}"`);
});
it('escapes the description for the use in an attribute', () => {
expect(
getResponseBody({
locale: createLocale({
pricingDescription: 'Compare &quot;plans&quot; &amp; prices',
productDescription: 'Compare ${name}'
}),
originalUrl: '/en/pricing'
})
).toContain('content="Compare &quot;plans&quot; &amp; prices"');
});
});

193
apps/api/src/middlewares/html-template.middleware.ts

@ -6,6 +6,9 @@ import {
SUPPORTED_LANGUAGE_CODES
} from '@ghostfolio/common/config';
import { DATE_FORMAT, interpolate } from '@ghostfolio/common/helper';
import { personalFinanceTools } from '@ghostfolio/common/personal-finance-tools';
import { PublicRoute } from '@ghostfolio/common/routes/interfaces/public-route.interface';
import { publicRoutes } from '@ghostfolio/common/routes/routes';
import { Injectable, Logger, NestMiddleware } from '@nestjs/common';
import { format } from 'date-fns';
@ -16,75 +19,135 @@ import { join } from 'node:path';
const title = 'Ghostfolio';
const locales = {
'/de/blog/2021/07/hallo-ghostfolio': {
description:
'Hallo Ghostfolio: Die Vorstellung des Open Source Projekts für die persönlichen Finanzen. Welches Problem es löst und welche Vision dahinter steht.'
},
'/de/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt': {
description:
'Ghostfolio auf Sackgeld.com: Der Bericht erläutert die Funktionsweise, die unterstützten Assets und die Preisstruktur der Open Source Software.',
featureGraphicPath: 'assets/images/blog/ghostfolio-x-sackgeld.png',
title: `Ghostfolio auf Sackgeld.com vorgestellt - ${title}`
},
'/en/blog/2021/07/hello-ghostfolio': {
description:
'Meet Ghostfolio, an open source personal finance software. Learn which problem it solves and the vision of an overview of all your assets in real time.'
},
'/en/blog/2022/01/ghostfolio-first-months-in-open-source': {
description:
'A look back at the first months of Ghostfolio in open source: the road to 100 stars on GitHub and why the benefits of public development outweigh the drawbacks.'
},
'/en/blog/2022/07/ghostfolio-meets-internet-identity': {
description:
'Ghostfolio now supports passwordless sign-in with Internet Identity, a blockchain authentication system. Track your portfolio without being tracked.'
},
'/en/blog/2022/07/how-do-i-get-my-finances-in-order': {
description:
'Before you start long-term investing, get your finances in order. Follow Peter as he plans his monthly budget, saves money and sets financial goals.'
},
'/en/blog/2022/08/500-stars-on-github': {
description:
'Ghostfolio celebrates 500 stars on GitHub. A recap of the growing community, the new message queue and the Internet Identity integration for Web3.',
featureGraphicPath: 'assets/images/blog/500-stars-on-github.jpg',
title: `500 Stars - ${title}`
},
'/en/blog/2022/10/hacktoberfest-2022': {
description:
'Ghostfolio joins Hacktoberfest for the first time. Make your first pull request on GitHub and contribute to the open source personal finance software.',
featureGraphicPath: 'assets/images/blog/hacktoberfest-2022.png',
title: `Hacktoberfest 2022 - ${title}`
},
'/en/blog/2022/11/black-friday-2022': {
description:
'Black Friday 2022 offer: 75% off the annual plan of Ghostfolio Premium. This offer has ended. See the pricing page for the current plans.'
},
'/en/blog/2022/12/the-importance-of-tracking-your-personal-finances': {
description:
'Tracking your assets helps you reach your financial goals. Learn why to monitor your personal finances, understand your net worth and act when required.',
featureGraphicPath: 'assets/images/blog/20221226.jpg',
title: `The importance of tracking your personal finances - ${title}`
},
'/en/blog/2023/02/ghostfolio-meets-umbrel': {
description:
'Ghostfolio is now available in the Umbrel App Store. Self-host the open source personal finance software on a home server and stay in control of your data.',
featureGraphicPath: 'assets/images/blog/ghostfolio-x-umbrel.png',
title: `Ghostfolio meets Umbrel - ${title}`
},
'/en/blog/2023/03/ghostfolio-reaches-1000-stars-on-github': {
description:
'Ghostfolio reaches 1’000 stars on GitHub. A look at the achievements of the open source personal finance software, its community and future developments.',
featureGraphicPath: 'assets/images/blog/1000-stars-on-github.jpg',
title: `Ghostfolio reaches 1’000 Stars on GitHub - ${title}`
},
'/en/blog/2023/05/unlock-your-financial-potential-with-ghostfolio': {
description:
'Discover why Ghostfolio is the ideal open source tool to manage stocks, ETFs and cryptocurrencies across multiple platforms, with insights and privacy.',
featureGraphicPath: 'assets/images/blog/20230520.jpg',
title: `Unlock your Financial Potential with Ghostfolio - ${title}`
},
'/en/blog/2023/07/exploring-the-path-to-fire': {
description:
'What is FIRE? Explore the concept of Financial Independence and Retiring Early, the famous 4% rule, and the pros and cons of this popular movement.',
featureGraphicPath: 'assets/images/blog/20230701.jpg',
title: `Exploring the Path to FIRE - ${title}`
},
'/en/blog/2023/08/ghostfolio-joins-oss-friends': {
description:
'Ghostfolio is now part of OSS Friends, a new initiative that helps open source projects grow. Read the story behind the movement and how to join it.',
featureGraphicPath: 'assets/images/blog/ghostfolio-joins-oss-friends.png',
title: `Ghostfolio joins OSS Friends - ${title}`
},
'/en/blog/2023/09/ghostfolio-2': {
description:
'Ghostfolio 2.0 is here: extended data import, comprehensive analytics, increased stability and the latest technology in open source wealth management.',
featureGraphicPath: 'assets/images/blog/ghostfolio-2.jpg',
title: `Announcing Ghostfolio 2.0 - ${title}`
},
'/en/blog/2023/09/hacktoberfest-2023': {
description:
'Ghostfolio joins Hacktoberfest for the second time. Make your first pull request on GitHub and contribute to the open source personal finance software.',
featureGraphicPath: 'assets/images/blog/hacktoberfest-2023.png',
title: `Hacktoberfest 2023 - ${title}`
},
'/en/blog/2023/11/black-week-2023': {
description:
'Black Week 2023 offer: 33% off the annual plan of Ghostfolio Premium. This offer has ended. See the pricing page for the current plans.',
featureGraphicPath: 'assets/images/blog/black-week-2023.jpg',
title: `Black Week 2023 - ${title}`
},
'/en/blog/2023/11/hacktoberfest-2023-debriefing': {
description:
'Looking back at Hacktoberfest 2023 at Ghostfolio: 20 developers from around the world and as many as 100 new features and improvements in the project.',
featureGraphicPath: 'assets/images/blog/hacktoberfest-2023.png',
title: `Hacktoberfest 2023 Debriefing - ${title}`
},
'/en/blog/2024/09/hacktoberfest-2024': {
description:
'Ghostfolio joins Hacktoberfest for the third time. Make your first pull request on GitHub and contribute to the open source personal finance dashboard.',
featureGraphicPath: 'assets/images/blog/hacktoberfest-2024.png',
title: `Hacktoberfest 2024 - ${title}`
},
'/en/blog/2024/11/black-weeks-2024': {
description:
'Black Weeks 2024 offer: 25% off the annual plan of Ghostfolio Premium plus 3 extra months. This offer has ended. See the pricing page for the current plans.',
featureGraphicPath: 'assets/images/blog/black-weeks-2024.jpg',
title: `Black Weeks 2024 - ${title}`
},
'/en/blog/2025/09/hacktoberfest-2025': {
description:
'Ghostfolio joins Hacktoberfest for the fourth time. Make your first pull request on GitHub and contribute to the modern personal finance dashboard.',
featureGraphicPath: 'assets/images/blog/hacktoberfest-2025.png',
title: `Hacktoberfest 2025 - ${title}`
},
'/en/blog/2025/11/black-weeks-2025': {
description:
'Black Weeks 2025 offer: 25% off the annual plan of Ghostfolio Premium plus 3 extra months. This offer has ended. See the pricing page for the current plans.',
featureGraphicPath: 'assets/images/blog/black-weeks-2025.jpg',
title: `Black Weeks 2025 - ${title}`
},
'/en/blog/2026/04/ghostfolio-3': {
description:
'Ghostfolio 3.0 is here: a refreshed user interface, expanded analytics, improved stability, more languages and an updated technology stack.',
featureGraphicPath: 'assets/images/blog/ghostfolio-3.jpg',
title: `Announcing Ghostfolio 3.0 - ${title}`
},
@ -101,6 +164,9 @@ export class HtmlTemplateMiddleware implements NestMiddleware {
private readonly logger = new Logger(HtmlTemplateMiddleware.name);
private indexHtmlMap: { [languageCode: string]: string } = {};
private routeDescriptionsMap: {
[languageCode: string]: { [path: string]: string };
} = {};
public constructor(private readonly i18nService: I18nService) {
if (!environment.production) {
@ -135,7 +201,7 @@ export class HtmlTemplateMiddleware implements NestMiddleware {
}
public use(request: Request, response: Response, next: NextFunction) {
const path = request.originalUrl.replace(/\/$/, '');
const path = request.originalUrl.split('?')[0].replace(/\/$/, '');
let languageCode = path.substr(1, 2);
if (
@ -162,12 +228,14 @@ export class HtmlTemplateMiddleware implements NestMiddleware {
languageCode,
path,
rootUrl,
description:
description: this.escapeAttribute(
locales[path]?.description ??
this.i18nService.getTranslation({
languageCode,
id: 'metaDescription'
}),
this.getRouteDescription({ languageCode, path }) ??
this.i18nService.getTranslation({
languageCode,
id: 'metaDescription'
})
),
featureGraphicPath:
locales[path]?.featureGraphicPath ?? 'assets/cover.png',
keywords: this.i18nService.getTranslation({
@ -186,13 +254,120 @@ export class HtmlTemplateMiddleware implements NestMiddleware {
}
}
private escapeAttribute(value: string) {
return value.replace(/&/g, '&amp;').replace(/"/g, '&quot;');
}
private getPersonalFinanceToolDescriptions(
languageCode: string
): [string, string][] {
const description = this.i18nService.getTranslation({
languageCode,
id: 'metaDescription.resources.personalFinanceTools.product',
skipUntranslated: true
});
const tokens = description.match(/[$]{[^}]+}/g) ?? [];
if (
tokens.length === 0 ||
tokens.some((token) => {
return token !== '${name}';
})
) {
return [];
}
const path = [
'',
languageCode,
...this.i18nService.getLocalizedRouterLink({
languageCode,
routerLink:
publicRoutes.resources.subRoutes.personalFinanceTools.subRoutes
.product.routerLink
})
].join('/');
return personalFinanceTools.map(({ alias, key, name }) => {
return [`${path}-${alias ?? key}`, interpolate(description, { name })];
});
}
private getPublicRouteDescriptions({
id,
languageCode,
routes
}: {
id: string;
languageCode: string;
routes: Record<string, PublicRoute>;
}): [string, string][] {
return Object.entries(routes).flatMap(([key, route]) => {
if (route.excludeFromSitemap) {
return [];
}
const routeId = `${id}.${key}`;
const path = [
'',
languageCode,
...this.i18nService.getLocalizedRouterLink({
languageCode,
routerLink: route.routerLink
})
].join('/');
const description = this.i18nService.getTranslation({
languageCode,
id: routeId,
skipUntranslated: true
});
return [
[path, description] as [string, string],
...this.getPublicRouteDescriptions({
languageCode,
id: routeId,
routes: route.subRoutes ?? {}
})
];
});
}
private getRouteDescription({
languageCode,
path
}: {
languageCode: string;
path: string;
}): string | undefined {
// Build once per language since the translation lookups are expensive
this.routeDescriptionsMap[languageCode] ??= Object.fromEntries(
[
...this.getPersonalFinanceToolDescriptions(languageCode),
...this.getPublicRouteDescriptions({
languageCode,
id: 'metaDescription',
routes: publicRoutes
})
].filter(([, description]) => {
return description;
})
);
return this.routeDescriptionsMap[languageCode][path];
}
private isFileRequest(filename: string) {
if (filename === '/assets/LICENSE') {
return true;
} else if (
filename.endsWith('-de.fi') ||
filename.endsWith('-markets.sh') ||
filename.includes('auth/ey')
filename.includes('auth/ey') ||
personalFinanceTools.some(({ alias, key }) => {
return filename.endsWith(`-${alias ?? key}`);
})
) {
return false;
}

29
apps/api/src/services/benchmark/benchmark.service.ts

@ -16,7 +16,8 @@ import {
AssetProfileIdentifier,
Benchmark,
BenchmarkProperty,
BenchmarkResponse
BenchmarkResponse,
EnhancedAssetProfile
} from '@ghostfolio/common/interfaces';
import { Injectable, Logger } from '@nestjs/common';
@ -88,18 +89,20 @@ export class BenchmarkService {
this.CACHE_KEY_BENCHMARKS
);
const { benchmarks, expiration }: BenchmarkValue =
JSON.parse(cachedBenchmarkValue);
if (cachedBenchmarkValue) {
const { benchmarks, expiration }: BenchmarkValue =
JSON.parse(cachedBenchmarkValue);
this.logger.debug('Fetched benchmarks from cache');
this.logger.debug('Fetched benchmarks from cache');
if (isPast(new Date(expiration))) {
this.calculateAndCacheBenchmarks({
enableSharing
});
}
if (isPast(new Date(expiration))) {
this.calculateAndCacheBenchmarks({
enableSharing
});
}
return benchmarks;
return benchmarks;
}
} catch {}
}
@ -108,7 +111,9 @@ export class BenchmarkService {
public async getBenchmarkAssetProfiles({
enableSharing = false
} = {}): Promise<Partial<SymbolProfile>[]> {
} = {}): Promise<
Pick<EnhancedAssetProfile, 'dataSource' | 'id' | 'name' | 'symbol'>[]
> {
const symbolProfileIds: string[] = (
(await this.propertyService.getByKey<BenchmarkProperty[]>(
PROPERTY_BENCHMARKS
@ -293,7 +298,7 @@ export class BenchmarkService {
name: benchmarkAssetProfiles[index].name,
performances: {
allTimeHigh: {
date: allTimeHigh?.date,
date: allTimeHigh?.date as Date,
performancePercent: this.getPerformancePercentFromAllTimeHigh(
performancePercentFromAllTimeHigh
)

33
apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts

@ -88,7 +88,7 @@ export class ExchangeRateDataService {
);
const lastDateString = dateStrings.reduce((a, b) => {
return a > b ? a : b;
}, undefined);
}, '');
let previousExchangeRate =
exchangeRatesByCurrency[`${currency}${targetCurrency}`]?.[
@ -214,7 +214,7 @@ export class ExchangeRateDataService {
const resultExtended = result;
for (const symbol of Object.keys(result)) {
const [currency1, currency2] = symbol.match(/.{1,3}/g);
const [currency1, currency2] = symbol.match(/.{1,3}/g) ?? [];
const [date] = Object.keys(result[symbol]);
// Calculate the opposite direction
@ -226,7 +226,7 @@ export class ExchangeRateDataService {
}
for (const symbol of Object.keys(resultExtended)) {
const [currency1, currency2] = symbol.match(/.{1,3}/g);
const [currency1, currency2] = symbol.match(/.{1,3}/g) ?? [];
this.exchangeRates[symbol] =
resultExtended[symbol]?.[dateStringOfYesterday]?.marketPrice;
@ -302,7 +302,7 @@ export class ExchangeRateDataService {
const derivedCurrencyFactor =
this.derivedCurrencyFactors[`${aFromCurrency}${aToCurrency}`];
let factor: number;
let factor: number | undefined;
if (aFromCurrency === aToCurrency) {
factor = 1;
@ -324,8 +324,8 @@ export class ExchangeRateDataService {
} else {
// Calculate indirectly via base currency
let marketPriceBaseCurrencyFromCurrency: number;
let marketPriceBaseCurrencyToCurrency: number;
let marketPriceBaseCurrencyFromCurrency: number | undefined;
let marketPriceBaseCurrencyToCurrency: number | undefined;
try {
if (aFromCurrency === DEFAULT_CURRENCY) {
@ -337,7 +337,7 @@ export class ExchangeRateDataService {
date: aDate,
symbol: `${DEFAULT_CURRENCY}${aFromCurrency}`
})
)?.marketPrice as number;
)?.marketPrice;
}
} catch {}
@ -351,14 +351,19 @@ export class ExchangeRateDataService {
date: aDate,
symbol: `${DEFAULT_CURRENCY}${aToCurrency}`
})
)?.marketPrice as number;
)?.marketPrice;
}
} catch {}
// Calculate the opposite direction
factor =
(1 / marketPriceBaseCurrencyFromCurrency) *
marketPriceBaseCurrencyToCurrency;
if (
isNumber(marketPriceBaseCurrencyFromCurrency) &&
isNumber(marketPriceBaseCurrencyToCurrency)
) {
// Calculate the opposite direction
factor =
(1 / marketPriceBaseCurrencyFromCurrency) *
marketPriceBaseCurrencyToCurrency;
}
}
}
@ -530,7 +535,9 @@ export class ExchangeRateDataService {
}
})
).forEach(({ currency }) => {
currencies.push(currency);
if (currency) {
currencies.push(currency);
}
});
(

109
apps/api/src/services/i18n/i18n.service.spec.ts

@ -0,0 +1,109 @@
import { Logger } from '@nestjs/common';
import { readFileSync, readdirSync } from 'node:fs';
import { I18nService } from './i18n.service';
jest.mock('node:fs', () => {
return {
...jest.requireActual('node:fs'),
readFileSync: jest.fn(),
readdirSync: jest.fn()
};
});
const germanLocale = `
<xliff>
<trans-unit id="metaDescription.new">
<source>New</source>
<target state="new">New</target>
</trans-unit>
<trans-unit id="metaDescription.translated">
<source>Translated</source>
<target state="translated">Übersetzt</target>
</trans-unit>
<trans-unit id="routes.faq">
<source>faq</source>
<target state="translated">haeufig-gestellte-fragen</target>
</trans-unit>
<trans-unit id="routes.faq.selfHosting">
<source>self-hosting</source>
<target state="translated">selbst-hosting</target>
</trans-unit>
</xliff>
`;
describe('I18nService', () => {
let i18nService: I18nService;
let warnSpy: jest.SpyInstance;
beforeEach(() => {
(readdirSync as jest.Mock).mockReturnValue(['messages.de.xlf']);
(readFileSync as jest.Mock).mockReturnValue(germanLocale);
warnSpy = jest.spyOn(Logger.prototype, 'warn').mockImplementation();
i18nService = new I18nService();
i18nService.onModuleInit();
});
afterEach(() => {
jest.restoreAllMocks();
});
describe('getTranslation', () => {
it('returns a target with the state "new" by default', () => {
expect(
i18nService.getTranslation({
id: 'metaDescription.new',
languageCode: 'de'
})
).toBe('New');
});
it('skips a target with the state "new" without a warning if skipUntranslated is true', () => {
expect(
i18nService.getTranslation({
id: 'metaDescription.new',
languageCode: 'de',
skipUntranslated: true
})
).toBe('');
expect(warnSpy).not.toHaveBeenCalled();
});
it('returns a translated target if skipUntranslated is true', () => {
expect(
i18nService.getTranslation({
id: 'metaDescription.translated',
languageCode: 'de',
skipUntranslated: true
})
).toBe('Übersetzt');
});
it('logs a warning for an unknown id by default', () => {
expect(
i18nService.getTranslation({
id: 'metaDescription.unknown',
languageCode: 'de'
})
).toBe('');
expect(warnSpy).toHaveBeenCalledTimes(1);
});
});
describe('getLocalizedRouterLink', () => {
it('localizes the tagged segments and keeps the other segments', () => {
expect(
i18nService.getLocalizedRouterLink({
languageCode: 'de',
routerLink: [
'/:kebab-case@@routes.faq:faq',
':kebab-case@@routes.faq.selfHosting:self-hosting',
'saas'
]
})
).toEqual(['haeufig-gestellte-fragen', 'selbst-hosting', 'saas']);
});
});
});

36
apps/api/src/services/i18n/i18n.service.ts

@ -7,6 +7,9 @@ import { join } from 'node:path';
@Injectable()
export class I18nService implements OnModuleInit {
private static readonly TRANSLATION_TAGGED_MESSAGE_REGEX =
/:.*@@(?<id>[a-zA-Z0-9.]+):(?<message>.+)/;
private readonly logger = new Logger(I18nService.name);
private localesPath = join(__dirname, 'assets', 'locales');
@ -16,14 +19,37 @@ export class I18nService implements OnModuleInit {
this.loadFiles();
}
public getLocalizedRouterLink({
languageCode,
routerLink
}: {
languageCode: string;
routerLink: string[];
}): string[] {
return routerLink.map((link) => {
const match = link.match(I18nService.TRANSLATION_TAGGED_MESSAGE_REGEX);
const segment = match
? this.getTranslation({
languageCode,
id: match.groups.id
}) || match.groups.message
: link;
return segment.replace(/^\/+|\/+$/g, '');
});
}
public getTranslation({
id,
languageCode,
placeholders
placeholders,
skipUntranslated = false
}: {
id: string;
languageCode: string;
placeholders?: Record<string, string | number>;
skipUntranslated?: boolean;
}): string {
const languageCodeToUse = this.translations[languageCode]
? languageCode
@ -37,13 +63,17 @@ export class I18nService implements OnModuleInit {
return '';
}
const targetSelector = skipUntranslated
? 'target:not([state="new"])'
: 'target';
let translatedText = $(
`trans-unit[id="${id}"] > ${
languageCodeToUse === DEFAULT_LANGUAGE_CODE ? 'source' : 'target'
languageCodeToUse === DEFAULT_LANGUAGE_CODE ? 'source' : targetSelector
}`
).text();
if (!translatedText) {
if (!translatedText && !skipUntranslated) {
this.logger.warn(
`Translation not found for id '${id}' in locale '${languageCode}'`
);

14
apps/api/src/services/portfolio-table/portfolio-table.service.spec.ts

@ -121,6 +121,7 @@ function createHolding({
assetSubClass = AssetSubClass.STOCK,
dataSource = DataSource.YAHOO,
isin,
name,
symbol = 'AAPL'
}: {
allocationInPercentage?: number;
@ -128,6 +129,7 @@ function createHolding({
assetSubClass?: AssetSubClass;
dataSource?: DataSource;
isin?: string | null;
name?: string | null;
symbol?: string;
} = {}) {
return {
@ -140,7 +142,7 @@ function createHolding({
isin,
symbol,
currency: 'CHF',
name: `Name of ${symbol}`
name: name === undefined ? `Name of ${symbol}` : name
},
dateOfFirstActivity: new Date('2024-01-01'),
grossPerformance: 100,
@ -631,6 +633,16 @@ describe('PortfolioTableService', () => {
expect(row).toContain('| Name of AAPL | | AAPL |');
});
it('gives an empty name if the asset profile has none', async () => {
const result = await getHoldingsTable([createHolding({ name: null })]);
const [row] = result.split('\n').filter((line) => {
return line.includes('| AAPL |');
});
expect(row).toContain('| | | AAPL |');
});
it('gives the translation of the asset class and of the asset sub class', async () => {
const result = await getHoldingsTable([createHolding()]);

13
apps/api/src/services/portfolio-table/portfolio-table.service.ts

@ -52,7 +52,10 @@ function getDataSourceColumnDefinition<T>(
const dataSource = getDataSource(row);
return dataSource
? transformDataSourceInResponse({ configurationService, dataSource })
? (transformDataSourceInResponse({
configurationService,
dataSource
}) ?? '')
: '';
},
name: DATA_SOURCE_COLUMN_NAME
@ -176,7 +179,7 @@ export class PortfolioTableService {
}),
{
getValue: ({ assetProfile, currency }) => {
return currency ?? assetProfile.currency;
return currency ?? assetProfile.currency ?? '';
},
name: 'Currency'
},
@ -226,7 +229,7 @@ export class PortfolioTableService {
[
{
getValue: ({ assetProfile }) => {
return assetProfile.name;
return assetProfile.name ?? '';
},
name: 'Name'
},
@ -249,7 +252,7 @@ export class PortfolioTableService {
}),
{
getValue: ({ assetProfile }) => {
return assetProfile.currency;
return assetProfile.currency ?? '';
},
name: 'Currency'
},
@ -696,7 +699,7 @@ export class PortfolioTableService {
const performanceSection = ['## Performance', ''];
if (chart?.length > 0) {
if (chart && chart.length > 0) {
performanceSection.push(
await getMarkdownTable({
columnDefinitions: this.getColumnDefinitions({

85
apps/api/src/services/symbol-profile/symbol-profile.service.spec.ts

@ -81,4 +81,89 @@ describe('SymbolProfileService', () => {
).resolves.toEqual([expect.objectContaining({ name: 'Apple' })]);
});
});
describe('getSymbolProfiles', () => {
let findManySymbolProfiles: jest.Mock;
let symbolProfileService: SymbolProfileService;
beforeEach(() => {
findManySymbolProfiles = jest.fn();
symbolProfileService = new SymbolProfileService({
symbolProfile: { findMany: findManySymbolProfiles }
} as unknown as PrismaService);
});
it('enhances the symbol profile and excludes relational metadata', async () => {
const dateOfFirstActivity = new Date('2024-01-15T00:00:00.000Z');
findManySymbolProfiles.mockResolvedValue([
{
_count: { activities: 3, watchedBy: 1 },
activities: [{ date: dateOfFirstActivity }],
assetProfileOverrides: { name: 'Apple Inc. (Custom)' },
currency: 'USD',
dataSource: DataSource.YAHOO,
isin: 'US0378331005',
name: 'Apple Inc.',
scraperConfiguration: {
defaultMarketPrice: 100,
headers: { 'User-Agent': 'Test' },
locale: 'en',
mode: 'lazy',
selector: '.price',
url: 'https://example.com'
},
symbol: 'AAPL'
}
]);
const [result] = await symbolProfileService.getSymbolProfiles([
{ dataSource: DataSource.YAHOO, symbol: 'AAPL' }
]);
expect(result).toEqual(
expect.objectContaining({
activitiesCount: 3,
dateOfFirstActivity,
name: 'Apple Inc. (Custom)',
scraperConfiguration: {
defaultMarketPrice: 100,
headers: { 'User-Agent': 'Test' },
locale: 'en',
mode: 'lazy',
selector: '.price',
url: 'https://example.com'
},
watchedByCount: 1
})
);
expect(result).not.toHaveProperty('_count');
expect(result).not.toHaveProperty('activities');
expect(result).not.toHaveProperty('assetProfileOverrides');
});
it('gives null for scraperConfiguration if none exists', async () => {
findManySymbolProfiles.mockResolvedValue([
{
_count: { activities: 0 },
assetProfileOverrides: null,
currency: 'USD',
dataSource: DataSource.YAHOO,
isin: 'US0378331005',
name: 'Apple Inc.',
scraperConfiguration: null,
symbol: 'AAPL'
}
]);
const [result] = await symbolProfileService.getSymbolProfiles([
{ dataSource: DataSource.YAHOO, symbol: 'AAPL' }
]);
expect(result.scraperConfiguration).toBeNull();
expect(result.dateOfFirstActivity).toBeUndefined();
expect(result.watchedByCount).toBe(0);
});
});
});

34
apps/api/src/services/symbol-profile/symbol-profile.service.ts

@ -21,6 +21,7 @@ import {
SymbolProfile
} from '@prisma/client';
import { continents, countries } from 'countries-list';
import { omit } from 'lodash-es';
@Injectable()
export class SymbolProfileService {
@ -284,7 +285,7 @@ export class SymbolProfileService {
activities?: {
date: Date;
}[];
assetProfileOverrides: AssetProfileOverrides;
assetProfileOverrides: AssetProfileOverrides | null;
})[]
): EnhancedAssetProfile[] {
return symbolProfiles.map((symbolProfile) => {
@ -293,13 +294,19 @@ export class SymbolProfileService {
symbolProfile.assetProfileOverrides
);
const item = {
...symbolProfileWithOverrides,
activitiesCount: 0,
const symbolProfileWithoutExtras = omit(symbolProfileWithOverrides, [
'_count',
'activities',
'assetProfileOverrides'
]);
return {
...symbolProfileWithoutExtras,
activitiesCount: symbolProfile._count.activities,
countries: this.getCountries(
symbolProfileWithOverrides?.countries as unknown as Prisma.JsonArray
),
dateOfFirstActivity: undefined as Date,
dateOfFirstActivity: symbolProfile.activities?.[0]?.date,
holdings: this.getHoldings(
symbolProfileWithOverrides?.holdings as unknown as Prisma.JsonArray
),
@ -310,19 +317,8 @@ export class SymbolProfileService {
symbolProfileWithOverrides?.sectors as unknown as Prisma.JsonArray
),
symbolMapping: this.getSymbolMapping(symbolProfileWithOverrides),
watchedByCount: 0
};
item.activitiesCount = symbolProfile._count.activities;
item.watchedByCount = symbolProfile._count.watchedBy ?? 0;
delete item._count;
item.dateOfFirstActivity = symbolProfile.activities?.[0]?.date;
delete item.activities;
delete item.assetProfileOverrides;
return item;
watchedByCount: symbolProfile._count.watchedBy ?? 0
} as EnhancedAssetProfile;
});
}
@ -361,7 +357,7 @@ export class SymbolProfileService {
private getScraperConfiguration(
symbolProfile: SymbolProfile
): ScraperConfiguration {
): ScraperConfiguration | null {
const scraperConfiguration =
symbolProfile.scraperConfiguration as Prisma.JsonObject;

8
apps/api/src/services/symbol/symbol.service.ts

@ -40,7 +40,7 @@ export class SymbolService {
dataGatheringItem: DataGatheringItem;
includeHistoricalData?: number;
useIntradayData?: boolean;
}): Promise<SymbolItem> {
}): Promise<SymbolItem | undefined> {
let currency: string;
let marketPrice: number;
@ -63,7 +63,7 @@ export class SymbolService {
if (dataGatheringItem.dataSource && marketPrice >= 0) {
let historicalData: HistoricalDataItem[] = [];
if (includeHistoricalData > 0) {
if (includeHistoricalData && includeHistoricalData > 0) {
const days = includeHistoricalData;
const marketData = await this.marketDataService.getRange({
@ -168,10 +168,10 @@ export class SymbolService {
fearAndGreedIndex: {
CRYPTOCURRENCIES: {
...marketDataFearAndGreedIndexCryptocurrencies
},
} as SymbolItem,
STOCKS: {
...marketDataFearAndGreedIndexStocks
}
} as SymbolItem
}
};
}

2
apps/api/src/services/user/user.service.ts

@ -708,6 +708,8 @@ export class UserService {
userId
});
await this.prismaService.authDevice.deleteMany({ where: { userId } });
await this.prismaService.user.update({
data: { accessToken: hashedAccessToken },
where: { id: userId }

4
apps/client/src/app/app.component.ts

@ -337,7 +337,9 @@ export class GfAppComponent implements OnInit {
impersonationId: this.impersonationId,
locale: this.user?.settings?.locale
},
height: this.deviceType === 'mobile' ? '98vh' : '80vh',
height: this.deviceType === 'mobile' ? '98dvh' : '80vh',
panelClass:
this.deviceType === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType === 'mobile' ? '100vw' : '50rem'
});

4
apps/client/src/app/components/admin-market-data/asset-profile-dialog-host/asset-profile-dialog-host.component.ts

@ -151,7 +151,9 @@ export class GfAssetProfileDialogHostComponent implements OnDestroy, OnInit {
deviceType: this.deviceType(),
locale: user?.settings?.locale ?? DEFAULT_LOCALE
} satisfies AssetProfileDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : '80vh',
height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

8
apps/client/src/app/components/admin-platform/admin-platform.component.ts

@ -184,7 +184,9 @@ export class GfAdminPlatformComponent implements OnInit {
CreateOrUpdatePlatformDialogParams
>(GfCreateOrUpdatePlatformDialogComponent, {
data: {} satisfies CreateOrUpdatePlatformDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : undefined,
height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});
@ -224,7 +226,9 @@ export class GfAdminPlatformComponent implements OnInit {
url
}
} satisfies CreateOrUpdatePlatformDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : undefined,
height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

8
apps/client/src/app/components/admin-tag/admin-tag.component.ts

@ -204,7 +204,9 @@ export class GfAdminTagComponent implements OnInit {
CreateOrUpdateTagDialogParams
>(GfCreateOrUpdateTagDialogComponent, {
data: {} satisfies CreateOrUpdateTagDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : undefined,
height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});
@ -243,7 +245,9 @@ export class GfAdminTagComponent implements OnInit {
name
}
} satisfies CreateOrUpdateTagDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : undefined,
height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

4
apps/client/src/app/components/admin-users/admin-users.component.ts

@ -339,7 +339,9 @@ export class GfAdminUsersComponent implements OnInit {
locale: this.user?.settings?.locale ?? DEFAULT_LOCALE,
userId: aUserId
} satisfies UserDetailDialogParams,
height: this.deviceType() === 'mobile' ? '98vh' : '60vh',
height: this.deviceType() === 'mobile' ? '98dvh' : '60vh',
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

4
apps/client/src/app/components/user-account-access/access-dialog-host/access-dialog-host.component.ts

@ -157,7 +157,9 @@ export class GfAccessDialogHostComponent implements OnDestroy, OnInit {
CreateOrUpdateAccessDialogParams
>(GfCreateOrUpdateAccessDialogComponent, {
data,
height: this.deviceType() === 'mobile' ? '98vh' : undefined,
height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

8
apps/client/src/app/pages/accounts/account-dialog-host/account-dialog-host.component.ts

@ -256,7 +256,9 @@ export class GfAccountDialogHostComponent implements OnDestroy, OnInit {
hasPermission(user?.permissions, permissions.updateActivity) &&
!user?.settings?.isRestrictedView
},
height: this.deviceType() === 'mobile' ? '98vh' : '80vh',
height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});
@ -292,7 +294,9 @@ export class GfAccountDialogHostComponent implements OnDestroy, OnInit {
account,
user
},
height: this.deviceType() === 'mobile' ? '98vh' : '80vh',
height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

99
apps/client/src/app/pages/i18n/i18n-page.html

@ -8,6 +8,105 @@
worth including cash, stocks, ETFs and cryptocurrencies across multiple
platforms.
</li>
<li i18n="@@metaDescription.about">
Learn about Ghostfolio, the open source wealth management application to
track stocks, ETFs and cryptocurrencies, and the community behind the
project.
</li>
<li i18n="@@metaDescription.about.changelog">
See what is new in Ghostfolio. The changelog lists the features,
improvements and fixes of each release of the open source wealth
management software.
</li>
<li i18n="@@metaDescription.about.license">
Ghostfolio is open source software under the AGPL-3.0 license. Read the
full license text that applies to the source code of the wealth
management software.
</li>
<li i18n="@@metaDescription.about.ossFriends">
Discover the OSS Friends of Ghostfolio: a collection of other exciting
open source software projects that you can explore and support.
</li>
<li i18n="@@metaDescription.about.privacyPolicy">
Read the Privacy Policy of Ghostfolio to learn how the open source
wealth management software handles your personal data and protects your
privacy.
</li>
<li i18n="@@metaDescription.about.termsOfService">
Read the Terms of Service for the use of Ghostfolio, the web application
and API of the open source software to manage your wealth.
</li>
<li i18n="@@metaDescription.blog">
Read the latest Ghostfolio updates and insights on personal finance:
release announcements, investing topics, community news and open source
milestones.
</li>
<li i18n="@@metaDescription.faq">
Find answers to common questions about Ghostfolio: what the open source
wealth management software does, which assets it tracks and how it
protects privacy.
</li>
<li i18n="@@metaDescription.faq.saas">
Find answers to common questions about the managed Ghostfolio cloud
offering: how to sign up, what you get for free and what Ghostfolio
Premium includes.
</li>
<li i18n="@@metaDescription.faq.selfHosting">
Find answers to common questions about self-hosting Ghostfolio: how to
start, which home server systems are available and how to add a new
currency.
</li>
<li i18n="@@metaDescription.features">
Explore the features of Ghostfolio: track stocks, ETFs, bonds,
cryptocurrencies, dividends and liabilities, and analyze your portfolio
with open source tools.
</li>
<li i18n="@@metaDescription.markets">
Check the current mood of the financial markets with the Fear and Greed
Index and compare the trends of major benchmarks in Ghostfolio.
</li>
<li i18n="@@metaDescription.openStartup">
Ghostfolio is an Open Startup: see the public key metrics of the
platform, including active users, GitHub stars, Docker Hub pulls and
uptime.
</li>
<li i18n="@@metaDescription.pricing">
Compare the plans of Ghostfolio: run the open source software on your
own infrastructure for free or get the managed Ghostfolio Premium cloud
offering.
</li>
<li i18n="@@metaDescription.register">
Create your account and get started with Ghostfolio, the open source
software to track stocks, ETFs and cryptocurrencies.
</li>
<li i18n="@@metaDescription.resources">
Explore the Ghostfolio resources on personal finance and investing:
guides, a glossary, market tools and comparisons of personal finance
tools.
</li>
<li i18n="@@metaDescription.resources.glossary">
Learn the key terms of personal finance and investing in the Ghostfolio
glossary, from buy and hold and dollar-cost averaging to FIRE and
stagflation.
</li>
<li i18n="@@metaDescription.resources.guides">
Get started with investing with the Ghostfolio guides: a diversified,
low-cost strategy and the steps to get your personal finances in order.
</li>
<li i18n="@@metaDescription.resources.markets">
Follow the financial markets with tools such as the Crypto Coins
Heatmap, the Fear and Greed Index, the Inflation Chart and the Stock
Heatmap.
</li>
<li i18n="@@metaDescription.resources.personalFinanceTools">
Discover open source alternatives for personal finance tools. Compare
popular apps with Ghostfolio and take control of your finances, data and
privacy.
</li>
<li i18n="@@metaDescription.resources.personalFinanceTools.product">
Compare Ghostfolio vs $&#123;name&#125;: the open source alternative on
features, data privacy and pricing.
</li>
<li i18n="@@metaKeywords">
app, asset, cryptocurrency, dashboard, etf, finance, management,
performance, portfolio, software, stock, trading, wealth, web3

6
apps/client/src/app/pages/portfolio/activities/activities-page.component.ts

@ -227,7 +227,8 @@ export class GfActivitiesPageComponent implements OnInit {
deviceType: this.deviceType,
user: this.user
},
height: this.deviceType === 'mobile' ? '98vh' : undefined,
height: this.deviceType === 'mobile' ? '98dvh' : undefined,
panelClass: this.deviceType === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType === 'mobile' ? '100vw' : '50rem'
});
@ -259,7 +260,8 @@ export class GfActivitiesPageComponent implements OnInit {
deviceType: this.deviceType,
user: this.user
},
height: this.deviceType === 'mobile' ? '98vh' : undefined,
height: this.deviceType === 'mobile' ? '98dvh' : undefined,
panelClass: this.deviceType === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType === 'mobile' ? '100vw' : '50rem'
});

3
apps/client/src/app/pages/portfolio/activities/activity-dialog-host/activity-dialog-host.component.ts

@ -186,7 +186,8 @@ export class GfActivityDialogHostComponent implements OnDestroy, OnInit {
user,
accounts: user?.accounts
},
height: deviceType === 'mobile' ? '98vh' : '80vh',
height: deviceType === 'mobile' ? '98dvh' : '80vh',
panelClass: deviceType === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: deviceType === 'mobile' ? '100vw' : '50rem'
});

4
apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts

@ -670,7 +670,9 @@ export class GfAllocationsPageComponent implements OnInit {
!this.user?.settings?.isRestrictedView,
impersonationId: this.impersonationId
},
height: this.deviceType() === 'mobile' ? '98vh' : '80vh',
height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

3
apps/client/src/app/pages/register/register-page.component.ts

@ -89,7 +89,8 @@ export class GfRegisterPageComponent implements OnInit {
needsToAcceptTermsOfService: this.hasPermissionForSubscription
},
disableClose: true,
height: this.deviceType === 'mobile' ? '98vh' : undefined,
height: this.deviceType === 'mobile' ? '98dvh' : undefined,
panelClass: this.deviceType === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType === 'mobile' ? '100vw' : '30rem'
});

4
apps/client/src/app/services/user/user.service.ts

@ -167,7 +167,9 @@ export class UserService extends ObservableStore<UserStoreState> {
user
},
disableClose: true,
height: this.deviceType() === 'mobile' ? '98vh' : '80vh',
height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

2
apps/client/src/index.html

@ -13,7 +13,7 @@
<meta content="${rootUrl}/${featureGraphicPath}" name="twitter:image" />
<meta content="${title}" name="twitter:title" />
<meta
content="initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover, width=device-width"
content="initial-scale=1, interactive-widget=resizes-content, maximum-scale=1, user-scalable=no, viewport-fit=cover, width=device-width"
name="viewport"
/>
<meta content="#FFFFFF" name="theme-color" />

2
apps/client/src/locales/messages.de.xlf

@ -5203,7 +5203,7 @@
</trans-unit>
<trans-unit id="2086423453010730920" datatype="html">
<source>For seasoned investors who manage multiple portfolios.</source>
<target state="new">For seasoned investors who manage multiple portfolios.</target>
<target state="translated">Für erfahrene Anleger, die mehrere Portfolios verwalten.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/pricing/pricing-page.html</context>
<context context-type="linenumber">233</context>

52
apps/client/src/locales/messages.es.xlf

@ -444,7 +444,7 @@
</trans-unit>
<trans-unit id="8529462486322984963" datatype="html">
<source>Ghostfolio AI has processed the maximum of <x id="INTERPOLATION" equiv-text="{{ maxActivitiesOfGhostfolioAi }}"/> activities. The file can have more activities.</source>
<target state="new">Ghostfolio AI has processed the maximum of <x id="INTERPOLATION" equiv-text="{{ maxActivitiesOfGhostfolioAi }}"/> activities. The file can have more activities.</target>
<target state="translated">Ghostfolio AI ha procesado el máximo de <x id="INTERPOLATION" equiv-text="{{ maxActivitiesOfGhostfolioAi }}"/> operaciones. El archivo puede tener más operaciones.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.html</context>
<context context-type="linenumber">158</context>
@ -584,7 +584,7 @@
</trans-unit>
<trans-unit id="6198142118219385733" datatype="html">
<source>Request a free trial</source>
<target state="new">Request a free trial</target>
<target state="translated">Solicitar una prueba gratuita</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/components/subscription-interstitial-dialog/subscription-interstitial-dialog.html</context>
<context context-type="linenumber">211</context>
@ -892,7 +892,7 @@
</trans-unit>
<trans-unit id="5043328658660351895" datatype="html">
<source>No credit card required. The trial ends automatically.</source>
<target state="new">No credit card required. The trial ends automatically.</target>
<target state="translated">No se requiere tarjeta de crédito. La prueba finaliza automáticamente.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/components/subscription-interstitial-dialog/subscription-interstitial-dialog.html</context>
<context context-type="linenumber">214</context>
@ -968,7 +968,7 @@
</trans-unit>
<trans-unit id="2233560223291461480" datatype="html">
<source>Manual</source>
<target state="new">Manual</target>
<target state="translated">Manual</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/i18n.ts</context>
<context context-type="linenumber">30</context>
@ -1396,7 +1396,7 @@
</trans-unit>
<trans-unit id="4441947260430469890" datatype="html">
<source>Fully managed cloud offering, with</source>
<target state="new">Fully managed cloud offering, with</target>
<target state="translated">Oferta en la nube totalmente gestionada, con</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/pricing/pricing-page.html</context>
<context context-type="linenumber">37</context>
@ -2068,7 +2068,7 @@
</trans-unit>
<trans-unit id="8740012355706949514" datatype="html">
<source>The CSV file has more than <x id="maxActivities" equiv-text="AI_MAX_ACTIVITIES"/> rows of activities</source>
<target state="new">The CSV file has more than <x id="maxActivities" equiv-text="AI_MAX_ACTIVITIES"/> rows of activities</target>
<target state="translated">El archivo CSV tiene más de <x id="maxActivities" equiv-text="AI_MAX_ACTIVITIES"/> filas de operaciones</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts</context>
<context context-type="linenumber">445</context>
@ -2816,7 +2816,7 @@
</trans-unit>
<trans-unit id="5298486223740169185" datatype="html">
<source>By <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="INTERPOLATION" equiv-text="{{ retirementDateLabel }}"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>, this is projected to increase to <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? withdrawalRatePerYearProjected?.toNumber() : null &quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;(user?.settings?.annualInterestRate ?? 0) / 100&quot; /&gt;"/> per year<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/> or <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_1" ctype="x-gf_value_1" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? withdrawalRatePerMonthProjected?.toNumber() : null &quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;(user?.settings?.annualInterestRate ?? 0) / 100&quot; /&gt;"/> per month<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>, assuming a <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_2" ctype="x-gf_value_2" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;(user?.settings?.annualInterestRate ?? 0) / 100&quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;(user?.settings?.annualInterestRate ?? 0) / 100&quot; /&gt;"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/> annual interest rate.</source>
<target state="new">Para <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;font-weight-bold&quot; &gt;"/><x id="INTERPOLATION" equiv-text="{{ retirementDateLabel }}"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>, se prevé que esto aumente a <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;font-weight-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot;withdrawalRatePerYearProjected?.toNumber()&quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;user?.settings?.annualInterestRate / 100&quot; /&gt;"/> por año<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/> o <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;font-weight-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_1" ctype="x-gf_value_1" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot;withdrawalRatePerMonthProjected?.toNumber()&quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;user?.settings?.annualInterestRate / 100&quot; /&gt;"/> por mes<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>, asumiendo una tasa de interés anual del <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;font-weight-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_2" ctype="x-gf_value_2" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;user?.settings?.annualInterestRate / 100&quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;user?.settings?.annualInterestRate / 100&quot; /&gt;"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>.</target>
<target state="translated">Para <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="INTERPOLATION" equiv-text="{{ retirementDateLabel }}"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>, se prevé que esto aumente a <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? withdrawalRatePerYearProjected?.toNumber() : null &quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;(user?.settings?.annualInterestRate ?? 0) / 100&quot; /&gt;"/> por año<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/> o <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_1" ctype="x-gf_value_1" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? withdrawalRatePerMonthProjected?.toNumber() : null &quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;(user?.settings?.annualInterestRate ?? 0) / 100&quot; /&gt;"/> por mes<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>, asumiendo una tasa de interés anual del <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_2" ctype="x-gf_value_2" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;(user?.settings?.annualInterestRate ?? 0) / 100&quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isPercent]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [precision]=&quot;2&quot; [value]=&quot;(user?.settings?.annualInterestRate ?? 0) / 100&quot; /&gt;"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/portfolio/fire/fire-page.html</context>
<context context-type="linenumber">144</context>
@ -2948,7 +2948,7 @@
</trans-unit>
<trans-unit id="3729753636829189155" datatype="html">
<source>The file is larger than <x id="maxFileSize" equiv-text="AI_ACTIVITIES_FILE_MAXIMUM_SIZE / 1024 / 1024"/> MB</source>
<target state="new">The file is larger than <x id="maxFileSize" equiv-text="AI_ACTIVITIES_FILE_MAXIMUM_SIZE / 1024 / 1024"/> MB</target>
<target state="translated">El archivo supera los <x id="maxFileSize" equiv-text="AI_ACTIVITIES_FILE_MAXIMUM_SIZE / 1024 / 1024"/> MB</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts</context>
<context context-type="linenumber">437</context>
@ -3412,7 +3412,7 @@
</trans-unit>
<trans-unit id="5552246967241337741" datatype="html">
<source>If you retire today, you would be able to withdraw <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? withdrawalRatePerYear?.toNumber() : null &quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? fireWealth?.today.valueInBaseCurrency : null &quot; /&gt;"/> per year<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/> or <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_1" ctype="x-gf_value_1" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? withdrawalRatePerMonth?.toNumber() : null &quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? fireWealth?.today.valueInBaseCurrency : null &quot; /&gt;"/> per month<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>, based on your total assets of <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_2" ctype="x-gf_value_2" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? fireWealth?.today.valueInBaseCurrency : null &quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? fireWealth?.today.valueInBaseCurrency : null &quot; /&gt;"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/> and a safe withdrawal rate (SWR) of</source>
<target state="new">Si te jubilas hoy, podrías retirar <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;font-weight-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot;withdrawalRatePerYear?.toNumber()&quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot;fireWealth?.today.valueInBaseCurrency&quot; /&gt;"/> por año<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/> o <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;font-weight-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_1" ctype="x-gf_value_1" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot;withdrawalRatePerMonth?.toNumber()&quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot;fireWealth?.today.valueInBaseCurrency&quot; /&gt;"/> por mes<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>, basado en tus activos totales de <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;font-weight-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_2" ctype="x-gf_value_2" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot;fireWealth?.today.valueInBaseCurrency&quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot;fireWealth?.today.valueInBaseCurrency&quot; /&gt;"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/> y una tasa de retiro segura (SWR) de</target>
<target state="translated">Si te jubilas hoy, podrías retirar <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? withdrawalRatePerYear?.toNumber() : null &quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? fireWealth?.today.valueInBaseCurrency : null &quot; /&gt;"/> por año<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/> o <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_1" ctype="x-gf_value_1" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? withdrawalRatePerMonth?.toNumber() : null &quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? fireWealth?.today.valueInBaseCurrency : null &quot; /&gt;"/> por mes<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>, basado en tus activos totales de <x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span class=&quot;fw-bold&quot; &gt;"/><x id="START_TAG_GF_VALUE_2" ctype="x-gf_value_2" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? fireWealth?.today.valueInBaseCurrency : null &quot; /&gt;"/><x id="CLOSE_TAG_GF_VALUE" ctype="x-gf_value" equiv-text="&lt;gf-value class=&quot;d-inline-block&quot; [isCurrency]=&quot;true&quot; [locale]=&quot;user?.settings?.locale&quot; [unit]=&quot;user?.settings?.baseCurrency&quot; [value]=&quot; hasPermissionToShowValues ? fireWealth?.today.valueInBaseCurrency : null &quot; /&gt;"/><x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/> y una tasa de retiro segura (SWR) de</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/portfolio/fire/fire-page.html</context>
<context context-type="linenumber">69</context>
@ -4032,7 +4032,7 @@
</trans-unit>
<trans-unit id="8631624965832676744" datatype="html">
<source>Everything in <x id="START_TAG_STRONG" ctype="x-strong" equiv-text="&lt;strong&gt;"/>Premium<x id="CLOSE_TAG_STRONG" ctype="x-strong" equiv-text="&lt;/strong&gt;"/>, plus</source>
<target state="new">Everything in <x id="START_TAG_STRONG" ctype="x-strong" equiv-text="&lt;strong&gt;"/>Premium<x id="CLOSE_TAG_STRONG" ctype="x-strong" equiv-text="&lt;/strong&gt;"/>, plus</target>
<target state="translated">Todo lo incluido en <x id="START_TAG_STRONG" ctype="x-strong" equiv-text="&lt;strong&gt;"/>Premium<x id="CLOSE_TAG_STRONG" ctype="x-strong" equiv-text="&lt;/strong&gt;"/>, más</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/pricing/pricing-page.html</context>
<context context-type="linenumber">238</context>
@ -4096,7 +4096,7 @@
</trans-unit>
<trans-unit id="7486561293393436733" datatype="html">
<source>Please find the source code and further instructions on <x id="START_LINK" ctype="x-a" equiv-text="&lt;a href=&quot;https://github.com/ghostfolio/ghostfolio&quot;&gt;"/>GitHub<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/>.</source>
<target state="new">Please find the source code and further instructions on <x id="START_LINK" ctype="x-a" equiv-text="&lt;a href=&quot;https://github.com/ghostfolio/ghostfolio&quot;&gt;"/>GitHub<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/>.</target>
<target state="translated">Encuentra el código fuente y más instrucciones en <x id="START_LINK" ctype="x-a" equiv-text="&lt;a href=&quot;https://github.com/ghostfolio/ghostfolio&quot;&gt;"/>GitHub<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/>.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/pricing/pricing-page.html</context>
<context context-type="linenumber">425</context>
@ -4104,7 +4104,7 @@
</trans-unit>
<trans-unit id="749104632257292438" datatype="html">
<source>Powered by third-party AI providers</source>
<target state="new">Powered by third-party AI providers</target>
<target state="translated">Con la tecnología de proveedores de IA de terceros</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/components/user-account-settings/user-account-settings.html</context>
<context context-type="linenumber">306</context>
@ -4216,7 +4216,7 @@
</trans-unit>
<trans-unit id="5508103270863072482" datatype="html">
<source>Return on Investment (total return with dividends)</source>
<target state="new">Return on Investment (total return with dividends)</target>
<target state="translated">Rentabilidad sobre la inversión (rentabilidad total con dividendos)</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html</context>
<context context-type="linenumber">165</context>
@ -5180,7 +5180,7 @@
</trans-unit>
<trans-unit id="2086423453010730920" datatype="html">
<source>For seasoned investors who manage multiple portfolios.</source>
<target state="new">For seasoned investors who manage multiple portfolios.</target>
<target state="translated">Para inversores experimentados que gestionan múltiples carteras.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/pricing/pricing-page.html</context>
<context context-type="linenumber">233</context>
@ -5252,7 +5252,7 @@
</trans-unit>
<trans-unit id="3014142150963657456" datatype="html">
<source>Client</source>
<target state="new">Client</target>
<target state="translated">Cliente</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html</context>
<context context-type="linenumber">182</context>
@ -5961,7 +5961,7 @@
</trans-unit>
<trans-unit id="7316283100413796260" datatype="html">
<source>Up to 5 User Accounts</source>
<target state="new">Up to 5 User Accounts</target>
<target state="translated">Hasta 5 cuentas de usuario</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/pricing/pricing-page.html</context>
<context context-type="linenumber">244</context>
@ -6086,7 +6086,7 @@
</trans-unit>
<trans-unit id="707929791822981619" datatype="html">
<source>Centralized User Management</source>
<target state="new">Centralized User Management</target>
<target state="translated">Gestión centralizada de usuarios</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/pricing/pricing-page.html</context>
<context context-type="linenumber">248</context>
@ -6882,7 +6882,7 @@
</trans-unit>
<trans-unit id="7671845130083878280" datatype="html">
<source>Ghostfolio AI is processing the file...</source>
<target state="new">Ghostfolio AI is processing the file...</target>
<target state="translated">Ghostfolio AI está procesando el archivo...</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts</context>
<context context-type="linenumber">167</context>
@ -7211,7 +7211,7 @@
</trans-unit>
<trans-unit id="8330037678926820011" datatype="html">
<source>The content of your file will be processed by third-party AI providers. Please remove any personal data before uploading.</source>
<target state="new">The content of your file will be processed by third-party AI providers. Please remove any personal data before uploading.</target>
<target state="translated">El contenido de tu archivo será procesado por proveedores de IA de terceros. Elimina cualquier dato personal antes de subirlo.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts</context>
<context context-type="linenumber">168</context>
@ -7647,7 +7647,7 @@
</trans-unit>
<trans-unit id="2885373924356772303" datatype="html">
<source>Get Max</source>
<target state="new">Get Max</target>
<target state="translated">Obtener Max</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/pricing/pricing-page.html</context>
<context context-type="linenumber">269</context>
@ -8133,7 +8133,7 @@
</trans-unit>
<trans-unit id="2228771480313313055" datatype="html">
<source>AI-assisted import</source>
<target state="new">AI-assisted import</target>
<target state="translated">Importación asistida por IA</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.html</context>
<context context-type="linenumber">97</context>
@ -8217,7 +8217,7 @@
</trans-unit>
<trans-unit id="1759593807459446546" datatype="html">
<source>All in One Place</source>
<target state="new">All in One Place</target>
<target state="translated">Todo en un solo lugar</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/landing/landing-page.html</context>
<context context-type="linenumber">142</context>
@ -8489,7 +8489,7 @@
</trans-unit>
<trans-unit id="8856226707842477077" datatype="html">
<source>Performance Timeline</source>
<target state="new">Performance Timeline</target>
<target state="translated">Cronología del rendimiento</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/portfolio/analysis/analysis-page.html</context>
<context context-type="linenumber">447</context>
@ -8582,7 +8582,7 @@
</trans-unit>
<trans-unit id="2937898953036699236" datatype="html">
<source>and I agree to the <x id="START_LINK" ctype="x-a" equiv-text="&lt;a class=&quot;fw-bold&quot; target=&quot;_blank&quot; [routerLink]=&quot;routerLinkAboutTermsOfService&quot; &gt;"/>Terms of Service<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a &gt;"/>.</source>
<target state="new">y acepto los <x id="START_LINK" ctype="x-a" equiv-text="&lt;a class=&quot;font-weight-bold&quot; target=&quot;_blank&quot; [routerLink]=&quot;routerLinkAboutTermsOfService&quot; &gt;"/>Términos de servicio<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/>.</target>
<target state="translated">y acepto los <x id="START_LINK" ctype="x-a" equiv-text="&lt;a class=&quot;fw-bold&quot; target=&quot;_blank&quot; [routerLink]=&quot;routerLinkAboutTermsOfService&quot; &gt;"/>Términos de servicio<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a &gt;"/>.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/register/user-account-registration-dialog/user-account-registration-dialog.html</context>
<context context-type="linenumber">35</context>
@ -8751,7 +8751,7 @@
</trans-unit>
<trans-unit id="3915660855611041642" datatype="html">
<source>{VAR_PLURAL, plural, =1 {Ghostfolio AI could not match 1 activity of the file } other {Ghostfolio AI could not match <x id="INTERPOLATION"/> activities of the file }}</source>
<target state="new">{VAR_PLURAL, plural, =1 {Ghostfolio AI could not match 1 activity of the file } other {Ghostfolio AI could not match <x id="INTERPOLATION"/> activities of the file }}</target>
<target state="translated">{VAR_PLURAL, plural, =1 {Ghostfolio AI no pudo reconocer 1 operación del archivo } other {Ghostfolio AI no pudo reconocer <x id="INTERPOLATION"/> operaciones del archivo }}</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.html</context>
<context context-type="linenumber">137</context>
@ -9005,7 +9005,7 @@
</trans-unit>
<trans-unit id="3946393485152934212" datatype="html">
<source>Privacy First</source>
<target state="new">Privacy First</target>
<target state="translated">Privacidad ante todo</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/landing/landing-page.html</context>
<context context-type="linenumber">153</context>

6
apps/client/src/styles.scss

@ -346,6 +346,12 @@ ngx-skeleton-loader {
cursor: pointer;
}
.gf-mobile-dialog {
.mat-mdc-dialog-surface {
padding-bottom: max(0px, env(safe-area-inset-bottom) - 1dvh);
}
}
.gf-promotion-badge {
background-color: var(--oc-orange-5);
}

4
libs/ui/src/lib/benchmark/benchmark.component.ts

@ -179,7 +179,9 @@ export class GfBenchmarkComponent implements OnInit {
deviceType: this.deviceType(),
locale: this.locale()
},
height: this.deviceType() === 'mobile' ? '98vh' : undefined,
height: this.deviceType() === 'mobile' ? '98dvh' : undefined,
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

4
libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts

@ -236,7 +236,9 @@ export class GfHistoricalMarketDataEditorComponent
dateString: `${yearMonth}-${day}`,
symbol: this.symbol
},
height: this.deviceType() === 'mobile' ? '98vh' : '80vh',
height: this.deviceType() === 'mobile' ? '98dvh' : '80vh',
panelClass:
this.deviceType() === 'mobile' ? 'gf-mobile-dialog' : undefined,
width: this.deviceType() === 'mobile' ? '100vw' : '50rem'
});

4
package-lock.json

@ -1,12 +1,12 @@
{
"name": "ghostfolio",
"version": "3.97.0",
"version": "3.98.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ghostfolio",
"version": "3.97.0",
"version": "3.98.0",
"hasInstallScript": true,
"license": "AGPL-3.0",
"dependencies": {

2
package.json

@ -1,6 +1,6 @@
{
"name": "ghostfolio",
"version": "3.97.0",
"version": "3.98.0",
"homepage": "https://ghostfol.io",
"license": "AGPL-3.0",
"repository": "https://github.com/ghostfolio/ghostfolio",

Loading…
Cancel
Save