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
+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 = {