- 添加 Import Map 支持 Lit 和本地模块的简洁导入 - 创建统一的 API 管理模块 (common/api.js) - 重命名 styles/ 为 common/ 目录 - 修复分页时列选择被重置的问题 - 将 app.js 重命名为 main.js - 所有导入路径使用 ~ 别名映射
37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
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/",
|
|
"~/": "/static/js/"
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- 应用容器 -->
|
|
<srdb-app></srdb-app>
|
|
|
|
<!-- Modal -->
|
|
<srdb-modal-dialog></srdb-modal-dialog>
|
|
|
|
<!-- 加载 Lit 组件 -->
|
|
<script type="module" src="/static/js/main.js"></script>
|
|
</body>
|
|
</html>
|