Commit Graph

80 Commits

Author SHA1 Message Date
Nick O'Leary d9f710aa52
Only update disabled workspace css if it is the active ws 2020-04-27 11:03:02 +01:00
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
Kazuhito Yokoi 5f67f1f078 Add placeholders to name fields 2019-10-29 20:45:57 +09:00
Nick O'Leary 6c48735854
Move flow-status button to footer for consistency 2019-09-10 11:49:59 +01:00
Nick O'Leary d963dfdbb6
Merge branch 'master' into dev 2019-09-06 10:49:27 +01:00
Nick O'Leary 30c3004f27
Sanitize tab name in edit dialog 2019-09-06 10:25:30 +01:00
Nick O'Leary d623848c87
Update all node icons to SVG
When listing icons provided by a module, if there is a png and svg
with the same name, only the svg will be listed.

If a node asks for a png icon which is not known, but there is a
corresponding svg, that will be used instead.
2019-06-21 12:36:20 +01:00
Nick O'Leary 2473249c8b
Allow config nodes to be disabled, tidy css and add actions 2019-06-17 22:46:34 +01:00
Nick O'Leary 400071879f
Add enable/disable-flow actions 2019-06-07 15:14:21 +01:00
Nick O'Leary cae003d4fa
Add RED.view.selectNodes api for node selection whilst editing 2019-05-23 16:39:06 +01:00
Nick O'Leary 5f3e9a19ea
Introduce toggleButton and move flow-disabled to use it 2019-05-21 15:25:38 +01:00
Nick O'Leary 98a001a8ca
Deprecate editor-button css class 2019-05-17 10:42:43 +01:00
Nick O'Leary 67f8ec7f87
Append node configs to div rather than body 2019-05-03 21:32:12 +01:00
Nick O'Leary 5b1defad9f
Simplify index.mst to a single div to insert the editor 2019-05-02 16:09:13 +01:00
Nick O'Leary 8dc1ad8168
Namespace workspace/view css 2019-05-01 22:41:20 +01:00
Nick O'Leary 9dac679b72
Namespace all sidebar css 2019-04-30 22:56:39 +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
Nick O'Leary 43f21fc7aa
Add list-flows action and button 2019-03-04 22:37:51 +00:00
Nick O'Leary 6201247875
Tidy up markdown toolbar handling across all editors
Any editor for the markdown mode will now automatically get
the markdown toolbar added.

The comment node has been updated to handle this properly and
to not add two copies of its content to the sidebar.
2018-12-10 15:24:27 +00:00
Nick O'Leary 2dfb443625
Handle missing tab.disabled property 2018-11-13 13:39:06 +00:00
Nick O'Leary dc880c672a
Make disabled flows more obvious in editor 2018-11-08 18:04:36 +01:00
Nick O'Leary 6a4e7201fe
Disable subflow toolbar when multiple tabs are selected 2018-11-02 09:56:43 +00:00
Nick O'Leary c0d8f904b3
Support ctrl-click selection of flow tabs 2018-10-30 22:18:16 +00:00
Nick O'Leary 5cfc52ea18
Support dbl-click in tab bar to add new flow in position 2018-10-26 23:09:41 +01:00
Nick O'Leary daf3e6a47a
Merge branch 'dev' into hide-label 2018-10-23 10:55:27 +01:00
Nick O'Leary 2816b3edae
Add tooltip to flow add button 2018-10-17 13:45:57 +01:00
Nick O'Leary fc8c4063f2
Add markdown toolbar to flow description editor 2018-10-16 11:36:24 +01:00
Nick O'Leary 0376e0d711
Allow a node label to be hidden 2018-10-08 16:25:11 +01:00
Nick O'Leary e57d8ba0ef
pull out editor-client and editor-api 2018-08-17 22:10:54 +01:00