Nick O'Leary
90761fd840
Fix 'SyntaxError' in Function node when last line of on-stop is a comment
2021-05-13 17:23:25 +01:00
Nick O'Leary
d49d9a783c
Merge branch 'master' into dev
2021-05-13 16:06:33 +01:00
Nick O'Leary
d7dc7c4eda
Fix error handling in runtime/lib/api/nodes
2021-05-13 15:46:56 +01:00
Nick O'Leary
fe64c6a841
Merge branch 'master' into dev
2021-05-13 14:30:02 +01:00
Nick O'Leary
2bbdc85a29
Prevent unknown node from breaking editor
...
If a node provides a .js file that registers a type
but its .html is empty, then the editor will know about
the type, but there will be no node definition.
This fix handles that in some of the utility functions
for generating node appearance.
This wasn't an exhaustive check for these things - just
some obvious candidates that I hit in testing 'bad' nodes
2021-05-13 14:28:01 +01:00
Nick O'Leary
15aa249f64
Stop module with missing types from preventing editor load
2021-05-13 14:06:43 +01:00
Nick O'Leary
fdf58e1225
Fix lint errors in editor hooks
2021-05-13 14:00:21 +01:00
Nick O'Leary
866f305686
Open subflow tab next to active tab rather than at the end
2021-05-13 13:57:29 +01:00
Nick O'Leary
1550e5343c
Merge branch 'master' into dev
2021-05-13 13:42:26 +01:00
Nick O'Leary
79a142fb19
Fix error log in runtime hooks module
2021-05-13 13:40:42 +01:00
Nick O'Leary
1a30fe4a1a
Improve red-ui-node-icon css and add red-ui-node-icon-small modifier class
2021-05-13 13:39:29 +01:00
Nick O'Leary
4ff991764e
Updates to encode/decode message when passed over debug comms link
2021-05-13 13:38:34 +01:00
Nick O'Leary
001f066769
Remove all input event listeners on a node once it is closed
...
This prevents in-flight messages being passed to the node after
it has closed.
2021-05-13 13:37:21 +01:00
Nick O'Leary
c47b553a8e
Add viewAddPort viewRemovePort viewAddNode viewRemoveNode hooks to view
2021-05-13 13:36:50 +01:00
Nick O'Leary
319af51f84
Add RED.hooks to editor
2021-05-13 13:35:12 +01:00
Nick O'Leary
5dbaaae68e
Merge branch 'master' into dev
2021-05-12 16:00:36 +01:00
Ben Hardill
8c1a749a5a
Fix msg.responseUrl
...
The original version would pick up the proxy servers port number
2021-05-12 11:08:57 +01:00
Nick O'Leary
c8653f19bf
Merge pull request #2985 from node-red-hitachi/update-function-node-info-text
...
Update Japanese info text of function node
2021-05-12 09:41:09 +01:00
Hiroyasu Nishiyama
b01100d818
Update Japanese info text of function node
2021-05-12 08:54:32 +09:00
Nick O'Leary
b77cd56a01
Migrate from node-sass to sass
...
node-sass is deprecated and doesn't work on Node 16.
sass is actively maintained and considered the canonical sass
implementation.
2021-05-11 18:13:21 +01:00
Nick O'Leary
9cdec156dc
Merge pull request #2974 from aheissenberger/fix-bundle-error
...
Fixed esbuild bundle error "installRetry" was declared a constant and changed
2021-05-11 17:45:07 +01:00
Nick O'Leary
6aa5968863
Fix Function tab label names in the node help text
...
Closes #2978
2021-05-11 17:15:27 +01:00
Nick O'Leary
8f7686cd7b
Handle sidebar tab that no longer exists when setting first active
2021-05-11 16:42:32 +01:00
Nick O'Leary
d8d384a979
Fix plugin loading when browser sends unrecognised lang
2021-05-11 16:42:00 +01:00
Nick O'Leary
ade318bb78
Support mousewheel scroll in tab bar
2021-05-11 15:58:01 +01:00
Nick O'Leary
ed3aa8189f
Shrink default notification box
...
Also reduces Inject/Debug notification display time as 5 seconds is a
long time for a message telling you it worked
2021-05-11 14:45:53 +01:00
Nick O'Leary
3e43597617
Prevent error whilst drag/drop importing from leaving dropTarget visible
...
Fixes #2982
2021-05-11 14:10:40 +01:00
Ben Hardill
4c8e895ac7
Clean up console.logs
2021-05-11 09:56:22 +01:00
Ben Hardill
f6a3671366
Get the http-request node got port working with Proxy
2021-05-10 23:01:29 +01:00
Nick O'Leary
e641b0a965
Fix scaling issues when dragging nodes into scaled workspace
2021-05-10 21:03:27 +01:00
Hiroyasu Nishiyama
eddddc6c9b
fix duplicate csv node example ( #2980 )
2021-05-10 15:39:23 +01:00
Kazuhito Yokoi
5c31bd54e4
Fix incorrect shortcut keys in info tips
2021-05-06 20:09:35 +09:00
Nick O'Leary
71ba73b38f
Merge branch 'master' into dev
2021-05-04 11:19:05 +01:00
Nick O'Leary
db0ff74857
Reduce code duplication around node/label generation
2021-05-04 11:12:55 +01:00
Steve-Mcl
1acb073737
add support for explicit calls to ace.setFontSize
...
- found node-red-contrib-ui-svg explicitly calling ace function
2021-05-04 10:34:29 +01:00
Steve-Mcl
251dda3652
missing editor destroy() calls
2021-05-04 09:04:13 +01:00
Steve-Mcl
22db24509d
Ensure monaco exists before attempting cleanup
2021-05-04 09:03:35 +01:00
Andreas Heissenberger
54c9d27fd8
fix
2021-05-03 17:35:50 +02:00
Andreas Heissenberger
01888ff078
fix "installRetry" was declared a constant and changed
2021-05-03 17:23:27 +02:00
Steve-Mcl
ffbd140a97
bug fix orphaned models and graphical tray glitch
...
- ensure models are disposed correctly
- clean up any orphaned models left after editor:close
- improve concurrent multiple instances javascript models
- fix graphical glitch
2021-05-03 16:19:01 +01:00
Steve-Mcl
dedf5c52d9
better support for multiple editors
...
- as the javascript model is singleton, need to disable
syntax checking when editor not focused
(support multiple instances of js editor (function node))
2021-05-02 23:11:29 +01:00
Steve-Mcl
10465c5d68
treat appcache files as shell (uibuilder support)
2021-05-02 23:00:35 +01:00
Steve-Mcl
1f4f64a7c0
handle node-red style affecting monaco rename box
2021-05-02 22:44:48 +01:00
Steve-Mcl
0a80186a92
Merge branch 'dev' into monaco2
2021-05-01 21:56:45 +01:00
Nick O'Leary
635bdf15cb
Fix use of paletteLabel in help tab
...
Fixes #2973
2021-05-01 21:55:50 +01:00
Steve-Mcl
a72bdfdacc
Handle known bug (monaco-editor issue No 2382)
...
- handles "Uncaught (in promise) Canceled: Canceled"
2021-05-01 11:40:43 +01:00
Steve-Mcl
dc3e04456c
remove temporary debugging window variable
2021-05-01 11:01:04 +01:00
Nick O'Leary
b0e4fb7602
Fix infotip display following i18n update
2021-04-30 13:54:25 +01:00
Steve-Mcl
df7aa3339b
dont tokenise JSONata
...
- monaco has jsonata tokeniser
2021-04-29 18:11:47 +01:00
Steve-Mcl
c475536388
provide extra libs and call to refresh
2021-04-29 18:00:23 +01:00
Steve-Mcl
cc7def89af
ensure monaco is correctly sized
2021-04-29 17:59:12 +01:00
Steve-Mcl
58da87898e
integrate monaco
...
- refactors createEditor out to own code files
- moves ace editor to own code file
- adds monaco editor to own code file
- add monaco bootstrap
- update mst to include monaco asset
- update grunt to include new files and integrate
2021-04-29 17:58:41 +01:00
Steve-Mcl
bded5490d2
add utility func getBrowserInfo
...
- prep for monaco - for slimming down monaco on mobile
- prep for monaco - needed to prevent monaco on IE
2021-04-29 17:35:11 +01:00
Steve-Mcl
c3715a2a3d
ensure editor is removed
...
- Fixes issue with left over HTML in the DOM
2021-04-29 17:32:44 +01:00
Steve-Mcl
abf084f6c2
Dont call to ACE, re-use createEditor instead
2021-04-29 17:31:38 +01:00
Steve-Mcl
37ba409dc3
ensure mode is set for event log viewer
2021-04-29 17:29:54 +01:00
Steve-Mcl
f29488b24f
prevent editor context menu being clipped by sidebar
...
- raise / lower tray z-index for correct slide animation
2021-04-29 17:03:17 +01:00
Steve-Mcl
71bdade7b9
prevent exception if ace is missing
2021-04-29 16:59:11 +01:00
Steve-Mcl
60d97c887d
missing args from JSONata $now signature
2021-04-29 16:57:22 +01:00
Steve-Mcl
5bba50f01f
refactor node.libs to a function getLibsList
...
- preparation for monaco integration
2021-04-29 16:56:16 +01:00
Steve-Mcl
1f7884dc70
add typings for basic intellisense
2021-04-29 16:54:29 +01:00
Steve-Mcl
69dafd6c68
add codeEditor settings
2021-04-29 16:53:59 +01:00
Steve-Mcl
64b79cd5ac
add monaco dist
...
- includes themes from https://github.com/brijeshb42/monaco-themes
2021-04-29 16:52:22 +01:00
Nick O'Leary
1af21735a9
Fix theme handling when no editorTheme.page setting
2021-04-29 15:32:26 +01:00
Nick O'Leary
9886af3cec
Fix jshint error in treeList
2021-04-29 14:09:21 +01:00
Nick O'Leary
08e73d9d7d
Merge pull request #2967 from hanc2006/master
...
Fixed remove item when depth=0 and wrong gutter calc treeList widget
2021-04-29 14:00:02 +01:00
Nick O'Leary
b0e349b215
Update for 1.3.4
2021-04-29 11:22:22 +01:00
Nick O'Leary
caa98b08da
Merge branch 'pr_2965' into dev
2021-04-29 11:04:50 +01:00
Nick O'Leary
cfc0135e86
Update ajv to 8.2.0 - drop support for JSON-Schema draft-04
2021-04-29 10:48:26 +01:00
Dave Conway-Jones
9ee8c1c791
Give delay node random mina nd max more space so you can see complete value
2021-04-29 10:36:13 +01:00
Nick O'Leary
cd3aba2b89
Allow nodes to access resolved theme files
...
Fixes #2968
2021-04-29 10:17:07 +01:00
Daniele
a150d8e289
Update packages/node_modules/@node-red/editor-client/src/js/ui/common/treeList.js
...
Thanks for the tip, I'll remember next time.
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2021-04-28 23:37:26 +02:00
Nick O'Leary
6da8e92f20
Fix inject node output tooltip extra property count
2021-04-28 22:01:39 +01:00
Nick O'Leary
1d4dd4be96
Merge pull request #2961 from node-red/rerorder-inject-typedinput
...
Re-order inject typedinput to de-emphasise context options
2021-04-28 21:56:47 +01:00
Nick O'Leary
7df1a03b4b
Handle subflow modules that contain subflows
2021-04-28 21:50:00 +01:00
Nick O'Leary
91f5542a57
Fix importing node to currently flow rather than match its old z value
...
If you import a node whose z value is a known existing tab, it is getting
imported to that tab, rather than the expected behaviour of being imported
to the current tab.
This commit fixes that by checked if the node is being imported to a tab
that was included in the import, rather than pre-existing.
2021-04-28 20:54:31 +01:00
GitHub
d47a8aa562
Fix remove item when depth=0 and wrong gutter calc
2021-04-28 17:25:26 +02:00
nileio
676f790933
add engine-strict flag to npm install args
2021-04-28 22:40:17 +10:00
Nick O'Leary
9f2a2b9869
Pass npm args to preUninstall hook to be consistent with preInstall
2021-04-27 17:32:18 +01:00
Dave Conway-Jones
19d391fa05
only move msg. instead
2021-04-27 11:28:01 +01:00
Dave Conway-Jones
d1aa1fd4d8
reorder inject typedinput to de-empahsise context options
2021-04-27 11:15:16 +01:00
Nick O'Leary
4133f9c56f
Merge pull request #2936 from node-red/npm-install-hooks
...
Add pre/postInstall hooks to npm install handling
2021-04-27 10:57:14 +01:00
Nick O'Leary
53055064e1
Merge pull request #2932 from node-red/file-cwd-setting
...
File node: Add fileWorkingDirectory to customise how relative paths are resolved
2021-04-27 10:49:02 +01:00
Nick O'Leary
06090d8de1
Merge branch 'dev' into pr_2949
2021-04-27 10:45:33 +01:00
Nick O'Leary
f7210effec
Rework hooks structure to be a linkedlist
...
Allows for safe removal of hooks whilst they are being invoked
2021-04-26 21:14:42 +01:00
Nick O'Leary
8e7efd98b2
Don't let 'escape' whilst moving nodes interrupt things
...
Fixes #2960
2021-04-26 16:48:21 +01:00
Nick O'Leary
ea50ba16f9
Move Inject node to CronosJS module
2021-04-26 14:47:50 +01:00
Nick O'Leary
b62e4f6662
Fix deprecation of httpRoot
2021-04-26 14:43:06 +01:00
Nick O'Leary
f5a1c8bc49
Merge pull request #2957 from node-red-hitachi/fix-error-on-git-auto-commit
...
fix error on auto commit for no flow change
2021-04-26 11:54:05 +01:00
Nick O'Leary
4cb8e99430
Timeout http upgrade requests that are not otherwise handled
...
Fixes #2956
2021-04-26 11:45:28 +01:00
Nick O'Leary
bbac49ff38
Ensure function expand button is above vertical scrollbar
...
Fixes #2955
2021-04-26 10:18:25 +01:00
Nick O'Leary
1d12017f11
Sort context stores in TypedInput and ensure default first
...
Fixes #2954
2021-04-26 10:13:57 +01:00
Kazuhito Yokoi
46af2e37a7
Add Japanese translations for delay node enhancements ( #2958 )
2021-04-26 09:57:11 +01:00
Hiroyasu Nishiyama
a480919ec3
fix error on auto commit for no flow change
2021-04-26 09:05:53 +09:00
Nick O'Leary
62f2a552ea
Merge pull request #2953 from node-red/depreacte-usage-of-httpRoot-and-add-warning
...
Deprecate usage of httpRoot and add warning
2021-04-23 16:42:01 +01:00
Dave Conway-Jones
3798167908
Update packages/node_modules/@node-red/runtime/locales/en-US/runtime.json
...
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2021-04-23 16:36:22 +01:00
Dave Conway-Jones
56fe2014e1
Update packages/node_modules/@node-red/runtime/lib/index.js
...
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2021-04-23 16:36:15 +01:00
Dave Conway-Jones
8732e89e55
Update packages/node_modules/@node-red/runtime/locales/en-US/runtime.json
...
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2021-04-23 16:22:50 +01:00
Dave Conway-Jones
fdd0a93bad
Deprecate use of httpRoot in settings and add warning
...
(no change is actual behaviour yet - just warning)
Should we remove option from settings ? or just label it ?
2021-04-23 15:42:57 +01:00
Nick O'Leary
e23f20227a
Initial migration from request to got for http-request node
2021-04-23 14:19:15 +01:00
Dave Conway-Jones
5cc791690b
fix flowfile name to flows.json in settings
...
and warn if not set (as if anyone reads warnings)
Move setting to top of settings.js as it will be edited more often.
Default behaviour will still work
(needs translations)
2021-04-23 14:09:06 +01:00
Dave Conway-Jones
4cebbf8d22
Fix CSV handling of special chars as separators
...
(ie escape regex special chars)
and add tests
to close #2950
2021-04-23 10:47:23 +01:00
Dave Conway-Jones
93971537b4
add rate option to queue and timed modes. so a simple check box instead.
2021-04-22 11:02:34 +01:00
Dave Conway-Jones
87e816a7f5
Delay node - Make msg.rate an optional override
2021-04-22 10:26:35 +01:00
Dave Conway-Jones
0f45b1da48
Try to make delay modes consistent as regards flush
...
behaviour is different. May cause minor breakage.
if flush arrives with payload that is now included with the flushed data so no data is lost. Previously any payload was dropped.
2021-04-22 09:43:54 +01:00
Kazuhito Yokoi
a20049c82a
Delay node enhancements ( #2294 )
...
* Remove unused messages in message catalog
* Support msg.rate in delay node
* Support nodeMessageBufferMaxLength in delay node
* Add logging function for queue size
* Support msg.nodeMessageBufferMaxLength
* Revert "Support msg.nodeMessageBufferMaxLength"
This reverts commit cc72f892f7
.
* Improve logging function for delay node
* Add support for Messaging API to delay node
* Add documentation about msg.rate in delay node
* Add test cases for msg.rate in delay node
Co-authored-by: Dave Conway-Jones <dceejay@users.noreply.github.com>
2021-04-22 09:01:28 +01:00
Kazuhito Yokoi
372122037f
Fix margin between nodes on palette
2021-04-21 13:14:46 +09:00
Nick O'Leary
23a5cb1917
Ensure typedInput option is selected in dropdown menu
...
Part of #2945
2021-04-20 23:39:21 +01:00
Nick O'Leary
f8d5fef3c4
Ensure typedInput without value has focus class removed
...
Closes #2945
2021-04-20 23:25:56 +01:00
Nick O'Leary
250005ad16
Allow npm install args to be customised by preInstall trigger
2021-04-20 22:55:06 +01:00
Nick O'Leary
0e06da6c63
Update for 1.3.3
2021-04-20 11:06:23 +01:00
Nick O'Leary
68fef169f3
Merge pull request #2944 from node-red/Pull-in-RBE-and-push-out-tail
...
v2: Pull in RBE node and push out tail
2021-04-20 10:57:37 +01:00
Nick O'Leary
c668201df4
Merge pull request #2931 from node-red/join-default
...
Join: change default manual mode to object
2021-04-20 10:57:23 +01:00
Nick O'Leary
1d68c8cc87
Merge pull request #2940 from node-red/i18n-update
...
Update to latest i18n in editor and runtime
2021-04-20 10:57:08 +01:00
Nick O'Leary
b9ac8b42ea
Use paletteLabel if set in help sidebar
2021-04-19 21:07:44 +01:00
Nick O'Leary
b4a03a56b4
Allow preInstall hook to return false to skip npm install
2021-04-19 20:29:30 +01:00
Nick O'Leary
9eb668ab30
Prevent TypedInput label overflowing element
...
Also adds title attribute to the button for the label so it gets a tooltip
2021-04-19 15:28:17 +01:00
Nick O'Leary
233a74c146
Remove TypedInput from tab focus when only one type available
2021-04-19 15:27:47 +01:00
Dave Conway-Jones
e0c7269b8e
bump other refs to bcrypt up to 5.0.1
2021-04-19 13:21:12 +01:00
Dave Conway-Jones
73063df11b
Pull in RBE node and push out tail
2021-04-19 13:09:13 +01:00
Nick O'Leary
ff00afb5d7
Fix project credential secret reset handling
...
Part of #2868
2021-04-19 11:32:26 +01:00
Nick O'Leary
3f43dc1855
Fix jshint error
2021-04-19 10:43:01 +01:00
Nick O'Leary
4a4e7fc7cb
Make typedInput.disable more consistent in behaviour
...
Fixes #2942
2021-04-19 10:39:58 +01:00
Dave Conway-Jones
0253dc9623
ensure CSV node can send false as string
2021-04-19 10:03:11 +01:00
Nick O'Leary
f8855b83fa
Update i18next in util package
2021-04-16 17:11:57 +01:00
Nick O'Leary
0d0459d83d
Update to latest i18n in editor and runtime
...
Fixes #2924
2021-04-16 16:52:12 +01:00
Ben Hardill
235690064f
Fix for #2935
2021-04-16 13:26:11 +01:00
Nick O'Leary
8140057bea
Add pre/postInstall hooks to module install path
2021-04-15 15:12:40 +01:00
Nick O'Leary
22df59e229
Update hooks api to support promise api
2021-04-15 15:12:35 +01:00
Nick O'Leary
ed351eee54
Move hooks to util package
2021-04-15 15:12:30 +01:00
Nick O'Leary
04a3c4bb22
Ensure mqtt-close message is published when closing mqtt nodes
...
The change in 1.3 where we ensure config nodes are closed last broke this behaviour. Previously, the config node would get closed triggering the close message. With the new 1.3 behaviour, the flow nodes are stopped and as soon as the last flow node deregisters itself, the broker node would disconnect without sending the close message.
The fix is to send the close message as part of the deregister flow as that will handle all cases properly
2021-04-14 22:28:25 +01:00
Nick O'Leary
b5fda5642f
Fix package semver comparison to allow >1 version increment
2021-04-14 18:06:59 +01:00
Nick O'Leary
b0955705be
Update to 1.3.2
2021-04-13 13:34:16 +01:00
Nick O'Leary
6a8cf1b768
Fix variable reference error in editableList
...
Fixes #2933
2021-04-13 13:24:54 +01:00
Nick O'Leary
aac2a8f830
File node: Add fileWorkingDirectory to customise how relative paths are resolved
2021-04-12 18:00:58 +01:00
Nick O'Leary
8269490dd1
Join: change default manual mode to object
2021-04-12 14:22:27 +01:00
Kazuhito Yokoi
39274b0c5d
Add Japanese translations for Node-RED v1.3.1 ( #2930 )
2021-04-12 14:15:07 +01:00
Dave Conway-Jones
55c2430671
Merge branch 'master' of https://github.com/node-red/node-red
2021-04-12 12:16:32 +01:00
Dave Conway-Jones
023486e175
File out node - fix timing of msg.send to be after close., and...
...
allow msg.encoding to set encoding if desired.
To close #2921
2021-04-12 12:16:23 +01:00
Nick O'Leary
8227643741
Merge branch 'pr_2920'
2021-04-12 12:08:32 +01:00
Nick O'Leary
e44131f97a
Update function node help reference to node properties
2021-04-12 12:08:07 +01:00
Nick O'Leary
5028377d45
Fix MQTT Broker TLS config row layout
...
Fixes #2927
2021-04-12 11:48:10 +01:00
Nick O'Leary
51aaf1b150
Handle package.json without dependencies section
2021-04-12 10:34:43 +01:00
Nick O'Leary
13406e76de
Ensure theme login image is passed through to api response
...
Fixes #2929
2021-04-12 10:06:35 +01:00
Dave Conway-Jones
4672d98e8a
split node - add comment to info re $N being number of messages arriving
2021-04-12 09:47:18 +01:00
Dave Conway-Jones
858b3d640a
fix CSV parsing with other than , separator
...
(and joining as well...
and add tests
to close #2925
2021-04-10 22:17:31 +01:00
Nick O'Leary
6087002562
Fix handling of user-provided keymap
...
Fixes #2926
2021-04-10 21:34:26 +01:00
Nick O'Leary
82ced56bed
Update package versions
2021-04-09 14:12:10 +01:00
Nick O'Leary
cb1a178fbf
Set 2.0.0-beta.1 version
2021-04-09 10:35:19 +01:00
Kristian Heljas
ad788fbed1
Function node: describe node.outputCount
in help text
2021-04-08 21:09:44 +03:00