X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fplugins%2Fplugin-package-json.model.ts;h=c26e9ae5b55dcca60ee67be8c9a385f7146f9372;hb=781ba981263ee6524fea1a95836108d252a124f4;hp=4520ee181fe75c83f44555076df1cab7558e9830;hpb=345da516fae80f24c90c2196e96393b489af2243;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 4520ee181..c26e9ae5b 100644 --- a/shared/models/plugins/plugin-package-json.model.ts +++ b/shared/models/plugins/plugin-package-json.model.ts @@ -1,15 +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 }