WIP plugins: add theme support

This commit is contained in:
Chocobozzz
2019-07-09 11:45:19 +02:00
committed by Chocobozzz
parent 8d76959e11
commit 7cd4d2ba10
34 changed files with 311 additions and 38 deletions

View File

@@ -59,6 +59,9 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) {
css: 'body { background-color: red; }'
}
},
theme: {
default: 'default'
},
services: {
twitter: {
username: '@MySuperUsername',

View File

@@ -15,6 +15,10 @@ export interface CustomConfig {
}
}
theme: {
default: string
}
services: {
twitter: {
username: string

View File

@@ -24,7 +24,14 @@ export interface ServerConfig {
}
}
plugins: ServerConfigPlugin[]
plugin: {
registered: ServerConfigPlugin[]
}
theme: {
registered: ServerConfigPlugin[]
default: string
}
email: {
enabled: boolean

View File

@@ -13,4 +13,6 @@ export interface UserUpdateMe {
email?: string
currentPassword?: string
password?: string
theme?: string
}