aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-31 16:56:52 +0100
committerChocobozzz <me@florianbigard.com>2020-02-03 08:31:02 +0100
commita15871560f80e07386c1dabb8370cd2664ecfd1f (patch)
tree44440e140c9e43b0d7f97ade777a76e649e0553d /shared/models/server
parenta22046d166805222ca76060e471b6cb3d419a32d (diff)
downloadPeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.tar.gz
PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.tar.zst
PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.zip
Move to eslintcontain
Diffstat (limited to 'shared/models/server')
-rw-r--r--shared/models/server/custom-config.model.ts4
-rw-r--r--shared/models/server/job.model.ts27
-rw-r--r--shared/models/server/server-config.model.ts6
3 files changed, 19 insertions, 18 deletions
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 {
97 videos: { 97 videos: {
98 http: { 98 http: {
99 enabled: boolean 99 enabled: boolean
100 }, 100 }
101 torrent: { 101 torrent: {
102 enabled: boolean 102 enabled: boolean
103 } 103 }
@@ -114,7 +114,7 @@ export interface CustomConfig {
114 114
115 followers: { 115 followers: {
116 instance: { 116 instance: {
117 enabled: boolean, 117 enabled: boolean
118 manualApproval: boolean 118 manualApproval: boolean
119 } 119 }
120 } 120 }
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 @@
1export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed' 1export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed'
2 2
3export type JobType = 'activitypub-http-unicast' | 3export type JobType =
4 'activitypub-http-broadcast' | 4 | 'activitypub-http-unicast'
5 'activitypub-http-fetcher' | 5 | 'activitypub-http-broadcast'
6 'activitypub-follow' | 6 | 'activitypub-http-fetcher'
7 'video-file-import' | 7 | 'activitypub-follow'
8 'video-transcoding' | 8 | 'video-file-import'
9 'email' | 9 | 'video-transcoding'
10 'video-import' | 10 | 'email'
11 'videos-views' | 11 | 'video-import'
12 'activitypub-refresher' | 12 | 'videos-views'
13 'video-redundancy' 13 | 'activitypub-refresher'
14 | 'video-redundancy'
14 15
15export interface Job { 16export interface Job {
16 id: number 17 id: number
17 state: JobState 18 state: JobState
18 type: JobType 19 type: JobType
19 data: any, 20 data: any
20 error: any, 21 error: any
21 createdAt: Date | string 22 createdAt: Date | string
22 finishedOn: Date | string 23 finishedOn: Date | string
23 processedOn: Date | string 24 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 {
46 } 46 }
47 47
48 signup: { 48 signup: {
49 allowed: boolean, 49 allowed: boolean
50 allowedForCurrentIP: boolean 50 allowedForCurrentIP: boolean
51 requiresEmailVerification: boolean 51 requiresEmailVerification: boolean
52 } 52 }
@@ -97,7 +97,7 @@ export interface ServerConfig {
97 max: number 97 max: number
98 } 98 }
99 extensions: string[] 99 extensions: string[]
100 }, 100 }
101 file: { 101 file: {
102 extensions: string[] 102 extensions: string[]
103 } 103 }
@@ -107,7 +107,7 @@ export interface ServerConfig {
107 file: { 107 file: {
108 size: { 108 size: {
109 max: number 109 max: number
110 }, 110 }
111 extensions: string[] 111 extensions: string[]
112 } 112 }
113 } 113 }