fix(wiki): proxy topology through public gateway

Co-Authored-By: OpenAI Codex <codex@openai.com>
This commit is contained in:
2026-07-15 10:53:18 +08:00
co-authored by OpenAI Codex
parent e3b3a16b10
commit 8d057dbfa3
9 changed files with 81 additions and 5 deletions
+2 -2
View File
@@ -270,9 +270,9 @@ body.wiki-image-lightbox-open { overflow: hidden; }
<div class="topology-embed-shell">
<div class="topology-embed-host">
<iframe class="topology-embed-frame" src="http://192.168.195.241:38080/guanghan_topology_demo.html?mission=GHC-05" title="广寒基地交互式工程拓扑图(GHC-05)" loading="eager" sandbox="allow-scripts allow-same-origin allow-forms" allow="fullscreen"></iframe>
<iframe class="topology-embed-frame" src="http://118.89.192.134:59100/topology/guanghan_topology_demo.html?mission=GHC-05" title="广寒基地交互式工程拓扑图(GHC-05)" loading="eager" sandbox="allow-scripts allow-same-origin allow-forms" allow="fullscreen"></iframe>
</div>
<p class="topology-embed-fallback">如果嵌入视图未能加载,可<a href="http://192.168.195.241:38080/guanghan_topology_demo.html?mission=GHC-05" target="_blank" rel="noopener noreferrer">在新窗口打开交互式拓扑图</a></p>
<p class="topology-embed-fallback">如果嵌入视图未能加载,可<a href="http://118.89.192.134:59100/topology/guanghan_topology_demo.html?mission=GHC-05" target="_blank" rel="noopener noreferrer">在新窗口打开交互式拓扑图</a></p>
</div>
<h2 id="seealso">参见</h2>
+3 -1
View File
@@ -128,7 +128,9 @@
</div>
<script>
const API_BASE = '';
// Keep API calls beside the HTML document so the app works both at the
// service root and behind a reverse-proxy prefix such as /topology/.
const API_BASE = new URL('.', window.location.href).pathname.replace(/\/$/, '');
const SVG_NS = 'http://www.w3.org/2000/svg';
const TYPE_LABELS = { module: '舱段模块', node: '结构节点', vehicle: '着陆器/车辆', equipment: '设备模块' };
const ANCHOR_LABELS = {