Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Supported modules:
* AV8BNA Harrier
* Ka-50 Blackshark
* AH-64D Apache (Pilot and CP/G)
* OH-58D Kiowa Warrior
* Mirage F1EE
* UH-60L Blackhawk
* Hercules (Requires patch available at https://github.com/Summit60/DCS-Hercules-TheWay-patch)
Expand Down
1 change: 1 addition & 0 deletions electron/TCPSender.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class TCPSender {
client
.connect(42070, "127.0.0.1", function () {
client.write(JSON.stringify(msg) + "\n");
client.end();
})
.on("error", (e) => {
console.log(e);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theway",
"version": "2.4.2",
"version": "2.5.0",
"private": true,
"main": "electron/electron.js",
"dependencies": {
Expand Down
Binary file added public/assets/moduleImages/OH58D.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useDispatch, useSelector } from "react-redux";
import ModalContainer from "react-modal-promise";

import SourceSelector from "./components/SourceSelector";
import WaypointList from "./components/WaypointList";
import WaypointList from "./components/waypoints/WaypointList";
import theWayTheme from "./theme/TheWayTheme";
import TransferControls from "./components/TransferControls";
import TitleBar from "./components/TitleBar";
Expand Down
157 changes: 0 additions & 157 deletions src/components/WaypointItem.js

This file was deleted.

59 changes: 59 additions & 0 deletions src/components/waypoints/WaypointFieldsLatLong.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import { Box, Grid, Input, Typography } from "@mui/material";

const WaypointFieldsLatLong = ({
id,
latHem,
longHem,
lat,
long,
elev,
onElevation,
handleInputFocus,
handleInputDefocus,
handleInputFinished,
}) => {
return (
<Box sx={{ mx: 0.5 }}>
<Grid container spacing={3}>
<Grid item xs={3}>
<Typography variant="overline" color="grey">
LAT
</Typography>
</Grid>
<Grid item xs={9}>
<Input disabled value={latHem + " " + lat} />
</Grid>
</Grid>

<Grid container spacing={3}>
<Grid item xs={3}>
<Typography variant="overline" color="grey">
LONG
</Typography>
</Grid>
<Grid item xs={9}>
<Input disabled value={longHem + " " + long}></Input>
</Grid>
</Grid>

<Grid container spacing={3}>
<Grid item xs={3}>
<Typography variant="overline" color="grey">
ELEV
</Typography>
</Grid>
<Grid item xs={9}>
<Input
value={elev}
onChange={(e) => onElevation(e, id)}
onMouseEnter={handleInputFocus}
onMouseLeave={handleInputDefocus}
onKeyDown={handleInputFinished}
></Input>
</Grid>
</Grid>
</Box>
);
};

export default WaypointFieldsLatLong;
45 changes: 45 additions & 0 deletions src/components/waypoints/WaypointFieldsMGRS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { Box, Grid, Input, Typography } from "@mui/material";

const WaypointFieldsMGRS = ({
id,
mgrs,
elev,
onElevation,
handleInputFocus,
handleInputDefocus,
handleInputFinished,
}) => {
return (
<Box sx={{ mx: 0.5 }}>
<Grid container spacing={3}>
<Grid item xs={3}>
<Typography variant="overline" color="grey">
MGRS
</Typography>
</Grid>
<Grid item xs={9}>
<Input disabled value={mgrs} />
</Grid>
</Grid>

<Grid container spacing={3}>
<Grid item xs={3}>
<Typography variant="overline" color="grey">
ELEV
</Typography>
</Grid>
<Grid item xs={9}>
<Input
value={elev}
onChange={(e) => onElevation(e, id)}
onMouseEnter={handleInputFocus}
onMouseLeave={handleInputDefocus}
onKeyDown={handleInputFinished}
></Input>
</Grid>
</Grid>
</Box>
);
};

export default WaypointFieldsMGRS;
Loading