diff options
Diffstat (limited to 'shared/models/server/server-config.model.ts')
-rw-r--r-- | shared/models/server/server-config.model.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index d6c660aac..3498f86d7 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts | |||
@@ -1,13 +1,17 @@ | |||
1 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' | 1 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
2 | import { ClientScript } from '../plugins/plugin-package-json.model' | 2 | import { ClientScript } from '../plugins/plugin-package-json.model' |
3 | 3 | ||
4 | export type ServerConfigPlugin = { | 4 | export interface ServerConfigPlugin { |
5 | name: string | 5 | name: string |
6 | version: string | 6 | version: string |
7 | description: string | 7 | description: string |
8 | clientScripts: { [name: string]: ClientScript } | 8 | clientScripts: { [name: string]: ClientScript } |
9 | } | 9 | } |
10 | 10 | ||
11 | export interface ServerConfigTheme extends ServerConfigPlugin { | ||
12 | css: string[] | ||
13 | } | ||
14 | |||
11 | export interface ServerConfig { | 15 | export interface ServerConfig { |
12 | serverVersion: string | 16 | serverVersion: string |
13 | serverCommit?: string | 17 | serverCommit?: string |
@@ -29,7 +33,7 @@ export interface ServerConfig { | |||
29 | } | 33 | } |
30 | 34 | ||
31 | theme: { | 35 | theme: { |
32 | registered: ServerConfigPlugin[] | 36 | registered: ServerConfigTheme[] |
33 | default: string | 37 | default: string |
34 | } | 38 | } |
35 | 39 | ||