Commit Graph

49 Commits (3.3.0.M6)

Author SHA1 Message Date
openhab-bot 228308910d Preparation for tag creation (Tag name: '3.3.0.M6'). 2022-06-05 17:51:52 +00:00
Wouter Born 8378aefe7e
Fix more SAT findings (#1318)
This fixes ~100 SAT findings. It also adds some more null annotations to the HABot classes.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-01 09:16:53 +01:00
Wouter Born eab99f0bfc
Update license headers to 2022 (#1266)
Signed-off-by: Wouter Born <github@maindrain.net>
2022-01-08 20:57:16 +01:00
Kai Kreuzer 9eeb7035e7 Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-20 08:51:27 +01:00
openhab-bot de8da844e8 [unleash-maven-plugin] Preparation for next development cycle. 2021-12-20 03:48:16 +00:00
Wouter Born ffbd450cd0
Apply Spotless (#1123)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-06-28 19:24:46 +02:00
jenkins 2bd5bafd04 [unleash-maven-plugin] Preparation for next development cycle. 2021-06-27 19:54:38 +00:00
Yannick Schaus 66eca55851
[habpanel] Initialize configuration-provided widgets (#1078)
This feature is deprecated in OH3 but code remains which would break if `$rootScope.configWidgets` is left undefined.
So define it as an empty object early.
Fixes #733.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-06-02 15:11:37 +02:00
hubsif 71b0113a19
Use unhashed browser urls, fixes #710 (#964)
BREAKING CHANGE: the addresses of linked pages in the UI change from:

http://ip:8080/#!/page/...
http://ip:8080/#!/settings/...

to:

http://ip:8080/page/...
http://ip:8080/settings/...

Please adjust your bookmarks.

Signed-off-by: Hubert Nusser <hubsif@gmx.de>
2021-05-09 10:46:11 +02:00
Wouter Born 30e7e835b1
Remove dependency on commons-io (#1028)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-02 11:06:47 +02: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
Holger Hees e8450799d7
[habpanel] Remove ItemStateEvent detection (#737)
Signed-off-by: Holger Hees <holger.hees@gmail.com>
2021-01-03 20:51:03 +01:00
Wouter Born abcc52e7cc
Update license headers to 2021 (#739)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-01-02 00:00:39 +01:00
Wouter Born a06a3371e8
Apply Spotless (#680)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-22 13:06:53 +01:00
jenkins 8c0a5c1639 [unleash-maven-plugin] Preparation for next development cycle. 2020-12-21 13:06:46 +00:00
Yannick Schaus 2d8b4f2537
[Main UI/HABPanel] Mobile app interface, part 2 (#633)
This adds support for the "OHApp" mobile app interface to HABPanel, and
fixes setting the main UI's dark mode by the app.
They will also call OHApp.goFullscreen()
on startup if the function exists.

Currently supported in the OHApp interface:
```js
window.OHApp = {
  preferDarkMode() { return 'light' },
  preferTheme() { return 'md' },
  pinToHome() { alert('pinned') },
  exitToApp() { alert('exit') }
  goFullscreen() { console.log('Going fullscreen') }
}
```

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-12-14 00:36:43 +01:00
Wouter Born 3b31d23976
[infrastructure] add external null-annotations (#470)
Add EEAs and fix null analysis errors.

Related to:

* openhab/openhab-core#888
* openhab/openhab-core#1775
* openhab/openhab-addons#8848

Signed-off-by: Wouter Born <github@maindrain.net>
2020-11-04 15:23:34 +01:00
Yannick Schaus 30e4b2bf65
[habpanel] Fix configuration of template widgets (#363)
Fixes #361.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-09-30 15:39:31 +02:00
Wouter Born 67a55f7cb2
[habpanel] Remove pom.xml.versionsBackup (#331)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-10 11:10:42 +02:00
Yannick Schaus 211dd8323e
[habpanel] Use UI components for backend storage (#327)
This PR moves the storage backend for HABPanel's panel registry
from the service configuration to the "habpanel:panelconf" UI
components namespace, so they're accessible without authorization.

The panel registry object format is converted back and forth to
the UI components format during loading/saving.

To save, it tries to find a refresh token from the main UI stored
in LocalStorage and uses it to get access tokens - a new access
token is requested for each save. Whether or not implementing a
complete OAuth2 authorization code flow (given the refresh token
if there for use as it's the same origin as the main UI, and users
can be taught to first sign in with the main UI to be able to edit
HABPanel) can be debated and is still t.b.d.

(The code to load the configuration with the service config, like
in OH2, has been left but it is not loaded. It will also work
because it tries to get access tokens as well.)

The other options that were formally in the service configuration
have been changed as well:

- the "initial panel configuration" is now a "default"/"starred"
flag on the panel configuration itself, it can be set within
HABPanel itself (the "star" icon after the panel config name in
Settings), only one should normally be starred at any given time,
but it's not enforced - it's the admin responsibility to ensure
that.

- the "lock editing" is now tied to the presence of the refresh
token; this means, signing out in the main UI will automatically
disable the editing features in HABPanel because there's no more
possibility to get an access token to save.

Similarly, the locale is taken from /rest/ instead of the i18n
service directly.

Some missing translations have been added and some changed.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-09-09 22:14:32 +02:00
Yannick Schaus bd9c6d39c3
[habpanel] Fix for explicit state formatting in buttons (#316)
Fix #315.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-08-25 21:14:24 +02:00
Wouter Born 60e6c78b5a
Use "openhab" event topic prefix (#304)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-08-11 21:16:56 +02:00
Yannick Schaus a32668a652
Fix HABPanel REST resource not registered (#289)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-08-09 14:34:22 +02:00
Wouter Born 7453955770
Migrate to OpenAPI 3 annotations (#299)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-08-02 16:14:55 +02:00
Wouter Born 4d6a11ffcb
Add more null annotatons (#260)
Adds null annotations to:

* Default UI
* Basic UI
* HomeBuilder
* REST Docs
* Tiles

Signed-off-by: Wouter Born <github@maindrain.net>
2020-05-23 11:20:02 +02:00
Wouter Born 46962a874a
Add null annotations to REST resources (#249)
- Remove unused language headers from HABotResource
- Remove redundant this references in HABotResource

Signed-off-by: Wouter Born <github@maindrain.net>
2020-05-17 17:47:48 +02:00
Wouter Born 937cf2456c
Infra improvements (#240)
* Update to SAT 0.10.0
* Add sortpom-maven-plugin configuration
* Sort POMs
* Add spotless-maven-plugin configuration
* Apply Spotless changes

Signed-off-by: Wouter Born <github@maindrain.net>
2020-05-08 21:33:24 +02:00
dependabot[bot] c332164944 Bump eslint in /bundles/org.openhab.ui.habpanel/web (#158)
Bumps [eslint](https://github.com/eslint/eslint) from 3.19.0 to 4.18.2.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v3.19.0...v4.18.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-09 15:16:06 +01:00
Yannick Schaus cfb0ef67ee Restore HABPanel service config (#182)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-24 19:24:20 +01:00
Yannick Schaus ad27a717ed Add default UI bundle (#178)
This add the UI in its current state of development,
the intent is to test the integration in the distro
early. The other apps are listed on the home page by
calling the new REST endpoint introduced in
https://github.com/openhab/openhab-core/pull/1329

The onboarding wizard implementation is not complete
so it isn't possible to select a startup package with
the UI yet.  The wizard steps will be discussed in a
separate issue; it should however be possible to install
addons as needed from the settings screen.

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-19 17:20:17 +01:00
Yannick Schaus 81b1cc5aea Remove all dependencies to the dashboard UI (#175)
* Remove all dependencies to the dashboard UI

Migrate all dashboard tiles to the core tile functionality
(https://github.com/openhab/openhab-core/pull/1329)

Signed-off-by: Yannick Schaus <github@schaus.net>
2020-01-18 09:32:33 +01:00
Christoph Weitkamp 739987de03 Moved ESH-INF folders to OH-INF folders (#174)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-01-17 15:29:49 +01:00
Wouter Born e4460f5500 Switch to Java 11 and drop Java 8 support (#160)
* Switch to Java 11 and drop Java 8 support

Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-12 22:33:58 +01:00
Kai Kreuzer baadca6f15 fixed bundle symbolic name for HABPanel (#166)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-01-03 11:30:15 +01:00
Wouter Born 553c4b4deb Update copyright headers to 2020 (#161)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-01 18:04:49 +01:00
Kai Kreuzer 0a8ca96d6d
refactored namespace to org.openhab (#157)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-12-29 18:09:25 +01:00
Kai Kreuzer 0d51db2b54
Removed Paper UI, Classic UI and HABmin (#154)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-12-29 12:31:13 +01:00
jenkins 30dfe0d9ee [unleash-maven-plugin] Preparation for next development cycle. 2019-12-15 18:52:07 +00:00
Yannick Schaus a6b978f170 [habpanel] Port over translations from Crowdin (#82)
Include a new complete Japanese translation (thanks to koui), and partial translations and fixes in Afrikaans, Arabic, Bulgarian, Korean, Lithuanian, Ukrainian.

Signed-off-by: Yannick Schaus <github@schaus.net>
2019-10-16 12:39:09 +02:00
Christoph Weitkamp fca2365008 Changed pid from 'org.eclipse.smarthome.core.i18nprovider' to 'org.eclipse.smarthome.i18n' (#127)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-16 08:57:31 +02:00
Yannick Schaus c09ce6ef4f [habpanel] Filter out unnecessary SSE events (#128)
This should help improve the performance for large installations,
or when the event bus is busy.

Signed-off-by: Yannick Schaus <github@schaus.net>
2019-10-16 08:45:38 +02:00
Yannick Schaus 33307aa446 [habpanel] Send early update events (#129)
This change broadcasts the 'openhab-update' event immediately, not waiting for
the result of the /rest/items request, if the items are already populated, when
OHService.reloadItems() is called.  This improves the dashboard switching latency
significantly at the expanse of reliability - some widgets (e.g. slider) might
'flicker' slighly.

Signed-off-by: Yannick Schaus <github@schaus.net>
2019-10-16 08:45:05 +02:00
Christoph Weitkamp bb1f8e6a44 Fixed POM XML Shema Definition path (#125)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-12 10:21:28 +02:00
Hilbrand Bouwkamp 2802fff739 Updated schema location from smarthome -> openHAB (#124)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-10-11 02:25:08 -07:00
Yannick Schaus 45614b2a27 [habpanel] Update dependencies, 5-col selection widget fix (#106) (#116)
Also-by: Alari Truuts <Alariii@gmail.com>
Signed-off-by: Yannick Schaus <github@schaus.net>
2019-09-05 17:58:50 +02:00
Yannick Schaus ac54f10ea6 [habpanel] Widget gallery: handle short attachment urls (#115)
Discourse now seems to use relative "short URLs" redirects (`/uploads/short-url/...`) instead of linking to the absolute URL of the attachment on S3 (for new posts only, those created before are not affected).

Signed-off-by: Yannick Schaus <github@schaus.net>
2019-09-04 20:43:10 +02:00
Wouter Born f3ba1429a9 Adapt POMs to follow common layout (#72)
* Update features GAV
* Update project names

Signed-off-by: Wouter Born <github@maindrain.net>
2019-06-05 21:58:11 +02:00
Markus Rathgeb dc1480397b fix some group IDs (#52)
* fix iconset feature by using new groupId
* Fix SAT configuration
* fix further group IDs

Also-by: Wouter Born <github@maindrain.net>
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-04-11 10:27:35 +02:00
Markus Rathgeb 249e33b2f8 improve Maven + Bnd layout and settings (#44)
https://github.com/openhab/openhab-webui/issues/38

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-04-05 08:28:49 +02:00