From 7cd4d2ba10106c10602c86f74f55743ded588896 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 9 Jul 2019 11:45:19 +0200 Subject: WIP plugins: add theme support --- shared/extra-utils/server/config.ts | 3 +++ shared/models/server/custom-config.model.ts | 4 ++++ shared/models/server/server-config.model.ts | 9 ++++++++- shared/models/users/user-update-me.model.ts | 2 ++ 4 files changed, 17 insertions(+), 1 deletion(-) (limited to 'shared') diff --git a/shared/extra-utils/server/config.ts b/shared/extra-utils/server/config.ts index 2b7965bc2..8736f083f 100644 --- a/shared/extra-utils/server/config.ts +++ b/shared/extra-utils/server/config.ts @@ -59,6 +59,9 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) { css: 'body { background-color: red; }' } }, + theme: { + default: 'default' + }, services: { twitter: { username: '@MySuperUsername', diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index 670553d16..a0541f5b6 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts @@ -15,6 +15,10 @@ export interface CustomConfig { } } + theme: { + default: string + } + services: { twitter: { username: string diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index c259a849a..d6c660aac 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts @@ -24,7 +24,14 @@ export interface ServerConfig { } } - plugins: ServerConfigPlugin[] + plugin: { + registered: ServerConfigPlugin[] + } + + theme: { + registered: ServerConfigPlugin[] + default: string + } email: { enabled: boolean diff --git a/shared/models/users/user-update-me.model.ts b/shared/models/users/user-update-me.model.ts index 6e6cd7115..b6c0002e5 100644 --- a/shared/models/users/user-update-me.model.ts +++ b/shared/models/users/user-update-me.model.ts @@ -13,4 +13,6 @@ export interface UserUpdateMe { email?: string currentPassword?: string password?: string + + theme?: string } -- cgit v1.2.3