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