|
|
|
@ -10,6 +10,7 @@ import VyperResult from './components/VyperResult' |
|
|
|
|
import LocalUrlInput from './components/LocalUrl' |
|
|
|
|
import ToggleButtonGroup from 'react-bootstrap/ToggleButtonGroup' |
|
|
|
|
import ToggleButton from 'react-bootstrap/ToggleButton' |
|
|
|
|
import Button from 'react-bootstrap/Button' |
|
|
|
|
|
|
|
|
|
import vyperLogo from './logo.svg' |
|
|
|
|
import './app.css' |
|
|
|
@ -68,7 +69,7 @@ const App: React.FC = () => { |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<main id="vyper-plugin"> |
|
|
|
|
<header className="bg-light"> |
|
|
|
|
<header> |
|
|
|
|
<div className="title"> |
|
|
|
|
<img src={vyperLogo} alt="Vyper logo" /> |
|
|
|
|
<h4>yper Compiler</h4> |
|
|
|
@ -82,6 +83,11 @@ const App: React.FC = () => { |
|
|
|
|
</a> |
|
|
|
|
</header> |
|
|
|
|
<section> |
|
|
|
|
<div className="px-4 w-100"> |
|
|
|
|
<Button data-id="add-repository" className="w-100 text-dark w-100 bg-light btn-outline-primary " onClick={() => remixClient.cloneVyperRepo()}> |
|
|
|
|
Clone Vyper examples repository |
|
|
|
|
</Button> |
|
|
|
|
</div> |
|
|
|
|
<ToggleButtonGroup |
|
|
|
|
name="remote" |
|
|
|
|
onChange={setEnvironment} |
|
|
|
@ -89,7 +95,7 @@ const App: React.FC = () => { |
|
|
|
|
value={state.environment} |
|
|
|
|
> |
|
|
|
|
<ToggleButton data-id="remote-compiler" variant="secondary" name="remote" value="remote"> |
|
|
|
|
Remote Compiler |
|
|
|
|
Remote Compiler v0.2.16 |
|
|
|
|
</ToggleButton> |
|
|
|
|
<ToggleButton data-id="local-compiler" variant="secondary" name="local" value="local"> |
|
|
|
|
Local Compiler |
|
|
|
@ -101,7 +107,7 @@ const App: React.FC = () => { |
|
|
|
|
environment={state.environment} |
|
|
|
|
/> |
|
|
|
|
<WarnRemote environment={state.environment} /> |
|
|
|
|
<div id="compile-btn"> |
|
|
|
|
<div className="px-4" id="compile-btn"> |
|
|
|
|
<CompilerButton |
|
|
|
|
compilerUrl={compilerUrl()} |
|
|
|
|
contract={contract} |
|
|
|
@ -110,7 +116,7 @@ const App: React.FC = () => { |
|
|
|
|
} |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<article id="result"> |
|
|
|
|
<article id="result" className="px-2"> |
|
|
|
|
<VyperResult output={contract ? output[contract] : undefined} /> |
|
|
|
|
</article> |
|
|
|
|
</section> |
|
|
|
|