- add the imported server task addon to the current framework with task ownership, task catalog, mission-manager attack generation, org-owned reward routing, participant notifications, and reputation syncing - restructure org persistence so core org data, assets, fleet, and members are handled through the current Redis/extension model with matching Rust repository and service updates - wire the client CAD addon into the framework, actor device action, shared web UI bridge pattern, and task listing/acceptance flow - add a source-driven CAD web UI layout with ui.config.mjs and extend the shared web UI builder to support custom HTML template pages for multi-surface UIs
64 lines
2.3 KiB
HTML
64 lines
2.3 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
</head>
|
|
<body>
|
|
<div class="logo">FORGE OS</div>
|
|
<div class="controls">
|
|
<button id="btnZoomIn" class="btn">+</button>
|
|
<button id="btnZoomOut" class="btn">-</button>
|
|
<input
|
|
type="text"
|
|
id="searchBox"
|
|
placeholder="Search location..."
|
|
class="search-input"
|
|
/>
|
|
<button id="btnClose" class="btn btn-close">X</button>
|
|
</div>
|
|
<div class="info">
|
|
<span id="coordsDisplay">X: 0000 Y: 0000</span>
|
|
<span id="scaleDisplay">Scale: 1:1000</span>
|
|
</div>
|
|
|
|
<script>
|
|
window.MapLoader = {
|
|
loadCSS(path) {
|
|
return A3API.RequestFile(path).then((css) => {
|
|
const style = document.createElement("style");
|
|
style.textContent = css;
|
|
document.head.appendChild(style);
|
|
});
|
|
},
|
|
loadJS(path) {
|
|
return A3API.RequestFile(path).then((js) => {
|
|
eval(js);
|
|
});
|
|
},
|
|
loadAll(resources) {
|
|
return resources.reduce((promise, resource) => {
|
|
return promise.then(() => {
|
|
if (resource.endsWith(".css")) {
|
|
return this.loadCSS(resource);
|
|
}
|
|
|
|
if (resource.endsWith(".js")) {
|
|
return this.loadJS(resource);
|
|
}
|
|
|
|
return Promise.resolve();
|
|
});
|
|
}, Promise.resolve());
|
|
},
|
|
};
|
|
|
|
MapLoader.loadAll([
|
|
"forge\\forge_client\\addons\\cad\\ui\\_site\\cad-common.css",
|
|
"forge\\forge_client\\addons\\cad\\ui\\_site\\cad-topbar.css",
|
|
"forge\\forge_client\\addons\\cad\\ui\\_site\\cad-shared.js",
|
|
"forge\\forge_client\\addons\\cad\\ui\\_site\\cad-topbar.js",
|
|
]).catch((err) => console.error("[TOPBAR] Load error:", err));
|
|
</script>
|
|
</body>
|
|
</html>
|