rm dep mainview from runtab

pull/1857/head
bunsenstraat 3 years ago
parent 42c5332b39
commit 28cbb9cda1
  1. 1
      apps/remix-ide/src/app.js
  2. 2
      apps/remix-ide/src/app/panels/terminal.js
  3. 4
      apps/remix-ide/src/app/udapp/run-tab.js
  4. 4
      apps/remix-ide/src/remixAppManager.js
  5. 2
      libs/remix-ui/plugin-manager/src/lib/components/LocalPluginForm.tsx

@ -220,7 +220,6 @@ class AppComponent {
filePanel, filePanel,
registry.get('compilersartefacts').api, registry.get('compilersartefacts').api,
networkModule, networkModule,
self.mainview,
registry.get('fileproviders/browser').api registry.get('fileproviders/browser').api
) )
const analysis = new AnalysisTab(registry) const analysis = new AnalysisTab(registry)

@ -21,7 +21,7 @@ function register (api) { KONSOLES.push(api) }
const profile = { const profile = {
displayName: 'Terminal', displayName: 'Terminal',
name: 'terminal', name: 'terminal',
methods: ['log'], methods: ['log', 'logHtml'],
events: [], events: [],
description: ' - ', description: ' - ',
version: packageJson.version version: packageJson.version

@ -34,14 +34,14 @@ const profile = {
} }
export class RunTab extends ViewPlugin { export class RunTab extends ViewPlugin {
constructor (blockchain, config, fileManager, editor, filePanel, compilersArtefacts, networkModule, mainView, fileProvider) { constructor (blockchain, config, fileManager, editor, filePanel, compilersArtefacts, networkModule, fileProvider) {
super(profile) super(profile)
this.event = new EventManager() this.event = new EventManager()
this.config = config this.config = config
this.blockchain = blockchain this.blockchain = blockchain
this.fileManager = fileManager this.fileManager = fileManager
this.editor = editor this.editor = editor
this.logCallback = (msg) => { mainView.getTerminal().logHtml(yo`<pre>${msg}</pre>`) } this.logCallback = (msg) => { this.call('terminal', 'logHtml', yo`<pre>${msg}</pre>`) }
this.filePanel = filePanel this.filePanel = filePanel
this.compilersArtefacts = compilersArtefacts this.compilersArtefacts = compilersArtefacts
this.networkModule = networkModule this.networkModule = networkModule

@ -131,8 +131,8 @@ export class RemixAppManager extends PluginManager {
} }
} }
return plugins.map(plugin => { return plugins.map(plugin => {
// return new IframePlugin(plugin) return new IframePlugin(plugin)
return new IframeReactPlugin(plugin) // return new IframeReactPlugin(plugin)
}) })
} }

@ -80,7 +80,7 @@ function LocalPluginForm ({ closeModal, visible, pluginManager }: LocalPluginFor
icon: 'assets/img/localPlugin.webp', icon: 'assets/img/localPlugin.webp',
canActivate: typeof canactivate === 'string' ? canactivate.split(',').filter(val => val).map(val => { return val.trim() }) : [] canActivate: typeof canactivate === 'string' ? canactivate.split(',').filter(val => val).map(val => { return val.trim() }) : []
} }
const localPlugin = type === 'iframe' ? new IframeReactPlugin(initialState) : new WebsocketPlugin(initialState) const localPlugin = type === 'iframe' ? new IframePlugin(initialState) : new WebsocketPlugin(initialState)
localPlugin.profile.hash = `local-${name}` localPlugin.profile.hash = `local-${name}`
targetPlugin.description = localPlugin.profile.description !== undefined ? localPlugin.profile.description : '' targetPlugin.description = localPlugin.profile.description !== undefined ? localPlugin.profile.description : ''
targetPlugin.events = localPlugin.profile.events !== undefined ? localPlugin.profile.events : [] targetPlugin.events = localPlugin.profile.events !== undefined ? localPlugin.profile.events : []

Loading…
Cancel
Save