From 21e4a946cd24b8a03ea577352f0271ebf7669ffa Mon Sep 17 00:00:00 2001 From: Michael DÜrre Date: Thu, 8 Apr 2021 07:27:18 +0200 Subject: update odlux for notification change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit update due new notification protocol Issue-ID: CCSDK-3253 Signed-off-by: Michael DÜrre Change-Id: Iad65459fdc18603cd1ddbd97bb2211308744bd8b --- sdnr/wt/odlux/apps/linkCalculationApp/package.json | 12 +-- .../src/views/linkCalculationComponent.tsx | 86 +++++++++++----------- 2 files changed, 49 insertions(+), 49 deletions(-) (limited to 'sdnr/wt/odlux/apps/linkCalculationApp') diff --git a/sdnr/wt/odlux/apps/linkCalculationApp/package.json b/sdnr/wt/odlux/apps/linkCalculationApp/package.json index 22b2a6c0a..171770603 100644 --- a/sdnr/wt/odlux/apps/linkCalculationApp/package.json +++ b/sdnr/wt/odlux/apps/linkCalculationApp/package.json @@ -26,18 +26,18 @@ "yup": "^0.29.3" }, "peerDependencies": { - "@types/react": "16.9.19", - "@types/react-dom": "16.9.5", - "@types/react-router-dom": "4.3.1", + "@types/react": "17.0.3", + "@types/react-dom": "17.0.2", + "@types/react-router-dom": "5.1.7", "@material-ui/core": "4.11.0", "@material-ui/icons": "4.9.1", "@types/classnames": "2.2.6", "@types/flux": "3.1.8", "@types/jquery": "3.3.10", "jquery": "3.3.1", - "react": "16.12.0", - "react-dom": "16.12.0", - "react-router-dom": "4.3.1" + "react": "17.0.1", + "react-dom": "17.0.1", + "react-router-dom": "5.2.0" }, "devDependencies": { "@types/yup": "^0.29.7", diff --git a/sdnr/wt/odlux/apps/linkCalculationApp/src/views/linkCalculationComponent.tsx b/sdnr/wt/odlux/apps/linkCalculationApp/src/views/linkCalculationComponent.tsx index c498379b7..61a700c71 100644 --- a/sdnr/wt/odlux/apps/linkCalculationApp/src/views/linkCalculationComponent.tsx +++ b/sdnr/wt/odlux/apps/linkCalculationApp/src/views/linkCalculationComponent.tsx @@ -324,16 +324,16 @@ class LinkCalculation extends React.ComponentSite A
- +
{this.state.latitude1Error}
-
{this.state.longitude1Error}
+
{this.state.longitude1Error}
Site B
-
{this.state.latitude2Error}
-
{this.state.longitude2Error}
+
{this.state.latitude2Error}
+
{this.state.longitude2Error}
@@ -341,8 +341,8 @@ class LinkCalculation extends React.Component -
{
this.setState ({worstmonth: false})}>Annual - this.setState ({worstmonth: true})}>WM
}
+
{
this.setState ({worstmonth: false})}>Annual + this.setState ({worstmonth: true})}>WM
}
@@ -369,55 +369,55 @@ class LinkCalculation extends React.Component
Site A
{this.props.siteA.length>0 &&
{this.props.siteA }
} -
{this.props.lat1 && this.LatLonToDMS(this.props.lat1)}
-
{this.props.lon1 && this.LatLonToDMS(this.props.lon1)}
+
{this.props.lat1 && this.LatLonToDMS(this.props.lat1)}
+
{this.props.lon1 && this.LatLonToDMS(this.props.lon1)}
0
-
{this.props.amslA.toFixed(2)} m
-
{this.props.aglA.toFixed(2)} m
+
{this.props.amslA.toFixed(2)} m
+
{this.props.aglA.toFixed(2)} m
-
{this.props.distance?.toFixed(3)} km
-
{
this.props.updatePolarization(e.target.value)}>Horizontal - {this.props.updatePolarization(e.target.value)}}>Vertical
}
+
{this.props.distance?.toFixed(3)} km
+
{
this.props.updatePolarization(e.target.value)}>Horizontal + {this.props.updatePolarization(e.target.value)}}>Vertical
}
-
{0 ? 'error' : 'input'} onChange={(e) => { this.props.updateFrequency(Number(e.target.value)); e.target.value==='0'? this.setState({frequencyError: 'select a frequency'}): this.setState({frequencyError:''})}}> - - - - - - - - - - + + + + + + + + + + }
{this.state.frequencyError}
-
{this.props.fsl.toFixed(3)} dB
+
{this.props.fsl.toFixed(3)} dB
-
{0 ? 'error' : 'input'} onChange = {(e) => {e.target.value === 'itu' ? this.setState({ rainMethodDisplay: false}):this.setState({ rainMethodDisplay: true}); e.target.value==='0'? this.setState({rainMethodError: 'select a Rain model'}): this.setState({rainMethodError:''}) }}> + + + }
{this.state.rainMethodError}
-
{
{ this.props.updateRainValue(Number(e.target.value)) }} +
{ { this.props.updateRainValue(Number(e.target.value)) }} value={this.props.rainVal} disabled={this.state.rainMethodDisplay === false ? true : false}> mm/hr {this.state.showWM} {this.props.month} }
-
{this.props.rainAtt.toFixed(3)} dB
+
{this.props.rainAtt.toFixed(3)} dB
-
{0 ? 'error' : 'input'} onChange = {(e) => { if (e.target.value!== ''){ this.setState({absorptionMethod : e.target.value}); this.setState({attenuationMethodError:''}) }}}> + + + + }
{this.state.attenuationMethodError}
-
{this.props.absorptionOxygen.toFixed(3)} dB
-
{this.props.absorptionWater.toFixed(3)} dB
-
{
+
{this.props.absorptionWater.toFixed(3)} dB
+
{}
@@ -426,11 +426,11 @@ class LinkCalculation extends React.Component
Site B
{this.props.siteB.length>0 &&
{this.props.siteB}
} -
{this.props.lat2 && this.LatLonToDMS(this.props.lat2)}
-
{this.props.lon2 && this.LatLonToDMS(this.props.lon2)}
+
{this.props.lat2 && this.LatLonToDMS(this.props.lat2)}
+
{this.props.lon2 && this.LatLonToDMS(this.props.lon2)}
0
-
{this.props.amslB.toFixed(2)} m
-
{this.props.aglB.toFixed(2)} m
+
{this.props.amslB.toFixed(2)} m
+
{this.props.aglB.toFixed(2)} m
-- cgit 1.2.3-korg