]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/plugins/plugin-package-json.model.ts
Feature/filter already watched videos (#5739)
[github/Chocobozzz/PeerTube.git] / shared / models / plugins / plugin-package-json.model.ts
index f8029ec3435d5b2cfa0654498e9a05d6a47c761e..7ce968ff239f9309626f89af03930a67553e7a94 100644 (file)
@@ -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
 }