|
5 | 5 | <ActionBar title="Mixpanel plugin demo"/>
|
6 | 6 | </Page.actionBar>
|
7 | 7 | <ScrollView orientation="vertical">
|
8 |
| - <GridLayout rows="auto, 15, auto, 15, auto, 15, auto, 15, auto, 15, auto, 15, auto, *"> |
| 8 | + <GridLayout rows="auto, 15, auto, 15, auto, 15, auto, 15, auto, 15, auto, 15, auto, *" style="background-color: #f6f6f6;"> |
9 | 9 | <Label row="0" text="{{'Using token: ' + token}}" class="t-10 text-center" style="color: green;" visibility="{{ token !== '' ? 'visible' : 'collapsed' }}" textWrap="true"/>
|
10 | 10 | <Label row="0" text="No token has been set, please set token in constants.ts" class="t-10 font-weight-bold text-center" style="color: red;" visibility="{{ token === '' ? 'visible' : 'collapsed' }}" textWrap="true"/>
|
11 | 11 |
|
12 | 12 | <GridLayout row="2" rows="auto, auto, auto, auto">
|
13 | 13 | <Label row="0" text="User Identity" class="h3 text-center" textWrap="true"/>
|
14 |
| - <Button row="1" text="Identify" tap="{{ onIdentifyPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
15 |
| - <Button row="2" text="Get Distinct ID" tap="{{ onGetDistinctIdPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
16 |
| - <Button row="3" text="Alias" tap="{{ onAliasPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
| 14 | + <Button row="1" text="Identify" tap="{{ onIdentifyPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
| 15 | + <Button row="2" text="Get Distinct ID" tap="{{ onGetDistinctIdPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
| 16 | + <Button row="3" text="Alias" tap="{{ onAliasPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
17 | 17 | </GridLayout>
|
18 | 18 |
|
19 | 19 | <GridLayout row="4" rows="auto, auto, auto, auto">
|
20 | 20 | <Label row="0" text="Super Properties" class="h3 text-center" textWrap="true"/>
|
21 |
| - <Button row="1" text="Register Super Properties" tap="{{ onRegisterSuperPropertiesPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
22 |
| - <Button row="2" text="Clear Super Property" tap="{{ onUnregisterSuperPropertyPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
23 |
| - <Button row="3" text="Clear All Super Properties" tap="{{ onClearPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
| 21 | + <Button row="1" text="Register Super Properties" tap="{{ onRegisterSuperPropertiesPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
| 22 | + <Button row="2" text="Clear Super Property" tap="{{ onUnregisterSuperPropertyPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
| 23 | + <Button row="3" text="Clear All Super Properties" tap="{{ onClearPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
24 | 24 | </GridLayout>
|
25 | 25 |
|
26 | 26 | <GridLayout row="6" rows="auto, auto, auto">
|
27 | 27 | <Label row="0" text="Events" class="h3 text-center" textWrap="true"/>
|
28 |
| - <Button row="1" text="Track" tap="{{ onTrackPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
29 |
| - <Button row="2" text="Time Event" tap="{{ onTimeEventPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
| 28 | + <Button row="1" text="Track" tap="{{ onTrackPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
| 29 | + <Button row="2" text="Time Event" tap="{{ onTimeEventPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
30 | 30 | </GridLayout>
|
31 | 31 |
|
32 | 32 | <GridLayout row="8" rows="auto, auto, auto, auto">
|
33 | 33 | <Label row="0" text="People" class="h3 text-center" textWrap="true"/>
|
34 |
| - <Button row="1" text="Get People" tap="{{ onPeopleGetPeoplePress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
35 |
| - <Button row="2" text="Identify" tap="{{ onPeopleIdentifyPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
36 |
| - <Button row="3" text="Set Properties" tap="{{ onPeopleSetPropertiesPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
| 34 | + <Button row="1" text="Get People" tap="{{ onPeopleGetPeoplePress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
| 35 | + <Button row="2" text="Identify" tap="{{ onPeopleIdentifyPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
| 36 | + <Button row="3" text="Set Properties" tap="{{ onPeopleSetPropertiesPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
37 | 37 | </GridLayout>
|
38 | 38 |
|
39 | 39 | <GridLayout row="10" rows="auto, auto, auto, auto, auto">
|
40 | 40 | <Label row="0" text="Other" class="h3 text-center" textWrap="true"/>
|
41 |
| - <Button row="1" text="Opt Out of Tracking" tap="{{ onOptOutPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
42 |
| - <Button row="2" text="Opt In to Tracking" tap="{{ onOptInPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
43 |
| - <Button row="3" text="Flush" tap="{{ onFlushPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
44 |
| - <Button row="4" text="Reset" tap="{{ onResetPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
| 41 | + <Button row="1" text="Opt Out of Tracking" tap="{{ onOptOutPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
| 42 | + <Button row="2" text="Opt In to Tracking" tap="{{ onOptInPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
| 43 | + <Button row="3" text="Flush" tap="{{ onFlushPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
| 44 | + <Button row="4" text="Reset" tap="{{ onResetPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
45 | 45 | </GridLayout>
|
46 | 46 |
|
47 | 47 | <GridLayout row="12" rows="auto, auto">
|
48 | 48 | <Label row="0" text="Logger" class="h3 text-center" textWrap="true"/>
|
49 |
| - <Button row="1" text="Use Custom Logger" tap="{{ onUserCustomLoggerPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded-sm"></Button> |
| 49 | + <Button row="1" text="Use Custom Logger" tap="{{ onUserCustomLoggerPress }}" isEnabled="{{ testsEnabled }}" class="-outline -rounded"></Button> |
50 | 50 | </GridLayout>
|
51 | 51 | </GridLayout>
|
52 | 52 | </ScrollView>
|
|
0 commit comments