parent
1303f3122c
commit
61294b2a69
@ -1,25 +1,25 @@ |
|||||||
import { PluginClient } from '@remixproject/plugin' |
import { PluginClient } from '@remixproject/plugin' |
||||||
import { createClient } from '@remixproject/plugin-webview' |
import { createClient } from '@remixproject/plugin-webview' |
||||||
|
import { DocGen } from './plugins/docgen' |
||||||
|
|
||||||
export class DocGenClient extends PluginClient { |
export class DocGenClient extends PluginClient { |
||||||
private client |
private client |
||||||
|
private docgen |
||||||
|
|
||||||
constructor() { |
constructor() { |
||||||
super() |
super() |
||||||
this.client = createClient(this) |
this.client = createClient(this) |
||||||
|
// this.docgen = new DocGen()
|
||||||
this.methods = ['generateDocs', 'publishDocs'] |
this.methods = ['generateDocs', 'publishDocs'] |
||||||
|
|
||||||
this.client.onload(async () => { |
|
||||||
}) |
|
||||||
} |
} |
||||||
|
loadClient() { |
||||||
|
this.client.onload() |
||||||
|
} |
||||||
async generateDocs() { |
async generateDocs() { |
||||||
console.log('docgen client generateDocs') |
console.log('docgen client generateDocs') |
||||||
// await this.client.call('docgen', 'docgen', [])
|
|
||||||
} |
} |
||||||
|
|
||||||
async publishDocs() { |
async publishDocs() { |
||||||
console.log('docgen client publishDocs') |
console.log('docgen client publishDocs') |
||||||
// await this.client.call('docgen', 'docgen', [])
|
|
||||||
} |
} |
||||||
} |
} |
Loading…
Reference in new issue