diff --git a/AppSchema.json b/AppSchema.json index cd2eab20e..d71cf8078 100644 --- a/AppSchema.json +++ b/AppSchema.json @@ -14122,6 +14122,21 @@ "relatedUiObject": "Tutorial Step", "actionFunction": "payload.onMenuItemClick" }, + { + "action": "Add UI Object", + "label": "Add Tutorial Topic", + "relatedUiObject": "Tutorial Topic", + "actionFunction": "payload.onMenuItemClick" + }, + { + "action": "Reset Tutorial Progress", + "askConfirmation": true, + "confirmationLabel": "Confirm to Reset", + "label": "Reset Tutorial Progress", + "iconPathOn": "shapes-polygon-body", + "iconPathOff": "shapes-polygon-body", + "actionFunction": "payload.onMenuItemClick" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -14136,13 +14151,13 @@ "config": true }, "initialValues": { - "config": "{ \n}" + "config": "{ \n\"title\": \"\",\n \"summary\": \"\",\n \"subTitle\": \"\",\n \"image\": \"\",\n \"definition\": \"\",\n \"bulletListIntro\": \"\",\n \"bulletArray\": \n[\n [\"\", \"\"], \n[\"\", \"\"], \n[\"\", \"\"] \n],\n \"paragraph1\": \"\",\n \"callOut\": \"\",\n \"externalLink\": [\"\", \"\"],\n \"paragraph2\": \"\",\n \"note\": \"\",\n \"tip\": \"\",\n \"important\": \"\",\n \"warning\": \"\", \n \"position\": \"\",\n \"documentationURL\": \"\" \n}" }, "isTitleAllwaysVisible": true, "isHierarchyHead": true, "addLeftIcons": true, "level": 0, - "icon": "approve", + "icon": "us-dollar", "propertyNameAtParent": "tutorials", "properties": [ { @@ -14150,16 +14165,28 @@ "type": "array", "childType": "Tutorial Step", "autoAdd": false + }, + { + "name": "tutorialTopics", + "type": "array", + "childType": "Tutorial Topic", + "autoAdd": false } ] }, { - "type": "Tutorial Step", + "type": "Tutorial Topic", "menuItems": [ { - "action": "Play Tutorial Step", + "action": "Play Tutorial Topic", "label": "Play", - "relatedUiObject": "Tutorial", + "relatedUiObject": "Tutorial Topic", + "actionFunction": "payload.onMenuItemClick" + }, + { + "action": "Resume Tutorial Topic", + "label": "Resume", + "relatedUiObject": "Tutorial Topic", "actionFunction": "payload.onMenuItemClick" }, { @@ -14175,6 +14202,12 @@ "relatedUiObject": "Tutorial Step", "actionFunction": "payload.onMenuItemClick" }, + { + "action": "Add UI Object", + "label": "Add Tutorial Topic", + "relatedUiObject": "Tutorial Topic", + "actionFunction": "payload.onMenuItemClick" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -14189,22 +14222,82 @@ "config": true }, "initialValues": { - "config": "{ \n\"title\": \"\",\n \"summary\": \"\",\n \"subTitle\": \"\",\n \"image\": \"\",\n \"definition\": \"\",\n \"bulletPointIntro\": \"\",\n \"bulletArray\": \n[\n [\"\", \"\"], \n[\"\", \"\"], \n[\"\", \"\"] \n],\n \"paragraph1\": \"\",\n \"callOut\": \"\",\n \"paragraph2\": \"\",\n \"note\": \"\",\n \"tip\": \"\",\n \"important\": \"\",\n \"note\": \"\" \n}" + "config": "{ \n\"title\": \"\",\n \"summary\": \"\",\n \"image\": \"\",\n \"definition\": \"\",\n \"bulletListIntro\": \"\",\n \"bulletArray\": \n[\n [\"\", \"\"], \n[\"\", \"\"], \n[\"\", \"\"] \n],\n \"paragraph1\": \"\",\n \"callOut\": \"\",\n \"externalLink\": [\"\", \"\"],\n \"paragraph2\": \"\",\n \"note\": \"\",\n \"tip\": \"\",\n \"important\": \"\",\n \"warning\": \"\", \n \"position\": \"\",\n \"documentationURL\": \"\" \n}" }, "referenceAttachesTo": { "compatibleTypes": "->*Any Node*->" }, + "chainAttachesTo": { + "compatibleTypes": "->Tutorial->" + }, "addLeftIcons": true, "level": 1, "icon": "cardano", - "propertyNameAtParent": "tutorials", + "propertyNameAtParent": "tutorialTopics", "properties": [ { "name": "tutorialSteps", "type": "array", "childType": "Tutorial Step", "autoAdd": false + }, + { + "name": "tutorialTopics", + "type": "array", + "childType": "Tutorial Topic", + "autoAdd": false } ] + }, + { + "type": "Tutorial Step", + "menuItems": [ + { + "action": "Play Tutorial Step", + "label": "Play", + "relatedUiObject": "Tutorial", + "actionFunction": "payload.onMenuItemClick" + }, + { + "action": "Resume Tutorial Step", + "label": "Resume", + "relatedUiObject": "Tutorial", + "actionFunction": "payload.onMenuItemClick" + }, + { + "action": "Configure", + "actionFunction": "uiObject.configEditor.activate", + "label": "Configure", + "iconPathOn": "html", + "iconPathOff": "html" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete", + "iconPathOff": "delete", + "actionFunction": "payload.onMenuItemClick" + } + ], + "editors": { + "config": true + }, + "initialValues": { + "config": "{ \n \"subTitle\": \"\",\n \"image\": \"\",\n \"definition\": \"\",\n \"bulletListIntro\": \"\",\n \"bulletArray\": \n[\n [\"\", \"\"], \n[\"\", \"\"], \n[\"\", \"\"] \n],\n \"paragraph1\": \"\",\n \"callOut\": \"\",\n \"externalLink\": [\"\", \"\"],\n \"paragraph2\": \"\",\n \"note\": \"\",\n \"tip\": \"\",\n \"important\": \"\",\n \"warning\": \"\", \n \"position\": \"\",\n \"documentationURL\": \"\" \n}" + }, + "referenceAttachesTo": { + "compatibleTypes": "->*Any Node*->" + }, + "chainAttachesTo": { + "compatibleTypes": "->Tutorial->Tutorial Topic->" + }, + "addLeftIcons": true, + "level": 2, + "icon": "tron", + "propertyNameAtParent": "tutorialSteps", + "properties": [ + ] } ] \ No newline at end of file diff --git a/BackendServers/WebServer/AppLoader.js b/BackendServers/WebServer/AppLoader.js index bffa4527a..d34a37a99 100644 --- a/BackendServers/WebServer/AppLoader.js +++ b/BackendServers/WebServer/AppLoader.js @@ -90,6 +90,7 @@ function newAppLoader() { 'Spaces/DesignSpace.js', 'Spaces/SideSpace.js', 'Spaces/DocSpace.js', + 'Spaces/TutorialSpace.js', 'Files/SingleFile.js', 'Files/FileCloud.js', diff --git a/BackendServers/WebServer/index.html b/BackendServers/WebServer/index.html index f074ec0b4..30027805f 100644 --- a/BackendServers/WebServer/index.html +++ b/BackendServers/WebServer/index.html @@ -41,48 +41,30 @@