Skip to content

Commit b9de97a

Browse files
committed
Bring back snippets without filetype info in their id's.
1 parent 2bd6b70 commit b9de97a

8 files changed

+42
-42
lines changed

Diff for: tests/app/snippets/gestures.component.html

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
<StackLayout orientation="vertical">
2-
<!-- >> ng-tap-gesture-html -->
2+
<!-- >> ng-tap-gesture -->
33
<Label text="Tap here" (tap)="onTap($event)"></Label>
4-
<!-- << ng-tap-gesture-html -->
4+
<!-- << ng-tap-gesture -->
55

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

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

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

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

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

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

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

Diff for: tests/app/snippets/gestures.component.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -14,52 +14,52 @@ import {
1414
})
1515
export class GestureComponent {
1616

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

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

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

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

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

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

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

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

60-
// >> ng-touch-gesture-ts
60+
// >> ng-touch-gesture
6161
onTouch(args: TouchGestureEventData) {
6262
console.log("Touch point: [" + args.getX() + ", " + args.getY() + "] activePointers: " + args.getActivePointers().length);
6363
}
64-
// << ng-touch-gesture-ts
64+
// << ng-touch-gesture
6565
}

Diff for: tests/app/snippets/icon-font.component.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/* >> icon-font-sample-css */
1+
/* >> icon-font-sample */
22
.icon {
33
font-family: 'icomoon';
44
font-size: 48;
55
}
6-
/* << icon-font-sample-css */
6+
/* << icon-font-sample */

Diff for: tests/app/snippets/icon-font.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- >> icon-font-sample-html -->
1+
<!-- >> icon-font-sample -->
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-html -->
12+
<!-- << icon-font-sample -->

Diff for: tests/app/snippets/icon-font.component.ts

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

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

Diff for: tests/app/snippets/layouts.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@
116116
</StackLayout>
117117
<!-- << stack-layout-vertical -->
118118

119-
<!-- >> stack-layout-horizontal-html -->
119+
<!-- >> stack-layout-horizontal -->
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-html -->
126+
<!-- << stack-layout-horizontal -->
127127

128128
<!-- >> stack-layout-vertical-align -->
129129
<StackLayout orientation="vertical" width="210" height="210" backgroundColor="lightgray">

Diff for: tests/app/snippets/navigation/navigation-common.css

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

Diff for: tests/app/snippets/navigation/navigation-common.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// >> router-content-components-ts
1+
// >> router-content-components
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-ts
26+
// << router-content-components
2727

2828

2929
// >> router-location-back

0 commit comments

Comments
 (0)