From 86296b35913ca9b5c7689b01efc74e112014570d Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 20 May 2023 10:53:04 +0200 Subject: [PATCH] Feature/improve local number formatting in value component (#1992) * Improve local number formatting * Update changelog --- CHANGELOG.md | 4 +++ apps/api/src/app/info/info.service.ts | 8 ++++-- .../app/subscription/subscription.service.ts | 2 +- .../app/pages/about/about-page.component.ts | 3 +- .../src/app/pages/about/about-page.html | 28 ++++++++++++++++--- .../pages/landing/landing-page.component.ts | 2 +- .../src/app/pages/open/open-page.component.ts | 26 +++++++++++++---- apps/client/src/app/pages/open/open-page.html | 22 ++++++++++++--- libs/common/src/lib/interfaces/index.ts | 4 +++ libs/ui/src/lib/value/value.component.ts | 9 ++++-- 10 files changed, 86 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd6113437..87ee49484 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Changed + +- Improved the local number formatting in the value component + ### Fixed - Fixed the vertical alignment in the toggle component diff --git a/apps/api/src/app/info/info.service.ts b/apps/api/src/app/info/info.service.ts index 4da329667..8af8e6ee2 100644 --- a/apps/api/src/app/info/info.service.ts +++ b/apps/api/src/app/info/info.service.ts @@ -20,9 +20,11 @@ import { encodeDataSource, extractNumberFromString } from '@ghostfolio/common/helper'; -import { InfoItem } from '@ghostfolio/common/interfaces'; -import { Statistics } from '@ghostfolio/common/interfaces/statistics.interface'; -import { Subscription } from '@ghostfolio/common/interfaces/subscription.interface'; +import { + InfoItem, + Statistics, + Subscription +} from '@ghostfolio/common/interfaces'; import { permissions } from '@ghostfolio/common/permissions'; import { SubscriptionOffer } from '@ghostfolio/common/types'; import { Injectable, Logger } from '@nestjs/common'; diff --git a/apps/api/src/app/subscription/subscription.service.ts b/apps/api/src/app/subscription/subscription.service.ts index 591721f84..37b49ee34 100644 --- a/apps/api/src/app/subscription/subscription.service.ts +++ b/apps/api/src/app/subscription/subscription.service.ts @@ -4,7 +4,7 @@ import { DEFAULT_LANGUAGE_CODE, PROPERTY_STRIPE_CONFIG } from '@ghostfolio/common/config'; -import { Subscription as SubscriptionInterface } from '@ghostfolio/common/interfaces/subscription.interface'; +import { Subscription as SubscriptionInterface } from '@ghostfolio/common/interfaces'; import { UserWithSettings } from '@ghostfolio/common/types'; import { SubscriptionType } from '@ghostfolio/common/types/subscription-type.type'; import { Injectable, Logger } from '@nestjs/common'; diff --git a/apps/client/src/app/pages/about/about-page.component.ts b/apps/client/src/app/pages/about/about-page.component.ts index 59f247315..69f8eb093 100644 --- a/apps/client/src/app/pages/about/about-page.component.ts +++ b/apps/client/src/app/pages/about/about-page.component.ts @@ -3,8 +3,7 @@ import { environment } from '@ghostfolio/client/../environments/environment'; import { DataService } from '@ghostfolio/client/services/data.service'; import { UserService } from '@ghostfolio/client/services/user/user.service'; import { DEFAULT_LANGUAGE_CODE } from '@ghostfolio/common/config'; -import { User } from '@ghostfolio/common/interfaces'; -import { Statistics } from '@ghostfolio/common/interfaces/statistics.interface'; +import { Statistics, User } from '@ghostfolio/common/interfaces'; import { hasPermission, permissions } from '@ghostfolio/common/permissions'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; diff --git a/apps/client/src/app/pages/about/about-page.html b/apps/client/src/app/pages/about/about-page.html index ab8bd36cc..7c5702adb 100644 --- a/apps/client/src/app/pages/about/about-page.html +++ b/apps/client/src/app/pages/about/about-page.html @@ -6,12 +6,26 @@
Ghostfolio is a lightweight wealth management application for
individuals to keep track of stocks, ETFs or cryptocurrencies and make
- solid, data-driven investment decisions. We share aggregated
- open source software
+ (OSS) under the
+ AGPL-3.0 license
+ and we share aggregated
+ key metrics
- of our platform’s performance and the source code is fully available
- as open source software (OSS). The project has been initiated by
+ of the platform’s performance. The project has been initiated by
Thomas Kaul
@@ -130,6 +144,7 @@
- At Ghostfolio, transparency is at the core of our values. We openly
- share aggregated key metrics of our platform’s performance and publish
+ At Ghostfolio, transparency is at the core of our values. We publish
the source code as
open source software
- (OSS).
+ (OSS) under the
+ AGPL-3.0 license
+ and we openly share aggregated key metrics of the platform’s
+ performance.
Open Startup