From 9df52d660feb722404be00a50f3c8a612bec1c15 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Aug 2021 14:42:53 +0200 Subject: Migrate client to eslint --- .../app/shared/shared-video-comment/video-comment.model.ts | 8 ++++++-- .../shared/shared-video-comment/video-comment.service.ts | 14 +++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) (limited to 'client/src/app/shared/shared-video-comment') diff --git a/client/src/app/shared/shared-video-comment/video-comment.model.ts b/client/src/app/shared/shared-video-comment/video-comment.model.ts index ba0f57e8f..adab4cfbd 100644 --- a/client/src/app/shared/shared-video-comment/video-comment.model.ts +++ b/client/src/app/shared/shared-video-comment/video-comment.model.ts @@ -1,6 +1,10 @@ import { getAbsoluteAPIUrl } from '@app/helpers' -import { Account, Actor, Video } from '@app/shared/shared-main' -import { Account as AccountInterface, VideoComment as VideoCommentServerModel, VideoCommentAdmin as VideoCommentAdminServerModel } from '@shared/models' +import { Actor, Video } from '@app/shared/shared-main' +import { + Account as AccountInterface, + VideoComment as VideoCommentServerModel, + VideoCommentAdmin as VideoCommentAdminServerModel +} from '@shared/models' export class VideoComment implements VideoCommentServerModel { id: number diff --git a/client/src/app/shared/shared-video-comment/video-comment.service.ts b/client/src/app/shared/shared-video-comment/video-comment.service.ts index 4f1452116..5550c96e4 100644 --- a/client/src/app/shared/shared-video-comment/video-comment.service.ts +++ b/client/src/app/shared/shared-video-comment/video-comment.service.ts @@ -37,8 +37,8 @@ export class VideoCommentService { return this.authHttp.post<{ comment: VideoCommentServerModel }>(url, normalizedComment) .pipe( - map(data => this.extractVideoComment(data.comment)), - catchError(err => this.restExtractor.handleError(err)) + map(data => this.extractVideoComment(data.comment)), + catchError(err => this.restExtractor.handleError(err)) ) } @@ -54,8 +54,8 @@ export class VideoCommentService { } getAdminVideoComments (options: { - pagination: RestPagination, - sort: SortMeta, + pagination: RestPagination + sort: SortMeta search?: string }): Observable> { const { pagination, sort, search } = options @@ -75,8 +75,8 @@ export class VideoCommentService { } getVideoCommentThreads (parameters: { - videoId: number | string, - componentPagination: ComponentPaginationLight, + videoId: number | string + componentPagination: ComponentPaginationLight sort: string }): Observable> { const { videoId, componentPagination, sort } = parameters @@ -95,7 +95,7 @@ export class VideoCommentService { } getVideoThreadComments (parameters: { - videoId: number | string, + videoId: number | string threadId: number }): Observable { const { videoId, threadId } = parameters -- cgit v1.2.3