Skip to content

Commit 452392e

Browse files
committed
feat(webui): 新增 WebUI
- 引入 Vue 3 + TS + Vite 管理界面
1 parent d921e57 commit 452392e

28 files changed

Lines changed: 12408 additions & 1 deletion

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
# Claude Code 本地项目指引 (不纳入仓库)
88
CLAUDE.md
99

10-
# WebUI 构建产物 (由 src/module/webui 构建生成,不纳入仓库)
10+
# WebUI 构建产物 (由 src/webui 构建生成,不纳入仓库)
1111
src/module/webroot/

src/webui/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

src/webui/index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<!-- KernelSU WebUI 注入的全局样式:insets.css 提供安全区内边距,colors.css 提供 Material 主题色变量 -->
8+
<link rel="preconnect" href="https://mui.kernelsu.org" crossorigin />
9+
<link
10+
rel="stylesheet"
11+
href="https://mui.kernelsu.org/internal/insets.css"
12+
/>
13+
<link
14+
rel="stylesheet"
15+
href="https://mui.kernelsu.org/internal/colors.css"
16+
/>
17+
<title>webui</title>
18+
</head>
19+
<body>
20+
<div id="app"></div>
21+
<script type="module" src="/src/main.ts"></script>
22+
</body>
23+
</html>

0 commit comments

Comments
 (0)