Closes#3075.
Provides a block that allows to update a dictionary that was assigned to
a (named) variable.
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
This simplifies the sortpom configuration and also allows for checking
and reformatting them using the spotless:check and spotless:apply Maven
goals.
Similar to openhab/openhab-core#4618
Signed-off-by: Wouter Born <github@maindrain.net>
This offers a more convenient way to create a temporary copy when
editing/experimenting with a page.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
- Added support in script-edit.vue for new/imminent graal python
binding.
- Removed hard-coding of commentChar and pulled from restructured
annotation-language.js definition.
- Refactored the annotation-language.js definition implementation.
---------
Signed-off-by: Jeff James <jeff@james-online.com>
This is the UI side of the enhancements to a) receive historical logs
from the OH server, and b) improve performance by receiving arrays of
log entries rather than just single entries.
It does work with the existing log system since it will work with both
single log entries (as currently used) and arrays of logs. Due to the
change in format, the filter requests do log a parse error since it now
uses a DTO with a number of bits of data rather than just an array of
loggers, but this doesn't impact anything else. Therefore it is safe to
merge this before the core is merged (although it's probably best to
wait a little to ensure there's no major comments to the core side!).
This also fixes a minor bug where the number of filtered logs may be
incorrectly displayed.
With this and the core changes, I can display full zigbee debug - it's
about 2000 lines in 15 seconds (or put another way, the log buffer shows
about 15 seconds of data). The log remains responsive (I can change the
logging levels back). Possibly the log buffer can/should be increased
more than 2000 entries, but that's for another day...
Core PR coming soon...
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
Resolve#3052.
Also add automatic item name generation as the label is typed (only when
name hasn't been entered).
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Fix the following scenario:
- "search for usages of this item" for Item A is clicked
- Sidebar opens and sets `searchFor=itemA` preloads the search as
requested
- User then types new query in the sidebar, meanwhile the searchFor prop
remains unchanged
- Clicking on "search for usages of this item" for item A again, caused
no changes in `searchFor`, as a result, the watch for this prop didn't
fire
This PR fixes this situation by resetting the searchFor prop, therefore
causing the watch to perform the search again.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Canvas Layout: Fix embedding SVG errors
- When imageUrl is not configured, don't show/log an error message
- When imageUrl is not an SVG file, or
- When there's an error fetching the SVG file, show a toast message
- When flashing the embedded svg
- Show a toast message when flashing, but no 'openhab' elements were
found
---------
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
When the left panel is hidden, there's no way to see uninstalled
add-ons, so we should show the tab bar.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
See: https://community.openhab.org/t/basic-ui-setpoint-negative-values/161011
Parameters with negative number where not parsed correctly. This is
because hyphen is defined as a token and therefore already recognized
before recognizing the number. Changing the order does not help as it
breaks chart period parsing.
This fix avoids recognizing numbers as tokens and handles numbers in the
lexer.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
In non full-screen mode, the bottom of the screen was hidden behind the
bottom toolbar. This includes the "Add Masonry" button and any
components at the bottom of the screen.
Also-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Fix#2890.
Fix#1440.
Tested it on browserstack:
- enter works on iphone 13
- enter works on pixel 7
- also works on my real android phone
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Currently, if you go to Settings -> Items -> Add -> Save, you'll be
brought back to the Items list (back navigation).
This PR changes this behavior so that after the new item is saved/added,
the user is redirected to the Item Details page **of that new item**, so
they can immediately work on it.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Fixes an issue, where the page title was not centered sometimes due to a
rendering issue (race condition?) in Framework7.
Fixes the following Vue warning:
```
Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option.
```
Signed-off-by: Florian Hotze <dev@florianhotze.com>
When using the log viewer, I have regularly noticed that the time column
is wider than required, as well as the logger name column taking up much
space and making the message column move if a new log with a longer
logger name comes in.
This sets the width of the time, level and logger name columns to a
fixed value and limits the logger name length.
Signed-off-by: Florian Hotze <dev@florianhotze.com>