Skip to content

Commit f62ac29

Browse files
authored
fix: better Oruga UI detection (#28)
1 parent 5141323 commit f62ac29

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

detectors/uis.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@
9898
"url": "https://oruga.io"
9999
},
100100
"detectors": {
101-
"js": "[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__ && el.__vue__.$oruga)).filter(Boolean).length"
101+
"js": [
102+
"[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__ && el.__vue__.$oruga)).filter(Boolean).length",
103+
"[...document.querySelectorAll('*')].filter((el) => ['o-autocomplete', 'o-button', 'o-checkbox ', 'o-collapse', 'o-dropdown', 'o-field', 'o-icon', 'o-input', 'o-loading', 'o-modal', 'o-pagination', 'o-radio', 'o-select', 'o-sidebar', 'o-skeleton', 'o-slider', 'o-steps', 'o-switch', 'o-table', 'o-tabs', 'o-tooltip', 'o-upload', 'o-carousel', 'o-dialog', 'o-clockpicker', 'o-datepicker', 'o-datimepicker', 'o-numberinput', 'o-timepicker', 'o-taginput', 'o-image', 'o-notification', 'o-navbar', 'o-menu', 'o-tag'].includes(el.__vue__?.$options._componentTag)).length"
104+
]
102105
}
103106
}
104107
}

0 commit comments

Comments
 (0)