2021-05-11 10:04:47 +00:00
|
|
|
import { PluginClientScope } from './client/plugin-client-scope.type'
|
2019-07-22 14:04:44 +00:00
|
|
|
|
2021-12-24 09:40:51 +00:00
|
|
|
export type PluginTranslationPathsJSON = {
|
2019-07-26 12:44:50 +00:00
|
|
|
[ locale: string ]: string
|
|
|
|
}
|
|
|
|
|
2021-12-24 09:40:51 +00:00
|
|
|
export type ClientScriptJSON = {
|
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
|
|
|
}
|
|
|
|
|
2021-12-24 09:40:51 +00:00
|
|
|
export type PluginPackageJSON = {
|
2019-07-05 11:54:32 +00:00
|
|
|
name: string
|
2019-07-05 13:28:49 +00:00
|
|
|
version: string
|
2019-07-05 11:54:32 +00:00
|
|
|
description: string
|
2020-01-31 15:56:52 +00:00
|
|
|
engine: { peertube: string }
|
2019-07-05 11:54:32 +00:00
|
|
|
|
2020-01-31 15:56:52 +00:00
|
|
|
homepage: string
|
|
|
|
author: string
|
|
|
|
bugs: string
|
|
|
|
library: string
|
2019-07-05 11:54:32 +00:00
|
|
|
|
|
|
|
staticDirs: { [ name: string ]: string }
|
|
|
|
css: string[]
|
|
|
|
|
2021-12-24 09:40:51 +00:00
|
|
|
clientScripts: ClientScriptJSON[]
|
2019-07-26 12:44:50 +00:00
|
|
|
|
2021-12-24 09:40:51 +00:00
|
|
|
translations: PluginTranslationPathsJSON
|
2019-07-05 11:54:32 +00:00
|
|
|
}
|