From 8486c02575d76813b34a9f20a52693b848ed450c Mon Sep 17 00:00:00 2001 From: Leon Stoldt <31759512+LeonStoldt@users.noreply.github.com> Date: Mon, 23 Jan 2023 08:28:19 +0100 Subject: [PATCH 1/5] Update Node to version 18.x (#1595) * Update Node to version 18.x * Add .nvmrc * Update changelog Co-authored-by: Thomas <4159106+dtslvr@users.noreply.github.com> --- .github/workflows/build-code.yml | 2 +- .nvmrc | 1 + CHANGELOG.md | 6 ++++++ Dockerfile | 4 ++-- README.md | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/build-code.yml b/.github/workflows/build-code.yml index c1e950ba7..262729f29 100644 --- a/.github/workflows/build-code.yml +++ b/.github/workflows/build-code.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: node_version: - - 16 + - 18 steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..3f430af82 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cf21a7df..e314c023e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Changed + +- Upgraded `Node.js` from version `16` to `18` (`Dockerfile`) + ## 1.229.0 - 2023-01-21 ### Added diff --git a/Dockerfile b/Dockerfile index 5bc79b61a..33ef2d95f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM node:16-slim as builder +FROM --platform=$BUILDPLATFORM node:18-slim as builder # Build application and add additional files WORKDIR /ghostfolio @@ -50,7 +50,7 @@ COPY package.json /ghostfolio/dist/apps/api RUN yarn database:generate-typings # Image to run, copy everything needed from builder -FROM node:16-slim +FROM node:18-slim RUN apt update && apt install -y \ openssl \ && rm -rf /var/lib/apt/lists/* diff --git a/README.md b/README.md index fea70c4b7..08c758a5d 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ Please follow the instructions of the Ghostfolio [Unraid Community App](https:// ### Prerequisites - [Docker](https://www.docker.com/products/docker-desktop) -- [Node.js](https://nodejs.org/en/download) (version 16+) +- [Node.js](https://nodejs.org/en/download) (version 18+) - [Yarn](https://yarnpkg.com/en/docs/install) - A local copy of this Git repository (clone) From c2ed0a436fed8a877d0fbe7baf90fa405d6b10b1 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 23 Jan 2023 21:52:46 +0100 Subject: [PATCH 2/5] Downgrade to Node.js 16 (for development) (#1633) --- .nvmrc | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.nvmrc b/.nvmrc index 3f430af82..6f7f377bf 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18 +v16 diff --git a/README.md b/README.md index 08c758a5d..c5a739268 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ Please follow the instructions of the Ghostfolio [Unraid Community App](https:// ### Prerequisites - [Docker](https://www.docker.com/products/docker-desktop) -- [Node.js](https://nodejs.org/en/download) (version 18+) +- [Node.js](https://nodejs.org/en/download) (version 16) - [Yarn](https://yarnpkg.com/en/docs/install) - A local copy of this Git repository (clone) From 9cae5a3e79f6952bbbe933790e709e9fe5d5c158 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Tue, 24 Jan 2023 08:11:21 +0100 Subject: [PATCH 3/5] Feature/improve sackgeld.com blog post (#1628) * Improve blog post and add quote * Update changelog --- CHANGELOG.md | 4 ++ ...stfolio-auf-sackgeld-vorgestellt-page.html | 60 ++++++++++++++----- 2 files changed, 48 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e314c023e..5baf9159a 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 +### Added + +- Added a quote to the blog post _Ghostfolio auf Sackgeld.com vorgestellt_ + ### Changed - Upgraded `Node.js` from version `16` to `18` (`Dockerfile`) diff --git a/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.html b/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.html index 1a149277b..ea62e316e 100644 --- a/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.html +++ b/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.html @@ -4,7 +4,7 @@

Ghostfolio auf Sackgeld.com vorgestellt

-
2023-01-21
+
2023-01-21
Ghostfolio auf Sackgeld.com vorgestellt Teaser Wir freuen uns darüber, dass unsere Open Source Portfolio Tracking Software Ghostfolio auf dem - Fintech News Portal Sackgeld.com vorgestellt wurde. + FinTech Newsportal Sackgeld.com vorgestellt wurde. +

+
+
+
+
+

+ «Ghostfolio ist ein umfassender Portfolio Performance + Tracker der einfach zu bedienen ist, mit einigen sehr + innovativen Features aufwartet und echten Mehrwert für den + Investor bringt.» +

+
+
+
+
+

+ Im ausführlichen Bericht wird die Funktionsweise von Ghostfolio + erläutert, die unterstützten Assets aufgeführt sowie die + Preisstruktur im Vergleich zu anderen Anbietern dargelegt.

@@ -24,23 +43,23 @@ Ghostfolio – Open Source Wealth Management Software

- Ghostfolio ermöglicht es dir, deine Portfolio-Performance einfach zu - verfolgen und zu analysieren. Es bietet dir detaillierte - Informationen über deine Positionen, historische Entwicklung und die + Ghostfolio ermöglicht es dir, dein Portfolio einfach zu verfolgen + und zu analysieren. Es bietet dir detaillierte Informationen über + deine Positionen, historische Entwicklung, Performance und die Zusammenstellung deines Portfolios. Durch die Open Source-Lizenz (GNU Affero General Public License v3.0) wird die Software ständig weiterentwickelt und verbessert und du - hast sogar die Möglichkeit, dich selbst daran zu beteiligen. Wir - sind davon überzeugt, mit dem Open-Source-Ansatz von Ghostfolio das - Finanzwissen und Investieren für alle zugänglicher zu machen. + >) wird die Software ständig weiterentwickelt, verbessert und du + hast sogar selbst die Möglichkeit, dich daran zu beteiligen. Wir + sind davon überzeugt, mit diesem Open-Source-Ansatz von Ghostfolio + das Finanzwissen und Investieren für alle zugänglicher zu machen.

