]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix lint
authorChocobozzz <florian.bigard@gmail.com>
Thu, 14 Sep 2017 10:09:06 +0000 (12:09 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Thu, 14 Sep 2017 10:09:06 +0000 (12:09 +0200)
client/src/app/+admin/friends/shared/friend.service.ts
client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts
client/src/app/shared/rest/index.ts
client/src/app/shared/rest/rest-data-source.ts [deleted file]
client/src/app/videos/video-list/video-list.component.ts

index 45607e28dcc6895bf50f66ec8bf86d9dc5949a2f..274373e3b7a4942b84b204ea46b4ac8e07f84c3f 100644 (file)
@@ -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()
index cc9c1bdf43891c0e0df80c2bac69076b1ef86380..5a0131a814dede72b6a9586b8f9c53b3fc87bb2f 100644 (file)
@@ -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 }
 
index 3f1996130b86ebf49ced866e17cac310f05cd745..f00cda2b88355e45360433b3815baf8971561f68 100644 (file)
@@ -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 (file)
index 57a2efb..0000000
+++ /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
-  // }
-}
index 5906320632e447ef4da1be71d568c798e0c69517..4714ce01eb690c77cd50d9c4536569fb1d15d6f2 100644 (file)
@@ -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',