Commit Graph

3857 Commits

Author SHA1 Message Date
Amila Welihinda 8e2c12f8d9
Change repo badge to point to master branch 2018-10-01 12:50:03 -07:00
Nick O'Leary c49f722e4f
Merge pull request #1891 from camlow325/resolve-example-path-for-windows-support
Resolve path when sending example file for Windows support
2018-09-28 13:18:53 +01:00
Nick O'Leary d4d95a43b6
Merge pull request #1900 from kazuhitoyokoi/master-addtestcases4settings.js
Add test cases for red/api/editor/settings.js
2018-09-28 13:17:32 +01:00
Kazuhito Yokoi 67c268e13d Add test cases for red/api/editor/settings.js 2018-09-26 10:22:01 +09:00
Nick O'Leary ce85c8d986
Ensure all palette categories are opened properly
Closes #1893
2018-09-24 21:15:39 +01:00
Jeremy Barlow cb35604ef5 Resolve path when sending example file for Windows support
Previously, when trying to import an example into the flow editor on
Windows, the load attempt would fail with an HTTP 404 error in the
browser client, with a `TypeError: path must be absolute or specify
root to res.sendFile` error being written to the Node-RED log. This was
due to the path being passed to the `res.sendFile` function not being
fully-qualified (for example, `\Users\myuser\...\example.json`).

