Merge commit '1f5588b803c7e2f216f2bfa31df7ac2cfa874480' into patch-1-de

This commit is contained in:
Dennis Neufeld 2022-06-25 16:19:07 +02:00
commit fce8c3a8a0
No known key found for this signature in database
GPG Key ID: 764B401F65DA5C1F
8 changed files with 51 additions and 15 deletions

View File

@ -1187,5 +1187,11 @@
"missing-config": "__prop__: missing configuration node", "missing-config": "__prop__: missing configuration node",
"validation-error": "__prop__: validation error: __node__, __id__: __error__" "validation-error": "__prop__: validation error: __node__, __id__: __error__"
} }
},
"contextMenu": {
"insert": "Insert",
"node": "Node",
"junction": "Junction",
"linkNodes": "Link Nodes"
} }
} }

View File

@ -1188,6 +1188,12 @@
"validation-error": "__prop__: チェックエラー: __node__, __id__: __error__" "validation-error": "__prop__: チェックエラー: __node__, __id__: __error__"
} }
}, },
"contextMenu": {
"insert": "挿入",
"node": "ノード",
"junction": "分岐点",
"linkNodes": "Linkード"
},
"action-list": { "action-list": {
"toggle-show-tips": "ヒント表示切替", "toggle-show-tips": "ヒント表示切替",
"show-about": "Node-REDの説明を表示", "show-about": "Node-REDの説明を表示",
@ -1302,7 +1308,7 @@
"search": "検索", "search": "検索",
"search-previous": "前を検索", "search-previous": "前を検索",
"search-next": "次を検索", "search-next": "次を検索",
"show-action-list": "アクション一覧を表示", "show-action-list": "動作一覧を表示",
"confirm-edit-tray": "編集を完了", "confirm-edit-tray": "編集を完了",
"cancel-edit-tray": "編集をキャンセル", "cancel-edit-tray": "編集をキャンセル",
"show-remote-diff": "リモートとの変更差分を表示", "show-remote-diff": "リモートとの変更差分を表示",
@ -1324,6 +1330,11 @@
"zoom-out": "ズームアウト", "zoom-out": "ズームアウト",
"zoom-reset": "ズームリセット", "zoom-reset": "ズームリセット",
"toggle-navigator": "ナビゲータ表示切替", "toggle-navigator": "ナビゲータ表示切替",
"show-system-info": "システムインフォメーション" "show-system-info": "システム情報",
"split-wires-with-junctions": "分岐点によりワイヤーを分割",
"new-project": "新しいプロジェクト",
"open-project": "プロジェクトを開く",
"show-project-settings": "プロジェクト設定を表示",
"show-version-control-tab": "バージョンコントロールタブを表示"
} }
} }

View File

