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>
User inadvertently losing the entered new tag when they haven't realised
that they needed to press Enter. It seems that onblur was originally
intended to auto-add the typed tag, e.g. when user immediately clicked
"Save" (top right), but it was attached to the wrong element, thus the
event didn't fire.
Changes keypress to keyup event because the keypress is
missing the last letter otherwise. It wasn't a problem in the past
because it only worked with Enter key (being the last keypress). Missing
the last letter becomes a problem when adding it in the onblur event. So
keyup solved that.
Also removed `@keyPressed.native="keyPressed"`, not sure why it was needed.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
When the tag input is supposed to filter out semantic tags, also prevent user from entering them.
It is up to the caller of tag-input form to determine whether it can accept semantic tags or not,
by specifying it in the `showSemanticTags` property.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Regression, fix issue introduced by #2972.
JavaDoc output dir changed from target/site to target/reports.
This will get it back to the known location.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Prevents JavaDoc tooling issues because these tools check comments
starting with `/**`.
Depends on #2987
Signed-off-by: Wouter Born <github@maindrain.net>
Follow-up for #2907.
Fixes WS client broken due to `=` being part of the base74-encoded
token, which is no allowed WS subprotocol value.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Fixes#2956.
This fix creates the limitation that an Item must not be named
`undefined` - for an Item with this name, state tracking won't work.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Depens on https://github.com/openhab/openhab-core/pull/4515.
This refactors the WebSocket connection code from #2884 to the `$oh`
namespace, same as it is for the SSE logic.
It also passes the access token as WebSocket subprotocol so it is sent
with the `Sec-WebSocket-Protocol` header.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Related to #2584 and
https://github.com/openhab/openhab-core/issues/4466.
This avoids that the global SSE connection is always established, and
therefore reduces problems with the max parallel HTTP connections
limitation. The global SSE connection is now only established if the web
audio sink or the command Item are enabled.
Whilst this change potentially makes the UI not reload the model
automatically on change, practically the now removed mechanism might
haven't been really useful at all because the model is already reloaded
on Main UI start, and if SSE was not connected the moment an Item
changed the mechanism did not trigger.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
This PR implements drag and drop in the sitemap tree, to make it easier
to graphically rearange sitemaps.
To achieve this, [Vue.Draggable](https://github.com/SortableJS/Vue.Draggable) (by itself
based on SortableJS) is included.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Adds String type support to the interactive SVG canvas by allowing to
compare a string to a specific value that is perceived as state ON:
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Regression from #2690.
Reported here:
https://community.openhab.org/t/enocean-impossible-to-link-a-rockerswitch-channel-with-an-item-in-main-ui-there-is-no-profile-available-for-the-selected-item/160987
When creating a Thing channel link to an item, the profile selection are
disabled. This presents two problems:
- It made linking a trigger channel to an item not possible, because a
profile must be selected, but they're disabled.
- Linking a non-trigger channel to a new item is possible, but selecting
a profile is not possible at link creation. The user has to create the
link without a profile first, then go back to edit the link in order to
assign a profile.
When editing a channel link, profile selection was possible for
unsupported profiles, e.g. when editing a link between a Switch Item and
a Number channel, one could edit the link to use the default or follow
profiles.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>