mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
fix: lint errors
This commit is contained in:
parent
5d392c1722
commit
a1fed413e6
2 changed files with 3 additions and 9 deletions
|
|
@ -3,13 +3,11 @@ import {ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot} from '
|
||||||
import {Observable} from 'rxjs';
|
import {Observable} from 'rxjs';
|
||||||
import {map} from 'rxjs/operators';
|
import {map} from 'rxjs/operators';
|
||||||
import {CurrentThemeService} from '../utils/theme.service';
|
import {CurrentThemeService} from '../utils/theme.service';
|
||||||
import {NbDateService} from '@nebular/theme';
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ThemeGuard implements CanActivate {
|
export class ThemeGuard implements CanActivate {
|
||||||
constructor(private router: Router,
|
constructor(private router: Router,
|
||||||
private currentThemeService: CurrentThemeService,
|
private currentThemeService: CurrentThemeService) {}
|
||||||
private dateService: NbDateService<number>) {}
|
|
||||||
|
|
||||||
canActivate(
|
canActivate(
|
||||||
route: ActivatedRouteSnapshot,
|
route: ActivatedRouteSnapshot,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import {Component, enableProdMode, OnDestroy} from '@angular/core';
|
import {Component, OnDestroy} from '@angular/core';
|
||||||
import {NbMediaBreakpoint, NbThemeService} from '@nebular/theme';
|
import {NbMediaBreakpoint, NbThemeService} from '@nebular/theme';
|
||||||
import {ActivatedRoute, Router} from '@angular/router';
|
import {Router} from '@angular/router';
|
||||||
import {AnalyticsService} from '../@core/utils';
|
import {AnalyticsService} from '../@core/utils';
|
||||||
import { environment } from '../../environments/environment';
|
import { environment } from '../../environments/environment';
|
||||||
|
|
||||||
|
|
@ -13,8 +13,6 @@ export class NgxStarterComponent implements OnDestroy {
|
||||||
breakpoint: NbMediaBreakpoint;
|
breakpoint: NbMediaBreakpoint;
|
||||||
breakpoints: any;
|
breakpoints: any;
|
||||||
|
|
||||||
private alive = true;
|
|
||||||
|
|
||||||
themes = [
|
themes = [
|
||||||
{
|
{
|
||||||
value: 'material-light',
|
value: 'material-light',
|
||||||
|
|
@ -43,7 +41,6 @@ export class NgxStarterComponent implements OnDestroy {
|
||||||
];
|
];
|
||||||
|
|
||||||
constructor(private router: Router,
|
constructor(private router: Router,
|
||||||
private route: ActivatedRoute,
|
|
||||||
protected themeService: NbThemeService,
|
protected themeService: NbThemeService,
|
||||||
private analytics: AnalyticsService,
|
private analytics: AnalyticsService,
|
||||||
) {}
|
) {}
|
||||||
|
|
@ -65,7 +62,6 @@ export class NgxStarterComponent implements OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
this.alive = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
calculateExpiration(iat: number): number {
|
calculateExpiration(iat: number): number {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue