mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Add ability to schedule video publication
This commit is contained in:
parent
2baea0c77c
commit
bbe0f0645c
51 changed files with 751 additions and 246 deletions
|
@ -96,26 +96,12 @@ function lineFeedToHtml (obj: object, keyToNormalize: string) {
|
|||
})
|
||||
}
|
||||
|
||||
// Try to cache a little bit window.innerWidth
|
||||
let windowInnerWidth = window.innerWidth
|
||||
setInterval(() => windowInnerWidth = window.innerWidth, 500)
|
||||
|
||||
function isInSmallView () {
|
||||
return windowInnerWidth < 600
|
||||
}
|
||||
|
||||
function isInMobileView () {
|
||||
return windowInnerWidth < 500
|
||||
}
|
||||
|
||||
export {
|
||||
objectToUrlEncoded,
|
||||
getParameterByName,
|
||||
populateAsyncUserVideoChannels,
|
||||
getAbsoluteAPIUrl,
|
||||
dateToHuman,
|
||||
isInSmallView,
|
||||
isInMobileView,
|
||||
immutableAssign,
|
||||
objectToFormData,
|
||||
lineFeedToHtml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue