dependabot[bot] d4d0d9e060
Bump electron from 28.3.2 to 35.7.5 in /client (#3521)
Bumps [electron](https://github.com/electron/electron) from 28.3.2 to
35.7.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/electron/electron/releases">electron's
releases</a>.</em></p>
<blockquote>
<h2>electron v35.7.5</h2>
<h1>Release Notes for v35.7.5</h1>
<blockquote>
<p>[!WARNING]
Electron 35.x.y has reached end-of-support as per the project's <a
href="https://www.electronjs.org/docs/latest/tutorial/electron-timelines#version-support-policy">support
policy</a>. Developers and applications are encouraged to upgrade to a
newer version of Electron.</p>
</blockquote>
<h2>Fixes</h2>
<ul>
<li>Fixed an issue where <code>shell.openPath</code> was not
non-blocking as expected. <a
href="https://redirect.github.com/electron/electron/pull/48079">#48079</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/48088">36</a>,
<a
href="https://redirect.github.com/electron/electron/pull/48088">37</a>,
<a
href="https://redirect.github.com/electron/electron/pull/48088">38</a>)<!--
raw HTML omitted --></li>
</ul>
<h2>electron v35.7.4</h2>
<h1>Release Notes for v35.7.4</h1>
<ul>
<li>Fix ffmpeg generation on Windows non-x64</li>
</ul>
<h2>electron v35.7.2</h2>
<h1>Release Notes for v35.7.2</h1>
<h2>Fixes</h2>
<ul>
<li>Fixed an issue where printing PDFs with <code>webContents.print({
silent: true })</code> would fail. <a
href="https://redirect.github.com/electron/electron/pull/47645">#47645</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/47624">36</a>,
<a
href="https://redirect.github.com/electron/electron/pull/47397">37</a>)<!--
raw HTML omitted --></li>
</ul>
<h2>electron v35.7.0</h2>
<h1>Release Notes for v35.7.0</h1>
<h2>Other Changes</h2>
<ul>
<li>Updated Node.js to v22.16.0. <a
href="https://redirect.github.com/electron/electron/pull/47213">#47213</a></li>
</ul>
<h2>electron v35.6.0</h2>
<h1>Release Notes for v35.6.0</h1>
<h2>Features</h2>
<ul>
<li>Added support for <code>--no-experimental-global-navigator</code>
flag. <a
href="https://redirect.github.com/electron/electron/pull/47416">#47416</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/47417">36</a>,
<a
href="https://redirect.github.com/electron/electron/pull/47418">37</a>)<!--
raw HTML omitted --></li>
<li>Added support for customizing system accent color and highlighting
of active window border. <a
href="https://redirect.github.com/electron/electron/pull/47539">#47539</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/47538">36</a>,
<a
href="https://redirect.github.com/electron/electron/pull/47537">37</a>)<!--
raw HTML omitted --></li>
</ul>
<h2>Fixes</h2>
<ul>
<li>Fixed a potential crash using <code>session.clearData</code> in some
circumstances. <a
href="https://redirect.github.com/electron/electron/pull/47410">#47410</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/47411">36</a>,
<a
href="https://redirect.github.com/electron/electron/pull/47412">37</a>)<!--
raw HTML omitted --></li>
<li>Fixed an error when importing <code>electron</code> for the first
time from an ESM module loaded by a CJS module in a packaged app. <a
href="https://redirect.github.com/electron/electron/pull/47344">#47344</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/47343">36</a>,
<a
href="https://redirect.github.com/electron/electron/pull/47342">37</a>)<!--
raw HTML omitted --></li>
<li>Fixed an issue where calling <code>Fetch.continueResponse</code> via
debugger with <code>WebContentsView</code> could cause a crash. <a
href="https://redirect.github.com/electron/electron/pull/47443">#47443</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/47442">36</a>,
<a
href="https://redirect.github.com/electron/electron/pull/47444">37</a>)<!--
raw HTML omitted --></li>
<li>Fixed an issue where utility processes could leak file handles. <a
href="https://redirect.github.com/electron/electron/pull/47542">#47542</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/47541">36</a>,
<a
href="https://redirect.github.com/electron/electron/pull/47543">37</a>)<!--
raw HTML omitted --></li>
<li>Partially fixes an issue with printing a PDF via
<code>webContents.print()</code> where the callback would not be called.
<a
href="https://redirect.github.com/electron/electron/pull/47399">#47399</a>
<!-- raw HTML omitted -->(Also in <a
href="https://redirect.github.com/electron/electron/pull/47400">36</a>,
<a
href="https://redirect.github.com/electron/electron/pull/47398">37</a>)<!--
raw HTML omitted --></li>
</ul>
<h2>Other Changes</h2>
<ul>
<li>Backported fix for 420637585. <a
href="https://redirect.github.com/electron/electron/pull/47369">#47369</a></li>
</ul>
<h2>electron v35.5.1</h2>
<h1>Release Notes for v35.5.1</h1>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/electron/electron/blob/main/docs/breaking-changes.md">electron's
changelog</a>.</em></p>
<blockquote>
<h1>Breaking Changes</h1>
<p>Breaking changes will be documented here, and deprecation warnings
added to JS code where possible, at least <a
href="https://github.com/electron/electron/blob/main/docs/tutorial/electron-versioning.md#semver">one
major version</a> before the change is made.</p>
<h3>Types of Breaking Changes</h3>
<p>This document uses the following convention to categorize breaking
changes:</p>
<ul>
<li><strong>API Changed:</strong> An API was changed in such a way that
code that has not been updated is guaranteed to throw an exception.</li>
<li><strong>Behavior Changed:</strong> The behavior of Electron has
changed, but not in such a way that an exception will necessarily be
thrown.</li>
<li><strong>Default Changed:</strong> Code depending on the old default
may break, not necessarily throwing an exception. The old behavior can
be restored by explicitly specifying the value.</li>
<li><strong>Deprecated:</strong> An API was marked as deprecated. The
API will continue to function, but will emit a deprecation warning, and
will be removed in a future release.</li>
<li><strong>Removed:</strong> An API or feature was removed, and is no
longer supported by Electron.</li>
</ul>
<h2>Planned Breaking API Changes (39.0)</h2>
<h3>Deprecated: <code>--host-rules</code> command line switch</h3>
<p>Chromium is deprecating the <code>--host-rules</code> switch.</p>
<p>You should use <code>--host-resolver-rules</code> instead.</p>
<h3>Behavior Changed: window.open popups are always resizable</h3>
<p>Per current <a
href="https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-open-dev">WHATWG
spec</a>, the <code>window.open</code> API will now always create a
resizable popup window.</p>
<p>To restore previous behavior:</p>
<pre lang="js"><code>webContents.setWindowOpenHandler((details) =&gt; {
  return {
    action: 'allow',
    overrideBrowserWindowOptions: {
      resizable: details.features.includes('resizable=yes')
    }
  }
})
</code></pre>
<h3>Behavior Changed: shared texture OSR <code>paint</code> event data
structure</h3>
<p>When using shared texture offscreen rendering feature, the
<code>paint</code> event now emits a more structured object.
It moves the <code>sharedTextureHandle</code>, <code>planes</code>,
<code>modifier</code> into a unified <code>handle</code> property.
See <a
href="https://www.electronjs.org/docs/latest/api/structures/offscreen-shared-texture">here</a>
for more details.</p>
<h2>Planned Breaking API Changes (38.0)</h2>
<h3>Removed: <code>ELECTRON_OZONE_PLATFORM_HINT</code> environment
variable</h3>
<p>The default value of the <code>--ozone-plaftform</code> flag <a
href="https://chromium-review.googlesource.com/c/chromium/src/+/6775426">changed
to <code>auto</code></a>.</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="86d839a881"><code>86d839a</code></a>
build: correct CHECK syntax (<a
href="https://redirect.github.com/electron/electron/issues/48106">#48106</a>)</li>
<li><a
href="5be0be7f04"><code>5be0be7</code></a>
fix: ensure snapshot is valid (<a
href="https://redirect.github.com/electron/electron/issues/48105">#48105</a>)</li>
<li><a
href="df232d1269"><code>df232d1</code></a>
ci: cleanup use new arc cluster (<a
href="https://redirect.github.com/electron/electron/issues/48007">#48007</a>)</li>
<li><a
href="ab51554bdf"><code>ab51554</code></a>
ci: fixup mac runner hang (<a
href="https://redirect.github.com/electron/electron/issues/47992">#47992</a>)</li>
<li><a
href="203abdd5a9"><code>203abdd</code></a>
ci: use new arc cluster (<a
href="https://redirect.github.com/electron/electron/issues/47913">#47913</a>)</li>
<li><a
href="ea17e8339f"><code>ea17e83</code></a>
build: fix ffmpeg generation on Windows non-x64 (<a
href="https://redirect.github.com/electron/electron/issues/47845">#47845</a>)</li>
<li><a
href="7b5d411819"><code>7b5d411</code></a>
build(dev-deps): drop unused <code>@​types/webpack</code> dep (<a
href="https://redirect.github.com/electron/electron/issues/47806">#47806</a>)</li>
<li><a
href="def6203bb9"><code>def6203</code></a>
build: deep update brace-expansion to resolve an audit alert (<a
href="https://redirect.github.com/electron/electron/issues/47719">#47719</a>)</li>
<li><a
href="28d8ed037c"><code>28d8ed0</code></a>
test: cleanup RenderFrame lifespan tests (<a
href="https://redirect.github.com/electron/electron/issues/47795">#47795</a>)</li>
<li><a
href="ee8942dcbf"><code>ee8942d</code></a>
build: drop eslint-plugin-unicorn (<a
href="https://redirect.github.com/electron/electron/issues/47690">#47690</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/electron/electron/compare/v28.3.2...v35.7.5">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=electron&package-manager=npm_and_yarn&previous-version=28.3.2&new-version=35.7.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/dcs-liberation/dcs_liberation/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-07 20:33:32 +10:00
..
2022-10-07 13:33:53 -07:00

DCS Liberation Client

This is a React app for the front-end of DCS Liberation. It is a work in progress that just barely implements the map. This is not useful for players yet.

For development, set the following environment variables when launching DCS Liberation (the Qt UI):

  • CORS_ALLOW_DEBUG_SERVER=true

    This will allow the front-end to make requests to the server, as long as the front-end is running on http://localhost:3000.

Then, run npm start to start the development server. Launch the Qt UI with --new-map --dev to connect the webview to the development server, or navigate to http://localhost:3000 in your browser.

Regenerating the API stubs

The backend uses FastAPI which exposes /openapi.json. This is consumed by @rtk-query/codegen-openapi to automatically generate the API stubs in src/api/liberationApi.ts.

If you make a change to the API surface the typescript API will need to be regenerated. To do this, first launch Liberation (to start the backend) and run

npm run regenerate-api

See https://redux-toolkit.js.org/rtk-query/usage/code-generation for more information.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you cant go back!

If you arent satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.

You dont have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.