diff options
Diffstat (limited to 'packages/models/src/plugins/plugin-package-json.model.ts')
-rw-r--r-- | packages/models/src/plugins/plugin-package-json.model.ts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/models/src/plugins/plugin-package-json.model.ts b/packages/models/src/plugins/plugin-package-json.model.ts new file mode 100644 index 000000000..5b9ccec56 --- /dev/null +++ b/packages/models/src/plugins/plugin-package-json.model.ts | |||
@@ -0,0 +1,29 @@ | |||
1 | import { PluginClientScope } from './client/plugin-client-scope.type.js' | ||
2 | |||
3 | export type PluginTranslationPathsJSON = { | ||
4 | [ locale: string ]: string | ||
5 | } | ||
6 | |||
7 | export type ClientScriptJSON = { | ||
8 | script: string | ||
9 | scopes: PluginClientScope[] | ||
10 | } | ||
11 | |||
12 | export type PluginPackageJSON = { | ||
13 | name: string | ||
14 | version: string | ||
15 | description: string | ||
16 | engine: { peertube: string } | ||
17 | |||
18 | homepage: string | ||
19 | author: string | ||
20 | bugs: string | ||
21 | library: string | ||
22 | |||
23 | staticDirs: { [ name: string ]: string } | ||
24 | css: string[] | ||
25 | |||
26 | clientScripts: ClientScriptJSON[] | ||
27 | |||
28 | translations: PluginTranslationPathsJSON | ||
29 | } | ||