Browse Source

Merge branch 'main' into docs/japanese-localization-7147

pull/7678/head
Thomas Kaul 1 week ago
committed by GitHub
parent
commit
638c10dd45
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 13
      apps/client/src/app/core/auth.guard.ts
  3. 2
      apps/client/src/app/pages/faq/overview/faq-overview-page.html
  4. 2
      apps/client/src/app/pages/faq/saas/saas-page.html
  5. 2
      apps/client/src/app/pages/faq/self-hosting/self-hosting-page.html
  6. 12
      apps/client/src/app/pages/resources/overview/resources-overview.component.ts

1
CHANGELOG.md

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Extended the account selector options to include the platform and currency - Extended the account selector options to include the platform and currency
- Improved the error handling of the `AuthGuard`
- Improved the language localization for Japanese (`ja`) - Improved the language localization for Japanese (`ja`)
- Upgraded `yahoo-finance2` from version `4.0.0` to `4.0.2` - Upgraded `yahoo-finance2` from version `4.0.0` to `4.0.2`

13
apps/client/src/app/core/auth.guard.ts

@ -10,7 +10,7 @@ import {
RouterStateSnapshot RouterStateSnapshot
} from '@angular/router'; } from '@angular/router';
import { EMPTY } from 'rxjs'; import { EMPTY } from 'rxjs';
import { catchError } from 'rxjs/operators'; import { catchError, finalize } from 'rxjs/operators';
@Service() @Service()
export class AuthGuard { export class AuthGuard {
@ -34,9 +34,11 @@ export class AuthGuard {
if (utmSource === 'ios') { if (utmSource === 'ios') {
this.router.navigate(publicRoutes.demo.routerLink); this.router.navigate(publicRoutes.demo.routerLink);
resolve(false); resolve(false);
return EMPTY;
} else if (utmSource === 'trusted-web-activity') { } else if (utmSource === 'trusted-web-activity') {
this.router.navigate(publicRoutes.register.routerLink); this.router.navigate(publicRoutes.register.routerLink);
resolve(false); resolve(false);
return EMPTY;
} else if ( } else if (
Object.values(publicRoutes) Object.values(publicRoutes)
.map(({ path }) => { .map(({ path }) => {
@ -57,6 +59,9 @@ export class AuthGuard {
resolve(true); resolve(true);
return EMPTY; return EMPTY;
}),
finalize(() => {
resolve(false);
}) })
) )
.subscribe((user) => { .subscribe((user) => {
@ -77,13 +82,13 @@ export class AuthGuard {
return; return;
} else if ( } else if (
state.url.startsWith(`/${internalRoutes.home.path}`) && state.url.startsWith(`/${internalRoutes.home.path}`) &&
user.settings.viewMode === 'ZEN' user?.settings?.viewMode === 'ZEN'
) { ) {
this.router.navigate(internalRoutes.zen.routerLink); this.router.navigate(internalRoutes.zen.routerLink);
resolve(false); resolve(false);
return; return;
} else if (state.url.startsWith(`/${publicRoutes.start.path}`)) { } else if (state.url.startsWith(`/${publicRoutes.start.path}`)) {
if (user.settings.viewMode === 'ZEN') { if (user?.settings?.viewMode === 'ZEN') {
this.router.navigate(internalRoutes.zen.routerLink); this.router.navigate(internalRoutes.zen.routerLink);
} else { } else {
this.router.navigate(internalRoutes.home.routerLink); this.router.navigate(internalRoutes.home.routerLink);
@ -93,7 +98,7 @@ export class AuthGuard {
return; return;
} else if ( } else if (
state.url.startsWith(`/${internalRoutes.zen.path}`) && state.url.startsWith(`/${internalRoutes.zen.path}`) &&
user.settings.viewMode === 'DEFAULT' user?.settings?.viewMode === 'DEFAULT'
) { ) {
this.router.navigate(internalRoutes.home.routerLink); this.router.navigate(internalRoutes.home.routerLink);
resolve(false); resolve(false);

2
apps/client/src/app/pages/faq/overview/faq-overview-page.html

@ -4,7 +4,7 @@
<h1 class="d-none d-sm-block h3 mb-4 text-center" i18n> <h1 class="d-none d-sm-block h3 mb-4 text-center" i18n>
Frequently Asked Questions (FAQ) Frequently Asked Questions (FAQ)
</h1> </h1>
<p> <p i18n>
Find quick answers to commonly asked questions about Ghostfolio in our Find quick answers to commonly asked questions about Ghostfolio in our
Frequently Asked Questions (FAQ) section. Discover what Ghostfolio is, Frequently Asked Questions (FAQ) section. Discover what Ghostfolio is,
explore its features, and learn about our privacy practices. Get all the explore its features, and learn about our privacy practices. Get all the

2
apps/client/src/app/pages/faq/saas/saas-page.html

@ -4,7 +4,7 @@
<h1 class="d-none d-sm-block h3 mb-4 text-center" i18n> <h1 class="d-none d-sm-block h3 mb-4 text-center" i18n>
Frequently Asked Questions (FAQ) Frequently Asked Questions (FAQ)
</h1> </h1>
<p> <p i18n>
Find quick answers to commonly asked questions about the fully managed Find quick answers to commonly asked questions about the fully managed
Ghostfolio cloud offering in our Frequently Asked Questions (FAQ) Ghostfolio cloud offering in our Frequently Asked Questions (FAQ)
section. section.

2
apps/client/src/app/pages/faq/self-hosting/self-hosting-page.html

@ -4,7 +4,7 @@
<h1 class="d-none d-sm-block h3 mb-4 text-center" i18n> <h1 class="d-none d-sm-block h3 mb-4 text-center" i18n>
Frequently Asked Questions (FAQ) Frequently Asked Questions (FAQ)
</h1> </h1>
<p> <p i18n>
Find quick answers to commonly asked questions about self-hosting Find quick answers to commonly asked questions about self-hosting
Ghostfolio in our Frequently Asked Questions (FAQ) section. Ghostfolio in our Frequently Asked Questions (FAQ) section.
</p> </p>

12
apps/client/src/app/pages/resources/overview/resources-overview.component.ts

@ -13,26 +13,22 @@ import { RouterModule } from '@angular/router';
export class ResourcesOverviewComponent { export class ResourcesOverviewComponent {
public overviewItems = [ public overviewItems = [
{ {
description: description: $localize`Find quick answers to commonly asked questions about Ghostfolio in our Frequently Asked Questions (FAQ) section.`,
'Find quick answers to commonly asked questions about Ghostfolio in our Frequently Asked Questions (FAQ) section.',
routerLink: publicRoutes.faq.routerLink, routerLink: publicRoutes.faq.routerLink,
title: publicRoutes.faq.title title: publicRoutes.faq.title
}, },
{ {
description: description: $localize`Explore our guides to help you get started with investing and managing your finances.`,
'Explore our guides to help you get started with investing and managing your finances.',
routerLink: publicRoutes.resources.subRoutes.guides.routerLink, routerLink: publicRoutes.resources.subRoutes.guides.routerLink,
title: publicRoutes.resources.subRoutes.guides.title title: publicRoutes.resources.subRoutes.guides.title
}, },
{ {
description: description: $localize`Access various market resources and tools to stay informed about financial markets.`,
'Access various market resources and tools to stay informed about financial markets.',
routerLink: publicRoutes.resources.subRoutes.markets.routerLink, routerLink: publicRoutes.resources.subRoutes.markets.routerLink,
title: publicRoutes.resources.subRoutes.markets.title title: publicRoutes.resources.subRoutes.markets.title
}, },
{ {
description: description: $localize`Learn key financial terms and concepts in our comprehensive glossary.`,
'Learn key financial terms and concepts in our comprehensive glossary.',
routerLink: publicRoutes.resources.subRoutes.glossary.routerLink, routerLink: publicRoutes.resources.subRoutes.glossary.routerLink,
title: publicRoutes.resources.subRoutes.glossary.title title: publicRoutes.resources.subRoutes.glossary.title
} }

Loading…
Cancel
Save