devtools
devtools copied to clipboard
feat: add directives page
๐ Linked issue
โ Type of change
- [ ] ๐ Documentation (updates to the documentation or readme)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [x] ๐ Enhancement (improving an existing functionality)
- [x] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
Check the title: https://github.com/nuxt/nuxt/pull/29203
This PR includes:
- filter out directive imports in
imports.vuepage: Nuxt will useimport.tsmodule to auto import and generate the dts - filter directive imports in
directives.vuepage - updated NSectionBlock.vue to allow add the directives when there are no directives (added expandable prop and the logic for mouse and expand icon)
- add
directives.mdto the docs: will require a review
This PR can be merged, we only need to confirm that Nuxt will use the import.ts module, otherwise we will need to redo some logic here.
Some screenshots
toolbar_
directives page
Can we have it in the imports tab (as a badge or filter) instead? Would that be easier to maintain?
Something like this?
We need to:
- [x] make new filter responsive
- [x] change
User composablestoUser directivesand the icon when directives filter is checked. - [x] use
v-<kebab-case>in copy button - [ ] review used/unused directives: looks like we need to change how we collect the info for the directives (right now directives always shown as
not-used): found the problem, we're using 2 differentunimportcontext in Nuxt (I'm going to check required changes in Nuxt PR)