EFB Patch

This commit is contained in:
2025-07-03 15:34:03 +02:00
parent ed48918831
commit 6e6a5b6103
9 changed files with 59 additions and 47 deletions
+10
View File
@@ -0,0 +1,10 @@
<script type="text/html" id="TFDi_MD11_efb">
<div id="MSFS_REACT_MOUNT">
<h1>If you're seeing this, instrument didn't load.</h1>
</div>
</script>
<link rel="stylesheet" href="/Pages/VCockpit/Instruments/aircraft_efb/TFDi_MD11_efb/efb.css" />
<script type="text/html" import-script="/Pages/VCockpit/Instruments/aircraft_efb/TFDi_MD11_efb/efb.js" import-async="false"></script>
+43065
View File
File diff suppressed because one or more lines are too long
+44
View File
@@ -0,0 +1,44 @@
diff --git a/PackageSources/html_ui/Pages/VCockpit/Instruments/aircraft_efb/TFDi_MD11_efb/efb.js b/PackageSources/html_ui/Pages/VCockpit/Instruments/aircraft_efb/TFDi_MD11_efb/efb.js
index a490abd..be2703b 100644
--- a/PackageSources/html_ui/Pages/VCockpit/Instruments/aircraft_efb/TFDi_MD11_efb/efb.js
+++ b/PackageSources/html_ui/Pages/VCockpit/Instruments/aircraft_efb/TFDi_MD11_efb/efb.js
@@ -42191,9 +42191,16 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
"button",
{
- onClick: loadPayload,
+ onClick: () => dispatch(
+ setRoute({
+ path: "/payload",
+ params: {
+ icao: simBrief.plan.origin.icao_code
+ }
+ })
+ ),
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_runtime12.jsx)(
@@ -42700,6 +42707,11 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
] }) }) });
}
+ // Exports for add. script
+ window.reactExports = __toESM(require_react());
+ window.jsxRuntimeExports = __toESM(require_jsx_runtime());
+ window.useSelector = useSelector
+
// src/components/Router.tsx
init_common();
var import_jsx_runtime14 = __toESM(require_jsx_runtime());
@@ -42716,7 +42728,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
title: "Payload",
icon: faWeightHanging
},
- page: PayloadPage
+ page: App
},
"/perf": {
button: {