mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 06:52:05 +01:00
Remove commends and fix html markup
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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>>></code> — sign propagating right shift</li>
|
||||
<li><code>>>></code> — zero-fill right shift</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>;
|
||||
|
||||
Reference in New Issue
Block a user