Dave Conway-Jones
529a691e1d
Add clearTimeout to function node sandbox
...
(to be a pair with setTimeout…)
2015-06-22 09:07:31 +01:00
dceejay
8a6d11b191
tiny lint thing in debug node... missing ;
2015-06-15 20:38:09 +01:00
Nick O'Leary
5cda08e7b0
Update trigger node UI
2015-05-31 20:58:28 +01:00
Nick O'Leary
0658b70631
Inject node not parsing 0-23 hour range correctly
2015-05-29 22:28:42 +01:00
dceejay
98c9e40349
Add small note re escaping test to inject node.
2015-05-26 20:04:12 +01:00
dceejay
5ffde21d83
revert change to editor change detector, and redo function node valid
...
code "flag" to report as non-boolean.
2015-05-08 15:31:48 +01:00
dceejay
052302b3e7
actually set valid to be false in function so .toString will work...
2015-05-07 22:02:46 +01:00
Nick O'Leary
ce5c9da107
Ensure ace edit history is reset after initialisation
2015-05-07 21:12:46 +01:00
Nick O'Leary
7dc838dea6
Fix click on debug message to reveal source node
2015-05-05 22:00:47 +01:00
dceejay
7b4cbbe816
Add try catch to exec node stdout if utf8 check fails
2015-05-05 12:50:46 +01:00
dceejay
d7bdcd69fc
fix exec missing addpayload,
...
improve switch null test (to include null object)
check mqtt has payload before sending
2015-04-14 17:15:56 +01:00
dceejay
78d1da5fbc
Updates to sentiment, exec and range to handle missing payload properties
2015-03-31 08:35:56 +01:00
dceejay
9c22a770ef
remove superfluous console.log from debug node
2015-03-30 21:59:54 +01:00
dceejay
16e17954b4
add try catch to helper shutdown,
...
tiny fixes for exec and trigger based on tests
2015-03-26 15:02:08 +00:00
dceejay
5352fc87ee
add extra tests to debug, delay & template
2015-03-22 09:38:42 +00:00
dceejay
f07fd64ffb
Make trigger have sensible defaults when dragged on.
2015-03-21 19:27:39 +00:00
Nick O'Leary
b61a250d58
Debug message formatting mangling brackets
2015-03-20 22:09:58 +00:00
Nick O'Leary
dd4cec84bf
Add node.send/on to Function node
2015-03-17 13:40:12 +00:00
Nick O'Leary
a1dac1e290
Resize ace editor on dialog-open
2015-03-17 13:36:50 +00:00
Nick O'Leary
be61cf6a88
Add node.error handling to core nodes
2015-03-16 13:58:01 +00:00
dceejay
1f8c6f87c9
add don't add payload to exec node
...
to close #578
2015-03-11 17:43:42 +00:00
Antoine Aflalo
0ed9f6cc4f
Adding an Object node to the sandbox of a function node
...
Permit the user of the sandbox to log using the Function Node.
Test provided and working.
Fix Display warning message in the debug log
Before they were displayed as error instead of warning
2015-03-05 09:50:11 +02:00
Nick O'Leary
c5c404ea05
Update catch node icon and help text
2015-02-26 22:40:54 +00:00
Nick O'Leary
5599b999ec
Add catch node
2015-02-26 22:40:53 +00:00
Nick O'Leary
bf1cd457cd
Add RED.editor.createEditor utility function
2015-02-26 21:29:56 +00:00
dceejay
8af50a51ba
add validation triangle to ace function editor on errors
2015-02-26 17:08:50 +00:00
Nick O'Leary
ddf31e87b2
Update core nodes to use ACE editor
2015-02-26 17:08:50 +00:00
dceejay
71ff828947
Tidy up all console.log util.log from core nodes.
...
Try to make log,warn,error more consistent behaviour.
Especially make sure any existing catches produce errors
2015-02-25 19:10:59 +00:00
Nick O'Leary
edd9d2cb9c
Fix Inject node handling of day selection
...
Fixes #564
2015-02-15 21:53:14 +00:00
dceejay
07641d57ab
recorrect debug logging level colour class names so sidebar is as-was.
...
in light of new logging levels
2015-02-14 12:14:06 +00:00
dceejay
5643c51507
Let debug node show "topic" correctly for errors in functions.
2015-02-13 21:14:54 +00:00
Nick O'Leary
e357352240
Tidy up info tab handling of subflows and comments
2015-02-10 21:29:27 +00:00
dceejay
00b7afe3ae
spelling pedant alert in debug node... its not it's
2015-02-10 20:14:33 +00:00
dceejay
c6157687c9
Move payload type label in Debug window to meta data row
...
rather than (object) etc at start of actual payload.
2015-02-10 16:56:07 +00:00
dceejay
1513dbfcdd
Add strict flag to debug (for consistency with others)
2015-02-08 11:32:26 +00:00
Nick O'Leary
ae7f1b38a8
Add line/col reporting to Function runtime errors
2015-02-07 19:52:14 +00:00
Nick O'Leary
83dad88ad3
Fix debug reporting of warning/errors
2015-02-07 19:29:43 +00:00
Nick O'Leary
c7f13e3d0c
Add needsPermission protection to core nodes
2015-02-06 13:57:15 +00:00
Nick O'Leary
a494954275
Add permissions and user menu
2015-02-05 13:00:55 +00:00
Nick O'Leary
66005a2688
Use jquery ajax rather than d3
2015-02-05 13:00:49 +00:00
Nick O'Leary
f462446213
Make Function duration status optional
2015-02-04 10:01:46 +00:00
hbeeken
6b96c1876a
changing function node metrics to new infrastructure
2015-02-04 09:46:54 +00:00
Nick O'Leary
07acc6642f
Merge pull request #460 from hindessm/fix-lastSent-initial-value
...
Fix node.lastSent initial value after refactoring.
2015-02-03 13:27:48 +00:00
dceejay
84e6417877
Change inject node to use tick boxes for days of week instead of select.
2015-02-03 11:21:29 +00:00
dceejay
0ed8d28342
Add Markdown capability to Comment node
...
body is rendered in the info tab and can be styled with Markdown
2015-01-29 18:53:59 +00:00
Mark Hindess
5510dffe18
Fix random delay mode to be random delay not random rate-limited stack.
...
Documentation says "Introduces a delay into a flow or rate limits
messages." but this node was doing delay and rate limit in random mode
which doesn't seem that useful. Worse it was a stack not a queue. I
can't think of any sane use cases for that behaviour.
2015-01-14 14:19:21 +00:00
Mark Hindess
7909ca24d3
Fix random delay in milliseconds case and change test to reproduce bug.
...
Because there was no multiplier the node.randomFirst was a string so
the later '+' was a concatentation. The test failed to catch this because
it uses integers not strings to configure the node.
2015-01-14 10:18:47 +00:00
dceejay
92b393d3df
really enforce binary for exec node stdout when required.
2015-01-08 12:35:42 +00:00
dceejay
4fb2a44d74
correct exec binary stdout to be consistent with spawn stdout.
...
Binary = buffer
String = utf8
2015-01-07 21:33:15 +00:00
dceejay
00429ebe70
Update exec node to handle binary stdout
2015-01-07 21:12:01 +00:00
Dave C-J
1261bf97ea
Remove : from inject node label - people didn't like it.
...
Claim they can tell the difference between topic and payload as they wrote
the flow...
2014-12-15 17:03:18 +00:00
Dave C-J
977a9e1c83
Better attempt at making Inject node label more "useful".
...
Addresses Issue #489
2014-11-16 18:22:33 +00:00
Dave C-J
7da108e129
Reverting fix for #489 while we debate the issue more fully....
2014-11-14 23:50:49 +00:00
Dave C-J
9863b6e178
Add payload to Inject label to make more helpful
...
Close #489
2014-11-14 17:28:08 +00:00
Nick O'Leary
0789b82c15
Restore dialog size on reopn properly
2014-11-13 22:14:05 +00:00
Nick O'Leary
3cb423a0b4
Fix func/temp/comment editor resizing
2014-11-13 17:21:12 +00:00
Nick O'Leary
dfc79e3122
Preserve unknown node type properties across deploys
...
Closes #5
2014-10-30 21:41:42 +00:00
Mark Hindess
d859412785
Fix node.lastSent initial value after refactoring.
2014-10-30 08:19:52 +00:00
Dave C-J
348b642d25
Return sensible name to display for Delay node Queue mode
2014-10-29 18:26:43 +00:00
Nick O'Leary
48d3b8f37a
Inject node interval error
...
part two of #455
2014-10-27 19:41:29 +00:00
Nick O'Leary
4c573b208c
Merge branch 'master' of github.com:node-red/node-red
2014-10-27 19:36:43 +00:00
Nick O'Leary
a5228875a6
Inject node calculating hour interval period incorrectly
...
Fixes #455
2014-10-27 19:36:26 +00:00
Dave C-J
bbaf7bf247
correcting typos in trigger node... oops
2014-10-27 08:54:21 +00:00
Dave C-J
d9363f4974
Reduce logging for exec node
...
(can be re-enabled by using node -v red.js ... )
2014-10-25 17:50:55 +01:00
Dave C-J
b54e9edfa6
Add "topic based fair queue" option to delay node
2014-10-24 20:00:25 +01:00
Nick O'Leary
4cd78692e2
Handle debug boolean complete properties
2014-10-23 15:28:47 +01:00
Nick O'Leary
53a9a5fe93
Merge pull request #422 from anna2130/debug
...
Updated debug node to output other msg properties
2014-10-20 16:35:24 +01:00
Anna Thomas
17e4bf1a11
Tidy up node label and edit dialog
2014-10-20 12:52:07 +01:00
Anna Thomas
f96b40cff2
Updated debug node to output other msg properties
2014-10-07 10:25:56 +01:00
Mark Hindess
e0927d190f
Don't use abbreviation 'mins' and 'minutes' in the same sentence.
...
I don't think saving three letters justifies the use of a non-standard
abbreviation. If we really need to save letters, then the SI units would
be better and for most people to read.
2014-10-07 08:40:06 +01:00
Nick O'Leary
dbaa1ed59c
Don't cache api requests in the editor
...
Fixes #413
2014-09-24 09:57:45 +01:00
Nick O'Leary
da61fe12d0
Add dynamic node api
...
Closes #322
- nodes modules can be installed/removed dynamically at runtime
- nodes can be enabled/disabled
- onpaletteadd/onpaletteremove api added to node definitions
- initial implementation of nr-cli
2014-09-17 23:57:29 +01:00
Dave C-J
22329ca106
Add hourly option to Inject Node time interval mode,
...
Fix a few UI wrinkles when editing.
2014-09-15 12:32:28 +01:00
Dave C-J
a0ac79384d
Tidy up some little wrinkles in Inject node html labels etc
2014-09-14 18:38:30 +01:00
Mark Hindess
fd04b5851b
Remove unused variables.
2014-09-08 21:53:15 +01:00
Mark Hindess
5d9c16ffbf
Remove redundant msg != null checks.
2014-09-08 21:10:06 +01:00
Mark Hindess
3f054bdf7e
Migrate to fa icons.
2014-09-08 12:07:39 +01:00
Dave C-J
ef9255a87c
set defaults in trigger node rather than confusing placeholders
2014-09-07 22:11:58 +01:00
Nick O'Leary
67d5bc2399
Merge pull request #380 from hindessm/trivial-html-fixes
...
Fix two trivial HTML bugs.
2014-09-05 23:12:32 +01:00
Nick O'Leary
c91a3f3f78
Delay node drop immediate not working
...
Fixes #381
2014-09-05 16:04:35 +01:00
Nick O'Leary
293725afcd
Reuse vm context to speed up Function nodes
...
If the NODE_RED_FUNCTION_TIME environment variable is set, the
function nodes publish a status of how long the function took
to run, in ms.
2014-09-05 10:40:57 +01:00
Mark Hindess
e90054c93c
Fix two trivial HTML bugs.
2014-09-04 19:59:30 +01:00
Nick O'Leary
9876570189
Merge delay node test
...
Fixes #346
Closes #347
2014-09-01 10:22:29 +01:00
Dave C-J
8c8c9b13b9
Addressing the first message bug in #346 .
...
Not closing the Issue (yet) as there still seems to be some discussion re timing.
2014-08-31 13:29:38 +01:00
Nick O'Leary
2dac28a421
Add hidden input to prevent edit form submit on enter
...
closes #349
2014-08-27 21:48:27 +01:00
Dave C-J
c38aa91a4d
put Debug node active flag back to boolean. (mea culpa)
2014-08-25 15:42:12 +01:00
Dave C-J
a74009caa9
more consistent use of "true"/"false" for options in Debug node
2014-08-25 15:37:31 +01:00
Dave C-J
40c87ab14c
Make defaults into strings rather than boolean.
...
Fixes #350
2014-08-25 15:09:52 +01:00
Mark Hindess
96ea81894d
Avoid corrupting message payload while logging.
2014-07-30 08:17:40 +01:00
Mark Hindess
deff93f95e
Simplify debug node message processing.
...
Make processing more consistent irrespective of complete flag.
Avoid processing when node is inactive.
Avoid duplicate code.
2014-07-29 09:41:47 +01:00
Nick O'Leary
e07a523c3b
Fix node html compression and refactor registry
2014-07-28 16:37:39 +01:00
Mark Hindess
6c4611a934
Fix EOL to be dos or unix not both in same file.
2014-07-23 22:07:02 +01:00
Nick O'Leary
f80c41058c
Properly escape html entities in debug
...
Fixes #276
2014-07-17 22:13:04 +01:00
Dave C-J
de352dcdc2
Change template node to allow templating of any property of msg
2014-07-10 08:23:44 +01:00
Dave C-J
6fb9739245
Add strict to function node
2014-07-08 12:27:09 +01:00
Dave C-J
35965e55b5
Add on error method to exec node... (should have been there before :-)
2014-07-08 08:48:46 +01:00
Nick O'Leary
c18119f26e
Debug pane should use local timezone
2014-07-01 23:14:44 +01:00
Dave C-J
c7f0f9639a
tidy up jsHint errors in exec and trigger nodes
...
Add "use strict" to the sample node
2014-06-30 20:44:35 +01:00
Dave C-J
6d54050b4f
Tweak colour of new trigger node to match delay node.
2014-06-26 13:05:34 +01:00
Nick O'Leary
1602d9496f
Add trigger node
2014-06-25 21:36:28 +01:00
Dave C-J
ed3be7f82e
Add italic style to name for exec function...
...
been missing for ages... who knows why :-)
2014-06-17 20:07:29 +01:00
Dave C-J
2d9e72816f
Update comment node to fa icons - plus matching node icon.
2014-06-08 22:13:12 +01:00
Dave C-J
c10ed13322
Add flash of status to exec node
2014-06-08 14:58:19 +01:00
Dave C-J
2cdaed1325
Add "use strict" to most core nodes.
...
(skipping ones that may have other work in progress)
2014-05-29 22:13:21 +01:00
Dave C-J
b67e70e09f
Fix Delay node milliseconds label to read ms.
...
(and add use strict)
2014-05-23 23:15:28 +01:00
Dave C-J
db125974c0
Tidy up inject tabs/spaces one more time.
2014-05-19 22:08:50 +01:00
TJKoury
21a72336fd
Update 20-inject.html
...
Tabs got wonky, fixed it.
2014-05-19 16:43:30 -04:00
tjkoury
57e5f52d02
Fixed spinner issue in inject node with non-hardcoded offset
2014-05-19 16:42:36 -04:00
tjkoury
804dd67b4a
Fixed spinner issue in inject node with non-hardcoded offset
2014-05-19 16:40:37 -04:00
tjkoury
4f56f36cde
Fixed spinner issue in inject node
2014-05-19 15:38:07 -04:00
Nick O'Leary
59eccb116a
Add RED._debug
2014-05-13 00:00:17 +01:00
Nick O'Leary
ba126e90d9
TypeError on debug node
...
Fixes #223
2014-05-08 11:12:13 +01:00
Nick O'Leary
16f8673ec0
Add comms module
2014-05-07 20:47:25 +01:00
Nick O'Leary
4b160dc3a9
Function error not recognised as TypeError
2014-05-06 13:49:22 +01:00
Nick O'Leary
baaf8167d3
Delay node dropping intermediate messages incorrectly
2014-05-06 10:07:57 +01:00
Dave C-J
bc1fb3b404
Tiny formatting tidy ups.
2014-05-05 09:02:01 +01:00
Nick O'Leary
ff49d2b217
Migrate to new node function style
2014-05-03 23:32:04 +01:00
Nick O'Leary
7eed375111
Split up nodes.js into components
2014-05-03 22:28:17 +01:00
Dave C-J
f2e9b43866
Functional Fix for Inject node
...
addresses Issue #209
Interval is now wholly timeout based.
Now works on Sundays
2014-04-29 16:20:45 +01:00
Nick O'Leary
13deef189d
Add ws heartbeat to keep connection alive through firewall
2014-04-24 23:42:44 +01:00
Nick O'Leary
4ae5f34d2e
Make Template node help clearer
2014-04-18 15:33:29 +01:00
Nick O'Leary
4219681cfa
Single-click on debug message reveals node
...
Closes #192
2014-04-16 12:59:23 +01:00
Nick O'Leary
a386c028b0
Handle null debug messages
...
Fixes #200
2014-04-16 11:37:41 +01:00
Nick O'Leary
653c02bb15
Add drop-intermediate option to Delay rate node
2014-04-15 23:08:02 +01:00
Dave C-J
be5f6762f7
Add Array detection to Debug node output
2014-04-14 15:49:17 +01:00
Nick O'Leary
de9ee37b42
Fix 'cannot set property boolean of undefined'
2014-04-12 23:09:47 +01:00
Nick O'Leary
10d9dee4aa
Escape html chars in Inject/Debug and Info pane
2014-04-09 14:50:53 +01:00
Dave C-J
069f42f0c5
Add console.log option to debug node
...
Fixes #194
2014-04-08 11:31:35 +01:00
Dave C-J
61285a0ee8
Fixes to spawn behaviour - (well more to catching bad behaviour)
...
It needs a redo - but patched so it doesn't die horribly.
2014-04-06 23:25:40 +01:00
Nick O'Leary
214338eb62
Fix Function node
...
accidental leakage of in-progress work
2014-04-02 23:56:46 +01:00
Nick O'Leary
c52db897b3
Remove boilerplate help from Function node
...
Fixes #180
2014-04-02 21:20:58 +01:00
Nick O'Leary
fa2d2771a7
Add websocket error handlers
...
Fixes #190
2014-04-01 23:18:34 +01:00
Ben Hardill
4e00ab3b2d
fix delay node name when using random setting
2014-03-25 11:09:38 +00:00
Ben Hardill
da167c8607
remove un needed commented out line
2014-02-18 10:28:46 +00:00
Ben Hardill
560d106ba2
Merge remote-tracking branch 'upstream/master'
2014-02-18 10:25:21 +00:00
Ben Hardill
7af88f63f5
Fix delay node singleton issue
...
Fixes #154
2014-02-18 10:23:44 +00:00
Nick O'Leary
7c24d4d760
Separate out httpAdmin and httpNode
2014-02-16 00:39:30 +00:00
Dave C-J
ae03562f86
Slight UI tweak to Inject node - move fire once below options
2014-02-05 08:09:16 +00:00
Dave C-J
f3f52fa586
Inject - cleanup messing with crontab... just don't do it.
2014-02-04 22:31:51 +00:00
Dave C-J
40232f95ed
Clear inject once flag properly. Issue #145
2014-02-04 22:19:55 +00:00
Dave C-J
b1de42b297
Tweak Inject Fire at Once options as per Issue #145
2014-02-04 21:50:35 +00:00
Dave C-J
bdd9d901ec
inject node - Remove couple of lines of excess console.log
2014-02-03 19:06:49 +00:00
Ben Hardill
ad1f967a8d
Fix random wait in delay node
...
Fixes #143
2014-02-03 13:08:20 +00:00
Dave C-J
e19f2956a8
tiny tweak to inject to fix name and hide un-needed text box.
...
tweak exec node text to be less alarmist
2014-02-02 18:12:28 +00:00
Nick O'Leary
c47c72cf48
Improve inject node payload options
2014-02-02 15:37:34 +00:00
Dave C-J
3dee0f1e20
Add small bit of extra node.log to exec node to make it obvious what it is doing.
2014-01-27 19:24:15 +00:00
Nick O'Leary
c6264e8040
Add newline when wrapping function to allow comments
...
Fixes #122
2013-12-22 22:22:47 +00:00
Dave C-J
15669b7f1f
Only declare node variables inside node declaration.
...
Fix for Issue #119
(also reformatted with spaces hence what looks like massive changes...)
2013-12-21 17:31:05 +00:00
Nick O'Leary
344660dfee
Refinements to Unknown-node handling
...
Refinement to #113
2013-12-12 15:51:15 +00:00
Dave C-J
ac884bfdf3
Add "Unknown node" type to core.
...
Relates to Issue #5
not the best/complete solution - but a start.
2013-12-08 21:55:34 +00:00
Ben Hardill
4b3f26bed5
Fix milliseconds in delay
2013-11-30 18:08:44 +00:00
Nicholas O'Leary
a0aed93c69
Make Debug topic slightly darker for better contrast
...
Fixes #82
2013-11-20 22:17:21 +00:00
Nicholas O'Leary
2028880b48
Debug activation message the wrong way around
...
As reported under #47
2013-11-19 15:51:33 +00:00
Nicholas O'Leary
48dabffefc
Move all nodes into core subdirectory
...
This makes it easier to distinguish core nodes from those added later
2013-11-14 15:52:19 +00:00