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