From ccc00cb2aac1360921b957f3ecb3be7eb55dfa1b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 23 Aug 2019 15:23:27 +0200 Subject: Add more attributes to about page --- shared/extra-utils/server/config.ts | 10 ++++++++++ shared/models/server/about.model.ts | 10 ++++++++++ shared/models/server/custom-config.model.ts | 10 ++++++++++ 3 files changed, 30 insertions(+) (limited to 'shared') 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 shortDescription: 'my short description', description: 'my super description', terms: 'my super terms', + codeOfConduct: 'my super coc', + + moderationInformation: 'my super moderation information', + administrator: 'Kuja', + maintenanceLifetime: 'forever', + businessModel: 'my super business model', + + languages: [ 'en', 'es' ], + categories: [ 1, 2 ], + defaultClientRoute: '/videos/recently-added', isNSFW: true, 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 { shortDescription: string description: string terms: string + + codeOfConduct: string + + moderationInformation: string + administrator: string + maintenanceLifetime: string + businessModel: string + + languages: string[] + categories: number[] } } 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 { shortDescription: string description: string terms: string + codeOfConduct: string + + moderationInformation: string + administrator: string + maintenanceLifetime: string + businessModel: string + + languages: string[] + categories: number[] + isNSFW: boolean defaultClientRoute: string defaultNSFWPolicy: NSFWPolicyType -- cgit v1.2.3