This repository is used for applying a generic approach of Joyride component for app start pages. The repo contains JSON files for the apps or modules we need to add the joy ride functionality inside. If you make any commits please check I your editor(for example Visual Studio Code) shows any warning regarding the JSON files.
- Git
- Visual Studio Code
- With the following extensions:
.
+-- src
| +-- routes.json
| +-- product1
| | +-- joy-ride-training.json
| | +-- joy-ride-documentManagment.json
| +-- product2
| | +-- joy-ride-tasks.json
Products are represented as folders and should contain one or more tours.
IMPORTANT Each tour requires an unique ID. Use the Insert GUID Extension for this. Versions should only be incremented when the tour content is updated and not when spelling mistakes are corrected, because after each version increment the tour will be shown the user again. Keep $schema unchanged!
Those files represent the tour itself. Please start qmbase/template.json as template for any tour and then just add your steps. To add a new step just look how the other steps are defined and add the step behind the last one by adding a comma and copy the new step after the comment.
- id: accepts the number of the step.
- title: the title of the step in HTML -- de: German version -- en: English version
- content: the content of the step in HTML -- de: German version -- en: English version
- target: A CSS selector allows selecting an HTML element where the step will be displayed
- placement: Where at the target the step will be shown. An editor with JSON schema support will list all currently available options for this step.
Is an index for all tours which should be activated.
Please ensure the names and ids match the one specified in the tours.
- id: Must be same id as the referenced tour
- version: Must be the same version as the referenced tour
- product: The name of the product folder where the tour is stored
- file: The filename of the tour in the product folder
- url: The URL Pattern(REGEX) checks when the tour should be displayed. In most cases this one is suitable:
^(\\/path1\\/path2})as It just checks If the URL starts with/path1/path2and will also work forpath1/path2/path3for example.
- Start: <>
- End: </>
- <>Content</>
- Tag References: https://www.w3schools.com/html/default.asp
<b>and this is bold text</b><- This will be bold<b>Bold<p>Paragraph<a href=‘https://google.de’>Link<i>italic<img src=‘https://www.qmbase.com/wp-content/uploads/2016/07/Left_logo_qmBase_w298px.png’/>Image<span role='img' aria-label='Konfetti‘>❤</span><- any emoticons