1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Rewrite infinite scroll

This commit is contained in:
Chocobozzz 2018-02-13 14:11:05 +01:00
parent 29c6b82944
commit 0cd4344f3c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
15 changed files with 245 additions and 119 deletions

View file

@ -55,6 +55,10 @@ function dateToHuman (date: string) {
return datePipe.transform(date, 'medium')
}
function immutableAssign <A, B> (target: A, source: B) {
return Object.assign({}, target, source)
}
function isInSmallView () {
return window.innerWidth < 600
}
@ -70,5 +74,6 @@ export {
getAbsoluteAPIUrl,
dateToHuman,
isInSmallView,
isInMobileView
isInMobileView,
immutableAssign
}