Dan Albert
34111cfc67
Update all TGOs on capture.
...
We need to update all TGOs, not just the cleared ones, because the
captured buildings need to update their icon to show the new color.
2022-03-04 00:29:31 -08:00
Dan Albert
fef123c2d4
Add redux-logger.
...
This automatically logs state changes (in a readable form) to the js
console. We'll probably want to turn this off in production to cut down
on log noise.
2022-03-04 00:24:31 -08:00
Dan Albert
a710ce5e1b
Run prettier across the react source.
2022-03-03 23:34:18 -08:00
Dan Albert
13ca5352c7
Add import sorting to prettier.
2022-03-03 23:32:57 -08:00
Dan Albert
92236a5bc3
Update the react map for some new events.
2022-03-03 23:31:07 -08:00
Dan Albert
4539e91fa9
Add missing keys to list components.
2022-03-03 21:51:47 -08:00
Dan Albert
c5c596dc2f
Move TGOs out of MapModel.
2022-03-03 17:11:01 -08:00
C. Perreau
d0ad554e14
Merge pull request #2040 from dcs-liberation/ukraine
...
🇺🇦 Support for Ukraine
2022-03-03 23:48:11 +01:00
C. Perreau
3037b540d4
Update README.md
2022-03-03 23:35:43 +01:00
Khopa
0b1365a04b
Properly credit CC artwork author.
2022-03-03 23:34:22 +01:00
Dan Albert
ccb510fe47
Move front lines out of MapModel.
2022-03-03 02:17:13 -08:00
Dan Albert
89b987fc87
Stop fetching timing info for unselected flights.
...
The flight will be redrawn when it's selected. Don't bother fetching
this info for flights that aren't selected.
2022-03-03 01:24:32 -08:00
Dan Albert
8d806def5b
Use FastAPI interface for the front lines.
...
Can't submit yet because there's no way to uniquely identify front-
lines, so no way to update these as they change.
2022-03-03 00:43:13 -08:00
Dan Albert
e5f4974e9a
Stop ad-hoc constructing FrontLines.
...
The UI needs to be able to identify these to the server and vice versa,
so they'll need IDs that don't change. Rather than constructing an ID
based on the control points names, make them an owned part of the
control point. The constructed ID would be fine, but a UUID will make
them more suitable for the database, and this was always fairly gross
anyway.
Some follow up work if anyone is interested: a bunch of the data that's
computed in the various properties can now probably be computed *once*
and persisted to the FrontLine type.
2022-03-03 00:38:52 -08:00
Dan Albert
4dfc42528d
Eliminate unnecessary waypoint API call in map.
...
I added the with_waypoints option for the react map. Use it in the old
one.
2022-03-03 00:10:45 -08:00
Dan Albert
79b471b41c
Remove CSS that was messing with text alignment.
...
This was added by create-react-app. We're not using it any more.
2022-03-02 23:57:05 -08:00
Dan Albert
f9f18dd38b
Fix drawing of non-path waypoints.
2022-03-02 23:53:16 -08:00
Dan Albert
d53fc46ffc
All multiple event steam connections.
...
We don't support multi-client yet, but this is useful when debugging the
react UI in a browser instead of in the Liberation UI.
2022-03-02 23:51:12 -08:00
Dan Albert
781f8fb0e8
Fix a few display discrepancies in the new map.
2022-03-02 23:44:46 -08:00
Dan Albert
b39a44ae37
Draw front lines on the react map.
...
https://github.com/dcs-liberation/dcs_liberation/issues/2039
2022-03-02 23:33:15 -08:00
Dan Albert
9a2c10a98f
Draw supply routes on the react map.
...
https://github.com/dcs-liberation/dcs_liberation/issues/2039
2022-03-02 23:14:05 -08:00
Dan Albert
0bdb4ac894
Draw air defense threat/detection ranges.
...
https://github.com/dcs-liberation/dcs_liberation/issues/2039
2022-03-02 21:51:16 -08:00
Khopa
510dcd762f
🇺🇦 Support for Ukraine
2022-03-02 17:52:47 +01:00
Dan Albert
64b01c471b
Partial implementation of TGO display.
...
No threat/detection circles yet.
https://github.com/dcs-liberation/dcs_liberation/issues/2039
2022-03-02 01:01:33 -08:00
Dan Albert
1cd77a4a77
Fix display of control points.
...
Apparently redux state objects *must* be objects.
2022-03-01 23:39:49 -08:00
Dan Albert
dba2699b7e
Add missing controls for flight plan layers.
2022-03-01 23:31:46 -08:00
Dan Albert
78b080063e
Add layer control.
...
This isn't the grouped layer control that we have in the non-react map.
The react variant of that hasn't been updated in years and won't work
with our base maps (and may not work at all). We'll need to fix that or
write our own if we want to use that. This will do for now though.
https://github.com/dcs-liberation/dcs_liberation/issues/2039
2022-03-01 23:25:02 -08:00
Dan Albert
98c36c8b03
Remove default zoom control, add map scale.
...
https://github.com/dcs-liberation/dcs_liberation/issues/2039
2022-03-01 23:09:55 -08:00
Dan Albert
aac333e132
Draw waypoint markers for the selected flight.
...
https://github.com/dcs-liberation/dcs_liberation/issues/2039
2022-03-01 23:06:03 -08:00
Dan Albert
030675812e
Cite the websocket tutorial I used for reference.
...
This was tricky to work out and most of the tutorials were bad. This one
was good, so keep a link around in case we need the reference again.
2022-03-01 21:25:32 -08:00
Dan Albert
8e8bbe84f3
Add websocket handling for selected flights.
2022-03-01 21:08:08 -08:00
Dan Albert
6d29bfdf65
Fix game state on refresh.
...
There was accidentally a second layer of callback here. I'm not sure why
it worked. I think the lambda being returned was being used as the
cleanup function?
2022-03-01 20:46:32 -08:00
Dan Albert
625f36c780
More cleanup.
2022-03-01 01:14:21 -08:00
Dan Albert
6ff9208d46
Reorganize React project structure.
...
Whatever I was doing was getting out of control :)
2022-03-01 01:14:21 -08:00
Dan Albert
406a64ae3f
Draw flight plan paths in the react UI.
...
https://github.com/dcs-liberation/dcs_liberation/issues/2039
2022-03-01 01:14:21 -08:00
Dan Albert
bd8aa0296b
Add map debugging launch configuration for vscode.
2022-02-28 22:37:06 -08:00
Dan Albert
21ba1bea36
Remove debug logging from react map.
2022-02-28 22:32:19 -08:00
Dan Albert
e51662526b
Add an electron app for the React front-end.
2022-02-28 22:24:46 -08:00
Dan Albert
c628695a4e
Persist window geometry on close.
...
Re-opens the window in the configuration it was in (size, maximized,
correct display, etc) when it was closed.
2022-02-28 18:08:40 -08:00
Dan Albert
155f9d4052
Make react-scripts devdependency to shut up audit.
...
The vulnerabilities are false positives and React doesn't think those
are worth fixing to make `npm audit` be quiet. We can at least make them
go away for `npm audit --production`, which is the official advice:
https://github.com/facebook/create-react-app/issues/11174 .
2022-02-28 00:44:13 -08:00
Dan Albert
abadfef5a7
Remove unused workflow.
...
I'd added this early on with the intent of implementing is but forgot to
come back to it. We should do that at some point.
2022-02-28 00:35:22 -08:00
Dan Albert
59e98b31df
Add a basic React implementation of the map.
...
See client/README.md for instructions.
2022-02-28 00:31:56 -08:00
Dan Albert
4e348dd99a
Add a server setting for disabling the API key.
...
Useful for development if you want to disable API key authentication for
debugging the server without having to pull the generated key out of the
log every time.
2022-02-28 00:31:56 -08:00
Dan Albert
0056747aee
Add an endpoint for listing all control points.
2022-02-28 00:20:01 -08:00
Dan Albert
e3adcada52
Migrate air icons to milsymbol.
...
All NATO icons are now generated by the milsymbol library based on their
SIDC.
2022-02-27 22:25:45 -08:00
Dan Albert
02383763ec
Update TGOs to use milsymbol for icons.
2022-02-27 22:13:06 -08:00
Dan Albert
e7398af877
Update ControlPoint UI to use milsymbol library.
...
This gets us out of the business of maintaining our own icons. The
milsymbol library generates the SVG data needed to display anything
covered by APP-6.
2022-02-27 19:10:22 -08:00
Dan Albert
e1cdbed2e1
Update pre-commit to a newer version of Black.
...
Adds compatibility with match.
2022-02-27 19:05:32 -08:00
Dan Albert
41158543cf
Add basic implementation for APP-6 SIDCs.
...
These will be used in conjunction with
https://github.com/spatialillusions/milsymbol to simplify the
specification of unit type to the front-end.
2022-02-27 18:38:59 -08:00
walterroach
05f3f3636b
Add possible options to aircraft yamls
...
for convenience
2022-02-26 22:52:33 -06:00