aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/rest/rest-data-source.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/rest/rest-data-source.ts')
-rw-r--r--client/src/app/shared/rest/rest-data-source.ts32
1 files changed, 0 insertions, 32 deletions
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}