WebUI Contribution Standard #277
hassandraga
started this conversation in
General
Replies: 1 comment
-
Thank you very much this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
WebUI Contribution Standard
Binaries
readme
to download the trusted binariesa. Method 1: Using GitHub Action to download and inject the trusted binaries in the package, then publish it
b. Method 2: The wrapper runs the
bootstrap.sh
andbootstrap.bat
at runtimes to download the trusted binariesc. Method 3: The wrapper uses the available built-in APIs to download the trusted binaries
.zip
and extract itCode
a. For example,
webui_exit
should NOT be implemented as.exitApp
or.ExitProgram
, but instead, it should be.exit
or.Exit
b. All global APIs like
.exit
should be under thewebui.xx
object, while window APIs should be undermyWindow.xx
objectc. Any extra feature added to the wrapper should have its OWN dedicated API. For example, WebUI does not support JSON at all, so a wrapper with JSON support should be
.scriptJSON
or any similar name while keeping.script
pure as the original WebUI core APIExamples
w
but should use complete keyword names likemyWindow
or similar to help the new users understand the code. Examples are not a production release product but a showcase of how WebUI worksDocumentation
License
MIT License
Beta Was this translation helpful? Give feedback.
All reactions