mirror of
https://github.com/shy3130/tick-stock-panel.git
synced 2026-11-02 10:26:13 +00:00
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<script>
|
|
// 预渲染主题脚本: 首屏前设置 html.dark, 避免亮暗闪烁 (FOUC)。
|
|
// 默认暗色; 用户切过亮色后 (localStorage tf-theme=light) 保持亮色。
|
|
// 同步应用页面缩放 (tf-page-zoom, 设置→系统→界面缩放), 避免加载后尺寸跳变。
|
|
(function () {
|
|
try {
|
|
if (localStorage.getItem('tf-theme') !== 'light') {
|
|
document.documentElement.classList.add('dark')
|
|
}
|
|
} catch (e) {
|
|
document.documentElement.classList.add('dark')
|
|
}
|
|
try {
|
|
var z = JSON.parse(localStorage.getItem('tf-page-zoom') || '')
|
|
if (typeof z === 'number' && z >= 0.8 && z <= 1.5) {
|
|
document.documentElement.style.zoom = String(z)
|
|
}
|
|
} catch (e) { /* ignore */ }
|
|
})()
|
|
</script>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<meta name="theme-color" content="#8B5CF6" />
|
|
<title>Tick Stock Panel · Quant Terminal</title>
|
|
<!-- 字体已自托管 (@fontsource, 见 main.tsx), 不再引用第三方 CDN 样式表 -->
|
|
</head>
|
|
<body class="bg-base text-foreground">
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|