aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/rest
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/rest')
-rw-r--r--client/src/app/shared/rest/index.ts1
-rw-r--r--client/src/app/shared/rest/rest-data-source.ts32
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 @@
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}