Nick O'Leary
0afe98b399
Move rename flow dialog to editor tray
2016-05-31 23:20:25 +01:00
Trisooma
f1ce0fab8b
Option to enable cors for editor ( #886 )
...
Adds httpAdminCors setting
2016-05-31 14:55:03 +01:00
Nick O'Leary
b5d3f505e3
Defer loading of token sessions until they are accessed
...
Fixes #895
2016-05-31 14:39:50 +01:00
Dave Conway-Jones
69f83cb905
fully log node warnings on start
...
(i.e. don’t need -v for simple errors on start)
2016-05-26 10:38:24 +01:00
Nick O'Leary
291240dd94
Add editableList widget and update Switch/Change nodes to use it
2016-05-20 22:13:28 +01:00
Josh
3454e5ac77
Flows lib honours flowFilePretty setting ( #837 )
...
* Flow lib now adheres to pretty flow file, ui also adheres to this as well
* added settings mock object in flows_spec get api test
* reverted api changes, fixed parse of flow only
* try spell flows correctly
2016-05-17 22:09:57 +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
fa90eeac55
Make all dialog buttons consistent with editor tray
2016-05-03 21:36:22 +01:00
Nick O'Leary
ce25fc658b
Move edit tray buttons to top
2016-05-03 15:45:29 +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
Nick O'Leary
333acccff6
Add subflow dialogs to the tray
2016-04-27 12:33:01 +01:00
Nick O'Leary
6354b68bae
Config node tray
2016-04-27 12:33:01 +01:00
Dave Conway-Jones
59b34c2b3f
Add timestamp as a default typedInput
...
and update Inject and change nodes to match,
and add some tests.
2016-04-18 14:38:36 +01:00
Nick O'Leary
6b0bef61a5
Prompt for login if comms reconnect fails authentication
2016-04-11 08:49:49 -07:00
Nick O'Leary
0c227be02d
Back off comms reconnect attempts after prolonged failures
2016-04-11 08:49:49 -07:00
Nick O'Leary
44693dd23a
Enable finer grained permissions in adminAuth
2016-04-10 15:30:13 +01:00
Nick O'Leary
75a7be41eb
Better notification message when action is not permitted
2016-04-10 15:30:13 +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
1d54761d48
Fix comparison of Buffers (again)
2016-04-01 10:32:11 +01:00
Nick O'Leary
7cb9b2da66
Use Buffer.equals not Buffer.compare for node 4+
2016-04-01 10:23:00 +01:00
Nick O'Leary
b1896e3737
Fix RED.util.compareObjects for Function created objects and Buffers
2016-04-01 10:13:11 +01:00
Nick O'Leary
0cd4a2b4ec
Add api/flow_spec tests
...
Part of #840
2016-03-18 21:01:21 +00: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
27d3e165b0
Message catalog updates for zero-length flow file handling
2016-03-12 00:04:27 +00:00
Nick O'Leary
e941c22f6c
Warn if editor routes are accessed but runtime not started
...
Closes #816
2016-03-12 00:03:50 +00:00
Nick O'Leary
f2191e94b3
Better handling of zero-length flow files
...
Closes #819
If a flow file is found to be zero-bytes:
If there is a non-empty backup, restore the backup and resolve
If there is no backup or it is also empty, resolve empty flow
If a flow file is found to be invalid json:
Log and resolve empty flow
2016-03-11 22:42:04 +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
dcd8b3699c
Create node_modules in userDir
...
This ensures npm install puts modules under .node-red even if there's
already a node_modules dir in the parent directory.
2016-03-01 22:08:37 +00:00
Dave Conway-Jones
b89e866d39
Add os/platform info to default debug
2016-02-22 17:47:16 +00:00
Nick O'Leary
3ec8ecd4de
Disable perMessageDeflate on WS servers
...
Workaround for this issue: https://github.com/websockets/ws/pull/632
as it has been fixed in the 1.x release that drops support for
node 0.10...
2016-02-10 21:43:37 +00:00
Nathanaël Lécaudé
7615743aa5
Update theme.js
2016-02-08 09:20:07 -05:00
Nick O'Leary
c7bcd3f438
Don't default inject payload to blank string
2016-02-04 21:43:18 +00:00
Dave Conway-Jones
827711ca89
Fix util jshint as we need the behaviour.
2016-02-04 21:21:57 +00:00
Dave Conway-Jones
76e98f74fa
let new typed-inputs return correctly
...
0 now returns correct type for boolean and number when required.
2016-02-04 21:06:20 +00:00
Nick O'Leary
c76ba1dcc7
Allow function properties in settings
...
Fixes #790
2016-01-29 11:56:16 +00:00
Nick O'Leary
03558b012c
Bump version and dependencies
2016-01-18 11:09:52 +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
6dc640b129
Add hidden count when config node filtered
2016-01-13 10:30:24 +00:00
Nick O'Leary
a0cc1e6b0c
Add config node filter
2016-01-12 23:03:33 +00:00
Nick O'Leary
50399c6bfa
Rework config sidebar and deploy warning
2016-01-12 17:54:53 +00:00
Nick O'Leary
db319e0ebc
Ensure global context is seeded properly
2016-01-11 11:28:01 +00:00
Nick O'Leary
9bca2a91c9
Tidy up view menu
2016-01-10 21:25:05 +00:00
Nick O'Leary
66eaaf5a48
Add 'view' menu and reorganise a few things
2016-01-09 20:39:03 +00:00
Nick O'Leary
41f3b0c333
Fix variable leak in theme.js
2016-01-08 13:41:33 +00:00
Nick O'Leary
70f3e72a20
Move version number as title of NR logo
2016-01-08 13:36:49 +00:00
Nick O'Leary
1850185d1e
Add grid-alignment options
2016-01-07 14:39:01 +00:00
Nick O'Leary
43c6df49d7
Update typedInput nls
2016-01-06 17:01:13 +00:00
Nick O'Leary
f1c59faf72
Rename propertySelect to typedInput and add boolean opt
2016-01-06 17:01:13 +00:00
Nick O'Leary
fe4dae8518
Add propertySelect to switch node
2016-01-06 17:01:13 +00:00
Nick O'Leary
1f848b205b
Add propertySelect support to Change node
2016-01-06 17:01:13 +00:00
Nick O'Leary
5ead3342cc
Add node context/flow/global
2016-01-06 17:01:13 +00:00
Nick O'Leary
b95dc2ecce
Add propertySelect jquery widget
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
4a91c27e4b
Allow server to be option on red.init
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
d2be7f8c8f
Move locale files under api/runtime components
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
87d77efa57
Add flow reload admin api
2016-01-06 17:01:11 +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
1ca3ca07d5
api/nodes accessing comms module incorrectly
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
93f5da325b
Fix node test helper for runtime/api changes
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
9f5e6a4b37
Update tests for runtime/api separation
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
Nick O'Leary
4eb5058e68
Add readOnly setting to prevent file writes in localfilesystem storage
2015-12-13 22:45:44 +00:00
Nick O'Leary
50d0a88276
Ensure tabs are removed from runtime on partial deploy
2015-12-10 15:47:15 +00:00
Dave Conway-Jones
a95f44d68b
remove annoying comma from comm.js
...
OCD reasons only
2015-12-09 13:37:20 +00:00
Nick O'Leary
cb01920ee6
Allow nodes to be installed by path name
2015-11-09 16:52:14 +00:00
Nick O'Leary
437b01a0ff
Move node installer to its own module
2015-11-09 11:29:48 +00:00
Nick O'Leary
075a2abf71
Use child_process.execFile to prevent command injection
2015-11-08 14:26:11 +00:00
Nick O'Leary
985875cc75
Move node install/remove from server component to node engine
2015-11-08 14:06:36 +00:00
Nick O'Leary
a0aee2021d
Tidy up sheets/flows labelling
2015-11-05 14:22:15 +00:00
Nick O'Leary
c90fd1e6d8
Move credential http API handling to api component
2015-11-04 11:13:43 +00:00
Nick O'Leary
71ecb89abc
Merge branch 'flowengine'
2015-11-03 20:24:55 +00:00
Nick O'Leary
7b6bc1d3bc
Increase default api request limit to 1mb
...
- expose it via settings.apiMaxLength
- audit log api errors
2015-11-03 11:23:37 +00:00
Nick O'Leary
ab87fa9ce4
Ensure status/errors from global config nodes propagate properly
2015-11-03 10:20:00 +00:00
Nick O'Leary
d1940a023a
Complete test coverage on flow engine refactor
2015-11-02 15:58:40 +00:00
Nick O'Leary
ec25191c98
Flow Engine refactor
...
Each flow/tab now exists as its own logical object. This is the ground
work for allowing flows to be added/removed/updated independently.
2015-11-02 15:58:29 +00:00
Nick O'Leary
f626ee060a
Allow properties to be specified by environment variables
...
A property set to $(ABC) will be substituted with the environment
variable ABC - if it exists. If the property doesn't exist, the property
is left unchanged.
2015-10-23 22:14:39 +01:00
Nick O'Leary
d668d43a0a
Move to express 4.x
2015-10-02 21:27:31 +01:00
Dave Conway-Jones
cc6e0937a0
initialise status.text to be blank string if not set.
...
(and change test to use .text rather than .message)
(not that it matters at this level of test)
2015-10-02 21:27:30 +01:00
Nick O'Leary
a6644ad5ff
Add status node
2015-10-02 21:27:29 +01:00
Nick O'Leary
cbdd4de630
Errors in subflows propagate up to nearest catch node
2015-10-02 21:27:29 +01:00
Nick O'Leary
3a6192bf73
Catch node can target specific nodes
2015-10-02 21:27:28 +01:00
Nick O'Leary
3963fa9738
Allow a language catalog to be a partial catalog
2015-09-24 21:56:45 +01:00
Nick O'Leary
5193d7bddb
Stop sending messages to ws connections that have errored
...
Fixes #708
2015-07-30 22:09:01 +01:00
Nick O'Leary
eb57089f06
Add flag to disable build check for tests
2015-07-22 11:41:58 +01:00
Nick O'Leary
a76e4fede1
Handle null acceptedLanguages
...
Closes #704
2015-07-19 22:11:25 +01:00
Nick O'Leary
9fb81b2814
Permit login with blank scope
...
Required for the editor, which doesn't know the appropriate scope
for the user logging in. The user will adopt their default permission
scope once logged in.
2015-07-15 10:12:45 +01:00
Nick O'Leary
846ab08661
Allow node modules to declare supported versions of node-red
2015-07-10 21:42:14 +01:00
Nick O'Leary
f70e9ea076
Ensure RED._ is defined before initialising settings
...
- remove permissions requirement from locales files so the
login dialog can be nls'd
2015-07-08 17:08:07 +01:00
Nick O'Leary
6cfa4976fe
Fix nodes.install.installing message id
2015-07-02 13:25:15 +01:00
Nick O'Leary
61e0923fc4
Restore when module dependency in red/api/nodes
2015-07-02 10:49:40 +01:00
Nick O'Leary
9ca102cf81
Ensure error messages are toStringed
2015-07-02 10:49:39 +01:00
Nick O'Leary
48df31d7b7
NLS deprecated node message
2015-07-02 10:49:39 +01:00
Nick O'Leary
99a51b07ac
Catch error loop detection nls
2015-07-02 10:49:39 +01:00
Allen Boone
a6974371b0
Fixed acceptedLanguage typo
2015-07-02 10:49:39 +01:00
Nick O'Leary
f0b4cb608a
Return locale specific node help
2015-07-02 10:49:39 +01:00
Allen Boone
284d7e26d1
Initialize list of supported languages from directories in the locale folder.
2015-07-02 10:49:39 +01:00
Allen Boone
e6ed8ee509
locale exposed to editor
2015-07-02 10:49:39 +01:00
Scott Yoshizawa
2563649b3e
NLS /red/nodes
...
NLS other js files under /red
NLS /red files (changed based on Nick's review)
2015-07-02 10:49:39 +01:00
Nick O'Leary
f5fc8f763f
Pick up desired language from query string
2015-07-02 10:49:38 +01:00
Nick O'Leary
6249083431
Extract all core runtime messages
2015-06-29 16:04:00 +01:00
Nick O'Leary
a7900940da
Expose i18n in editor
2015-06-29 16:03:59 +01:00
Nick O'Leary
008bc98070
Ensure node help is blank if otherwise undefined
2015-06-29 16:03:59 +01:00
Nick O'Leary
0705589cc2
Load base locales in editor
2015-06-29 16:03:59 +01:00
Nick O'Leary
b2caba593f
Add locales api endpoint
2015-06-29 16:03:59 +01:00
Nick O'Leary
6d4c64fcd5
i18n enable runtime node files
2015-06-29 16:03:59 +01:00
Nick O'Leary
7d41781fb4
Add initial red/i18n implementation
2015-06-29 16:03:59 +01:00
Nick O'Leary
a0ce095807
Error generating complete flow library list on OSX
...
Must use path.join to concatenate paths safely.
2015-06-29 16:00:10 +01:00
Nick O'Leary
72570e4510
Fix scope of knownUnknowns variable
2015-06-17 14:27:49 +01:00
Nick O'Leary
3002aead6b
Add better install message on missing nodes
2015-06-17 14:18:47 +01:00
Nick O'Leary
31c979f30f
Add deprecated node list
2015-06-16 15:32:41 +01:00
Nick O'Leary
21d0adbdae
Handle null message in catch loop detection
2015-06-15 15:22:51 +01:00
Nick O'Leary
c5fd3a5753
Detect and prevent Catch node loops
2015-06-15 15:09:50 +01:00
Nick O'Leary
bb1fe8daef
Allow nodesExcludes to specify node module name
2015-06-08 23:17:45 +01:00
Nick O'Leary
c5d8e09b41
Only delete node type from registry if id matches
...
If a node is moved out of node-red core to an npm installable
package, the first time NR runs after the move it correctly
deletes the node-red version from the registry. However it was
also removing the node constructors registered by the new
npm installed version as it wasn't checking what it was removing
came from the now-removed node.
2015-06-08 16:32:50 +01:00
Nick O'Leary
f8853af902
Enabling metric/audit logging takes precedence over level
2015-06-02 16:23:38 +01:00
Nick O'Leary
4248d20f39
Add RED.util.generateId and ensure HTTP node adds proper id
2015-06-02 15:54:37 +01:00
Nick O'Leary
53258eeede
Restore ability to add nodes by filename
2015-05-27 14:11:11 +01:00
Nick O'Leary
7de0216976
Add audit log entries on API calls
...
Closes #627
2015-05-14 14:22:56 +01:00
Nick O'Leary
0bef04ae0a
Set NODE_ENV in grunt dev task to serve non-minified assets
2015-05-11 20:24:15 +01:00
Nick O'Leary
7112fd2a22
Partial deploy containing deleted subflow throws error
2015-05-05 13:53:40 +01:00
Nick O'Leary
86013c7db4
Ensure node.credentials exists for nodes with registered creds
...
Fixes #639
2015-05-04 23:28:55 +01:00
Nick O'Leary
51fce9343b
Ensure errors in node.receive are handled
2015-05-02 22:15:33 +01:00
Scott Yoshizawa
deaef3ab86
Corrected based on knolleary's comments.
2015-05-01 09:37:23 -04:00
Scott Yoshizawa
276d893198
Added the capability to register custom loggers (for Issue #626 )
2015-04-30 17:01:22 -04:00
Nick O'Leary
1c1a85dcef
editorTheme: allow header logo/title to be a link
2015-04-22 14:03:42 +01:00