diff --git a/CHANGELOG.md b/CHANGELOG.md index 018a7cede..85a1da408 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Set up `open-color` for CSS variable usage + ### Changed +- Simplified the data providers management of the admin control panel - Migrated the `@ghostfolio/ui/assistant` component to control flow - Migrated the `@ghostfolio/ui/value` component to control flow - Renamed `GranteeUser` to `granteeUser` in the `Access` database schema diff --git a/apps/client/project.json b/apps/client/project.json index 4bb7fe296..215c5dae1 100644 --- a/apps/client/project.json +++ b/apps/client/project.json @@ -73,7 +73,8 @@ "styles": [ "apps/client/src/assets/fonts/inter.css", "apps/client/src/styles/theme.scss", - "apps/client/src/styles.scss" + "apps/client/src/styles.scss", + "node_modules/open-color/open-color.css" ], "scripts": ["node_modules/marked/marked.min.js"], "vendorChunk": true, diff --git a/apps/client/src/app/components/admin-settings/admin-settings.component.html b/apps/client/src/app/components/admin-settings/admin-settings.component.html index 368b98da5..f00b5bc88 100644 --- a/apps/client/src/app/components/admin-settings/admin-settings.component.html +++ b/apps/client/src/app/components/admin-settings/admin-settings.component.html @@ -2,6 +2,42 @@
@@ -23,8 +59,10 @@
[enableLink]="false"
/>
@if (isGhostfolioApiKeyValid === false) {
- Early Accessnew
}
diff --git a/apps/client/src/app/components/admin-settings/admin-settings.component.scss b/apps/client/src/app/components/admin-settings/admin-settings.component.scss
index 384143300..28bab4deb 100644
--- a/apps/client/src/app/components/admin-settings/admin-settings.component.scss
+++ b/apps/client/src/app/components/admin-settings/admin-settings.component.scss
@@ -1,16 +1,26 @@
:host {
display: block;
+ a,
button {
&.special {
- background: linear-gradient(45deg, rgb(228, 94, 237), rgb(104, 94, 237));
+ background: linear-gradient(45deg, var(--oc-pink-5), var(--oc-violet-5));
color: #fff;
}
}
.badge {
- &.early-access {
+ &.new {
border: 1px solid var(--mat-table-row-item-outline-color);
+ padding-bottom: 0.05rem;
+ }
+ }
+
+ .mat-mdc-card {
+ --mdc-outlined-card-container-color: whitesmoke;
+
+ .mat-mdc-card-actions {
+ min-height: 0;
}
}
@@ -26,3 +36,9 @@
}
}
}
+
+:host-context(.theme-dark) {
+ .mat-mdc-card {
+ --mdc-outlined-card-container-color: #222222;
+ }
+}
diff --git a/apps/client/src/app/components/admin-settings/admin-settings.component.ts b/apps/client/src/app/components/admin-settings/admin-settings.component.ts
index 8911fb818..209fbe9f0 100644
--- a/apps/client/src/app/components/admin-settings/admin-settings.component.ts
+++ b/apps/client/src/app/components/admin-settings/admin-settings.component.ts
@@ -19,14 +19,9 @@ import {
OnDestroy,
OnInit
} from '@angular/core';
-import { MatDialog } from '@angular/material/dialog';
import { MatTableDataSource } from '@angular/material/table';
-import { DeviceDetectorService } from 'ngx-device-detector';
import { catchError, filter, of, Subject, takeUntil } from 'rxjs';
-import { GfGhostfolioPremiumApiDialogComponent } from './ghostfolio-premium-api-dialog/ghostfolio-premium-api-dialog.component';
-import { GhostfolioPremiumApiDialogParams } from './ghostfolio-premium-api-dialog/interfaces/interfaces';
-
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'gf-admin-settings',
@@ -43,7 +38,6 @@ export class AdminSettingsComponent implements OnDestroy, OnInit {
public isLoading = false;
public pricingUrl: string;
- private deviceType: string;
private unsubscribeSubject = new Subject
-
-
-
- Early access to the official
- Ghostfolio Premium
-
- Get Early Access
-
-
- or
-
-
- |
---|