Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Various frontend improvements (#137)
Thomas34303163bc7f
diff --git a/apps/client/src/app/components/header/header.component.html b/apps/client/src/app/components/header/header.component.htmlindex d2560c411d..ccd6d3df98 100644--- a/apps/client/src/app/components/header/header.component.html+++ b/apps/client/src/app/components/header/header.component.html@@ -136,6 +136,7 @@<hr class="m-0" /></ng-container><a+ *ngIf="user?.settings?.viewMode === 'DEFAULT'"class="d-block d-sm-none"i18nmat-menu-itemdiff --git a/apps/client/src/app/pages/account/account-page.html b/apps/client/src/app/pages/account/account-page.htmlindex 327ab5256f..3271f9934f 100644--- a/apps/client/src/app/pages/account/account-page.html+++ b/apps/client/src/app/pages/account/account-page.html@@ -25,6 +25,11 @@Valid until {{ user.subscription.expiresAt | date:defaultDateFormat }}</div>+ <div *ngIf="!user.subscription.expiresAt">+ <button color="primary" disabled i18n mat-flat-button>+ Upgrade+ </button>+ </div></div></div><div class="d-flex mt-4 py-1">diff --git a/apps/client/src/app/pages/account/account-page.module.ts b/apps/client/src/app/pages/account/account-page.module.tsindex 3c44a988f1..324be36549 100644--- a/apps/client/src/app/pages/account/account-page.module.ts+++ b/apps/client/src/app/pages/account/account-page.module.ts@@ -1,6 +1,7 @@import { CommonModule } from '@angular/common';import { NgModule } from '@angular/core';import { FormsModule, ReactiveFormsModule } from '@angular/forms';+import { MatButtonModule } from '@angular/material/button';import { MatCardModule } from '@angular/material/card';import { MatFormFieldModule } from '@angular/material/form-field';import { MatSelectModule } from '@angular/material/select';@@ -17,6 +18,7 @@ import { AccountPageComponent } from './account-page.component';CommonModule,FormsModule,GfPortfolioAccessTableModule,+ MatButtonModule,MatCardModule,MatFormFieldModule,MatSelectModule,diff --git a/apps/client/src/app/pages/admin/admin-page.component.ts b/apps/client/src/app/pages/admin/admin-page.component.tsindex 2a17a0eae9..3cdb588779 100644--- a/apps/client/src/app/pages/admin/admin-page.component.ts+++ b/apps/client/src/app/pages/admin/admin-page.component.ts@@ -5,7 +5,7 @@ import { DataService } from '@ghostfolio/client/services/data.service';import { UserService } from '@ghostfolio/client/services/user/user.service';import { DEFAULT_DATE_FORMAT } from '@ghostfolio/common/config';import { AdminData, User } from '@ghostfolio/common/interfaces';-import { formatDistanceToNowStrict, isValid, parseISO, sub } from 'date-fns';+import { formatDistanceToNowStrict, isValid, parseISO } from 'date-fns';import { Subject } from 'rxjs';import { takeUntil } from 'rxjs/operators';@@ -76,16 +76,11 @@ export class AdminPageComponent implements OnInit {public formatDistanceToNow(aDateString: string) {if (aDateString) {- const distanceString = formatDistanceToNowStrict(- sub(parseISO(aDateString), { seconds: 10 }),- {- addSuffix: true- }- );+ const distanceString = formatDistanceToNowStrict(parseISO(aDateString), {+ addSuffix: true+ });- return distanceString === 'less than a minute ago'- ? 'just now'- : distanceString;+ return distanceString === '0 seconds ago' ? 'just now' : distanceString;}return '';diff --git a/apps/client/src/app/pages/pricing/pricing-page.html b/apps/client/src/app/pages/pricing/pricing-page.htmlindex 1ade326bb8..9ae8a579af 100644--- a/apps/client/src/app/pages/pricing/pricing-page.html+++ b/apps/client/src/app/pages/pricing/pricing-page.html@@ -2,17 +2,21 @@<div class="row"><div class="col"><h3 class="d-flex justify-content-center mb-3" i18n>Pricing Plans</h3>- <p>- Our official- <strong>Ghostfolio</strong> cloud offering is the easiest way to get- started. Due to the time it saves, this will be the best option for most- people. The revenue is used for covering the hosting costs.- </p>- <p class="mb-5">- If you prefer to run <strong>Ghostfolio</strong> on your own- infrastructure, please find the source code and further instructions on- <a href="https://github.com/ghostfolio/ghostfolio">GitHub</a>.- </p>+ <mat-card class="mb-4">+ <mat-card-content>+ <p>+ Our official+ <strong>Ghostfolio</strong> cloud offering is the easiest way to get+ started. Due to the time it saves, this will be the best option for+ most people. The revenue is used for covering the hosting costs.+ </p>+ <p>+ If you prefer to run <strong>Ghostfolio</strong> on your own+ infrastructure, please find the source code and further instructions+ on <a href="https://github.com/ghostfolio/ghostfolio">GitHub</a>.+ </p>+ </mat-card-content>+ </mat-card><div class="row"><div class="col-xs-12 col-md-4 mb-3"><mat-card class="d-flex flex-column h-100">diff --git a/apps/client/src/styles.scss b/apps/client/src/styles.scssindex 2497bcd875..b113b5779e 100644--- a/apps/client/src/styles.scss+++ b/apps/client/src/styles.scss@@ -126,14 +126,16 @@ ngx-skeleton-loader {}}-.mat-card-header-text {- margin: 0 !important;+.mat-card {+ &:not([class*='mat-elevation-z']) {+ border: 1px solid+ rgba(var(--dark-primary-text), var(--palette-foreground-divider-alpha));+ box-shadow: none;+ }}-.mat-card:not([class*='mat-elevation-z']) {- border: 1px solid- rgba(var(--dark-primary-text), var(--palette-foreground-divider-alpha));- box-shadow: none;+.mat-card-header-text {+ margin: 0 !important;}.mat-row {