Commit Graph

50 Commits

Author SHA1 Message Date
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
Nick O'Leary 5da89892b4
[groups] Draw group selection above all other groups 2020-04-01 14:10:35 +01:00
Nick O'Leary 294696daf5
Merge branch 'dev' into groups 2020-03-30 23:42:52 +01:00
Nick O'Leary f61c137ea3
[groups] Improve styling of group selection/highlight 2020-03-23 14:51:18 +00:00
Nick O'Leary 27c462fee9
[groups] Support dragging node from palette into group 2020-03-13 23:01:19 +00:00
Nick O'Leary 3f86fd7176
Upgrade to latest marked and dompurify libs 2020-02-24 11:22:47 +00:00
Nick O'Leary a05589c5a6
Filter palette using raw label not html formatted label
Fixes #2409
2020-02-07 16:31:59 +00:00
Nick O'Leary 9d4238e5cc
Re-enable jshint on editor and fixup issues 2020-01-22 11:53:41 +00:00
Kazuhito Yokoi dddfb1ec08 Fix node draggable handling 2019-09-26 11:43:24 +09:00
Hiroyasu Nishiyama 247052df5f allow word breaking of node name with long word 2019-09-19 22:50:35 +09:00
Nick O'Leary c7427a5f7c
Add nls messages for new palette categories 2019-08-21 17:30:02 +01:00
Nick O'Leary 03aa6c7d3a
Apply user specified palette cateogies and remaining core ones 2019-08-21 17:27:06 +01:00
Nick O'Leary 69b781419f
Move io to network 2019-08-21 14:23:24 +01:00
Nick O'Leary da6db24f9e
Reorganise nodes into new categories 2019-08-21 14:23:23 +01:00
Nick O'Leary 2b66723d42
Another pass of categorisation 2019-08-21 14:22:30 +01:00
Nick O'Leary 00a3e25714
Change core node categories 2019-08-21 14:21:34 +01:00
Nick O'Leary 607bc42f59
Merge branch 'dev' into pr_2225 2019-08-12 15:05:12 +01:00
Hiroyasu Nishiyama 7b5a41c3ff fix subflow category change on palette 2019-08-12 13:49:34 +09:00
Nick O'Leary 7926055b97
Merge branch 'master' into dev 2019-08-06 16:10:33 +01:00
Hiroyasu Nishiyama db65460ec0 fix SUBFLOW palette node update & SUBFLOW default color 2019-07-31 22:59:29 +09:00
Kazuhito Yokoi 2f5ec8b5bf Fix inserting new subflow node to existing wire between nodes 2019-07-26 17:51:49 +09:00
Hiroyasu Nishiyama d06dbbb4bd changed to color change reflect immediately on OK 2019-07-11 08:22:31 +09:00
Nick O'Leary 24b38407e4
Merge branch 'master' into dev 2019-07-01 12:43:16 +01:00
Nick O'Leary 55645e3730
Properly escape node types in palette
We were only escaping the first instance of any invalid dom char
and not all of the
2019-06-28 22:39:27 +01:00
Nick O'Leary a24c66958f
Fix display of node help when clicking in palette
Fixes #2194
2019-06-06 14:38:21 +01:00
Nick O'Leary b105a12505
Fix palette node id handling so search works
Fixes #2173
2019-05-24 22:13:21 +01:00
Nick O'Leary 0d75ff336d
Found some more ids and classes to namespace 2019-05-16 22:32:28 +01:00
Nick O'Leary 031362a633
Move all colours to sass variables 2019-05-15 13:54:29 +01:00
Nick O'Leary 4418f8bfce
Better CSS namespace of base form elements 2019-05-09 19:22:40 +01:00
Nick O'Leary 8dc1ad8168
Namespace workspace/view css 2019-05-01 22:41:20 +01:00
Nick O'Leary a2632fdcc8
Namespace all palette css 2019-04-29 22:38:14 +01:00
Nick O'Leary b5da6f9c74
Upgrade to jq 3.3.1 / jq-ui 1.12.1
Uses jquery-migrate-3.0.1.min.js to keep things working.
2019-04-29 11:50:15 +01:00
Kazuhito Yokoi 44b75f0b92 Adjust node animation speed 2019-04-16 11:02:51 +09:00
Kazuhito Yokoi 162bd6a8c3 Fix node drag and drop animation 2019-04-16 09:47:08 +09:00
Nick O'Leary 1d7be6457f
Ensure node names are sanitized before being presented 2019-03-13 16:08:11 +00:00
Nick O'Leary b011b9203b
Keep subflow palette appearance in sync with edits 2019-03-05 14:37:07 +00:00
Kazuhito Yokoi f80b172022 Add condition to handle existing node 2019-03-05 21:29:03 +09:00
Kazuhito Yokoi 66fc4b536c Automatic placing of node icon 2019-03-05 21:21:23 +09:00
nakanishi 8bda2d0add Show arrow-in node when invalid font-awesome icon name was specified for default icon 2018-11-29 16:57:39 +00:00
Nick O'Leary 70fb181b7b
Add more ui tooltips 2018-10-24 22:57:16 +01:00
nakanishi c9db74ebca Show default icon when non-existent font-awesome icon was specified 2018-10-23 16:30:56 +09:00
Nick O'Leary 242398c724
Slow down sidebar control appearance
Also hides WIP action info panel buttons
2018-10-17 13:18:08 +01:00
Nick O'Leary 289583325d
Allow palette to be hidden 2018-10-17 11:03:09 +01:00
Nick O'Leary dc3128fb3e
Add node module into to sidebar and palette popover 2018-10-16 14:05:23 +01:00
Nick O'Leary e24c22f9be
Merge branch 'master' into dev 2018-10-07 12:02:29 +01:00
Nick O'Leary f4ca8cd738
Merge branch 'master' into dev 2018-10-07 11:45:43 +01:00
Nick O'Leary cdcf39fe82
Update tooltip style and add to some editor buttons 2018-10-03 14:02:07 +01:00
nakanishi 8789d983ed Show icon element with either icon image or fa-icon 2018-09-28 17:07:55 +09:00
nakanishi f13e02a1a9 Added font-awesome icons to user defined icon 2018-09-26 09:16:15 +09:00
Nick O'Leary e57d8ba0ef
pull out editor-client and editor-api 2018-08-17 22:10:54 +01:00