Commit Graph

391 Commits (2440db9d1d56277f34e7fd85463f75fe1588efd6)

Author SHA1 Message Date
openhab-bot 2440db9d1d [unleash-maven-plugin] Preparation for next development cycle. 2021-12-12 01:16:20 +00:00
jenkins 7cbaf44384 [unleash-maven-plugin] Preparation for next development cycle. 2021-04-21 11:56:04 +00:00
Kai Kreuzer 4286361229 Adapted url for Artifactory (#1010)
* Adapted url for Artifactory

Related to https://github.com/openhab/openhab-distro/issues/1256

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-04-20 21:38:54 +02:00
openhab-bot d9219d7ed2 New Crowdin updates (#891)
* New translations en.json (Czech)

* New translations en.json (Czech)

* New translations en.json (Czech)

* New translations en.json (Czech)

* New translations en.json (Czech)

* New translations en.json (Czech)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Spanish)

* New translations en.json (Hebrew)

* New translations en.json (Spanish)

* New translations en.json (Spanish)

* New translations en.json (Swedish)

* New translations en.json (Swedish)

* New translations en.json (Swedish)

* New translations en.json (Spanish)

* New translations en.json (Spanish)

* New translations en.json (Spanish)

* New translations en.json (Italian)

* New translations en.json (Turkish)

* New translations en.json (Slovak)

* New translations en.json (Slovak)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (French)

* New translations en.json (Slovak)

* New translations en.json (Slovak)

* New translations en.json (German)

* New translations en.json (Spanish)

* New translations en.json (German)

* New translations en.json (Ukrainian)

* New translations en.json (Ukrainian)

* New translations en.json (German)

* New translations en.json (Tagalog)

* New translations en.json (Tagalog)

* New translations en.json (Serbian (Cyrillic))

* New translations en.json (Spanish)

* New translations en.json (Spanish)
2021-04-18 12:16:52 +02:00
Kai Kreuzer 99354e00a6 fixed distribution repo (#853) 2021-04-18 12:16:29 +02:00
hubsif f8fe2f5208 recalculate oh-slider when rendered, fixes #967 (#975)
Signed-off-by: Hubert Nusser <hubsif@gmx.de>
2021-04-18 12:15:10 +02:00
hubsif 762d46e30c Replace double percent sign in chart unit, fixes #870, fixes #928 (#976)
Signed-off-by: Hubert Nusser <hubsif@gmx.de>
2021-04-18 12:14:11 +02:00
Yannick Schaus 48c968260b Fix wrong widget editor mode when splitted horizontally (#962)
Fix #961.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-04-18 12:11:49 +02:00
hubsif 86b297d7e3 Generalize chart periods, fixes #808 (#953)
Signed-off-by: Hubert Nusser <hubsif@gmx.de>
2021-04-18 12:07:49 +02:00
DarkC a00b43653e Fix type "number" for list separator in sitemap designer (#950)
Signed-off-by: Kevin Haunschmied <darkc.futarialone@gmail.com>
2021-04-18 12:06:20 +02:00
Boris Krivonog 2142c8eae4 Added a fallback Array.prototype.flat implementation (#935)
Fixes #647.

Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2021-04-18 12:05:16 +02:00
Eiko Wagenknecht cd72f919aa Add link to material items (#916)
Signed-off-by: Eiko Wagenknecht <eiko.wagenknecht@web.de>
2021-04-18 12:04:06 +02:00
Thomas 394d278aea Make trendline always show latest value (#913)
(newest datapoint 60 minutes old otherwise)

Signed-off-by: Thomas Knaller <thomas@knaller.info>
2021-04-18 12:00:10 +02:00
Yannick Schaus 5515c8debf Avoid HEAD request (#908)
Fix #888.
openHAB Cloud doesn't seem to support forwarding HTTP HEAD requests.
So do a GET /rest/sitemaps instead to determine whether the user operations are
allowed anonymously, which is a little bit of overhead but since it's only the _list_
of sitemaps it should be acceptable in most cases.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-04-18 11:59:33 +02:00
hubsif 6284ec416f Fix metakey on some pages (#897)
Signed-off-by: Hubert Nusser <hubsif@gmx.de>
2021-04-18 11:58:49 +02:00
Boris Krivonog 3972547b0d Fixes error on service settings pages (#883)
```
vue.esm.js?a026:628 [Vue warn]: Property or method "onPageAfterIn" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
```

Introduced by #867.

Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2021-04-18 11:57:48 +02:00
JustinGeorgi b29d40ab96 Plan marker: Fix wrong option name (#877)
Fixes #844.

Fix component key in oh-knob-cell.

Signed-off-by: Justin Georgi justin.georgi@gmail.com
2021-04-18 11:56:57 +02:00
openhab-bot f75b27c96b New Crowdin updates (#854)
Add Latvian translation + improvements in Portuguese (Brazil), Russian, Slovenian, Ukrainian.
2021-04-18 11:56:10 +02:00
Anders Alfredsson 10cba6a741 Fix multiple selection for INTEGER options (#874)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-04-18 11:55:37 +02:00
Anders Alfredsson f53918d582 Fix step configuration in parameter-number.vue (#873)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-04-18 11:54:26 +02:00
Philipp Waller a71f6c1b33 Fix incompatible locale format (#830)
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
2021-04-18 11:52:40 +02:00
bigbasec 4d51d56eb1 Modelview deletekey functionality (#831)
Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
2021-04-18 11:51:53 +02:00
bigbasec 06a7e38c75 Add ability to save service configuration with Ctrl-S on the keyboard (#867)
Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
2021-04-18 11:50:03 +02:00
Christoph Weitkamp df34e4b19e Fixed pantry.svg to avoid iOS issues (#868)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-04-18 11:49:21 +02:00
bigbasec 4d74bba05d Fixes sitemap and proxy calls (#860)
* Passes sitemap to the renderers for proper display and makes adjustments to the proxy call

Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
2021-02-21 17:38:50 +01:00
openhab-bot 1a197b59e3 [unleash-maven-plugin] Preparation for next development cycle. 2021-01-26 17:26:43 +00:00
openhab-bot fed87680c2 New Crowdin updates (#828)
Corrections in German, Dutch, Hungarian, Portuguese (Brazil)
Additions in Slovak.
2021-01-25 02:15:27 +01:00
Yannick Schaus f964ce00cc Use consistent media types in UI Components editors (#843)
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-25 02:15:24 +01:00
Stewart Cossey 2e42866a1d Add missing homekit metadata. (#829)
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
2021-01-25 02:15:17 +01:00
Wouter Born 0dd1b11329 Update links to target "main" branches (#817)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-01-25 02:15:07 +01:00
Yannick Schaus 7452d7d34f Thing editing improvements (#823)
Don't save thing when coming back from the Code tab if it hasn't changed - fixes #618.
Disable editing controls if thing is not editable - fixes #570.
Disable editing of config parameters with readOnly enabled - fixes #756.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-18 19:16:12 +01:00
openhab-bot 42d9e8d1e3 New translations en.json (German) (#813) 2021-01-18 16:29:38 +01:00
Yannick Schaus 8a9a3b3a4c [nearley] Parse group w/ quantity base type & aggregation + parameters (#819)
Fixes #784.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-18 16:26:55 +01:00
Yannick Schaus df37e9da2b Rule editor: remove keyboard shortcuts when a module is open (#820)
Fixes #663.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-18 16:26:53 +01:00
Yannick Schaus 6fe442fe91 Fix model item creation, API explorer (#821)
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-18 16:26:50 +01:00
Yannick Schaus d6d63cfa11 Allow managed links to non-managed items (#822)
Includes both linking and unlinking.
Add error messages when trying to remove a non-managed
link.

Fixes #685.
Fixes #693.
Fixes https://github.com/openhab/openhab-core/issues/2130.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-18 16:26:46 +01:00
Yannick Schaus 16d0d6e39b Auth adjustments (#818)
Use the API interface instead of fetch() to make the HTTP HEAD
request to determine whether the SSE are protected.
Fix custom auth header logic.
Change probe endpoint to /rest/sitemaps.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-18 14:12:17 +01:00
Yannick Schaus 6a7ad46fdf Auth system refactoring (#812)
This brings a new number of improvements regarding auth:

- The SSE connections will be made using _event-source-polyfill_
which allows setting headers on the request, and setting
authorization headers or tokens as required has been added.
The main UI can now be used when the API is fully protected,
including the user operations like controlling items ("Implicit
user role for unauthenticated requests" disabled in Settings >
API Security). This closes #699.
We try to avoid the use of the polyfill if it's not needed, as the
native implementation is deemed better if it can be used. To
figure out whether that's the case, a `HTTP HEAD /rest/events`
is performed when setting the access token to determine if
that endpoint is secured - set the requireToken in case of a
401 response indicating it is.

- The UI now detects when the first /rest/ API calls fails with
a 401 Unauthorized error. This can happen when it's installed
as a standalone PWA ("Add to Home Screen" or "Install" in Chrome).
In that case, it will display a f7 login dialog and will also try
to use the Credentials API to store the passed credentials in
the browser, and retrieve them back to log in automatically the
next time. It will use these as Basic authentication credentials.
This prevents "empty screen" errors when using e.g.
myopenhab.org and the cloud credentials couldn't be passed.
The Basic credentials for proxy services can also be passed from
mobile with the following Javascript functions in the `OHApp`
object:
  * `string getBasicCredentialsUsername()`
  * `string getBasicCredentialsPassword()`
Also in that case, image handling in various parts of the UI has
to be modified to use blobs. This allows passing the credentials
if they're needed and known.

- Detects whether the API auth bundle is disabled (no /auth
endpoint), hides the authorize button and unlocks the admin menus.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-16 18:13:54 +01:00
Yannick Schaus 7384ec9387 Handle invalid links (#807)
Display links which are invalid (for instance, missing
thing or channel) and offer the option to remove them.
Cleanups.

Fixes #709.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-16 18:13:50 +01:00
Yannick Schaus 64020cd772 Don't generate empty tags when clearing semantics in picker (#806)
Fixes #690.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-16 18:13:41 +01:00
Yannick Schaus ea7631e0d1 Don't update the model until save (#805)
Fixes #671.
Fixes #681.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-16 18:13:33 +01:00
Yannick Schaus b196b16656 Don't propagate loop to child widgets contexts (#804)
This prevents a loop context from being shared among
multiple instances of the same widget.

To pass elements of the parent loop context to widgets,
use props with an expression when configuring the widget:
```
config:
  prop1: =loop.i
```

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-16 18:13:17 +01:00
Yannick Schaus d05701734c Setup wizard: add empty values for language, region (#803)
If the region is not set it would default to Afghanistan (the
first entry). Allow specifying none.

Add placeholder to location input.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-16 18:13:09 +01:00
Yannick Schaus 13f147a357 Fix compilation warning (#801)
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-16 18:13:04 +01:00
Yannick Schaus 0af8c716ac Script editor: Basic hints for unknown modes (#800)
(Slightly) less basic hints for Python

Make "add from textual definition" & sitemap code editor
splits resizable.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-16 18:12:59 +01:00
Yannick Schaus 235ca1c098 Autofocus most searchbars on desktop (#799)
Focuses searchbars on most dialog boxes
and pages when in desktop mode.
Closes #677.

Fixes searching on new thing type selection screen.
Fixes #683.

Partial styling fix for dark mode w/ filled bars, fixes #780.

Disable smart select popup animations when page transitions
are disabled.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-16 18:12:45 +01:00
bigbasec fa9be0ce01 Adding validation on channel id when adding a channel (#795)
Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
2021-01-13 09:02:05 +01:00
Yannick Schaus 7ba33ee138 Revert changes to NPM files accidentally made in e0b5984942
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-12 16:08:25 +01:00
Kai Kreuzer dda1e78fb8 Fixed BasicUI build
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-01-11 20:03:31 +01:00
openhab-bot b5bd59b8d1 New Crowdin updates (#679)
Incl. 3 new complete translations in:
- Greek
- Hebrew
- Portuguese

Partial translation in:
- Slovak

Fixes for:
- Hungarian
- Ukrainian
2021-01-11 12:51:29 +01:00