PeerTube/shared/models/plugins/plugin-package-json.model.ts

30 lines
562 B
TypeScript
Raw Normal View History

2021-05-11 12:04:47 +02:00
import { PluginClientScope } from './client/plugin-client-scope.type'
2019-07-22 16:04:44 +02:00
2021-12-24 10:40:51 +01:00
export type PluginTranslationPathsJSON = {
2019-07-26 14:44:50 +02:00
[ locale: string ]: string
}
2021-12-24 10:40:51 +01:00
export type ClientScriptJSON = {
2020-01-31 16:56:52 +01:00
script: string
2019-07-22 16:04:44 +02:00
scopes: PluginClientScope[]
2019-07-08 14:02:03 +02:00
}
2021-12-24 10:40:51 +01:00
export type PluginPackageJSON = {
name: string
2019-07-05 15:28:49 +02:00
version: string
description: string
2020-01-31 16:56:52 +01:00
engine: { peertube: string }
2020-01-31 16:56:52 +01:00
homepage: string
author: string
bugs: string
library: string
staticDirs: { [ name: string ]: string }
css: string[]
2021-12-24 10:40:51 +01:00
clientScripts: ClientScriptJSON[]
2019-07-26 14:44:50 +02:00
2021-12-24 10:40:51 +01:00
translations: PluginTranslationPathsJSON
}