aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-14 12:09:06 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-14 12:09:06 +0200
commitd5050d1e097e761685fbaafe6e3d4b8b78d48356 (patch)
tree02c3183b8b84b493343a42220c708c7beb1903bf /client/src/app
parent03b40f24878e4ceef19c9a8a7539f59061f31c84 (diff)
downloadPeerTube-d5050d1e097e761685fbaafe6e3d4b8b78d48356.tar.gz
PeerTube-d5050d1e097e761685fbaafe6e3d4b8b78d48356.tar.zst
PeerTube-d5050d1e097e761685fbaafe6e3d4b8b78d48356.zip
Fix lint
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+admin/friends/shared/friend.service.ts2
-rw-r--r--client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts2
-rw-r--r--client/src/app/shared/rest/index.ts1
-rw-r--r--client/src/app/shared/rest/rest-data-source.ts32
-rw-r--r--client/src/app/videos/video-list/video-list.component.ts1
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'
3import 'rxjs/add/operator/catch' 3import 'rxjs/add/operator/catch'
4import 'rxjs/add/operator/map' 4import 'rxjs/add/operator/map'
5 5
6import { RestExtractor, } from '../../../shared' 6import { RestExtractor } from '../../../shared'
7import { Pod, ResultList } from '../../../../../../shared' 7import { 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'
13export class VideoAbuseListComponent extends RestTable implements OnInit { 13export 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 @@
1export * from './rest-data-source'
2export * from './rest-extractor.service' 1export * from './rest-extractor.service'
3export * from './rest-pagination' 2export * from './rest-pagination'
4export * from './rest.service' 3export * 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 @@
1export 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'
14import { AuthService, AuthUser } from '../../core' 14import { AuthService, AuthUser } from '../../core'
15import { Search, SearchField, SearchService } from '../../shared' 15import { Search, SearchField, SearchService } from '../../shared'
16import { } from '../../shared'
17 16
18@Component({ 17@Component({
19 selector: 'my-videos-list', 18 selector: 'my-videos-list',