@node-red/editor-client 2.2.0-beta.1 → 2.2.0
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/LICENSE +1 -1
- package/locales/en-US/editor.json +4 -1
- package/locales/ja/editor.json +138 -1
- package/package.json +1 -1
- package/public/red/about +40 -0
- package/public/red/red.js +422 -162
- package/public/red/red.min.js +2 -2
- package/public/red/style.min.css +1 -1
- package/public/red/tours/images/subflow-labels.png +0 -0
- package/public/red/tours/welcome.js +64 -6
- package/public/types/node-red/func.d.ts +24 -22
- package/public/vendor/ace/mode-jsonata.js +1 -1
- package/public/vendor/vendor.js +4 -4
|
Binary file
|
|
@@ -15,9 +15,11 @@ export default {
|
|
|
15
15
|
{
|
|
16
16
|
title: {
|
|
17
17
|
"en-US": "Search history",
|
|
18
|
+
"ja": "検索履歴"
|
|
18
19
|
},
|
|
19
20
|
description: {
|
|
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>"
|
|
21
|
+
"en-US": "<p>The Search dialog now keeps a history of your searches, making it easier to go back to a previous search.</p>",
|
|
22
|
+
"ja": "<p>検索ダイアログが検索履歴を保持するようになりました。これによって、過去の検索に戻りやすくなりました。</p>"
|
|
21
23
|
},
|
|
22
24
|
element: "#red-ui-search .red-ui-searchBox-form",
|
|
23
25
|
prepare(done) {
|
|
@@ -28,9 +30,29 @@ export default {
|
|
|
28
30
|
RED.search.hide();
|
|
29
31
|
},
|
|
30
32
|
},
|
|
33
|
+
{
|
|
34
|
+
title: {
|
|
35
|
+
"en-US": "Remembering Zoom & Position",
|
|
36
|
+
"ja": "拡大/縮小のレベルや位置を記憶"
|
|
37
|
+
},
|
|
38
|
+
description: {
|
|
39
|
+
"en-US": "<p>The editor has new options to restore the zoom level and scroll position when reloading the editor.</p>",
|
|
40
|
+
"ja": "<p>エディタを再読み込みした時に、拡大/縮小のレベルやスクロール位置を復元するための新しいオプションを利用できます。</p>"
|
|
41
|
+
},
|
|
42
|
+
element: function() { return $("#user-settings-view-store-position").parent()},
|
|
43
|
+
prepare(done) {
|
|
44
|
+
RED.actions.invoke("core:show-user-settings")
|
|
45
|
+
setTimeout(done,400);
|
|
46
|
+
},
|
|
47
|
+
complete(done) {
|
|
48
|
+
$("#node-dialog-ok").trigger("click");
|
|
49
|
+
setTimeout(done,400);
|
|
50
|
+
},
|
|
51
|
+
},
|
|
31
52
|
{
|
|
32
53
|
title: {
|
|
33
54
|
"en-US": "New wiring actions",
|
|
55
|
+
"ja": "新しいワイヤー操作"
|
|
34
56
|
},
|
|
35
57
|
// image: "images/",
|
|
36
58
|
description: {
|
|
@@ -39,24 +61,36 @@ export default {
|
|
|
39
61
|
<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
62
|
<li><b><code>Wire Node To Multiple</code></b> - wires the first node selected to all of the other selected nodes.</li>
|
|
41
63
|
</ul>
|
|
42
|
-
<p>Actions can be accessed from the Action List in the main menu.</p
|
|
64
|
+
<p>Actions can be accessed from the Action List in the main menu.</p>`,
|
|
65
|
+
"ja": `<p>ノード接続を支援する2つの新しい操作が追加されました:</p>
|
|
66
|
+
<ul>
|
|
67
|
+
<li><b><code>Wire Series Of Nodes</code></b> - ノードを選択した順序で、各ノードのペアの間にワイヤーを(必要に応じて)追加します。</li>
|
|
68
|
+
<li><b><code>Wire Node To Multiple</code></b> - 最初に選択したノードから、他の選択した全てのノードに対して、ワイヤーを追加します。</li>
|
|
69
|
+
</ul>
|
|
70
|
+
<p>メインメニュー内の動作一覧から、これらの操作を利用できます。</p>`
|
|
43
71
|
},
|
|
44
72
|
},
|
|
45
73
|
{
|
|
46
74
|
title: {
|
|
47
75
|
"en-US": "Deleting nodes and reconnecting wires",
|
|
76
|
+
"ja": "ノードの削除とワイヤーの再接続"
|
|
48
77
|
},
|
|
49
78
|
image: "images/delete-repair.gif",
|
|
50
79
|
description: {
|
|
51
80
|
"en-US": `<p>It is now possible to delete a selection of nodes and automatically repair the wiring behind them.</p>
|
|
52
81
|
<p>This is really useful if you want to remove a node from the middle of the flow.</p>
|
|
53
82
|
<p>Hold the Ctrl (or Cmd) key when you press Delete and the nodes will be gone and the wires repaired.</p>
|
|
54
|
-
|
|
83
|
+
`,
|
|
84
|
+
"ja": `<p>選択したノードを削除した後、その背後にあるワイヤーを自動的に修復できるようになりました。</p>
|
|
85
|
+
<p>これは、フローの中からノードを削除する時に、とても便利に使えます。</p>
|
|
86
|
+
<p>Ctrl (またはCmd)キーを押しながらDeleteキーを押すと、ノードがなくなり、ワイヤーが修復されます。</p>
|
|
87
|
+
`
|
|
55
88
|
}
|
|
56
89
|
},
|
|
57
90
|
{
|
|
58
91
|
title: {
|
|
59
92
|
"en-US": "Detaching nodes from a flow",
|
|
93
|
+
"ja": "フローからノードの切り離し"
|
|
60
94
|
},
|
|
61
95
|
image: "images/detach-repair.gif",
|
|
62
96
|
description: {
|
|
@@ -65,12 +99,16 @@ export default {
|
|
|
65
99
|
<p>The nodes will be removed from their flow, the wiring repaired behind them, and then attached to the mouse
|
|
66
100
|
so you can drop them wherever you want in the workspace.</p>
|
|
67
101
|
<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
|
|
102
|
+
you can add your own via the Keyboard pane of the main Settings dialog.</p>`,
|
|
103
|
+
"ja": `<p>ノードを削除することなく、フローからノードを除きたい場合は、<b><code>Detach Selected Nodes</code></b>操作を利用できます。</p>
|
|
104
|
+
<p>フローからノードが除かれた後、背後のワイヤーが修復され、ノードはマウスポインタにつながります。そのため、ワークスペースの好きな所にノードを配置できます。</p>
|
|
105
|
+
<p>この新しい操作に対して、デフォルトのキーボードショートカットは登録されていませんが、メイン設定ダイアログのキーボード設定から追加できます。</p>`
|
|
69
106
|
}
|
|
70
107
|
},
|
|
71
108
|
{
|
|
72
109
|
title: {
|
|
73
110
|
"en-US": "More wiring tricks",
|
|
111
|
+
"ja": "その他のワイヤー操作"
|
|
74
112
|
},
|
|
75
113
|
image: "images/slice.gif",
|
|
76
114
|
description: {
|
|
@@ -78,12 +116,27 @@ export default {
|
|
|
78
116
|
<p>You can now select multiple wires by holding the Ctrl (or Cmd) key
|
|
79
117
|
when clicking on a wire. This makes it easier to delete multiple wires in one go.</p>
|
|
80
118
|
<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
|
|
119
|
+
you can slice through wires to remove them.</p>`,
|
|
120
|
+
"ja": `<p>その他のいくつかのワイヤー操作</p>
|
|
121
|
+
<p>Ctrl (またはCmd)キーを押しながらワイヤーをクリックすることで、複数のワイヤーを選択できるようになりました。これによって、複数のワイヤーを一度に削除することが簡単になりました。</p>
|
|
122
|
+
<p>Ctrl (またはCmd)キーを押しながら、マウスの右ボタンを用いてドラッグすると、ワイヤーを切って削除できます。</p>`
|
|
82
123
|
}
|
|
83
124
|
},
|
|
125
|
+
{
|
|
126
|
+
title: {
|
|
127
|
+
"en-US": "Subflow Output Labels",
|
|
128
|
+
"ja": "サブフローの出力ラベル"
|
|
129
|
+
},
|
|
130
|
+
image: "images/subflow-labels.png",
|
|
131
|
+
description: {
|
|
132
|
+
"en-US": "<p>If a subflow has labels set for its outputs, they now get shown on the ports within the subflow template view.</p>",
|
|
133
|
+
"ja": "<p>サブフローの出力にラベルが設定されている場合、サブフローテンプレート画面内のポートにラベルが表示されるようになりました。</p>"
|
|
134
|
+
},
|
|
135
|
+
},
|
|
84
136
|
{
|
|
85
137
|
title: {
|
|
86
138
|
"en-US": "Node Updates",
|
|
139
|
+
"ja": "ノードの更新"
|
|
87
140
|
},
|
|
88
141
|
// image: "images/",
|
|
89
142
|
description: {
|
|
@@ -91,7 +144,12 @@ export default {
|
|
|
91
144
|
<li>The JSON node will now handle parsing Buffer payloads</li>
|
|
92
145
|
<li>The TCP Client nodes support TLS connections</li>
|
|
93
146
|
<li>The WebSocket node allows you to specify a sub-protocol when connecting</li>
|
|
94
|
-
</ul
|
|
147
|
+
</ul>`,
|
|
148
|
+
"ja": `<ul>
|
|
149
|
+
<li>JSONノードが、バッファ形式のペイロードを解析できるようになりました。</li>
|
|
150
|
+
<li>TCPクライアントノードが、TLS接続をサポートしました。</li>
|
|
151
|
+
<li>WebSocketノードで、接続時にサブプロトコルを指定できるようになりました。</li>
|
|
152
|
+
</ul>`
|
|
95
153
|
}
|
|
96
154
|
}
|
|
97
155
|
]
|
|
@@ -31,12 +31,12 @@ interface NodeStatus {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
declare class node {
|
|
34
|
-
/**
|
|
35
|
-
* Send 1 or more messages asynchronously
|
|
36
|
-
* @param {object | object[]} msg The msg object
|
|
37
|
-
* @param {Boolean} [clone=true] Flag to indicate the `msg` should be cloned. Default = `true`
|
|
38
|
-
* @see node-red documentation [writing-functions: sending messages asynchronously](https://nodered.org/docs/user-guide/writing-functions#sending-messages-asynchronously)
|
|
39
|
-
*/
|
|
34
|
+
/**
|
|
35
|
+
* Send 1 or more messages asynchronously
|
|
36
|
+
* @param {object | object[]} msg The msg object
|
|
37
|
+
* @param {Boolean} [clone=true] Flag to indicate the `msg` should be cloned. Default = `true`
|
|
38
|
+
* @see node-red documentation [writing-functions: sending messages asynchronously](https://nodered.org/docs/user-guide/writing-functions#sending-messages-asynchronously)
|
|
39
|
+
*/
|
|
40
40
|
static send(msg:object|object[], clone?:Boolean): void;
|
|
41
41
|
/** Inform runtime this instance has completed its operation */
|
|
42
42
|
static done();
|
|
@@ -57,11 +57,13 @@ declare class node {
|
|
|
57
57
|
*/
|
|
58
58
|
static status(status:string|boolean|number);
|
|
59
59
|
/** the id of this node */
|
|
60
|
-
public readonly id:string;
|
|
60
|
+
public static readonly id:string;
|
|
61
61
|
/** the name of this node */
|
|
62
|
-
public readonly name:string;
|
|
62
|
+
public static readonly name:string;
|
|
63
|
+
/** the path identifier for this node */
|
|
64
|
+
public static readonly path:string;
|
|
63
65
|
/** the number of outputs of this node */
|
|
64
|
-
public readonly outputCount:number;
|
|
66
|
+
public static readonly outputCount:number;
|
|
65
67
|
}
|
|
66
68
|
declare class context {
|
|
67
69
|
/**
|
|
@@ -93,27 +95,27 @@ declare class context {
|
|
|
93
95
|
/**
|
|
94
96
|
* Set one or multiple values in context (synchronous).
|
|
95
97
|
* @param name - Name (or array of names) to set in context
|
|
96
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
98
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
97
99
|
*/
|
|
98
100
|
static set(name: string | string[], value?: any | any[]);
|
|
99
101
|
/**
|
|
100
102
|
* Set one or multiple values in context (asynchronous).
|
|
101
103
|
* @param name - Name (or array of names) to set in context
|
|
102
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
104
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
103
105
|
* @param callback - (optional) Callback function (`(err) => {}`)
|
|
104
106
|
*/
|
|
105
107
|
static set(name: string | string[], value?: any | any[], callback?: Function);
|
|
106
108
|
/**
|
|
107
109
|
* Set one or multiple values in context (synchronous).
|
|
108
110
|
* @param name - Name (or array of names) to set in context
|
|
109
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
111
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
110
112
|
* @param store - (optional) Name of context store
|
|
111
113
|
*/
|
|
112
114
|
static set(name: string | string[], value?: any | any[], store?: string);
|
|
113
115
|
/**
|
|
114
116
|
* Set one or multiple values in context (asynchronous).
|
|
115
117
|
* @param name - Name (or array of names) to set in context
|
|
116
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
118
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
117
119
|
* @param store - (optional) Name of context store
|
|
118
120
|
* @param callback - (optional) Callback function (`(err) => {}`)
|
|
119
121
|
*/
|
|
@@ -158,27 +160,27 @@ declare class flow {
|
|
|
158
160
|
/**
|
|
159
161
|
* Set one or multiple values in context (synchronous).
|
|
160
162
|
* @param name - Name (or array of names) to set in context
|
|
161
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
163
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
162
164
|
*/
|
|
163
165
|
static set(name: string | string[], value?: any | any[]);
|
|
164
166
|
/**
|
|
165
167
|
* Set one or multiple values in context (asynchronous).
|
|
166
168
|
* @param name - Name (or array of names) to set in context
|
|
167
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
169
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
168
170
|
* @param callback - (optional) Callback function (`(err) => {}`)
|
|
169
171
|
*/
|
|
170
172
|
static set(name: string | string[], value?: any | any[], callback?: Function);
|
|
171
173
|
/**
|
|
172
174
|
* Set one or multiple values in context (synchronous).
|
|
173
175
|
* @param name - Name (or array of names) to set in context
|
|
174
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
176
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
175
177
|
* @param store - (optional) Name of context store
|
|
176
178
|
*/
|
|
177
179
|
static set(name: string | string[], value?: any | any[], store?: string);
|
|
178
180
|
/**
|
|
179
181
|
* Set one or multiple values in context (asynchronous).
|
|
180
182
|
* @param name - Name (or array of names) to set in context
|
|
181
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
183
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
182
184
|
* @param store - (optional) Name of context store
|
|
183
185
|
* @param callback - (optional) Callback function (`(err) => {}`)
|
|
184
186
|
*/
|
|
@@ -225,32 +227,32 @@ declare class global {
|
|
|
225
227
|
/**
|
|
226
228
|
* Set one or multiple values in context (synchronous).
|
|
227
229
|
* @param name - Name (or array of names) to set in context
|
|
228
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
230
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
229
231
|
*/
|
|
230
232
|
static set(name: string | string[], value?: any | any[]);
|
|
231
233
|
/**
|
|
232
234
|
* Set one or multiple values in context (asynchronous).
|
|
233
235
|
* @param name - Name (or array of names) to set in context
|
|
234
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
236
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
235
237
|
* @param callback - (optional) Callback function (`(err) => {}`)
|
|
236
238
|
*/
|
|
237
239
|
static set(name: string | string[], value?: any | any[], callback?: Function);
|
|
238
240
|
/**
|
|
239
241
|
* Set one or multiple values in context (synchronous).
|
|
240
242
|
* @param name - Name (or array of names) to set in context
|
|
241
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
243
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
242
244
|
* @param store - (optional) Name of context store
|
|
243
245
|
*/
|
|
244
246
|
static set(name: string | string[], value?: any | any[], store?: string);
|
|
245
247
|
/**
|
|
246
248
|
* Set one or multiple values in context (asynchronous).
|
|
247
249
|
* @param name - Name (or array of names) to set in context
|
|
248
|
-
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
250
|
+
* @param value - The value (or array of values) to store in context. If the value(s) are null/undefined, the context item(s) will be removed.
|
|
249
251
|
* @param store - (optional) Name of context store
|
|
250
252
|
* @param callback - (optional) Callback function (`(err) => {}`)
|
|
251
253
|
*/
|
|
252
254
|
static set(name: string | string[], value?: any | any[], store?: string, callback?: Function);
|
|
253
|
-
|
|
255
|
+
|
|
254
256
|
/** Get an array of the keys in the context store */
|
|
255
257
|
static keys(): Array<string>;
|
|
256
258
|
/** Get an array of the keys in the context store */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
ace.define("ace/mode/jsonata",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/worker/worker_client","ace/mode/text"],function(e,t,n){"use strict";
|
|
1
|
+
ace.define("ace/mode/jsonata",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/worker/worker_client","ace/mode/text"],function(e,t,n){"use strict";function r(){var e=this.createKeywordMapper({"keyword.operator":"and|or|in","constant.language":"null|Infinity|NaN|undefined","constant.language.boolean":"true|false","storage.type":"function"},"identifier");this.$rules={no_regex:[{token:"comment.doc",regex:"\\/\\*",next:"comments"},{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/},{token:"keyword",regex:/λ/},{token:"keyword",regex:s},{token:e,regex:"[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"keyword.operator",regex:/\|\||<=|>=|\.\.|\*\*|!=|:=|[=<>`!$%&*+\-~\/^]/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/}],qqstring:[{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}],regex:[{token:"string.regexp",regex:"/[sxngimy]*",next:"start"},{defaultToken:"string.regexp"}],start:[{token:"comment.doc",regex:"\\/\\*",next:"comments"},{token:"string.regexp",regex:"\\/",next:"regex"},{token:"empty",regex:"",next:"no_regex"}],comments:[{token:"comment.doc",regex:"\\*\\/",next:"start"},{defaultToken:"comment.doc"}]}}function o(){this.HighlightRules=r}var a=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,g=e("../worker/worker_client").WorkerClient,s=Object.keys(jsonata.functions),i=(s.sort(function(e,t){return t.length-e.length}),s="("+s.join("|").replace(/\$/g,"\\$")+")(\\b)",a.inherits(r,i),e("./text").Mode);a.inherits(o,i),function(){this.createWorker=function(t){var e=new g(["ace"],"ace/mode/jsonata_worker","JSONataWorker");return e.attachToDocument(t.getDocument()),e.on("annotate",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e},this.$id="ace/mode/jsonata"}.call(o.prototype),t.Mode=o});
|