From 4a56e1d53ca01e12d40b5cb34fd910f8bf978157 Mon Sep 17 00:00:00 2001 From: Grandschtroumpf Date: Tue, 30 Jul 2019 13:58:44 +0200 Subject: [PATCH] Add shortcut for solidity workshop --- src/app/ui/landing-page/landing-page.js | 49 ++++++++++++++----------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/src/app/ui/landing-page/landing-page.js b/src/app/ui/landing-page/landing-page.js index 68b6d7db7e..8ac6ab553e 100644 --- a/src/app/ui/landing-page/landing-page.js +++ b/src/app/ui/landing-page/landing-page.js @@ -121,43 +121,49 @@ export class LandingPage extends ViewPlugin { }) } - let learnMore = () => { window.open('https://remix-ide.readthedocs.io/en/latest/layout.html', '_blank') } + const learnMore = () => { window.open('https://remix-ide.readthedocs.io/en/latest/layout.html', '_blank') } - let startSolidity = () => { + const startSolidity = () => { this.appManager.ensureActivated('solidity') this.appManager.ensureActivated('udapp') this.appManager.ensureActivated('solidityStaticAnalysis') this.appManager.ensureActivated('solidityUnitTesting') this.verticalIcons.select('solidity') } - let startVyper = () => { + const startVyper = () => { this.appManager.ensureActivated('vyper') this.appManager.ensureActivated('udapp') this.verticalIcons.select('vyper') } + const startWorkshop = () => { + this.appManager.ensureActivated('solidity') + this.appManager.ensureActivated('solidityUnitTesting') + this.appManager.ensureActivated('workshop') + this.verticalIcons.select('workshop') + } - let startPipeline = () => { + const startPipeline = () => { this.appManager.ensureActivated('solidity') this.appManager.ensureActivated('pipeline') this.appManager.ensureActivated('udapp') } - let startDebugger = () => { + const startDebugger = () => { this.appManager.ensureActivated('debugger') this.verticalIcons.select('debugger') } - let startPluginManager = () => { + const startPluginManager = () => { this.appManager.ensureActivated('pluginManager') this.verticalIcons.select('pluginManager') } - let createNewFile = () => { + const createNewFile = () => { let fileExplorer = globalRegistry.get('fileexplorer/browser').api fileExplorer.createNewFile() } - let connectToLocalhost = () => { + const connectToLocalhost = () => { this.appManager.ensureActivated('remixd') } - let importFromGist = () => { + const importFromGist = () => { this.gistHandler.loadFromGist({gist: ''}, globalRegistry.get('filemanager').api) this.verticalIcons.select('fileExplorers') } @@ -182,8 +188,8 @@ export class LandingPage extends ViewPlugin {

The new layout has arrived

- - + +
@@ -192,13 +198,14 @@ export class LandingPage extends ViewPlugin {

Environments

- - + + +

File

-

{ createNewFile() }}>New File

+

createNewFile()}>New File

-

{ connectToLocalhost() }}>Connect to Localhost

+

connectToLocalhost()}>Connect to Localhost

Import From:

- - - - - - + + + + + +