X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fplugins%2Fplugin-package-json.model.ts;h=7ce968ff239f9309626f89af03930a67553e7a94;hb=071f3e519cbd3184b59ee728fe96c5c29b7792b9;hp=87a48e97f78c57aef7c7972b04dc9e38bead0c8d;hpb=e8f902c05cb35f6d5e9b75a23ddabd51c220a976;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/plugins/plugin-package-json.model.ts b/shared/models/plugins/plugin-package-json.model.ts index 87a48e97f..7ce968ff2 100644 --- a/shared/models/plugins/plugin-package-json.model.ts +++ b/shared/models/plugins/plugin-package-json.model.ts @@ -1,23 +1,29 @@ -import { PluginClientScope } from './plugin-client-scope.type' +import { PluginClientScope } from './client/plugin-client-scope.type' -export type ClientScript = { - script: string, +export type PluginTranslationPathsJSON = { + [ locale: string ]: string +} + +export type ClientScriptJSON = { + script: string scopes: PluginClientScope[] } -export type PluginPackageJson = { +export type PluginPackageJSON = { name: string version: string description: string - engine: { peertube: string }, + engine: { peertube: string } - homepage: string, - author: string, - bugs: string, - library: string, + homepage: string + author: string + bugs: string + library: string staticDirs: { [ name: string ]: string } css: string[] - clientScripts: ClientScript[] + clientScripts: ClientScriptJSON[] + + translations: PluginTranslationPathsJSON }