Fixes#1794.
This checks for admin role when a client tries to access an admin route,
e.g. /settings, /developer, and redirects to log in if needed.
It also checks if the client is logged in when /profile is accessed.
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Without this custom widgets based on f7-list-item can not pass
components to slots other than inner.
This is based on @arroyoj's suggestion
https://github.com/openhab/openhab-webui/issues/1129.
Fixes#1129.
Signed-off-by: Michal Srb <michalsrb@gmail.com>
Use the `channelType`’s label and description as placeholder inside the
`channel-general-settings` component if they are available and no
explicit label or description is set.
Remove the `ready` var from the `channel-edit` component as is is only
used by the `channel-general-settings` component, for which all required
data are passed to `channel-edit` and therefore independent from the API
request inside `channel-edit`.
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes#1365.
The analyzer now also shows the diagram lines if the Item is a Group that
derives its state from its members.
The group must have the type Number(:) or Dimmer.
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Christian Rose <christian.rose@chrose.de>
Adds an option for setting the gradient direction of the oh-trend component.
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Peter Obel <peter@ecomerc.com> (github: petero-dk)
- Fixes an issue where adding triggers and conditions to scenes using
the YAML code tab was not possible (reported in
https://github.com/openhab/openhab-webui/pull/1662#issuecomment-1435019).
- Fixes an issue where `null` was entered as triggers or conditions and
saving the scene failed.
- Fixes SSE event subscription for rule status inside scene editor.
- Removes the disable and enable actions from the scene the scenes list
as there are no status badges.
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Follow-up PR for #1703.
This:
- lazy loads `vue-knob-control`
- refactors `vue-round-slider` to only use `vue-round-slider` and remove
`vue-knob-control`
A compatiblity layers ensures that existing `oh-knob` configurations
still work and default values of properties have been adjusted so that
`vue-round-slider` looks like the removed `vue-knob-control`.
Paremeter description and docs were updated accordingly to
`vue-round-slider`.
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Also-by: Dan Cunningham <dan@digitaldan.com>
Only 3 formats were/are set in `@font-face` rule: ttf, woff and woff2.
These 3 formats are sufficient to cover all current WEB browsers. Keep
only these formats and remove the other formats: eot, jmap and svg.
JAR file size is reduced by almost 20%.
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Fixes#1717.
Safari (and Chrome possibly as well) requires a user interaction after a
web audio stream has been requested, which means audio will not play
until at least one stream has been started and then the user clicks
somewhere in the web app.
This implements a workaround
(https://www.mattmontag.com/web/unlock-web-audio-in-safari-for-ios-and-macos)
which unlocks and stores the AudioContext globally, so that after the
first stream only a single interaction is required for the lifetime of
that browser session.
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Fixes#845.
This adds the visible property for the plan marker component and provides docs for iconStyle and tooltipStyle.
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
See comments in https://github.com/openhab/openhab-webui/pull/1745
Fix attribute values for `forceasitem` and `sendFrequency` not being
captured properly in code tab.
Fix boolean parameters `legend`, `forceasitem` and `switchSupport` not
interpreting string value correctly in widget detail view.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Bumps [scss-tokenizer](https://github.com/sasstools/scss-tokenizer) to
0.4.3 and updates ancestor dependency
[node-sass](https://github.com/sass/node-sass). These dependencies need
to be updated together.
Updates `scss-tokenizer` from 0.2.3 to 0.4.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sasstools/scss-tokenizer/releases">scss-tokenizer's
releases</a>.</em></p>
<blockquote>
<h2>v0.4.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Bump acorn from 5.7.3 to 5.7.4 by <a
href="https://github.com/dependabot"><code>@dependabot</code></a> in <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/pull/33">sasstools/scss-tokenizer#33</a></li>
<li>Fixed ReDoS in "loadAnnotation" function of
"previous-map.js" by <a
href="https://github.com/sushantmittal"><code>@sushantmittal</code></a>
in <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/pull/49">sasstools/scss-tokenizer#49</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/dependabot"><code>@dependabot</code></a> made
their first contribution in <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/pull/33">sasstools/scss-tokenizer#33</a></li>
<li><a
href="https://github.com/sushantmittal"><code>@sushantmittal</code></a>
made their first contribution in <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/pull/49">sasstools/scss-tokenizer#49</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/sasstools/scss-tokenizer/compare/v0.4.2...v0.4.3">https://github.com/sasstools/scss-tokenizer/compare/v0.4.2...v0.4.3</a></p>
<h2>v0.4.2</h2>
<h2>Misc</h2>
<ul>
<li>Restore <code>prepublishOnly</code> npm script (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>,
ae79d74)</li>
</ul>
<h2>v0.4.1</h2>
<h2>Fixes</h2>
<ul>
<li>Error handling utf-8 encoded sourcemap urls (<a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/13">#13</a>,
<a href="https://github.com/xzyfer"><code>@xzyfer</code></a>)</li>
</ul>
<h2>v0.4.0</h2>
<h2>Fixes</h2>
<ul>
<li>Fix <code>endInterpolant</code> not being captured (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/20">#20</a>)</li>
<li>Fix tracking of token position (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/22">#22</a>)</li>
</ul>
<h2>Tests</h2>
<ul>
<li>Add basic test coverage to interpolant tokenization (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/20">#20</a>)</li>
</ul>
<h2>Dependencies</h2>
<ul>
<li>Replace babel-preset-es2015 with babel-preset-env (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>sass-spec@2.5.1 (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>babel-core@^6.26.3 (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>babel-jest@^23.6.0 (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>glob@^7.1.3 (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>jest@^23.6.0 (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>js-base64@^2.4.9 (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
<li>source-map@^0.7.3 (<a
href="https://github.com/xzyfer"><code>@xzyfer</code></a>, <a
href="https://github-redirect.dependabot.com/sasstools/scss-tokenizer/issues/23">#23</a>)</li>
</ul>
<h2>Misc</h2>
<ul>
<li>TravisCI now tests all supported Node versions</li>
<li>Commit <code>package-lock.json</code></li>
</ul>
<h2>v0.3.0</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="3e518d908c"><code>3e518d9</code></a>
0.4.3</li>
<li><a
href="ff8e9945bc"><code>ff8e994</code></a>
Update changelog</li>
<li><a
href="a53b6f233e"><code>a53b6f2</code></a>
Fixed ReDoS in 'loadAnnotation' function of previous-map.js.</li>
<li><a
href="b55257baa5"><code>b55257b</code></a>
Bump acorn from 5.7.3 to 5.7.4</li>
<li><a
href="db9b196df8"><code>db9b196</code></a>
0.4.2</li>
<li><a
href="ae79d74ad5"><code>ae79d74</code></a>
Restore prepublishOnly npm script</li>
<li><a
href="32a65d8d8d"><code>32a65d8</code></a>
0.4.1</li>
<li><a
href="cef5140251"><code>cef5140</code></a>
Add support for utf8 name in input source map encoding</li>
<li><a
href="07c191732c"><code>07c1917</code></a>
0.4.0</li>
<li><a
href="d74f8038a0"><code>d74f803</code></a>
Commit package-lock.json</li>
<li>Additional commits viewable in <a
href="https://github.com/sasstools/scss-tokenizer/compare/v0.2.3...v0.4.3">compare
view</a></li>
</ul>
</details>
<br />
Updates `node-sass` from 6.0.1 to 7.0.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sass/node-sass/releases">node-sass's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.3</h2>
<h3>Dependencies</h3>
<ul>
<li>Bump sass-graph from 4.0.0 to ^4.0.1</li>
</ul>
<h2>Supported Environments</h2>
<table>
<thead>
<tr>
<th>OS</th>
<th>Architecture</th>
<th>Node</th>
</tr>
</thead>
<tbody>
<tr>
<td>Windows</td>
<td>x86 & x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>OSX</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>Linux*</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>Alpine Linux</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>FreeBSD</td>
<td>i386 amd64</td>
<td>12, 14</td>
</tr>
</tbody>
</table>
<p>*Linux support refers to major distributions like Ubuntu, and
Debian</p>
<h2>v7.0.2</h2>
<h2>This release has been unpublished</h2>
<h2>v7.0.1</h2>
<h3>Dependencies</h3>
<ul>
<li>Bump node-gyp from 7.1.2 to 8.4.1</li>
<li>Bump sass-graph from 2.2.5 to 4.0.0</li>
</ul>
<h2>Supported Environments</h2>
<table>
<thead>
<tr>
<th>OS</th>
<th>Architecture</th>
<th>Node</th>
</tr>
</thead>
<tbody>
<tr>
<td>Windows</td>
<td>x86 & x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>OSX</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>Linux*</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>Alpine Linux</td>
<td>x64</td>
<td>12, 14, 16, 17</td>
</tr>
<tr>
<td>FreeBSD</td>
<td>i386 amd64</td>
<td>12, 14</td>
</tr>
</tbody>
</table>
<p>*Linux support refers to major distributions like Ubuntu, and
Debian</p>
<h2>v7.0.0</h2>
<h3>Breaking changes</h3>
<ul>
<li>Drop support for Node 15 (<a
href="https://github.com/nschonni"><code>@nschonni</code></a>)</li>
<li>Set <code>rejectUnauthorized</code> to <code>true</code> by default
(<a href="https://github.com/scott-ut"><code>@scott-ut</code></a>, <a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3149">#3149</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>Add support for Node 17 (<a
href="https://github.com/nschonni"><code>@nschonni</code></a>)</li>
</ul>
<h3>Dependencies</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="73869ea88f"><code>73869ea</code></a>
7.0.3</li>
<li><a
href="11e2ab9339"><code>11e2ab9</code></a>
7.0.2</li>
<li><a
href="dc15b70919"><code>dc15b70</code></a>
Bump sass-graph@^4.0.1</li>
<li><a
href="99242d756d"><code>99242d7</code></a>
7.0.1</li>
<li><a
href="77049d166e"><code>77049d1</code></a>
build(deps): bump sass-graph from 2.2.5 to 4.0.0 (<a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3224">#3224</a>)</li>
<li><a
href="c929f25058"><code>c929f25</code></a>
build(deps): bump node-gyp from 7.1.2 to 8.4.1 (<a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3209">#3209</a>)</li>
<li><a
href="918dcb3a77"><code>918dcb3</code></a>
Lint fix</li>
<li><a
href="0a21792803"><code>0a21792</code></a>
Set rejectUnauthorized to true by default (<a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3149">#3149</a>)</li>
<li><a
href="e80d4afbce"><code>e80d4af</code></a>
chore: Drop EOL Node 15 (<a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3122">#3122</a>)</li>
<li><a
href="d7533977a0"><code>d753397</code></a>
feat: Add Node 17 support (<a
href="https://github-redirect.dependabot.com/sass/node-sass/issues/3195">#3195</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/sass/node-sass/compare/v6.0.1...v7.0.3">compare
view</a></li>
</ul>
</details>
<br />
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the
default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as
the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as
the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the
default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/openhab/openhab-webui/network/alerts).
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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>
In case the icon reference contains only 2 segments, the default for
icon source is "oh", the first segment is the icon set and the second
segment is the icon name.
So mdi:lightbulb will reference an OH icon named lighbulb in iconset
mdi.
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Related to openhab/openhab-android#3285
This sitemap widget is not documented.
It is not implemented neither in Android app nor iOS app.
It was partially implemented in BasicUI but does not work well (it
breaks the layout).
Without any opened issue, we can be relatively sure that noone is using
it.
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Bumps https://github.com/markedjs/marked from 3.0.2 to 4.2.12.
Only used in addon-details.vue where usage was adjusted to the new version.
Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: dependabot[bot] <support@github.com>
- Fixes the style of the actions popup on iPhones in the openHAB iOS
app. It did not respect the safe-area-inlets and therefore large action
popups possibly placed behing the notch or outside of the display.
- Fixes#1210: trim whitespaces when parsing the `actionOptions` to
avoid having whitespaces in commands sent to the server.
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Regression from #1696.
The widget expression evaluator returns undefined a string to make it
appear in the widget expression tester etc.
This has unattended side effects because the UI internally relies on
undefined checks.
This fixes the regression by reverting the change and instead modifying
the widget-expression tester to show undefined string if text is
`undefined`.
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
This improves the UI when working with add-ons that are provisioned
using Eclipse.
* Show these add-ons in the "openHAB Distribution" section
* Show in the add-on details when add-ons are provisioned with Eclipse
* Show the add-on documentation and issue links when add-ons are
provisioned with Eclipse
* Hide Install/Uninstall buttons when add-ons are provisioned with
Eclipse
Related to openhab/openhab-core#3406
Signed-off-by: Wouter Born <github@maindrain.net>
* Rework Servlets to use Http Whiteboard annotations in favor of
proprietary `org.openhab.core.io.http.servlet` classes
Depends on openhab/openhab-core#3252
Fixes#1172
Signed-off-by: Wouter Born <github@maindrain.net>
This:
- makes rule and scene editor automatically save the rule/scene when
"Run Now" is clicked and the rule/scene was modified.
- fixes the keyboard shortcuts for "Run Now" and "Enable/Disable" in the
scene editor
Both were reported/discussed in
https://github.com/openhab/openhab-webui/pull/1662#issuecomment-1434132699.
/cc @stefan-hoehn
--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>