Commit Graph

21 Commits (b885158e07b403f8a6ba85a06469987bbd3c72a4)

Author SHA1 Message Date
Wouter Born 5e4e32019e
Update package.json versions of UIs to 4.0.0 (#1762)
These versions are probably not really used by anything, but it is still
nice if they are up to date.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-05 23:26:48 +01:00
Mark Hilbush 2cccc67374
[habpanel] Use commandDescription instead of stateDescription for selection list (#1688)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2023-02-09 09:11:27 +01:00
openhab-bot 40f85c7d37
[habpanel] Upgrade Gulp to v4 & new Crowdin updates (#1572)
* New translations admin.pot (Romanian)

* New translations admin.pot (French)

* New translations admin.pot (Spanish)

* New translations admin.pot (Afrikaans)

* New translations admin.pot (Arabic)

* New translations admin.pot (Bulgarian)

* New translations admin.pot (Catalan)

* New translations admin.pot (Czech)

* New translations admin.pot (Danish)

* New translations admin.pot (German)

* New translations admin.pot (Greek)

* New translations admin.pot (Finnish)

* New translations admin.pot (Hebrew)

* New translations admin.pot (Hungarian)

* New translations admin.pot (Italian)

* New translations admin.pot (Japanese)

* New translations admin.pot (Korean)

* New translations admin.pot (Lithuanian)

* New translations admin.pot (Dutch)

* New translations admin.pot (Norwegian)

* New translations admin.pot (Polish)

* New translations admin.pot (Portuguese)

* New translations admin.pot (Russian)

* New translations admin.pot (Serbian (Cyrillic))

* New translations admin.pot (Swedish)

* New translations admin.pot (Turkish)

* New translations admin.pot (Ukrainian)

* New translations admin.pot (Chinese Simplified)

* New translations admin.pot (Vietnamese)

* New translations admin.pot (Portuguese, Brazilian)

* New translations admin.pot (Indonesian)

* New translations admin.pot (Tagalog)

* New translations admin.pot (Luxembourgish)

* New translations main.pot (Romanian)

* New translations main.pot (French)

* New translations main.pot (Spanish)

* New translations main.pot (Afrikaans)

* New translations main.pot (Arabic)

* New translations main.pot (Bulgarian)

* New translations main.pot (Catalan)

* New translations main.pot (Czech)

* New translations main.pot (Danish)

* New translations main.pot (German)

* New translations main.pot (Greek)

* New translations main.pot (Finnish)

* New translations main.pot (Hebrew)

* New translations main.pot (Hungarian)

* New translations main.pot (Italian)

* New translations main.pot (Japanese)

* New translations main.pot (Korean)

* New translations main.pot (Lithuanian)

* New translations main.pot (Dutch)

* New translations main.pot (Norwegian)

* New translations main.pot (Polish)

* New translations main.pot (Portuguese)

* New translations main.pot (Russian)

* New translations main.pot (Serbian (Cyrillic))

* New translations main.pot (Swedish)

* New translations main.pot (Turkish)

* New translations main.pot (Ukrainian)

* New translations main.pot (Chinese Simplified)

* New translations main.pot (Vietnamese)

* New translations main.pot (Portuguese, Brazilian)

* New translations main.pot (Indonesian)

* New translations main.pot (Tagalog)

* New translations main.pot (Luxembourgish)

* New translations widgets.pot (Romanian)

* New translations widgets.pot (French)

* New translations widgets.pot (Spanish)

* New translations widgets.pot (Afrikaans)

* New translations widgets.pot (Arabic)

* New translations widgets.pot (Bulgarian)

* New translations widgets.pot (Catalan)

* New translations widgets.pot (Czech)

* New translations widgets.pot (Danish)

* New translations widgets.pot (German)

* New translations widgets.pot (Greek)

* New translations widgets.pot (Finnish)

* New translations widgets.pot (Hebrew)

* New translations widgets.pot (Hungarian)

* New translations widgets.pot (Italian)

* New translations widgets.pot (Japanese)

* New translations widgets.pot (Korean)

* New translations widgets.pot (Lithuanian)

* New translations widgets.pot (Dutch)

* New translations widgets.pot (Norwegian)

* New translations widgets.pot (Polish)

* New translations widgets.pot (Portuguese)

* New translations widgets.pot (Russian)

* New translations widgets.pot (Serbian (Cyrillic))

* New translations widgets.pot (Swedish)

* New translations widgets.pot (Turkish)

* New translations widgets.pot (Ukrainian)

* New translations widgets.pot (Chinese Simplified)

* New translations widgets.pot (Vietnamese)

* New translations widgets.pot (Portuguese, Brazilian)

* New translations widgets.pot (Indonesian)

* New translations widgets.pot (Tagalog)

* New translations widgets.pot (Luxembourgish)

* Upgrade to Gulp 4

Fix incompatibility between Gulp 3 & Node 12.
Allows to regenerate the translations.

Signed-off-by: Yannick Schaus <github@schaus.net>

* Generate JSON i18n assets

Signed-off-by: Yannick Schaus <github@schaus.net>
2022-12-15 19:10:06 +01:00
dependabot[bot] d53fcede25
Bump decode-uri-component in /bundles/org.openhab.ui.habpanel/web (#1561)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-10 11:26:39 +01:00
Yannick Schaus dd9e29eea1
[habpanel] Remove ES6 syntax in dummy widget (#1433)
#1380 introduced new code with ES6 syntax (arrow functions) that isn't supported in older browsers.
See https://github.com/openhab/openhab-webui/pull/1380#issuecomment-1166344112

Reimplement using the code from the selection widget to determine the option
(uses angularJS helpers)

Signed-off-by: Yannick Schaus <github@schaus.net>
2022-06-26 02:03:17 +02:00
Bastiaan 3e7f49b657
Dummy and Clock widget improvements (#1380)
* Add color picking to dummy and clock widget
* Add state description option to dummy widget

Closes: #1349
Closes: #1293
Closes: #1294

Signed-off-by: Bastiaan van Haastrecht <b.vanhaastrecht@gmail.com>
2022-06-23 23:23:57 +02: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
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
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
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
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
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
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
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
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
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