Skip to content

Commit ade8c00

Browse files
authored
feat: add detector for arco design (#102)
* feat: add detector for arco design * chore: add arco design icon * chore: update README
1 parent 3d720f0 commit ade8c00

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ To support a new Vue framework, please look at [detectors/frameworks.json](detec
5151
- [iView](http://iview.talkingdata.com)
5252
- [Vue Material](https://www.creative-tim.com/vuematerial)
5353
- [Vulk](https://vulk.cssninja.io)
54+
- [Arco Design](https://arco.design)
5455

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

detectors/uis.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,16 @@
168168
"detectors": {
169169
"js": "[...document.querySelectorAll('*')].map((el) => el.__vue_app__?._context?.provides?.vulk).filter(Boolean).length"
170170
}
171+
},
172+
"arco-design": {
173+
"metas": {
174+
"slug": "arco-design",
175+
"name": "Arco Design",
176+
"imgPath": "/ui/arco.svg",
177+
"url": "https://arco.design"
178+
},
179+
"detectors": {
180+
"html": "<(?:div|button|a) [^>]*class=\"arco-[a-z0-9-]*"
181+
}
171182
}
172183
}
173-
174-

icons/ui/arco.svg

Lines changed: 12 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)