website: update translation (#1377)

This commit is contained in:
igor
2024-02-25 11:48:22 -03:00
committed by GitHub
parent bf71ff133c
commit 56dbc980f4
4 changed files with 58 additions and 5 deletions

View File

@@ -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 dont 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: