aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/plugins/plugin-client-scope.type.ts2
-rw-r--r--shared/models/plugins/plugin-package-json.model.ts4
-rw-r--r--shared/models/server/server-config.model.ts3
3 files changed, 5 insertions, 4 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 @@
1import { PluginClientScope } from './plugin-client-scope.type'
2
1export type ClientScript = { 3export type ClientScript = {
2 script: string, 4 script: string,
3 scopes: string[] 5 scopes: PluginClientScope[]
4} 6}
5 7
6export type PluginPackageJson = { 8export type PluginPackageJson = {
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts
index 49bb01708..3498f86d7 100644
--- a/shared/models/server/server-config.model.ts
+++ b/shared/models/server/server-config.model.ts
@@ -1,12 +1,11 @@
1import { NSFWPolicyType } from '../videos/nsfw-policy.type' 1import { NSFWPolicyType } from '../videos/nsfw-policy.type'
2import { ClientScript } from '../plugins/plugin-package-json.model' 2import { ClientScript } from '../plugins/plugin-package-json.model'
3import { PluginClientScope } from '../plugins/plugin-scope.type'
4 3
5export interface ServerConfigPlugin { 4export interface ServerConfigPlugin {
6 name: string 5 name: string
7 version: string 6 version: string
8 description: string 7 description: string
9 clientScripts: { [name in PluginClientScope]: ClientScript } 8 clientScripts: { [name: string]: ClientScript }
10} 9}
11 10
12export interface ServerConfigTheme extends ServerConfigPlugin { 11export interface ServerConfigTheme extends ServerConfigPlugin {