From db51c132dc9d42c3aaaca6db05377c06c706dd20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20H=C3=B6hn?= Date: Fri, 17 Feb 2023 23:57:58 +0100 Subject: [PATCH 1/3] [blockly] add blockly workspace search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Höhn --- bundles/org.openhab.ui/web/package-lock.json | 18 ++++++++++++++++++ bundles/org.openhab.ui/web/package.json | 1 + .../settings/rules/script/blockly-editor.vue | 4 ++++ 3 files changed, 23 insertions(+) diff --git a/bundles/org.openhab.ui/web/package-lock.json b/bundles/org.openhab.ui/web/package-lock.json index 0d4354ac22..63415158dd 100644 --- a/bundles/org.openhab.ui/web/package-lock.json +++ b/bundles/org.openhab.ui/web/package-lock.json @@ -11,6 +11,7 @@ "dependencies": { "@blockly/field-slider": "^4.0.3", "@blockly/plugin-cross-tab-copy-paste": "^2.0.4", + "@blockly/plugin-workspace-search": "^6.0.7", "@blockly/theme-dark": "^4.0.1", "@blockly/zoom-to-fit": "^3.0.3", "@jsep-plugin/arrow": "^1.0.5", @@ -2780,6 +2781,17 @@ "blockly": "^9.0.0" } }, + "node_modules/@blockly/plugin-workspace-search": { + "version": "6.0.7", + "resolved": "https://registry.npmjs.org/@blockly/plugin-workspace-search/-/plugin-workspace-search-6.0.7.tgz", + "integrity": "sha512-MXMR5pgbFCm47QZ5cyFVyF4TwP6bIP0Po59/Sp3QzlutD+OTiecLolXivBYXGriQfBYpNzlD5BQvWD0UtoDDXA==", + "engines": { + "node": ">=8.17.0" + }, + "peerDependencies": { + "blockly": "^9.0.0" + } + }, "node_modules/@blockly/theme-dark": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@blockly/theme-dark/-/theme-dark-4.0.1.tgz", @@ -26566,6 +26578,12 @@ "integrity": "sha512-dznGTmY+wdUdFDhoAl9BK5c6TLXTa6u6W4t0I2oQq4oaJwXflY/lQraEmBTF7+1UTHsEBh2sOH9j2cHO6Xo2nA==", "requires": {} }, + "@blockly/plugin-workspace-search": { + "version": "6.0.7", + "resolved": "https://registry.npmjs.org/@blockly/plugin-workspace-search/-/plugin-workspace-search-6.0.7.tgz", + "integrity": "sha512-MXMR5pgbFCm47QZ5cyFVyF4TwP6bIP0Po59/Sp3QzlutD+OTiecLolXivBYXGriQfBYpNzlD5BQvWD0UtoDDXA==", + "requires": {} + }, "@blockly/theme-dark": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@blockly/theme-dark/-/theme-dark-4.0.1.tgz", diff --git a/bundles/org.openhab.ui/web/package.json b/bundles/org.openhab.ui/web/package.json index 4537b22a74..b8fe765652 100644 --- a/bundles/org.openhab.ui/web/package.json +++ b/bundles/org.openhab.ui/web/package.json @@ -63,6 +63,7 @@ "dependencies": { "@blockly/field-slider": "^4.0.3", "@blockly/plugin-cross-tab-copy-paste": "^2.0.4", + "@blockly/plugin-workspace-search": "^6.0.7", "@blockly/theme-dark": "^4.0.1", "@blockly/zoom-to-fit": "^3.0.3", "@jsep-plugin/arrow": "^1.0.5", diff --git a/bundles/org.openhab.ui/web/src/pages/settings/rules/script/blockly-editor.vue b/bundles/org.openhab.ui/web/src/pages/settings/rules/script/blockly-editor.vue index 40692b9e1a..4c40a52559 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/rules/script/blockly-editor.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/rules/script/blockly-editor.vue @@ -1002,8 +1002,10 @@ z-index 9000 +