From 45d2281abf4a04c9abf4ab3350065250749450fa Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 27 Dec 2021 13:51:07 +0100 Subject: [PATCH] start main --- apps/remix-ide/src/app/panels/main-view.tsx | 8 ++++++++ apps/remix-ide/src/remixAppManager.js | 2 ++ .../lib/remix-app/components/panels/iFramePluginView.tsx | 1 + 3 files changed, 11 insertions(+) create mode 100644 apps/remix-ide/src/app/panels/main-view.tsx diff --git a/apps/remix-ide/src/app/panels/main-view.tsx b/apps/remix-ide/src/app/panels/main-view.tsx new file mode 100644 index 0000000000..b92439ac2a --- /dev/null +++ b/apps/remix-ide/src/app/panels/main-view.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 + } +} diff --git a/apps/remix-ide/src/remixAppManager.js b/apps/remix-ide/src/remixAppManager.js index 28e668f0f6..7239642f8f 100644 --- a/apps/remix-ide/src/remixAppManager.js +++ b/apps/remix-ide/src/remixAppManager.js @@ -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) }) } diff --git a/libs/remix-ui/app/src/lib/remix-app/components/panels/iFramePluginView.tsx b/libs/remix-ui/app/src/lib/remix-app/components/panels/iFramePluginView.tsx index f56ea4f863..addd406948 100644 --- a/libs/remix-ui/app/src/lib/remix-app/components/panels/iFramePluginView.tsx +++ b/libs/remix-ui/app/src/lib/remix-app/components/panels/iFramePluginView.tsx @@ -10,6 +10,7 @@ const IFramePluginView = (props: IFramePluginViewProps) => { const [loading, isLoading] = useState(true) const loaded = () => { + console.log(props.plugin.profile.name + "loaded") props.plugin.shake(ref.current) isLoading(false) }