|
|
@ -30,10 +30,11 @@ function HomeTabLearn ({plugin}: HomeTabLearnProps) { |
|
|
|
window.open("https://remix-ide.readthedocs.io/en/latest/remix_tutorials_learneth.html?highlight=learneth#learneth-tutorial-repos", '_blank') |
|
|
|
window.open("https://remix-ide.readthedocs.io/en/latest/remix_tutorials_learneth.html?highlight=learneth#learneth-tutorial-repos", '_blank') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const startLearnEth = async () => { |
|
|
|
const startLearnEthTutorial = async (tutorial) => { |
|
|
|
await plugin.appManager.activatePlugin(['solidity', 'LearnEth', 'solidityUnitTesting']) |
|
|
|
await plugin.appManager.activatePlugin(['solidity', 'LearnEth', 'solidityUnitTesting']) |
|
|
|
|
|
|
|
plugin.call('LearnEth', 'startTutorial', 'ethereum/remix-workshops', 'master', tutorial) |
|
|
|
plugin.verticalIcons.select('LearnEth') |
|
|
|
plugin.verticalIcons.select('LearnEth') |
|
|
|
_paq.push(['trackEvent', 'homeTab', 'startLearnEth']) |
|
|
|
_paq.push(['trackEvent', 'homeTab', 'startLearnEthTutorial']) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
@ -52,19 +53,19 @@ function HomeTabLearn ({plugin}: HomeTabLearnProps) { |
|
|
|
<label className="float-left" style={{fontSize: "1rem"}}>Remix Basics</label> |
|
|
|
<label className="float-left" style={{fontSize: "1rem"}}>Remix Basics</label> |
|
|
|
{(state.visibleTutorial === VisibleTutorial.Basics) && <div className="pt-2 d-flex flex-column text-left"> |
|
|
|
{(state.visibleTutorial === VisibleTutorial.Basics) && <div className="pt-2 d-flex flex-column text-left"> |
|
|
|
<span>Introduction to Remix's interface and concepts used in Ethereum, as well as the basics of Solidity.</span> |
|
|
|
<span>Introduction to Remix's interface and concepts used in Ethereum, as well as the basics of Solidity.</span> |
|
|
|
<button className="btn-sm mt-2 btn-secondary" style={{width: 'fit-content'}} onClick={() => startLearnEth()}>Get Started</button> |
|
|
|
<button className="btn-sm mt-2 btn-secondary" style={{width: 'fit-content'}} onClick={() => startLearnEthTutorial('basics')}>Get Started</button> |
|
|
|
</div>} |
|
|
|
</div>} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<button className="d-flex flex-column btn border" onClick={() => setState((prevState) => {return { ...prevState, visibleTutorial: VisibleTutorial.Intermediate }})}> |
|
|
|
<button className="d-flex flex-column btn border" onClick={() => setState((prevState) => {return { ...prevState, visibleTutorial: VisibleTutorial.Intermediate }})}> |
|
|
|
<label className="float-left" style={{fontSize: "1rem"}}>Remix Intermediate</label> |
|
|
|
<label className="float-left" style={{fontSize: "1rem"}}>Remix Intermediate</label> |
|
|
|
{(state.visibleTutorial === VisibleTutorial.Intermediate) && <div className="pt-2 d-flex flex-column text-left">Using the web3.js to interact with a contract. Using Recorder tool. |
|
|
|
{(state.visibleTutorial === VisibleTutorial.Intermediate) && <div className="pt-2 d-flex flex-column text-left">Using the web3.js to interact with a contract. Using Recorder tool. |
|
|
|
<button className="btn-sm mt-2 btn-secondary" style={{width: 'fit-content'}} onClick={() => startLearnEth()}>Get Started</button> |
|
|
|
<button className="btn-sm mt-2 btn-secondary" style={{width: 'fit-content'}} onClick={() => startLearnEthTutorial('useofweb3js')}>Get Started</button> |
|
|
|
</div>} |
|
|
|
</div>} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<button className="d-flex flex-column btn border" onClick={() => setState((prevState) => {return { ...prevState, visibleTutorial: VisibleTutorial.Advanced }})}> |
|
|
|
<button className="d-flex flex-column btn border" onClick={() => setState((prevState) => {return { ...prevState, visibleTutorial: VisibleTutorial.Advanced }})}> |
|
|
|
<label className="float-left" style={{fontSize: "1rem"}}>Remix Advanced</label> |
|
|
|
<label className="float-left" style={{fontSize: "1rem"}}>Remix Advanced</label> |
|
|
|
{(state.visibleTutorial === VisibleTutorial.Advanced) && <div className="pt-2 d-flex flex-column text-left">Learn the Proxy Pattern and working with Libraries in Remix. Learn to use the Debugger. |
|
|
|
{(state.visibleTutorial === VisibleTutorial.Advanced) && <div className="pt-2 d-flex flex-column text-left">Learn the Proxy Pattern and working with Libraries in Remix. Learn to use the Debugger. |
|
|
|
<button className="btn-sm mt-2 btn-secondary" style={{width: 'fit-content'}} onClick={() => startLearnEth()}>Get Started</button> |
|
|
|
<button className="btn-sm mt-2 btn-secondary" style={{width: 'fit-content'}} onClick={() => startLearnEthTutorial('deploylibraries')}>Get Started</button> |
|
|
|
</div>} |
|
|
|
</div>} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|