aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-23 11:15:00 +0200
committerChocobozzz <me@florianbigard.com>2023-05-23 11:27:09 +0200
commit52798aa5f277492d4dd2482bca9396d2e982fa19 (patch)
treec3b8057acf3860aacc92743b9d92214ad0364fcb /client/src/app/shared
parentf89189907bbdff6c4bc6d3460ed9ef4c49515f17 (diff)
downloadPeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.tar.gz
PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.tar.zst
PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.zip
Update angular
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/shared-custom-markup/custom-markup.service.ts2
-rw-r--r--client/src/app/shared/shared-main/router/actor-redirect-guard.service.ts4
-rw-r--r--client/src/app/shared/shared-main/video/video.resolver.ts4
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 @@
1import { firstValueFrom } from 'rxjs' 1import { firstValueFrom } from 'rxjs'
2import { ComponentRef, Injectable } from '@angular/core' 2import { ComponentRef, Injectable } from '@angular/core'
3import { MarkdownService } from '@app/core' 3import { MarkdownService } from '@app/core'
4import { logger } from '@root-helpers/logger'
4import { 5import {
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'
22import { CustomMarkupComponent } from './peertube-custom-tags/shared' 23import { CustomMarkupComponent } from './peertube-custom-tags/shared'
23import { logger } from '@root-helpers/logger'
24 24
25type AngularBuilderFunction = (el: HTMLElement) => ComponentRef<CustomMarkupComponent> 25type AngularBuilderFunction = (el: HTMLElement) => ComponentRef<CustomMarkupComponent>
26type HTMLBuilderFunction = (el: HTMLElement) => HTMLElement 26type 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 @@
1import { forkJoin, of } from 'rxjs' 1import { forkJoin, of } from 'rxjs'
2import { catchError, map } from 'rxjs/operators' 2import { catchError, map } from 'rxjs/operators'
3import { Injectable } from '@angular/core' 3import { Injectable } from '@angular/core'
4import { ActivatedRouteSnapshot, CanActivate, Router } from '@angular/router' 4import { ActivatedRouteSnapshot, Router } from '@angular/router'
5import { AccountService } from '../account' 5import { AccountService } from '../account'
6import { VideoChannelService } from '../video-channel' 6import { VideoChannelService } from '../video-channel'
7 7
8@Injectable() 8@Injectable()
9export class ActorRedirectGuard implements CanActivate { 9export 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 @@
1import { Injectable } from '@angular/core' 1import { Injectable } from '@angular/core'
2import { ActivatedRouteSnapshot, Resolve } from '@angular/router' 2import { ActivatedRouteSnapshot } from '@angular/router'
3import { VideoService } from './video.service' 3import { VideoService } from './video.service'
4 4
5@Injectable() 5@Injectable()
6export class VideoResolver implements Resolve<any> { 6export class VideoResolver {
7 constructor ( 7 constructor (
8 private videoService: VideoService 8 private videoService: VideoService
9 ) { 9 ) {