Browse Source

Standalone done

pull/5490/head
Raj Gupta 2 months ago
parent
commit
2bfbd5939c
  1. 4
      apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts
  2. 7
      apps/client/src/app/components/investment-chart/investment-chart.component.ts
  3. 12
      apps/client/src/app/components/investment-chart/investment-chart.module.ts
  4. 4
      apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

4
apps/client/src/app/components/account-detail-dialog/account-detail-dialog.component.ts

@ -2,7 +2,7 @@ import { CreateAccountBalanceDto } from '@ghostfolio/api/app/account-balance/cre
import { Activity } from '@ghostfolio/api/app/order/interfaces/activities.interface';
import { GfDialogFooterComponent } from '@ghostfolio/client/components/dialog-footer/dialog-footer.component';
import { GfDialogHeaderComponent } from '@ghostfolio/client/components/dialog-header/dialog-header.component';
import { GfInvestmentChartModule } from '@ghostfolio/client/components/investment-chart/investment-chart.module';
import { GfInvestmentChartComponent } from '@ghostfolio/client/components/investment-chart/investment-chart.component';
import { DataService } from '@ghostfolio/client/services/data.service';
import { UserService } from '@ghostfolio/client/services/user/user.service';
import { NUMERICAL_PRECISION_THRESHOLD_6_FIGURES } from '@ghostfolio/common/config';
@ -64,7 +64,7 @@ import { AccountDetailDialogParams } from './interfaces/interfaces';
GfDialogFooterComponent,
GfDialogHeaderComponent,
GfHoldingsTableComponent,
GfInvestmentChartModule,
GfInvestmentChartComponent,
GfValueComponent,
IonIcon,
MatButtonModule,

7
apps/client/src/app/components/investment-chart/investment-chart.component.ts

@ -1,3 +1,5 @@
import { CommonModule } from '@angular/common';
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
import {
getTooltipOptions,
getTooltipPositionerMapTop,
@ -46,7 +48,8 @@ import { isAfter } from 'date-fns';
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './investment-chart.component.html',
styleUrls: ['./investment-chart.component.scss'],
standalone: false
standalone: true,
imports: [CommonModule, NgxSkeletonLoaderModule]
})
export class InvestmentChartComponent implements OnChanges, OnDestroy {
@Input() benchmarkDataItems: InvestmentItem[] = [];
@ -306,3 +309,5 @@ export class InvestmentChartComponent implements OnChanges, OnDestroy {
: undefined;
}
}
export class GfInvestmentChartComponent {}

12
apps/client/src/app/components/investment-chart/investment-chart.module.ts

@ -1,12 +0,0 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
import { InvestmentChartComponent } from './investment-chart.component';
@NgModule({
declarations: [InvestmentChartComponent],
exports: [InvestmentChartComponent],
imports: [CommonModule, NgxSkeletonLoaderModule]
})
export class GfInvestmentChartModule {}

4
apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

@ -1,5 +1,5 @@
import { GfBenchmarkComparatorComponent } from '@ghostfolio/client/components/benchmark-comparator/benchmark-comparator.component';
import { GfInvestmentChartModule } from '@ghostfolio/client/components/investment-chart/investment-chart.module';
import { GfInvestmentChartComponent } from '@ghostfolio/client/components/investment-chart/investment-chart.component';
import { DataService } from '@ghostfolio/client/services/data.service';
import { ImpersonationStorageService } from '@ghostfolio/client/services/impersonation-storage.service';
import { UserService } from '@ghostfolio/client/services/user/user.service';
@ -47,7 +47,7 @@ import { takeUntil } from 'rxjs/operators';
@Component({
imports: [
GfBenchmarkComparatorComponent,
GfInvestmentChartModule,
GfInvestmentChartComponent,
GfPremiumIndicatorComponent,
GfToggleComponent,
GfValueComponent,

Loading…
Cancel
Save