Skip to content

Commit d69c6d8

Browse files
committed
refactor(app.window): remove redundant import and adjust import order; refactor(camera.effects): use inject for Actions and Store
1 parent 59e0e70 commit d69c6d8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

libs/electron/window/src/lib/concretes/app.window.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { bootstrapDatabase } from '@ever-co/electron-database';
2+
import { AppWindowId } from '@ever-co/shared-utils';
23
import { Event, shell } from 'electron';
34
import { IWindowConfig } from '../shared/interfaces/window-config.interface';
45
import { Window } from '../shared/models/window.model';
56
import { WindowManager } from './window.manager';
6-
import { AppWindowId } from '@ever-co/shared-utils';
7-
import { isDevMode } from '@angular/core';
87

98
export class AppWindow extends Window {
109
private readonly manager = WindowManager.getInstance();

libs/web/webcam/data-access/src/lib/state+/camera/camera.effects.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Injectable } from '@angular/core';
1+
import { inject, Injectable } from '@angular/core';
22
import { LocalStorageService } from '@ever-co/shared-service';
33
import { Actions, createEffect, ofType } from '@ngrx/effects';
44
import { Action, Store } from '@ngrx/store';
@@ -22,6 +22,8 @@ import { AudioService } from '../../service/audio.service';
2222
@Injectable()
2323
export class CameraEffects {
2424
private readonly cameraKey = '_camera';
25+
private readonly actions$ = inject(Actions);
26+
private readonly store = inject(Store);
2527

2628
public loadCameras$ = createEffect(() =>
2729
this.actions$.pipe(
@@ -255,8 +257,6 @@ export class CameraEffects {
255257
}
256258

257259
constructor(
258-
private actions$: Actions,
259-
private store: Store,
260260
private readonly localStorageService: LocalStorageService,
261261
private readonly cameraService: CameraService,
262262
private readonly audioService: AudioService,

0 commit comments

Comments
 (0)