Commit Graph

401 Commits (184c6dab2f374b8a2107677c9d996eb028775f9c)

Author SHA1 Message Date
AndyXMB 184c6dab2f
Component docs (#900)
Signed-off-by: Andrew Black <andrewm.black@outlook.com>
Also-by: Yannick Schaus <github@schaus.net>
2021-03-01 15:42:17 +01:00
Wouter Born 4b2159713a
Update bnd to 5.3.0 (#930)
See: https://github.com/bndtools/bnd/wiki/Changes-in-5.3.0

Related to https://github.com/openhab/openhab-core/pull/2217

Signed-off-by: Wouter Born <github@maindrain.net>
2021-02-28 21:34:01 +01:00
Eiko Wagenknecht dc933b4b51
Add link to material items (#916)
Signed-off-by: Eiko Wagenknecht <eiko.wagenknecht@web.de>
2021-02-26 18:11:22 +01:00
Kai Kreuzer 0501209c57
Show ThingUID instead of ThingTypeUID for scan result (#921)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-02-22 12:32:53 +01:00
Kai Kreuzer d11ca5487f
Show ThingUID instead of ThingTypeUID for discovery result (#920)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-02-22 09:39:58 +01:00
Eiko Wagenknecht dc33378062
List available choices in toggle color parameter description (#918)
Signed-off-by: Eiko Wagenknecht <eiko.wagenknecht@web.de>
2021-02-22 09:37:09 +01:00
Eiko Wagenknecht 8e0b392722
Add missing link to f7 input docs (#917)
Signed-off-by: Eiko Wagenknecht <eiko.wagenknecht@web.de>
2021-02-22 09:35:18 +01:00
Thomas 427e6ccbe0
Make trendline always show latest value (#913)
(newest datapoint 60 minutes old otherwise)

Signed-off-by: Thomas Knaller <thomas@knaller.info>
2021-02-22 09:31:11 +01:00
Yannick Schaus 14493515a6
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-02-22 09:30:20 +01:00
bigbasec 3a51cb4084
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-11 08:37:38 +01:00
Philipp Waller 9013e74f6f
Activation of additional ESLint rules (#889)
This commit activates the following rules and provides the necessary code changes:
- indent
- no-trailing-spaces
- quotes
- vue/html-indent
- vue/html-quotes
- vue/no-multi-spaces

Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
2021-02-10 13:21:36 +01:00
hubsif 1dca2e0503
Fix metakey on some pages (#897)
Signed-off-by: Hubert Nusser <hubsif@gmx.de>
2021-02-10 12:53:07 +01:00
Boris Krivonog c3bafcf50b
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-02-07 16:52:46 +01:00
Sönke Küper a55b0b7f09
Added the ephemeris.NotHolidayCondition in ephemeris quick selection. (#741)
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
2021-02-06 17:19:57 +01:00
Yannick Schaus 5e7c092f55
Add frontmatter to component reference pages (#881)
Regenerate docs.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-02-05 19:22:23 +01:00
Yannick Schaus 9be043e4ee
Components docs: Add link to component page from labels on index page (#879)
Regenerate docs.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-02-05 17:34:30 +01:00
JustinGeorgi 1966f153d2
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-02-05 16:05:09 +01:00
Philipp Waller 687557584b
Integrate ESLint into the development and CI process (#833)
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
2021-02-05 15:59:56 +01:00
Yannick Schaus ba4d76fe9a
Add generated component reference (#864)
Add a Node.JS script to generate or update Markdown documentation from
the definitions of components. Generate an initial set of pages.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-02-05 15:16:35 +01:00
openhab-bot b9371e28fb
New Crowdin updates (#854)
Add Latvian translation + improvements in Portuguese (Brazil), Russian, Slovenian, Ukrainian.
2021-02-05 15:02:21 +01:00
Anders Alfredsson a2248440bd
Fix multiple selection for INTEGER options (#874)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-02-05 14:58:09 +01:00
Anders Alfredsson 806627b474
Fix step configuration in parameter-number.vue (#873)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-02-04 16:42:36 +01:00
Philipp Waller a914c622f0
Fix incompatible locale format (#830)
Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
2021-02-04 16:41:39 +01:00
bigbasec 61eb852501
Modelview deletekey functionality (#831)
Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
2021-02-04 16:39:09 +01:00
bigbasec 42718459a0
Add ability to save service configuration with Ctrl-S on the keyboard (#867)
Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
2021-01-31 08:28:02 +01:00
Christoph Weitkamp 41a60f2278
Fixed pantry.svg to avoid iOS issues (#868)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-01-31 08:14:56 +01:00
Boris Krivonog 130bedf17b
Evaluate `oh-time-series` too so one can bind it in widgets (#855)
Evaluate `oh-time-series` too so one can bind it in i.e. widgets, [details](https://community.openhab.org/t/main-ui-echarts-gauge-and-pie-poc/113987/18).
Don't modify the component while evaluating the data series.

Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2021-01-29 16:44:05 +01:00
Boris Krivonog a038730ee5
Add support for pie charts (#850)
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2021-01-28 00:44:17 +01:00
Boris Krivonog 379cbbe0c5
Upgrade ECharts to v5, add support for ECharts gauge & chart widget (#814)
Add a oh-chart widget to add charts to layout pages; change oh-chart-page to use it.
Add a oh-data-series component with the ability to add gauges representing a single value.
Upgrade ECharts to v5.0.1.

Also-by: Yannick Schaus <github@schaus.net>
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2021-01-27 01:25:49 +01:00
openhab-bot ece12a1ed5
New Crowdin updates (#828)
Corrections in German, Dutch, Hungarian, Portuguese (Brazil)
Additions in Slovak.
2021-01-25 02:13:15 +01:00
Yannick Schaus b1587bc66a
Use consistent media types in UI Components editors (#843)
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-25 02:09:00 +01:00
bigbasec 0426ad89a7
Adding Control-S save feature to item edit (#842)
Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
2021-01-24 22:15:30 +01:00
bigbasec f85635dc7f
Make the item clickable in the link details view
Closes #760.

Signed-off-by: Brian Homeyer <bhomeyer@gmail.com>
2021-01-24 20:28:54 +01:00
Stewart Cossey d7a80f359b
Add missing homekit metadata. (#829)
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
2021-01-21 15:33:02 +01:00
Wouter Born 639abb348d
Update links to target "main" branches (#817)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-01-18 21:25:15 +01:00
Yannick Schaus 0a29ec6f9e
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:15:08 +01:00
openhab-bot bd137071b5
New translations en.json (German) (#813) 2021-01-18 16:28:53 +01:00
Yannick Schaus d8265785fe
[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:03 +01:00
Yannick Schaus 0874f6377a
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:25:52 +01:00
Yannick Schaus 9ea40d6b92
Fix model item creation, API explorer (#821)
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-18 16:25:40 +01:00
Yannick Schaus 4bcbff9b3c
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:25:21 +01:00
Yannick Schaus cd659a794a
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:10:14 +01:00
Yannick Schaus 90f49f4d6b
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 17:52:51 +01:00
Yannick Schaus 3fe87dbcd6
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-14 15:09:04 +01:00
Yannick Schaus 942512e6ff
Don't generate empty tags when clearing semantics in picker (#806)
Fixes #690.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-14 15:08:46 +01:00
Yannick Schaus 3373e1e2c5
Don't update the model until save (#805)
Fixes #671.
Fixes #681.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-14 15:08:27 +01:00
Yannick Schaus 03aabb1685
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-14 15:08:12 +01:00
Yannick Schaus 33a144223a
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-14 15:07:52 +01:00
Yannick Schaus da4bd8d6de
Fix compilation warning (#801)
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-01-13 20:48:13 +01:00
Yannick Schaus 49c8fb278f
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-13 20:24:33 +01:00