Skip to content

Commit ea476b2

Browse files
authored
feat: add detector for vue material (#60)
1 parent f4bf62e commit ea476b2

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ To support a new Vue framework, please look at [detectors/frameworks.json](detec
4949
- [VueTailwind](https://www.vue-tailwind.com/)
5050
- [PrimeVue](https://www.primefaces.org/primevue/showcase)
5151
- [iView](http://iview.talkingdata.com)
52+
- [Vue Material](https://www.creative-tim.com/vuematerial)
5253

5354
To support a new UI library, please look at [detectors/uis.json](detectors/uis.json).
5455

detectors/uis.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,19 @@
142142
"detectors": {
143143
"js": "[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__?.$IVIEW)).filter(Boolean).length"
144144
}
145+
},
146+
"vue-material": {
147+
"metas": {
148+
"slug": "vue-material",
149+
"name": "Vue Material",
150+
"imgPath": "/ui/vue-material.png",
151+
"url": "https://www.creative-tim.com/vuematerial"
152+
},
153+
"detectors": {
154+
"html": [
155+
"<link [^>]*href=\"[^\"]+vue-material(?:\\.min)?\\.css"
156+
],
157+
"js": "[...document.querySelectorAll('*')].map((el) => el.__vue__?.$material).filter(Boolean).length"
158+
}
145159
}
146160
}

icons/ui/vue-material.png

680 Bytes
Loading

0 commit comments

Comments
 (0)