Commit Graph

19 Commits

Author SHA1 Message Date
Dan Cunningham
ec10dfe897
[jsscripting] Update docs and refactor path (#11827)
This adds a minor refactoring of loading local resource paths that i didn't have time to get into 3.2  and moves the docs directory to doc.

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-12-21 23:36:22 +01:00
Michael Aschenborn
8ea76db693
Update README.md (#11836)
missing )
2021-12-21 18:39:32 +01:00
Kai Kreuzer
48746f5e3f Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-20 09:07:55 +01:00
openhab-bot
6dc031e6cf [unleash-maven-plugin] Preparation for next development cycle. 2021-12-20 00:30:46 +00:00
Dan Cunningham
0fddb6151c
[jsscripting] Support non unix file paths (#11805)
Lets try this again, Fixes #11801

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-12-17 20:34:25 +01:00
Dan Cunningham
2dfcb4cb3c
[jsscripting] Support non unix file paths (#11804)
Fixes #11801

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-12-17 17:08:35 +01:00
Dan Cunningham
fe271e3c4a
[jsscripting] Library and Doc updates (#11800)
* [jsscripting] Library and Doc updates

This updates the documentation, bumps the NPM version library, and implements conversion of JS date types (js-joda) to Java types

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-12-17 08:00:44 +01:00
Wouter Born
ccddf85c2a
[jsscripting] Add default translations (#11798)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-16 20:06:50 +01:00
Dan Cunningham
22b9be1390
[jsscripting] Update library and change config PID (#11777)
* Use OH standrard component pid naming, default injection to true.
* Bump openhab-js

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-12-14 08:30:32 +01:00
Dan Cunningham
4481ecff61
[jsscripting] openhab-js integration (#11656)
Fixes #11222

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-12-13 08:13:13 +01:00
Jonathan Gilbert
306c30eda1
GraalJS now uses automation/js (#11719)
* GraalJS now uses automation/js

Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
2021-12-12 23:06:37 +01:00
Jonathan Gilbert
c1b10c8363
Added simple Shared Cache into scope (#11693)
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
2021-12-11 11:13:55 +01:00
Florian Hotze
9bde2df3b4
[jsscripting] Improve docs with Actions (#11624)
Updated the documentation with:
* Core Actions
* Cloud Notification Actions
* Persistence Extensions
* Ephemeris Actions
* Types and Units

Instead of the single "imports", the default scope
(openhab-core/DefaultScriptScopeProvider.java) is used.
It's imported as `openhab`, services are under `openhab.service`.

As the helper library is on the way (openhab/openhab-js):
* Added note about console.log and logging in general.
* Added note that the lib is on the way.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2021-11-29 09:44:26 +01:00
LukasA83
a6fd6a3545
[jsscripting] Update GraalJS to 21.3 to allow method selection via JavaScript (#11437)
Signed-off-by: Lukas Agethen <lukas83@gmx.de>
2021-11-06 19:18:40 +01:00
Dan Cunningham
cb9b69943c
[jsscripting] Tell the script context to use the classloader of the current class. (#11400)
Fixes #11222

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-10-19 16:21:06 +02:00
Kai Kreuzer
bebab9ce29 applied spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-06-27 23:25:35 +02:00
jenkins
8c5c81e256 [unleash-maven-plugin] Preparation for next development cycle. 2021-06-27 17:35:01 +00:00
Wouter Born
f907bf37f9
[jsscripting] Fix build and cleanup (#10654)
Related to #8516

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-06 22:19:59 +02:00
Jonathan Gilbert
9912e1afc2
[jsscripting] ES6+ Support (#8516)
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
2021-05-06 09:08:47 +02:00