File tree 4 files changed +22
-1
lines changed 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
73
73
| ` vimport-lib ` | Import a library |
74
74
| ` vimport-gsap ` | Import GreenSock with Timeline and Eases |
75
75
| ` vanimhook-js ` | Using the Transition component JS hooks in methods |
76
+ | ` vcommit ` | Commit to Vuex store in methods for mutation |
77
+ | ` vdispatch ` | Dispatch to Vuex store in methods for action |
76
78
| ` vinc ` | incrementer |
77
79
| ` vdec ` | decrementer |
78
80
@@ -86,6 +88,12 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
86
88
| ` vaction ` | Vuex Action |
87
89
| ` vstore-import ` | Import vuex store into main.js |
88
90
91
+ ### Nuxt Config
92
+
93
+ | Snippet | Purpose |
94
+ | ---------------------- | ------------------- |
95
+ | ` nfont ` | link to include fonts in a nuxt project, in nuxt-config |
96
+
89
97
### Extra (plaintext)
90
98
91
99
| Snippet | Purpose |
Original file line number Diff line number Diff line change 37
37
"language" : " javascript" ,
38
38
"path" : " ./snippets/vue-script-vuex.json"
39
39
},
40
+ {
41
+ "language" : " javascript" ,
42
+ "path" : " ./snippets/nuxt-config.json"
43
+ },
40
44
{
41
45
"language" : " plaintext" ,
42
46
"path" : " ./snippets/plaintext.json"
Original file line number Diff line number Diff line change
1
+ {
2
+ "Nuxt Font" : {
3
+ "prefix" : " nfont" ,
4
+ "body" : [
5
+ " { rel: 'stylesheet', href: '${1:https://fonts.googleapis.com/css?family=Montserrat:600|Rufina:700}' }"
6
+ ],
7
+ "description" : " link to include fonts in a nuxt project, in nuxt-config"
8
+ }
9
+ }
Original file line number Diff line number Diff line change 145
145
"description" : " commit to vuex store in methods for mutation"
146
146
},
147
147
"Vue Dispatch Vuex Store in Methods" : {
148
- "prefix" : " vcommit " ,
148
+ "prefix" : " vdispatch " ,
149
149
"body" : [
150
150
" ${1:actionName}() {" ,
151
151
" \t this.$store.dispatch('${1:actionName}', ${2:payload})" ,
You can’t perform that action at this time.
0 commit comments