1
1
{
2
- "{NSVue} app import" : {
3
- "prefix" : " nsapp" ,
4
- "body" : [
5
- " import * as app from 'tns-core-modules/application';" ,
2
+ "{NSVue} app import" : {
3
+ "prefix" : " nsapp" ,
4
+ "body" : [
5
+ " import * as app from 'tns-core-modules/application';" ,
6
6
" $0"
7
- ],
8
- "description" : " isIOS import sentence"
9
- },
7
+ ],
8
+ "description" : " 🔩 Code Snippets \n\n isIOS import sentence\n\n "
9
+ },
10
10
"{NSVue} Vue instance" : {
11
- "prefix" : " nsvue" ,
12
- "body" : [
13
- " export default {" ,
11
+ "prefix" : " nsvue" ,
12
+ "body" : [
13
+ " export default {" ,
14
14
" data () {" ,
15
15
" return {};" ,
16
16
" }," ,
17
17
" methods: {" ,
18
18
" }" ,
19
19
" };"
20
- ],
21
- "description" : " Vue instance object"
22
- },
23
- "{NSVue} HTTP fetch" : {
24
- "prefix" : " nsfetch" ,
25
- "body" : [
26
- " import { fetch } from 'tns-core-modules/fetch';" ,
27
- " fetch('$1')" ,
20
+ ],
21
+ "description" : " 🔩 Code Snippets \n\n Vue instance object\n\n "
22
+ },
23
+ "{NSVue} HTTP fetch" : {
24
+ "prefix" : " nsfetch" ,
25
+ "body" : [
26
+ " import { fetch } from 'tns-core-modules/fetch';" ,
27
+ " fetch('$1')" ,
28
28
" .then((response) => {" ,
29
29
" })" ,
30
30
" .catch((error) => {" ,
31
31
" console.error(error);" ,
32
32
" });"
33
- ],
34
- "description" : " Fetch sentence for getting results"
35
- },
36
- "{NSVue} isAndroid import" : {
37
- "prefix" : " nsisandroid" ,
38
- "body" : [
39
- " import { isAndroid } from 'tns-core-modules/platform';" ,
33
+ ],
34
+ "description" : " 🔩 Code Snippets \n\n Fetch sentence for getting results\n\n "
35
+ },
36
+ "{NSVue} isAndroid import" : {
37
+ "prefix" : " nsisandroid" ,
38
+ "body" : [
39
+ " import { isAndroid } from 'tns-core-modules/platform';" ,
40
40
" $0"
41
- ],
42
- "description" : " isAndroid import sentence"
43
- },
44
- "{NSVue} isIOS import" : {
45
- "prefix" : " nsisios" ,
46
- "body" : [
47
- " import { isIOS } from 'tns-core-modules/platform';" ,
41
+ ],
42
+ "description" : " 🔩 Code Snippets \n\n isAndroid import sentence\n\n "
43
+ },
44
+ "{NSVue} isIOS import" : {
45
+ "prefix" : " nsisios" ,
46
+ "body" : [
47
+ " import { isIOS } from 'tns-core-modules/platform';" ,
48
48
" $0"
49
- ],
50
- "description" : " isIOS import sentence"
51
- },
52
- "{NSVue} launchEvent" : {
53
- "prefix" : " nslaunchevent" ,
54
- "body" : [
55
- " import * as app from 'tns-core-modules/application';" ,
49
+ ],
50
+ "description" : " 🔩 Code Snippets \n\n isIOS import sentence\n\n "
51
+ },
52
+ "{NSVue} launchEvent" : {
53
+ "prefix" : " nslaunchevent" ,
54
+ "body" : [
55
+ " import * as app from 'tns-core-modules/application';" ,
56
56
" " ,
57
57
" app.on(app.launchEvent, ({ android, ios }) => {" ,
58
58
" if (android) {" ,
62
62
" }" ,
63
63
" });" ,
64
64
" $0"
65
- ],
66
- "description" : " launchEvent block"
67
- },
68
- "{NSVue}-vue $navigateTo" : {
69
- "prefix" : " nsnavigate" ,
70
- "body" : [
71
- " this.$$navigateTo($1);" ,
65
+ ],
66
+ "description" : " 🔩 Code Snippets \n\n launchEvent block\n\n "
67
+ },
68
+ "{NSVue}-vue $navigateTo" : {
69
+ "prefix" : " nsnavigate" ,
70
+ "body" : [
71
+ " this.$$navigateTo($1);" ,
72
72
" $0"
73
- ],
74
- "description" : " Navigate to another page using {NSVue}-vue"
75
- },
76
- "{NSVue}-vue register component" : {
77
- "prefix" : " nsvuecomponent" ,
78
- "body" : [
79
- " Vue.component($1, $2)" ,
73
+ ],
74
+ "description" : " 🔩 Code Snippets \n\n Navigate to another page using {NSVue}-vue\n\n "
75
+ },
76
+ "{NSVue}-vue register component" : {
77
+ "prefix" : " nsvuecomponent" ,
78
+ "body" : [
79
+ " Vue.component($1, $2)" ,
80
80
" $0"
81
- ],
82
- "description" : " Register a component in {NSVue}-vue"
81
+ ],
82
+ "description" : " 🔩 Code Snippets \n\n Register a component in {NSVue}-vue\n\n "
83
83
},
84
- "{NSVue} http module import" : {
85
- "prefix" : " nshttp" ,
86
- "body" : [
87
- " import * as http from 'tns-core-modules/http';" ,
84
+ "{NSVue} http module import" : {
85
+ "prefix" : " nshttp" ,
86
+ "body" : [
87
+ " import * as http from 'tns-core-modules/http';" ,
88
88
" $0"
89
- ],
90
- "description" : " Import the {NSVue} http module"
89
+ ],
90
+ "description" : " 🔩 Code Snippets \n\n Import the {NSVue} http module\n\n "
91
91
},
92
92
"{NSVue} navigate back" : {
93
- "prefix" : " nsnavigateback" ,
94
- "body" : [
93
+ "prefix" : " nsnavigateback" ,
94
+ "body" : [
95
95
" import * as frameModule from 'tns-core-modules/ui/frame';" ,
96
96
" frameModule.topmost().goBack();" ,
97
97
" $0"
98
- ],
99
- "description" : " Navigate back to the previous page"
98
+ ],
99
+ "description" : " 🔩 Code Snippets \n\n Navigate back to the previous page\n\n "
100
100
}
101
101
}
0 commit comments