47 lines
1.7 KiB
Diff
47 lines
1.7 KiB
Diff
Index: EFB.js
|
|
===================================================================
|
|
--- EFB.js
|
|
+++ EFB.js
|
|
@@ -40265,11 +40265,11 @@
|
|
),
|
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
"button",
|
|
{
|
|
- onClick: loadPayload,
|
|
+ onClick: () => dispatch(setRoute({ path: "/payload" })),
|
|
className: "middle none center rounded-lg bg-green-700 px-6 py-3 font-sans text-xs font-bold uppercase text-white shadow-md shadow-green-500/20 transition-all hover:shadow-lg hover:shadow-green-500/40 focus:opacity-[0.85] focus:shadow-none active:opacity-[0.85] active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none",
|
|
- children: "Set payload & fuel"
|
|
+ children: "Manage payload & fuel"
|
|
}
|
|
),
|
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
"button",
|
|
@@ -40767,8 +40767,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.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 = {
|