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:
parent
29c6b82944
commit
0cd4344f3c
15 changed files with 245 additions and 119 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue