Forgot to commit before PR merge

This commit is contained in:
Borys_Levytskyi
2021-01-16 11:39:06 +02:00
parent 478ecbfb60
commit 9d8b8a8665
7 changed files with 20 additions and 14 deletions

View File

@@ -14,15 +14,7 @@ function SubnetView({subnet} : {subnet : SubnetCommand}) {
<SubnetRow ip={subnet.input.ipAddress} descr="Address"/>
<SubnetRow ip={getNetworkAddress(subnet.input)} descr="Network"/>
<SubnetRow ip={createSubnetMaskIp(subnet.input)} descr="Net Mask"/>
<SubnetRow ip={getBroadCastAddress(subnet.input)} descr="Broadcast"/>
<tr>
<td className="description soft">
<span>Mask Length</span>
</td>
<td>
{subnet.input.maskBits}
</td>
</tr>
<SubnetRow ip={getBroadCastAddress(subnet.input)} descr="Broadcast"/>
<tr>
<td className="description soft">
<span>Network Size</span>

View File

@@ -1,6 +1,6 @@
import log from 'loglevel';
const APP_VERSION = 5;
const APP_VERSION = 6;
export type PersistedAppData = {
emphasizeBytes: boolean;

View File

@@ -1 +1,2 @@
.debug-indicators { position: absolute; top: 1em; left: 1em}
.debug-indicators { position: absolute; top: 1em; left: 1em}
.debug-indicators span {display: block;}

View File

@@ -6,14 +6,21 @@ type DisplayResultProps = {
appState: AppState,
inputHash: string,
input: string,
key: number
key: number,
onRemove?: (i: number) => void;
}
export default class DisplayResultView extends React.Component<DisplayResultProps> {
render() {
return <div className="result">
<div className="input mono"><span className="cur">&gt;</span>{this.props.input}<a className="hashLink" title="Link for this expression" href={window.location.pathname + '#' + this.props.inputHash}>#</a></div>
<div className="input mono">
<span className="cur">
&gt;</span>{this.props.input}
<a className="hashLink" title="Link for this expression" href={window.location.pathname + '#' + this.props.inputHash}>#</a>
&nbsp;
<a className="hashLink" title="Remove this result" href="javascript:void(0)">[x]</a>
</div>
<div className="content">
{this.props.children}
</div>

View File

@@ -19,6 +19,7 @@ function HelpResultView() {
<ul>
<li><code><CommandLink text="127.0.0.1" /></code> enter single or multiple ip addresses (separated by space) to see their binary represenation</li>
<li><code><CommandLink text="192.168.0.1/8" /></code> subnet mask notiations are support as well</li>
<li><code><CommandLink text="subnet 192.168.24.1/14" /></code> display information about subnet (network address, broadcast address, etc.)</li>
</ul>
</div>
<div className="section">

View File

@@ -1,5 +1,5 @@
.top-links { position: absolute; right: 1em; top: 1em; list-style-type: none; margin: 0 }
.top-links { position: absolute; right: 2em; top: 1em; list-style-type: none; margin: 0 }
.top-links li { float: left; }
.top-links a { display: inline-block; padding: 10px 15px}
.top-links .icon { margin-right: 5px; vertical-align: middle; }

View File

@@ -7,6 +7,11 @@ function WhatsnewResultView() {
return <div className="changelog">
<h3>Changelog</h3>
<div className="item item-new">
<p><span className="soft date">Jun 16th, 2021</span> <br/>
Added support of <code>subnet</code> command to display information about subnet ip adress such. Try it out: <CommandLink text="subnet 192.168.24.1/14" />
</p>
</div>
<div className="item">
<p><span className="soft date">Jun 14th, 2021</span> <br/>
Added support of ip addresses and subnet masks notatioans. Try them out:
</p>