From 0aef76c479bc7fc758e70e1cd478ade46761b51b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 25 Aug 2017 11:45:31 +0200 Subject: Formated -> Formatted --- server/models/video/video-abuse-interface.ts | 6 +++--- server/models/video/video-abuse.ts | 6 +++--- server/models/video/video-blacklist-interface.ts | 8 ++++---- server/models/video/video-blacklist.ts | 6 +++--- server/models/video/video-interface.ts | 20 ++++++++++---------- server/models/video/video.ts | 6 +++--- 6 files changed, 26 insertions(+), 26 deletions(-) (limited to 'server/models/video') diff --git a/server/models/video/video-abuse-interface.ts b/server/models/video/video-abuse-interface.ts index fa45aa5f9..abc82f7ac 100644 --- a/server/models/video/video-abuse-interface.ts +++ b/server/models/video/video-abuse-interface.ts @@ -5,10 +5,10 @@ import { PodInstance } from '../pod' import { ResultList } from '../../../shared' // Don't use barrel, import just what we need -import { VideoAbuse as FormatedVideoAbuse } from '../../../shared/models/videos/video-abuse.model' +import { VideoAbuse as FormattedVideoAbuse } from '../../../shared/models/videos/video-abuse.model' export namespace VideoAbuseMethods { - export type ToFormatedJSON = (this: VideoAbuseInstance) => FormatedVideoAbuse + export type ToFormattedJSON = (this: VideoAbuseInstance) => FormattedVideoAbuse export type ListForApi = (start: number, count: number, sort: string) => Promise< ResultList > } @@ -30,7 +30,7 @@ export interface VideoAbuseInstance extends VideoAbuseClass, VideoAbuseAttribute Pod: PodInstance - toFormatedJSON: VideoAbuseMethods.ToFormatedJSON + toFormattedJSON: VideoAbuseMethods.ToFormattedJSON } export interface VideoAbuseModel extends VideoAbuseClass, Sequelize.Model {} diff --git a/server/models/video/video-abuse.ts b/server/models/video/video-abuse.ts index df92609c0..ebc63e7a0 100644 --- a/server/models/video/video-abuse.ts +++ b/server/models/video/video-abuse.ts @@ -12,7 +12,7 @@ import { } from './video-abuse-interface' let VideoAbuse: Sequelize.Model -let toFormatedJSON: VideoAbuseMethods.ToFormatedJSON +let toFormattedJSON: VideoAbuseMethods.ToFormattedJSON let listForApi: VideoAbuseMethods.ListForApi export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) { @@ -57,7 +57,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da listForApi ] const instanceMethods = [ - toFormatedJSON + toFormattedJSON ] addMethodsToModel(VideoAbuse, classMethods, instanceMethods) @@ -66,7 +66,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da // ------------------------------ METHODS ------------------------------ -toFormatedJSON = function (this: VideoAbuseInstance) { +toFormattedJSON = function (this: VideoAbuseInstance) { let reporterPodHost if (this.Pod) { diff --git a/server/models/video/video-blacklist-interface.ts b/server/models/video/video-blacklist-interface.ts index cd9f19363..ba48b1b6e 100644 --- a/server/models/video/video-blacklist-interface.ts +++ b/server/models/video/video-blacklist-interface.ts @@ -4,10 +4,10 @@ import * as Promise from 'bluebird' import { ResultList } from '../../../shared' // Don't use barrel, import just what we need -import { BlacklistedVideo as FormatedBlacklistedVideo } from '../../../shared/models/videos/video-blacklist.model' +import { BlacklistedVideo as FormattedBlacklistedVideo } from '../../../shared/models/videos/video-blacklist.model' export namespace BlacklistedVideoMethods { - export type ToFormatedJSON = (this: BlacklistedVideoInstance) => FormatedBlacklistedVideo + export type ToFormattedJSON = (this: BlacklistedVideoInstance) => FormattedBlacklistedVideo export type CountTotal = () => Promise @@ -21,7 +21,7 @@ export namespace BlacklistedVideoMethods { } export interface BlacklistedVideoClass { - toFormatedJSON: BlacklistedVideoMethods.ToFormatedJSON + toFormattedJSON: BlacklistedVideoMethods.ToFormattedJSON countTotal: BlacklistedVideoMethods.CountTotal list: BlacklistedVideoMethods.List listForApi: BlacklistedVideoMethods.ListForApi @@ -39,7 +39,7 @@ export interface BlacklistedVideoInstance createdAt: Date updatedAt: Date - toFormatedJSON: BlacklistedVideoMethods.ToFormatedJSON + toFormattedJSON: BlacklistedVideoMethods.ToFormattedJSON } export interface BlacklistedVideoModel diff --git a/server/models/video/video-blacklist.ts b/server/models/video/video-blacklist.ts index 4d1b45aa5..dc49852b6 100644 --- a/server/models/video/video-blacklist.ts +++ b/server/models/video/video-blacklist.ts @@ -9,7 +9,7 @@ import { } from './video-blacklist-interface' let BlacklistedVideo: Sequelize.Model -let toFormatedJSON: BlacklistedVideoMethods.ToFormatedJSON +let toFormattedJSON: BlacklistedVideoMethods.ToFormattedJSON let countTotal: BlacklistedVideoMethods.CountTotal let list: BlacklistedVideoMethods.List let listForApi: BlacklistedVideoMethods.ListForApi @@ -39,7 +39,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da loadByVideoId ] const instanceMethods = [ - toFormatedJSON + toFormattedJSON ] addMethodsToModel(BlacklistedVideo, classMethods, instanceMethods) @@ -48,7 +48,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da // ------------------------------ METHODS ------------------------------ -toFormatedJSON = function (this: BlacklistedVideoInstance) { +toFormattedJSON = function (this: BlacklistedVideoInstance) { return { id: this.id, videoId: this.videoId, diff --git a/server/models/video/video-interface.ts b/server/models/video/video-interface.ts index 976c70b5e..cc214fd60 100644 --- a/server/models/video/video-interface.ts +++ b/server/models/video/video-interface.ts @@ -6,17 +6,17 @@ import { TagAttributes, TagInstance } from './tag-interface' import { VideoFileAttributes, VideoFileInstance } from './video-file-interface' // Don't use barrel, import just what we need -import { Video as FormatedVideo } from '../../../shared/models/videos/video.model' +import { Video as FormattedVideo } from '../../../shared/models/videos/video.model' import { ResultList } from '../../../shared/models/result-list.model' -export type FormatedRemoteVideoFile = { +export type FormattedRemoteVideoFile = { infoHash: string resolution: number extname: string size: number } -export type FormatedAddRemoteVideo = { +export type FormattedAddRemoteVideo = { uuid: string name: string category: number @@ -33,10 +33,10 @@ export type FormatedAddRemoteVideo = { views: number likes: number dislikes: number - files: FormatedRemoteVideoFile[] + files: FormattedRemoteVideoFile[] } -export type FormatedUpdateRemoteVideo = { +export type FormattedUpdateRemoteVideo = { uuid: string name: string category: number @@ -52,14 +52,14 @@ export type FormatedUpdateRemoteVideo = { views: number likes: number dislikes: number - files: FormatedRemoteVideoFile[] + files: FormattedRemoteVideoFile[] } export namespace VideoMethods { export type GetThumbnailName = (this: VideoInstance) => string export type GetPreviewName = (this: VideoInstance) => string export type IsOwned = (this: VideoInstance) => boolean - export type ToFormatedJSON = (this: VideoInstance) => FormatedVideo + export type ToFormattedJSON = (this: VideoInstance) => FormattedVideo export type GenerateMagnetUri = (this: VideoInstance, videoFile: VideoFileInstance) => string export type GetTorrentFileName = (this: VideoInstance, videoFile: VideoFileInstance) => string @@ -69,8 +69,8 @@ export namespace VideoMethods { export type GetVideoFilePath = (this: VideoInstance, videoFile: VideoFileInstance) => string export type CreateTorrentAndSetInfoHash = (this: VideoInstance, videoFile: VideoFileInstance) => Promise - export type ToAddRemoteJSON = (this: VideoInstance) => Promise - export type ToUpdateRemoteJSON = (this: VideoInstance) => FormatedUpdateRemoteVideo + export type ToAddRemoteJSON = (this: VideoInstance) => Promise + export type ToUpdateRemoteJSON = (this: VideoInstance) => FormattedUpdateRemoteVideo export type TranscodeVideofile = (this: VideoInstance, inputVideoFile: VideoFileInstance) => Promise @@ -159,7 +159,7 @@ export interface VideoInstance extends VideoClass, VideoAttributes, Sequelize.In removeThumbnail: VideoMethods.RemoveThumbnail removeTorrent: VideoMethods.RemoveTorrent toAddRemoteJSON: VideoMethods.ToAddRemoteJSON - toFormatedJSON: VideoMethods.ToFormatedJSON + toFormattedJSON: VideoMethods.ToFormattedJSON toUpdateRemoteJSON: VideoMethods.ToUpdateRemoteJSON transcodeVideofile: VideoMethods.TranscodeVideofile diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 1e4bdf51c..b3ca1e668 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -52,7 +52,7 @@ let getThumbnailName: VideoMethods.GetThumbnailName let getPreviewName: VideoMethods.GetPreviewName let getTorrentFileName: VideoMethods.GetTorrentFileName let isOwned: VideoMethods.IsOwned -let toFormatedJSON: VideoMethods.ToFormatedJSON +let toFormattedJSON: VideoMethods.ToFormattedJSON let toAddRemoteJSON: VideoMethods.ToAddRemoteJSON let toUpdateRemoteJSON: VideoMethods.ToUpdateRemoteJSON let transcodeVideofile: VideoMethods.TranscodeVideofile @@ -257,7 +257,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da removeThumbnail, removeTorrent, toAddRemoteJSON, - toFormatedJSON, + toFormattedJSON, toUpdateRemoteJSON, transcodeVideofile ] @@ -414,7 +414,7 @@ generateMagnetUri = function (this: VideoInstance, videoFile: VideoFileInstance) return magnetUtil.encode(magnetHash) } -toFormatedJSON = function (this: VideoInstance) { +toFormattedJSON = function (this: VideoInstance) { let podHost if (this.Author.Pod) { -- cgit v1.2.3