X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fplugins%2Fplugin-package-json.model.ts;h=7ce968ff239f9309626f89af03930a67553e7a94;hb=2a4c0d8bbe29178ae90e776bb9453f86e6d23bd9;hp=f8029ec3435d5b2cfa0654498e9a05d6a47c761e;hpb=2c0539420d77339e6afe8d7920b44af4c0dcb1e6;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 f8029ec34..7ce968ff2 100644 --- a/shared/models/plugins/plugin-package-json.model.ts +++ b/shared/models/plugins/plugin-package-json.model.ts @@ -1,21 +1,29 @@ -export type ClientScript = { - script: string, - scopes: string[] +import { PluginClientScope } from './client/plugin-client-scope.type' + +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 }