|
|
@ -16,9 +16,8 @@ export class DocGenClient extends PluginClient { |
|
|
|
constructor() { |
|
|
|
constructor() { |
|
|
|
super() |
|
|
|
super() |
|
|
|
this.eventEmitter = new EventEmitter() |
|
|
|
this.eventEmitter = new EventEmitter() |
|
|
|
|
|
|
|
this.methods = ['generateDocs', 'viewDocs'] |
|
|
|
createClient(this) |
|
|
|
createClient(this) |
|
|
|
// this.docgen = new DocGen()
|
|
|
|
|
|
|
|
this.methods = ['generateDocs', 'publishDocs', 'viewDocs'] |
|
|
|
|
|
|
|
this.onload().then(async () => { |
|
|
|
this.onload().then(async () => { |
|
|
|
console.log('docgen client loaded') |
|
|
|
console.log('docgen client loaded') |
|
|
|
await this.setListeners() |
|
|
|
await this.setListeners() |
|
|
@ -28,7 +27,7 @@ export class DocGenClient extends PluginClient { |
|
|
|
async setListeners() { |
|
|
|
async setListeners() { |
|
|
|
this.currentTheme = await this.call('theme', 'currentTheme') |
|
|
|
this.currentTheme = await this.call('theme', 'currentTheme') |
|
|
|
|
|
|
|
|
|
|
|
this.on("theme", "themeChanged", (theme: any) => { |
|
|
|
this.on('theme', 'themeChanged', (theme: any) => { |
|
|
|
this.currentTheme = theme |
|
|
|
this.currentTheme = theme |
|
|
|
this.eventEmitter.emit('themeChanged', this.currentTheme) |
|
|
|
this.eventEmitter.emit('themeChanged', this.currentTheme) |
|
|
|
}); |
|
|
|
}); |
|
|
|