feat: WebUI 重构与更新
This commit is contained in:
@@ -1,37 +1,30 @@
|
||||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>SRDB Web UI</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" />
|
||||
|
||||
<!-- Import Map for Lit and local modules -->
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"lit": "https://cdn.jsdelivr.net/gh/lit/dist@3/core/lit-core.min.js",
|
||||
"lit/": "https://cdn.jsdelivr.net/gh/lit/dist@3/",
|
||||
"dom-align": "https://cdn.jsdelivr.net/npm/dom-align@1.12.4/+esm",
|
||||
"~/": "/static/js/"
|
||||
}
|
||||
<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">
|
||||
|
||||
<!-- 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"
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- 应用容器 -->
|
||||
<srdb-app></srdb-app>
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<!-- Modal -->
|
||||
<srdb-modal-dialog></srdb-modal-dialog>
|
||||
|
||||
<!-- 加载 Lit 组件 -->
|
||||
<script type="module" src="/static/js/main.js"></script>
|
||||
</body>
|
||||
<!-- Load Preact App -->
|
||||
<script type="module" src="/static/js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user