Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit baf62d1

Browse files
authored
Update README.md
1 parent fe5e043 commit baf62d1

File tree

1 file changed

+104
-2
lines changed

1 file changed

+104
-2
lines changed

README.md

Lines changed: 104 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,104 @@
1-
# vue-snippets
2-
A collection of Vue snippets for Brackets.
1+
# Vue Snippets
2+
3+
4+
5+
## Description
6+
7+
A collection of [VUE](https://vuejs.org/) snippets for [Brackets](http://brackets.io/) editor.
8+
9+
10+
## Installation
11+
12+
#### Git Clone
13+
1. Under main menu select **Help > Show Extensions Folder**
14+
2. Git clone this repository inside the folder user.
15+
16+
#### Extension Manager
17+
1. Under main menu select **File > Extension Manager...**
18+
2. Search for "Vue snippets"
19+
3. Click "Install"
20+
21+
## How to use
22+
1. **Enable Vue Snippets**<br/>
23+
Under main menu select **Edit > Enable Vue Snippets** or<br/> open the Preferences File and add **"vue-snippets.enabled": true**.
24+
2. Enter a snippet and hit the **Space** key.
25+
26+
27+
28+
## Snippets
29+
30+
### Vue
31+
32+
| Snippet | Purpose |
33+
| ------- | -------------------------- |
34+
| `vbase` | Single file component base |
35+
36+
### Template
37+
38+
| Snippet | Purpose |
39+
| ----------------- | ----------------------------------- |
40+
| `vfor` | v-for directive |
41+
| `vmodel` | Semantic v-model directive |
42+
| `vmodelNum` | Semantic v-model number directive |
43+
| `von` | v-on click handler with arguments |
44+
| `velProps` | Component element with props |
45+
| `vsrc` | Image src binding |
46+
| `vstyle` | Inline style binding |
47+
| `vstyleObj` | Inline style binding with objects |
48+
| `vclass` | Class binding |
49+
| `vclassObj` | Class binding with objects |
50+
| `vclassObjMult` | Multiple conditional class bindings |
51+
| `vanim` | Transition component with JS hooks |
52+
| `vnuxtl` | Nuxt Routing Link |
53+
54+
### Script
55+
56+
| Snippet | Purpose |
57+
| ---------------- | ------------------------------------------------------------------------ |
58+
| `vdata` | Component data as a function |
59+
| `vmethod` | Vue method |
60+
| `vcomputed` | Vue computed property |
61+
| `vwatcher` | Vue watcher with new and old value args |
62+
| `vprops` | Props with type and default |
63+
| `vimport` | Import one component into another |
64+
| `vcomponents` | Import one component into another within the export statement |
65+
| `vimportExport` | Import one component into another and use it within the export statement |
66+
| `vfilter` | Vue filter |
67+
| `vmixin` | Create a Vue Mixin |
68+
| `vmixinUse` | Bring a mixin into a component to use |
69+
| `vcDirect` | Vue create a custom directive |
70+
| `vimportLib` | Import a library |
71+
| `vimportGsap` | Import GreenSock with Timeline and Eases |
72+
| `vanimhookJS` | Using the Transition component JS hooks in methods |
73+
| `vcommit` | Commit to Vuex store in methods for mutation |
74+
| `vdispatch` | Dispatch to Vuex store in methods for action |
75+
| `vtest` | A simple unit testing component |
76+
| `vinc` | incrementer |
77+
| `vdec` | decrementer |
78+
79+
### Vuex
80+
81+
| Snippet | Purpose |
82+
| --------------- | ------------------------------ |
83+
| `vstore` | Base for Vuex store.js |
84+
| `vgetter` | Vuex Getter |
85+
| `vmutation` | Vuex Mutation |
86+
| `vaction` | Vuex Action |
87+
| `vstoreImport` | Import vuex store into main.js |
88+
89+
### Nuxt Config
90+
91+
| Snippet | Purpose |
92+
| ------- | ------------------------------------------------------- |
93+
| `nfont` | link to include fonts in a nuxt project, in nuxt-config |
94+
| `ncss` | link to css assets such as normalize |
95+
96+
97+
### Credits
98+
---
99+
100+
- vue-vscode-snippets - Sara Drasner - https://github.com/sdras/vue-vscode-snippets
101+
- brackets-jade-snippets - George Raptis - https://github.com/georapbox/brackets-jade-snippets
102+
103+
104+
Thank you all!!!

0 commit comments

Comments
 (0)