@node-red/editor-client 2.1.5 → 2.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/locales/en-US/editor.json +2 -0
- package/package.json +1 -1
- package/public/red/about +22 -2753
- package/public/red/keymap.json +2 -0
- package/public/red/red.js +703 -141
- package/public/red/red.min.js +2 -2
- package/public/red/style.min.css +1 -1
- package/public/red/tours/images/delete-repair.gif +0 -0
- package/public/red/tours/images/detach-repair.gif +0 -0
- package/public/red/tours/images/slice.gif +0 -0
- package/public/red/tours/welcome.js +47 -178
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
version: "2.
|
|
2
|
+
version: "2.2.0",
|
|
3
3
|
steps: [
|
|
4
4
|
{
|
|
5
5
|
titleIcon: "fa fa-map-o",
|
|
6
6
|
title: {
|
|
7
|
-
"en-US": "Welcome to Node-RED 2.
|
|
8
|
-
"ja": "Node-RED 2.
|
|
9
|
-
|
|
7
|
+
"en-US": "Welcome to Node-RED 2.2!",
|
|
8
|
+
"ja": "Node-RED 2.2へようこそ!"
|
|
9
|
+
},
|
|
10
10
|
description: {
|
|
11
11
|
"en-US": "Let's take a moment to discover the new features in this release.",
|
|
12
12
|
"ja": "本リリースの新機能を見つけてみましょう。"
|
|
@@ -14,215 +14,84 @@ export default {
|
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
title: {
|
|
17
|
-
"en-US": "
|
|
18
|
-
"ja": "新しいツアーガイド"
|
|
17
|
+
"en-US": "Search history",
|
|
19
18
|
},
|
|
20
19
|
description: {
|
|
21
|
-
"en-US": "<p>
|
|
22
|
-
"<p>You can choose not to see this tour in the future by disabling it under the View tab of User Settings.</p>",
|
|
23
|
-
"ja": "<p>最初に、既に見つけている様に、新機能の本ツアーがあります。本ツアーは、新バージョンのNode-REDフローエディタを初めて開いた時のみ表示されます。</p>" +
|
|
24
|
-
"<p>ユーザ設定の表示タブの中で、この機能を無効化することで、本ツアーを表示しないようにすることもできます。</p>"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
title: {
|
|
29
|
-
"en-US": "New Edit menu",
|
|
30
|
-
"ja": "新しい編集メニュー"
|
|
20
|
+
"en-US": "<p>The Search dialog now keeps a history of your searches, making it easier to go back to a previous search.</p>"
|
|
31
21
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
element: "#red-ui-search .red-ui-searchBox-form",
|
|
23
|
+
prepare(done) {
|
|
24
|
+
RED.search.show();
|
|
25
|
+
setTimeout(done,400);
|
|
35
26
|
},
|
|
36
27
|
complete() {
|
|
37
|
-
|
|
28
|
+
RED.search.hide();
|
|
38
29
|
},
|
|
39
|
-
element: "#menu-item-edit-menu-submenu",
|
|
40
|
-
interactive: false,
|
|
41
|
-
direction: "left",
|
|
42
|
-
description: {
|
|
43
|
-
"en-US": "<p>The main menu has been updated with a new 'Edit' section. This includes all of the familar options, like cut/paste and undo/redo.</p>" +
|
|
44
|
-
"<p>The menu now displays keyboard shortcuts for the options.</p>",
|
|
45
|
-
"ja": "<p>メインメニューに「編集」セクションが追加されました。本セクションには、切り取り/貼り付けや、変更操作を戻す/やり直しの様な使い慣れたオプションが含まれています。</p>" +
|
|
46
|
-
"<p>本メニューには、オプションのためのキーボードショートカットも表示されるようになりました。</p>"
|
|
47
|
-
}
|
|
48
30
|
},
|
|
49
31
|
{
|
|
50
32
|
title: {
|
|
51
|
-
"en-US": "
|
|
52
|
-
"ja": "ノードの配置"
|
|
33
|
+
"en-US": "New wiring actions",
|
|
53
34
|
},
|
|
54
|
-
|
|
55
|
-
$("#red-ui-header-button-sidemenu").trigger("click");
|
|
56
|
-
$("#menu-item-arrange-menu").parent().addClass("open");
|
|
57
|
-
},
|
|
58
|
-
complete() {
|
|
59
|
-
$("#menu-item-arrange-menu").parent().removeClass("open");
|
|
60
|
-
},
|
|
61
|
-
element: "#menu-item-arrange-menu-submenu",
|
|
62
|
-
interactive: false,
|
|
63
|
-
direction: "left",
|
|
35
|
+
// image: "images/",
|
|
64
36
|
description: {
|
|
65
|
-
"en-US":
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"en-US": "Hiding tabs",
|
|
72
|
-
"ja": "タブの非表示"
|
|
37
|
+
"en-US": `<p>A pair of new actions have been added to help with wiring nodes together:</p>
|
|
38
|
+
<ul>
|
|
39
|
+
<li><b><code>Wire Series Of Nodes</code></b> - adds a wire (if necessary) between each pair of nodes in the order they were selected.</li>
|
|
40
|
+
<li><b><code>Wire Node To Multiple</code></b> - wires the first node selected to all of the other selected nodes.</li>
|
|
41
|
+
</ul>
|
|
42
|
+
<p>Actions can be accessed from the Action List in the main menu.</p>`
|
|
73
43
|
},
|
|
74
|
-
element: "#red-ui-workspace-tabs > li.active",
|
|
75
|
-
description: {
|
|
76
|
-
"en-US": '<p>Tabs can now be hidden by clicking their <i class="fa fa-eye-slash"></i> icon.</p><p>The Info Sidebar will still list all of your tabs, and tell you which ones are currently hidden.',
|
|
77
|
-
"ja": '<p><i class="fa fa-eye-slash"></i> アイコンをクリックすることで、タブを非表示にできます。</p><p>情報サイドバーには、全てのタブが一覧表示されており、現在非表示になっているタブを確認できます。'
|
|
78
|
-
},
|
|
79
|
-
interactive: false,
|
|
80
|
-
prepare() {
|
|
81
|
-
$("#red-ui-workspace-tabs > li.active .red-ui-tab-close").css("display","block");
|
|
82
|
-
},
|
|
83
|
-
complete() {
|
|
84
|
-
$("#red-ui-workspace-tabs > li.active .red-ui-tab-close").css("display","");
|
|
85
|
-
}
|
|
86
44
|
},
|
|
87
45
|
{
|
|
88
46
|
title: {
|
|
89
|
-
"en-US": "
|
|
90
|
-
"ja": "タブメニュー"
|
|
47
|
+
"en-US": "Deleting nodes and reconnecting wires",
|
|
91
48
|
},
|
|
92
|
-
|
|
49
|
+
image: "images/delete-repair.gif",
|
|
93
50
|
description: {
|
|
94
|
-
"en-US":
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
direction: "left",
|
|
99
|
-
prepare() {
|
|
100
|
-
$("#red-ui-workspace > .red-ui-tabs > .red-ui-tabs-menu a").trigger("click");
|
|
101
|
-
},
|
|
102
|
-
complete() {
|
|
103
|
-
$(document).trigger("click");
|
|
51
|
+
"en-US": `<p>It is now possible to delete a selection of nodes and automatically repair the wiring behind them.</p>
|
|
52
|
+
<p>This is really useful if you want to remove a node from the middle of the flow.</p>
|
|
53
|
+
<p>Hold the Ctrl (or Cmd) key when you press Delete and the nodes will be gone and the wires repaired.</p>
|
|
54
|
+
`
|
|
104
55
|
}
|
|
105
56
|
},
|
|
106
57
|
{
|
|
107
58
|
title: {
|
|
108
|
-
"en-US": "
|
|
109
|
-
"ja": "フローとグループの環境変数"
|
|
110
|
-
},
|
|
111
|
-
element: "#red-ui-workspace-tabs > li.active",
|
|
112
|
-
interactive: false,
|
|
113
|
-
description: {
|
|
114
|
-
"en-US": "<p>Flows and Groups can now have their own environment variables that can be referenced by nodes inside them.</p>",
|
|
115
|
-
"ja": "<p>フローとグループには、内部のノードから参照できる環境変数を設定できるようになりました。</p>"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
prepare(done) {
|
|
120
|
-
RED.editor.editFlow(RED.nodes.workspace(RED.workspaces.active()),"editor-tab-envProperties");
|
|
121
|
-
setTimeout(done,700);
|
|
59
|
+
"en-US": "Detaching nodes from a flow",
|
|
122
60
|
},
|
|
123
|
-
|
|
61
|
+
image: "images/detach-repair.gif",
|
|
124
62
|
description: {
|
|
125
|
-
"en-US":
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
direction: "left",
|
|
132
|
-
description: {
|
|
133
|
-
"en-US": '<p>The environment variables are listed in this table and new ones can be added by clicking the <i class="fa fa-plus"></i> button.</p>',
|
|
134
|
-
"ja": '<p>この表に環境変数が一覧表示されており、<i class="fa fa-plus"></i>ボタンをクリックすることで新しい変数を追加できます。</p>'
|
|
135
|
-
},
|
|
136
|
-
complete(done) {
|
|
137
|
-
$("#node-dialog-cancel").trigger("click");
|
|
138
|
-
setTimeout(done,500);
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
title: {
|
|
143
|
-
"en-US": "Link Call node added",
|
|
144
|
-
"ja": "Link Callノードを追加"
|
|
145
|
-
},
|
|
146
|
-
prepare(done) {
|
|
147
|
-
this.paletteWasClosed = $("#red-ui-main-container").hasClass("red-ui-palette-closed");
|
|
148
|
-
RED.actions.invoke("core:toggle-palette",true)
|
|
149
|
-
$('[data-palette-type="link call"]')[0].scrollIntoView({block:"center"})
|
|
150
|
-
setTimeout(done,100);
|
|
151
|
-
},
|
|
152
|
-
element: '[data-palette-type="link call"]',
|
|
153
|
-
direction: "right",
|
|
154
|
-
description: {
|
|
155
|
-
"en-US": "<p>The <code>Link Call</code> node lets you call another flow that begins with a <code>Link In</code> node and get the result back when the message reaches a <code>Link Out</code> node.</p>",
|
|
156
|
-
"ja": "<p><code>Link Call</code>ノードを用いることで、<code>Link In</code>ノードから始まるフローを呼び出し、<code>Link Out</code>ノードに到達した時に、結果を取得できます。</p>"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
title: {
|
|
161
|
-
"en-US": "MQTT nodes support dynamic connections",
|
|
162
|
-
"ja": "MQTTノードが動的接続をサポート"
|
|
163
|
-
},
|
|
164
|
-
prepare(done) {
|
|
165
|
-
$('[data-palette-type="mqtt out"]')[0].scrollIntoView({block:"center"})
|
|
166
|
-
setTimeout(done,100);
|
|
167
|
-
},
|
|
168
|
-
element: '[data-palette-type="mqtt out"]',
|
|
169
|
-
direction: "right",
|
|
170
|
-
description: {
|
|
171
|
-
"en-US": '<p>The <code>MQTT</code> nodes now support creating their connections and subscriptions dynamically.</p>',
|
|
172
|
-
"ja": '<p><code>MQTT</code>ノードは、動的な接続や購読ができるようになりました。</p>'
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
title: {
|
|
177
|
-
"en-US": "File nodes renamed",
|
|
178
|
-
"ja": "ファイルノードの名前変更"
|
|
179
|
-
},
|
|
180
|
-
prepare(done) {
|
|
181
|
-
$('[data-palette-type="file"]')[0].scrollIntoView({block:"center"});
|
|
182
|
-
setTimeout(done,100);
|
|
183
|
-
},
|
|
184
|
-
complete() {
|
|
185
|
-
if (this.paletteWasClosed) {
|
|
186
|
-
RED.actions.invoke("core:toggle-palette",false)
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
element: '[data-palette-type="file"]',
|
|
190
|
-
direction: "right",
|
|
191
|
-
description: {
|
|
192
|
-
"en-US": "<p>The file nodes have been renamed to make it clearer which node does what.</p>",
|
|
193
|
-
"ja": "<p>fileノードの名前が変更され、どのノードが何を行うかが明確になりました。</p>"
|
|
63
|
+
"en-US": `<p>If you want to remove a node from a flow without deleting it,
|
|
64
|
+
you can use the <b><code>Detach Selected Nodes</code></b> action.</p>
|
|
65
|
+
<p>The nodes will be removed from their flow, the wiring repaired behind them, and then attached to the mouse
|
|
66
|
+
so you can drop them wherever you want in the workspace.</p>
|
|
67
|
+
<p>There isn't a default keyboard shortcut assigned for this new action, but
|
|
68
|
+
you can add your own via the Keyboard pane of the main Settings dialog.</p>`
|
|
194
69
|
}
|
|
195
70
|
},
|
|
196
71
|
{
|
|
197
72
|
title: {
|
|
198
|
-
"en-US": "
|
|
199
|
-
"ja": "Changeノードのディープコピーオプション"
|
|
200
|
-
},
|
|
201
|
-
prepare(done) {
|
|
202
|
-
var def = RED.nodes.getType('change');
|
|
203
|
-
RED.editor.edit({id:"test",type:"change",rules:[{t:"set",p:"payload",pt:"msg", tot:"msg",to:"anotherProperty"}],_def:def, _:def._});
|
|
204
|
-
setTimeout(done,700);
|
|
205
|
-
},
|
|
206
|
-
complete(done) {
|
|
207
|
-
$("#node-dialog-cancel").trigger("click");
|
|
208
|
-
setTimeout(done,500);
|
|
209
|
-
},
|
|
210
|
-
element: function() {
|
|
211
|
-
return $(".node-input-rule-property-deepCopy").next();
|
|
73
|
+
"en-US": "More wiring tricks",
|
|
212
74
|
},
|
|
75
|
+
image: "images/slice.gif",
|
|
213
76
|
description: {
|
|
214
|
-
"en-US":
|
|
215
|
-
|
|
77
|
+
"en-US": `<p>A couple more wiring tricks to share.</p>
|
|
78
|
+
<p>You can now select multiple wires by holding the Ctrl (or Cmd) key
|
|
79
|
+
when clicking on a wire. This makes it easier to delete multiple wires in one go.</p>
|
|
80
|
+
<p>If you hold the Ctrl (or Cmd) key, then click and drag with the right-hand mouse button,
|
|
81
|
+
you can slice through wires to remove them.</p>`
|
|
216
82
|
}
|
|
217
83
|
},
|
|
218
84
|
{
|
|
219
85
|
title: {
|
|
220
|
-
"en-US": "
|
|
221
|
-
"ja": "これが全てではありません..."
|
|
86
|
+
"en-US": "Node Updates",
|
|
222
87
|
},
|
|
88
|
+
// image: "images/",
|
|
223
89
|
description: {
|
|
224
|
-
"en-US":
|
|
225
|
-
|
|
90
|
+
"en-US": `<ul>
|
|
91
|
+
<li>The JSON node will now handle parsing Buffer payloads</li>
|
|
92
|
+
<li>The TCP Client nodes support TLS connections</li>
|
|
93
|
+
<li>The WebSocket node allows you to specify a sub-protocol when connecting</li>
|
|
94
|
+
</ul>`
|
|
226
95
|
}
|
|
227
96
|
}
|
|
228
97
|
]
|