Split topology page into modules and hooks; add SVG/XML export.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-11 22:00:38 +08:00
parent 54ca265430
commit b1aee86701
31 changed files with 6874 additions and 4697 deletions

View file

@ -1601,6 +1601,14 @@ const en = {
edgeDiscovered: "LLDP",
edgeStale: "Missing",
fit: "Fit view",
export: "Export",
exportSvg: "SVG vector",
exportXml: "XML data",
exporting: "Exporting…",
exportEmpty: "Nothing on the canvas to export",
exportedSvg: "SVG exported",
exportedXml: "XML exported",
exportFailed: "Export failed: {{detail}}",
liveSync: "Live sync",
liveSyncOn: "Syncing…",
liveSyncHint: "Poll the tree about every 5s and the open map every 3s (watch MCP create/draw). Off by default",

View file

@ -1586,6 +1586,14 @@ const zh = {
edgeDiscovered: "LLDP 发现",
edgeStale: "未发现",
fit: "适应画布",
export: "导出",
exportSvg: "SVG 矢量",
exportXml: "XML 数据",
exporting: "导出中…",
exportEmpty: "画布上没有可导出的内容",
exportedSvg: "已导出 SVG",
exportedXml: "已导出 XML",
exportFailed: "导出失败:{{detail}}",
liveSync: "实时同步",
liveSyncOn: "同步中…",
liveSyncHint: "开启后约每 5 秒刷新左侧树、每 3 秒刷新当前画布(观看 MCP 建图/画拓扑);默认关闭",