mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Move to eslint
This commit is contained in:
parent
a22046d166
commit
a15871560f
390 changed files with 3950 additions and 3615 deletions
|
@ -69,7 +69,7 @@ function generateVideoMiniature (video: MVideoThumbnail, videoFile: MVideoFile,
|
|||
function createPlaceholderThumbnail (fileUrl: string, video: MVideoThumbnail, type: ThumbnailType, size: ImageSize) {
|
||||
const { filename, height, width, existingThumbnail } = buildMetadataFromVideo(video, type, size)
|
||||
|
||||
const thumbnail = existingThumbnail ? existingThumbnail : new ThumbnailModel()
|
||||
const thumbnail = existingThumbnail || new ThumbnailModel()
|
||||
|
||||
thumbnail.filename = filename
|
||||
thumbnail.height = height
|
||||
|
@ -142,18 +142,18 @@ function buildMetadataFromVideo (video: MVideoThumbnail, type: ThumbnailType, si
|
|||
}
|
||||
|
||||
async function createThumbnailFromFunction (parameters: {
|
||||
thumbnailCreator: () => Promise<any>,
|
||||
filename: string,
|
||||
height: number,
|
||||
width: number,
|
||||
type: ThumbnailType,
|
||||
automaticallyGenerated?: boolean,
|
||||
fileUrl?: string,
|
||||
thumbnailCreator: () => Promise<any>
|
||||
filename: string
|
||||
height: number
|
||||
width: number
|
||||
type: ThumbnailType
|
||||
automaticallyGenerated?: boolean
|
||||
fileUrl?: string
|
||||
existingThumbnail?: MThumbnail
|
||||
}) {
|
||||
const { thumbnailCreator, filename, width, height, type, existingThumbnail, automaticallyGenerated = null, fileUrl = null } = parameters
|
||||
|
||||
const thumbnail = existingThumbnail ? existingThumbnail : new ThumbnailModel()
|
||||
const thumbnail = existingThumbnail || new ThumbnailModel()
|
||||
|
||||
thumbnail.filename = filename
|
||||
thumbnail.height = height
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue