]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/plugins/plugin-package-json.model.ts
Support logout and add id and pass tests
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / plugin-package-json.model.ts
index d5aa9017992aef2dfa7aa638a20659a026ec4d9c..c26e9ae5b55dcca60ee67be8c9a385f7146f9372 100644 (file)
@@ -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
 }