page grid update: load less data

This commit is contained in:
tmshv committed 2020-03-03 07:53:16 +03:00
1 parent 1318328fe7
commit e800de1f92
5 files changed
+100 -89

No files matched your search

+10
View File
@@ -1,3 +1,13 @@
export function isPartOfPath(part: string, path: string): boolean {
return path.startsWith(part)
}
export function queryList(key: string, values: string[]): string {
if (values.length === 0) {
return ''
}
return values
.map(value => `${key}=${value}`)
.join('&')
}