Sackgeld.com – App für ein höheres Sackgeld

- Das Schweizer Fintech News Portal + Das Schweizer FinTech Nachrichtenportal Sackgeld.com informiert über die neuesten Entwicklungen und Innovationen im Bereich FinTech. Dazu gehören News, Artikel und persönliche @@ -51,15 +70,12 @@

Wenn du mehr über Ghostfolio erfahren möchtest, kannst du hier den - ganzen Artikel "Was taugt Ghostfolio als Portfolio Performance Tracking-Tool?" nachlesen. -

-

- Wir freuen uns auf dein Feedback.
- Thomas von Ghostfolio + >

@@ -79,6 +95,9 @@
  • App
  • +
  • + Asset +
  • Feedback
  • @@ -103,6 +122,9 @@
  • Lizenz
  • +
  • + Media +
  • Open Source
  • @@ -118,6 +140,9 @@
  • Portfolio
  • +
  • + Presse +
  • Sackgeld
  • @@ -139,6 +164,9 @@
  • Vermögen
  • +
  • + Vorsorge +
  • Wealth Management
  • From efba7429c1eb00273ccd473a3f4ac74988a9ea76 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 25 Jan 2023 12:00:52 +0100 Subject: [PATCH 4/5] Bugfix/fix click of unknown accounts (#1629) * Check for unknown key * Update changelog --- CHANGELOG.md | 4 ++++ .../pages/portfolio/allocations/allocations-page.component.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5baf9159a..3f57dc3de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgraded `Node.js` from version `16` to `18` (`Dockerfile`) +### Fixed + +- Fixed the click of unknown accounts in the portfolio proportion chart component + ## 1.229.0 - 2023-01-21 ### Added diff --git a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts index 910629a3e..0dd32bf68 100644 --- a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts +++ b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts @@ -357,7 +357,7 @@ export class AllocationsPageComponent implements OnDestroy, OnInit { } public onAccountChartClicked({ symbol }: UniqueAsset) { - if (symbol) { + if (symbol && symbol !== UNKNOWN_KEY) { this.router.navigate([], { queryParams: { accountId: symbol, accountDetailDialog: true } }); From 4d84459b5be0c1625c83b59de68829ba30ca58b7 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 27 Jan 2023 08:49:31 +0100 Subject: [PATCH 5/5] Clean up imports (#1632) --- apps/api/src/app/import/import.controller.ts | 1 - apps/api/src/app/user/user.controller.ts | 3 --- 2 files changed, 4 deletions(-) diff --git a/apps/api/src/app/import/import.controller.ts b/apps/api/src/app/import/import.controller.ts index 4a9ef5093..2591ab638 100644 --- a/apps/api/src/app/import/import.controller.ts +++ b/apps/api/src/app/import/import.controller.ts @@ -20,7 +20,6 @@ import { REQUEST } from '@nestjs/core'; import { AuthGuard } from '@nestjs/passport'; import { DataSource } from '@prisma/client'; import { StatusCodes, getReasonPhrase } from 'http-status-codes'; -import { isEmpty } from 'lodash'; import { ImportDataDto } from './import-data.dto'; import { ImportService } from './import.service'; diff --git a/apps/api/src/app/user/user.controller.ts b/apps/api/src/app/user/user.controller.ts index de79eaee9..6a1729b73 100644 --- a/apps/api/src/app/user/user.controller.ts +++ b/apps/api/src/app/user/user.controller.ts @@ -1,6 +1,4 @@ -import { ConfigurationService } from '@ghostfolio/api/services/configuration.service'; import { PropertyService } from '@ghostfolio/api/services/property/property.service'; -import { PROPERTY_IS_USER_SIGNUP_ENABLED } from '@ghostfolio/common/config'; import { User, UserSettings } from '@ghostfolio/common/interfaces'; import { hasPermission, permissions } from '@ghostfolio/common/permissions'; import type { RequestWithUser } from '@ghostfolio/common/types'; @@ -31,7 +29,6 @@ import { UserService } from './user.service'; @Controller('user') export class UserController { public constructor( - private readonly configurationService: ConfigurationService, private readonly jwtService: JwtService, private readonly propertyService: PropertyService, @Inject(REQUEST) private readonly request: RequestWithUser,