@ -48,10 +48,10 @@ RED.contextMenu = (function() {
const menuItems = [ const menuItems = [
{ onselect: 'core:show-action-list', onpostselect: function() {} }, { onselect: 'core:show-action-list', onpostselect: function() {} },
{ {
label: 'Insert', label: RED._("contextMenu.insert"),
options: [ options: [
{ {
label: 'Node', label: RED._("contextMenu.node"),
onselect: function() { onselect: function() {
RED.view.showQuickAddDialog({ RED.view.showQuickAddDialog({
position: [ options.x - offset.left, options.y - offset.top ], position: [ options.x - offset.left, options.y - offset.top ],
@ -62,12 +62,12 @@ RED.contextMenu = (function() {
} }
}, },
{ {
label: 'Junction', label: RED._("contextMenu.junction"),
onselect: 'core:split-wires-with-junctions', onselect: 'core:split-wires-with-junctions',
disabled: hasSelection || !hasLinks disabled: hasSelection || !hasLinks
}, },
{ {
label: 'Link Nodes', label: RED._("contextMenu.linkNodes"),
onselect: 'core:split-wire-with-link-nodes', onselect: 'core:split-wire-with-link-nodes',
disabled: hasSelection || !hasLinks disabled: hasSelection || !hasLinks
} }
@ -170,6 +170,7 @@ RED.contextMenu = (function() {
} }
return { return {
show: show show: show,
hide: disposeMenu
} }
})() })()

View File

@ -988,6 +988,7 @@ RED.view = (function() {
if (RED.view.DEBUG) { if (RED.view.DEBUG) {
console.warn("canvasMouseDown", { mouse_mode, point: d3.mouse(this), event: d3.event }); console.warn("canvasMouseDown", { mouse_mode, point: d3.mouse(this), event: d3.event });
} }
RED.contextMenu.hide();
if (mouse_mode === RED.state.SELECTING_NODE) { if (mouse_mode === RED.state.SELECTING_NODE) {
d3.event.stopPropagation(); d3.event.stopPropagation();
return; return;
@ -1779,6 +1780,9 @@ RED.view = (function() {
} }
var i; var i;
var historyEvent; var historyEvent;
if (d3.event.button === 2) {
return
}
if (mouse_mode === RED.state.PANNING) { if (mouse_mode === RED.state.PANNING) {
resetMouseVars(); resetMouseVars();
return return
@ -2903,6 +2907,7 @@ RED.view = (function() {
function portMouseDown(d,portType,portIndex, evt) { function portMouseDown(d,portType,portIndex, evt) {
if (RED.view.DEBUG) { console.warn("portMouseDown", mouse_mode,d,portType,portIndex); } if (RED.view.DEBUG) { console.warn("portMouseDown", mouse_mode,d,portType,portIndex); }
RED.contextMenu.hide();
evt = evt || d3.event; evt = evt || d3.event;
if (evt === 1) { if (evt === 1) {
return; return;
@ -3411,6 +3416,7 @@ RED.view = (function() {
function nodeMouseDown(d) { function nodeMouseDown(d) {
if (RED.view.DEBUG) { console.warn("nodeMouseDown", mouse_mode,d); } if (RED.view.DEBUG) { console.warn("nodeMouseDown", mouse_mode,d); }
focusView(); focusView();
RED.contextMenu.hide();
if (d3.event.button === 1) { if (d3.event.button === 1) {
return; return;
} }
@ -3793,6 +3799,7 @@ RED.view = (function() {
if (RED.view.DEBUG) { if (RED.view.DEBUG) {
console.warn("linkMouseDown", { mouse_mode, point: d3.mouse(this), event: d3.event }); console.warn("linkMouseDown", { mouse_mode, point: d3.mouse(this), event: d3.event });
} }
RED.contextMenu.hide();
if (mouse_mode === RED.state.SELECTING_NODE) { if (mouse_mode === RED.state.SELECTING_NODE) {
d3.event.stopPropagation(); d3.event.stopPropagation();
return; return;
@ -3852,6 +3859,9 @@ RED.view = (function() {
} }
function groupMouseUp(g) { function groupMouseUp(g) {
if (RED.view.DEBUG) {
console.warn("groupMouseUp", { mouse_mode, event: d3.event });
}
if (dblClickPrimed && mousedown_group == g && clickElapsed > 0 && clickElapsed < dblClickInterval) { if (dblClickPrimed && mousedown_group == g && clickElapsed > 0 && clickElapsed < dblClickInterval) {
mouse_mode = RED.state.DEFAULT; mouse_mode = RED.state.DEFAULT;
RED.editor.editGroup(g); RED.editor.editGroup(g);
@ -3867,6 +3877,10 @@ RED.view = (function() {
// return // return
// } // }
if (RED.view.DEBUG) {
console.warn("groupMouseDown", { mouse_mode, point: mouse, event: d3.event });
}
RED.contextMenu.hide();
focusView(); focusView();
if (d3.event.button === 1) { if (d3.event.button === 1) {
return; return;

View File

@ -9,19 +9,22 @@ export default {
}, },
description: { description: {
"en-US": "<p>This is the final beta release of Node-RED 3.0.</p><p>Let's take a moment to discover the new features in this release.</p>", "en-US": "<p>This is the final beta release of Node-RED 3.0.</p><p>Let's take a moment to discover the new features in this release.</p>",
// "ja": "<p>これはNode-RED 3.0の最初のベータリリースです。これには、最終リリースで計画しているほぼ全ての機能が含まれています。</p><p>本リリースの新機能を見つけてみましょう。</p>" "ja": "<p>これはNode-RED 3.0の最後のベータリリースです。</p><p>本リリースの新機能を見つけてみましょう。</p>"
} }
}, },
{ {
title: { title: {
"en-US": "Context Menu" "en-US": "Context Menu",
"ja": "コンテキストメニュー"
}, },
image: 'images/context-menu.png', image: 'images/context-menu.png',
description: { description: {
"en-US": `<p>The editor now has its own context menu when you "en-US": `<p>The editor now has its own context menu when you
right-click in the workspace.</p> right-click in the workspace.</p>
<p>This makes many of the built-in actions much easier <p>This makes many of the built-in actions much easier
to access.</p>` to access.</p>`,
"ja": `<p>ワークスペースで右クリックすると、エディタに独自のコンテキストメニューが表示されるようになりました。</p>
<p>これによって多くの組み込み動作をより簡単に利用できます</p>`
} }
}, },
{ {
@ -34,10 +37,10 @@ export default {
"en-US": `<p>To make it easier to route wires around your flows, "en-US": `<p>To make it easier to route wires around your flows,
it is now possible to add junction nodes that give it is now possible to add junction nodes that give
you more control.</p> you more control.</p>
<p>Junctions can be added to wires by holding the Alt key <p>Junctions can be added to wires by holding both the Alt key and the Shift key
then click and drag the mouse across the wires.</p>`, then click and drag the mouse across the wires.</p>`,
// "ja": `<p>フローのワイヤーの経路をより制御しやすくするために、分岐点ノードを追加できるようになりました。</p> "ja": `<p>フローのワイヤーの経路をより制御しやすくするために、分岐点ノードを追加できるようになりました。</p>
// <p>シフトキーを押しながらマウスの右ボタンをクリックし、ワイヤーを横切るようにドラッグすることで、分岐点を追加できます。</p>` <p>Altキーとシフトキーを押しながらマウスをクリックしワイヤーを横切るようにドラッグすることで分岐点を追加できます</p>`
}, },
}, },
{ {

View File

@ -28,7 +28,7 @@
<p>返却/sendの対象は次のとおりです:</p> <p>返却/sendの対象は次のとおりです:</p>
<ul> <ul>
<li>単一メッセージオブジェクト - 最初の出力に接続されたノードに渡されます</li> <li>単一メッセージオブジェクト - 最初の出力に接続されたノードに渡されます</li>
<li>メッセージオブジェクトの配列 - 対応する出力に接続されたノードに渡されます</li> <li>メッセージオブジェクトの配列 - 対応する出力に接続されたノードに渡されます</li>
</ul> </ul>
<p>注: 初期化処理の実行はードの初期化中に行われます。そのため、初期化処理タブにsendを記述した場合に後続ードでメッセージを受け取れないことがあります。</p> <p>注: 初期化処理の実行はードの初期化中に行われます。そのため、初期化処理タブにsendを記述した場合に後続ードでメッセージを受け取れないことがあります。</p>
<p>配列要素が配列の場合には、複数のメッセージを対応する出力に送出します。</p> <p>配列要素が配列の場合には、複数のメッセージを対応する出力に送出します。</p>

View File

@ -928,6 +928,7 @@
"write": "write file", "write": "write file",
"read": "read file", "read": "read file",
"filename": "ファイル名", "filename": "ファイル名",
"path": "パス",
"action": "動作", "action": "動作",
"addnewline": "メッセージの入力のたびに改行を追加", "addnewline": "メッセージの入力のたびに改行を追加",
"createdir": "ディレクトリが存在しない場合は作成", "createdir": "ディレクトリが存在しない場合は作成",

View File

@ -89,7 +89,7 @@
<dt class="optional">userProperties <span class="property-type">オブジェクト</span></dt> <dt class="optional">userProperties <span class="property-type">オブジェクト</span></dt>
<dd><b>MQTTv5</b>: メッセージのユーザプロパティ</dd> <dd><b>MQTTv5</b>: メッセージのユーザプロパティ</dd>
<dt class="optional">messageExpiryInterval <span class="property-type">数値</span></dt> <dt class="optional">messageExpiryInterval <span class="property-type">数値</span></dt>
<dd><b>MQTTv5</b>: 秒単位のメッセージの有効期限</dd> <dd><b>MQTTv5</b>: 秒単位のメッセージの有効期限</dd>
<dt class="optional">topicAlias <span class="property-type">数値</span></dt> <dt class="optional">topicAlias <span class="property-type">数値</span></dt>
<dd><b>MQTTv5</b>: 使用するMQTTトピックエイリアス</dd> <dd><b>MQTTv5</b>: 使用するMQTTトピックエイリアス</dd>
</dl> </dl>