WebUI Module Development
更新: 8/20/2025字数: 0 字时长: 0 分钟
ShiroSU's WebUI standard adheres to KerenlSU, please refer to theKerenlSU Module WebUIfor detailed specifications.
In addition, ShiroSU's WebUI JavaScript interface'smoduleInfo
function provides an extraupdatable
value, which will be affected by the user's network environment.
Module Directory Structure
The module directory should follow the following structure:
.
├── module.prop
└── webroot
├── index.html
└── Other Web Resources...
Thewebroot
directory is the root directory of the WebUI, containing all frontend resources.
Development Demo
We provide a simple WebUI Demo, which usesvite
for bundling and is based onvue3
, and integratesKernelSU
package to help you get started quickly.
- WebUI Demo Repository:https://github.com/OOM-WG/WebUI_Demo
- WebUI Demo Screenshot:WebUI Demo Screenshot