]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/plugins/plugin-package-json.model.ts
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / plugin-package-json.model.ts
index 4520ee181fe75c83f44555076df1cab7558e9830..7ce968ff239f9309626f89af03930a67553e7a94 100644 (file)
@@ -1,15 +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
 }