From a15871560f80e07386c1dabb8370cd2664ecfd1f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 Jan 2020 16:56:52 +0100 Subject: Move to eslint --- shared/models/server/custom-config.model.ts | 4 ++-- shared/models/server/job.model.ts | 27 ++++++++++++++------------- shared/models/server/server-config.model.ts | 6 +++--- 3 files changed, 19 insertions(+), 18 deletions(-) (limited to 'shared/models/server') diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index 032b91a29..07e17bda2 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts @@ -97,7 +97,7 @@ export interface CustomConfig { videos: { http: { enabled: boolean - }, + } torrent: { enabled: boolean } @@ -114,7 +114,7 @@ export interface CustomConfig { followers: { instance: { - enabled: boolean, + enabled: boolean manualApproval: boolean } } diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index 19fd4c659..cf29d20d4 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts @@ -1,23 +1,24 @@ export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed' -export type JobType = 'activitypub-http-unicast' | - 'activitypub-http-broadcast' | - 'activitypub-http-fetcher' | - 'activitypub-follow' | - 'video-file-import' | - 'video-transcoding' | - 'email' | - 'video-import' | - 'videos-views' | - 'activitypub-refresher' | - 'video-redundancy' +export type JobType = + | 'activitypub-http-unicast' + | 'activitypub-http-broadcast' + | 'activitypub-http-fetcher' + | 'activitypub-follow' + | 'video-file-import' + | 'video-transcoding' + | 'email' + | 'video-import' + | 'videos-views' + | 'activitypub-refresher' + | 'video-redundancy' export interface Job { id: number state: JobState type: JobType - data: any, - error: any, + data: any + error: any createdAt: Date | string finishedOn: Date | string processedOn: Date | string diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index f1bb2153c..76e0d6f2d 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts @@ -46,7 +46,7 @@ export interface ServerConfig { } signup: { - allowed: boolean, + allowed: boolean allowedForCurrentIP: boolean requiresEmailVerification: boolean } @@ -97,7 +97,7 @@ export interface ServerConfig { max: number } extensions: string[] - }, + } file: { extensions: string[] } @@ -107,7 +107,7 @@ export interface ServerConfig { file: { size: { max: number - }, + } extensions: string[] } } -- cgit v1.2.3