From 5cc1f45c6aac699ad008fb85f6ae03236062667d Mon Sep 17 00:00:00 2001 From: Bobby Rahmanda <69358107+bobbyrahmanda13@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:11:34 +0700 Subject: [PATCH] Removes snippets for vue2 (#396) * vue2 is no longer supported as of December 31, 2023. --- snippets/frameworks/vue/html.json | 128 +- snippets/frameworks/vue/javascript.json | 1637 +++++++++-------------- snippets/frameworks/vue/nuxt_html.json | 87 +- snippets/frameworks/vue/vue.json | 29 +- 4 files changed, 716 insertions(+), 1165 deletions(-) diff --git a/snippets/frameworks/vue/html.json b/snippets/frameworks/vue/html.json index 79a221a3..95df1853 100644 --- a/snippets/frameworks/vue/html.json +++ b/snippets/frameworks/vue/html.json @@ -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": { @@ -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": { @@ -112,16 +107,6 @@ "body": ["$2$0"], "description": ". 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