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


                            
                                
                
                             

 
                                 
              
                 
                     
                              
 



                  



                                          
                                   
 
                                          
 
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 }

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

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

  clientScripts: ClientScriptJSON[]

  translations: PluginTranslationPathsJSON
}