1
0
Fork 0
peertube/shared/models/plugins/plugin-package-json.model.ts

30 lines
539 B
TypeScript
Raw Normal View History

2019-07-22 14:04:44 +00:00
import { PluginClientScope } from './plugin-client-scope.type'
2019-07-26 12:44:50 +00:00
export type PluginTranslationPaths = {
[ locale: string ]: string
}
2019-07-08 12:02:03 +00:00
export type ClientScript = {
2020-01-31 15:56:52 +00:00
script: string
2019-07-22 14:04:44 +00:00
scopes: PluginClientScope[]
2019-07-08 12:02:03 +00:00
}
export type PluginPackageJson = {
name: string
2019-07-05 13:28:49 +00:00
version: string
description: string
2020-01-31 15:56:52 +00:00
engine: { peertube: string }
2020-01-31 15:56:52 +00:00
homepage: string
author: string
bugs: string
library: string
staticDirs: { [ name: string ]: string }
css: string[]
2019-07-08 12:02:03 +00:00
clientScripts: ClientScript[]
2019-07-26 12:44:50 +00:00
translations: PluginTranslationPaths
}