Files
EasyCLIProxyAPI/index.html
T
2026-07-31 00:36:37 +08:00

28 lines
951 B
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
(() => {
try {
const savedTheme = localStorage.getItem('easy-cli-proxy-api.theme');
const theme = savedTheme === 'light' || savedTheme === 'dark'
? savedTheme
: matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
document.documentElement.dataset.theme = theme;
document.documentElement.style.colorScheme = theme;
document.documentElement.style.backgroundColor = theme === 'dark' ? '#0b1220' : '#f4f7fb';
} catch {
// The app applies the theme again during initialization.
}
})();
</script>
<title>EasyCLIProxyAPI</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>