This commit is contained in:
peter
2019-08-04 00:57:23 +02:00
parent 6601b4bf2f
commit 6aae2146e9
14 changed files with 90 additions and 171 deletions
+13 -1
View File
@@ -20,6 +20,8 @@ export default class PluginManagerPlugin extends PluginManager implements Plugin
constructor(){
super()
this.loadedPlugins[this.name] = {backend: this, frontend: this.loadFrontend(this.name)}
}
exportRPCs(): import("frontblock-generic/Plugin").socketioRPC[] {
@@ -75,12 +77,22 @@ export default class PluginManagerPlugin extends PluginManager implements Plugin
visibility: "private",
rpc: async(conf) => { return this.updateConfig(conf) },
type: 'call'
},{
name: "extractPlugin",
visibility: "private",
rpc: async(conf) => { return this.extractPlugin(conf) },
type: 'call'
},{
name: "downloadPlugin",
visibility: "private",
rpc: async(conf) => { return this.downloadPlugin(conf) },
type: 'call'
}
]
}
async start(): Promise<void> {
await this.loadPlugin("admin")
}
stop(): void {