pull/1857/head
bunsenstraat 3 years ago
parent 9aa5a1a9a2
commit 2cb8dd88ba
  1. 8
      apps/remix-ide/src/app/panels/main-view.tsx
  2. 2
      apps/remix-ide/src/remixAppManager.js
  3. 1
      libs/remix-ui/app/src/lib/remix-app/components/panels/iFramePluginView.tsx

@ -0,0 +1,8 @@
import { Plugin } from '@remixproject/engine'
export class MainView {
fileManager: Plugin
constructor (contextualListener, editor, mainPanel, fileManager, appManager, terminal) {
this.fileManager = fileManager
}
}

@ -4,6 +4,7 @@ import { IframeReactPlugin } from '@remix-ui/app'
import { EventEmitter } from 'events'
import QueryParams from './lib/query-params'
import { PermissionHandler } from './app/ui/persmission-handler'
import { IframePlugin } from '@remixproject/engine-web'
const _paq = window._paq = window._paq || []
const requiredModules = [ // services + layout views + system views
@ -130,6 +131,7 @@ export class RemixAppManager extends PluginManager {
}
}
return plugins.map(plugin => {
// return new IframePlugin(plugin)
return new IframeReactPlugin(plugin)
})
}

@ -10,6 +10,7 @@ const IFramePluginView = (props: IFramePluginViewProps) => {
const [loading, isLoading] = useState<boolean>(true)
const loaded = () => {
console.log(props.plugin.profile.name + "loaded")
props.plugin.shake(ref.current)
isLoading(false)
}

Loading…
Cancel
Save