Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Task/migrate fear and greed index component to standalone (#5485)
Thomas Kaul1845e016c864
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 4fba0cb840..2360b4ba66 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Extended the variations of the interstitials for the subscription- Renamed the job identifier column in the jobs queue view of the admin control panel- Refactored the markets page to standalone+- Refactored the fear and greed index component to standalone- Refactored the header component to standalone- Refactored the rule component to standalone- Refactored the rules component to standalonediff --git a/apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.component.ts b/apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.component.tsindex 96cb272a08..51a9846604 100644--- a/apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.component.ts+++ b/apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.component.ts@@ -1,21 +1,23 @@import { resolveFearAndGreedIndex } from '@ghostfolio/common/helper';import { translate } from '@ghostfolio/ui/i18n';+import { CommonModule } from '@angular/common';import {ChangeDetectionStrategy,Component,Input,OnChanges} from '@angular/core';+import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';@Component({- selector: 'gf-fear-and-greed-index',changeDetection: ChangeDetectionStrategy.OnPush,- templateUrl: './fear-and-greed-index.component.html',+ imports: [CommonModule, NgxSkeletonLoaderModule],+ selector: 'gf-fear-and-greed-index',styleUrls: ['./fear-and-greed-index.component.scss'],- standalone: false+ templateUrl: './fear-and-greed-index.component.html'})-export class FearAndGreedIndexComponent implements OnChanges {+export class GfFearAndGreedIndexComponent implements OnChanges {@Input() fearAndGreedIndex: number;public fearAndGreedIndexEmoji: string;diff --git a/apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.module.ts b/apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.module.tsdeleted file mode 100644index 426326344c..0000000000--- a/apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.module.ts+++ /dev/null@@ -1,12 +0,0 @@-import { CommonModule } from '@angular/common';-import { NgModule } from '@angular/core';-import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';--import { FearAndGreedIndexComponent } from './fear-and-greed-index.component';--@NgModule({- declarations: [FearAndGreedIndexComponent],- exports: [FearAndGreedIndexComponent],- imports: [CommonModule, NgxSkeletonLoaderModule]-})-export class GfFearAndGreedIndexModule {}diff --git a/apps/client/src/app/components/home-market/home-market.component.ts b/apps/client/src/app/components/home-market/home-market.component.tsindex c754935dfd..f0aa4352d6 100644--- a/apps/client/src/app/components/home-market/home-market.component.ts+++ b/apps/client/src/app/components/home-market/home-market.component.ts@@ -1,4 +1,4 @@-import { GfFearAndGreedIndexModule } from '@ghostfolio/client/components/fear-and-greed-index/fear-and-greed-index.module';+import { GfFearAndGreedIndexComponent } from '@ghostfolio/client/components/fear-and-greed-index/fear-and-greed-index.component';import { DataService } from '@ghostfolio/client/services/data.service';import { UserService } from '@ghostfolio/client/services/user/user.service';import { ghostfolioFearAndGreedIndexSymbol } from '@ghostfolio/common/config';@@ -27,7 +27,7 @@ import { takeUntil } from 'rxjs/operators';@Component({imports: [GfBenchmarkComponent,- GfFearAndGreedIndexModule,+ GfFearAndGreedIndexComponent,GfLineChartComponent],schemas: [CUSTOM_ELEMENTS_SCHEMA],diff --git a/apps/client/src/app/components/markets/markets.component.ts b/apps/client/src/app/components/markets/markets.component.tsindex 91c28e1c76..054ee79eb2 100644--- a/apps/client/src/app/components/markets/markets.component.ts+++ b/apps/client/src/app/components/markets/markets.component.ts@@ -1,4 +1,4 @@-import { GfFearAndGreedIndexModule } from '@ghostfolio/client/components/fear-and-greed-index/fear-and-greed-index.module';+import { GfFearAndGreedIndexComponent } from '@ghostfolio/client/components/fear-and-greed-index/fear-and-greed-index.component';import { DataService } from '@ghostfolio/client/services/data.service';import { UserService } from '@ghostfolio/client/services/user/user.service';import { resetHours } from '@ghostfolio/common/helper';@@ -30,7 +30,7 @@ import { takeUntil } from 'rxjs/operators';changeDetection: ChangeDetectionStrategy.OnPush,imports: [GfBenchmarkComponent,- GfFearAndGreedIndexModule,+ GfFearAndGreedIndexComponent,GfLineChartComponent,GfToggleComponent],