@flowfuse/node-red-dashboard 1.30.3-e7d47a4-202605181243.0 → 1.30.3-e993dd5-202608141303.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -919,10 +919,10 @@ async function showDashboardWysiwygEditor (pageId, baseId) {
|
|
|
919
919
|
// get all themes and determine the next theme number
|
|
920
920
|
const entries = getConfigNodesByType(['ui-theme']) || []
|
|
921
921
|
let counter = entries.length + 1
|
|
922
|
-
themeName = counter === 1 ? c_('themes.defaultTheme') : c_('
|
|
922
|
+
themeName = counter === 1 ? c_('themes.defaultTheme') : c_('themes.theme') + ` ${counter}`
|
|
923
923
|
while (entries.find(e => e.name === themeName)) {
|
|
924
924
|
counter++
|
|
925
|
-
themeName = c_('
|
|
925
|
+
themeName = c_('themes.theme') + ` ${counter}`
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
928
|
const themeNode = {
|
|
@@ -95,22 +95,20 @@
|
|
|
95
95
|
})
|
|
96
96
|
},
|
|
97
97
|
oneditsave: function () {
|
|
98
|
-
|
|
98
|
+
const colors = {}
|
|
99
99
|
Object.keys(this.colors).forEach((color) => {
|
|
100
|
-
|
|
101
|
-
this.colors[color] = $('#node-config-input-' + color).val()
|
|
100
|
+
colors[color] = $('#node-config-input-' + color).val()
|
|
102
101
|
})
|
|
102
|
+
this.colors = colors
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
const sizes = {}
|
|
105
105
|
Object.keys(this.sizes).forEach((size) => {
|
|
106
|
-
// get the value of the key
|
|
107
106
|
let value = $('#node-config-input-' + size).val()
|
|
108
107
|
// value is a number, add `px` to the end
|
|
109
108
|
value += (parseFloat(value).toString() === value) ? 'px' : ''
|
|
110
|
-
|
|
111
|
-
// set the value of the input
|
|
112
|
-
this.sizes[size] = value
|
|
109
|
+
sizes[size] = value
|
|
113
110
|
})
|
|
111
|
+
this.sizes = sizes
|
|
114
112
|
},
|
|
115
113
|
label: function () {
|
|
116
114
|
return `${this.name}` || 'UI Theme'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowfuse/node-red-dashboard",
|
|
3
|
-
"version": "1.30.3-
|
|
3
|
+
"version": "1.30.3-e993dd5-202608141303.0",
|
|
4
4
|
"description": "FlowFuse Dashboard - A collection of Node-RED nodes that provide functionality to build your own UI applications (inc. forms, buttons, charts).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-red"
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@vite-pwa/assets-generator": "^1.0.0",
|
|
80
80
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
81
81
|
"cross-env": "^7.0.3",
|
|
82
|
-
"cypress": "^
|
|
82
|
+
"cypress": "^15.15.0",
|
|
83
83
|
"dompurify": "^3.3.1",
|
|
84
84
|
"eslint": "^8.57.1",
|
|
85
85
|
"eslint-config-standard": "^17.1.0",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"medium-zoom": "^1.1.0",
|
|
100
100
|
"mermaid": "^11.12.2",
|
|
101
101
|
"mocha": "^11.7.5",
|
|
102
|
-
"node-red": "^4.1.
|
|
102
|
+
"node-red": "^4.1.8",
|
|
103
103
|
"node-red-node-test-helper": "^0.3.5",
|
|
104
104
|
"npm-run-all": "^4.1.5",
|
|
105
105
|
"sass": "^1.96.0",
|