Skip to content

Commit 389c6bb

Browse files
committed
font link for nuxt-config
1 parent 5f22ce1 commit 389c6bb

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
7373
| `vimport-lib` | Import a library |
7474
| `vimport-gsap` | Import GreenSock with Timeline and Eases |
7575
| `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 |
7678
| `vinc` | incrementer |
7779
| `vdec` | decrementer |
7880

@@ -86,6 +88,12 @@ You can enable tab completion (recommended) by opening `Code > Preferences > Set
8688
| `vaction` | Vuex Action |
8789
| `vstore-import` | Import vuex store into main.js |
8890

91+
### Nuxt Config
92+
93+
| Snippet | Purpose |
94+
| ---------------------- | ------------------- |
95+
| `nfont` | link to include fonts in a nuxt project, in nuxt-config |
96+
8997
### Extra (plaintext)
9098

9199
| Snippet | Purpose |

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
"language": "javascript",
3838
"path": "./snippets/vue-script-vuex.json"
3939
},
40+
{
41+
"language": "javascript",
42+
"path": "./snippets/nuxt-config.json"
43+
},
4044
{
4145
"language": "plaintext",
4246
"path": "./snippets/plaintext.json"

snippets/nuxt-config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}

snippets/vue-script.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"description": "commit to vuex store in methods for mutation"
146146
},
147147
"Vue Dispatch Vuex Store in Methods": {
148-
"prefix": "vcommit",
148+
"prefix": "vdispatch",
149149
"body": [
150150
"${1:actionName}() {",
151151
"\tthis.$store.dispatch('${1:actionName}', ${2:payload})",

0 commit comments

Comments
 (0)