aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/plugins/plugin-package-json.model.ts
blob: c26e9ae5b55dcca60ee67be8c9a385f7146f9372 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                              



                                      
                            
                
                             

 

                                 
                 
                     
                              
 



                  



                                          
                               

                                      
 
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 }

  homepage: string
  author: string
  bugs: string
  library: string

  staticDirs: { [ name: string ]: string }
  css: string[]

  clientScripts: ClientScript[]

  translations: PluginTranslationPaths
}