Nick O'Leary
67337e013a
Merge branch 'master' into 0.17
2017-04-10 15:45:21 +01:00
Andrey Bezugliy
f987fa13ea
Resolve dir argument of getLocalNodeFiles function ( #1216 )
...
* Resolve dir argument of getLocalNodeFiles function
The getLocalNodeFiles is called 3 times. Each time it called, the callee needs to resolve the dir argument.
That was not done for several of calls, and local modules (specified in the "nodesDir" setting) were not returned to client because of that.
This fix will allow to make sure the dir is consistently resolved.
* Several changes in "localfilesystem_spec.js":
- Changed checkNodes to verify that every node's file property is resolved, i.e. containst absolute path, not relative.
- Added a unit-test "Finds nodes in settings.nodesDir (string,relative path)"
2017-04-10 15:41:20 +01:00
Nick O'Leary
73dfe631ce
Add .trace and .debug to Node prototype
2017-04-10 15:32:40 +01:00
Nick O'Leary
b9379f2ddf
Provide notification when new flows deployed in the background
2017-03-17 21:29:03 +00:00
Nick O'Leary
5356373681
Finalise nodeSettings and update tlsConfigDisableLocalFiles
...
- increase test coverage around registerType
2017-03-09 21:06:49 +00:00
Nick O'Leary
e55933706d
Merge branch 'nodeSettings' into 0.17
2017-03-09 20:00:54 +00:00
Kazuki-Nakanishi
34089aec70
Allow a node to declare what settings should be made available to the editor. ( #1185 )
...
* Implement register/exportNodeSettings.
* Change normaliseRegisterTypeName to normaliseNodeTypeName. Force it to name in a camel case.
2017-03-08 14:38:33 +00:00
kazuhitoyokoi
7a10636128
Add node whitelist function ( #1184 )
2017-03-08 10:00:00 +00:00
Nick O'Leary
7698990e37
Allows flows to be enabled/disabled in the runtime
2017-03-06 15:29:05 +00:00
Nick O'Leary
73501f3ad3
Resync with master
2017-03-01 17:45:09 +00:00
Nick O'Leary
571b9fb8e0
Merge pull request #1122 from CANDY-LINE/feature/i18n-issue
...
Fix empty extra node help content issue
2017-03-01 16:38:08 +00:00
Nick O'Leary
fca77a868f
Allow a node to declare settings that should be exported
2017-03-01 15:01:07 +00:00
Nick O'Leary
869fdbcc6a
Remove event passing for icons/examples from the api layer
2017-02-15 23:07:50 +00:00
Nick O'Leary
0643f149b7
Extract line number if available from node load errors
2017-01-30 09:37:08 +00:00
Nick O'Leary
85b2a03a42
Create a package.json file in userDir if one doesn't exist
2017-01-27 22:35:17 +00:00
Nick O'Leary
e27f5d0460
Add node module update api and expose in palette editor
2017-01-21 23:46:44 +00:00
Daisuke Baba
5ba9a0eb3f
Fix empty extra node help content issue
2017-01-19 16:55:57 +09:00
Nick O'Leary
11f4ae019c
Include module name in requests for node icons
2017-01-18 13:06:22 +00:00
Nick O'Leary
0a96259ddf
Update copyright header for JS Foundation
2017-01-11 15:24:33 +00:00
Nick O'Leary
28678acf74
Add debug logging around flow revision ids
2017-01-10 14:20:51 +00:00
Nick O'Leary
75855d5450
Initialise nodeApp regardless of httpAdmin setting
...
Closes #1096 #1095
2017-01-09 22:22:49 +00:00
Nick O'Leary
e45cb7fac1
Ensure flows exist before delegating status/error events
...
Fixes #1069
2017-01-09 16:39:41 +00:00
Nick O'Leary
e73216d4c1
Merge branch 'master' into 0.16
2017-01-06 14:30:13 +00:00
Nick O'Leary
c720d78c39
Ensure runtime event notification gets cleared on restart
2016-12-05 14:39:34 +00:00
Nick O'Leary
8d21e441a0
Add notification when runtime stopped due to missing types
...
Part of #832
2016-12-05 13:24:24 +00:00
Dave Conway-Jones
8d5286703f
reimplement $(env var) replace to share common code.
...
and add test to utils
2016-11-17 13:56:17 +00:00
Dave Conway-Jones
74f2180fa4
Fix error message for missing node html file, and add test.
...
To close #1053
2016-11-16 22:46:01 +00:00
Dave Conway-Jones
d042169f2e
Let credentials also use $(...) substitutions from ENV
...
to close #1051
(and add to test)
2016-11-16 21:47:13 +00:00
telogis-nodered
44a0f1b505
Palette editor fixes ( #1033 )
...
* ensure remove button is only enabled for local modules when refreshing palette editor
* ensure local field is propagated to the nodes when a new module is added to the registry
2016-11-16 14:12:31 +00:00
Ben Hardill
0a5a42b32a
Fix node.error() not printing when passed false ( #1037 )
...
This should fix #1036
2016-11-07 18:28:35 +00:00
Nick O'Leary
67d5b39c96
Status messages from nodes in subflows not delegated properly
...
Fixes #1016
2016-10-19 21:06:45 +01:00
Nick O'Leary
49f72881f4
Disable palette editor if npm not found
2016-10-12 22:30:32 +01:00
Nick O'Leary
8e7d52e645
Avoid reencyrpting credentials if they haven't changed
2016-10-11 14:27:35 +01:00
Nick O'Leary
b4be1184fd
Add v2 /flows api and deploy-overwrite protection
2016-10-09 22:02:40 +01:00
Nick O'Leary
d29abc2724
Encrypt credentials by default
2016-09-23 10:38:30 +01:00
Nick O'Leary
f9b972349d
Move credential load/save storage functions under get/setFlows
2016-09-21 21:58:50 +01:00
Nick O'Leary
e06cadd761
Pass full runtime object to storage and flow sub-components
2016-09-21 10:22:04 +01:00
Nick O'Leary
7220af3ef0
Move palette editor to left hand side
2016-08-04 16:49:36 +01:00
Nick O'Leary
0ade8ff7a2
Add log warning if node module required version cannot be satisfied
2016-07-28 15:43:26 +01:00
Nick O'Leary
d57425a15e
Fix node enable/disable over restart - load configs after settings init
2016-07-15 00:11:28 +01:00
Dave Conway-Jones
e360e57a5b
Fix node.status to check hasOwnProperty("text")
2016-07-06 17:22:45 +01:00
Nick O'Leary
f62cf6818b
Clear context in node test helper
...
Fixes #858
2016-07-03 23:08:53 +01:00
Nick O'Leary
c05e9da9c5
Allow node properties to be same as existing object functions
...
Fixes #880
2016-07-03 23:00:48 +01:00
Nick O'Leary
0441c83fd7
Fix use of hasOwnProperty in Flow
...
Closes #907
2016-06-14 20:30:37 +01:00
Nick O'Leary
945fbbc065
Capture error stack on node.error
...
Closes #879
2016-06-12 11:07:05 +01:00
Nick O'Leary
4dc9c7714c
Clear node context on close
...
Fixes #870
2016-06-11 22:53:27 +01:00
Nick O'Leary
3959fcdc88
Handle null return from Function node in array of messages
2016-06-06 11:40:02 +01:00
Nick O'Leary
9e26aeea1d
Handle scoped node modules in the api
2016-05-17 21:56:03 +01:00
Nick O'Leary
db433efbef
Link nodes show hidden wires when selected
...
☕ ️
2016-05-17 09:18:32 +01:00
Nick O'Leary
594ff8cd3d
Add support for loading scoped node modules
...
Fixes #885
2016-05-06 10:16:41 +01:00
Nick O'Leary
337f5f9b98
Handle missing tab nodes in a loaded flow config
2016-05-04 22:09:11 +01:00
Nick O'Leary
41445a1b48
Merge branch 'config' into 0.14.0
...
explain why this merge is necessary,
2016-05-04 15:44:48 +01:00
Nick O'Leary
0c53b5310a
Protect against node types with reserved names such as toString
...
Fixes #880
2016-04-28 14:17:48 +01:00
Nick O'Leary
45ff86eae5
Do not rely on the HTML file to identify where nodes are registered from
2016-04-28 11:23:42 +01:00
Nick O'Leary
8080ebceb4
Fix linting error on Flow.js
2016-04-27 12:37:20 +01:00
Nick O'Leary
b744491dd2
Ensure config nodes are instantiated in the right order
2016-04-27 12:33:02 +01:00
Nick O'Leary
2a089f7d90
Ensure parent nodes marked as changed due to child config node changes
2016-04-27 12:33:02 +01:00
Gabe Johnson
b909e32201
Prevent RED.node.registerNode from overriding a constructor's prototype ( #865 )
...
* prevent registry.registerNodeConstructor from overriding a constructors protoype
* fix for node < v5.0.0
* exercise another code path
* altering __proto__ for node < v0.12
* move inheritance code to helper function
2016-04-07 22:18:28 +01:00
Nick O'Leary
e1d09349ff
Add link nodes
2016-04-07 17:08:51 +01:00
Nick O'Leary
428fbb8622
Fix uncaught exception on deploy whilst node sending messages
2016-03-16 15:37:44 +00:00
Nick O'Leary
708365c4ac
Allow runtime calls to RED._ to specify other namespace
2016-03-06 20:43:19 +00:00
Nick O'Leary
55e66ebcac
Allow node modules to include example flows
2016-03-02 23:34:24 +00:00
Nick O'Leary
3288efdad6
Remove unimplemented flow.enable/disable functions
2016-01-18 10:53:50 +00:00
Nick O'Leary
17e3b71d9c
Allow update of global flow
2016-01-14 14:57:13 +00:00
Nick O'Leary
db319e0ebc
Ensure global context is seeded properly
2016-01-11 11:28:01 +00:00
Nick O'Leary
5ead3342cc
Add node context/flow/global
2016-01-06 17:01:13 +00:00
Nick O'Leary
4d0950215f
Don't allow tabs or subflows to be added with new flow
2016-01-06 17:01:13 +00:00
Nick O'Leary
da0ce9fe0d
Simplify flow api implementation and add logging messages
2016-01-06 17:01:13 +00:00
Nick O'Leary
c4b1795396
Add add/update/delete flow apis
2016-01-06 17:01:13 +00:00
Nick O'Leary
fd2e47ed73
WIP: add flow api
2016-01-06 17:01:12 +00:00
Nick O'Leary
d5f2255a68
Handle null coreNodesPath
2016-01-06 17:01:12 +00:00
Nick O'Leary
05b58e9263
Allow core nodes dir to be provided to runtime via settings
2016-01-06 17:01:12 +00:00
Nick O'Leary
3a03d46d8d
Fix lint error in registry.js
2016-01-06 17:01:12 +00:00
Nick O'Leary
f03aff7006
Tidy up API passed to node modules
2016-01-06 17:01:12 +00:00
Nick O'Leary
043b8a3105
Register node message catalog directly, not via event
2016-01-06 17:01:12 +00:00
Nick O'Leary
1dd9984521
Pickup default language from i18n module
2016-01-06 17:01:12 +00:00
Nick O'Leary
88dc202db2
Fix node test helper for api/runtime changes
2016-01-06 17:01:12 +00:00
Nick O'Leary
35c4a41d7b
Node id generation should only be done in runtime/util
2016-01-06 17:01:11 +00:00
Nick O'Leary
d673846e3d
WIP: runtime api for node modules
2016-01-06 17:01:11 +00:00
Nick O'Leary
f62b7afede
Remove all uses of fs.exists as it is deprecated
...
The tests still use it in places - particular localfilesystem tests,
but those tests need to be redone with sinon stubbing in place and
not rely on real fs operations.
2016-01-06 17:01:11 +00:00
Nick O'Leary
45f67191ba
Improve node registry test coverage
2016-01-06 17:01:11 +00:00
Nick O'Leary
8fb955e182
Move comms from runtime to api component
2016-01-06 17:01:11 +00:00
Nick O'Leary
f43738446e
WIP: separate runtime and api components
2016-01-06 17:01:11 +00:00