remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/libs/remix-ui/terminal/src/lib/terminalWelcome.tsx

39 lines
1.5 KiB

3 years ago
import React, { useEffect } from 'react' // eslint-disable-line
4 years ago
3 years ago
const TerminalWelcomeMessage = ({ packageJson, storage }) => {
useEffect(() => {
console.log(storage)
}, [
storage
])
4 years ago
return (
<div className="remix_ui_terminal_block px-4 " data-id="block_null">
3 years ago
<div className="remix_ui_terminal_welcome"> Welcome to Remix {packageJson} </div><br />
3 years ago
<div className="">Your files are stored in {(window as any).remixFileSystem.name}, {storage && storage.usage} used</div><br />
4 years ago
<div>You can use this terminal to: </div>
<ul className='ml-0 mr-4'>
4 years ago
<li>Check transactions details and start debugging.</li>
<li>Execute JavaScript scripts:
<br />
<i> - Input a script directly in the command line interface </i>
<br />
<i> - Select a Javascript file in the file explorer and then run \`remix.execute()\` or \`remix.exeCurrent()\` in the command line interface </i>
<br />
<i> - Right click on a JavaScript file in the file explorer and then click \`Run\` </i>
</li>
</ul>
4 years ago
<div>The following libraries are accessible:</div>
<ul className='ml-0 mr-4'>
<li><a target="_blank" href="https://web3js.readthedocs.io/en/1.0/">web3 version 1.5.2</a></li>
4 years ago
<li><a target="_blank" href="https://docs.ethers.io">ethers.js</a> </li>
<li>remix</li>
4 years ago
</ul>
<div>Type the library name to see available commands.</div>
4 years ago
</div>
)
}
export default TerminalWelcomeMessage