151 Commits

Author SHA1 Message Date
Raffson
d57521c03d
Fix UI bug wrt selected flight-plans 2024-07-07 15:36:13 +02:00
dependabot[bot]
06960db5e5 Bump ejs from 3.1.9 to 3.1.10 in /client
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-30 19:35:28 +02:00
dependabot[bot]
eceec83a01 Bump braces from 3.0.2 to 3.0.3 in /client
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-30 19:35:20 +02:00
Raffson
88b3264fe3
Fix TypeScript issues preventing build 2024-05-18 21:54:43 +02:00
Raffson
cbd90a5e36
Sync MapZones when changing campaigns 2024-05-18 21:13:32 +02:00
Raffson
0f9781ff30
Retain current zoom when switching campaigns 2024-05-18 20:24:55 +02:00
dependabot[bot]
e9f39fec2c
Bump express from 4.19.1 to 4.19.2 in /client (#289)
Bumps [express](https://github.com/expressjs/express) from 4.19.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.1...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-27 20:18:08 +00:00
Raffson
6b1b612c4b
Update react packages 2024-03-22 21:54:27 +01:00
Raffson
f6985d9f70
Bring flight-plan to front if selected 2024-03-09 22:31:48 +01:00
Raffson
15218d0241
caniuse-lite update 2024-03-09 21:58:06 +01:00
Dan Albert
005bbcb812
Send flight plan paths to the back of the map.
This fixes the unusual case where the `interactive: false` property had
no effect, which would make it impossible to plan missions against UI
elements that were overflown by many flights (such as the front line).

As an added bonus, it looks a bit nicer.

This impacts the test in an odd way, but the cure for that is probably
rewriting the test to not use a mock now that we've figured out how to
do that.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3295.
2024-03-09 21:58:06 +01:00
dependabot[bot]
7fb19649e1
Bump follow-redirects from 1.15.2 to 1.15.5 in /client (#265)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.5.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.5)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-25 14:40:19 +02:00
dependabot[bot]
5eb25e02a4
Bump @babel/traverse and @trivago/prettier-plugin-sort-imports (#231)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) to 7.23.2 and updates ancestor dependencies [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) and [@trivago/prettier-plugin-sort-imports](https://github.com/trivago/prettier-plugin-sort-imports). These dependencies need to be updated together.


Updates `@babel/traverse` from 7.20.13 to 7.23.2
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

Updates `@babel/traverse` from 7.17.3 to 7.23.2
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

Updates `@trivago/prettier-plugin-sort-imports` from 3.4.0 to 4.3.0
- [Release notes](https://github.com/trivago/prettier-plugin-sort-imports/releases)
- [Changelog](https://github.com/trivago/prettier-plugin-sort-imports/blob/main/CHANGELOG.md)
- [Commits](https://github.com/trivago/prettier-plugin-sort-imports/compare/v3.4.0...v4.3.0)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
- dependency-name: "@babel/traverse"
  dependency-type: indirect
- dependency-name: "@trivago/prettier-plugin-sort-imports"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-29 17:00:45 +00:00
dependabot[bot]
435bac3847
Bump @adobe/css-tools from 4.3.1 to 4.3.2 in /client (#230)
Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.3.1 to 4.3.2.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-29 16:59:25 +00:00
dependabot[bot]
6e879b297e
Bump axios from 1.3.2 to 1.6.0 in /client (#229)
Bumps [axios](https://github.com/axios/axios) from 1.3.2 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.3.2...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-29 16:59:10 +00:00
dependabot[bot]
fe6ff6a1ae Bump electron from 21.4.1 to 22.3.25 in /client
Bumps [electron](https://github.com/electron/electron) from 21.4.1 to 22.3.25.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v21.4.1...v22.3.25)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-08 01:14:45 +02:00
Dan Albert
8b04dd878d
Migrate IP placement to WaypointSolver. 2023-10-07 17:07:32 +02:00
Dan Albert
12cdb8646c
Improve IP selection near threat zone centers.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2754.
2023-10-01 19:26:21 +02:00
dependabot[bot]
1ba3f2fbb4
Bump @adobe/css-tools from 4.1.0 to 4.3.1 in /client (#202) 2023-09-04 00:54:44 +02:00
Raffson
a8a37fa3e7
Add GroupTask to TGO for map filtering
Resolves #21
2023-09-03 23:41:15 +02:00
dependabot[bot]
43b6cb8bb1 Bump tough-cookie from 4.1.2 to 4.1.3 in /client
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-15 18:05:42 +02:00
Dan Albert
6f1333d26a
Test NavMeshLayer. 2023-06-17 13:57:08 +02:00
Dan Albert
42a0545630
Test FrontLinesLayer. 2023-06-17 13:57:07 +02:00
Dan Albert
e4e7155f02
Partial tests for FrontLine.
We need to mock the backend to usefully test the contextmenu handler.
I'd like to finish all the low hanging fruit before going for that.
2023-06-17 13:56:55 +02:00
Dan Albert
2286d155c4
Test FlightPlansLayer. 2023-06-16 22:42:58 +02:00
Dan Albert
7c1b642aa8
Test CullingExclusionZones. 2023-06-16 22:42:57 +02:00
Dan Albert
198f93fe4a
Test ControlPointsLayer. 2023-06-16 22:42:56 +02:00
Dan Albert
ea25e2ceb8
Add tests for CombatLayer. 2023-06-16 22:42:56 +02:00
Dan Albert
453343849f
Test Combat. 2023-06-16 22:42:55 +02:00
Dan Albert
cee9122680
Add tests for AirDefenseRangeLayer. 2023-06-16 22:42:55 +02:00
Dan Albert
3b40aef70c
Add tests for AircraftLayer. 2023-06-12 20:59:12 +02:00
Raffson
7bbf5d59e4
Update package-lock.json 2023-05-14 17:31:18 +02:00
Dan Albert
2c9dcd430f
Add a test for the Aircraft component.
Leaflet (or maybe react-leaflet?) isn't very testable, so we can really
only test that mocks were called with the right props for the leaflet
components we expect, but that's still better than nothing.
2023-05-14 17:28:46 +02:00
Dan Albert
71c2eb3567
Test typescript and collect coverage.
We don't actually have any tests yet :(
2023-05-14 17:28:46 +02:00
dependabot[bot]
ae24b5e1ea Bump webpack from 5.75.0 to 5.76.2 in /client
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.2)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-18 21:16:49 +01:00
Raffson
b25f484ef3
More renaming of Liberation into Retribution 2023-02-05 12:05:27 +01:00
Raffson
1033923f68
Update React dependencies 2023-02-04 17:02:44 +01:00
dependabot[bot]
1deff6fa49
Bump json5 from 1.0.1 to 1.0.2 in /client (#68)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-05 19:17:30 +01:00
dependabot[bot]
13cb4d321a
Bump loader-utils from 1.4.1 to 1.4.2 in /client (#20)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-19 16:39:49 +01:00
dependabot[bot]
f0fcd7155c
Bump loader-utils from 1.4.0 to 1.4.1 in /client (#18)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 16:07:57 +01:00
Raffson
bdbfc19c7c
Attempt at fixing Dependabot issues in front-end 2022-10-23 17:42:42 +02:00
Dan Albert
febcbce413
Key the PrimaryMarker with destination presence.
This is how React recommend dealing with derived state that needs to be
reset:
https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html

The problem is that the new turn will give the component new props, but
new props will not cause the state to be reset. We can either do that
manually (which React recommends only for the cases where it is
absolutely necessary:
https://reactjs.org/docs/hooks-faq.html#how-do-i-implement-getderivedstatefromprops),
or by forcing the component to be replaced by using a key.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2388.
2022-10-16 12:51:17 +02:00
Dan Albert
b478e9c3af
Split up the ControlPoint.tsx monolith.
This is in need of some serious refactoring so that
https://github.com/dcs-liberation/dcs_liberation/issues/2388 can be
fixed.
2022-10-16 12:51:17 +02:00
Dan Albert
6c388bd557
Factor out control point location event behavior. 2022-10-16 12:51:16 +02:00
Dan Albert
f0a30b5cb7
Document primary/secondary CP marker behavior. 2022-10-16 12:51:16 +02:00
Dan Albert
daa5227f07
Fix the react app initialization.
ReactDOM.render is deprecated and using it forces react 17 behavior.
2022-10-16 12:51:16 +02:00
Dan Albert
07425ea04f
Update NPM dependencies.
New versions of react and leaflet, along with a lot of other packages.
I'm hoping that the newest react-leaflet might let use solve the carrier
drag and drop issues in a less hacky way, since that's the cause of
https://github.com/dcs-liberation/dcs_liberation/issues/2388.
2022-10-09 12:46:05 +02:00
Dan Albert
326291e708
Fix the react test.
It's still a useless test, but now it passes.
2022-10-09 12:46:05 +02:00
Dan Albert
998a58df34
Ignore vscode tasks file in client. 2022-10-09 12:46:05 +02:00
Dan Albert
9c20a3cf51
Update caniuse-lite.
Complains when tests are run.
2022-10-09 12:45:53 +02:00