mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 23:12:09 +01:00
Remove commends and fix html markup
This commit is contained in:
@@ -19,13 +19,6 @@ export default {
|
|||||||
|
|
||||||
cmd.commands({
|
cmd.commands({
|
||||||
'help': function(c) {
|
'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));
|
appState.addCommandResult(new HelpResult(c.input));
|
||||||
},
|
},
|
||||||
'clear': function() {
|
'clear': function() {
|
||||||
@@ -41,12 +34,6 @@ export default {
|
|||||||
appState.setUiTheme('light');
|
appState.setUiTheme('light');
|
||||||
},
|
},
|
||||||
'about': function(c) {
|
'about': function(c) {
|
||||||
//
|
|
||||||
// TODO: var aboutResult = document.querySelector('.result .aboutTpl');
|
|
||||||
// if(aboutResult != null) {
|
|
||||||
// moveResultUp(aboutResult);
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
appState.addCommandResult(new AboutResult(c.input));
|
appState.addCommandResult(new AboutResult(c.input));
|
||||||
},
|
},
|
||||||
'-debug': function() {
|
'-debug': function() {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default class HelpResultView extends React.Component {
|
|||||||
return <div className="help helpResultTpl">
|
return <div className="help helpResultTpl">
|
||||||
<div style={{overflow: "hidden"}}>
|
<div style={{overflow: "hidden"}}>
|
||||||
<div style={{float: "left", "marginRight": "20px"}}>
|
<div style={{float: "left", "marginRight": "20px"}}>
|
||||||
<p className="section">
|
<div className="section">
|
||||||
<strong>Supported Commands</strong>
|
<strong>Supported Commands</strong>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>23 ^ 34</code> — type bitwise expression to see result in binary (only positive integers are supported now)</li>
|
<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>light</code> — set Light theme</li>
|
||||||
<li><code>about</code> — about the app</li>
|
<li><code>about</code> — about the app</li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style={{"float":"left"}}>
|
<div style={{"float":"left"}}>
|
||||||
<p className="section">
|
<div className="section">
|
||||||
<strong>Supported Bitwise Operations</strong><br/>
|
<strong>Supported Bitwise Operations</strong><br/>
|
||||||
<small>
|
<small>
|
||||||
<a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators">
|
<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> — sign propagating right shift</li>
|
||||||
<li><code>>>></code> — zero-fill right shift</li>
|
<li><code>>>></code> — zero-fill right shift</li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>;
|
</div>;
|
||||||
|
|||||||
Reference in New Issue
Block a user