@nuxt/devtools 2.1.0 → 2.1.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/dist/chunks/module-main.mjs +27 -6787
- package/dist/chunks/vscode.mjs +0 -6
- package/dist/client/200.html +17 -17
- package/dist/client/404.html +17 -17
- package/dist/client/_nuxt/__blank-ld6vcstp.js +1 -0
- package/dist/client/_nuxt/{analyze-build-bugaz9us.js → analyze-build-l4969lgh.js} +1 -1
- package/dist/client/_nuxt/assets-rwimhsfq.js +16 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/bb0232af-3ede-4a7a-91e4-f1381bfe6a29.json +1 -0
- package/dist/client/_nuxt/{code-diff.vue-gy1k04x9.js → code-diff.vue-nu85g53p.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-ofmkxw4b.js → code-snippets.vue-mtca7vbo.js} +1 -1
- package/dist/client/_nuxt/{components-hzbrj322.js → components-hfwd2f13.js} +1 -1
- package/dist/client/_nuxt/composable-item.vue-jp23lpaj.js +1 -0
- package/dist/client/_nuxt/custom-_name_-b6hz78a5.js +1 -0
- package/dist/client/_nuxt/{data-schema-button.vue-m1rfzflw.js → data-schema-button.vue-lz9owmcc.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-jmqcuxpo.js → data-schema-drawer-by6y5f74.js} +1 -1
- package/dist/client/_nuxt/{default-jt337kpj.js → default-crdabeod.js} +1 -1
- package/dist/client/_nuxt/{error-404-f20h7euk.js → error-404-b74x3dw8.js} +1 -1
- package/dist/client/_nuxt/error-404.css-c4cbwrmc.css +1 -0
- package/dist/client/_nuxt/{error-500-kln77uik.js → error-500-lxgu6zam.js} +1 -1
- package/dist/client/_nuxt/error-500.css-k70rrah0.css +1 -0
- package/dist/client/_nuxt/{error-o3wydv8q.js → error-jndv6aqj.js} +1 -1
- package/dist/client/_nuxt/{filepath-item.vue-i51hnv27.js → filepath-item.vue-ll9h44c8.js} +1 -1
- package/dist/client/_nuxt/{full-hllxflb0.js → full-fw08y527.js} +1 -1
- package/dist/client/_nuxt/{help-fab.vue-lv824f8h.js → help-fab.vue-hyf2xt5v.js} +1 -1
- package/dist/client/_nuxt/{hooks-lylmzd7n.js → hooks-ixsdqv69.js} +1 -1
- package/dist/client/_nuxt/imports-kt3v5qcg.js +1 -0
- package/dist/client/_nuxt/{index-pa2alw8p.js → index-bdk3y7i2.js} +1 -1
- package/dist/client/_nuxt/{launch-page.vue-c4udrikr.js → launch-page.vue-hnfa4f5k.js} +1 -1
- package/dist/client/_nuxt/{g3h63aw5.js → mdin2k9x.js} +7 -7
- package/dist/client/_nuxt/{modules-jbbzhk6s.js → modules-lx3nkhcb.js} +1 -1
- package/dist/client/_nuxt/{nbadge-inu2cbym.js → nbadge-jscmxa0e.js} +1 -1
- package/dist/client/_nuxt/{ncheckbox.vue-ebn9fsvc.js → ncheckbox.vue-oxgpzkb5.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-nv73yu3i.js → ndrawer.vue-ggbjuic7.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-f8fjs48r.js → ndropdown.vue-by1qbsg0.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-ncsjb1ly.js → nlink.vue-idpwaqq8.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-c3um92xe.js → nnavbar.vue-ccrl0i3s.js} +1 -1
- package/dist/client/_nuxt/{none-hokh1e0y.js → none-o0keg2jc.js} +1 -1
- package/dist/client/_nuxt/{nsection-block-jrje44xx.js → nsection-block-omdmf6ve.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs.vue-kmg7oqpq.js → nselect-tabs.vue-irobeaxl.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-otkv89hb.js → nselect.vue-dfin0ans.js} +1 -1
- package/dist/client/_nuxt/{open-graph-g14cvh6u.js → open-graph-d7sxt89b.js} +2 -2
- package/dist/client/_nuxt/{overview-h8wty1mg.js → overview-cbwwn16u.js} +1 -1
- package/dist/client/_nuxt/{pages-bkcg7jdi.js → pages-m77chk1v.js} +1 -1
- package/dist/client/_nuxt/{payload-oxquqq8k.js → payload-d3lzja2v.js} +1 -1
- package/dist/client/_nuxt/pinia-celahsku.js +1 -0
- package/dist/client/_nuxt/{plugins-im2207tt.js → plugins-jf10b6hs.js} +1 -1
- package/dist/client/_nuxt/{render-tree-e9fjta20.js → render-tree-eizdzodc.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-dy1sicee.js → runtime-configs-labvfb4w.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-o8cr9llt.js → server-discovery-b9kztzlw.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-bpkh6jhv.js → server-route-inputs.vue-jnx1cv8r.js} +1 -1
- package/dist/client/_nuxt/{server-routes-ml9qzq4f.js → server-routes-hnfxgz05.js} +3 -3
- package/dist/client/_nuxt/server-tasks-h172w86r.js +1 -0
- package/dist/client/_nuxt/{settings-k4hm6nna.js → settings-cu1sweow.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list.vue-b1n0lhud.js → stacktrace-list.vue-l5a36a3u.js} +1 -1
- package/dist/client/_nuxt/{state-components-hvnej0jk.js → state-components-fdqi5qrf.js} +1 -1
- package/dist/client/_nuxt/state-editor.vue-gnkemono.js +1 -0
- package/dist/client/_nuxt/{state-modules-d3vu3o41.js → state-modules-j0orvr18.js} +1 -1
- package/dist/client/_nuxt/{storage-d5jfpe6j.js → storage-nruvnn8w.js} +1 -1
- package/dist/client/_nuxt/{terminals-jlz6zkmv.js → terminals-c8p45vpu.js} +1 -1
- package/dist/client/_nuxt/{timeline-cnxzcq07.js → timeline-heq9ren3.js} +2 -2
- package/dist/client/_nuxt/{unocss-runtime-gc1hqonm.js → unocss-runtime-fzjefjlm.js} +1 -1
- package/dist/client/_nuxt/vendor/shiki-ej2em068.js +296 -0
- package/dist/client/_nuxt/vendor/{unocss-hjqyvvq7.js → unocss-jzxuon8q.js} +1 -1
- package/dist/client/_nuxt/{virtual-files-jh7t3cfd.js → virtual-files-gxfhrd65.js} +1 -1
- package/dist/client/_nuxt/{vue-devtools-dzipubfc.js → vue-devtools-j81qx9qy.js} +1 -1
- package/dist/client/index.html +17 -17
- package/dist/module.json +2 -2
- package/package.json +31 -31
- package/dist/client/_nuxt/__blank-j47419ao.js +0 -1
- package/dist/client/_nuxt/assets-osp8hkm5.js +0 -16
- package/dist/client/_nuxt/builds/meta/5f994163-fc52-4e71-a78a-98b64f1fb08f.json +0 -1
- package/dist/client/_nuxt/composable-item.vue-o29ru8an.js +0 -1
- package/dist/client/_nuxt/custom-_name_-m1v3gtb3.js +0 -1
- package/dist/client/_nuxt/error-404.css-fsdpg4tp.css +0 -1
- package/dist/client/_nuxt/error-500.css-bernuda7.css +0 -1
- package/dist/client/_nuxt/imports-b9yuvomv.js +0 -1
- package/dist/client/_nuxt/pinia-d8u1ilag.js +0 -1
- package/dist/client/_nuxt/server-tasks-jtcxge81.js +0 -1
- package/dist/client/_nuxt/state-editor.vue-o71oq72z.js +0 -1
- package/dist/client/_nuxt/vendor/shiki-ian6uf3s.js +0 -282
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{K as k,a as c,J as g,av as C}from"./mdin2k9x.js";import{p as b,q as B,U as t,W as a,X as s,F as l,a9 as u,a8 as r,Z as d,a0 as N,Y as E,u as m}from"./vendor/json-editor-vue-npezbdce.js";const F={flex:"~ gap-2 items-center",class:"group"},I=["title"],S={key:0,op50:""},V={key:0,flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},D=b({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(f){const p=f,v=k(),h=c(),i=g(),n=B(()=>p.filepath&&i.value?C(p.filepath,i.value.rootDir):{path:p.filepath||""});return(e,o)=>(t(),a("span",F,[s("span",{class:N([e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath},[e.override?(t(),a(l,{key:0},[u(r(e.override),1)],64)):n.value.moduleName?(t(),a(l,{key:1},[s("span",null,r(n.value.moduleName),1),e.subpath?(t(),a("span",S,r(n.value.path.slice(n.value.moduleName.length)),1)):d("",!0)],64)):(t(),a(l,{key:2},[u(r(n.value.path),1)],64))],10,I),E(e.$slots,"default"),e.filepath?(t(),a("div",V,[s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:o[0]||(o[0]=y=>m(v)(e.filepath))},o[2]||(o[2]=[s("div",{"i-carbon-script-reference":""},null,-1)])),s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Copy path",onClick:o[1]||(o[1]=y=>m(h)(e.filepath))},o[3]||(o[3]=[s("div",{"i-carbon-copy":""},null,-1)]))])):d("",!0)]))}});export{D as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"./
|
|
1
|
+
import{b as t}from"./mdin2k9x.js";import{U as e,W as r,Y as s}from"./vendor/json-editor-vue-npezbdce.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";const c={},n={"h-full":"","of-auto":""};function a(o,f){return e(),r("div",n,[s(o.$slots,"default")])}const d=t(c,[["render",a]]);export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as f,_ as m}from"./
|
|
1
|
+
import{g as f,_ as m}from"./mdin2k9x.js";import{p as v,f as c,u as g,W as o,X as r,a3 as s,a2 as u,M as i,F as k,Z as a,U as l,Y as _}from"./vendor/json-editor-vue-npezbdce.js";const x={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},y=v({__name:"HelpFab",setup(w){const t=c(!1),{showHelpButtons:p}=f("ui");return(d,e)=>{const b=m;return g(p)?(l(),o(k,{key:0},[r("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:e[0]||(e[0]=n=>t.value=!t.value)},e[3]||(e[3]=[r("div",{"i-ri:question-mark":""},null,-1)])),s(i,{name:"fade-in"},{default:u(()=>[t.value?(l(),o("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:e[1]||(e[1]=n=>t.value=!1)})):a("",!0)]),_:1}),s(i,{name:"slide-in"},{default:u(()=>[t.value?(l(),o("div",x,[_(d.$slots,"default"),s(b,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=n=>t.value=!1)})])):a("",!0)]),_:3})],64)):a("",!0)}}});export{y as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as S}from"./duration-display.vue-gu7el5x3.js";import{
|
|
1
|
+
import{_ as S}from"./duration-display.vue-gu7el5x3.js";import{a4 as T,a5 as F,f as B}from"./mdin2k9x.js";import{p as $,f as H,q as w,U as u,W as h,X as o,a9 as l,a0 as p,F as y,ae as P,a8 as m,$ as V,u as x,a3 as _,P as C,a2 as f,Z as N}from"./vendor/json-editor-vue-npezbdce.js";import{_ as D}from"./nsection-block-omdmf6ve.js";import{_ as E}from"./help-fab.vue-hyf2xt5v.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";import"./nicon-title.vue-j1ceohu1.js";const O={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},U={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},Y={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},q={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},R={"text-sm":""},W={"ws-nowrap":""},X={"text-sm":""},Z={"w-0":"","text-center":"","text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-right":"","text-sm":""},K=$({__name:"HooksTable",props:{hooks:{}},setup(k){const a=k,r=H("duration"),n=H("asc"),d={duration:(e,t)=>(t.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},g=w(()=>a.hooks.map(e=>e.start).sort((e,t)=>e-t)),b=w(()=>{const e=d[r.value],t=[...a.hooks].sort(e);return n.value==="desc"&&t.reverse(),t});function c(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function v(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function i(e){r.value===e?n.value=n.value==="asc"?"desc":"asc":r.value=e}return(e,t)=>{const I=S;return u(),h("table",O,[o("thead",j,[o("tr",null,[o("th",L,[o("button",{onClick:t[0]||(t[0]=s=>i("start"))},[t[5]||(t[5]=l(" Order ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="start"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[1]||(t[1]=s=>i("name"))},[t[6]||(t[6]=l(" Hook name ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="name"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[2]||(t[2]=s=>i("listener"))},[t[7]||(t[7]=l(" Listeners ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="listener"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",U,[o("button",{onClick:t[3]||(t[3]=s=>i("executions"))},[t[8]||(t[8]=l(" Executions ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="executions"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",Y,[o("button",{onClick:t[4]||(t[4]=s=>i("duration"))},[t[9]||(t[9]=l(" Duration ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="duration"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(u(!0),h(y,null,P(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",q,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:V({color:("getHashColorFromString"in e?e.getHashColorFromString:x(T))(c(s.name))})},[o("code",R,m(c(s.name)),1)],4),o("td",W,[o("code",X,m(v(s.name)),1)]),o("td",Z,m(s.listeners),1),o("td",G,m(s.executions.length+1),1),o("td",J,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),M={class:"markdown-body"},Q={__name:"hooks",setup(k,{expose:a}){return a({frontmatter:{}}),(n,d)=>(u(),h("div",M,d[0]||(d[0]=[o("h1",null,"Hooks",-1),o("p",null,[l("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")],-1)])))}},it=$({__name:"hooks",setup(k){const a=F(),r=B(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=K,c=D,v=Q,i=E;return u(),h(y,null,[o("div",null,[n.value?.length?(u(),C(c,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n.value.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:n.value},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),x(a)?.length?(u(),C(c,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${x(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:x(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{it as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a6 as T,X as U,a7 as A,J as P,N as j,W as X,H as W}from"./mdin2k9x.js";import{_ as q}from"./nselect-tabs.vue-irobeaxl.js";import{_ as J}from"./nnavbar.vue-ccrl0i3s.js";import{_ as z}from"./filepath-item.vue-ll9h44c8.js";import{_ as Y}from"./composable-item.vue-jp23lpaj.js";import{p as C,U as a,W as u,F as k,ae as M,a3 as c,X as i,P as w,u as f,Z as x,q as _,a8 as Z,f as B,a2 as $}from"./vendor/json-editor-vue-npezbdce.js";import{_ as G}from"./nsection-block-omdmf6ve.js";import{_ as K}from"./help-fab.vue-hyf2xt5v.js";import{D as V}from"./constants-b32h69zq.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";import"./nmarkdown.vue-oxfi26vk.js";import"./client-edufhzwa.js";import"./index-obsucz0g.js";import"./nicon-title.vue-j1ceohu1.js";const O={flex:"~ wrap gap2",p2:"",pl4:""},Q=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=z,e=Y;return a(),u("div",null,[(a(!0),u(k,null,M(r.map.entries(),([l,m])=>(a(),u("div",{key:l},[c(o,{filepath:l,op50:"","hover:underline":""},null,8,["filepath"]),i("div",O,[(a(!0),u(k,null,M(m,g=>(a(),w(e,{key:g.as,item:g,metadata:r.metadata,"is-directive":g.meta?.vueDirective===!0,filepath:l.match(/^[\w@]/)?void 0:l},null,8,["item","metadata","is-directive","filepath"]))),128))])]))),128))])}}}),R={key:0,flex:"~ col gap-2 items-start"},ee=C({__name:"HelpImportsDirs",setup(D){const r=T();return(v,o)=>{const e=z;return f(r)?.dirs?(a(),u("div",R,[(a(!0),u(k,null,M(f(r).dirs,l=>(a(),w(e,{key:l,filepath:l,"text-primary":""},null,8,["filepath"]))),128))])):x("",!0)}}}),te={flex:"~ gap-2 wrap",mb6:""},oe=C({__name:"HelpImportsModules",setup(D){const r=T(),v=_(()=>[...new Set(r.value?.imports.map(o=>U(o.from)).filter(o=>!!o&&!A(o)))]);return(o,e)=>(a(),u("div",te,[(a(!0),u(k,null,M(v.value,l=>(a(),u("code",{key:l,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},Z(l),1))),128))]))}}),se={class:"markdown-body"},ae={__name:"imports",setup(D,{expose:r}){return r({frontmatter:{}}),(o,e)=>{const l=ee,m=oe;return a(),u("div",se,[e[0]||(e[0]=i("h1",null,"Auto imports",-1)),e[1]||(e[1]=i("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1)),e[2]||(e[2]=i("hr",null,null,-1)),e[3]||(e[3]=i("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),c(l),e[4]||(e[4]=i("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),c(m),e[5]||(e[5]=i("hr",null,null,-1)),e[6]||(e[6]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)),e[7]||(e[7]=i("h2",null,"Directives",-1)),e[8]||(e[8]=i("p",null,"Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1)),e[9]||(e[9]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/directory-structure/directives",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},le={key:0,relative:"","h-full":"","of-auto":""},re={key:0,flex:"~ gap-2 items-center lt-sm:col lt-sm:items-start"},$e=C({__name:"imports",setup(D){const r=P(),v=B("all"),o=B("all"),e=B(""),l=T(),m=_(()=>l.value?.metadata),g=_(()=>l.value?.imports.filter(d=>d.as||d.name).sort((d,n)=>(d.as||d.name).localeCompare(n.as||n.name))||[]),F=_(()=>new j(g.value,{keys:["from","as","name"]})),s=_(()=>{const d=new Map,n=new Map,I=new Map;let p=e.value?F.value.search(e.value).map(t=>t.item):g.value;const N=o.value;N==="composables"?p=p.filter(t=>t.meta?.vueDirective!==!0):N==="directives"&&(p=p.filter(t=>t.meta?.vueDirective===!0)),v.value==="using"&&m.value?p=p.filter(t=>(t.as||t.name)in m.value.injectionUsage):v.value==="not-used"&&m.value&&(p=p.filter(t=>!((t.as||t.name)in m.value.injectionUsage)));const h={user:0,lib:0,builtin:0};return p.forEach(t=>{const b=X(t.from)?A(U(t.from))?I:n:d;b.has(t.from)||b.set(t.from,[]),b.get(t.from).push(t),h[b===d?"user":b===n?"lib":"builtin"]++}),{user:d,lib:n,builtin:I,count:h}}),S=_(()=>o.value==="directives"?`${s.value.count.user} directives from ${s.value.user.size} modules`:`${s.value.count.user} composables from ${s.value.user.size} modules`),H=_(()=>o.value==="directives"?`${s.value.count.builtin} directives`:`${s.value.count.builtin} composables`),E=_(()=>o.value==="directives"?`${s.value.count.lib} directives from ${s.value.lib.size} packages`:`${s.value.count.lib} composables from ${s.value.lib.size} packages`);return(d,n)=>{const I=W,p=q,N=J,h=Q,t=G,b=ae,L=K;return a(),u(k,null,[f(r)?(a(),u("div",le,[c(N,{search:e.value,"onUpdate:search":n[2]||(n[2]=y=>e.value=y),pb3:""},{default:$(()=>[m.value?(a(),u("div",re,[c(I,{icon:"carbon-filter",op50:""}),c(p,{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=y=>v.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"]),c(p,{modelValue:o.value,"onUpdate:modelValue":n[1]||(n[1]=y=>o.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Composables",value:"composables"},{label:"Directives",value:"directives"}]},null,8,["modelValue"])])):x("",!0)]),_:1},8,["search"]),s.value.user.size?(a(),w(t,{key:0,open:s.value.count.user<=f(V),icon:o.value==="directives"?"tabler:hexagon-letter-d":"carbon-function",text:`User ${o.value==="directives"?"directives":"composables"}`,description:S.value},{default:$(()=>[c(h,{map:s.value.user,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","icon","text","description"])):x("",!0),s.value.builtin.size?(a(),w(t,{key:1,open:s.value.count.builtin<=f(V),icon:"simple-icons-nuxtdotjs",text:`Built-in ${o.value==="directives"?"directives":"composables"}`,description:H.value},{default:$(()=>[c(h,{map:s.value.builtin,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0),s.value.lib.size?(a(),w(t,{key:2,open:s.value.count.lib<=f(V),icon:"carbon-3d-mpr-toggle",text:`${o.value==="directives"?"Directives":"Composables"} from libraries`,description:E.value},{default:$(()=>[c(h,{map:s.value.lib,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0)])):x("",!0),c(L,null,{default:$(()=>[c(b)]),_:1})],64)}}});export{$e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as y,g,h as N,t as b,i as k,j as h,_ as w}from"./
|
|
1
|
+
import{f as y,g,h as N,t as b,i as k,j as h,_ as w}from"./mdin2k9x.js";import{_ as C}from"./nlink.vue-idpwaqq8.js";import{_ as V}from"./ncheckbox.vue-oxgpzkb5.js";import{p as B,f as L,P as u,a2 as o,U as m,X as t,a3 as n,a9 as l,u as P,Z as T}from"./vendor/json-editor-vue-npezbdce.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";const j={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},D={"max-w-190":"","text-lg":""},E={mb6:"",op50:""},F={p4:""},G={flex:"~ col gap-2",mxa:""},Z=B({__name:"index",setup(S){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){b.value=s.value,k.value=!1}function _(){a.value=!1,p.value.devtools.close()}return(U,e)=>{const f=h,r=C,i=w,x=V,v=N;return m(),u(v,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:o(()=>[t("div",j,[e[7]||(e[7]=t("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1)),t("p",D,[n(f,{"mr-0.5":"","inline-block":"","h-5":"","translate-y--1.1":"","align-mid":""}),e[1]||(e[1]=l(" is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!")),e[2]||(e[2]=t("br",null,null,-1))]),t("p",E,[e[4]||(e[4]=l(" Learn more at ")),n(r,{href:"https://devtools.nuxt.com/",target:"_blank",rel:"noopener noreferrer",n:"primary"},{default:o(()=>e[3]||(e[3]=[l(" devtools.nuxt.com ")])),_:1})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>e[5]||(e[5]=[t("span",null,"Get Started",-1)])),_:1}),P(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:_},{default:o(()=>e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])),_:1})):T("",!0)]),t("div",F,[t("div",G,[n(x,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=c=>s.value=c),n:"green6"},{default:o(()=>[e[8]||(e[8]=t("span",{op50:""},"Send anonymous statistics, help us improving DevTools",-1)),n(r,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op35:"",textContent:"Learn more"})]),_:1},8,["modelValue"])])])]),_:1})}}});export{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as w,x as y,
|
|
1
|
+
import{h as w,x as y,bm as C,H as B,_ as P,U as V}from"./mdin2k9x.js";import{_ as $}from"./nmarkdown.vue-oxfi26vk.js";import{p as v,P as a,a2 as o,U as t,a3 as c,X as i,a8 as m,Z as _,W as F,ae as I,a4 as L,a9 as T,F as U}from"./vendor/json-editor-vue-npezbdce.js";const D={"text-xl":""},E={flex:"~ gap2 wrap"},W=v({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(l,{emit:p}){const d=l,u=p;function f(e,s){y("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const g=C,k=$,h=B,b=P,N=V,x=w;return t(),a(x,null,{default:o(()=>[c(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[c(g,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",D,m(e.title),1),e.description?(t(),a(k,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):_("",!0),i("div",E,[(t(!0),F(U,null,I(e.actions,(n,r)=>(t(),a(b,L({key:r,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0,ref_for:!0},n.attrs,{onClick:G=>f(n,r)}),{default:o(()=>[n.pending?(t(),a(h,{key:0,icon:"carbon-circle-dash","animate-spin":""})):_("",!0),T(" "+m(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{W as _};
|