Add core:show-welcome-tour action and logic to display on first-run

This commit is contained in:
Nick O'Leary
2021-09-27 16:42:51 +01:00
parent e20cfb3dae
commit e9e03c945b
8 changed files with 151 additions and 43 deletions

View File

@@ -1,4 +1,5 @@
export default {
version: "2.1.0",
steps: [
{
titleIcon: "fa fa-map-o",
@@ -11,11 +12,11 @@ export default {
"<p>You can choose not to see this tour in the future by disabling it under the View tab of User Settings.</p>",
},
{
prepare:function() {
prepare() {
$("#red-ui-header-button-sidemenu").trigger("click");
$("#menu-item-edit-menu").parent().addClass("open")
},
complete: function() {
complete() {
$("#menu-item-edit-menu").parent().removeClass("open")
},
element: "#menu-item-edit-menu-submenu",
@@ -27,11 +28,11 @@ export default {
},
{
prepare: function() {
prepare() {
$("#red-ui-header-button-sidemenu").trigger("click");
$("#menu-item-arrange-menu").parent().addClass("open")
},
complete: function() {
complete() {
$("#menu-item-arrange-menu").parent().removeClass("open")
},
element: "#menu-item-arrange-menu-submenu",
@@ -46,7 +47,7 @@ export default {
description: "<p>Flows and Groups can now have their own environment variables that can be referenced by nodes inside them.</p>",
},
{
prepare: function(done) {
prepare(done) {
RED.editor.editFlow(RED.nodes.workspace(RED.workspaces.active()),"editor-tab-envProperties");
setTimeout(done,800);
},
@@ -57,7 +58,7 @@ export default {
element: ".node-input-env-container-row .red-ui-editableList-addButton",
direction: "top",
description: '<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: function() {
complete() {
$("#node-dialog-cancel").trigger("click");
}
},