feat(web): management console frontend
Vue 3 + TS + Vite + Tailwind with self-built UI components. Landing, auth, user dashboard (keys/usage/settings), and admin console (overview/models/channels/users/usage/config). Theme system (light/dark/system) with pre-paint boot script, theme-aware ECharts, and a channel editor with multi-format (Anthropic/OpenAI) selection. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
d0e31b198f
commit
489a79564c
@@ -0,0 +1,27 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>OpenTeam · LLM API Relay</title>
|
||||
<script>
|
||||
;(function () {
|
||||
// Resolve theme before first paint to avoid a flash of the wrong theme.
|
||||
try {
|
||||
var m = localStorage.getItem('ot_theme')
|
||||
if (m !== 'light' && m !== 'dark' && m !== 'system') m = 'system'
|
||||
var light =
|
||||
m === 'light' ||
|
||||
(m === 'system' && window.matchMedia('(prefers-color-scheme: light)').matches)
|
||||
document.documentElement.setAttribute('data-theme', light ? 'light' : 'dark')
|
||||
} catch (e) {
|
||||
document.documentElement.setAttribute('data-theme', 'dark')
|
||||
}
|
||||
})()
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user