Browse Source

Clean up

pull/3961/head
Thomas Kaul 10 months ago
parent
commit
e6f7ad75e8
  1. 1
      apps/client/src/app/components/access-table/access-table.component.ts
  2. 3
      apps/client/src/app/components/accounts-table/accounts-table.component.ts
  3. 3
      apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.ts
  4. 2
      apps/client/src/app/components/dialog-footer/dialog-footer.component.ts
  5. 2
      apps/client/src/app/components/dialog-header/dialog-header.component.ts
  6. 4
      apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.component.ts
  7. 1
      apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts
  8. 4
      apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts
  9. 4
      apps/client/src/app/components/toggle/toggle.component.ts
  10. 3
      apps/client/src/app/components/user-account-membership/user-account-membership.component.ts
  11. 3
      apps/client/src/app/components/world-map-chart/world-map-chart.component.ts
  12. 2
      apps/client/src/app/pages/faq/self-hosting/self-hosting-page.component.ts
  13. 2
      apps/client/src/app/pages/i18n/i18n-page.component.ts
  14. 4
      apps/client/src/app/pages/markets/markets-page.component.ts
  15. 1
      apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.component.ts

1
apps/client/src/app/components/access-table/access-table.component.ts

@ -36,7 +36,6 @@ export class AccessTableComponent implements OnChanges {
private notificationService: NotificationService private notificationService: NotificationService
) {} ) {}
public ngOnChanges() { public ngOnChanges() {
this.displayedColumns = ['alias', 'grantee', 'type', 'details']; this.displayedColumns = ['alias', 'grantee', 'type', 'details'];

3
apps/client/src/app/components/accounts-table/accounts-table.component.ts

@ -25,7 +25,7 @@ import { Subject, Subscription } from 'rxjs';
templateUrl: './accounts-table.component.html', templateUrl: './accounts-table.component.html',
styleUrls: ['./accounts-table.component.scss'] styleUrls: ['./accounts-table.component.scss']
}) })
export class AccountsTableComponent implements OnChanges, OnDestroy{ export class AccountsTableComponent implements OnChanges, OnDestroy {
@Input() accounts: AccountModel[]; @Input() accounts: AccountModel[];
@Input() baseCurrency: string; @Input() baseCurrency: string;
@Input() deviceType: string; @Input() deviceType: string;
@ -60,7 +60,6 @@ export class AccountsTableComponent implements OnChanges, OnDestroy{
private router: Router private router: Router
) {} ) {}
public ngOnChanges() { public ngOnChanges() {
this.displayedColumns = ['status', 'account', 'platform']; this.displayedColumns = ['status', 'account', 'platform'];

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

@ -41,7 +41,7 @@ import { MarketDataDetailDialog } from './market-data-detail-dialog/market-data-
styleUrls: ['./admin-market-data-detail.component.scss'], styleUrls: ['./admin-market-data-detail.component.scss'],
templateUrl: './admin-market-data-detail.component.html' templateUrl: './admin-market-data-detail.component.html'
}) })
export class AdminMarketDataDetailComponent implements OnChanges{ export class AdminMarketDataDetailComponent implements OnChanges {
@Input() currency: string; @Input() currency: string;
@Input() dataSource: DataSource; @Input() dataSource: DataSource;
@Input() dateOfFirstActivity: string; @Input() dateOfFirstActivity: string;
@ -80,7 +80,6 @@ export class AdminMarketDataDetailComponent implements OnChanges{
}); });
} }
public ngOnChanges() { public ngOnChanges() {
this.defaultDateFormat = getDateFormatString(this.locale); this.defaultDateFormat = getDateFormatString(this.locale);

2
apps/client/src/app/components/dialog-footer/dialog-footer.component.ts

@ -18,8 +18,6 @@ export class DialogFooterComponent {
@Output() closeButtonClicked = new EventEmitter<void>(); @Output() closeButtonClicked = new EventEmitter<void>();
public onClickCloseButton() { public onClickCloseButton() {
this.closeButtonClicked.emit(); this.closeButtonClicked.emit();
} }

2
apps/client/src/app/components/dialog-header/dialog-header.component.ts

@ -20,8 +20,6 @@ export class DialogHeaderComponent {
@Output() closeButtonClicked = new EventEmitter<void>(); @Output() closeButtonClicked = new EventEmitter<void>();
public onClickCloseButton() { public onClickCloseButton() {
this.closeButtonClicked.emit(); this.closeButtonClicked.emit();
} }

4
apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.component.ts

@ -14,14 +14,12 @@ import {
templateUrl: './fear-and-greed-index.component.html', templateUrl: './fear-and-greed-index.component.html',
styleUrls: ['./fear-and-greed-index.component.scss'] styleUrls: ['./fear-and-greed-index.component.scss']
}) })
export class FearAndGreedIndexComponent implements OnChanges{ export class FearAndGreedIndexComponent implements OnChanges {
@Input() fearAndGreedIndex: number; @Input() fearAndGreedIndex: number;
public fearAndGreedIndexEmoji: string; public fearAndGreedIndexEmoji: string;
public fearAndGreedIndexText: string; public fearAndGreedIndexText: string;
public ngOnChanges() { public ngOnChanges() {
const { emoji, key } = resolveFearAndGreedIndex(this.fearAndGreedIndex); const { emoji, key } = resolveFearAndGreedIndex(this.fearAndGreedIndex);

1
apps/client/src/app/components/login-with-access-token-dialog/login-with-access-token-dialog.component.ts

@ -28,7 +28,6 @@ export class LoginWithAccessTokenDialog {
private tokenStorageService: TokenStorageService private tokenStorageService: TokenStorageService
) {} ) {}
public onChangeStaySignedIn(aValue: MatCheckboxChange) { public onChangeStaySignedIn(aValue: MatCheckboxChange) {
this.settingsStorageService.setSetting( this.settingsStorageService.setSetting(
KEY_STAY_SIGNED_IN, KEY_STAY_SIGNED_IN,

4
apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts

@ -18,7 +18,7 @@ import { formatDistanceToNow } from 'date-fns';
templateUrl: './portfolio-summary.component.html', templateUrl: './portfolio-summary.component.html',
styleUrls: ['./portfolio-summary.component.scss'] styleUrls: ['./portfolio-summary.component.scss']
}) })
export class PortfolioSummaryComponent implements OnChanges{ export class PortfolioSummaryComponent implements OnChanges {
@Input() baseCurrency: string; @Input() baseCurrency: string;
@Input() hasPermissionToUpdateUserSettings: boolean; @Input() hasPermissionToUpdateUserSettings: boolean;
@Input() isLoading: boolean; @Input() isLoading: boolean;
@ -34,8 +34,6 @@ export class PortfolioSummaryComponent implements OnChanges{
); );
public timeInMarket: string; public timeInMarket: string;
public ngOnChanges() { public ngOnChanges() {
if (this.summary) { if (this.summary) {
if (this.summary.firstOrderDate) { if (this.summary.firstOrderDate) {

4
apps/client/src/app/components/toggle/toggle.component.ts

@ -16,7 +16,7 @@ import { FormControl } from '@angular/forms';
templateUrl: './toggle.component.html', templateUrl: './toggle.component.html',
styleUrls: ['./toggle.component.scss'] styleUrls: ['./toggle.component.scss']
}) })
export class ToggleComponent implements OnChanges{ export class ToggleComponent implements OnChanges {
public static DEFAULT_DATE_RANGE_OPTIONS: ToggleOption[] = [ public static DEFAULT_DATE_RANGE_OPTIONS: ToggleOption[] = [
{ label: $localize`Today`, value: '1d' }, { label: $localize`Today`, value: '1d' },
{ label: $localize`YTD`, value: 'ytd' }, { label: $localize`YTD`, value: 'ytd' },
@ -33,8 +33,6 @@ export class ToggleComponent implements OnChanges{
public optionFormControl = new FormControl<string>(undefined); public optionFormControl = new FormControl<string>(undefined);
public ngOnChanges() { public ngOnChanges() {
this.optionFormControl.setValue(this.defaultValue); this.optionFormControl.setValue(this.defaultValue);
} }

3
apps/client/src/app/components/user-account-membership/user-account-membership.component.ts

@ -26,7 +26,7 @@ import { catchError, switchMap, takeUntil } from 'rxjs/operators';
styleUrls: ['./user-account-membership.scss'], styleUrls: ['./user-account-membership.scss'],
templateUrl: './user-account-membership.html' templateUrl: './user-account-membership.html'
}) })
export class UserAccountMembershipComponent implements OnDestroy{ export class UserAccountMembershipComponent implements OnDestroy {
public baseCurrency: string; public baseCurrency: string;
public coupon: number; public coupon: number;
public couponId: string; public couponId: string;
@ -87,7 +87,6 @@ export class UserAccountMembershipComponent implements OnDestroy{
}); });
} }
public onCheckout() { public onCheckout() {
this.dataService this.dataService
.createCheckoutSession({ couponId: this.couponId, priceId: this.priceId }) .createCheckoutSession({ couponId: this.couponId, priceId: this.priceId })

3
apps/client/src/app/components/world-map-chart/world-map-chart.component.ts

@ -16,7 +16,7 @@ import svgMap from 'svgmap';
templateUrl: './world-map-chart.component.html', templateUrl: './world-map-chart.component.html',
styleUrls: ['./world-map-chart.component.scss'] styleUrls: ['./world-map-chart.component.scss']
}) })
export class WorldMapChartComponent implements OnChanges, OnDestroy{ export class WorldMapChartComponent implements OnChanges, OnDestroy {
@Input() countries: { [code: string]: { name?: string; value: number } }; @Input() countries: { [code: string]: { name?: string; value: number } };
@Input() format: string; @Input() format: string;
@Input() isInPercent = false; @Input() isInPercent = false;
@ -27,7 +27,6 @@ export class WorldMapChartComponent implements OnChanges, OnDestroy{
public constructor(private changeDetectorRef: ChangeDetectorRef) {} public constructor(private changeDetectorRef: ChangeDetectorRef) {}
public ngOnChanges() { public ngOnChanges() {
// Create a copy before manipulating countries object // Create a copy before manipulating countries object
this.countries = structuredClone(this.countries); this.countries = structuredClone(this.countries);

2
apps/client/src/app/pages/faq/self-hosting/self-hosting-page.component.ts

@ -10,8 +10,6 @@ import { Subject } from 'rxjs';
export class SelfHostingPageComponent implements OnDestroy { export class SelfHostingPageComponent implements OnDestroy {
private unsubscribeSubject = new Subject<void>(); private unsubscribeSubject = new Subject<void>();
public ngOnDestroy() { public ngOnDestroy() {
this.unsubscribeSubject.next(); this.unsubscribeSubject.next();
this.unsubscribeSubject.complete(); this.unsubscribeSubject.complete();

2
apps/client/src/app/pages/i18n/i18n-page.component.ts

@ -11,8 +11,6 @@ import { Subject } from 'rxjs';
export class GfI18nPageComponent { export class GfI18nPageComponent {
private unsubscribeSubject = new Subject<void>(); private unsubscribeSubject = new Subject<void>();
public ngOnDestroy() { public ngOnDestroy() {
this.unsubscribeSubject.next(); this.unsubscribeSubject.next();
this.unsubscribeSubject.complete(); this.unsubscribeSubject.complete();

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

@ -7,11 +7,9 @@ import { Subject } from 'rxjs';
styleUrls: ['./markets-page.scss'], styleUrls: ['./markets-page.scss'],
templateUrl: './markets-page.html' templateUrl: './markets-page.html'
}) })
export class MarketsPageComponent implements OnDestroy{ export class MarketsPageComponent implements OnDestroy {
private unsubscribeSubject = new Subject<void>(); private unsubscribeSubject = new Subject<void>();
public ngOnDestroy() { public ngOnDestroy() {
this.unsubscribeSubject.next(); this.unsubscribeSubject.next();
this.unsubscribeSubject.complete(); this.unsubscribeSubject.complete();

1
apps/client/src/app/pages/register/show-access-token-dialog/show-access-token-dialog.component.ts

@ -12,7 +12,6 @@ export class ShowAccessTokenDialog {
public constructor(@Inject(MAT_DIALOG_DATA) public data: any) {} public constructor(@Inject(MAT_DIALOG_DATA) public data: any) {}
public enableAgreeButton() { public enableAgreeButton() {
this.isAgreeButtonDisabled = false; this.isAgreeButtonDisabled = false;
} }

Loading…
Cancel
Save