|
|
@ -421,6 +421,13 @@ Please make a backup of your contracts and start using http://remix.ethereum.org |
|
|
|
pluginManagerComponent.setApp(appManager) |
|
|
|
pluginManagerComponent.setApp(appManager) |
|
|
|
pluginManagerComponent.setStore(appStore) |
|
|
|
pluginManagerComponent.setStore(appStore) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._components.editorpanel.init() |
|
|
|
|
|
|
|
self._components.fileManager.init() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._view.mainpanel.appendChild(self._components.editorpanel.render()) |
|
|
|
|
|
|
|
self._view.iconpanel.appendChild(verticalIconComponent.render()) |
|
|
|
|
|
|
|
self._view.swappanel.appendChild(swapPanelComponent.render()) |
|
|
|
|
|
|
|
|
|
|
|
let filePanel = new FilePanel() |
|
|
|
let filePanel = new FilePanel() |
|
|
|
registry.put({api: filePanel, name: 'filepanel'}) |
|
|
|
registry.put({api: filePanel, name: 'filepanel'}) |
|
|
|
let compileTab = new CompileTab(self._components.registry) |
|
|
|
let compileTab = new CompileTab(self._components.registry) |
|
|
@ -433,7 +440,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org |
|
|
|
let sourceHighlighters = registry.get('editor').api.sourceHighlighters |
|
|
|
let sourceHighlighters = registry.get('editor').api.sourceHighlighters |
|
|
|
let configProvider = self._components.filesProviders['config'] |
|
|
|
let configProvider = self._components.filesProviders['config'] |
|
|
|
|
|
|
|
|
|
|
|
appStore.addEntities([ |
|
|
|
appManager.init([ |
|
|
|
{ profile: this.profile(), api: this }, |
|
|
|
{ profile: this.profile(), api: this }, |
|
|
|
{ profile: udapp.profile(), api: udapp }, |
|
|
|
{ profile: udapp.profile(), api: udapp }, |
|
|
|
{ profile: fileManager.profile(), api: fileManager }, |
|
|
|
{ profile: fileManager.profile(), api: fileManager }, |
|
|
@ -442,40 +449,25 @@ Please make a backup of your contracts and start using http://remix.ethereum.org |
|
|
|
{ profile: txListenerModuleProxy.profile(), api: txListenerModuleProxy }, |
|
|
|
{ profile: txListenerModuleProxy.profile(), api: txListenerModuleProxy }, |
|
|
|
{ profile: compileTab.profile(), api: compileTab }, |
|
|
|
{ profile: compileTab.profile(), api: compileTab }, |
|
|
|
{ profile: filePanel.profile(), api: filePanel }, |
|
|
|
{ profile: filePanel.profile(), api: filePanel }, |
|
|
|
{ profile: test.profile(), api: test }, |
|
|
|
|
|
|
|
{ profile: support.profile(), api: support }, |
|
|
|
{ profile: support.profile(), api: support }, |
|
|
|
{ profile: debug.profile(), api: debug }, |
|
|
|
|
|
|
|
{ profile: analysis.profile(), api: analysis }, |
|
|
|
|
|
|
|
{ profile: settings.profile(), api: settings }, |
|
|
|
{ profile: settings.profile(), api: settings }, |
|
|
|
{ profile: run.profile(), api: run }, |
|
|
|
{ profile: run.profile(), api: run }, |
|
|
|
{ profile: pluginManagerComponent.profile(), api: pluginManagerComponent }]) |
|
|
|
{ profile: pluginManagerComponent.profile(), api: pluginManagerComponent }]) |
|
|
|
|
|
|
|
|
|
|
|
appStore.addEntities(appManager.plugins()) |
|
|
|
appManager.registerMany([ |
|
|
|
|
|
|
|
{ profile: debug.profile(), api: debug },
|
|
|
|
|
|
|
|
{ profile: analysis.profile(), api: analysis }, |
|
|
|
|
|
|
|
{ profile: test.profile(), api: test } |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
appManager.registerMany(appManager.plugins()) |
|
|
|
|
|
|
|
|
|
|
|
swapPanelApi.event.on('toggle', () => { |
|
|
|
swapPanelApi.event.on('toggle', () => { |
|
|
|
this._components.resizeFeature.panel1.clientWidth !== 0 ? this._components.resizeFeature.minimize() : this._components.resizeFeature.maximise()
|
|
|
|
this._components.resizeFeature.panel1.clientWidth !== 0 ? this._components.resizeFeature.minimize() : this._components.resizeFeature.maximise()
|
|
|
|
}) |
|
|
|
}) |
|
|
|
swapPanelApi.event.on('showing', () => { this._components.resizeFeature.panel1.clientWidth === 0 ? this._components.resizeFeature.maximise() : '' }) |
|
|
|
swapPanelApi.event.on('showing', () => { this._components.resizeFeature.panel1.clientWidth === 0 ? this._components.resizeFeature.maximise() : '' }) |
|
|
|
|
|
|
|
|
|
|
|
self._components.editorpanel.init() |
|
|
|
|
|
|
|
self._components.fileManager.init() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._view.mainpanel.appendChild(self._components.editorpanel.render()) |
|
|
|
|
|
|
|
self._view.iconpanel.appendChild(verticalIconComponent.render()) |
|
|
|
|
|
|
|
self._view.swappanel.appendChild(swapPanelComponent.render()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
appManager.activateOne('App') |
|
|
|
|
|
|
|
appManager.activateOne('Udapp') |
|
|
|
|
|
|
|
appManager.activateOne('FileManager') |
|
|
|
|
|
|
|
appManager.activateOne('SourceHighlighters') |
|
|
|
|
|
|
|
appManager.activateOne('config') |
|
|
|
|
|
|
|
appManager.activateOne('TxListener') |
|
|
|
|
|
|
|
appManager.activateOne('FilePanel') |
|
|
|
|
|
|
|
appManager.activateOne('SolidityCompile') |
|
|
|
|
|
|
|
appManager.activateOne('Run') |
|
|
|
|
|
|
|
appManager.activateOne('PluginManager') |
|
|
|
|
|
|
|
appManager.activateOne('Settings') |
|
|
|
|
|
|
|
appManager.activateOne('Support') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
verticalIconComponent.select('FilePanel') |
|
|
|
verticalIconComponent.select('FilePanel') |
|
|
|
|
|
|
|
|
|
|
|