Jacob Schmidt 603963c935 Refactor bank UI to bridge-driven single-page flow
- Replace separate bank/ATM pages with a unified `index.html` app bundle
- Split bank init into `initClass`, `initSessionService`, and `initUIBridge`
- Route UI events through `BankUIBridge` and refresh session payloads after sync
2026-03-14 12:11:34 -05:00

65 lines
2.2 KiB
HTML

<!-- Generated by tools/build-webui.mjs for bank UI index. Do not edit directly. -->
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FORGE Banking Console</title>
<script>
window.ForgeSiteConfig = {
addonName: "bank",
logLabel: "Bank UI",
styles: ["bank-ui.css"],
commonScripts: ["forge-webui.js"],
scripts: ["bank-ui.js"],
};
(function loadForgeSiteLoader() {
const armaLoaderPath =
"forge\\forge_client\\addons\\common\\ui\\_site\\forge-site-loader.js";
const browserLoaderPath =
"../../../common/ui/_site/forge-site-loader.js";
function appendScript(js) {
const script = document.createElement("script");
script.text = js;
document.head.appendChild(script);
}
function requestLoader() {
if (
typeof A3API !== "undefined" &&
A3API &&
typeof A3API.RequestFile === "function"
) {
return A3API.RequestFile(armaLoaderPath);
}
return fetch(browserLoaderPath).then((response) => {
if (!response.ok) {
throw new Error(
"Failed to load " + browserLoaderPath,
);
}
return response.text();
});
}
requestLoader()
.then(appendScript)
.catch((error) => {
console.error(
"[Bank UI] Failed to load Forge site loader.",
error,
);
});
})();
</script>
</head>
<body>
<div id="app"></div>
</body>
</html>