- 集成 tauri-plugin-opener:Cargo/lib.rs/capabilities/npm 四处接线,新增 src/openExternal.ts(桌面走 opener,浏览器回退 window.open,相对路径绝对化) - 关于页 4 个链接、活动栏官网菜单、代理错误横幅 2 处健康检查链接全部改走 openExternal,桌面端可正常跳转 - 设置→外观 主题顺序调整为 深色/浅色/跟随系统 - release 二进制重编并验证(浏览器实测关于页链接可开文档页) - 附带工作区中未提交的扁平化重构现状(另一会话进行中) - homepage 落地页与文档终检通过(8787 / 与 /docs 双 200)
24 lines
849 B
HTML
24 lines
849 B
HTML
<!doctype html>
|
|
<html lang="zh-CN" class="dark">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="theme-color" content="#080d14" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<script>
|
|
try {
|
|
const theme = localStorage.getItem("opsxapi.theme")
|
|
?? JSON.parse(localStorage.getItem("opsxapi.workspace.v2") || "null")?.settings?.theme;
|
|
document.documentElement.dataset.theme = theme === "system"
|
|
? (window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark")
|
|
: theme === "light" ? "light" : "dark";
|
|
} catch {}
|
|
</script>
|
|
<title>OpsxAPI</title>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|