devtools icon indicating copy to clipboard operation
devtools copied to clipboard

feat: layers tab

Open arashsheyda opened this issue 2 years ago â€ĸ 6 comments

🆒 Your use case

A Layers tab would be great! It can be the same as Modules tab, except for installing new layers I think we need a repository similar to nuxt modules

🆕 The solution you'd like

maybe for now we can only show the active layers of project, and get the layer's information from registry.npmjs.org/layer-name

image

🔍 Alternatives you've considered

No response

â„šī¸ Additional info

No response

arashsheyda avatar Aug 04 '23 10:08 arashsheyda

We need to start creating nuxt/layers like nuxt/modules

atinux avatar Aug 04 '23 10:08 atinux

I was thinking the layers features should be baked in each tab, as a dropdown or filter to display. For example, the components tab list all components, while indicating some components from which layer. While a layers tab list all of them for more detailed information is also indeed helpful.

antfu avatar Aug 04 '23 11:08 antfu

I was thinking the layers features should be baked in each tab, as a dropdown or filter to display. For example, the components tab list all components, while indicating some components from which layer. While a layers tab list all of them for more detailed information is also indeed helpful.

This would be really useful!

Right now there is no 'Nuxt config' view but I think it would be useful to be able to view each layer's nuxt.config.ts as well as the merged result config.

Each layer sets, merges or overwrites configs set by layers of lower priority it's a bit difficult to debug the merged config, would a view similar to https://github.com/antfu/vite-plugin-inspect?tab=readme-ov-file#vite-plugin-inspect be possible?

BobbieGoede avatar Nov 17 '23 14:11 BobbieGoede

Working on a layer configuration view similar to what I described, would this be useful?

Code_2023-11-19_23-28-19 Code_2023-11-19_23-28-48

BobbieGoede avatar Nov 19 '23 22:11 BobbieGoede

That looks pretty cool! Sure please go ahead :)

antfu avatar Nov 19 '23 23:11 antfu

This is beautiful @BobbieGoede

atinux avatar Nov 21 '23 15:11 atinux