From 52798aa5f277492d4dd2482bca9396d2e982fa19 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 May 2023 11:15:00 +0200 Subject: Update angular --- client/src/app/shared/shared-custom-markup/custom-markup.service.ts | 2 +- .../src/app/shared/shared-main/router/actor-redirect-guard.service.ts | 4 ++-- client/src/app/shared/shared-main/video/video.resolver.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/shared-custom-markup/custom-markup.service.ts b/client/src/app/shared/shared-custom-markup/custom-markup.service.ts index 618c3dd4f..b49f64834 100644 --- a/client/src/app/shared/shared-custom-markup/custom-markup.service.ts +++ b/client/src/app/shared/shared-custom-markup/custom-markup.service.ts @@ -1,6 +1,7 @@ import { firstValueFrom } from 'rxjs' import { ComponentRef, Injectable } from '@angular/core' import { MarkdownService } from '@app/core' +import { logger } from '@root-helpers/logger' import { ButtonMarkupData, ChannelMiniatureMarkupData, @@ -20,7 +21,6 @@ import { VideosListMarkupComponent } from './peertube-custom-tags' import { CustomMarkupComponent } from './peertube-custom-tags/shared' -import { logger } from '@root-helpers/logger' type AngularBuilderFunction = (el: HTMLElement) => ComponentRef type HTMLBuilderFunction = (el: HTMLElement) => HTMLElement diff --git a/client/src/app/shared/shared-main/router/actor-redirect-guard.service.ts b/client/src/app/shared/shared-main/router/actor-redirect-guard.service.ts index ce185829c..53a48f8a1 100644 --- a/client/src/app/shared/shared-main/router/actor-redirect-guard.service.ts +++ b/client/src/app/shared/shared-main/router/actor-redirect-guard.service.ts @@ -1,12 +1,12 @@ import { forkJoin, of } from 'rxjs' import { catchError, map } from 'rxjs/operators' import { Injectable } from '@angular/core' -import { ActivatedRouteSnapshot, CanActivate, Router } from '@angular/router' +import { ActivatedRouteSnapshot, Router } from '@angular/router' import { AccountService } from '../account' import { VideoChannelService } from '../video-channel' @Injectable() -export class ActorRedirectGuard implements CanActivate { +export class ActorRedirectGuard { constructor ( private router: Router, diff --git a/client/src/app/shared/shared-main/video/video.resolver.ts b/client/src/app/shared/shared-main/video/video.resolver.ts index 65b7230ce..dc07bb5da 100644 --- a/client/src/app/shared/shared-main/video/video.resolver.ts +++ b/client/src/app/shared/shared-main/video/video.resolver.ts @@ -1,9 +1,9 @@ import { Injectable } from '@angular/core' -import { ActivatedRouteSnapshot, Resolve } from '@angular/router' +import { ActivatedRouteSnapshot } from '@angular/router' import { VideoService } from './video.service' @Injectable() -export class VideoResolver implements Resolve { +export class VideoResolver { constructor ( private videoService: VideoService ) { -- cgit v1.2.3