From d5050d1e097e761685fbaafe6e3d4b8b78d48356 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Sep 2017 12:09:06 +0200 Subject: Fix lint --- .../app/+admin/friends/shared/friend.service.ts | 2 +- .../video-abuse-list/video-abuse-list.component.ts | 2 +- client/src/app/shared/rest/index.ts | 1 - client/src/app/shared/rest/rest-data-source.ts | 32 ---------------------- .../app/videos/video-list/video-list.component.ts | 1 - 5 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 client/src/app/shared/rest/rest-data-source.ts (limited to 'client/src') diff --git a/client/src/app/+admin/friends/shared/friend.service.ts b/client/src/app/+admin/friends/shared/friend.service.ts index 45607e28d..274373e3b 100644 --- a/client/src/app/+admin/friends/shared/friend.service.ts +++ b/client/src/app/+admin/friends/shared/friend.service.ts @@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http' import 'rxjs/add/operator/catch' import 'rxjs/add/operator/map' -import { RestExtractor, } from '../../../shared' +import { RestExtractor } from '../../../shared' import { Pod, ResultList } from '../../../../../../shared' @Injectable() diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts index cc9c1bdf4..5a0131a81 100644 --- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts +++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts @@ -13,7 +13,7 @@ import { VideoAbuse } from '../../../../../../shared' export class VideoAbuseListComponent extends RestTable implements OnInit { videoAbuses: VideoAbuse[] = [] totalRecords = 0 - rowsPerPage = 1 + rowsPerPage = 10 sort: SortMeta = { field: 'id', order: 1 } pagination: RestPagination = { count: this.rowsPerPage, start: 0 } diff --git a/client/src/app/shared/rest/index.ts b/client/src/app/shared/rest/index.ts index 3f1996130..f00cda2b8 100644 --- a/client/src/app/shared/rest/index.ts +++ b/client/src/app/shared/rest/index.ts @@ -1,4 +1,3 @@ -export * from './rest-data-source' export * from './rest-extractor.service' export * from './rest-pagination' export * from './rest.service' diff --git a/client/src/app/shared/rest/rest-data-source.ts b/client/src/app/shared/rest/rest-data-source.ts deleted file mode 100644 index 57a2efb57..000000000 --- a/client/src/app/shared/rest/rest-data-source.ts +++ /dev/null @@ -1,32 +0,0 @@ -export class RestDataSource { - // protected addSortRequestOptions (requestOptions: RequestOptionsArgs) { - // const searchParams = requestOptions.params as URLSearchParams - // - // if (this.sortConf) { - // this.sortConf.forEach((fieldConf) => { - // const sortPrefix = fieldConf.direction === 'desc' ? '-' : '' - // - // searchParams.set(this.conf.sortFieldKey, sortPrefix + fieldConf.field) - // }) - // } - // - // return requestOptions - // } - // - // protected addPagerRequestOptions (requestOptions: RequestOptionsArgs) { - // const searchParams = requestOptions.params as URLSearchParams - // - // if (this.pagingConf && this.pagingConf['page'] && this.pagingConf['perPage']) { - // const perPage = this.pagingConf['perPage'] - // const page = this.pagingConf['page'] - // - // const start = (page - 1) * perPage - // const count = perPage - // - // searchParams.set('start', start.toString()) - // searchParams.set('count', count.toString()) - // } - // - // return requestOptions - // } -} diff --git a/client/src/app/videos/video-list/video-list.component.ts b/client/src/app/videos/video-list/video-list.component.ts index 590632063..4714ce01e 100644 --- a/client/src/app/videos/video-list/video-list.component.ts +++ b/client/src/app/videos/video-list/video-list.component.ts @@ -13,7 +13,6 @@ import { } from '../shared' import { AuthService, AuthUser } from '../../core' import { Search, SearchField, SearchService } from '../../shared' -import { } from '../../shared' @Component({ selector: 'my-videos-list', -- cgit v1.2.3