diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-14 12:09:06 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-14 12:09:06 +0200 |
commit | d5050d1e097e761685fbaafe6e3d4b8b78d48356 (patch) | |
tree | 02c3183b8b84b493343a42220c708c7beb1903bf /client/src/app/shared/rest | |
parent | 03b40f24878e4ceef19c9a8a7539f59061f31c84 (diff) | |
download | PeerTube-d5050d1e097e761685fbaafe6e3d4b8b78d48356.tar.gz PeerTube-d5050d1e097e761685fbaafe6e3d4b8b78d48356.tar.zst PeerTube-d5050d1e097e761685fbaafe6e3d4b8b78d48356.zip |
Fix lint
Diffstat (limited to 'client/src/app/shared/rest')
-rw-r--r-- | client/src/app/shared/rest/index.ts | 1 | ||||
-rw-r--r-- | client/src/app/shared/rest/rest-data-source.ts | 32 |
2 files changed, 0 insertions, 33 deletions
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 | } | ||