28 lines
951 B
HTML
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' ? '#111412' : '#f6f7f5';
|
|
} 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>
|