From 4ca8d0129aff5a4134b0aac8350302029946de05 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 25 Apr 2021 20:18:35 +0200 Subject: [PATCH 1/4] server: fix serving files from paths containing accents --- CHANGELOG.md | 1 + src/server/server.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8b4dd70..13f528e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - visualizer: remove `bars` and `dots` option - plot: fix `bars` option - project tree: clear filter input when loading a session + - server: fix serving files from paths containing accents - widgets - image: add pre defined values for `size`, `position` and `repeat` properties diff --git a/src/server/server.js b/src/server/server.js index 63aa6d94..9967bc8d 100644 --- a/src/server/server.js +++ b/src/server/server.js @@ -116,7 +116,7 @@ function httpRoute(req, res) { // Resolution order: session path, theme path, absolute path var id = urlparser.parse('?' + req.headers.cookie, true).query.client_id, - resolvedPath = resolvePath(url.replace(/%20/g, ' '), id) + resolvedPath = resolvePath(decodeURI(url), id) if (resolvedPath) { try { From dde39a9c3567ebd4481ef0962385367b84be0956 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 26 Apr 2021 09:11:45 +0200 Subject: [PATCH 2/4] docs: arm64 build --- resources/docs/docs/getting-started/running-from-sources.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/docs/docs/getting-started/running-from-sources.md b/resources/docs/docs/getting-started/running-from-sources.md index 58c19463..004ec0f8 100644 --- a/resources/docs/docs/getting-started/running-from-sources.md +++ b/resources/docs/docs/getting-started/running-from-sources.md @@ -22,8 +22,9 @@ npm run build ``` !!! tip "Raspberry systems" - Run this instead of `npm install` if the architecture is `armv7l` + Run one of these instead of `npm install` (you can get the system's `arch` by running `uname -m` in a terminal) ``` + npm install --arch=arm64 npm install --arch=armv7l ``` From 1b807374d2811674e587e49f87f47b80d2680c9d Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 26 Apr 2021 10:02:46 +0200 Subject: [PATCH 3/4] tree: mode icons --- src/client/ui/ui-tree.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/client/ui/ui-tree.js b/src/client/ui/ui-tree.js index 57f02429..b2c234fd 100644 --- a/src/client/ui/ui-tree.js +++ b/src/client/ui/ui-tree.js @@ -10,27 +10,39 @@ var UiWidget = require('./ui-widget'), {widgets, categories} = require('../widgets'), init = false -var widgetIcons = {root: 'bookmark', tab: 'window-maximize'}, categoryIcons = { +var widgetIcons = { + root: 'bookmark', + tab: 'window-maximize', + menu: 'list', + dropdown: 'list', + switch: 'list', + input: 'i-cursor', + file: 'folder-open', + modal: 'window-restore', + clone: 'cube', + fragment: 'cube', + patchbay: 'project-diagram', + frame: 'globe' + +}, categoryIcons = { 'Basics': 'toggle-on', 'Containers': 'th-large', 'Frames': 'images', 'Graphs': 'chart-area', 'Indicators': 'info-circle', 'Pads': 'crosshairs', - 'Sliders': 'sliders-h', + 'Sliders': 'sliders-h.rotate-90', 'Scripts': 'code', } for (var type in widgets) { + if (widgetIcons[type]) continue for (var cat in categoryIcons) { if (categories[cat].includes(type)) { widgetIcons[type] = categoryIcons[cat] } } } -widgetIcons.modal = 'window-restore' -widgetIcons.clone = widgetIcons.fragment ='clone' -widgetIcons.fragment = 'cube' class UiTree extends UiWidget { From 61af2a19705c04214a874042ed4b3f6df2104cb6 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 26 Apr 2021 10:07:32 +0200 Subject: [PATCH 4/4] lint --- src/client/ui/ui-tree.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/ui/ui-tree.js b/src/client/ui/ui-tree.js index b2c234fd..78818d5e 100644 --- a/src/client/ui/ui-tree.js +++ b/src/client/ui/ui-tree.js @@ -24,7 +24,9 @@ var widgetIcons = { patchbay: 'project-diagram', frame: 'globe' -}, categoryIcons = { +} + +var categoryIcons = { 'Basics': 'toggle-on', 'Containers': 'th-large', 'Frames': 'images',