Skip to content

Commit 2bd6b70

Browse files
committed
Resolve duplicate doc snippet ids.
1 parent 99394b3 commit 2bd6b70

8 files changed

+47
-47
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
<StackLayout orientation="vertical">
2-
<!-- >> tap-gesture -->
2+
<!-- >> ng-tap-gesture-html -->
33
<Label text="Tap here" (tap)="onTap($event)"></Label>
4-
<!-- << tap-gesture -->
4+
<!-- << ng-tap-gesture-html -->
55

6-
<!-- >> double-tap-gesture -->
6+
<!-- >> ng-double-tap-gesture-html -->
77
<Label text="Double tap here" (doubleTap)="onDoubleTap($event)"></Label>
8-
<!-- << double-tap-gesture -->
8+
<!-- << ng-double-tap-gesture-html -->
99

10-
<!-- >> long-press-gesture -->
10+
<!-- >> ng-long-press-gesture-html -->
1111
<Label text="Long press here" (longPress)="onLongPress($event)"></Label>
12-
<!-- << long-press-gesture -->
12+
<!-- << ng-long-press-gesture-html -->
1313

14-
<!-- >> swipe-gesture -->
14+
<!-- >> ng-swipe-gesture-html -->
1515
<Label text="Swipe here" (swipe)="onSwipe($event)"></Label>
16-
<!-- << swipe-gesture -->
16+
<!-- << ng-swipe-gesture-html -->
1717

18-
<!-- >> pan-gesture -->
18+
<!-- >> ng-pan-gesture-html -->
1919
<Label text="Pan here" (pan)="onPan($event)"></Label>
20-
<!-- << pan-gesture -->
20+
<!-- << ng-pan-gesture-html -->
2121

22-
<!-- >> pinch-gesture -->
22+
<!-- >> ng-pinch-gesture-html -->
2323
<Label text="Pinch here" (pinch)="onPinch($event)"></Label>
24-
<!-- << pinch-gesture -->
24+
<!-- << ng-pinch-gesture-html -->
2525

26-
<!-- >> rotate-gesture -->
26+
<!-- >> ng-rotate-gesture-html -->
2727
<Label text="Rotate here" (rotation)="onRotate($event)"></Label>
28-
<!-- << rotate-gesture -->
28+
<!-- << ng-rotate-gesture-html -->
2929

30-
<!-- >> touch-gesture -->
30+
<!-- >> ng-touch-gesture-html -->
3131
<Label text="Touch here" (touch)="onTouch($event)"></Label>
32-
<!-- << touch-gesture -->
33-
</StackLayout>
32+
<!-- << ng-touch-gesture-html -->
33+
</StackLayout>

