(url: string, viewName: string)
| 24 | } |
| 25 | |
| 26 | export function getWebviewPlugin(url: string, viewName: string) { |
| 27 | function webviewPlugin(ctx: IPublicModelPluginContext) { |
| 28 | const { skeleton } = ctx; |
| 29 | return { |
| 30 | init() { |
| 31 | skeleton.add({ |
| 32 | area: 'mainArea', |
| 33 | name: 'designer', |
| 34 | type: 'Widget', |
| 35 | content: DesignerView, |
| 36 | contentProps: { |
| 37 | ctx, |
| 38 | url, |
| 39 | viewName, |
| 40 | }, |
| 41 | }); |
| 42 | }, |
| 43 | }; |
| 44 | } |
| 45 | |
| 46 | webviewPlugin.pluginName = '___webview_plugin___'; |
| 47 | |
| 48 | return webviewPlugin; |
| 49 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…