|
|
@ -216,7 +216,7 @@ export class LandingPage extends ViewPlugin { |
|
|
|
|
|
|
|
|
|
|
|
const invertNum = (themeQuality === 'dark') ? 1 : 0 |
|
|
|
const invertNum = (themeQuality === 'dark') ? 1 : 0 |
|
|
|
if (this.solEnv.getElementsByTagName('img')[0]) this.solEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
if (this.solEnv.getElementsByTagName('img')[0]) this.solEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
if (this.debuggerEnv.getElementsByTagName('img')[0]) this.debuggerEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
if (this.optimismEnv.getElementsByTagName('img')[0]) this.optimismEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
if (this.solhintEnv.getElementsByTagName('img')[0]) this.solhintEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
if (this.solhintEnv.getElementsByTagName('img')[0]) this.solhintEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
if (this.learnEthEnv.getElementsByTagName('img')[0]) this.learnEthEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
if (this.learnEthEnv.getElementsByTagName('img')[0]) this.learnEthEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
if (this.sourcifyEnv.getElementsByTagName('img')[0]) this.sourcifyEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
if (this.sourcifyEnv.getElementsByTagName('img')[0]) this.sourcifyEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
@ -277,10 +277,10 @@ export class LandingPage extends ViewPlugin { |
|
|
|
this.verticalIcons.select('solidity') |
|
|
|
this.verticalIcons.select('solidity') |
|
|
|
_paq.push(['trackEvent', 'pluginManager', 'userActivate', 'solidity']) |
|
|
|
_paq.push(['trackEvent', 'pluginManager', 'userActivate', 'solidity']) |
|
|
|
} |
|
|
|
} |
|
|
|
const startDebugger = async () => { |
|
|
|
const startOptimism = async () => { |
|
|
|
await this.appManager.activatePlugin('debugger') |
|
|
|
await this.appManager.activatePlugin('optimism-compiler') |
|
|
|
this.verticalIcons.select('debugger') |
|
|
|
this.verticalIcons.select('optimism-compiler') |
|
|
|
_paq.push(['trackEvent', 'pluginManager', 'userActivate', 'debugger']) |
|
|
|
_paq.push(['trackEvent', 'pluginManager', 'userActivate', 'optimism-compiler']) |
|
|
|
} |
|
|
|
} |
|
|
|
const startSolhint = async () => { |
|
|
|
const startSolhint = async () => { |
|
|
|
await this.appManager.activatePlugin(['solidity', 'solhint']) |
|
|
|
await this.appManager.activatePlugin(['solidity', 'solhint']) |
|
|
@ -385,8 +385,8 @@ export class LandingPage extends ViewPlugin { |
|
|
|
// main
|
|
|
|
// main
|
|
|
|
this.solEnv = createLargeButton('assets/img/solidityLogo.webp', 'solidityLogo', 'Solidity', startSolidity) |
|
|
|
this.solEnv = createLargeButton('assets/img/solidityLogo.webp', 'solidityLogo', 'Solidity', startSolidity) |
|
|
|
// Featured
|
|
|
|
// Featured
|
|
|
|
this.debuggerEnv = createLargeButton('assets/img/debuggerLogo.webp', 'debuggerLogo', 'Debugger', startDebugger) |
|
|
|
this.optimismEnv = createLargeButton('assets/img/optimismLogo.webp', 'optimismLogo', 'Optimism', startOptimism) |
|
|
|
this.solhintEnv = createLargeButton('assets/img/solhintLogo.png', 'solhintLogo', 'solhint linter', startSolhint) |
|
|
|
this.solhintEnv = createLargeButton('assets/img/solhintLogo.png', 'solhintLogo', 'Solhint linter', startSolhint) |
|
|
|
this.learnEthEnv = createLargeButton('assets/img/learnEthLogo.webp', 'learnEthLogo', 'LearnEth', startLearnEth) |
|
|
|
this.learnEthEnv = createLargeButton('assets/img/learnEthLogo.webp', 'learnEthLogo', 'LearnEth', startLearnEth) |
|
|
|
this.sourcifyEnv = createLargeButton('assets/img/sourcifyLogo.webp', 'sourcifyLogo', 'Sourcify', startSourceVerify) |
|
|
|
this.sourcifyEnv = createLargeButton('assets/img/sourcifyLogo.webp', 'sourcifyLogo', 'Sourcify', startSourceVerify) |
|
|
|
this.moreEnv = createLargeButton('assets/img/moreLogo.webp', 'moreLogo', 'More', startPluginManager) |
|
|
|
this.moreEnv = createLargeButton('assets/img/moreLogo.webp', 'moreLogo', 'More', startPluginManager) |
|
|
@ -395,7 +395,7 @@ export class LandingPage extends ViewPlugin { |
|
|
|
const themeQuality = globalRegistry.get('themeModule').api.currentTheme().quality |
|
|
|
const themeQuality = globalRegistry.get('themeModule').api.currentTheme().quality |
|
|
|
const invertNum = (themeQuality === 'dark') ? 1 : 0 |
|
|
|
const invertNum = (themeQuality === 'dark') ? 1 : 0 |
|
|
|
this.solEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
this.solEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
this.debuggerEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
this.optimismEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
this.solhintEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
this.solhintEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
this.learnEthEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
this.learnEthEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
this.sourcifyEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
|
this.sourcifyEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})` |
|
|
@ -505,10 +505,10 @@ export class LandingPage extends ViewPlugin { |
|
|
|
<h4>Featured Plugins</h4> |
|
|
|
<h4>Featured Plugins</h4> |
|
|
|
<div class="d-flex flex-row pt-2"> |
|
|
|
<div class="d-flex flex-row pt-2"> |
|
|
|
${this.solEnv} |
|
|
|
${this.solEnv} |
|
|
|
|
|
|
|
${this.optimismEnv} |
|
|
|
${this.learnEthEnv} |
|
|
|
${this.learnEthEnv} |
|
|
|
${this.solhintEnv} |
|
|
|
${this.solhintEnv} |
|
|
|
${this.sourcifyEnv} |
|
|
|
${this.sourcifyEnv}
|
|
|
|
${this.debuggerEnv} |
|
|
|
|
|
|
|
${this.moreEnv} |
|
|
|
${this.moreEnv} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|