[jsscripting] Rename library injection parameter & Improve docs (#15547)
* [jsscripting] Rename parameter useIncludedLibrary to injectionCachingEnabled (#4) * [jsscripting] Improve README for cached library injection * Remove settings image Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This commit is contained in:
@@ -17,15 +17,15 @@
|
||||
</options>
|
||||
<default>true</default>
|
||||
</parameter>
|
||||
<parameter name="useIncludedLibrary" type="boolean" required="true">
|
||||
<label>Use Included openHAB JavaScript Library</label>
|
||||
<parameter name="injectionCachingEnabled" type="boolean" required="true">
|
||||
<label>Cache openHAB JavaScript Library Injection</label>
|
||||
<description><![CDATA[
|
||||
Use the included openHAB JavaScript library for optimal performance.<br>
|
||||
Disable this option to allow loading the library from the local user configuration directory "automation/js/node_modules". Using a user provided version of the library may increase script loading times, especially on less powerful systems.
|
||||
Cache the openHAB JavaScript library injection for optimal performance.<br>
|
||||
Disable this option to allow loading the library from the local user configuration directory "automation/js/node_modules". Disabling caching may increase script loading times, especially on less powerful systems.
|
||||
]]></description>
|
||||
<options>
|
||||
<option value="true">Use Included Library</option>
|
||||
<option value="false">Do Not Use Included Library</option>
|
||||
<option value="true">Cache Library Injection</option>
|
||||
<option value="false">Do Not Cache Library Injection</option>
|
||||
</options>
|
||||
<default>true</default>
|
||||
</parameter>
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
# add-on
|
||||
|
||||
addon.jsscripting.name = JavaScript Scripting
|
||||
addon.jsscripting.description = This adds a JS (ECMAScript-2021) script engine.
|
||||
|
||||
# add-on
|
||||
|
||||
automation.config.jsscripting.injectionCachingEnabled.label = Cache openHAB JavaScript Library Injection
|
||||
automation.config.jsscripting.injectionCachingEnabled.description = Cache the openHAB JavaScript library injection for optimal performance.<br>Disable this option to allow loading the library from the local user configuration directory "automation/js/node_modules". Disabling caching may increase script loading times, especially on less powerful systems.
|
||||
automation.config.jsscripting.injectionCachingEnabled.option.true = Cache Library Injection
|
||||
automation.config.jsscripting.injectionCachingEnabled.option.false = Do Not Cache Library Injection
|
||||
automation.config.jsscripting.injectionEnabled.label = Use Built-in Global Variables
|
||||
automation.config.jsscripting.injectionEnabled.description = Import all variables from the openHAB JavaScript library into all rules for common services like items, things, actions, log, etc... <br> If disabled, the openHAB JavaScript library can be imported manually using "<i>require('openhab')</i>"
|
||||
automation.config.jsscripting.injectionEnabled.option.true = Use Built-in Variables
|
||||
automation.config.jsscripting.injectionEnabled.option.false = Do Not Use Built-in Variables
|
||||
automation.config.jsscripting.useIncludedLibrary.label = Use Included openHAB JavaScript Library
|
||||
automation.config.jsscripting.useIncludedLibrary.description = Use the included openHAB JavaScript library for optimal performance.<br> Disable this option to allow loading the library from the local user configuration directory "automation/js/node_modules". Using a user provided version of the library may increase script loading times, especially on less powerful systems.
|
||||
automation.config.jsscripting.useIncludedLibrary.option.true = Use Included Library
|
||||
automation.config.jsscripting.useIncludedLibrary.option.false = Do Not Use Included Library
|
||||
|
||||
# service
|
||||
|
||||
service.automation.jsscripting.label = JavaScript Scripting
|
||||
|
||||
Reference in New Issue
Block a user