Files
srdb/webui/static/index.html

35 lines
1.2 KiB
HTML
Raw Normal View History

2025-10-12 13:06:05 +08:00
<!DOCTYPE html>
<html lang="zh-CN">
2025-10-12 13:06:05 +08:00
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SRDB WebUI v2 - Preact</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="~~/static/css/styles.css">
<!-- 路径配置:服务端渲染时替换 ~~ 和 ~/: 为实际的 BasePath -->
<script>window.API_BASE = "~~";</script>
2025-10-12 13:06:05 +08:00
<!-- Import Map for Preact and HTM -->
<script type="importmap">
{
"imports": {
"preact": "https://esm.sh/preact@10.19.3",
"preact/": "https://esm.sh/preact@10.19.3/",
"htm/preact": "https://esm.sh/htm@3.1.1/preact?external=preact",
"dom-align": "https://cdn.jsdelivr.net/npm/dom-align@1.12.4/+esm",
"~/": "~~/static/js/"
2025-10-12 13:06:05 +08:00
}
}
</script>
</head>
<body>
<div id="app"></div>
2025-10-12 13:06:05 +08:00
<!-- Load Preact App -->
<script type="module" src="~~/static/js/main.js"></script>
2025-10-12 13:06:05 +08:00
</body>
</html>