Remove commends and fix html markup

This commit is contained in:
boryslevytskyi
2017-05-13 21:24:51 +03:00
parent 10f0da182e
commit 7cfc62cec2
2 changed files with 4 additions and 17 deletions

View File

@@ -19,13 +19,6 @@ export default {
cmd.commands({
'help': function(c) {
// TODO: implement latest behavior - pull up help result to the top
// var helpResult = document.querySelector('.result .helpResultTpl');
// if(helpResult != null) {
// moveResultUp(helpResult);
// return;
// }
appState.addCommandResult(new HelpResult(c.input));
},
'clear': function() {
@@ -41,12 +34,6 @@ export default {
appState.setUiTheme('light');
},
'about': function(c) {
//
// TODO: var aboutResult = document.querySelector('.result .aboutTpl');
// if(aboutResult != null) {
// moveResultUp(aboutResult);
// return;
// }
appState.addCommandResult(new AboutResult(c.input));
},
'-debug': function() {

View File

@@ -5,7 +5,7 @@ export default class HelpResultView extends React.Component {
return <div className="help helpResultTpl">
<div style={{overflow: "hidden"}}>
<div style={{float: "left", "marginRight": "20px"}}>
<p className="section">
<div className="section">
<strong>Supported Commands</strong>
<ul>
<li><code>23 ^ 34</code> type bitwise expression to see result in binary (only positive integers are supported now)</li>
@@ -17,10 +17,10 @@ export default class HelpResultView extends React.Component {
<li><code>light</code> set Light theme</li>
<li><code>about</code> about the app</li>
</ul>
</p>
</div>
</div>
<div style={{"float":"left"}}>
<p className="section">
<div className="section">
<strong>Supported Bitwise Operations</strong><br/>
<small>
<a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators">
@@ -36,7 +36,7 @@ export default class HelpResultView extends React.Component {
<li><code>&gt;&gt;</code> sign propagating right shift</li>
<li><code>&gt;&gt;&gt;</code> zero-fill right shift</li>
</ul>
</p>
</div>
</div>
</div>
</div>;