diff --git a/assets/img/mythxLogo.webp b/assets/img/mythxLogo.webp new file mode 100644 index 00000000000..257f72dc598 Binary files /dev/null and b/assets/img/mythxLogo.webp differ diff --git a/assets/img/sourceVerifyLogo.webp b/assets/img/sourceVerifyLogo.webp new file mode 100644 index 00000000000..0819bfd3f9a Binary files /dev/null and b/assets/img/sourceVerifyLogo.webp differ diff --git a/src/app/ui/landing-page/landing-page.js b/src/app/ui/landing-page/landing-page.js index 503185074f9..a1af1c0369b 100644 --- a/src/app/ui/landing-page/landing-page.js +++ b/src/app/ui/landing-page/landing-page.js @@ -137,6 +137,7 @@ export class LandingPage extends ViewPlugin { this.appManager.ensureActivated('udapp') this.verticalIcons.select('vyper') } + /* const startWorkshop = () => { this.appManager.ensureActivated('box') this.appManager.ensureActivated('solidity') @@ -144,6 +145,7 @@ export class LandingPage extends ViewPlugin { this.appManager.ensureActivated('workshops') this.verticalIcons.select('workshops') } + */ const startPipeline = () => { this.appManager.ensureActivated('solidity') @@ -154,6 +156,16 @@ export class LandingPage extends ViewPlugin { this.appManager.ensureActivated('debugger') this.verticalIcons.select('debugger') } + const startMythX = () => { + this.appManager.ensureActivated('solidity') + this.appManager.ensureActivated('mythx') + this.verticalIcons.select('mythx') + } + const startSourceVerify = () => { + this.appManager.ensureActivated('solidity') + this.appManager.ensureActivated('source-verification') + this.verticalIcons.select('source-verification') + } const startPluginManager = () => { this.appManager.ensureActivated('pluginManager') this.verticalIcons.select('pluginManager') @@ -195,7 +207,8 @@ export class LandingPage extends ViewPlugin { // Featured const pipelineEnv = createEnvButton('assets/img/pipelineLogo.webp', 'pipelineLogo', 'Pipeline', startPipeline) const debuggerEnv = createEnvButton('assets/img/debuggerLogo.webp', 'debuggerLogo', 'Debugger', startDebugger) - const workshopEnv = createEnvButton('assets/img/workshopLogo.webp', 'workshopLogo', 'Workshop', startWorkshop) + const mythXEnv = createEnvButton('assets/img/mythxLogo.webp', 'mythxLogo', 'MythX', startMythX) + const sourceVerifyEnv = createEnvButton('assets/img/sourceVerifyLogo.webp', 'sourceVerifyLogo', 'Source Verify', startSourceVerify) const moreEnv = createEnvButton('assets/img/moreLogo.webp', 'moreLogo', 'More', startPluginManager) const invertNum = (globalRegistry.get('themeModule').api.currentTheme().quality === 'dark') ? 1 : 0 @@ -203,7 +216,8 @@ export class LandingPage extends ViewPlugin { vyperEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` pipelineEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` debuggerEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` - workshopEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` + mythXEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` + sourceVerifyEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` moreEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` let switchToPreviousVersion = () => { @@ -265,8 +279,9 @@ export class LandingPage extends ViewPlugin {