website: update translation (#1377)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
In addition to executing boot scripts and modifying system files, KernelSU's modules also support displaying UI interfaces and interacting with users.
|
||||
|
||||
The module can write HTML + CSS + Javascript pages through any web technology. KernelSU's manager will display these pages through WebView. It also provides some APIs for interacting with the system, such as executing shell commands.
|
||||
The module can write HTML + CSS + JavaScript pages through any web technology. KernelSU's manager will display these pages through WebView. It also provides some APIs for interacting with the system, such as executing shell commands.
|
||||
|
||||
## webroot directory
|
||||
|
||||
@@ -20,13 +20,13 @@ Web resource files should be placed in the `webroot` subdirectory of the module
|
||||
When installing the module, KernelSU will automatically set the permissions and SELinux context of this directory. If you don’t know what you are doing, please do not set the permissions of this directory yourself!
|
||||
:::
|
||||
|
||||
If your page contains css and javascript, you need to place it in this directory as well.
|
||||
If your page contains CSS and JavaScript, you need to place it in this directory as well.
|
||||
|
||||
## Javascript API
|
||||
## JavaScript API
|
||||
|
||||
If it is just a display page, it is no different from a normal web page. More importantly, KernelSU provides a series of system API that allow you to implement the unique functions of the module.
|
||||
|
||||
KernelSU provides a Javascript library and [publishes it on npm](https://www.npmjs.com/package/kernelsu), which you can use in the javascript code of your web pages.
|
||||
KernelSU provides a JavaScript library and [publishes it on npm](https://www.npmjs.com/package/kernelsu), which you can use in the JavaScript code of your web pages.
|
||||
|
||||
For example, you can execute a shell command to obtain a specific configuration or modify a property:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user