@nuxt/devtools 0.2.5 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/chunks/module-main.mjs +692 -258
- package/dist/chunks/plugin-metrics.mjs +56 -0
- package/dist/chunks/vite-inspect.mjs +12 -13
- package/dist/chunks/vscode.mjs +44 -26
- package/dist/chunks/vue-inspector.mjs +2 -2
- package/dist/cli.mjs +5 -4
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/Badge.ec308af3.js +1 -0
- package/dist/client/_nuxt/DrawerRight.vue.a85afa62.js +1 -0
- package/dist/client/_nuxt/DurationDisplay.vue.9b5b62d4.js +1 -0
- package/dist/client/_nuxt/FilepathItem.vue.178a1de3.js +1 -0
- package/dist/client/_nuxt/LaunchPage.vue.a0bbd67e.js +1 -0
- package/dist/client/_nuxt/NCheckbox.vue.4a02f339.js +1 -0
- package/dist/client/_nuxt/NCodeBlock.vue.593cb41f.js +1 -0
- package/dist/client/_nuxt/NIconButton.vue.a83f99ea.js +1 -0
- package/dist/client/_nuxt/NIconTitle.vue.ce90e41b.js +1 -0
- package/dist/client/_nuxt/NMarkdown.vue.11f68fad.js +1 -0
- package/dist/client/_nuxt/NSectionBlock.c955e75e.js +1 -0
- package/dist/client/_nuxt/NSelect.vue.e19311d6.js +1 -0
- package/dist/client/_nuxt/NSwitch.vue.76c93e66.js +1 -0
- package/dist/client/_nuxt/NTextInput.vue.d770ca6c.js +1 -0
- package/dist/client/_nuxt/NTip.vue.ac67cde4.js +1 -0
- package/dist/client/_nuxt/NpmVersionCheck.vue.0eab98c7.js +1 -0
- package/dist/client/_nuxt/{NuxtLogo.8111403f.js → NuxtLogo.38adb408.js} +1 -1
- package/dist/client/_nuxt/{PanelLeftRight.vue.56b5906c.js → PanelLeftRight.vue.90cdedcf.js} +1 -1
- package/dist/client/_nuxt/StateEditor.vue.c57dfe46.js +1 -0
- package/dist/client/_nuxt/{TabIcon.vue.30ae65eb.js → TabIcon.vue.8236980c.js} +1 -1
- package/dist/client/_nuxt/{__inspecting.8819ade8.js → __inspecting.143a746c.js} +1 -1
- package/dist/client/_nuxt/assets.d6a1ab2b.js +16 -0
- package/dist/client/_nuxt/components.1b7f02b2.js +1 -0
- package/dist/client/_nuxt/context.fe69916a.js +1 -0
- package/dist/client/_nuxt/custom-_name_.02ebd30e.js +1 -0
- package/dist/client/_nuxt/default.e6b60844.js +1 -0
- package/dist/client/_nuxt/editor.e10c09a2.js +1 -0
- package/dist/client/_nuxt/entry.216b69f8.js +259 -0
- package/dist/client/_nuxt/entry.654353dc.css +32 -0
- package/dist/client/_nuxt/error-404.51bdc645.js +1 -0
- package/dist/client/_nuxt/{error-500.8f6cefc5.js → error-500.15ac1dfe.js} +1 -1
- package/dist/client/_nuxt/error-component.0a7a48e4.js +3 -0
- package/dist/client/_nuxt/hooks.aa487478.js +1 -0
- package/dist/client/_nuxt/icons.43eaabec.js +1 -0
- package/dist/client/_nuxt/imports.01c0f8be.js +1 -0
- package/dist/client/_nuxt/{index.a6656ecb.js → index.3b3b7aca.js} +5 -5
- package/dist/client/_nuxt/index.517491fb.js +1 -0
- package/dist/client/_nuxt/index.c769634a.js +3 -0
- package/dist/client/_nuxt/layouts.e447e192.js +1 -0
- package/dist/client/_nuxt/middleware.e73473f1.js +1 -0
- package/dist/client/_nuxt/modules.304ea21e.js +1 -0
- package/dist/client/_nuxt/{none.394b52e6.js → none.3e2499ec.js} +1 -1
- package/dist/client/_nuxt/overview.b79bf694.js +1 -0
- package/dist/client/_nuxt/pages.fafa9fe0.js +1 -0
- package/dist/client/_nuxt/payload.ee430f3a.js +1 -0
- package/dist/client/_nuxt/plugins.5095ec46.js +1 -0
- package/dist/client/_nuxt/runtime-configs.b20fbeb6.js +1 -0
- package/dist/client/_nuxt/server-routes.7352d340.js +1 -0
- package/dist/client/_nuxt/settings.b6d3cae9.js +1 -0
- package/dist/client/_nuxt/storage.2e73159a.js +1 -0
- package/dist/client/_nuxt/terminals.4329aeb9.css +1 -0
- package/dist/client/_nuxt/terminals.65080a19.js +1 -0
- package/dist/client/_nuxt/{unocss-runtime.daeb320e.js → unocss-runtime.5708ce83.js} +2 -2
- package/dist/client/_nuxt/virtual-files.9eb05502.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/modules/assets/index.html +7 -0
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/layouts/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/storage/index.html +2 -2
- package/dist/client/modules/terminals/index.html +7 -0
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/client/settings/index.html +7 -0
- package/dist/dirs.mjs +2 -2
- package/dist/module.d.ts +3 -33
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/plugins/devtools.client.mjs +7 -1
- package/dist/shared/{devtools.258c6e2e.mjs → devtools.696fb428.mjs} +1 -1
- package/dist/types.d.ts +4 -337
- package/dist/types.mjs +1 -1
- package/package.json +36 -35
- package/dist/client/_nuxt/Badge.4f16da14.js +0 -1
- package/dist/client/_nuxt/FilepathItem.vue.235fa07d.js +0 -1
- package/dist/client/_nuxt/LaunchPage.vue.86f00e85.js +0 -1
- package/dist/client/_nuxt/NButton.a7fda268.css +0 -1
- package/dist/client/_nuxt/NButton.vue.76dccbb9.js +0 -100
- package/dist/client/_nuxt/NCheckbox.vue.60126ccb.js +0 -1
- package/dist/client/_nuxt/NMarkdown.vue.abb154b8.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.58837776.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.891fa081.css +0 -1
- package/dist/client/_nuxt/NTextInput.vue.1fd15b74.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.bdb7e5c8.js +0 -1
- package/dist/client/_nuxt/asyncData.103aad72.js +0 -1
- package/dist/client/_nuxt/client.9c41f495.js +0 -1
- package/dist/client/_nuxt/components.43dee80b.js +0 -1
- package/dist/client/_nuxt/context.55688cca.js +0 -1
- package/dist/client/_nuxt/custom-_name_.8832be9d.js +0 -1
- package/dist/client/_nuxt/default.c29c3e74.js +0 -1
- package/dist/client/_nuxt/editor.66e59505.js +0 -1
- package/dist/client/_nuxt/entry.3a404c59.css +0 -1
- package/dist/client/_nuxt/entry.883bcfe6.js +0 -11
- package/dist/client/_nuxt/error-404.d027ece6.js +0 -1
- package/dist/client/_nuxt/error-component.ee11a8ba.js +0 -3
- package/dist/client/_nuxt/hooks.427abdcd.js +0 -1
- package/dist/client/_nuxt/icons.7b11eba5.js +0 -1
- package/dist/client/_nuxt/imports.2dc7174b.js +0 -1
- package/dist/client/_nuxt/index.0d6abd2a.js +0 -1
- package/dist/client/_nuxt/json-editor-vue.a65019ca.js +0 -137
- package/dist/client/_nuxt/layouts.4db8e1e6.js +0 -1
- package/dist/client/_nuxt/middleware.c4f2a57b.js +0 -1
- package/dist/client/_nuxt/modules.a2209d2d.js +0 -1
- package/dist/client/_nuxt/nuxt-link.a34a1045.js +0 -1
- package/dist/client/_nuxt/overview.5053fd45.js +0 -1
- package/dist/client/_nuxt/pages.9a1a9ac3.js +0 -1
- package/dist/client/_nuxt/payload.ed4c5688.js +0 -1
- package/dist/client/_nuxt/plugins.95c9e3e6.js +0 -1
- package/dist/client/_nuxt/runtime-configs.7ebddf6f.js +0 -1
- package/dist/client/_nuxt/server-routes.5337ffc6.js +0 -1
- package/dist/client/_nuxt/state.1f523208.js +0 -1
- package/dist/client/_nuxt/storage.4459d7bf.js +0 -1
- package/dist/client/_nuxt/virtual-files.a15894d9.js +0 -3
- package/dist/iframe-client.d.ts +0 -15
- package/dist/iframe-client.mjs +0 -32
- package/iframe-client.d.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as D}from"./NTextInput.vue.1fd15b74.js";import{a as N,l as w,p as F,o as t,c as b,w as v,h as n,m as y,i as k,u as e,k as C,f as u,F as V,t as I,A as B,N as z,P as j,Q as E,R as T,y as M,S as P,r as A,q as S}from"./entry.883bcfe6.js";import{_ as U}from"./FilepathItem.vue.235fa07d.js";import{_ as K}from"./NMarkdown.vue.abb154b8.js";import{_ as R}from"./NButton.vue.76dccbb9.js";import{u as q,o as L}from"./editor.66e59505.js";import{_ as Q}from"./NSectionBlock.58837776.js";import{a as G,h as H,i as J,j as O,g as W}from"./state.1f523208.js";import{F as X}from"./fuse.esm.88e2763d.js";import"./client.9c41f495.js";import"./nuxt-link.a34a1045.js";/* empty css */import"./json-editor-vue.a65019ca.js";import"./context.55688cca.js";import"./asyncData.103aad72.js";const Y={"hover:text-primary":""},Z={key:0,"text-primary":""},ee={"max-w-100":""},te={"text-sm":"",px4:"",py3:""},oe={flex:"~ gap2",n:"primary xs"},ae={border:"t base",px4:"",py3:""},se={"text-sm":""},ne=n("span",{op50:""},"It has been referenced ",-1),ie={"text-primary":""},le=n("span",{op50:""}," times by:",-1),re={flex:"~ col gap-2","text-sm":"","items-start":"",pt3:""},me={key:1,op50:"","text-sm":""},de=N({__name:"ComposableItem",props:{item:null,metadata:null,filepath:null},setup(s){const r=s,x=q(),o=w(()=>r.item.as||r.item.name),c=w(()=>r.metadata?.injectionUsage?.[o.value]?.count||0),a=w(()=>r.metadata?.injectionUsage?.[o.value]?.moduleIds||[]);return(p,_)=>{const m=K,l=R,d=U,g=F("VDropdown");return t(),b(g,{disabled:!r.metadata},{popper:v(()=>[n("div",ee,[n("div",te,[s.item.meta?.description?(t(),b(m,{key:0,tag:"div","text-sm":"",pb3:"",markdown:s.item.meta.description},null,8,["markdown"])):y("",!0),n("div",oe,[k(l,{"n-solid":"",onClick:_[0]||(_[0]=f=>e(x)(e(o)))},{default:v(()=>[C(" Copy ")]),_:1}),s.filepath?(t(),b(l,{key:0,"n-solid":"",onClick:_[1]||(_[1]=f=>s.filepath&&("openInEditor"in p?p.openInEditor:e(L))(s.filepath))},{default:v(()=>[C(" Source ")]),_:1})):y("",!0),s.item.meta?.docsUrl?(t(),b(l,{key:1,"n-solid":"",to:s.item.meta?.docsUrl,target:"_blank"},{default:v(()=>[C(" Docs ")]),_:1},8,["to"])):y("",!0)])]),n("div",ae,[e(c)?(t(),u(V,{key:0},[n("div",se,[ne,n("strong",ie,I(e(c)),1),le]),n("div",re,[(t(!0),u(V,null,B(e(a),f=>(t(),b(d,{key:f,filepath:f},null,8,["filepath"]))),128))])],64)):(t(),u("div",me," Not in use via auto import. "))])])]),default:v(()=>[n("button",Y,[n("code",{px2:"",py1:"",rounded:"","font-mono":"","text-sm":"","bg-gray:5":"",class:z(s.metadata&&!e(c)?"op30 hover:op100":"")},[C(I(e(o))+" ",1),e(c)?(t(),u("sup",Z,"x"+I(e(c)),1)):y("",!0)],2)])]),_:1},8,["disabled"])}}}),ce={flex:"~ wrap gap2",p2:"",pl4:""},ue=N({__name:"ComposableTree",props:{map:null,root:null,metadata:null},setup(s){return(r,x)=>{const o=U,c=de;return t(),u("div",null,[(t(!0),u(V,null,B(s.map.entries(),([a,p])=>(t(),u("div",{key:a},[k(o,{filepath:a,op50:"","hover:underline":""},null,8,["filepath"]),n("div",ce,[(t(!0),u(V,null,B(p,_=>(t(),b(c,{key:_.as,item:_,metadata:s.metadata,filepath:a.match(/^[\w@]/)?void 0:a},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),pe=["checked","disabled"],fe=["disabled"],_e=n("div",{class:"n-transition peer-active:n-active-base peer-focus-visible:n-focus-base n-switch-slider n-checked:n-switch-slider-checked"},[n("div",{class:"n-transition n-switch-thumb n-checked:n-switch-thumb-checked"})],-1),he=N({__name:"NSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(s,{emit:r}){const o=j(s,"modelValue",r,{passive:!0});return(c,a)=>(t(),u("label",{class:"n-disabled:n-disabled n-switch n-switch-base",checked:e(o)||null,disabled:s.disabled||null},[E(n("input",{"onUpdate:modelValue":a[0]||(a[0]=p=>M(o)?o.value=p:null),type:"checkbox",class:"absolute op0 peer",disabled:s.disabled,onKeypress:a[1]||(a[1]=P(p=>o.value=!e(o),["enter"]))},null,40,fe),[[T,e(o)]]),_e,n("span",null,[A(c.$slots,"default")])],8,pe))}}),be={key:0,"h-full":"","of-auto":""},ve={flex:"~ col gap4",border:"b base",px4:"","flex-1":"","navbar-glass":"",pt4:"",pb2:""},ye={key:0},ze=N({__name:"imports",setup(s){const r=G(),x=S(!1),o=S(""),c=H(),a=w(()=>c.value?.metadata),p=w(()=>c.value?.imports.filter(l=>l.as||l.name).sort((l,d)=>(l.as||l.name).localeCompare(d.as||d.name))||[]),_=w(()=>new X(p.value,{keys:["from","as","name"]})),m=w(()=>{const l=new Map,d=new Map,g=new Map;let f=o.value?_.value.search(o.value).map(i=>i.item):p.value;x.value&&a.value&&(f=f.filter(i=>(i.as||i.name)in a.value.injectionUsage));const $={user:0,lib:0,builtin:0};return f.forEach(i=>{const h=J(i.from)?O(W(i.from))?g:d:l;h.has(i.from)||h.set(i.from,[]),h.get(i.from).push(i),$[h===l?"user":h===d?"lib":"builtin"]++}),{user:l,lib:d,builtin:g,count:$}});return(l,d)=>{const g=D,f=he,$=ue,i=Q;return e(r)?(t(),u("div",be,[n("div",ve,[k(g,{modelValue:e(o),"onUpdate:modelValue":d[0]||(d[0]=h=>M(o)?o.value=h:null),placeholder:"Search...",icon:"carbon-search",p:"x5 y2",n:"primary"},null,8,["modelValue"]),e(a)?(t(),u("div",ye,[k(f,{modelValue:e(x),"onUpdate:modelValue":d[1]||(d[1]=h=>M(x)?x.value=h:null),n:"primary sm"},{default:v(()=>[C(" Show used only ")]),_:1},8,["modelValue"])])):y("",!0)]),e(m).user.size?(t(),b(i,{key:0,icon:"carbon-function",text:"User composables",description:`${e(m).count.user} composables from ${e(m).user.size} modules`},{default:v(()=>[k($,{map:e(m).user,root:e(r).rootDir,metadata:e(a)},null,8,["map","root","metadata"])]),_:1},8,["description"])):y("",!0),e(m).builtin.size?(t(),b(i,{key:1,icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${e(m).count.builtin} composables`},{default:v(()=>[k($,{map:e(m).builtin,root:e(r).rootDir,metadata:e(a)},null,8,["map","root","metadata"])]),_:1},8,["description"])):y("",!0),e(m).lib.size?(t(),b(i,{key:2,icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${e(m).count.lib} composables from ${e(m).lib.size} packages`},{default:v(()=>[k($,{map:e(m).lib,root:e(r).rootDir,metadata:e(a)},null,8,["map","root","metadata"])]),_:1},8,["description"])):y("",!0)])):y("",!0)}}});export{ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as r}from"./NuxtLogo.8111403f.js";import{_ as c}from"./Badge.4f16da14.js";import{_}from"./NButton.vue.76dccbb9.js";import{a as p,f as l,h as e,i as o,w as m,j as u,k as t,o as d}from"./entry.883bcfe6.js";import"./nuxt-link.a34a1045.js";/* empty css */import"./client.9c41f495.js";import"./json-editor-vue.a65019ca.js";const x={flex:"~ col gap4","h-screen":"","items-center":"","justify-center":"","text-center":"","w-160":"",mxa:""},f={flex:"~","justify-center":"","items-center":""},h=e("p",{"text-xl":"","font-bold":"",my2:""}," 👋 Welcome trying the preview of Nuxt DevTools! ",-1),v=e("p",{"text-lg":""},[e("b",{"font-bold":""},"Nuxt DevTools"),t(" is a set of visual tools that help you to know your app/site better, and enhance your development experience with Nuxt. ")],-1),g=e("p",{"text-lg":""},[t(" Be aware that "),e("span",{px2:"",rounded:"","font-bold":"","bg-orange:10":"","py0.5":"","text-orange":""},"Nuxt DevTools is still in early preview"),t(", features might be incomplete and unstable. "),e("a",{href:"https://github.com/nuxt/devtools",target:"_blank","text-primary":"","hover-underline":""},"Create an issue or discussion"),t(" if you find any bugs or have any suggestions. Thank you and have fun! ")],-1),y=e("span",null,"Get Started",-1),F=p({__name:"index",setup(b){function n(){u.value=!1}return(w,N)=>{const s=r,i=c,a=_;return d(),l("div",x,[e("div",f,[o(s,{"h-16":""}),o(i,{"bg-green-400:10":"","text-green-400":"","mr--15":"","mt--5":"",title:"preview",textContent:"preview"})]),h,v,g,o(a,{to:"/modules/overview","mt-4":"",n:"xl primary",onClick:n},{default:m(()=>[y]),_:1})])}}});export{F as default};
|