Closes#2701.
This PR contains a number of sitemap validation improvements,
interactive, before saving and in the DSL parser.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Resolves#1944.
When entering a state description pattern, an autocomplete list
is provided containing the available transformations.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Several small improvements:
- Persistence `previous...State` and `next...State` blocks: add boolean
shadow block for skip same, default false
- Named `timer` blocks: add a `undefined` shadow block for `context`.
- `run rule or script` block: make the parameter dictionnary input a
shadow block
In addition to that, for the `transform` block,
the transformation dropdown now dependens on the installed transformations.
---------
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Also improve toast messages in developer sidebar and fix a minor styling
issues for the script settings.
Addresses no. 1 of #2749.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes#2597.
Regression from #2304.
Also minimizes the gap between the Cards title and the reorder button.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This allows for automatically marking issues as stale and closing them.
We use this in the core/add-ons and distro repos.
The "stale" label needs to be added for this to work.
Signed-off-by: Wouter Born <github@maindrain.net>
1. Fix serving the index.html when "/" (or empty) path is requested
2. Fix allowing files beeing served from special cometvisu config folder
Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
Closes https://github.com/openhab/openhab-webui/issues/2675
HTML escape characters in input widgets were not properly supported,
leading to an escaped character sequence under certain conditions.
---------
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Improves the fixes from #2677, #2511, #2706 and #2710 to only apply to
iOS devices.
Avoids/Fixes regressions with other platforms such as
https://community.openhab.org/t/chart-scrollbar/157828.
Known issues:
- Charts display in popups on iPads are rendered to large.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Regression from #2714.
eval() seems to be required by ECharts: When opening a chart, an CSP
error is thrown that traces back to ECharts, but the chart still
renders.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This new CSP is much more restrictive compared to the old one:
- Don't allow any origin as default
- Don't allow eval() usage
- Don't allow data:, gap:, content: and blob: schemes by default
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This adds support for optionally asking the user for confirmation either
by dialog or by sheet before executing an action.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes#2583. Fixes#1591.
This moves model loading code to a new Vuex store module named model.
Model loading is now done by app.vue on init and when an Item change event is received through SSE.
home.vue and home-edit.vue now get the model from the Vuex store instead of loading it.
Add tab components for locations-tab, equipment-tab and properties-tab for easy usage in tabbed pages.
Add card components for oh-.location-card, oh-equipment-card and oh-property-card to standard widget list.
---------
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Thomas Wunschel <4302898+wuschi@users.noreply.github.com>
This fixes an issue, where the usage of the code tab of a page marked it
as dirty, even if no change to the page was made.
Please note that for the layout page desinger, the fix however does not
apply on the first time when the code tab of an existing page is opened.
---------
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Removes unused code from app.vue and other occurrences. This code would
be a security issue if used and generates security warnings.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>