diff options
5 files changed, 2 insertions, 36 deletions
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' | |||
3 | import 'rxjs/add/operator/catch' | 3 | import 'rxjs/add/operator/catch' |
4 | import 'rxjs/add/operator/map' | 4 | import 'rxjs/add/operator/map' |
5 | 5 | ||
6 | import { RestExtractor, } from '../../../shared' | 6 | import { RestExtractor } from '../../../shared' |
7 | import { Pod, ResultList } from '../../../../../../shared' | 7 | import { Pod, ResultList } from '../../../../../../shared' |
8 | 8 | ||
9 | @Injectable() | 9 | @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' | |||
13 | export class VideoAbuseListComponent extends RestTable implements OnInit { | 13 | export class VideoAbuseListComponent extends RestTable implements OnInit { |
14 | videoAbuses: VideoAbuse[] = [] | 14 | videoAbuses: VideoAbuse[] = [] |
15 | totalRecords = 0 | 15 | totalRecords = 0 |
16 | rowsPerPage = 1 | 16 | rowsPerPage = 10 |
17 | sort: SortMeta = { field: 'id', order: 1 } | 17 | sort: SortMeta = { field: 'id', order: 1 } |
18 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } | 18 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } |
19 | 19 | ||
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 @@ | |||
1 | export * from './rest-data-source' | ||
2 | export * from './rest-extractor.service' | 1 | export * from './rest-extractor.service' |
3 | export * from './rest-pagination' | 2 | export * from './rest-pagination' |
4 | export * from './rest.service' | 3 | 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 @@ | |||
1 | export class RestDataSource { | ||
2 | // protected addSortRequestOptions (requestOptions: RequestOptionsArgs) { | ||
3 | // const searchParams = requestOptions.params as URLSearchParams | ||
4 | // | ||
5 | // if (this.sortConf) { | ||
6 | // this.sortConf.forEach((fieldConf) => { | ||
7 | // const sortPrefix = fieldConf.direction === 'desc' ? '-' : '' | ||
8 | // | ||
9 | // searchParams.set(this.conf.sortFieldKey, sortPrefix + fieldConf.field) | ||
10 | // }) | ||
11 | // } | ||
12 | // | ||
13 | // return requestOptions | ||
14 | // } | ||
15 | // | ||
16 | // protected addPagerRequestOptions (requestOptions: RequestOptionsArgs) { | ||
17 | // const searchParams = requestOptions.params as URLSearchParams | ||
18 | // | ||
19 | // if (this.pagingConf && this.pagingConf['page'] && this.pagingConf['perPage']) { | ||
20 | // const perPage = this.pagingConf['perPage'] | ||
21 | // const page = this.pagingConf['page'] | ||
22 | // | ||
23 | // const start = (page - 1) * perPage | ||
24 | // const count = perPage | ||
25 | // | ||
26 | // searchParams.set('start', start.toString()) | ||
27 | // searchParams.set('count', count.toString()) | ||
28 | // } | ||
29 | // | ||
30 | // return requestOptions | ||
31 | // } | ||
32 | } | ||
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 { | |||
13 | } from '../shared' | 13 | } from '../shared' |
14 | import { AuthService, AuthUser } from '../../core' | 14 | import { AuthService, AuthUser } from '../../core' |
15 | import { Search, SearchField, SearchService } from '../../shared' | 15 | import { Search, SearchField, SearchService } from '../../shared' |
16 | import { } from '../../shared' | ||
17 | 16 | ||
18 | @Component({ | 17 | @Component({ |
19 | selector: 'my-videos-list', | 18 | selector: 'my-videos-list', |