Browse Source

feat(client): implement readonly

pull/6746/head
KenTandrian 4 days ago
parent
commit
7278a0b369
  1. 6
      apps/client/src/app/pages/public/public-page.component.ts

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

@ -61,7 +61,7 @@ export class GfPublicPageComponent implements OnInit {
protected countries: { protected countries: {
[code: string]: { name: string; value: number }; [code: string]: { name: string; value: number };
}; };
protected defaultAlias = $localize`someone`; protected readonly defaultAlias = $localize`someone`;
protected readonly deviceType = computed( protected readonly deviceType = computed(
() => this.deviceDetectorService.deviceInfo().deviceType () => this.deviceDetectorService.deviceInfo().deviceType
); );
@ -74,7 +74,7 @@ export class GfPublicPageComponent implements OnInit {
protected markets: { protected markets: {
[key in Market]: { id: Market; valueInPercentage: number }; [key in Market]: { id: Market; valueInPercentage: number };
}; };
protected pageSize = Number.MAX_SAFE_INTEGER; protected readonly pageSize = Number.MAX_SAFE_INTEGER;
protected positions: { protected positions: {
[symbol: string]: Pick<PortfolioPosition, 'currency' | 'name'> & { [symbol: string]: Pick<PortfolioPosition, 'currency' | 'name'> & {
value: number; value: number;
@ -87,7 +87,7 @@ export class GfPublicPageComponent implements OnInit {
protected symbols: { protected symbols: {
[name: string]: { name: string; symbol: string; value: number }; [name: string]: { name: string; symbol: string; value: number };
}; };
protected UNKNOWN_KEY = UNKNOWN_KEY; protected readonly UNKNOWN_KEY = UNKNOWN_KEY;
private readonly activatedRoute = inject(ActivatedRoute); private readonly activatedRoute = inject(ActivatedRoute);
private readonly changeDetectorRef = inject(ChangeDetectorRef); private readonly changeDetectorRef = inject(ChangeDetectorRef);

Loading…
Cancel
Save