Skip to content

Commit

Permalink
Removes snippets for vue2 (#396)
Browse files Browse the repository at this point in the history
* vue2 is no longer supported as of December 31, 2023.
  • Loading branch information
bobbyrahmanda13 authored Feb 12, 2024
1 parent 4086781 commit 5cc1f45
Show file tree
Hide file tree
Showing 4 changed files with 716 additions and 1,165 deletions.
128 changes: 4 additions & 124 deletions snippets/frameworks/vue/html.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,14 @@
],
"description": "Expects: Array | Object | number | string"
},
"v-on": {
"prefix": "vOn",
"body": ["v-on:${1:event}=\"${2:handle}\""],
"description": "Expects: Function | Inline Statement"
},
"v-on-shortcut": {
"v-on-shorthand": {
"prefix": "@",
"body": ["@${1:event}=\"${2:handle}\""],
"description": "v-on shortcut from vue 3"
},
"v-bind": {
"v-bind-shorthand": {
"prefix": "vBind",
"body": ["v-bind$1=\"${2}\""],
"body": [":{$1}=\"${2}\""],
"description": "Expects: any (with argument) | Object (without argument)"
},
"v-model": {
Expand All @@ -74,7 +69,7 @@
},
"v-slot": {
"prefix": "vSlot",
"body": ["v-slot$1=\"${2}\""],
"body": ["#{$1:nameSlot}=\"${2}\""],
"description": "Expects: JavaScript expression that is valid in a function argument position (supports destructuring in supported environments). Optional - only needed if expecting props to be passed to the slot."
},
"v-pre": {
Expand Down Expand Up @@ -112,16 +107,6 @@
"body": ["<slot$1>$2</slot>$0"],
"description": "<slot></slot>. Expects: string. Used on content inserted into child components to indicate which named slot the content belongs to."
},
"slotScope": {
"prefix": "slotScope",
"body": ["slot-scope=\"$1\"$0"],
"description": "Used to denote an element or component as a scoped slot. The attribute’s value should be a valid JavaScript expression that can appear in the argument position of a function signature. This means in supported environments you can also use ES2015 destructuring in the expression. Serves as a replacement for scope in 2.5.0+."
},
"scope": {
"prefix": "scope",
"body": ["scope=\"${1:this api replaced by slot-scope in 2.5.0+}\"$0"],
"description": "Used to denote a <template> element as a scoped slot, which is replaced by `slot-scope` in 2.5.0+."
},
"component": {
"prefix": "component",
"body": ["<component :is=\"${1:componentId}\"></component>$0"],
Expand All @@ -142,111 +127,6 @@
"body": ["<transition-group$1>", "$2", "</transition-group>"],
"description": "transition-group element"
},
"enter-class": {
"prefix": "enterClass",
"body": ["enter-class=\"$1\"$0"],
"description": "enter-class=''. Expects: string."
},
"leave-class": {
"prefix": "leaveClass",
"body": ["leave-class=\"$1\"$0"],
"description": "leave-class=''. Expects: string."
},
"appear-class": {
"prefix": "appearClass",
"body": ["appear-class=\"$1\"$0"],
"description": "appear-class=''. Expects: string."
},
"enter-to-class": {
"prefix": "enterToClass",
"body": ["enter-to-class=\"$1\"$0"],
"description": "enter-to-class=''. Expects: string."
},
"leave-to-class": {
"prefix": "leaveToClass",
"body": ["leave-to-class=\"$1\"$0"],
"description": "leave-to-class=''. Expects: string."
},
"appear-to-class": {
"prefix": "appearToClass",
"body": ["appear-to-class=\"$1\"$0"],
"description": "appear-to-class=''. Expects: string."
},
"enter-active-class": {
"prefix": "enterActiveClass",
"body": ["enter-active-class=\"$1\"$0"],
"description": "enter-active-class=''. Expects: string."
},
"leave-active-class": {
"prefix": "leaveActiveClass",
"body": ["leave-active-class=\"$1\"$0"],
"description": "leave-active-class=''. Expects: string."
},
"appear-active-class": {
"prefix": "appearActiveClass",
"body": ["appear-active-class=\"$1\"$0"],
"description": "appear-active-class=''. Expects: string."
},
"before-enter": {
"prefix": "beforeEnterEvent",
"body": ["@before-enter=\"$1\"$0"],
"description": "@before-enter=''"
},
"before-leave": {
"prefix": "beforeLeaveEvent",
"body": ["@before-leave=\"$1\"$0"],
"description": "@before-leave=''"
},
"before-appear": {
"prefix": "beforeAppearEvent",
"body": ["@before-appear=\"$1\"$0"],
"description": "@before-appear=''"
},
"enter": {
"prefix": "enterEvent",
"body": ["@enter=\"$1\"$0"],
"description": "@enter=''"
},
"leave": {
"prefix": "leaveEvent",
"body": ["@leave=\"$1\"$0"],
"description": "@leave=''"
},
"appear": {
"prefix": "appearEvent",
"body": ["@appear=\"$1\"$0"],
"description": "@appear=''"
},
"after-enter": {
"prefix": "afterEnterEvent",
"body": ["@after-enter=\"$1\"$0"],
"description": "@after-enter=''"
},
"after-leave": {
"prefix": "afterLeaveEvent",
"body": ["@after-leave=\"$1\"$0"],
"description": "@after-leave=''"
},
"after-appear": {
"prefix": "afterAppearEvent",
"body": ["@after-appear=\"$1\"$0"],
"description": "@after-appear=''"
},
"enter-cancelled": {
"prefix": "enterCancelledEvent",
"body": ["@enter-cancelled=\"$1\"$0"],
"description": "@enter-cancelled=''"
},
"leave-cancelled": {
"prefix": "leaveCancelledEvent",
"body": ["@leave-cancelled=\"$1\"$0"],
"description": "@leave-cancelled='' (v-show only)"
},
"appear-cancelled": {
"prefix": "appearCancelledEvent",
"body": ["@appear-cancelled=\"$1\"$0"],
"description": "@appear-cancelled=''"
},
"routerLink": {
"prefix": "routerLink",
"body": ["<router-link $1>$2</router-link>$0"],
Expand Down
Loading

0 comments on commit 5cc1f45

Please sign in to comment.