Skip to content

Commit 08ca382

Browse files
feat: add webui
Co-authored-by: eltavine <me@eltavine.com>
1 parent 74a38aa commit 08ca382

47 files changed

Lines changed: 5599 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
export ANDROID_NDK_ROOT="$ANDROID_NDK_HOME"
4545
cargo ndk -t arm64-v8a build --release
4646
cp target/aarch64-linux-android/release/oukaro ./module/
47+
- name: Build WebUI
48+
run: |
49+
cd webui
50+
npm ci
51+
npm run build
4752
- name: Upload build artifacts
4853
uses: actions/upload-artifact@v4
4954
with:

‎webui/.gitignore‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
.vite
14+
*.tsbuildinfo
15+
*.local
16+
17+
# Editor directories and files
18+
.vscode/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?

‎webui/.vscode/extensions.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

‎webui/README.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# OukaroManager WebUI
2+
3+
Vue 3 + TypeScript + Vite frontend for the KernelSU module WebUI. The UI manages apps installed for the primary Android user (user 0) and writes static output into the module `webroot/`.
4+
5+
## Commands
6+
7+
```sh
8+
npm install
9+
npm run build
10+
```
11+
12+
`npm run build` writes the static site into `../module/webroot/`.

‎webui/components.json‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://shadcn-vue.com/schema.json",
3+
"style": "default",
4+
"typescript": true,
5+
"tailwind": {
6+
"config": "tailwind.config.ts",
7+
"css": "src/style.css",
8+
"baseColor": "stone",
9+
"cssVariables": true
10+
},
11+
"aliases": {
12+
"components": "@/components",
13+
"utils": "@/lib/utils"
14+
}
15+
}

‎webui/index.html‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
6+
<link rel="stylesheet" type="text/css" href="/internal/insets.css" />
7+
<link rel="icon" type="image/svg+xml" href="/src/assets/karo.svg" />
8+
<title>OukaroManager</title>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)