Commit Graph

1459 Commits (05464128b3e2b5b67b52cac2144fb622aa2df6d9)

Author SHA1 Message Date
Mark Herwege 05464128b3
[blockly] Add persistence median methods (#2732)
Depends on https://github.com/openhab/openhab-js/pull/376

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-16 15:46:19 +02:00
lolodomo 4ee283a6e4
Update CODEOWNERS (#2745)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-09-13 20:55:56 +02:00
Mark Herwege b293ab1b84
Sitemap editor: Validation improvements (#2720)
Closes #2701.

This PR contains a number of sitemap validation improvements,
interactive, before saving and in the DSL parser.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-13 19:36:25 +02:00
Florian Hotze 850fd48c1b
State description metadata: Allow to select transformations from list (#2752)
Resolves #1944.

When entering a state description pattern, an autocomplete list
is provided containing the available transformations.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-13 19:35:58 +02:00
Mark Herwege d79efb7cec
[blockly] Small improvements to blocks (#2742)
Several small improvements:

- Persistence `previous...State` and `next...State` blocks: add boolean
shadow block for skip same, default false
- Named `timer` blocks: add a `undefined` shadow block for `context`.
- `run rule or script` block: make the parameter dictionnary input a
shadow block

In addition to that, for the `transform` block, 
the transformation dropdown now dependens on the installed transformations.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-12 23:36:15 +02:00
Florian Hotze 920466e3aa
Rules/Scenes/Scripts: Gray out run now button if uninitialized (#2754)
Also improve toast messages in developer sidebar and fix a minor styling
issues for the script settings.

Addresses no. 1 of #2749.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-12 22:27:06 +02:00
Florian Hotze e958d3717b
Developer sidebar: Show error when trying to run unititialized rule (#2753)
Fixes #2748.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-12 21:48:59 +02:00
Florian Hotze b207722dd4
Home edit: Fix model tab settings not editable (#2751)
Fixes #2597.
Regression from #2304.

Also minimizes the gap between the Cards title and the reorder button.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-12 20:59:10 +02:00
Wouter Born 8e357f40df
Add stale action GHA workflow (#2747)
This allows for automatically marking issues as stale and closing them.

We use this in the core/add-ons and distro repos.
The "stale" label needs to be added for this to work.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-09-08 13:14:21 +02:00
Mark Herwege 99a9c0aa18
[blockly] Make HTTP block method name dropdown labels less technical (#2740)
See https://github.com/openhab/openhab-webui/pull/2607#issuecomment-2322954012.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-07 18:02:07 +02:00
Florian Hotze 22a42c3607
CSP: Allow embedding any source (#2741)
Regression from #2714.
This updates Main UI‘s CSP to allow embedding any source.

Fixes issues reported on the community, see
https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/6 and
https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/7.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-03 23:37:56 +02:00
dependabot[bot] ee27cecebd
Bump elliptic from 6.5.6 to 6.5.7 in /bundles/org.openhab.ui/web (#2726)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.6 to 6.5.7.

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-31 19:12:13 +02:00
Florian Hotze 2dccd471e2
Upgrade webpack from 5.93.0 to 5.94.0 (#2738)
Replaces #2736.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-31 18:53:28 +02:00
Florian Hotze 2a82a44884
[BasicUI] Update CONTRIBUTING.md (#2737)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-31 18:45:48 +02:00
lolodomo f295665469
[BasicUI] Upgrade node/npm/gulp/node-sass tools (#2722)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-08-31 18:39:53 +02:00
jimtng 08cd5a5208
Items: Add MEDIAN group function (#2734)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-26 22:31:15 +02:00
jimtng 5716165e6a
Developer sidebar: Focus on search when opened (#2731)
Resolve #2727.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-26 09:00:38 +02:00
Dan Cunningham 77dbfcb198
Fixes logic to detect when a thing's config changes vs the whole thing structure (#2729)
Fixes #2704

---------

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2024-08-25 09:17:40 +02:00
lolodomo 6139039f6c
[BasicUI] Upgrade Material Icons (#2724)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-08-23 09:45:56 +02:00
Tobias Bräutigam 51d28119a9
[cometvisu] fix path check regressions (#2719)
1. Fix serving the index.html when "/" (or empty) path is requested
2. Fix allowing files beeing served from special cometvisu config folder

Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
2024-08-21 22:14:16 +02:00
jimtng ca42730984
[BasicUI] Add build date to resource requests (#2703)
The goal is so users don't need to do a force refresh whenever openhab
is updated.

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-21 21:42:47 +02:00
Cody Cutrer 56eea58aa0
HomeKit metadata: Mark Thermostat.CurrentHeatingCoolingMode as optional (#2721)
See https://github.com/openhab/openhab-addons/pull/17191

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2024-08-20 18:46:11 +02:00
Mark Herwege b0d9ad7532
[blockly] HTTP block enhancements (#2607)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-08-19 11:16:32 +02:00
Mark Herwege 19aac477ca
[BasicUI] input widget, support html escape characters in input (#2685)
Closes https://github.com/openhab/openhab-webui/issues/2675

HTML escape characters in input widgets were not properly supported,
leading to an escaped character sequence under certain conditions.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-08-16 08:36:29 +02:00
Florian Hotze 17c2119efb
Charts: Apply iOS-related fixes only to iOS devices (#2717)
Improves the fixes from #2677, #2511, #2706 and #2710 to only apply to
iOS devices.
Avoids/Fixes regressions with other platforms such as
https://community.openhab.org/t/chart-scrollbar/157828.

Known issues:
- Charts display in popups on iPads are rendered to large.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-15 20:11:42 +02:00
Florian Hotze 6f01001b05
Main UI: Allow use of eval() in CSP (#2716)
Regression from #2714.

eval() seems to be required by ECharts: When opening a chart, an CSP
error is thrown that traces back to ECharts, but the chart still
renders.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-15 19:04:31 +02:00
Florian Hotze 654c89edb4
Main UI: Improve Content-Security-Policy (#2714)
This new CSP is much more restrictive compared to the old one:
- Don't allow any origin as default
- Don't allow eval() usage
- Don't allow data:, gap:, content: and blob: schemes by default

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-15 13:15:31 +02:00
Florian Hotze 94b3e7c90f
Widget actions: Support optional confirmation dialog/sheet (#2715)
This adds support for optionally asking the user for confirmation either
by dialog or by sheet before executing an action.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-14 17:08:37 +02:00
Florian Hotze b3ec38aa2c
Revert "Bump braces and gulp in /bundles/org.openhab.ui.basic" (#2713)
Reverts #2606.
Fixes #2712.
2024-08-14 10:57:07 +02:00
Florian Hotze a13ffe311e
Widget actions: Add a HTTP action to perform HTTP requests (#2711)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-13 13:19:17 +02:00
Florian Hotze f745fa98b7
Charts: Improve forced re-render code to keep settings and loaded data (#2710)
Follow-up for #2706.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-13 10:35:44 +02:00
dependabot[bot] 2ee0876c77
Bump braces and gulp in /bundles/org.openhab.ui.basic (#2606)
Bumps [braces](https://github.com/micromatch/braces) to 3.0.3 and
updates ancestor dependency [gulp](https://github.com/gulpjs/gulp).
These dependencies need to be updated together.

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 16:45:55 +02:00
Florian Hotze c43354aabe
Upgrade dependencies with security vulnerabilities (#2709)
Run npm audit fix.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-12 16:26:50 +02:00
Florian Hotze 09da526815
Upgrade @jsep/template-plugin, dayjs, echarts, qrcode & yaml (#2708)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-12 16:12:12 +02:00
Florian Hotze 0eddb68ca7
Upgrade build dependencies & Apply new ESLint config (#2707)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-12 15:43:59 +02:00
Florian Hotze f7f04bf18c
Charts: Force re-render on device orientation change (#2706)
Fixes #2702.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-12 14:45:48 +02:00
Thomas Wunschel 94aa16aba8
Allow model cards and model tabs outside of homepage (#2584)
Fixes #2583. Fixes #1591.

This moves model loading code to a new Vuex store module named model.
Model loading is now done by app.vue on init and when an Item change event is received through SSE.

home.vue and home-edit.vue now get the model from the Vuex store instead of loading it.
Add tab components for locations-tab, equipment-tab and properties-tab for easy usage in tabbed pages.
Add card components for oh-.location-card, oh-equipment-card and oh-property-card to standard widget list.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Thomas Wunschel <4302898+wuschi@users.noreply.github.com>
2024-08-12 13:00:03 +02:00
Cody Cutrer 3afef194df
Update HomeKit metadata definitions (#2691)
Add missing accessories, configuration parameters, enums, etc.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2024-08-12 10:55:39 +02:00
Mark Herwege 175b639937
Sitemap editor: Remove sendFrequency parameter (#2705)
See
https://github.com/openhab/openhab-core/issues/4338#issuecomment-2283251553

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-08-12 10:55:12 +02:00
lolodomo be71ace313
[BasicUI] Remove reading of frequency parameter of colorpicker element (#2699)
Note that %frequency% does not exist in colorpicker snippet.

Related to openhab/openhab-core#4338

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-08-11 20:17:40 +02:00
jimtng 77d42c1500
[BasicUI] Fix frame title's left padding in condensed tablet layout (#2700)
Before:

<img width="328" alt="image"
src="https://github.com/user-attachments/assets/f8dcad17-a86f-4a19-8c99-7668d755f37d">

After:

<img width="378" alt="image"
src="https://github.com/user-attachments/assets/673397dc-af99-4d46-8a9c-845f44033882">

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-10 08:50:55 +02:00
jimtng 4d6ad05607
[BasicUI] Make button text not uppercased (#2697)
The buttons on iOS and Android apps don't uppercase the text, so this PR
makes BasicUI behave the same way.

Related discussion:

https://github.com/openhab/openhab-webui/pull/2388#issuecomment-2270883776

https://github.com/openhab/openhab-webui/pull/2388#issuecomment-2272304430

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-10 08:32:26 +02:00
jimtng 4dc1bda5c1
[BasicUI] Revert uppercasing exponent (#2698)
Core now accepts lowercased exponent since
https://github.com/openhab/openhab-core/pull/3834

@mherwege would you mind verifying this please?

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-08 19:00:29 +02:00
openhab-bot 19a1acf320
New Crowdin updates (#2692) 2024-08-08 18:22:59 +02:00
Tobias Bräutigam 5e53b21626
[cometvisu] add more path checks (#2696)
also deny external xml schema loading (avoid XXE attacks)

Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
2024-08-08 10:51:19 +02:00
Florian Hotze 85cd64e147
Page designers: Fix dirty handling for code tab (#2695)
This fixes an issue, where the usage of the code tab of a page marked it
as dirty, even if no change to the page was made.
Please note that for the layout page desinger, the fix however does not
apply on the first time when the code tab of an existing page is opened.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-04 13:14:18 +02:00
jimtng e5418b4f92
Add a dirty indicator on the title bar (#2687)
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-04 12:00:31 +02:00
Florian Hotze cee0377aea
SSE state tracking: Reduce logging (#2694)
This might improve performance as console logging takes some performance.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-04 11:40:34 +02:00
Florian Hotze 0430db5138
Clean-up unused login/logout code in app.vue (#2693)
Removes unused code from app.vue and other occurrences. This code would
be a security issue if used and generates security warnings.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-04 11:40:05 +02:00
Florian Hotze 6b2f264660
Link add: Support linking Number channel to Switch Item with profile (#2690)
Closes #1478.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-28 15:05:20 +02:00