diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-08 15:54:08 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 18a6f04c071f7a0735eb39b8c67fd51a082d1a31 (patch) | |
tree | b9fb0637878390d32b5c73d02b8eee2ef48cbfa5 /shared/models/server | |
parent | 2c0539420d77339e6afe8d7920b44af4c0dcb1e6 (diff) | |
download | PeerTube-18a6f04c071f7a0735eb39b8c67fd51a082d1a31.tar.gz PeerTube-18a6f04c071f7a0735eb39b8c67fd51a082d1a31.tar.zst PeerTube-18a6f04c071f7a0735eb39b8c67fd51a082d1a31.zip |
WIP plugins: hook on client side
Diffstat (limited to 'shared/models/server')
-rw-r--r-- | shared/models/server/server-config.model.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index d937e9c05..c259a849a 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts | |||
@@ -1,4 +1,12 @@ | |||
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' | ||
3 | |||
4 | export type ServerConfigPlugin = { | ||
5 | name: string | ||
6 | version: string | ||
7 | description: string | ||
8 | clientScripts: { [name: string]: ClientScript } | ||
9 | } | ||
2 | 10 | ||
3 | export interface ServerConfig { | 11 | export interface ServerConfig { |
4 | serverVersion: string | 12 | serverVersion: string |
@@ -16,6 +24,8 @@ export interface ServerConfig { | |||
16 | } | 24 | } |
17 | } | 25 | } |
18 | 26 | ||
27 | plugins: ServerConfigPlugin[] | ||
28 | |||
19 | email: { | 29 | email: { |
20 | enabled: boolean | 30 | enabled: boolean |
21 | } | 31 | } |