diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-23 11:15:00 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-23 11:27:09 +0200 |
commit | 52798aa5f277492d4dd2482bca9396d2e982fa19 (patch) | |
tree | c3b8057acf3860aacc92743b9d92214ad0364fcb /client/src/app/shared | |
parent | f89189907bbdff6c4bc6d3460ed9ef4c49515f17 (diff) | |
download | PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.tar.gz PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.tar.zst PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.zip |
Update angular
Diffstat (limited to 'client/src/app/shared')
3 files changed, 5 insertions, 5 deletions
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 @@ | |||
1 | import { firstValueFrom } from 'rxjs' | 1 | import { firstValueFrom } from 'rxjs' |
2 | import { ComponentRef, Injectable } from '@angular/core' | 2 | import { ComponentRef, Injectable } from '@angular/core' |
3 | import { MarkdownService } from '@app/core' | 3 | import { MarkdownService } from '@app/core' |
4 | import { logger } from '@root-helpers/logger' | ||
4 | import { | 5 | import { |
5 | ButtonMarkupData, | 6 | ButtonMarkupData, |
6 | ChannelMiniatureMarkupData, | 7 | ChannelMiniatureMarkupData, |
@@ -20,7 +21,6 @@ import { | |||
20 | VideosListMarkupComponent | 21 | VideosListMarkupComponent |
21 | } from './peertube-custom-tags' | 22 | } from './peertube-custom-tags' |
22 | import { CustomMarkupComponent } from './peertube-custom-tags/shared' | 23 | import { CustomMarkupComponent } from './peertube-custom-tags/shared' |
23 | import { logger } from '@root-helpers/logger' | ||
24 | 24 | ||
25 | type AngularBuilderFunction = (el: HTMLElement) => ComponentRef<CustomMarkupComponent> | 25 | type AngularBuilderFunction = (el: HTMLElement) => ComponentRef<CustomMarkupComponent> |
26 | type HTMLBuilderFunction = (el: HTMLElement) => HTMLElement | 26 | 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 @@ | |||
1 | import { forkJoin, of } from 'rxjs' | 1 | import { forkJoin, of } from 'rxjs' |
2 | import { catchError, map } from 'rxjs/operators' | 2 | import { catchError, map } from 'rxjs/operators' |
3 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
4 | import { ActivatedRouteSnapshot, CanActivate, Router } from '@angular/router' | 4 | import { ActivatedRouteSnapshot, Router } from '@angular/router' |
5 | import { AccountService } from '../account' | 5 | import { AccountService } from '../account' |
6 | import { VideoChannelService } from '../video-channel' | 6 | import { VideoChannelService } from '../video-channel' |
7 | 7 | ||
8 | @Injectable() | 8 | @Injectable() |
9 | export class ActorRedirectGuard implements CanActivate { | 9 | export class ActorRedirectGuard { |
10 | 10 | ||
11 | constructor ( | 11 | constructor ( |
12 | private router: Router, | 12 | 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 @@ | |||
1 | import { Injectable } from '@angular/core' | 1 | import { Injectable } from '@angular/core' |
2 | import { ActivatedRouteSnapshot, Resolve } from '@angular/router' | 2 | import { ActivatedRouteSnapshot } from '@angular/router' |
3 | import { VideoService } from './video.service' | 3 | import { VideoService } from './video.service' |
4 | 4 | ||
5 | @Injectable() | 5 | @Injectable() |
6 | export class VideoResolver implements Resolve<any> { | 6 | export class VideoResolver { |
7 | constructor ( | 7 | constructor ( |
8 | private videoService: VideoService | 8 | private videoService: VideoService |
9 | ) { | 9 | ) { |