@aaqu/fromcubes-portal-react 0.1.0-alpha.2 → 0.1.0-alpha.3
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.
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/nodes/portal-react.js +2 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ React portal node for Node-RED. Server-side JSX transpilation via esbuild. Tailw
|
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
31
|
cd ~/.node-red
|
|
32
|
-
npm install /
|
|
32
|
+
npm install @aaqu/fromcubes-portal-react@alpha
|
|
33
33
|
# restart Node-RED
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -117,4 +117,4 @@ No Babel, no Sucrase client, no Vue, no Vuetify, no Socket.IO.
|
|
|
117
117
|
|
|
118
118
|
## License
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
Apache-2.0
|
package/nodes/portal-react.js
CHANGED
|
@@ -24,6 +24,7 @@ const reactHash = crypto
|
|
|
24
24
|
module.exports = function (RED) {
|
|
25
25
|
// ── Admin root prefix (for correct URLs when httpAdminRoot is set) ──
|
|
26
26
|
const adminRoot = (RED.settings.httpAdminRoot || "/").replace(/\/$/, "");
|
|
27
|
+
const nodeRoot = (RED.settings.httpNodeRoot || "/").replace(/\/$/, "");
|
|
27
28
|
|
|
28
29
|
// ── Shared state ──────────────────────────────────────────────
|
|
29
30
|
// Component registry: populated by fc-portal-component canvas nodes at deploy time
|
|
@@ -202,7 +203,7 @@ module.exports = function (RED) {
|
|
|
202
203
|
let wsServer = null;
|
|
203
204
|
let isClosing = false;
|
|
204
205
|
|
|
205
|
-
const wsPath = endpoint + "/_ws";
|
|
206
|
+
const wsPath = nodeRoot + endpoint + "/_ws";
|
|
206
207
|
|
|
207
208
|
// ── Rebuild: transpile JSX + update page state ────────────
|
|
208
209
|
|