diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/plugins/plugin-package-json.model.ts | 10 | ||||
-rw-r--r-- | shared/models/server/server-config.model.ts | 4 | ||||
-rw-r--r-- | shared/server-commands/server/plugins-command.ts | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/shared/models/plugins/plugin-package-json.model.ts b/shared/models/plugins/plugin-package-json.model.ts index b2f92af80..7ce968ff2 100644 --- a/shared/models/plugins/plugin-package-json.model.ts +++ b/shared/models/plugins/plugin-package-json.model.ts | |||
@@ -1,15 +1,15 @@ | |||
1 | import { PluginClientScope } from './client/plugin-client-scope.type' | 1 | import { PluginClientScope } from './client/plugin-client-scope.type' |
2 | 2 | ||
3 | export type PluginTranslationPaths = { | 3 | export type PluginTranslationPathsJSON = { |
4 | [ locale: string ]: string | 4 | [ locale: string ]: string |
5 | } | 5 | } |
6 | 6 | ||
7 | export type ClientScript = { | 7 | export type ClientScriptJSON = { |
8 | script: string | 8 | script: string |
9 | scopes: PluginClientScope[] | 9 | scopes: PluginClientScope[] |
10 | } | 10 | } |
11 | 11 | ||
12 | export type PluginPackageJson = { | 12 | export type PluginPackageJSON = { |
13 | name: string | 13 | name: string |
14 | version: string | 14 | version: string |
15 | description: string | 15 | description: string |
@@ -23,7 +23,7 @@ export type PluginPackageJson = { | |||
23 | staticDirs: { [ name: string ]: string } | 23 | staticDirs: { [ name: string ]: string } |
24 | css: string[] | 24 | css: string[] |
25 | 25 | ||
26 | clientScripts: ClientScript[] | 26 | clientScripts: ClientScriptJSON[] |
27 | 27 | ||
28 | translations: PluginTranslationPaths | 28 | translations: PluginTranslationPathsJSON |
29 | } | 29 | } |
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index 0e3b4a3d2..8c0e21621 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { VideoPrivacy } from '../videos/video-privacy.enum' | 1 | import { VideoPrivacy } from '../videos/video-privacy.enum' |
2 | import { ClientScript } from '../plugins/plugin-package-json.model' | 2 | import { ClientScriptJSON } from '../plugins/plugin-package-json.model' |
3 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' | 3 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
4 | import { BroadcastMessageLevel } from './broadcast-message-level.type' | 4 | import { BroadcastMessageLevel } from './broadcast-message-level.type' |
5 | 5 | ||
@@ -7,7 +7,7 @@ export interface ServerConfigPlugin { | |||
7 | name: string | 7 | name: string |
8 | version: string | 8 | version: string |
9 | description: string | 9 | description: string |
10 | clientScripts: { [name: string]: ClientScript } | 10 | clientScripts: { [name: string]: ClientScriptJSON } |
11 | } | 11 | } |
12 | 12 | ||
13 | export interface ServerConfigTheme extends ServerConfigPlugin { | 13 | export interface ServerConfigTheme extends ServerConfigPlugin { |
diff --git a/shared/server-commands/server/plugins-command.ts b/shared/server-commands/server/plugins-command.ts index 1c44711da..bb1277a7c 100644 --- a/shared/server-commands/server/plugins-command.ts +++ b/shared/server-commands/server/plugins-command.ts | |||
@@ -8,7 +8,7 @@ import { | |||
8 | PeerTubePlugin, | 8 | PeerTubePlugin, |
9 | PeerTubePluginIndex, | 9 | PeerTubePluginIndex, |
10 | PeertubePluginIndexList, | 10 | PeertubePluginIndexList, |
11 | PluginPackageJson, | 11 | PluginPackageJSON, |
12 | PluginTranslation, | 12 | PluginTranslation, |
13 | PluginType, | 13 | PluginType, |
14 | PublicServerSetting, | 14 | PublicServerSetting, |
@@ -245,7 +245,7 @@ export class PluginsCommand extends AbstractCommand { | |||
245 | return writeJSON(path, json) | 245 | return writeJSON(path, json) |
246 | } | 246 | } |
247 | 247 | ||
248 | getPackageJSON (npmName: string): Promise<PluginPackageJson> { | 248 | getPackageJSON (npmName: string): Promise<PluginPackageJSON> { |
249 | const path = this.getPackageJSONPath(npmName) | 249 | const path = this.getPackageJSONPath(npmName) |
250 | 250 | ||
251 | return readJSON(path) | 251 | return readJSON(path) |