X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fplugins%2Fplugin-package-json.model.ts;h=c26e9ae5b55dcca60ee67be8c9a385f7146f9372;hb=e1c5503114deef954731904695cd40dccfcef555;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..c26e9ae5b 100644 --- a/shared/models/plugins/plugin-package-json.model.ts +++ b/shared/models/plugins/plugin-package-json.model.ts @@ -1,16 +1,29 @@ +import { PluginClientScope } from './plugin-client-scope.type' + +export type PluginTranslationPaths = { + [ locale: string ]: string +} + +export type ClientScript = { + 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: ClientScript[] + + translations: PluginTranslationPaths }