Move tab views in separate files: contract-tab.js, settings-tab.js, debugger-tab.js, analysis-tab.js, files-tab.js
parent
d61d9e106f
commit
a9a2b7d3e5
@ -0,0 +1,22 @@ |
||||
var yo = require('yo-yo') |
||||
|
||||
module.exports = analysisTab |
||||
|
||||
function analysisTab () { |
||||
return yo` |
||||
<div id="staticanalysisView"> |
||||
<p> This tab provides support for <b>formal verification</b> of Solidity contracts.<br> |
||||
This feature is still in development and thus also not yet well documented, |
||||
but you can find some information |
||||
<a href="http://solidity.readthedocs.io/en/latest/security-considerations.html#formal-verification">here</a>. |
||||
The compiler generates input to be verified |
||||
(or report errors). Please paste the text below into |
||||
<a href="http://why3.lri.fr/try/">http://why3.lri.fr/try/</a>
|
||||
to actually perform the verification. |
||||
We plan to support direct integration in the future. |
||||
</p> |
||||
<textarea id="formalVerificationInput" readonly="readonly"></textarea> |
||||
<div id="formalVerificationErrors"></div> |
||||
</div> |
||||
` |
||||
} |
@ -0,0 +1,7 @@ |
||||
var yo = require('yo-yo') |
||||
|
||||
module.exports = debuggerTab |
||||
|
||||
function debuggerTab () { |
||||
return yo` <div id="debugView"><div id="debugger"></div></div>` |
||||
} |
@ -0,0 +1,25 @@ |
||||
var yo = require('yo-yo') |
||||
|
||||
module.exports = filesTab |
||||
|
||||
function filesTab () { |
||||
return yo` |
||||
<div id="publishView"> |
||||
<p> |
||||
<button id="gist" title="Publish all files as public gist on github.com"> |
||||
<i class="fa fa-github"></i> |
||||
Publish Gist |
||||
</button> |
||||
Publish all open files to an anonymous github gist.<br> |
||||
<button id="copyOver" title="Copy all files to another instance of browser-solidity."> |
||||
Copy files |
||||
</button> |
||||
Copy all files to another instance of Browser-solidity. |
||||
</p> |
||||
<p>You can also load a gist by adding the following |
||||
<span class="pre">#gist=GIST_ID</span> |
||||
to your url, where GIST_ID is the id of the gist to load. |
||||
</p> |
||||
</div> |
||||
` |
||||
} |
@ -0,0 +1,18 @@ |
||||
var yo = require('yo-yo') |
||||
|
||||
module.exports = settingsTab |
||||
|
||||
function settingsTab () { |
||||
return yo` |
||||
<div id="settingsView"> |
||||
<div class="version crow"><strong>Current Solidity version:</strong> <span id="version">( Loading... )</span></div> |
||||
<div class="crow">Switch version: <select id="versionSelector"></select></div> |
||||
<div class="crow"> |
||||
<label for="editorWrap"><input id="editorWrap" type="checkbox">Text Wrap</label> |
||||
<label for="optimize"><input id="optimize" type="checkbox">Enable Optimization</label> |
||||
<label for="autoCompile"><input id="autoCompile" type="checkbox" checked>Auto Compile</label> |
||||
<button id="compile" title="Compile source code">Compile</button> |
||||
</div> |
||||
</div> |
||||
` |
||||
} |
Loading…
Reference in new issue