File tree Expand file tree Collapse file tree 5 files changed +129
-3
lines changed Expand file tree Collapse file tree 5 files changed +129
-3
lines changed Original file line number Diff line number Diff line change 1
- # Vscode Snippets Ntnyq
1
+ # Vue Snippets Ntnyq
2
2
3
3
__ WIP__
Original file line number Diff line number Diff line change 3
3
"displayName" : " Vue Snippets Ntnyq" ,
4
4
"description" : " Vue snippets speed up your development" ,
5
5
"version" : " 0.0.1" ,
6
+ "scripts" : {
7
+ "build" : " vsce package -o vue-vscode-snippets-$npm_package_version.vsix" ,
8
+ "install" : " yarn build && code --install-extension vue-vscode-snippets-$npm_package_version.vsix"
9
+ },
6
10
"icon" : " images/vue-logo.png" ,
7
11
"engines" : {
8
12
"vscode" : " ^1.32.0"
43
47
{
44
48
"language" : " javascript" ,
45
49
"path" : " ./snippets/vue-script-vuex.json"
50
+ },
51
+ {
52
+ "language" : " javascript" ,
53
+ "path" : " ./snippets/vue-script-router.json"
46
54
}
47
55
]
48
56
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "Vue Router Base" : {
3
+ "prefix" : " vrbase" ,
4
+ "body" : [
5
+ " import Vue from 'vue'" ,
6
+ " import VueRouter from 'vue-router'" ,
7
+ " import routes from './routes'" ,
8
+ " " ,
9
+ " Vue.use(VueRouter)" ,
10
+ " " ,
11
+ " const router = new VueRouter({" ,
12
+ " routes" ,
13
+ " })" ,
14
+ " " ,
15
+ " export default router" ,
16
+ " "
17
+ ],
18
+ "description" : " Vue Router Base"
19
+ },
20
+ "Vue Router Import" : {
21
+ "prefix" : " vrimport" ,
22
+ "body" : [
23
+ " import router from '@/router'" ,
24
+ " "
25
+ ],
26
+ "description" : " Vue Router Import"
27
+ }
28
+ }
Original file line number Diff line number Diff line change 1
- {}
1
+ {
2
+ "Vuex Base" : {
3
+ "prefix" : " vxbase" ,
4
+ "body" : [
5
+ " import Vue from 'vue'" ,
6
+ " import Vuex from 'vuex'" ,
7
+ " import getters from './getters'" ,
8
+ " import modules from './modules'" ,
9
+ " " ,
10
+ " Vue.use(Vuex)" ,
11
+ " " ,
12
+ " const state = {" ,
13
+ " " ,
14
+ " }" ,
15
+ " " ,
16
+ " const actions = {" ,
17
+ " " ,
18
+ " }" ,
19
+ " " ,
20
+ " const mutations = {" ,
21
+ " " ,
22
+ " }" ,
23
+ " " ,
24
+ " const store = new Vuex.Store({" ,
25
+ " state," ,
26
+ " actions," ,
27
+ " mutations," ,
28
+ " getters," ,
29
+ " modules" ,
30
+ " })" ,
31
+ " " ,
32
+ " export default store" ,
33
+ " "
34
+ ],
35
+ "description" : " Vuex Base"
36
+ },
37
+ "Vuex Module" : {
38
+ "prefix" : " vxmodule" ,
39
+ "body" : [
40
+ " const state = {" ,
41
+ " " ,
42
+ " }" ,
43
+ " " ,
44
+ " const actions = {" ,
45
+ " " ,
46
+ " }" ,
47
+ " " ,
48
+ " const mutations = {" ,
49
+ " " ,
50
+ " }" ,
51
+ " " ,
52
+ " export default {" ,
53
+ " state," ,
54
+ " actions," ,
55
+ " mutations" ,
56
+ " }" ,
57
+ " "
58
+ ],
59
+ "description" : " Vuex Module"
60
+ },
61
+ "Vuex Import" : {
62
+ "prefix" : " vximport" ,
63
+ "body" : [
64
+ " import store from '@/store'"
65
+ ],
66
+ "description" : " Vuex Import"
67
+ }
68
+ }
Original file line number Diff line number Diff line change 1
- {}
1
+ {
2
+ "Vue Data" : {
3
+ "prefix" : " vdata" ,
4
+ "body" : [
5
+ " data () {" ,
6
+ " return {" ,
7
+ " ${1:isLoading}: ${2:false}" ,
8
+ " }" ,
9
+ " },"
10
+ ],
11
+ "description" : " Vue Data"
12
+ },
13
+ "Vue Method" : {
14
+ "prefix" : " vmethod" ,
15
+ "body" : [
16
+ " methods: {" ,
17
+ " ${1:fetchData} () {" ,
18
+ " " ,
19
+ " }" ,
20
+ " },"
21
+ ],
22
+ "description" : " Vue Method"
23
+ }
24
+ }
You can’t perform that action at this time.
0 commit comments