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