Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Task/rename deviceService to deviceDetectorService for consistency (#6810)
Thomas Kaul1f78ba5bbb94
diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.tsindex dbe616dac5..0a9be3a75e 100644--- a/apps/client/src/app/app.component.ts+++ b/apps/client/src/app/app.component.ts@@ -67,7 +67,7 @@ export class GfAppComponent implements OnInit {private readonly changeDetectorRef = inject(ChangeDetectorRef);private readonly dataService = inject(DataService);private readonly destroyRef = inject(DestroyRef);- private readonly deviceService = inject(DeviceDetectorService);+ private readonly deviceDetectorService = inject(DeviceDetectorService);private readonly dialog = inject(MatDialog);private readonly document = inject(DOCUMENT);private readonly impersonationStorageService = inject(@@ -104,7 +104,7 @@ export class GfAppComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.info = this.dataService.fetchInfo();this.impersonationStorageServicediff --git a/apps/client/src/app/components/admin-market-data/admin-market-data.component.ts b/apps/client/src/app/components/admin-market-data/admin-market-data.component.tsindex fd96c94fcf..0abe9ea0f0 100644--- a/apps/client/src/app/components/admin-market-data/admin-market-data.component.ts+++ b/apps/client/src/app/components/admin-market-data/admin-market-data.component.ts@@ -171,7 +171,7 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog,private route: ActivatedRoute,private router: Router,@@ -272,7 +272,7 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit {const { benchmarks } = this.dataService.fetchInfo();this.benchmarks = benchmarks;- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.selection = new SelectionModel(true);}diff --git a/apps/client/src/app/components/admin-platform/admin-platform.component.ts b/apps/client/src/app/components/admin-platform/admin-platform.component.tsindex b8f2af7896..1c117b9831 100644--- a/apps/client/src/app/components/admin-platform/admin-platform.component.ts+++ b/apps/client/src/app/components/admin-platform/admin-platform.component.ts@@ -68,7 +68,7 @@ export class GfAdminPlatformComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog,private notificationService: NotificationService,private route: ActivatedRoute,@@ -97,7 +97,7 @@ export class GfAdminPlatformComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.fetchPlatforms();}diff --git a/apps/client/src/app/components/admin-tag/admin-tag.component.ts b/apps/client/src/app/components/admin-tag/admin-tag.component.tsindex 506736156e..56544f7842 100644--- a/apps/client/src/app/components/admin-tag/admin-tag.component.ts+++ b/apps/client/src/app/components/admin-tag/admin-tag.component.ts@@ -65,7 +65,7 @@ export class GfAdminTagComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog,private notificationService: NotificationService,private route: ActivatedRoute,@@ -94,7 +94,7 @@ export class GfAdminTagComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.fetchTags();}diff --git a/apps/client/src/app/components/admin-users/admin-users.component.ts b/apps/client/src/app/components/admin-users/admin-users.component.tsindex 874bbc1db5..fa9d58956e 100644--- a/apps/client/src/app/components/admin-users/admin-users.component.ts+++ b/apps/client/src/app/components/admin-users/admin-users.component.ts@@ -98,7 +98,7 @@ export class GfAdminUsersComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog,private impersonationStorageService: ImpersonationStorageService,private notificationService: NotificationService,@@ -106,7 +106,7 @@ export class GfAdminUsersComponent implements OnInit {private router: Router,private userService: UserService) {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.info = this.dataService.fetchInfo();this.hasPermissionForSubscription = hasPermission(diff --git a/apps/client/src/app/components/home-holdings/home-holdings.component.ts b/apps/client/src/app/components/home-holdings/home-holdings.component.tsindex 19a48ccd80..61a8935ebc 100644--- a/apps/client/src/app/components/home-holdings/home-holdings.component.ts+++ b/apps/client/src/app/components/home-holdings/home-holdings.component.ts@@ -74,7 +74,7 @@ export class GfHomeHoldingsComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private impersonationStorageService: ImpersonationStorageService,private router: Router,private userService: UserService@@ -83,7 +83,7 @@ export class GfHomeHoldingsComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.impersonationStorageService.onChangeHasImpersonation()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 2ddb89408b..cb645f2ef6 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@@ -50,10 +50,10 @@ export class GfHomeMarketComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private userService: UserService) {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.info = this.dataService.fetchInfo();this.userService.stateChangeddiff --git a/apps/client/src/app/components/home-overview/home-overview.component.ts b/apps/client/src/app/components/home-overview/home-overview.component.tsindex 58284d27de..e134ad6b11 100644--- a/apps/client/src/app/components/home-overview/home-overview.component.ts+++ b/apps/client/src/app/components/home-overview/home-overview.component.ts@@ -65,7 +65,7 @@ export class GfHomeOverviewComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private impersonationStorageService: ImpersonationStorageService,private layoutService: LayoutService,private userService: UserService@@ -87,7 +87,7 @@ export class GfHomeOverviewComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.showDetails =!this.user.settings.isRestrictedView &&diff --git a/apps/client/src/app/components/home-summary/home-summary.component.ts b/apps/client/src/app/components/home-summary/home-summary.component.tsindex 719cfbd29a..60960480d4 100644--- a/apps/client/src/app/components/home-summary/home-summary.component.ts+++ b/apps/client/src/app/components/home-summary/home-summary.component.ts@@ -43,7 +43,7 @@ export class GfHomeSummaryComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private impersonationStorageService: ImpersonationStorageService,private userService: UserService) {@@ -71,7 +71,7 @@ export class GfHomeSummaryComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.impersonationStorageService.onChangeHasImpersonation()diff --git a/apps/client/src/app/components/markets/markets.component.ts b/apps/client/src/app/components/markets/markets.component.tsindex 4214ee9891..d2f64f3fce 100644--- a/apps/client/src/app/components/markets/markets.component.ts+++ b/apps/client/src/app/components/markets/markets.component.ts@@ -58,10 +58,10 @@ export class GfMarketsComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private userService: UserService) {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.userService.stateChanged.pipe(takeUntilDestroyed(this.destroyRef))diff --git a/apps/client/src/app/components/rule/rule.component.ts b/apps/client/src/app/components/rule/rule.component.tsindex 23f870ff32..6dcbaf1ffa 100644--- a/apps/client/src/app/components/rule/rule.component.ts+++ b/apps/client/src/app/components/rule/rule.component.ts@@ -61,7 +61,7 @@ export class GfRuleComponent implements OnInit {private deviceType: string;public constructor(private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog) {addIcons({@@ -75,7 +75,7 @@ export class GfRuleComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;}public onCustomizeRule(rule: PortfolioReportRule) {diff --git a/apps/client/src/app/components/user-account-access/user-account-access.component.ts b/apps/client/src/app/components/user-account-access/user-account-access.component.tsindex f8620c745d..e6686e80fc 100644--- a/apps/client/src/app/components/user-account-access/user-account-access.component.ts+++ b/apps/client/src/app/components/user-account-access/user-account-access.component.ts@@ -69,7 +69,7 @@ export class GfUserAccountAccessComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog,private formBuilder: FormBuilder,private notificationService: NotificationService,@@ -123,7 +123,7 @@ export class GfUserAccountAccessComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.update();}diff --git a/apps/client/src/app/core/layout.service.ts b/apps/client/src/app/core/layout.service.tsindex fd435acdbe..2624c4dd6a 100644--- a/apps/client/src/app/core/layout.service.ts+++ b/apps/client/src/app/core/layout.service.ts@@ -16,12 +16,12 @@ export class LayoutService {private shouldReloadSubject = new Subject<void>();public constructor(- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private notificationService: NotificationService) {this.shouldReloadContent$ = this.shouldReloadSubject.asObservable();- const deviceType = this.deviceService.getDeviceInfo().deviceType;+ const deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.notificationService.setDialogWidth(deviceType === 'mobile'diff --git a/apps/client/src/app/pages/about/about-page.component.ts b/apps/client/src/app/pages/about/about-page.component.tsindex 1e749d1cd9..b23377f3c6 100644--- a/apps/client/src/app/pages/about/about-page.component.ts+++ b/apps/client/src/app/pages/about/about-page.component.ts@@ -44,7 +44,7 @@ export class AboutPageComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private userService: UserService) {const { globalPermissions } = this.dataService.fetchInfo();@@ -114,6 +114,6 @@ export class AboutPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;}}diff --git a/apps/client/src/app/pages/accounts/accounts-page.component.ts b/apps/client/src/app/pages/accounts/accounts-page.component.tsindex fdc78a8c40..08513ef3e7 100644--- a/apps/client/src/app/pages/accounts/accounts-page.component.ts+++ b/apps/client/src/app/pages/accounts/accounts-page.component.ts@@ -58,7 +58,7 @@ export class GfAccountsPageComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog,private impersonationStorageService: ImpersonationStorageService,private notificationService: NotificationService,@@ -95,7 +95,7 @@ export class GfAccountsPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.impersonationStorageService.onChangeHasImpersonation()diff --git a/apps/client/src/app/pages/admin/admin-page.component.ts b/apps/client/src/app/pages/admin/admin-page.component.tsindex 66312ef33f..8ec0949150 100644--- a/apps/client/src/app/pages/admin/admin-page.component.ts+++ b/apps/client/src/app/pages/admin/admin-page.component.ts@@ -26,7 +26,7 @@ export class AdminPageComponent implements OnInit {public deviceType: string;public tabs: TabConfiguration[] = [];- public constructor(private deviceService: DeviceDetectorService) {+ public constructor(private deviceDetectorService: DeviceDetectorService) {addIcons({flashOutline,peopleOutline,@@ -37,7 +37,7 @@ export class AdminPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.tabs = [{diff --git a/apps/client/src/app/pages/faq/faq-page.component.ts b/apps/client/src/app/pages/faq/faq-page.component.tsindex 83171254a9..8ae074bee8 100644--- a/apps/client/src/app/pages/faq/faq-page.component.ts+++ b/apps/client/src/app/pages/faq/faq-page.component.ts@@ -26,7 +26,7 @@ export class GfFaqPageComponent implements OnInit {public constructor(private dataService: DataService,- private deviceService: DeviceDetectorService+ private deviceDetectorService: DeviceDetectorService) {const { globalPermissions } = this.dataService.fetchInfo();@@ -58,6 +58,6 @@ export class GfFaqPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;}}diff --git a/apps/client/src/app/pages/home/home-page.component.ts b/apps/client/src/app/pages/home/home-page.component.tsindex 5130c81667..9584283319 100644--- a/apps/client/src/app/pages/home/home-page.component.ts+++ b/apps/client/src/app/pages/home/home-page.component.ts@@ -42,7 +42,7 @@ export class GfHomePageComponent implements OnInit {public constructor(private changeDetectorRef: ChangeDetectorRef,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private impersonationStorageService: ImpersonationStorageService,private userService: UserService) {@@ -104,7 +104,7 @@ export class GfHomePageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.impersonationStorageService.onChangeHasImpersonation()diff --git a/apps/client/src/app/pages/landing/landing-page.component.ts b/apps/client/src/app/pages/landing/landing-page.component.tsindex 9ee9cceb49..2255881c3c 100644--- a/apps/client/src/app/pages/landing/landing-page.component.ts+++ b/apps/client/src/app/pages/landing/landing-page.component.ts@@ -108,7 +108,7 @@ export class GfLandingPageComponent implements OnInit {public constructor(private dataService: DataService,- private deviceService: DeviceDetectorService+ private deviceDetectorService: DeviceDetectorService) {const {countriesOfSubscribers = [],@@ -150,6 +150,6 @@ export class GfLandingPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;}}diff --git a/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts b/apps/client/src/app/pages/portfolio/activities/activities-page.component.tsindex acd6cba10e..e43af52c95 100644--- a/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts+++ b/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts@@ -72,7 +72,7 @@ export class GfActivitiesPageComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog,private icsService: IcsService,private impersonationStorageService: ImpersonationStorageService,@@ -112,7 +112,7 @@ export class GfActivitiesPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.impersonationStorageService.onChangeHasImpersonation()diff --git a/apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts b/apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.tsindex 00f0508fe3..10df36857d 100644--- a/apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts+++ b/apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts@@ -109,7 +109,7 @@ export class GfImportActivitiesDialogComponent {@Inject(MAT_DIALOG_DATA) public data: ImportActivitiesDialogParams,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private formBuilder: FormBuilder,public dialogRef: MatDialogRef<GfImportActivitiesDialogComponent>,private importActivitiesService: ImportActivitiesService,@@ -119,7 +119,7 @@ export class GfImportActivitiesDialogComponent {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.stepperOrientation =this.deviceType === 'mobile' ? 'vertical' : 'horizontal';diff --git a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.tsindex b0282c937e..ebfd336d3b 100644--- a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts+++ b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts@@ -127,7 +127,7 @@ export class GfAllocationsPageComponent implements OnInit {private changeDetectorRef: ChangeDetectorRef,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog,private impersonationStorageService: ImpersonationStorageService,private route: ActivatedRoute,@@ -144,7 +144,7 @@ export class GfAllocationsPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.impersonationStorageService.onChangeHasImpersonation()diff --git a/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts b/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.tsindex 47845ea6f8..03fd0767ae 100644--- a/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts+++ b/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts@@ -106,7 +106,7 @@ export class GfAnalysisPageComponent implements OnInit {private clipboard: Clipboard,private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private impersonationStorageService: ImpersonationStorageService,private snackBar: MatSnackBar,private userService: UserService@@ -129,7 +129,7 @@ export class GfAnalysisPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.impersonationStorageService.onChangeHasImpersonation()diff --git a/apps/client/src/app/pages/portfolio/portfolio-page.component.ts b/apps/client/src/app/pages/portfolio/portfolio-page.component.tsindex eb4935127a..dca39c4a68 100644--- a/apps/client/src/app/pages/portfolio/portfolio-page.component.ts+++ b/apps/client/src/app/pages/portfolio/portfolio-page.component.ts@@ -36,7 +36,7 @@ export class PortfolioPageComponent implements OnInit {public constructor(private changeDetectorRef: ChangeDetectorRef,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private userService: UserService) {this.userService.stateChanged@@ -88,6 +88,6 @@ export class PortfolioPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;}}diff --git a/apps/client/src/app/pages/register/register-page.component.ts b/apps/client/src/app/pages/register/register-page.component.tsindex db199143ff..ecc83d8f32 100644--- a/apps/client/src/app/pages/register/register-page.component.ts+++ b/apps/client/src/app/pages/register/register-page.component.ts@@ -40,7 +40,7 @@ export class GfRegisterPageComponent implements OnInit {public constructor(private dataService: DataService,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog,private router: Router,private tokenStorageService: TokenStorageService,@@ -54,7 +54,7 @@ export class GfRegisterPageComponent implements OnInit {public ngOnInit() {const { globalPermissions } = this.dataService.fetchInfo();- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;this.hasPermissionForAuthGoogle = hasPermission(globalPermissions,diff --git a/apps/client/src/app/pages/resources/resources-page.component.ts b/apps/client/src/app/pages/resources/resources-page.component.tsindex c25ef00d60..016f92fa84 100644--- a/apps/client/src/app/pages/resources/resources-page.component.ts+++ b/apps/client/src/app/pages/resources/resources-page.component.ts@@ -46,11 +46,11 @@ export class ResourcesPageComponent implements OnInit {}];- public constructor(private deviceService: DeviceDetectorService) {+ public constructor(private deviceDetectorService: DeviceDetectorService) {addIcons({ bookOutline, libraryOutline, newspaperOutline, readerOutline });}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;}}diff --git a/apps/client/src/app/pages/user-account/user-account-page.component.ts b/apps/client/src/app/pages/user-account/user-account-page.component.tsindex 24c1504083..7d5af54236 100644--- a/apps/client/src/app/pages/user-account/user-account-page.component.ts+++ b/apps/client/src/app/pages/user-account/user-account-page.component.ts@@ -33,7 +33,7 @@ export class GfUserAccountPageComponent implements OnInit {public constructor(private changeDetectorRef: ChangeDetectorRef,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private userService: UserService) {this.userService.stateChanged@@ -70,6 +70,6 @@ export class GfUserAccountPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;}}diff --git a/apps/client/src/app/pages/zen/zen-page.component.ts b/apps/client/src/app/pages/zen/zen-page.component.tsindex 633f158852..b3c14b4e08 100644--- a/apps/client/src/app/pages/zen/zen-page.component.ts+++ b/apps/client/src/app/pages/zen/zen-page.component.ts@@ -31,7 +31,7 @@ export class GfZenPageComponent implements OnInit {public constructor(private changeDetectorRef: ChangeDetectorRef,private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private userService: UserService) {this.userService.stateChanged@@ -60,6 +60,6 @@ export class GfZenPageComponent implements OnInit {}public ngOnInit() {- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;}}diff --git a/apps/client/src/app/services/user/user.service.ts b/apps/client/src/app/services/user/user.service.tsindex e92eb6bd4b..caeea775ee 100644--- a/apps/client/src/app/services/user/user.service.ts+++ b/apps/client/src/app/services/user/user.service.ts@@ -26,7 +26,7 @@ export class UserService extends ObservableStore<UserStoreState> {public constructor(private destroyRef: DestroyRef,- private deviceService: DeviceDetectorService,+ private deviceDetectorService: DeviceDetectorService,private dialog: MatDialog,private http: HttpClient,private webAuthnService: WebAuthnService@@ -35,7 +35,7 @@ export class UserService extends ObservableStore<UserStoreState> {this.setState({ user: undefined }, UserStoreActions.Initialize);- this.deviceType = this.deviceService.getDeviceInfo().deviceType;+ this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;}public get(force = false) {