-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc8oProject.yaml
121 lines (100 loc) · 4.45 KB
/
c8oProject.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
↑convertigo: 8.0.0.m006
↓lib_ProductTour [core.Project]:
comment: |
'This is the product Tour library for Convertigo projects. use this library to include a "product Tour" functionality to your apps.
## Symbols
The Tour can optionally be translated using weglot services. If you want to enables this, configure this symbol :
```
lib_producttour.weglot_api_key=<weglot api key>
```
You can find the Weglot api key in the weglot dashboard (https://dashboard.weglot.com)
## Setting up
You will have to invoke the SharedAction **SetupTour** in the AppInit Event of your app. This will setup the tour by reading its configuration from a JSON file''s path held in the **StepsPath** SharedVarible.
You will also have to add your custom **introjs-custom.css** file in assets to customize the Tour look & feel.
Here is an example of introjs-custom.css :
```
.introjs-tooltip-header {
color: #2f2f2f;
}
.introjs-tooltiptext {
color: #2f2f2f;
}
.introjs-bullets {
color: #2f2f2f;
}
.introjs-progress {
color: #2f2f2f;
}
.introjs-arrow {
color: #2f2f2f;
}
.introjs-tooltipbuttons {
color: #2f2f2f;
}
.introjs-button {
color: #2f2f2f !important;
}
.introjs-overlay {
pointer-events: none !important;
}
.introjs-helperLayer {
pointer-events: none !important;
}
```
## Intro.json file
All the tour information is held in a intro.json file usually held in assets/intro.json . This files holds the Tour Configuration options you can find in intro.js configuration doc : [https://introjs.com/docs/tour/options] and the Tour Steps.
These are very similar to the intro.js documentation [https://introjs.com/docs/tour/examples/json-config] but holds a slightly different information. Here is an example of intro.js :
```
{
"showProgress": true,
"dontShowAgain": true,
"steps":[
{
"title": "My product tour !",
"class":".class1729873494929",
"intro": "This is a sample step info1",
"url": "/path-to-xfirst"
},
{
"title": "My product tour !",
"class": ".class1729873481009",
"intro": "This is a sample step info2",
"url": "/path-to-page1"
},
{
"title": "My product tour !",
"class": ".class1729873481018",
"intro": "This is a sample step info3",
"url": "/path-to-page1"
}
]
}
```
## lib_ProductTour additional attributes
The library adds some step attributes to the standard intro.js attributes.
* **class** attribute must contain the .classXXXXXXX of a Convertigo DisplayObject it can also contain a rootSelector::shadowDomSelector if the element is in the shadow dom
* **url** attribute is the Page url where this Item must be activated
* **hideNext** attribute true hides the next button on specific step
* **hidePrevious** attribute true hides the previous button on specific step
* **autoNext** attribute true automatically triggers next step when user interacts with the target
The ProductTour Engine will ensure that Items intended for a given page will not be displayed on other pages.
Also the ProductTour will allow user interaction and handle page change. Each time a page changes, the Tour will select the items that can be displayed on this page. The library also handles dynamically added elements such as modals, alerts and directives.
'
contextTimeout: 59
corsOrigin: =Origin
httpSessionTimeout: 60
version: 1.0.2
↓TourStepsConnector [connectors.HttpConnector]: 🗏 connectors/TourStepsConnector.yaml
↓Weglot [connectors.HttpConnector]: 🗏 connectors/Weglot.yaml
↓TranslateTour [sequences.GenericSequence]: 🗏 sequences/TranslateTour.yaml
↓Project_reference [references.ProjectSchemaReference]:
comment: ngx builder template
projectName: mobilebuilder_tpl_8_3_0_ngx=https://github.com/convertigo/c8oprj-mobilebuilder-tpl/archive/mobilebuilder_tpl_8_3_0_ngx.zip
↓Application [core.MobileApplication]:
comment: Describes the mobile application global properties
splashRemoveMode: beforeUpdate
↓Android [mobileplatforms.Android]:
comment: Android platform
↓iOS [mobileplatforms.IOs]:
comment: iOS platform
↓NgxApp [ngx.components.ApplicationComponent]: 🗏 mobileNgxApp.yaml