X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fplugins%2Fplugin-package-json.model.ts;h=7ce968ff239f9309626f89af03930a67553e7a94;hb=0c9a83546687d2ae80b3f5299a8ee59d741f894f;hp=d5aa9017992aef2dfa7aa638a20659a026ec4d9c;hpb=f023a19c3eeeea2b014b47fae522a62eab320048;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 d5aa90179..7ce968ff2 100644 --- a/shared/models/plugins/plugin-package-json.model.ts +++ b/shared/models/plugins/plugin-package-json.model.ts @@ -1,16 +1,29 @@ -export type PluginPackageJson = { +import { PluginClientScope } from './client/plugin-client-scope.type' + +export type PluginTranslationPathsJSON = { + [ locale: string ]: string +} + +export type ClientScriptJSON = { + script: string + scopes: PluginClientScope[] +} + +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: { script: string, scopes: string[] }[] + clientScripts: ClientScriptJSON[] + + translations: PluginTranslationPathsJSON }