aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-23 15:23:27 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-09-05 10:17:02 +0200
commitccc00cb2aac1360921b957f3ecb3be7eb55dfa1b (patch)
tree364e1beecb1db90af60f23bbb5219ff2f964cc0d /shared
parent2ba613a5438f993c3874376dd79be9d460ea81d1 (diff)
downloadPeerTube-ccc00cb2aac1360921b957f3ecb3be7eb55dfa1b.tar.gz
PeerTube-ccc00cb2aac1360921b957f3ecb3be7eb55dfa1b.tar.zst
PeerTube-ccc00cb2aac1360921b957f3ecb3be7eb55dfa1b.zip
Add more attributes to about page
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/server/config.ts10
-rw-r--r--shared/models/server/about.model.ts10
-rw-r--r--shared/models/server/custom-config.model.ts10
3 files changed, 30 insertions, 0 deletions
diff --git a/shared/extra-utils/server/config.ts b/shared/extra-utils/server/config.ts
index d784af9a9..785421c98 100644
--- a/shared/extra-utils/server/config.ts
+++ b/shared/extra-utils/server/config.ts
@@ -53,6 +53,16 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti
53 shortDescription: 'my short description', 53 shortDescription: 'my short description',
54 description: 'my super description', 54 description: 'my super description',
55 terms: 'my super terms', 55 terms: 'my super terms',
56 codeOfConduct: 'my super coc',
57
58 moderationInformation: 'my super moderation information',
59 administrator: 'Kuja',
60 maintenanceLifetime: 'forever',
61 businessModel: 'my super business model',
62
63 languages: [ 'en', 'es' ],
64 categories: [ 1, 2 ],
65
56 defaultClientRoute: '/videos/recently-added', 66 defaultClientRoute: '/videos/recently-added',
57 isNSFW: true, 67 isNSFW: true,
58 defaultNSFWPolicy: 'blur', 68 defaultNSFWPolicy: 'blur',
diff --git a/shared/models/server/about.model.ts b/shared/models/server/about.model.ts
index 10dff8b8f..e32ed26ee 100644
--- a/shared/models/server/about.model.ts
+++ b/shared/models/server/about.model.ts
@@ -4,5 +4,15 @@ export interface About {
4 shortDescription: string 4 shortDescription: string
5 description: string 5 description: string
6 terms: string 6 terms: string
7
8 codeOfConduct: string
9
10 moderationInformation: string
11 administrator: string
12 maintenanceLifetime: string
13 businessModel: string
14
15 languages: string[]
16 categories: number[]
7 } 17 }
8} 18}
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts
index 1073ba32c..0c331a820 100644
--- a/shared/models/server/custom-config.model.ts
+++ b/shared/models/server/custom-config.model.ts
@@ -6,6 +6,16 @@ export interface CustomConfig {
6 shortDescription: string 6 shortDescription: string
7 description: string 7 description: string
8 terms: string 8 terms: string
9 codeOfConduct: string
10
11 moderationInformation: string
12 administrator: string
13 maintenanceLifetime: string
14 businessModel: string
15
16 languages: string[]
17 categories: number[]
18
9 isNSFW: boolean 19 isNSFW: boolean
10 defaultClientRoute: string 20 defaultClientRoute: string
11 defaultNSFWPolicy: NSFWPolicyType 21 defaultNSFWPolicy: NSFWPolicyType