Skip to content

Commit fb51ee3

Browse files
authored
feat: add vee-validate to plugins (#22)
* feat: added vee-validate logo * feat: added detection code for vee-validate v3 * feat: added detection for vee-validate v2 * docs: added vee-validate to README
1 parent c1d4633 commit fb51ee3

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ To support a new UI library, please look at [detectors/uis.json](detectors/uis.j
5959
- [Vue i18n](https://kazupon.github.io/vue-i18n/)
6060
- [Vue Formulate](https://vueformulate.com/)
6161
- [Inertia.js](https://inertiajs.com)
62+
- [vee-validate](https://vee-validate.logaretm.com)
6263

6364
To support a new Vue plugin, please look at [detectors/plugins.json](detectors/plugins.json).
6465

detectors/plugins.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,16 @@
9595
"detectors": {
9696
"js": "Boolean([...document.querySelectorAll('*')].find((el) => Boolean(el.__vue__ && el.__vue__.$inertia)))"
9797
}
98+
},
99+
"vee-validate": {
100+
"metas": {
101+
"slug": "vee-validate",
102+
"name": "vee-validate",
103+
"imgPath": "/plugins/vee-validate.svg",
104+
"url": "https://vee-validate.logaretm.com/"
105+
},
106+
"detectors": {
107+
"js": "Boolean([...document.querySelectorAll('*')].find((el) => Boolean(el.__vue__ && ('$_veeObserver' in el.__vue__ || (el.__vue__.$validator && 'attach' in el.__vue__.$validator)))))"
108+
}
98109
}
99110
}

icons/plugins/vee-validate.svg

Lines changed: 9 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)