node-red/packages/node_modules/@node-red/editor-client/src/tours/welcome.js

136 lines
6.7 KiB
JavaScript
Raw Normal View History

2021-09-08 23:57:35 +02:00
export default {
version: "2.1.0",
2021-09-08 23:57:35 +02:00
steps: [
{
titleIcon: "fa fa-map-o",
2021-09-27 18:34:30 +02:00
title: { "en-US": "Welcome to Node-RED 2.1!" },
description: { "en-US": "Let's take a moment to discover the new features in this release." }
2021-09-08 23:57:35 +02:00
},
{
2021-09-27 18:34:30 +02:00
title: { "en-US": "A new Tour Guide" },
description: { "en-US": "<p>First, as you've already found, we now have this tour of new features. We'll only show the tour the first time you open the editor for each new version of Node-RED.</p>"+
"<p>You can choose not to see this tour in the future by disabling it under the View tab of User Settings.</p>" }
2021-09-08 23:57:35 +02:00
},
{
2021-10-06 13:05:49 +02:00
title: { "en-US": "New Edit menu" },
prepare() {
2021-09-08 23:57:35 +02:00
$("#red-ui-header-button-sidemenu").trigger("click");
$("#menu-item-edit-menu").parent().addClass("open")
},
complete() {
2021-09-08 23:57:35 +02:00
$("#menu-item-edit-menu").parent().removeClass("open")
},
element: "#menu-item-edit-menu-submenu",
interactive: false,
direction: "left",
2021-09-27 18:34:30 +02:00
description: { "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>"+
"<p>The menu now displays keyboard shortcuts for the options.</p>" }
2021-09-08 23:57:35 +02:00
},
{
2021-10-06 13:05:49 +02:00
title: { "en-US": "Arranging nodes" },
prepare() {
2021-09-08 23:57:35 +02:00
$("#red-ui-header-button-sidemenu").trigger("click");
$("#menu-item-arrange-menu").parent().addClass("open")
},
complete() {
2021-09-08 23:57:35 +02:00
$("#menu-item-arrange-menu").parent().removeClass("open")
},
element: "#menu-item-arrange-menu-submenu",
interactive: false,
direction: "left",
2021-09-27 18:34:30 +02:00
description: { "en-US": "<p>The new 'Arrange' section of the menu provides new options to help arrange your nodes. You can align them to a common edge, spread them out evenly or change their order.</p>" },
2021-09-08 23:57:35 +02:00
},
{
2021-10-06 13:05:49 +02:00
title: { "en-US": "Hiding tabs" },
element: "#red-ui-workspace-tabs > li.active",
description: { "en-US": '<p>Tabs can now be hidden by clicking their <i class="fa fa-times"></i> icon.</p><p>The Info Sidebar will still list all of your tabs, and tell you which ones are currently hidden.' },
interactive: false,
prepare() {
$("#red-ui-workspace-tabs > li.active .red-ui-tab-close").css("display","block");
},
complete() {
$("#red-ui-workspace-tabs > li.active .red-ui-tab-close").css("display","");
}
},
{
title: { "en-US": "Tab menu" },
element: "#red-ui-workspace-tabs-menu",
description: { "en-US": '<p>The new tab menu also provides lots of new options for your tabs.</p>' },
interactive: false,
direction: "left",
prepare() {
$("#red-ui-workspace > .red-ui-tabs > .red-ui-tabs-menu a").trigger("click");
},
complete() {
$(document).trigger("click");
}
},
{
2021-09-27 18:34:30 +02:00
title: { "en-US": "Flow and Group level environment variables" },
2021-10-06 13:05:49 +02:00
element: "#red-ui-workspace-tabs > li.active",
interactive: false,
2021-09-27 18:34:30 +02:00
description: { "en-US": "<p>Flows and Groups can now have their own environment variables that can be referenced by nodes inside them.</p>" },
2021-09-08 23:57:35 +02:00
},
{
prepare(done) {
2021-09-08 23:57:35 +02:00
RED.editor.editFlow(RED.nodes.workspace(RED.workspaces.active()),"editor-tab-envProperties");
2021-10-06 13:05:49 +02:00
setTimeout(done,700);
2021-09-08 23:57:35 +02:00
},
element: "#red-ui-tab-editor-tab-envProperties-link-button",
2021-10-06 13:05:49 +02:00
description: { "en-US": "<p>Their edit dialogs have a new Environment Variables section.</p>" },
2021-09-08 23:57:35 +02:00
},
{
2021-10-06 13:05:49 +02:00
element: ".node-input-env-container-row",
direction: "left",
2021-09-27 18:34:30 +02:00
description: { "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>' },
2021-10-06 13:05:49 +02:00
complete(done) {
2021-09-08 23:57:35 +02:00
$("#node-dialog-cancel").trigger("click");
2021-10-06 13:05:49 +02:00
setTimeout(done,500);
2021-09-08 23:57:35 +02:00
}
},
2021-10-06 13:05:49 +02:00
2021-09-08 23:57:35 +02:00
{
2021-10-06 13:05:49 +02:00
title: {"en-US":"Link Call node added"},
prepare(done) {
$('[data-palette-type="link call"]')[0].scrollIntoView({block:"center"})
setTimeout(done,100);
},
element: '[data-palette-type="link call"]',
direction: "right",
description: { "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>' },
},
{
title: {"en-US":"File nodes renamed"},
prepare(done) {
$('[data-palette-type="file"]')[0].scrollIntoView({block:"center"})
setTimeout(done,100);
},
element: '[data-palette-type="file"]',
direction: "right",
description: { "en-US": '<p>The file nodes have been renamed to make it clearer which node does what.</p>' },
},
{
title: {"en-US":"Deep copy option on Change node"},
prepare(done) {
var def = RED.nodes.getType('change')
RED.editor.edit({id:"test",type:"change",rules:[{t:'set',p:'payload',pt:'msg', tot:'msg',to:"anotherProperty"}],_def:def, _:def._})
setTimeout(done,700);
},
complete(done) {
$("#node-dialog-cancel").trigger("click");
setTimeout(done,500);
},
element: function() {
return $(".node-input-rule-property-deepCopy").next()
},
description: { "en-US": '<p>The Set rule has a new option to create a deep copy of the value. This ensures a complete copy is made, rather than using a reference.</p>' },
2021-09-08 23:57:35 +02:00
},
2021-10-06 13:05:49 +02:00
{
title: { "en-US": "And that's not all..." },
description: { "en-US": "<p>There are many more smaller changes, including:</p><ul><li>Auto-complete suggestions in the <code>msg</code> TypedInput.</li><li>Support for <code>msg.resetTimeout</code> in the <code>Join</code> node.</li><li>Pushing messages to the front of the queue in the <code>Delay</code> node's rate limiting mode.</li><li>An optional second output on the <code>Delay</code> node for rate limited messages.</li></ul>" }
}
2021-09-08 23:57:35 +02:00
]
}