mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
24 lines
849 B
HTML
24 lines
849 B
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<title>Codex Proxy RS</title>
|
|
<script>
|
|
;(() => {
|
|
const state = JSON.parse(localStorage.getItem('codex-proxy-rs-ui') || '{}')
|
|
const mode = state.themeMode || 'system'
|
|
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
const theme = mode === 'dark' || (mode === 'system' && prefersDark) ? 'dark' : 'light'
|
|
document.documentElement.dataset.theme = theme
|
|
document.documentElement.style.colorScheme = theme
|
|
})()
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
</html>
|