From 0b858082c465a5f41965378c348d59a983c221d9 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Sun, 3 Jan 2021 21:46:28 +0100 Subject: [PATCH] Tutorials --- .../Schemas/Docs-Nodes/tutorial-step.json | 175 ++------------- .../Schemas/Docs-Nodes/tutorial-topic.json | 3 +- .../Schemas/Docs-Nodes/tutorial.json | 206 +++--------------- 3 files changed, 59 insertions(+), 325 deletions(-) diff --git a/Projects/Superalgos/Schemas/Docs-Nodes/tutorial-step.json b/Projects/Superalgos/Schemas/Docs-Nodes/tutorial-step.json index 26d4d2ede..d30f2eac7 100644 --- a/Projects/Superalgos/Schemas/Docs-Nodes/tutorial-step.json +++ b/Projects/Superalgos/Schemas/Docs-Nodes/tutorial-step.json @@ -10,7 +10,8 @@ }, { "style": "Title", - "text": "Configuring Tutorial Step" + "text": "Tutorial Step Configuration", + "updated": 1609706397520 }, { "style": "Note", @@ -21,19 +22,20 @@ "text": "In addition to the basic configuration, tutorial step nodes feature a large collection of resources that allows you to manipulate the user interface and actual nodes in many ways." }, { - "style": "Text", - "text": "

Navigation

" + "style": "Subtitle", + "text": "Navigation", + "updated": 1609706308531 }, { "style": "Text", "text": "Setting up a reference to any node in the workspace and using the below parameter makes the step load next to the referenced node." }, { - "style": "Text", + "style": "Javascript", "text": " \"positionAtReferenceParent\": true," }, { - "style": "Text", + "style": "Subtitle", "text": "

Messages

" }, { @@ -41,28 +43,14 @@ "text": "Setting up a reference to any node in the workspace and using the below parameters allows placing different types of messages on the referenced node." }, { - "style": "Text", - "text": " \"setErrorMessageReferenceParent\": \"This is a simulated error message!\"" + "style": "Javascript", + "text": "\"setErrorMessageReferenceParent\": \"This is a simulated error message!\"\n\"setInfoMessageReferenceParent\": \"This is a simulated info message!\"\n\"setValueReferenceParent\": \"This is a simulated value message!\"\n\"setPercentageReferenceParent\": \"This is a simulated progress message!\"\n\"setStatusReferenceParent\": \"This is a simulated status message!\"", + "updated": 1609706430970 }, { - "style": "Text", - "text": " \"setInfoMessageReferenceParent\": \"This is a simulated info message!\"" - }, - { - "style": "Text", - "text": " \"setValueReferenceParent\": \"This is a simulated value message!\"" - }, - { - "style": "Text", - "text": " \"setPercentageReferenceParent\": \"This is a simulated progress message!\"" - }, - { - "style": "Text", - "text": " \"setStatusReferenceParent\": \"This is a simulated status message!\"" - }, - { - "style": "Text", - "text": "

Centering and Zooming Into a Time Machine

" + "style": "Subtitle", + "text": "Centering and Zooming Into a Time Machine", + "updated": 1609706456866 }, { "style": "Text", @@ -81,40 +69,22 @@ "text": "The viewport zooms into the time machine." }, { - "style": "Text", + "style": "Javascript", "text": " \"repositionAtTimeMachineReferenceParent\": true," }, { - "style": "Text", - "text": "

Pressing Keys When on a Time Machine

" + "style": "Subtitle", + "text": "Pressing Keys When on a Time Machine", + "updated": 1609706492050 }, { "style": "Text", "text": "Setting up a reference to a time machine node in the charting space hierarchy and using the below parameters allows simulating the pressing of relevant key combinations when on a time machine." }, { - "style": "Text", - "text": " \"keyPressedTimeMachineReferenceParent\": {" - }, - { - "style": "Text", - "text": " \"shiftKey\": true," - }, - { - "style": "Text", - "text": " \"ctrlKey\": true," - }, - { - "style": "Text", - "text": " \"metaKey\": true," - }, - { - "style": "Text", - "text": " \"key\": \"A\"" - }, - { - "style": "Text", - "text": " }" + "style": "Javascript", + "text": "\"keyPressedTimeMachineReferenceParent\": {\n\"shiftKey\": true,\n\"ctrlKey\": true,\n\"metaKey\": true,\n\"key\": \"A\"\n}", + "updated": 1609706515897 }, { "style": "List", @@ -133,108 +103,9 @@ "text": "The example below changes the configuration of the three different scale nodes under a time machine. In this case, the time machine is the node referenced, the nodePath is the path of the node whose configuration must be changed relative to the referenceParent, and the properties parameter is the actual configuration to be set." }, { - "style": "Text", - "text": " \"batchConfigChangesReferenceParent\": [" - }, - { - "style": "Text", - "text": " {" - }, - { - "style": "Text", - "text": " \"nodePath\": \"referenceParent.timeScale\"," - }, - { - "style": "Text", - "text": " \"properties\": {" - }, - { - "style": "Text", - "text": " \"autoMinScale\": false," - }, - { - "style": "Text", - "text": " \"autoMaxScale\": false," - }, - { - "style": "Text", - "text": " \"fromDate\": \"2020-08-31T23:40:00.000Z\"," - }, - { - "style": "Text", - "text": " \"toDate\": \"2020-09-01T01:00:00.000Z\"" - }, - { - "style": "Text", - "text": " }" - }, - { - "style": "Text", - "text": " }," - }, - { - "style": "Text", - "text": " {" - }, - { - "style": "Text", - "text": " \"nodePath\": \"referenceParent.rateScale\"," - }, - { - "style": "Text", - "text": " \"properties\": {" - }, - { - "style": "Text", - "text": " \"autoMinScale\": false," - }, - { - "style": "Text", - "text": " \"autoMaxScale\": false," - }, - { - "style": "Text", - "text": " \"minValue\": 11400," - }, - { - "style": "Text", - "text": " \"maxValue\": 11800" - }, - { - "style": "Text", - "text": " }" - }, - { - "style": "Text", - "text": " }," - }, - { - "style": "Text", - "text": " {" - }, - { - "style": "Text", - "text": " \"nodePath\": \"referenceParent.timeFrameScale\"," - }, - { - "style": "Text", - "text": " \"properties\": {" - }, - { - "style": "Text", - "text": " \"value\": \"01-min\"" - }, - { - "style": "Text", - "text": " }" - }, - { - "style": "Text", - "text": " }" - }, - { - "style": "Text", - "text": " ]" + "style": "Javascript", + "text": "\"batchConfigChangesReferenceParent\": [\n{\n\"nodePath\": \"referenceParent.timeScale\",\n\"properties\": {\n\"autoMinScale\": false,\n\"autoMaxScale\": false,\n\"fromDate\": \"2020-08-31T23:40:00.000Z\",\n\"toDate\": \"2020-09-01T01:00:00.000Z\"\n}\n},\n{\n\"nodePath\": \"referenceParent.rateScale\",\n\"properties\": {\n\"autoMinScale\": false,\n\"autoMaxScale\": false,\n\"minValue\": 11400,\n\"maxValue\": 11800\n}\n},\n{\n\"nodePath\": \"referenceParent.timeFrameScale\",\n\"properties\": {\n\"value\": \"01-min\"\n}\n}\n]", + "updated": 1609706585341 } ] } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Nodes/tutorial-topic.json b/Projects/Superalgos/Schemas/Docs-Nodes/tutorial-topic.json index 2680603ae..d4d49f5bc 100644 --- a/Projects/Superalgos/Schemas/Docs-Nodes/tutorial-topic.json +++ b/Projects/Superalgos/Schemas/Docs-Nodes/tutorial-topic.json @@ -18,7 +18,8 @@ }, { "style": "Title", - "text": "Configuring Tutorial Topic" + "text": "Tutorial Topic Configuration", + "updated": 1609706732502 }, { "style": "Note", diff --git a/Projects/Superalgos/Schemas/Docs-Nodes/tutorial.json b/Projects/Superalgos/Schemas/Docs-Nodes/tutorial.json index 3d4c41ad2..24a017efb 100644 --- a/Projects/Superalgos/Schemas/Docs-Nodes/tutorial.json +++ b/Projects/Superalgos/Schemas/Docs-Nodes/tutorial.json @@ -9,7 +9,7 @@ "text": "Content" }, { - "style": "Callout", + "style": "Text", "text": "Nodes in the hierarchy may be arranged freely, meaning that there may be as many tutorial topics and tutorial steps as desired. In general terms, all types of nodes behave similarly in the sense that each node, independently of the precise type, represents a tutorial step in and of itself. There are subtle differences to be covered where appropriate." }, { @@ -18,7 +18,8 @@ }, { "style": "Title", - "text": "Configuring Tutorial" + "text": "Tutorial Configuration", + "updated": 1609704877058 }, { "style": "Text", @@ -29,7 +30,7 @@ "text": "The layout of the HTML page is fixed (CSS styles are fixed too) and is made out of a sequence of HTML elements, each of which may or may not be used, depending on whether the corresponding configuration parameter exists or not in the configuration." }, { - "style": "Success", + "style": "Callout", "text": "In other words, you may choose which elements of a potentially long list are used by filling the corresponding parameters with content or not." }, { @@ -37,172 +38,23 @@ "text": "The HTML page features a limited space and does not support scrolling. If too much information is defined in the configuration, the resulting content overflows the available space. There is no system-side control to deal with such overflows, so it's up to you to spread information across multiple steps and keep each page within its limits." }, { - "style": "Text", - "text": "{% include tip.html content=\"You may use HTML element tags and inline CSS as part of the content of parameters. Just consider that they shall be embedded in the fixed layout and their effectiveness may vary.\" %}" + "style": "Success", + "text": "You may use HTML element tags and inline CSS as part of the content of parameters. Just consider that they shall be embedded in the fixed layout and their effectiveness may vary.", + "updated": 1609704857821 }, { - "style": "Text", - "text": "Select Configure on the menu to access the configuration." + "style": "Success", + "text": "Configuration items are listed in the order of appearance in the HTML layout, that is, the sequence of HTML elements mentioned earlier.", + "updated": 1609704957111 }, { - "style": "Text", - "text": "{" - }, - { - "style": "Text", - "text": " \"title\": \"\"," - }, - { - "style": "Text", - "text": " \"summary\": \"\"," - }, - { - "style": "Text", - "text": " \"subTitle\": \"\"," - }, - { - "style": "Text", - "text": " \"gif\": \"\"," - }, - { - "style": "Text", - "text": " \"image\": \"\"," - }, - { - "style": "Text", - "text": " \"definition\": \"\"," - }, - { - "style": "Text", - "text": " \"bulletListIntro\": \"\"," - }, - { - "style": "Text", - "text": " \"bulletArray\": [" - }, - { - "style": "Text", - "text": " [" - }, - { - "style": "Text", - "text": " \"\"," - }, - { - "style": "Text", - "text": " \"\"" - }, - { - "style": "Text", - "text": " ]," - }, - { - "style": "Text", - "text": " [" - }, - { - "style": "Text", - "text": " \"\"," - }, - { - "style": "Text", - "text": " \"\"" - }, - { - "style": "Text", - "text": " ]," - }, - { - "style": "Text", - "text": " [" - }, - { - "style": "Text", - "text": " \"\"," - }, - { - "style": "Text", - "text": " \"\"" - }, - { - "style": "Text", - "text": " ]" - }, - { - "style": "Text", - "text": " ]," - }, - { - "style": "Text", - "text": " \"paragraph1\": \"\"," - }, - { - "style": "Text", - "text": " \"callOut\": \"\"," - }, - { - "style": "Text", - "text": " \"externalLink\": [" - }, - { - "style": "Text", - "text": " \"\"," - }, - { - "style": "Text", - "text": " \"\"" - }, - { - "style": "Text", - "text": " ]," - }, - { - "style": "Text", - "text": " \"paragraph2\": \"\"," - }, - { - "style": "Text", - "text": " \"note\": \"\"," - }, - { - "style": "Text", - "text": " \"tip\": \"\"," - }, - { - "style": "Text", - "text": " \"important\": \"\"," - }, - { - "style": "Text", - "text": " \"warning\": \"\"," - }, - { - "style": "Text", - "text": " \"position\": \"\"," - }, - { - "style": "Text", - "text": " \"slider\": \"toTop\"," - }, - { - "style": "Text", - "text": " \"pressButton\": \"\"," - }, - { - "style": "Text", - "text": " \"documentationURL\": \"\"" - }, - { - "style": "Text", - "text": "}" - }, - { - "style": "Text", - "text": "{% include tip.html content=\"Configuration items are listed in the order of appearance in the HTML layout, that is, the sequence of HTML elements mentioned earlier.\" %}" + "style": "Subtitle", + "text": "Properties", + "updated": 1609705050135 }, { "style": "List", - "text": "title is the

tag, the main title of the page." + "text": "title is the main title of the page." }, { "style": "List", @@ -210,7 +62,8 @@ }, { "style": "List", - "text": "subTitle is the

tag, the secondary title of the page." + "text": "subTitle is the secondary title of the page.", + "updated": 1609705068885 }, { "style": "List", @@ -222,7 +75,8 @@ }, { "style": "List", - "text": "definition is a block of text in bold style ( HTML tag)." + "text": "definition is a block of text in bold style.", + "updated": 1609705317162 }, { "style": "List", @@ -242,7 +96,8 @@ }, { "style": "List", - "text": "externalLink allows you to set up a link that opens in a new tab at the end of the callOut block. Enter the URL in the first field and the anchor text in the second." + "text": "externalLink allows you to set up a link that opens in a new tab at the end of the callOut block. Enter the URL in the first field and the anchor text in the second. You may also use HTML to include links anywhere else.", + "updated": 1609705400186 }, { "style": "List", @@ -250,27 +105,33 @@ }, { "style": "List", - "text": "note is a block of text within a blue box preceded with the string Note:." + "text": "note is a block of text within a blue box preceded with the string Note.", + "updated": 1609705469745 }, { "style": "List", - "text": "tip is a block of text within a green box preceded with the string Tip:." + "text": "tip is a block of text within a green box preceded with the string Tip.", + "updated": 1609705475148 }, { "style": "List", - "text": "important is a block of text within a yellow box preceded with the string Important:." + "text": "important is a block of text within a yellow box preceded with the string Important.", + "updated": 1609705484520 }, { "style": "List", - "text": "warning is a block of text within a red box preceded with the string Warning:." + "text": "warning is a block of text within a red box preceded with the string Warning.", + "updated": 1609705492685 }, { "style": "List", - "text": "position determines the position of the floating HTML. There are three alternatives: Left, Right, or leave the field empty to position the page in the center of the screen." + "text": "position determines the position of the floating HTML. There are three alternatives... Left, Right, or leave the field empty to position the page in the center of the screen.", + "updated": 1609705546655 }, { "style": "List", - "text": "slider determines the position of the horizontal slider. There are four alternatives: toTop, Right, or leave the field empty to position the page in the center of the screen." + "text": "slider determines the position of the horizontal slider. There are four alternatives... toTop, Right, or leave the field empty to position the page in the center of the screen.", + "updated": 1609705629835 }, { "style": "List", @@ -278,7 +139,8 @@ }, { "style": "List", - "text": "documentationURL opens the Superalgos Documentation in the URL you configure. Use the complete URL, including the https:// protocol header." + "text": "documentationURL: opens the Superalgos Documentation in the URL you configure. Use the complete URL, including the https:// protocol header.", + "updated": 1609705696017 } ] } \ No newline at end of file