1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
Go to file
Nick O'Leary 373267c53b
Add more consistent events in the editor
This introduces a much more consistent set of events within the editor
for whenever a element is added, removed or modified.

The events emited on the `RED.events` event system. The event names
take the form: `"<thing>:<action>"`.

`<thing>` can be one of:
 - nodes
 - flows
 - subflows
 - groups
 - links

`<action>` can be one of:
 - add
 - remove
 - change

The payload of the events is the object in question.

There is also:
 - flows:reorder    - when tabs are reordered. Payload is array of flow ids.
 - workspace:clear  - when the workspace is emptied - part of switching projects

The `nodes:change` event was already used by RED.nodes.dirty() to cause
the Deploy button to become active. This renames that event to:
 - workspace:dirty  - Payload is boolean flag for the dirty state

This commit also updates the Palette to use the subflows:change event to
only redraw subflows that have actually changed rather than refresh them
all whenever one of them *might* have changed. This removes a noticable
flicker of the icon which was needlessly being redrawn.
2020-04-20 22:23:34 +01:00
.github Update github templates 2020-02-25 23:06:14 +00:00
packages/node_modules Add more consistent events in the editor 2020-04-20 22:23:34 +01:00
scripts Support BrowserStack in UI testing 2020-01-21 09:49:19 +09:00
test Merge branch 'dev' into groups 2020-03-30 23:42:52 +01:00
.gitattributes Prevent github from suppressing diffs 2018-09-24 22:02:18 +01:00
.gitignore Replace 'clone' with 'lodash.clonedeep' 2019-11-29 18:50:30 -07:00
.jshintrc add allow es6 to .jshintrc 2017-06-23 21:49:35 +01:00
.nodemonignore Fix grunt dev monitoring of src 2018-09-28 16:21:49 +01:00
.travis.yml Add Node 12 to full build matrix on Travis 2019-08-06 16:34:43 +01:00
API.md Add api docs landing content 2019-02-28 22:21:22 +00:00
CHANGELOG.md update changelog 2020-02-27 11:38:44 +00:00
CODE_OF_CONDUCT.md Add CoC.md 2016-04-07 21:51:12 +01:00
CONTRIBUTING.md Replace node.js with Node.js 2019-08-06 19:27:46 +09:00
Gruntfile.js Add polyfills for IE11 2020-04-03 16:57:15 +01:00
jsdoc.json More api documentation updates 2019-01-28 14:40:42 +00:00
LICENSE Update copyright header for JS Foundation 2017-01-11 15:24:33 +00:00
package.json Bump dev branch to 1.1.0 2020-04-06 20:29:22 +01:00
README.md Update readme 2019-09-30 13:38:46 +01:00
SECURITY.md Create SECURITY.md 2019-09-10 12:56:32 +01:00

Node-RED

http://nodered.org

Build Status Coverage Status

Low-code programming for event-driven applications.

Node-RED: Low-code programming for event-driven applications

Quick Start

Check out http://nodered.org/docs/getting-started/ for full instructions on getting started.

  1. sudo npm install -g --unsafe-perm node-red
  2. node-red
  3. Open http://localhost:1880

Getting Help

More documentation can be found here.

For further help, or general discussion, please use the Node-RED Forum or slack team.

Developers

If you want to run the latest code from git, here's how to get started:

  1. Clone the code:

     git clone https://github.com/node-red/node-red.git
     cd node-red
    
  2. Install the node-red dependencies

     npm install
    
  3. Build the code

     npm run build
    
  4. Run

     npm start
    

Contributing

Before raising a pull-request, please read our contributing guide.

This project adheres to the Contributor Covenant 1.4. By participating, you are expected to uphold this code. Please report unacceptable behavior to any of the project's core team at team@nodered.org.

Authors

Node-RED is a project of the OpenJS Foundation.

It was created by IBM Emerging Technology.

Copyright JS Foundation and other contributors, https://openjsf.org under the Apache 2.0 license.