Fix lint
This commit is contained in:
parent
03b40f2487
commit
d5050d1e09
|
@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http'
|
||||||
import 'rxjs/add/operator/catch'
|
import 'rxjs/add/operator/catch'
|
||||||
import 'rxjs/add/operator/map'
|
import 'rxjs/add/operator/map'
|
||||||
|
|
||||||
import { RestExtractor, } from '../../../shared'
|
import { RestExtractor } from '../../../shared'
|
||||||
import { Pod, ResultList } from '../../../../../../shared'
|
import { Pod, ResultList } from '../../../../../../shared'
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { VideoAbuse } from '../../../../../../shared'
|
||||||
export class VideoAbuseListComponent extends RestTable implements OnInit {
|
export class VideoAbuseListComponent extends RestTable implements OnInit {
|
||||||
videoAbuses: VideoAbuse[] = []
|
videoAbuses: VideoAbuse[] = []
|
||||||
totalRecords = 0
|
totalRecords = 0
|
||||||
rowsPerPage = 1
|
rowsPerPage = 10
|
||||||
sort: SortMeta = { field: 'id', order: 1 }
|
sort: SortMeta = { field: 'id', order: 1 }
|
||||||
pagination: RestPagination = { count: this.rowsPerPage, start: 0 }
|
pagination: RestPagination = { count: this.rowsPerPage, start: 0 }
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
export * from './rest-data-source'
|
|
||||||
export * from './rest-extractor.service'
|
export * from './rest-extractor.service'
|
||||||
export * from './rest-pagination'
|
export * from './rest-pagination'
|
||||||
export * from './rest.service'
|
export * from './rest.service'
|
||||||
|
|
|
@ -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
|
|
||||||
// }
|
|
||||||
}
|
|
|
@ -13,7 +13,6 @@ import {
|
||||||
} from '../shared'
|
} from '../shared'
|
||||||
import { AuthService, AuthUser } from '../../core'
|
import { AuthService, AuthUser } from '../../core'
|
||||||
import { Search, SearchField, SearchService } from '../../shared'
|
import { Search, SearchField, SearchService } from '../../shared'
|
||||||
import { } from '../../shared'
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-videos-list',
|
selector: 'my-videos-list',
|
||||||
|
|
Loading…
Reference in New Issue