From 9d8b8a86651a80cd6973ebf986ce07a6a4908c97 Mon Sep 17 00:00:00 2001 From: Borys_Levytskyi Date: Sat, 16 Jan 2021 11:39:06 +0200 Subject: [PATCH] Forgot to commit before PR merge --- src/networking/components/SubnetView.tsx | 10 +--------- src/shell/AppState.ts | 2 +- src/shell/components/DebugIndicators.css | 3 ++- src/shell/components/DisplayResultView.tsx | 11 +++++++++-- src/shell/components/HelpResultView.tsx | 1 + src/shell/components/TopLinks.css | 2 +- src/shell/components/WhatsNewResultView.tsx | 5 +++++ 7 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/networking/components/SubnetView.tsx b/src/networking/components/SubnetView.tsx index 6be3ce2..d4323c5 100644 --- a/src/networking/components/SubnetView.tsx +++ b/src/networking/components/SubnetView.tsx @@ -14,15 +14,7 @@ function SubnetView({subnet} : {subnet : SubnetCommand}) { - - - - Mask Length - - - {subnet.input.maskBits} - - + Network Size diff --git a/src/shell/AppState.ts b/src/shell/AppState.ts index 935ed76..e335178 100644 --- a/src/shell/AppState.ts +++ b/src/shell/AppState.ts @@ -1,6 +1,6 @@ import log from 'loglevel'; -const APP_VERSION = 5; +const APP_VERSION = 6; export type PersistedAppData = { emphasizeBytes: boolean; diff --git a/src/shell/components/DebugIndicators.css b/src/shell/components/DebugIndicators.css index 4a28d66..a97b3e9 100644 --- a/src/shell/components/DebugIndicators.css +++ b/src/shell/components/DebugIndicators.css @@ -1 +1,2 @@ -.debug-indicators { position: absolute; top: 1em; left: 1em} \ No newline at end of file +.debug-indicators { position: absolute; top: 1em; left: 1em} +.debug-indicators span {display: block;} \ No newline at end of file diff --git a/src/shell/components/DisplayResultView.tsx b/src/shell/components/DisplayResultView.tsx index f055e78..c1b1641 100644 --- a/src/shell/components/DisplayResultView.tsx +++ b/src/shell/components/DisplayResultView.tsx @@ -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 { render() { return
-
>{this.props.input}#
+
+ + >{this.props.input} + # +   + [x] +
{this.props.children}
diff --git a/src/shell/components/HelpResultView.tsx b/src/shell/components/HelpResultView.tsx index 57f81a5..600390a 100644 --- a/src/shell/components/HelpResultView.tsx +++ b/src/shell/components/HelpResultView.tsx @@ -19,6 +19,7 @@ function HelpResultView() {
  • — enter single or multiple ip addresses (separated by space) to see their binary represenation
  • — subnet mask notiations are support as well
  • +
  • — display information about subnet (network address, broadcast address, etc.)
diff --git a/src/shell/components/TopLinks.css b/src/shell/components/TopLinks.css index db71256..f08c633 100644 --- a/src/shell/components/TopLinks.css +++ b/src/shell/components/TopLinks.css @@ -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; } \ No newline at end of file diff --git a/src/shell/components/WhatsNewResultView.tsx b/src/shell/components/WhatsNewResultView.tsx index 9d5f615..cdab352 100644 --- a/src/shell/components/WhatsNewResultView.tsx +++ b/src/shell/components/WhatsNewResultView.tsx @@ -7,6 +7,11 @@ function WhatsnewResultView() { return

Changelog

+

Jun 16th, 2021
+ Added support of subnet command to display information about subnet ip adress such. Try it out: +

+
+

Jun 14th, 2021
Added support of ip addresses and subnet masks notatioans. Try them out: