Browse Source

Refactoring

pull/2369/head
Thomas 2 years ago
parent
commit
e6955be92f
  1. 8
      apps/client/src/app/pages/resources/personal-finance-tools/product-page-template.html
  2. 29
      apps/client/src/app/pages/resources/personal-finance-tools/products.ts
  3. 2
      libs/common/src/lib/interfaces/product.ts

8
apps/client/src/app/pages/resources/personal-finance-tools/product-page-template.html

@ -96,16 +96,16 @@
Open Source Software
</td>
<td class="mat-mdc-cell px-1 py-2">
<ng-container *ngIf="product1.isOpenSource === true" i18n
<ng-container *ngIf="product1.isOpenSource" i18n
>✅ Yes</ng-container
><ng-container *ngIf="product1.isOpenSource === false" i18n
><ng-container *ngIf="!product1.isOpenSource" i18n
>❌ No</ng-container
>
</td>
<td class="mat-mdc-cell px-1 py-2">
<ng-container *ngIf="product2.isOpenSource === true" i18n
<ng-container *ngIf="product2.isOpenSource" i18n
>✅ Yes</ng-container
><ng-container *ngIf="product2.isOpenSource === false" i18n
><ng-container *ngIf="!product2.isOpenSource" i18n
>❌ No
</ng-container>
</td>

29
apps/client/src/app/pages/resources/personal-finance-tools/products.ts

@ -47,7 +47,7 @@ export const products: Product[] = [
],
name: 'Ghostfolio',
origin: $localize`Switzerland`,
pricingPerYear: '$19',
pricingPerYear: '$24',
region: $localize`Global`,
slogan: 'Open Source Wealth Management',
useAnonymously: true
@ -56,7 +56,6 @@ export const products: Product[] = [
component: AltooPageComponent,
founded: 2017,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'altoo',
name: 'Altoo Wealth Platform',
origin: $localize`Switzerland`,
@ -65,7 +64,6 @@ export const products: Product[] = [
{
component: CapMonPageComponent,
founded: 2022,
isOpenSource: false,
key: 'capmon',
name: 'CapMon.org',
origin: $localize`Germany`,
@ -77,7 +75,6 @@ export const products: Product[] = [
founded: 2019,
hasFreePlan: false,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'copilot-money',
name: 'Copilot Money',
origin: $localize`United States`,
@ -89,7 +86,6 @@ export const products: Product[] = [
founded: 2017,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'delta',
name: 'Delta Investment Tracker',
note: 'Acquired by eToro',
@ -101,7 +97,6 @@ export const products: Product[] = [
founded: 2019,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'divvydiary',
languages: ['Deutsch', 'English'],
name: 'DivvyDiary',
@ -114,7 +109,6 @@ export const products: Product[] = [
founded: 2020,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'exirio',
name: 'Exirio',
origin: $localize`United States`,
@ -125,7 +119,6 @@ export const products: Product[] = [
component: FolisharePageComponent,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'folishare',
languages: ['Deutsch', 'English'],
name: 'folishare',
@ -138,7 +131,6 @@ export const products: Product[] = [
founded: 2020,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'getquin',
languages: ['Deutsch', 'English'],
name: 'getquin',
@ -150,7 +142,6 @@ export const products: Product[] = [
component: GoSpatzPageComponent,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'gospatz',
name: 'goSPATZ',
origin: $localize`Germany`,
@ -161,7 +152,6 @@ export const products: Product[] = [
founded: 2011,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'justetf',
name: 'justETF',
origin: $localize`Germany`,
@ -173,7 +163,6 @@ export const products: Product[] = [
founded: 2019,
hasFreePlan: false,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'kubera',
name: 'Kubera®',
origin: $localize`United States`,
@ -185,7 +174,6 @@ export const products: Product[] = [
founded: 2022,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'markets.sh',
languages: ['English'],
name: 'markets.sh',
@ -198,7 +186,6 @@ export const products: Product[] = [
component: MaybeFinancePageComponent,
founded: 2021,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'maybe-finance',
languages: ['English'],
name: 'Maybe Finance',
@ -212,7 +199,6 @@ export const products: Product[] = [
component: MonsePageComponent,
hasFreePlan: false,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'monse',
name: 'Monse',
pricingPerYear: '$60',
@ -223,7 +209,6 @@ export const products: Product[] = [
founded: 2020,
hasSelfHostingAbility: false,
hasFreePlan: true,
isOpenSource: false,
key: 'parqet',
name: 'Parqet',
note: 'Originally named as Tresor One',
@ -236,7 +221,6 @@ export const products: Product[] = [
component: PlannixPageComponent,
founded: 2023,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'plannix',
name: 'Plannix',
origin: $localize`Italy`,
@ -246,7 +230,6 @@ export const products: Product[] = [
component: PortfolioDividendTrackerPageComponent,
hasFreePlan: false,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'portfolio-dividend-tracker',
languages: ['English', 'Nederlands'],
name: 'Portfolio Dividend Tracker',
@ -259,7 +242,6 @@ export const products: Product[] = [
founded: 2021,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'portseido',
languages: ['Deutsch', 'English', 'Français', 'Nederlands'],
name: 'Portseido',
@ -272,7 +254,6 @@ export const products: Product[] = [
founded: 2021,
hasFreePlan: true,
hasSelfHostingAbility: true,
isOpenSource: false,
key: 'projectionlab',
name: 'ProjectionLab',
origin: $localize`United States`,
@ -284,7 +265,6 @@ export const products: Product[] = [
founded: 2004,
hasFreePlan: false,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'seeking-alpha',
name: 'Seeking Alpha',
origin: $localize`United States`,
@ -296,7 +276,6 @@ export const products: Product[] = [
founded: 2007,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'sharesight',
name: 'Sharesight',
origin: $localize`New Zealand`,
@ -308,7 +287,6 @@ export const products: Product[] = [
component: SimplePortfolioPageComponent,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'simple-portfolio',
name: 'Simple Portfolio',
origin: $localize`Czech Republic`,
@ -320,7 +298,6 @@ export const products: Product[] = [
founded: 2021,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'snowball-analytics',
name: 'Snowball Analytics',
origin: $localize`France`,
@ -330,7 +307,6 @@ export const products: Product[] = [
{
component: StockMarketEyePageComponent,
founded: 2008,
isOpenSource: false,
key: 'stockmarketeye',
name: 'StockMarketEye',
origin: $localize`France`,
@ -341,7 +317,6 @@ export const products: Product[] = [
component: SumioPageComponent,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'sumio',
name: 'Sumio',
origin: $localize`Czech Republic`,
@ -352,7 +327,6 @@ export const products: Product[] = [
component: UtlunaPageComponent,
hasFreePlan: true,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'utluna',
languages: ['Deutsch', 'English', 'Français'],
name: 'Utluna',
@ -365,7 +339,6 @@ export const products: Product[] = [
component: YeekateePageComponent,
founded: 2021,
hasSelfHostingAbility: false,
isOpenSource: false,
key: 'yeekatee',
name: 'yeekatee',
origin: $localize`Switzerland`,

2
libs/common/src/lib/interfaces/product.ts

@ -3,7 +3,7 @@ export interface Product {
founded?: number;
hasFreePlan?: boolean;
hasSelfHostingAbility?: boolean;
isOpenSource: boolean;
isOpenSource?: boolean;
key: string;
languages?: string[];
name: string;

Loading…
Cancel
Save