tests/app/snippets/gestures.component.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,52 +14,52 @@ import {
1414
})
1515
export class GestureComponent {
1616

17-
// >> tap-gesture
17+
// >> ng-tap-gesture-ts
1818
onTap(args: GestureEventData) {
1919
console.log("Tap!")
2020
}
21-
// << tap-gesture
21+
// << ng-tap-gesture-ts
2222

23-
// >> double-tap-gesture
23+
// >> ng-double-tap-gesture
2424
onDoubleTap(args: GestureEventData) {
2525
console.log("DoubleTap!")
2626

2727
}
28-
// << double-tap-gesture
28+
// << ng-double-tap-gesture-ts
2929

30-
// >> long-press-gesture
30+
// >> ng-long-press-gesture-ts
3131
onLongPress(args: GestureEventData) {
3232
console.log("LongPress!")
3333
}
34-
// << long-press-gesture
34+
// << ng-long-press-gesture-ts
3535

36-
// >> swipe-gesture
36+
// >> ng-swipe-gesture
3737
onSwipe(args: SwipeGestureEventData) {
3838
console.log("Swipe Direction: " + args.direction);
3939
}
40-
// << swipe-gesture
40+
// << ng-swipe-gesture-ts
4141

42-
// >> pan-gesture
42+
// >> ng-pan-gesture-ts
4343
onPan(args: PanGestureEventData) {
4444
console.log("Pan delta: [" + args.deltaX + ", " + args.deltaY + "] state: " + args.state);
4545
}
46-
// << pan-gesture
46+
// << ng-pan-gesture-ts
4747

48-
// >> pinch-gesture
48+
// >> ng-pinch-gesture-ts
4949
onPinch(args: PinchGestureEventData) {
5050
console.log("Pinch scale: " + args.scale + " state: " + args.state);
5151
}
52-
// << pinch-gesture
52+
// << ng-pinch-gesture-ts
5353

54-
// >> rotate-gesture
54+
// >> ng-rotate-gesture-ts
5555
onRotate(args: RotationGestureEventData) {
5656
console.log("Rotate angle: " + args.rotation + " state: " + args.state);
5757
}
58-
// << rotate-gesture
58+
// << ng-rotate-gesture-ts
5959

60-
// >> touch-gesture
60+
// >> ng-touch-gesture-ts
6161
onTouch(args: TouchGestureEventData) {
6262
console.log("Touch point: [" + args.getX() + ", " + args.getY() + "] activePointers: " + args.getActivePointers().length);
6363
}
64-
// << touch-gesture
64+
// << ng-touch-gesture-ts
6565
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/* >> icon-font-sample */
1+
/* >> icon-font-sample-css */
22
.icon {
33
font-family: 'icomoon';
44
font-size: 48;
55
}
6-
/* << icon-font-sample */
6+
/* << icon-font-sample-css */

tests/app/snippets/icon-font.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- >> icon-font-sample -->
1+
<!-- >> icon-font-sample-html -->
22
<GridLayout>
33
<ListView [items]="glyphs">
44
<template let-item="item">
@@ -9,4 +9,4 @@
99
</template>
1010
</ListView>
1111
</GridLayout>
12-
<!-- << icon-font-sample -->
12+
<!-- << icon-font-sample-html -->

tests/app/snippets/icon-font.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component} from "@angular/core";
22

3-
// >> icon-font-sample
3+
// >> icon-font-sample-ts
44
@Component({
55
// >> (hide)
66
selector: "icon-font",
@@ -21,4 +21,4 @@ export class IconFontComponent {
2121
}
2222
}
2323
}
24-
// << icon-font-sample
24+
// << icon-font-sample-ts

tests/app/snippets/layouts.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@
116116
</StackLayout>
117117
<!-- << stack-layout-vertical -->
118118

119-
<!-- >> stack-layout-horizontal -->
119+
<!-- >> stack-layout-horizontal-html -->
120120
<StackLayout orientation="vertical" width="210" height="210" backgroundColor="lightgray">
121121
<Label text="Label 1" width="50" height="50" backgroundColor="red"></Label>
122122
<Label text="Label 2" width="50" height="50" backgroundColor="green"></Label>
123123
<Label text="Label 3" width="50" height="50" backgroundColor="blue"></Label>
124124
<Label text="Label 4" width="50" height="50" backgroundColor="yellow"></Label>
125125
</StackLayout>
126-
<!-- << stack-layout-horizontal -->
126+
<!-- << stack-layout-horizontal-html -->
127127

128128
<!-- >> stack-layout-vertical-align -->
129129
<StackLayout orientation="vertical" width="210" height="210" backgroundColor="lightgray">
@@ -172,4 +172,4 @@
172172
</WrapLayout>
173173
<!-- << wrap-layout-item -->
174174
</StackLayout>
175-
</ScrollView>
175+
</ScrollView>

tests/app/snippets/navigation/navigation-common.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* >> router-content-components */
1+
/* >> router-content-components-css */
22
.title {
33
font-size: 30;
44
margin: 16;
@@ -14,4 +14,4 @@
1414
.link {
1515
margin: 10 30;
1616
}
17-
/* << router-content-components */
17+
/* << router-content-components-css */

tests/app/snippets/navigation/navigation-common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// >> router-content-components
1+
// >> router-content-components-ts
22
import {Component} from '@angular/core';
33
import {NS_ROUTER_DIRECTIVES} from 'nativescript-angular/router';
44

@@ -23,7 +23,7 @@ export class FirstComponent { }
2323
</StackLayout>`
2424
})
2525
export class SecondComponent { }
26-
// << router-content-components
26+
// << router-content-components-ts
2727

2828

2929
// >> router-location-back
@@ -42,4 +42,4 @@ export class MyComponent {
4242
this.location.back();
4343
}
4444
}
45-
// << router-location-back
45+
// << router-location-back

0 commit comments

Comments
 (0)