1.0.1 • Published 3 years ago

@phoenix-plugin-registry/vue-snippets v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Vue Snippets

Description

A collection of VUE snippets for Brackets editor.

Installation

Git Clone

  1. Under main menu select Help > Show Extensions Folder
  2. Git clone this repository inside the folder user.

Extension Manager

  1. Under main menu select File > Extension Manager...
  2. Search for "Vue snippets"
  3. Click "Install"

How to use

  1. Enable Vue Snippets Under main menu select Edit > Enable Vue Snippets or open the Preferences File and add "vue-snippets.enabled": true.
  2. Enter a snippet and hit the Space key.

Snippets

Vue

SnippetPurpose
vbaseSingle file component base

Template

SnippetPurpose
vforv-for directive
vmodelSemantic v-model directive
vmodelNumSemantic v-model number directive
vonv-on click handler with arguments
velPropsComponent element with props
vsrcImage src binding
vstyleInline style binding
vstyleObjInline style binding with objects
vclassClass binding
vclassObjClass binding with objects
vclassObjMultMultiple conditional class bindings
vanimTransition component with JS hooks
vnuxtlNuxt Routing Link

Script

SnippetPurpose
vdataComponent data as a function
vmethodVue method
vcomputedVue computed property
vwatcherVue watcher with new and old value args
vpropsProps with type and default
vimportImport one component into another
vcomponentsImport one component into another within the export statement
vimportExportImport one component into another and use it within the export statement
vfilterVue filter
vmixinCreate a Vue Mixin
vmixinUseBring a mixin into a component to use
vcDirectVue create a custom directive
vimportLibImport a library
vimportGsapImport GreenSock with Timeline and Eases
vanimhookJSUsing the Transition component JS hooks in methods
vcommitCommit to Vuex store in methods for mutation
vdispatchDispatch to Vuex store in methods for action
vtestA simple unit testing component
vincincrementer
vdecdecrementer

Vuex

SnippetPurpose
vstoreBase for Vuex store.js
vgetterVuex Getter
vmutationVuex Mutation
vactionVuex Action
vstoreImportImport vuex store into main.js

Nuxt Config

SnippetPurpose
nfontlink to include fonts in a nuxt project, in nuxt-config
ncsslink to css assets such as normalize

Credits


Thank you all!!!