diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/extra-utils/server/config.ts | 3 | ||||
-rw-r--r-- | shared/models/server/custom-config.model.ts | 4 | ||||
-rw-r--r-- | shared/models/server/server-config.model.ts | 9 | ||||
-rw-r--r-- | shared/models/users/user-update-me.model.ts | 2 |
4 files changed, 17 insertions, 1 deletions
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) { | |||
59 | css: 'body { background-color: red; }' | 59 | css: 'body { background-color: red; }' |
60 | } | 60 | } |
61 | }, | 61 | }, |
62 | theme: { | ||
63 | default: 'default' | ||
64 | }, | ||
62 | services: { | 65 | services: { |
63 | twitter: { | 66 | twitter: { |
64 | username: '@MySuperUsername', | 67 | 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 { | |||
15 | } | 15 | } |
16 | } | 16 | } |
17 | 17 | ||
18 | theme: { | ||
19 | default: string | ||
20 | } | ||
21 | |||
18 | services: { | 22 | services: { |
19 | twitter: { | 23 | twitter: { |
20 | username: string | 24 | 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 { | |||
24 | } | 24 | } |
25 | } | 25 | } |
26 | 26 | ||
27 | plugins: ServerConfigPlugin[] | 27 | plugin: { |
28 | registered: ServerConfigPlugin[] | ||
29 | } | ||
30 | |||
31 | theme: { | ||
32 | registered: ServerConfigPlugin[] | ||
33 | default: string | ||
34 | } | ||
28 | 35 | ||
29 | email: { | 36 | email: { |
30 | enabled: boolean | 37 | 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 { | |||
13 | email?: string | 13 | email?: string |
14 | currentPassword?: string | 14 | currentPassword?: string |
15 | password?: string | 15 | password?: string |
16 | |||
17 | theme?: string | ||
16 | } | 18 | } |