diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-22 16:04:44 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | e8f902c05cb35f6d5e9b75a23ddabd51c220a976 (patch) | |
tree | eb6297bc50206546cbae12c6abc5b50ed802b17e /shared/models/plugins | |
parent | 93cae47925e4dd68b7d34a41927b2740b4fab1b4 (diff) | |
download | PeerTube-e8f902c05cb35f6d5e9b75a23ddabd51c220a976.tar.gz PeerTube-e8f902c05cb35f6d5e9b75a23ddabd51c220a976.tar.zst PeerTube-e8f902c05cb35f6d5e9b75a23ddabd51c220a976.zip |
Use search client scope
Diffstat (limited to 'shared/models/plugins')
-rw-r--r-- | shared/models/plugins/plugin-client-scope.type.ts | 2 | ||||
-rw-r--r-- | shared/models/plugins/plugin-package-json.model.ts | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/shared/models/plugins/plugin-client-scope.type.ts b/shared/models/plugins/plugin-client-scope.type.ts index a2112eed7..0c616c5ed 100644 --- a/shared/models/plugins/plugin-client-scope.type.ts +++ b/shared/models/plugins/plugin-client-scope.type.ts | |||
@@ -1 +1 @@ | |||
export type PluginClientScope = 'common' | 'video-watch' | export type PluginClientScope = 'common' | 'video-watch' | 'search' | ||
diff --git a/shared/models/plugins/plugin-package-json.model.ts b/shared/models/plugins/plugin-package-json.model.ts index f8029ec34..87a48e97f 100644 --- a/shared/models/plugins/plugin-package-json.model.ts +++ b/shared/models/plugins/plugin-package-json.model.ts | |||
@@ -1,6 +1,8 @@ | |||
1 | import { PluginClientScope } from './plugin-client-scope.type' | ||
2 | |||
1 | export type ClientScript = { | 3 | export type ClientScript = { |
2 | script: string, | 4 | script: string, |
3 | scopes: string[] | 5 | scopes: PluginClientScope[] |
4 | } | 6 | } |
5 | 7 | ||
6 | export type PluginPackageJson = { | 8 | export type PluginPackageJson = { |