|
|
@ -240,53 +240,43 @@ export class LandingPage extends ViewPlugin { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const startSolidity = () => { |
|
|
|
|
|
|
|
this.appManager.ensureActivated('solidity') |
|
|
|
const startSolidity = async () => { |
|
|
|
this.appManager.ensureActivated('udapp') |
|
|
|
await this.appManager.activatePlugin(['solidity', 'udapp', 'solidityStaticAnalysis', 'solidityUnitTesting']) |
|
|
|
this.appManager.ensureActivated('solidityStaticAnalysis') |
|
|
|
|
|
|
|
this.appManager.ensureActivated('solidityUnitTesting') |
|
|
|
|
|
|
|
this.verticalIcons.select('solidity') |
|
|
|
this.verticalIcons.select('solidity') |
|
|
|
} |
|
|
|
} |
|
|
|
/* |
|
|
|
|
|
|
|
const startWorkshop = () => { |
|
|
|
|
|
|
|
this.appManager.ensureActivated('box') |
|
|
|
|
|
|
|
this.appManager.ensureActivated('solidity') |
|
|
|
|
|
|
|
this.appManager.ensureActivated('solidityUnitTesting') |
|
|
|
|
|
|
|
this.appManager.ensureActivated('workshops') |
|
|
|
|
|
|
|
this.verticalIcons.select('workshops') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const startPipeline = () => { |
|
|
|
const startPipeline = () => { |
|
|
|
this.appManager.ensureActivated('solidity') |
|
|
|
this.appManager.activatePlugin(['solidity', 'pipeline', 'udapp']) |
|
|
|
this.appManager.ensureActivated('pipeline') |
|
|
|
|
|
|
|
this.appManager.ensureActivated('udapp') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
const startDebugger = () => { |
|
|
|
const startDebugger = async () => { |
|
|
|
this.appManager.ensureActivated('debugger') |
|
|
|
await this.appManager.activatePlugin('debugger') |
|
|
|
this.verticalIcons.select('debugger') |
|
|
|
this.verticalIcons.select('debugger') |
|
|
|
} |
|
|
|
} |
|
|
|
const startMythX = () => { |
|
|
|
const startMythX = async () => { |
|
|
|
this.appManager.ensureActivated('solidity') |
|
|
|
await this.appManager.activatePlugin(['solidity', 'mythx']) |
|
|
|
this.appManager.ensureActivated('mythx') |
|
|
|
|
|
|
|
this.verticalIcons.select('mythx') |
|
|
|
this.verticalIcons.select('mythx') |
|
|
|
} |
|
|
|
} |
|
|
|
const startSourceVerify = () => { |
|
|
|
const startSourceVerify = async () => { |
|
|
|
this.appManager.ensureActivated('solidity') |
|
|
|
await this.appManager.activatePlugin(['solidity', 'source-verification']) |
|
|
|
this.appManager.ensureActivated('source-verification') |
|
|
|
|
|
|
|
this.verticalIcons.select('source-verification') |
|
|
|
this.verticalIcons.select('source-verification') |
|
|
|
} |
|
|
|
} |
|
|
|
const startPluginManager = () => { |
|
|
|
const startPluginManager = async () => { |
|
|
|
this.appManager.ensureActivated('pluginManager') |
|
|
|
await this.appManager.activatePlugin('pluginManager') |
|
|
|
this.verticalIcons.select('pluginManager') |
|
|
|
this.verticalIcons.select('pluginManager') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
const startWorkshop = async () => { |
|
|
|
|
|
|
|
await this.appManager.activatePlugin(['box', 'solidity', 'solidityUnitTesting', 'workshops']) |
|
|
|
|
|
|
|
this.verticalIcons.select('workshops') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
const createNewFile = () => { |
|
|
|
const createNewFile = () => { |
|
|
|
const fileExplorer = globalRegistry.get('fileexplorer/browser').api |
|
|
|
const fileExplorer = globalRegistry.get('fileexplorer/browser').api |
|
|
|
fileExplorer.createNewFile() |
|
|
|
fileExplorer.createNewFile() |
|
|
|
} |
|
|
|
} |
|
|
|
const connectToLocalhost = () => { |
|
|
|
const connectToLocalhost = () => { |
|
|
|
this.appManager.ensureActivated('remixd') |
|
|
|
this.appManager.activatePlugin('remixd') |
|
|
|
} |
|
|
|
} |
|
|
|
const importFromGist = () => { |
|
|
|
const importFromGist = () => { |
|
|
|
this.gistHandler.loadFromGist({ gist: '' }, globalRegistry.get('filemanager').api) |
|
|
|
this.gistHandler.loadFromGist({ gist: '' }, globalRegistry.get('filemanager').api) |
|
|
|