Browse Source

Clean up comments (#1043)

* Clean up comments
pull/1044/head
Thomas Kaul 3 years ago
committed by GitHub
parent
commit
d130efad47
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      apps/client/src/app/adapter/custom-date-adapter.ts
  2. 6
      apps/client/src/app/components/admin-jobs/admin-jobs.component.ts
  3. 6
      apps/client/src/app/components/admin-market-data/admin-market-data.component.ts
  4. 6
      apps/client/src/app/components/admin-overview/admin-overview.component.ts
  5. 6
      apps/client/src/app/components/admin-users/admin-users.component.ts
  6. 6
      apps/client/src/app/components/home-holdings/home-holdings.component.ts
  7. 6
      apps/client/src/app/components/home-market/home-market.component.ts
  8. 6
      apps/client/src/app/components/home-overview/home-overview.component.ts
  9. 6
      apps/client/src/app/components/home-summary/home-summary.component.ts
  10. 6
      apps/client/src/app/pages/about/about-page.component.ts
  11. 3
      apps/client/src/app/pages/about/changelog/changelog-page.component.ts
  12. 3
      apps/client/src/app/pages/about/privacy-policy/privacy-policy-page.component.ts
  13. 6
      apps/client/src/app/pages/account/account-page.component.ts
  14. 6
      apps/client/src/app/pages/accounts/accounts-page.component.ts
  15. 6
      apps/client/src/app/pages/admin/admin-page.component.ts
  16. 6
      apps/client/src/app/pages/auth/auth-page.component.ts
  17. 3
      apps/client/src/app/pages/blog/blog-page.component.ts
  18. 6
      apps/client/src/app/pages/features/features-page.component.ts
  19. 6
      apps/client/src/app/pages/home/home-page.component.ts
  20. 6
      apps/client/src/app/pages/landing/landing-page.component.ts
  21. 6
      apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts
  22. 6
      apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts
  23. 6
      apps/client/src/app/pages/portfolio/fire/fire-page.component.ts
  24. 6
      apps/client/src/app/pages/portfolio/holdings/holdings-page.component.ts
  25. 6
      apps/client/src/app/pages/portfolio/portfolio-page.component.ts
  26. 6
      apps/client/src/app/pages/portfolio/report/report-page.component.ts
  27. 6
      apps/client/src/app/pages/portfolio/transactions/transactions-page.component.ts
  28. 6
      apps/client/src/app/pages/pricing/pricing-page.component.ts
  29. 6
      apps/client/src/app/pages/public/public-page.component.ts
  30. 6
      apps/client/src/app/pages/register/register-page.component.ts
  31. 6
      apps/client/src/app/pages/resources/resources-page.component.ts
  32. 3
      apps/client/src/app/pages/zen/zen-page.component.ts
  33. 3
      libs/ui/src/lib/fire-calculator/fire-calculator.component.ts
  34. 3
      libs/ui/src/lib/fire-calculator/fire-calculator.service.ts

3
apps/client/src/app/adapter/custom-date-adapter.ts

@ -5,9 +5,6 @@ import { getDateFormatString } from '@ghostfolio/common/helper';
import { format, parse } from 'date-fns';
export class CustomDateAdapter extends NativeDateAdapter {
/**
* @constructor
*/
public constructor(
@Inject(MAT_DATE_LOCALE) public locale: string,
@Inject(forwardRef(() => MAT_DATE_LOCALE)) matDateLocale: string,

6
apps/client/src/app/components/admin-jobs/admin-jobs.component.ts

@ -30,9 +30,6 @@ export class AdminJobsComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private adminService: AdminService,
private changeDetectorRef: ChangeDetectorRef,
@ -52,9 +49,6 @@ export class AdminJobsComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.filterForm = this.formBuilder.group({
status: []

6
apps/client/src/app/components/admin-market-data/admin-market-data.component.ts

@ -31,9 +31,6 @@ export class AdminMarketDataComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private adminService: AdminService,
private changeDetectorRef: ChangeDetectorRef,
@ -53,9 +50,6 @@ export class AdminMarketDataComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.fetchAdminMarketData();
}

6
apps/client/src/app/components/admin-overview/admin-overview.component.ts

@ -42,9 +42,6 @@ export class AdminOverviewComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private adminService: AdminService,
private cacheService: CacheService,
@ -78,9 +75,6 @@ export class AdminOverviewComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.fetchAdminData();
}

6
apps/client/src/app/components/admin-users/admin-users.component.ts

@ -21,9 +21,6 @@ export class AdminUsersComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -38,9 +35,6 @@ export class AdminUsersComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.fetchAdminData();
}

6
apps/client/src/app/components/home-holdings/home-holdings.component.ts

@ -36,9 +36,6 @@ export class HomeHoldingsComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -81,9 +78,6 @@ export class HomeHoldingsComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType;

6
apps/client/src/app/components/home-market/home-market.component.ts

@ -30,9 +30,6 @@ export class HomeMarketComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -89,9 +86,6 @@ export class HomeMarketComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {}
public ngOnDestroy() {

6
apps/client/src/app/components/home-overview/home-overview.component.ts

@ -42,9 +42,6 @@ export class HomeOverviewComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -69,9 +66,6 @@ export class HomeOverviewComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType;

6
apps/client/src/app/components/home-summary/home-summary.component.ts

@ -21,9 +21,6 @@ export class HomeSummaryComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -46,9 +43,6 @@ export class HomeSummaryComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.impersonationStorageService
.onChangeHasImpersonation()

6
apps/client/src/app/pages/about/about-page.component.ts

@ -26,9 +26,6 @@ export class AboutPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -54,9 +51,6 @@ export class AboutPageComponent implements OnDestroy, OnInit {
this.statistics = statistics;
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.userService.stateChanged
.pipe(takeUntil(this.unsubscribeSubject))

3
apps/client/src/app/pages/about/changelog/changelog-page.component.ts

@ -10,9 +10,6 @@ import { Subject } from 'rxjs';
export class ChangelogPageComponent implements OnDestroy {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor() {}
public ngOnDestroy() {

3
apps/client/src/app/pages/about/privacy-policy/privacy-policy-page.component.ts

@ -10,9 +10,6 @@ import { Subject } from 'rxjs';
export class PrivacyPolicyPageComponent implements OnDestroy {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor() {}
public ngOnDestroy() {

6
apps/client/src/app/pages/account/account-page.component.ts

@ -63,9 +63,6 @@ export class AccountPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -145,9 +142,6 @@ export class AccountPageComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType;

6
apps/client/src/app/pages/accounts/accounts-page.component.ts

@ -35,9 +35,6 @@ export class AccountsPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -67,9 +64,6 @@ export class AccountsPageComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType;

6
apps/client/src/app/pages/admin/admin-page.component.ts

@ -16,18 +16,12 @@ export class AdminPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(private dataService: DataService) {
const { systemMessage } = this.dataService.fetchInfo();
this.hasMessage = !!systemMessage;
}
/**
* Initializes the controller
*/
public ngOnInit() {}
public ngOnDestroy() {

6
apps/client/src/app/pages/auth/auth-page.component.ts

@ -16,9 +16,6 @@ import { takeUntil } from 'rxjs/operators';
export class AuthPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private route: ActivatedRoute,
private router: Router,
@ -26,9 +23,6 @@ export class AuthPageComponent implements OnDestroy, OnInit {
private tokenStorageService: TokenStorageService
) {}
/**
* Initializes the controller
*/
public ngOnInit() {
this.route.params
.pipe(takeUntil(this.unsubscribeSubject))

3
apps/client/src/app/pages/blog/blog-page.component.ts

@ -10,9 +10,6 @@ import { Subject } from 'rxjs';
export class BlogPageComponent implements OnDestroy {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor() {}
public ngOnDestroy() {

6
apps/client/src/app/pages/features/features-page.component.ts

@ -18,9 +18,6 @@ export class FeaturesPageComponent implements OnDestroy {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -29,9 +26,6 @@ export class FeaturesPageComponent implements OnDestroy {
this.info = this.dataService.fetchInfo();
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.userService.stateChanged
.pipe(takeUntil(this.unsubscribeSubject))

6
apps/client/src/app/pages/home/home-page.component.ts

@ -29,9 +29,6 @@ export class HomePageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -70,9 +67,6 @@ export class HomePageComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {}
public ngOnDestroy() {

6
apps/client/src/app/pages/landing/landing-page.component.ts

@ -39,18 +39,12 @@ export class LandingPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private dataService: DataService,
private router: Router,
private tokenStorageService: TokenStorageService
) {}
/**
* Initializes the controller
*/
public ngOnInit() {
const { demoAuthToken } = this.dataService.fetchInfo();

6
apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts

@ -86,9 +86,6 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
private readonly SEARCH_PLACEHOLDER = 'Filter by account or tag...';
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -115,9 +112,6 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType;

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

@ -27,9 +27,6 @@ export class AnalysisPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -38,9 +35,6 @@ export class AnalysisPageComponent implements OnDestroy, OnInit {
private userService: UserService
) {}
/**
* Initializes the controller
*/
public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType;

6
apps/client/src/app/pages/portfolio/fire/fire-page.component.ts

@ -25,9 +25,6 @@ export class FirePageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -35,9 +32,6 @@ export class FirePageComponent implements OnDestroy, OnInit {
private userService: UserService
) {}
/**
* Initializes the controller
*/
public ngOnInit() {
this.isLoading = true;
this.deviceType = this.deviceService.getDeviceInfo().deviceType;

6
apps/client/src/app/pages/portfolio/holdings/holdings-page.component.ts

@ -41,9 +41,6 @@ export class HoldingsPageComponent implements OnDestroy, OnInit {
private readonly SEARCH_PLACEHOLDER = 'Filter by account or tag...';
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -70,9 +67,6 @@ export class HoldingsPageComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType;

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

@ -18,9 +18,6 @@ export class PortfolioPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -34,9 +31,6 @@ export class PortfolioPageComponent implements OnDestroy, OnInit {
);
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.userService.stateChanged
.pipe(takeUntil(this.unsubscribeSubject))

6
apps/client/src/app/pages/portfolio/report/report-page.component.ts

@ -21,18 +21,12 @@ export class ReportPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
private userService: UserService
) {}
/**
* Initializes the controller
*/
public ngOnInit() {
this.dataService
.fetchPortfolioReport()

6
apps/client/src/app/pages/portfolio/transactions/transactions-page.component.ts

@ -44,9 +44,6 @@ export class TransactionsPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -88,9 +85,6 @@ export class TransactionsPageComponent implements OnDestroy, OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
const { globalPermissions } = this.dataService.fetchInfo();

6
apps/client/src/app/pages/pricing/pricing-page.component.ts

@ -20,9 +20,6 @@ export class PricingPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService,
@ -35,9 +32,6 @@ export class PricingPageComponent implements OnDestroy, OnInit {
this.price = subscriptions?.[0]?.price;
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.userService.stateChanged
.pipe(takeUntil(this.unsubscribeSubject))

6
apps/client/src/app/pages/public/public-page.component.ts

@ -48,9 +48,6 @@ export class PublicPageComponent implements OnInit {
private id: string;
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private activatedRoute: ActivatedRoute,
private changeDetectorRef: ChangeDetectorRef,
@ -63,9 +60,6 @@ export class PublicPageComponent implements OnInit {
});
}
/**
* Initializes the controller
*/
public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType;

6
apps/client/src/app/pages/register/register-page.component.ts

@ -30,9 +30,6 @@ export class RegisterPageComponent implements OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private dataService: DataService,
private deviceService: DeviceDetectorService,
@ -45,9 +42,6 @@ export class RegisterPageComponent implements OnDestroy, OnInit {
this.tokenStorageService.signOut();
}
/**
* Initializes the controller
*/
public ngOnInit() {
const { demoAuthToken, globalPermissions } = this.dataService.fetchInfo();

6
apps/client/src/app/pages/resources/resources-page.component.ts

@ -10,14 +10,8 @@ import { Subject } from 'rxjs';
export class ResourcesPageComponent implements OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor() {}
/**
* Initializes the controller
*/
public ngOnInit() {}
public ngOnDestroy() {

3
apps/client/src/app/pages/zen/zen-page.component.ts

@ -23,9 +23,6 @@ export class ZenPageComponent implements AfterViewInit, OnDestroy, OnInit {
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private route: ActivatedRoute,
private changeDetectorRef: ChangeDetectorRef,

3
libs/ui/src/lib/fire-calculator/fire-calculator.component.ts

@ -62,9 +62,6 @@ export class FireCalculatorComponent
private unsubscribeSubject = new Subject<void>();
/**
* @constructor
*/
public constructor(
private changeDetectorRef: ChangeDetectorRef,
private fireCalculatorService: FireCalculatorService,

3
libs/ui/src/lib/fire-calculator/fire-calculator.service.ts

@ -6,9 +6,6 @@ export class FireCalculatorService {
private readonly COMPOUND_PERIOD = 12;
private readonly CONTRIBUTION_PERIOD = 12;
/**
* @constructor
*/
public constructor() {}
public calculateCompoundInterest({

Loading…
Cancel
Save