With the changes in this commit, the path to the example file is
resolved to a fully-qualified path before being passed into the
`res.sendFile` call. For example, a path on Windows of
`\Users\myuser\...\example.json` would be transformed to
`C:\\Users\\myuser\\...\\example.json` before being passed along to the
`sendFile` function. This change allows the file to be loaded and sent
properly to the browser client and for the embedded flows in the example
to be loaded in the flow editor.
2018-09-21 08:15:00 -07:00
Nick O'Leary 08fccc4e77
Update for 0.19.4 2018-09-17 11:26:06 +01:00
Nick O'Leary c1d50e82e1
Fix race condition in non-cache lfs context
Fixes #1888
2018-09-17 10:31:00 +01:00
Nick O'Leary 9777af7cb5
LocalFileSystem Context: Remove extra flush code 2018-09-16 22:04:09 +01:00
Hiroki Uchikawa fd86035865 Prevent race condition (#1889)
* Make pending Flag to be deleted after write process complete.

* Prevent executing write process until the previous process is completed

* Fix to prevent file write race condition when closing file context

* Make flushing rerun if pendingWrites was added
2018-09-16 21:15:23 +01:00
Nick O'Leary a8ec032553
Allow context store name to be provided in the key
For nodes that get/set context, when multiple stores are configured
they will not know to parse the store name from the key. So they
will pass the store name in the key, such as #:(store)::key.

Currently that will cause that full string to be used as the key
and the default context store used - which is wrong.

The code now parses out the store name from the key if it is set -
athough if the call to get/set does include the store argument, it
will take precedence.

This only applies when the key is a string - it doesn't apply when
an array of keys is provided.
2018-09-14 23:21:05 +01:00
Nick O'Leary 66ee27c5fa
Switch node: only use promises when absolutely necessary
Fixes a significant performance regression introduced when the
node was made async-only with the persistent context work.
2018-09-14 14:03:36 +01:00
Nick O'Leary 17a737ca88
Fix dbl-click handling on webkit-based browsers
d3.event.buttons is not as widely supported as I thought. Can
change this one instance as it is inside a click handler so
d3.event.button will be defined instead
2018-09-14 11:09:56 +01:00
Nick O'Leary 75e7c0e50d
Ensure context.flow/global cannot be deleted or enumerated 2018-09-10 22:30:51 +01:00
Nick O'Leary fc0cf1ff51
Handle context.get with multiple levels of unknown key
Fixes #1883
2018-09-09 23:47:31 +01:00
Nick O'Leary 0f4d46671f
Fix global.get("foo.bar") for functionGlobalContext set values 2018-09-09 11:07:44 +01:00
Kazuhito Yokoi 048f9c0294 Fix node color bug (#1877)
* Fix node color bug

* Add color property into sample node

* Revert view.js

* Add color handling into getNodeColor()
2018-09-08 22:41:38 +01:00
Nick O'Leary ca77842b5b
Merge pull request #1857 from cclauss/patch-1
Define raw_input() in Python 3 & fix time.sleep()
2018-09-06 22:59:48 +01:00
Hiroyasu Nishiyama 6fa8b7f5f1
fix persistable context handling of sort node & existing error in testcases 2018-09-05 16:04:12 +01:00
Nick O'Leary a2d03c14ae
Update CHANGELOG for 0.19.3 2018-09-05 09:49:09 +01:00
Dave Conway-Jones c667a0e74c
debug node - show ring at start until first msg 2018-09-05 09:45:34 +01:00
Dave Conway-Jones 8123828113
improve split node accumulation test to include early complete 2018-09-05 08:36:56 +01:00
Dave Conway-Jones 72b8dbb45b
Split node - fix complete to send msg for k/v object
and update info to try to clarify.
2018-09-04 22:54:28 +01:00
Dave Conway-Jones 7703875740
tidy split node merged object key typed input 2018-09-04 17:41:14 +01:00
Nick O'Leary 6442bb8a13
Set the JavaScript editor to full-screen 2018-09-04 13:30:06 +01:00
Nick O'Leary f29d7c9252
Fixup localfilesystem registry test 2018-09-04 11:37:04 +01:00
Nick O'Leary 2f7f53ed96
Filter global modules installed locally
If a module is found both locally and globally installed, the local
copy will take precedence. This will allow a user to upgrade a
node module that they may not otherwise be able to touch
2018-09-04 11:26:05 +01:00
Nick O'Leary 94031a52a5
Add svg to permitted icon extension list 2018-08-31 21:02:09 +01:00
Dave Conway-Jones d67f91e7ed
debug node - indicate status all the time if selected to do so 2018-08-31 16:31:08 +01:00
Nick O'Leary f37697c4fb
Merge pull request #1870 from natcl/json-schema
JSON node: fix schema validation for obj -> obj or str -> str
2018-08-31 11:25:31 +01:00
Dave Conway-Jones 69448c7329
pi nodes - increase test coverage slightly 2018-08-30 20:54:03 +01:00
Dave Conway-Jones 8e9815fb91
TCP-request node - only write payload
to close #1869
2018-08-30 20:47:39 +01:00
Nathanaël Lécaudé 4cdd7978cf JSON schema: remove unused function 2018-08-29 13:40:37 -04:00
Nathanaël Lécaudé 40d81358f4 JSON schema: perform validation when obj -> obj or str -> str 2018-08-29 13:36:28 -04:00
Nathanaël Lécaudé c7b62aed91 JSON schema: add draft-06 support (via $schema keyword) 2018-08-29 12:20:04 -04:00
Stefan Machmeier c0e7d6d826
Mqtt proxy configuration for websocket connection, #1651. 2018-08-29 09:53:07 +01:00
Nick O'Leary f809377de8
Merge pull request #1854 from kazuhitoyokoi/master-fixtypointestcase4functionnode
Fix typo in test case
2018-08-28 21:19:48 +01:00
Nick O'Leary 9767bd9697
Merge pull request #1860 from node-red-hitachi/uitest-refactoring
Refactored UI testing code following a design note
2018-08-28 21:06:36 +01:00
Nick O'Leary 3a55528552
Merge pull request #1861 from SPIRIT-21/master
Allows MQTT Shared Subscriptions for MQTT-In core node
2018-08-28 21:04:53 +01:00
Nick O'Leary 56197ffe3a
Merge pull request #1851 from t4skforce/patch-1
fixed some linting issues
2018-08-28 20:58:51 +01:00
Nick O'Leary 0f0d0c046c
Merge pull request #1853 from node-red-hitachi/fix-icon-spec-for-typedInput
Fix use of HTML tag or CSS class specification as icon of TypedInput
2018-08-28 20:44:06 +01:00
nakanishi ecc4973645 Fixed the problems that were caused by timing issue 2018-08-27 17:34:04 +09:00
Nick O'Leary 3169f93cc2
Bump for 0.19.2 2018-08-24 13:25:02 +01:00
Nick O'Leary c1a1a73599
Ensure node default color is used if palette.theme has no match 2018-08-24 13:08:49 +01:00
Christopher Hiller db1b0ccb79 fix lost messages / properties in TCPRequest Node; closes #1863 (#1864)
- Added some more checks around this.
- We're choosing to only use the latest message when sending, which is
  effectively what was happening before the queue implementation.
2018-08-23 08:50:51 +01:00
Lars Oldiges df161ce672 Allows MQTT Shared Subscriptions for MQTT-In core node 2018-08-22 13:20:49 +02:00
nakanishi 72fe30892e Refactor UI testing code following a design note 2018-08-22 14:36:30 +09:00
Nick O'Leary d373105b32
Fix typo in template.html 2018-08-21 13:42:51 +01:00
Nick O'Leary 28b311b7ed
Improve error reporting from context plugin loading 2018-08-16 14:36:11 +01:00
Nick O'Leary dcda513901
Prevent no-op edit of node marking as changed due to icon 2018-08-16 10:54:27 +01:00