Skip to content

Commit 4910935

Browse files
authored
feat: add Inertia.js in frameworks (#20)
1 parent 230b414 commit 4910935

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ It supports multiple [frameworks](#frameworks), [UI librairies](#ui-librairies)
3232
- [Quasar](https://quasar.dev)
3333
- [Gridsome](https://gridsome.org)
3434
- [Vuepress](https://vuepress.vuejs.org)
35+
- [Inertia.js](https://inertiajs.com)
3536

3637
To support a new Vue framework, please look at [detectors/frameworks.json](detectors/frameworks.json).
3738

detectors/frameworks.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,16 @@
5050
"html": "<div [^>]*id=\"q-app\"",
5151
"js": "[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__ && el.__vue__.$q)).filter(Boolean).length"
5252
}
53+
},
54+
"inertiajs": {
55+
"metas": {
56+
"slug": "inertiajs",
57+
"name": "Inertia.js",
58+
"imgPath": "/framework/inertiajs.svg",
59+
"url": "https://inertiajs.com/"
60+
},
61+
"detectors": {
62+
"js": "[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__ && el.__vue__.$inertia)).filter(Boolean).length"
63+
}
5364
}
5465
}

icons/framework/inertiajs.svg

Lines changed: 13 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)