diff --git a/EFB/efb-html.patch b/EFB/efb-html.patch index cd5abd6..547fda8 100644 --- a/EFB/efb-html.patch +++ b/EFB/efb-html.patch @@ -2,14 +2,13 @@ Index: EFB.html =================================================================== --- EFB.html +++ EFB.html -@@ -4,7 +4,9 @@ +@@ -4,7 +4,8 @@ - + -+ - + diff --git a/EFB/efb-js.patch b/EFB/efb-js.patch index 60712e2..ed88be2 100644 --- a/EFB/efb-js.patch +++ b/EFB/efb-js.patch @@ -59,7 +59,8 @@ Index: EFB.js (_a = ref.current) == null ? void 0 : _a.select(); } }, - onBlur: (e) => { +- onBlur: (e) => { ++ onBlur: () => { var _a; - if ((_a = keyboardRef.current) == null ? void 0 : _a.contains(e.relatedTarget)) { - return; @@ -101,28 +102,31 @@ Index: EFB.js ) }) }) ] }) }) }); } -@@ -40562,8 +40555,13 @@ +@@ -40562,8 +40555,27 @@ ] }) ] }) }) }); } + // Exports for add. script + window.reactExports = __toESM(require_react()); ++ window.reactDomExports = __toESM(require_react_dom()); + window.jsxRuntimeExports = __toESM(require_jsx_runtime()); -+ window.useSelector = useSelector ++ window.useSelector = useSelector; ++ window.v4 = v4_default; ++ window.ArrowBigUp = ArrowBigUp; ++ window.Delete = Delete; ++ window.Space = Space; ++ window.X = X; ++ // Include ++ var script = document.createElement('script'); ++ script.onload = function () { ++ console.log("LM App injected"); ++ routes["/payload"].page = window.KH_LM ++ }; ++ script.src = "/Pages/VCockpit/Instruments/aircraft_efb/KH_TFDi_MD11_efb/App.js"; ++ document.head.appendChild(script); //or something of the likes + // src/components/Router.tsx init_common(); var import_jsx_runtime15 = __toESM(require_jsx_runtime()); var routes = { -@@ -40578,9 +40576,9 @@ - button: { - title: "Payload", - icon: Weight - }, -- page: PayloadPage -+ page: window.KH_LM - }, - "/perf": { - button: { - title: "Perf", diff --git a/PackageSources/js-bundle/package.json b/PackageSources/js-bundle/package.json index 9d3bb3e..af9101e 100644 --- a/PackageSources/js-bundle/package.json +++ b/PackageSources/js-bundle/package.json @@ -1,6 +1,6 @@ { "name": "tfdidesign-md11-load-manager", - "version": "0.1.164", + "version": "0.1.182", "description": "", "main": "index.js", "type": "module", diff --git a/PackageSources/js-bundle/src/components/SBEntry/SBEntryF.tsx b/PackageSources/js-bundle/src/components/SBEntry/SBEntryF.tsx index 7220ab6..8ca0b72 100644 --- a/PackageSources/js-bundle/src/components/SBEntry/SBEntryF.tsx +++ b/PackageSources/js-bundle/src/components/SBEntry/SBEntryF.tsx @@ -5,6 +5,7 @@ import { ImportFlightPlanKH } from '../../utils/TFDISBImport'; import { CoherentCallSBEntryF, inRangeOf, loadAircraft, unloadAircraft } from '../../utils/utils'; import CGSelect from '../CGSelect/CGSelect'; import ActionBar from '../actionbar/ActionBar'; +import Input from '../input/Input'; interface SBEntryProps { WASMData: WASMDataF; @@ -97,12 +98,12 @@ const SBEntryF: FC = ({ WASMData, loadingState, gsxActive, setLoad
- handleInput(e.target.value, WASMData.limits.maxFuel, setFuel)} + onChange={(value) => handleInput(value, WASMData.limits.maxFuel, setFuel)} disabled={loadingState !== 'preview' || gsxActive} />