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

71 lines
3.4 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
},
{
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
title: { "en-US": "New Edit menu" },
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
},
{
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
title: { "en-US": "Arranging nodes" },
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
},
{
element: "#red-ui-workspace-tabs > li:first-child",
2021-09-27 18:34:30 +02:00
title: { "en-US": "Flow and Group level environment variables" },
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");
setTimeout(done,800);
},
element: "#red-ui-tab-editor-tab-envProperties-link-button",
2021-09-27 18:34:30 +02:00
description: { "en-US": "<p>Flows and Groups now have an Environment Variables section in their edit dialog.</p>" },
2021-09-08 23:57:35 +02:00
},
{
element: ".node-input-env-container-row .red-ui-editableList-addButton",
direction: "top",
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>' },
complete() {
2021-09-08 23:57:35 +02:00
$("#node-dialog-cancel").trigger("click");
}
},
{
2021-09-27 18:34:30 +02:00
title: { "en-US": "And that's not all..." },
description: { "en-US": "<p>There's more still to come before 2.1.0 is released. Watch this space!</p>" }
2021-09-08 23:57:35 +02:00
},
]
}