From b6ba68c03ecd5ac79e7a14b9244a85d449e842ca Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 18 Mar 2020 10:58:07 +0100 Subject: [PATCH 1/3] icon: regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters) --- CHANGELOG.md | 5 +++++ src/client/app/ui/utils.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index feb2b81c..566f557b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.49.11 + +- bug fixes + - regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters) + ## 0.49.10 - bug fixes diff --git a/src/client/app/ui/utils.js b/src/client/app/ui/utils.js index 4aa769a7..5244891d 100644 --- a/src/client/app/ui/utils.js +++ b/src/client/app/ui/utils.js @@ -116,7 +116,7 @@ module.exports = { return `` }, iconify:function(string){ - return String(string).replace(/\^[^\s]{4,}/g,(x)=>{return module.exports.icon(x.substring(1))}) + return String(string).replace(/\^[^\s]{2,}/g,(x)=>{return module.exports.icon(x.substring(1))}) }, upload: function(types, ok, error) { From bc27bc9c3199b7d99037c15bb27d20b6fe215ecf Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 18 Mar 2020 11:12:05 +0100 Subject: [PATCH 2/3] html widget: content not initialized properly --- CHANGELOG.md | 1 + src/client/app/widgets/plots/html.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 566f557b..08d2294a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - bug fixes - regression (0.49.10) breaking icon with short names (minimum valid length set to 2 characters) + - html widget: content not initialized properly ## 0.49.10 diff --git a/src/client/app/widgets/plots/html.js b/src/client/app/widgets/plots/html.js index fa2b18da..7a1b7fa0 100644 --- a/src/client/app/widgets/plots/html.js +++ b/src/client/app/widgets/plots/html.js @@ -44,6 +44,8 @@ class Html extends StaticProperties(Widget, {bypass: true}) { if (!this.getProp('border')) this.container.classList.add('noborder') + if (this.getProp('html') !== '') this.updateHtml() + } updateHtml(){ From 2bd2c513986827bb01ce9ec699ccbf64cea4eb38 Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 18 Mar 2020 11:15:29 +0100 Subject: [PATCH 3/3] package: v0.49.11 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f671b5b..9d146aba 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-stage-control", "productName": "Open Stage Control", "description": "Libre and modular OSC / MIDI controller", - "version": "0.49.10", + "version": "0.49.11", "author": { "name": "Jean-Emmanuel Doucet", "email": "jean-emmanuel@ammd.net"