Also adds separate "mostly" complete Tern definitions for the JSScripting globals + standard library for JSScripting, assuming they are available as globals (the default).
The old Nashorn definitions or these new ones are loaded depending on the media type.
Signed-off-by: Yannick Schaus <github@schaus.net>
The checks on which item types are allowed to be linked introduced with
#1106 & #1043 have a serious issue that prevents the items of the actual
type of the channel to be linked individually.
Fixes#1204.
Fixes https://github.com/openhab/openhab-core/issues/2568.
Signed-off-by: Yannick Schaus <github@schaus.net>
This adds a new UI component namespace (ui:blocks) allowing to define user-defined Blockly libraries declaratively using the component/config/slots paradigm and templating for code generation, and ultimately to share them on the Marketplace.
Also adds a dedicated editor for them in the developer tools.
Signed-off-by: Yannick Schaus <github@schaus.net>
This helps to identify what tests cause builds to get stuck and it will more quickly end such builds.
When builds get stuck in tests, they would keep running for hours and then eventually when a timeout occurs, the job is killed without knowing why it got stuck.
Furhermore precious Jenkins executors will not keep being occupied by such jobs.
See: https://junit.org/junit5/docs/current/user-guide/#writing-tests-declarative-timeouts
It helps with identifying the root cause of issues like openhab/openhab-core#2551
Signed-off-by: Wouter Born <github@maindrain.net>
Ignores warnings like:
```
Warning: /home/runner/work/openhab-addons/openhab-addons/bom/runtime-index/pom.xml [0:0]: Unused Export-Package instructions: [org.openhab.*]
Warning: /home/runner/work/openhab-addons/openhab-addons/bom/runtime-index/pom.xml [0:0]: Unused Import-Package instructions: [io.swagger.v3.oas.annotations.*,
```
These are safe to ignore because the import/export packages are globally defined and not every bundle imports/exports all these packages.
The `skipIfEmpty` configuration furthermore prevents warnings when the bnd-maven-plugin runs on projects that don't have any code like BOMs.
More important compiler/SAT warnings standout more when there are fewer useless warnings.
Signed-off-by: Wouter Born <github@maindrain.net>
This adds a great number of new openHAB-related blocks to the Blockly toolbox to:
- get info from items & things
- define timer and delays
- send push notifications (needs openHAB Cloud)
- play audio and speak text with text-to-speech
- store values for later retrieval in subsequent runs
If reorganizes the openHAB category into multiple domain-specific categories.
The code for the block definitions & code generation has been refactored heavily.
Update to latest stable Blockly version 6.20210701.0.
Includes code from (and supersedes) #875.
Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Yannick Schaus <github@schaus.net>
- Move non-rule templates automation add-ons to the second section
- Merge all non-widget UI add-ons to the second section
- Use GitHub well-known URLs in the openhab-docs repo (final or final-stable
branch) for the logo URL - avoids having to cherry-pick new binding logos
to stable, and CloudFlare caching issues
- Use correct version on next.openhab.org or www.openhab.org when clicking
the logo in the details page
- Hide images with alt text set to "logo" in description. For marketplace
entries this can be set with this syntax:
`` or ``
- More prominent "show all" button for expandable sections
Signed-off-by: Yannick Schaus <github@schaus.net>
* New translations en.json (Norwegian)
* New translations en.json (Greek)
* New translations en.json (Greek)
* New translations en.json (Greek)
* New translations en.json (Greek)
* New translations en.json (Greek)
* New translations en.json (Indonesian)
* New translations en.json (Indonesian)
* New translations en.json (Latvian)
* New translations en.json (Greek)
* New translations en.json (Greek)
* New translations en.json (Persian)
* New translations en.json (Persian)
* New translations en.json (Persian)
* New translations en.json (Persian)
* New translations en.json (Persian)
* New translations en.json (Persian)
* New translations en.json (Persian)
* New translations en.json (Persian)
* New translations en.json (Persian)
* New translations en.json (Persian)
* New translations en.json (Persian)
* New translations en.json (Polish)
* New translations en.json (Russian)
* New translations en.json (Russian)
* New translations en.json (Russian)
* New translations en.json (Catalan)
* New translations en.json (Catalan)
* New translations en.json (Catalan)
* New translations en.json (Catalan)
* New translations en.json (Catalan)
* New translations en.json (Catalan)
* New translations en.json (Catalan)
* New translations en.json (Catalan)
* New translations en.json (Catalan)
* New translations en.json (Catalan)
* New translations en.json (Catalan)
Regressions were introduced with #1055 where the state tracker wouldn't be started after going back to the home page from another page.
Also add a preloader which should only be displayed the first time.
Should fix#1161 & #1126.
Signed-off-by: Yannick Schaus <github@schaus.net>
Addition of a fixed canvas layout able to freely position and resize widgets
over a background. Can be used for floorplans or schemas (as an alternative
to floorplan pages), with the controls rendered over the image.
Rework layout type selection - default to responsive - and allow to select
a fixed type layout when the page is empty.
Signed-off-by: Gautier Taravella <tarag@mailbox.org>
Also-off-by: Yannick Schaus <github@schaus.net>
Depends on https://github.com/openhab/openhab-core/pull/2405.
This replaces the current section of the UI for managing
add-ons with a completely new "store-like" interface.
External data, like logos and detailed descriptions for
distribution add-ons are fetched from well-known locations
on the website or GitHub to provide a "store" look & feel.
The add-on store is orgnanized around 4 categories: bindings,
automation, UI, and others, with a separate search tab.
Each category is splitted into subsections. The availability
of these sections depend on the add-on services that are
registered. The sections currently supports add-ons provided
by the "karaf" & "marketplace" services, as provided by
https://github.com/openhab/openhab-core/pull/2405.
Other add-on services should be supported as well.
Signed-off-by: Yannick Schaus <github@schaus.net>
The current implementation would set the access token before trying out calling `/rest/sitemaps` which would obviously always succeed, since the call would be made with the token. Therefore the "requireToken" flag would not be set properly and prevent the alternative SSE implementation (which allows headers) to be used.
Fixes#1146.
Signed-off-by: Yannick Schaus <github@schaus.net>