diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:10:17 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 67ed6552b831df66713bac9e672738796128d33f (patch) | |
tree | 59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/videos/+video-watch/comment/video-comment.service.ts | |
parent | 0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff) | |
download | PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip |
Reorganize client shared modules
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comment.service.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment.service.ts | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment.service.ts b/client/src/app/videos/+video-watch/comment/video-comment.service.ts index 0b0715390..a73fb9ca8 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment.service.ts +++ b/client/src/app/videos/+video-watch/comment/video-comment.service.ts | |||
@@ -1,20 +1,19 @@ | |||
1 | import { Observable } from 'rxjs' | ||
1 | import { catchError, map } from 'rxjs/operators' | 2 | import { catchError, map } from 'rxjs/operators' |
2 | import { HttpClient, HttpParams } from '@angular/common/http' | 3 | import { HttpClient, HttpParams } from '@angular/common/http' |
3 | import { Injectable } from '@angular/core' | 4 | import { Injectable } from '@angular/core' |
4 | import { objectLineFeedToHtml } from '@app/shared/misc/utils' | 5 | import { ComponentPaginationLight, RestExtractor, RestService } from '@app/core' |
5 | import { Observable } from 'rxjs' | 6 | import { objectLineFeedToHtml } from '@app/helpers' |
6 | import { FeedFormat, ResultList } from '../../../../../../shared/models' | ||
7 | import { | 7 | import { |
8 | FeedFormat, | ||
9 | ResultList, | ||
8 | VideoComment as VideoCommentServerModel, | 10 | VideoComment as VideoCommentServerModel, |
9 | VideoCommentCreate, | 11 | VideoCommentCreate, |
10 | VideoCommentThreadTree as VideoCommentThreadTreeServerModel | 12 | VideoCommentThreadTree as VideoCommentThreadTreeServerModel |
11 | } from '../../../../../../shared/models/videos/video-comment.model' | 13 | } from '@shared/models' |
12 | import { environment } from '../../../../environments/environment' | 14 | import { environment } from '../../../../environments/environment' |
13 | import { RestExtractor, RestService } from '../../../shared/rest' | 15 | import { VideoCommentThreadTree } from './video-comment-thread-tree.model' |
14 | import { ComponentPaginationLight } from '../../../shared/rest/component-pagination.model' | ||
15 | import { CommentSortField } from '../../../shared/video/sort-field.type' | ||
16 | import { VideoComment } from './video-comment.model' | 16 | import { VideoComment } from './video-comment.model' |
17 | import { VideoCommentThreadTree } from '@app/videos/+video-watch/comment/video-comment-thread-tree.model' | ||
18 | 17 | ||
19 | @Injectable() | 18 | @Injectable() |
20 | export class VideoCommentService { | 19 | export class VideoCommentService { |
@@ -52,7 +51,7 @@ export class VideoCommentService { | |||
52 | getVideoCommentThreads (parameters: { | 51 | getVideoCommentThreads (parameters: { |
53 | videoId: number | string, | 52 | videoId: number | string, |
54 | componentPagination: ComponentPaginationLight, | 53 | componentPagination: ComponentPaginationLight, |
55 | sort: CommentSortField | 54 | sort: string |
56 | }): Observable<ResultList<VideoComment>> { | 55 | }): Observable<ResultList<VideoComment>> { |
57 | const { videoId, componentPagination, sort } = parameters | 56 | const { videoId, componentPagination, sort } = parameters |
58 | 57 | ||