@nuxt/devtools 1.4.2 → 1.5.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.
Files changed (172) hide show
  1. package/dist/chunks/module-main.mjs +1 -1
  2. package/dist/client/200.html +18 -34
  3. package/dist/client/404.html +18 -34
  4. package/dist/client/_nuxt/__blank-ho4amkbo.js +1 -0
  5. package/dist/client/_nuxt/analyze-build-cdqqqirn.js +1 -0
  6. package/dist/client/_nuxt/assets-gr2bjlk1.js +16 -0
  7. package/dist/client/_nuxt/builds/latest.json +1 -1
  8. package/dist/client/_nuxt/builds/meta/99ac6b65-839f-4dab-9c11-759a1509e3bf.json +1 -0
  9. package/dist/client/_nuxt/client-klf75x38.js +1 -0
  10. package/dist/client/_nuxt/code-diff.vue-bw0ide58.js +8 -0
  11. package/dist/client/_nuxt/code-snippets.vue-m8d4zz58.js +1 -0
  12. package/dist/client/_nuxt/components-oxhvj1ov.js +1 -0
  13. package/dist/client/_nuxt/components-tree-ed0z07in.js +1 -0
  14. package/dist/client/_nuxt/composable-item.vue-hb6xcfj7.js +1 -0
  15. package/dist/client/_nuxt/custom-_name_-gqu7vbz4.js +1 -0
  16. package/dist/client/_nuxt/default-jhyqf6kc.js +1 -0
  17. package/dist/client/_nuxt/duration-display.vue-h3qa2740.js +1 -0
  18. package/dist/client/_nuxt/entry.css-bgn3dvs3.css +1 -0
  19. package/dist/client/_nuxt/error-404-e7oew4nr.js +1 -0
  20. package/dist/client/_nuxt/error-404.css-l9hojrit.css +1 -0
  21. package/dist/client/_nuxt/error-500-g6yrkaek.js +1 -0
  22. package/dist/client/_nuxt/error-500.css-jiufalsw.css +1 -0
  23. package/dist/client/_nuxt/error-kqorjls4.js +9 -0
  24. package/dist/client/_nuxt/filepath-item.vue-dx2h1i9n.js +1 -0
  25. package/dist/client/_nuxt/fm9jupb1.js +16 -0
  26. package/dist/client/_nuxt/full-murxybmz.js +1 -0
  27. package/dist/client/_nuxt/help-fab.vue-crgr5bip.js +1 -0
  28. package/dist/client/_nuxt/hooks-7dy4bdig.js +1 -0
  29. package/dist/client/_nuxt/imports-iajkha8n.js +1 -0
  30. package/dist/client/_nuxt/index-b96i27om.js +2 -0
  31. package/dist/client/_nuxt/index-nw09rrob.js +1 -0
  32. package/dist/client/_nuxt/launch-page.vue-d1verc8u.js +1 -0
  33. package/dist/client/_nuxt/modules-peak225e.js +1 -0
  34. package/dist/client/_nuxt/nbadge-gs58euic.js +1 -0
  35. package/dist/client/_nuxt/ncheckbox.vue-lcng4tp3.js +1 -0
  36. package/dist/client/_nuxt/ncode-block.vue-bfbbo3c9.js +2 -0
  37. package/dist/client/_nuxt/ndrawer.vue-n0jo71pp.js +1 -0
  38. package/dist/client/_nuxt/ndropdown.vue-l48zufyg.js +1 -0
  39. package/dist/client/_nuxt/nicon-title.vue-g9trlv29.js +1 -0
  40. package/dist/client/_nuxt/nlink.vue-grxar87b.js +1 -0
  41. package/dist/client/_nuxt/nmarkdown.vue-nnge8mex.js +1 -0
  42. package/dist/client/_nuxt/nnavbar.vue-ncwj4zjw.js +1 -0
  43. package/dist/client/_nuxt/none-grn7kg3n.js +1 -0
  44. package/dist/client/_nuxt/nsection-block-lj9jr5lq.js +1 -0
  45. package/dist/client/_nuxt/nselect-tabs.vue-hf6vcf5w.js +1 -0
  46. package/dist/client/_nuxt/nselect.vue-fu3yp2s3.js +1 -0
  47. package/dist/client/_nuxt/open-graph-n1d09rxe.js +3 -0
  48. package/dist/client/_nuxt/{open-graph.-BQyihv8.css → open-graph.css-np61an3p.css} +1 -1
  49. package/dist/client/_nuxt/overview-cjpjmhqv.js +1 -0
  50. package/dist/client/_nuxt/pages-bosbcml3.js +1 -0
  51. package/dist/client/_nuxt/payload-b9mwwvi8.js +1 -0
  52. package/dist/client/_nuxt/pinia-io97mkj5.js +1 -0
  53. package/dist/client/_nuxt/plugins-mkpz93oz.js +1 -0
  54. package/dist/client/_nuxt/runtime-configs-in7facqi.js +1 -0
  55. package/dist/client/_nuxt/server-route-inputs.vue-diwdds2s.js +1 -0
  56. package/dist/client/_nuxt/server-routes-eozbg2ko.js +9 -0
  57. package/dist/client/_nuxt/server-tasks-enz00tr5.js +1 -0
  58. package/dist/client/_nuxt/settings-e42sb40z.js +1 -0
  59. package/dist/client/_nuxt/stacktrace-list.vue-gv8cnf42.js +1 -0
  60. package/dist/client/_nuxt/state-components-jr16pryk.js +1 -0
  61. package/dist/client/_nuxt/state-editor.vue-nway0kx6.js +1 -0
  62. package/dist/client/_nuxt/state-modules-k69l57jh.js +1 -0
  63. package/dist/client/_nuxt/storage-gr8o9ir6.js +1 -0
  64. package/dist/client/_nuxt/terminals-nora4jiw.js +1 -0
  65. package/dist/client/_nuxt/terminals.css-o071tnq5.css +1 -0
  66. package/dist/client/_nuxt/timeline-k1m04t71.js +31 -0
  67. package/dist/client/_nuxt/timeline.css-i7fpg75n.css +1 -0
  68. package/dist/client/_nuxt/unocss-runtime-ks657l4w.js +1 -0
  69. package/dist/client/_nuxt/vendor/json-editor-vue-mdfcgt41.js +124 -0
  70. package/dist/client/_nuxt/vendor/json-editor-vue.css-o0jf01nd.css +1 -0
  71. package/dist/client/_nuxt/vendor/shiki-fpe2sz4h.js +87 -0
  72. package/dist/client/_nuxt/vendor/unocss-mnpxkox6.js +2 -0
  73. package/dist/client/_nuxt/vendor/unocss.css-na153c8v.css +1 -0
  74. package/dist/client/_nuxt/vendor/vis-cum19y28.js +98 -0
  75. package/dist/client/_nuxt/{CzYNa_kd.js → vendor/xterm-h0ftnevm.js} +6 -6
  76. package/dist/client/_nuxt/{terminals.BIEho_Pa.css → vendor/xterm.css-egivkam7.css} +1 -1
  77. package/dist/client/_nuxt/virtual-files-d3sqyioj.js +1 -0
  78. package/dist/client/_nuxt/{DPGeaLSc.js → vue-virtual-scroller.esm-k82i9hy2.js} +2 -2
  79. package/dist/client/index.html +18 -34
  80. package/dist/module.json +1 -1
  81. package/dist/runtime/plugins/view/FrameBox.vue +1 -1
  82. package/dist/runtime/plugins/view/Main.vue +1 -1
  83. package/dist/runtime/use-nuxt-devtools.js +1 -1
  84. package/package.json +21 -21
  85. package/dist/client/_nuxt/3LqotSTl.js +0 -1
  86. package/dist/client/_nuxt/52L3kFQK.js +0 -1
  87. package/dist/client/_nuxt/5bRVBCrv.js +0 -1
  88. package/dist/client/_nuxt/Az69hgFj.js +0 -1
  89. package/dist/client/_nuxt/B1ejXUAS.js +0 -1
  90. package/dist/client/_nuxt/B4nba3hY.js +0 -100
  91. package/dist/client/_nuxt/B6E6ObS_.js +0 -8
  92. package/dist/client/_nuxt/B6JyyHnR.js +0 -1
  93. package/dist/client/_nuxt/B9vFkdfw.js +0 -1
  94. package/dist/client/_nuxt/BAfkJCOj.js +0 -1
  95. package/dist/client/_nuxt/BHSU4EaZ.js +0 -1
  96. package/dist/client/_nuxt/BJHQxsCJ.js +0 -1
  97. package/dist/client/_nuxt/BJJ62LnN.js +0 -1
  98. package/dist/client/_nuxt/BK2fI3On.js +0 -1
  99. package/dist/client/_nuxt/BLmvGqlk.js +0 -1
  100. package/dist/client/_nuxt/BNEgG9Tt.js +0 -1
  101. package/dist/client/_nuxt/BPCL41ht.js +0 -1
  102. package/dist/client/_nuxt/BYKXQFmR.js +0 -1
  103. package/dist/client/_nuxt/BYelj_cE.js +0 -1
  104. package/dist/client/_nuxt/BiZn8tsj.js +0 -1
  105. package/dist/client/_nuxt/BmDbnW5H.js +0 -1
  106. package/dist/client/_nuxt/BnYPtiAB.js +0 -1
  107. package/dist/client/_nuxt/BpWWOd5v.js +0 -1
  108. package/dist/client/_nuxt/Bysyzw-g.js +0 -118
  109. package/dist/client/_nuxt/BzRxh9kO.js +0 -1
  110. package/dist/client/_nuxt/C6_7eaNf.js +0 -1
  111. package/dist/client/_nuxt/C6_B1_1h.js +0 -1
  112. package/dist/client/_nuxt/C6gZu76V.js +0 -1
  113. package/dist/client/_nuxt/C9iVm8DM.js +0 -9
  114. package/dist/client/_nuxt/CDP-pALJ.js +0 -1
  115. package/dist/client/_nuxt/CE5Yv1k8.js +0 -1
  116. package/dist/client/_nuxt/CFA-cGyt.js +0 -30
  117. package/dist/client/_nuxt/CFByhje9.js +0 -1
  118. package/dist/client/_nuxt/CGCqTpKA.js +0 -1
  119. package/dist/client/_nuxt/CMNERnbt.js +0 -1
  120. package/dist/client/_nuxt/COjmv9fs.js +0 -1
  121. package/dist/client/_nuxt/CP6X-Nb2.js +0 -3
  122. package/dist/client/_nuxt/CQTsRCSt.js +0 -1
  123. package/dist/client/_nuxt/CXTghDHT.js +0 -1
  124. package/dist/client/_nuxt/CZKrALC4.js +0 -9
  125. package/dist/client/_nuxt/C_HkoMG5.js +0 -1
  126. package/dist/client/_nuxt/CdlRa3-_.js +0 -2
  127. package/dist/client/_nuxt/Ci0JrwP0.js +0 -1
  128. package/dist/client/_nuxt/CpQX28Pm.js +0 -1
  129. package/dist/client/_nuxt/Cpe0RYoz.js +0 -5
  130. package/dist/client/_nuxt/CsTmP73Z.js +0 -1
  131. package/dist/client/_nuxt/CtUB4FID.js +0 -1
  132. package/dist/client/_nuxt/CvHWZNAB.js +0 -1
  133. package/dist/client/_nuxt/D4miJ1xw.js +0 -1
  134. package/dist/client/_nuxt/DByNSuIM.js +0 -8
  135. package/dist/client/_nuxt/DDQO9uCK.js +0 -1
  136. package/dist/client/_nuxt/DFUDf3T0.js +0 -1
  137. package/dist/client/_nuxt/DJDMOkXE.js +0 -2
  138. package/dist/client/_nuxt/DK4YETzW.js +0 -1
  139. package/dist/client/_nuxt/DN3C0UJz.js +0 -1
  140. package/dist/client/_nuxt/DNiICKty.js +0 -3
  141. package/dist/client/_nuxt/DUTLobbz.js +0 -1032
  142. package/dist/client/_nuxt/DljFhaqE.js +0 -1
  143. package/dist/client/_nuxt/DxQMSSvi.js +0 -1
  144. package/dist/client/_nuxt/DxufXTo6.js +0 -1
  145. package/dist/client/_nuxt/FSSfXIZy.js +0 -1
  146. package/dist/client/_nuxt/HT-8HE-a.js +0 -1
  147. package/dist/client/_nuxt/L1GM70c7.js +0 -1
  148. package/dist/client/_nuxt/O2-hisWU.js +0 -1
  149. package/dist/client/_nuxt/OvqPz-_F.js +0 -1
  150. package/dist/client/_nuxt/WFxqX3Wd.js +0 -1
  151. package/dist/client/_nuxt/XYic6raa.js +0 -1
  152. package/dist/client/_nuxt/YcmwJ_aR.js +0 -98
  153. package/dist/client/_nuxt/ZTJOnUjs.js +0 -1
  154. package/dist/client/_nuxt/builds/meta/553e6dd1-1d61-402c-830e-2a99ec46bcef.json +0 -1
  155. package/dist/client/_nuxt/c9Ocm0jZ.js +0 -1
  156. package/dist/client/_nuxt/dPiMYs67.js +0 -1
  157. package/dist/client/_nuxt/entry.DUv7pUjq.css +0 -1
  158. package/dist/client/_nuxt/error-404.BPtGIMAo.css +0 -1
  159. package/dist/client/_nuxt/error-500.WI7ozw6a.css +0 -1
  160. package/dist/client/_nuxt/goeoWIau.js +0 -1
  161. package/dist/client/_nuxt/lRZxrFTT.js +0 -1
  162. package/dist/client/_nuxt/omNoIW9g.js +0 -1
  163. package/dist/client/_nuxt/rc9fNBfM.js +0 -16
  164. package/dist/client/_nuxt/timeline.ygjsvjYU.css +0 -1
  165. package/dist/client/_nuxt/xcveoa5T.js +0 -1
  166. /package/dist/client/_nuxt/{assets.DGT3vQsf.css → assets.css-l0xw7n9m.css} +0 -0
  167. /package/dist/client/_nuxt/{BcJws1i5.js → constants-b32h69zq.js} +0 -0
  168. /package/dist/client/_nuxt/{HelpFab.DHTsX8io.css → help-fab.css-l22fo390.css} +0 -0
  169. /package/dist/client/_nuxt/{NCodeBlock.BJ-XAY5s.css → ncode-block.css-enx2fys6.css} +0 -0
  170. /package/dist/client/_nuxt/{NSectionBlock.Dnwb6MN5.css → nsection-block.css-nz74xks7.css} +0 -0
  171. /package/dist/client/_nuxt/{Blr6EMNg.js → vendor/markdown-it-fvu08dbs.js} +0 -0
  172. /package/dist/client/_nuxt/{virtual-files.CWZEM3J4.css → virtual-files.css-i6taatd1.css} +0 -0
@@ -1 +0,0 @@
1
- import{d as c,aj as d,ak as m,aa as f,m as _,f as e,h as l,j as v,al as k,o,v as C}from"./Bysyzw-g.js";import{n as E}from"./CP6X-Nb2.js";import"./DPGeaLSc.js";import"./3LqotSTl.js";const I={class:"h-full w-full"},w=c({__name:"components-tree",setup(x){const{connected:r}=d(),t=m(),p=f();function s(a){a?t.value.devtools.open():t.value.devtools.close()}return(a,n)=>{const i=k;return o(),_("div",I,[e(r)?(o(),l(e(E),{key:0,onOnInspectComponentStart:n[0]||(n[0]=u=>s(!1)),onOnInspectComponentEnd:n[1]||(n[1]=u=>s(!0)),onOpenInEditor:e(p)},null,8,["onOpenInEditor"])):(o(),l(i,{key:1},{default:v(()=>n[2]||(n[2]=[C(" Connecting.... ")])),_:1}))])}}});export{w as default};
@@ -1 +0,0 @@
1
- import{d as s,a as l,o as a,h as i,j as p,a8 as u,m as c,p as m,aw as _,x as k}from"./Bysyzw-g.js";const d={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},g=s({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(o){const t=o,n=l(()=>t.href||t.to);return(e,h)=>{const r=k;return a(),i(r,_(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:p(()=>[u(e.$slots,"default"),n.value&&e.target==="_blank"?(a(),c("div",d)):m("",!0)]),_:3},16,["class"])}}});export{g as _};
@@ -1 +0,0 @@
1
- import{_ as b}from"./C6_7eaNf.js";import{d as $,o as e,m as c,F as S,n as B,h as f,j as a,a8 as w,aw as F,k as h,ak as O,a as x,a0 as V,f as o,i as n,p as d,v as j,G as E,_ as G}from"./Bysyzw-g.js";import{_ as P}from"./C6_B1_1h.js";import{_ as R}from"./WFxqX3Wd.js";import"./CGCqTpKA.js";import"./B4nba3hY.js";import"./3LqotSTl.js";import"./CXTghDHT.js";const A={key:0,flex:"~ col gap-1"},H={key:1,mt2:"",px4:"",italic:"",op35:""},K=$({__name:"StateGroup",props:{state:{},revision:{},prefix:{default:""}},setup(m){return(t,s)=>{const l=b;return e(),c("div",null,[t.state&&Object.keys(t.state).length>0?(e(),c("div",A,[(e(!0),c(S,null,B(t.state,(i,r)=>(e(),f(l,{key:r,revision:t.revision,state:i,name:r.startsWith(t.prefix)?r.slice(t.prefix.length):r},{actions:a(_=>[w(t.$slots,"actions",F({ref_for:!0},_))]),_:2},1032,["revision","state","name"]))),128))])):(e(),c("div",H," No data "))])}}}),T={class:"markdown-body"},L={__name:"payload",setup(m,{expose:t}){return t({frontmatter:{}}),(l,i)=>(e(),c("div",T,i[0]||(i[0]=[h("h1",null,"State & Async Data",-1),h("p",null,"// TODO",-1)])))}},W=L,q={key:0},tt=$({__name:"payload",setup(m){const t=O(),s=x(()=>t.value?.nuxt.payload),l=x(()=>t.value?.revision.value);async function i(r){await t.value?.nuxt.hooks.callHookParallel("app:data:refresh",r)}return(r,_)=>{const v=K,u=P,y=G,g=b,D=W,C=R,N=V("tooltip");return e(),c(S,null,[o(t)?(e(),c("div",q,[n(u,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[n(v,{state:o(s).state,revision:o(l),prefix:"$s"},null,8,["state","revision"])]),_:1}),n(u,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[n(y,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:_[0]||(_[0]=k=>i())},{default:a(()=>_[1]||(_[1]=[j(" Re-fetch all data ")])),_:1})]),default:a(()=>[n(v,{state:o(s).data,revision:o(l)},{actions:a(({isOpen:k,name:p})=>[k&&p?E((e(),f(y,{key:0,title:`Re-fetch '${p}'`,icon:"carbon-recycle",border:!1,onClick:z=>i([p])},null,8,["title","onClick"])),[[N,`Re-fetch '${p}'`,void 0,{bottom:!0}]]):d("",!0)]),_:1},8,["state","revision"])]),_:1}),o(s).functions&&Object.keys(o(s).functions).length?(e(),f(u,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions"},{default:a(()=>[n(g,{"ml--6":"",state:o(s).functions,revision:o(l)},null,8,["state","revision"])]),_:1})):d("",!0)])):d("",!0),n(C,null,{default:a(()=>[n(D)]),_:1})],64)}}});export{tt as default};
@@ -1 +0,0 @@
1
- import{_ as D}from"./CQTsRCSt.js";import{_ as S}from"./CpQX28Pm.js";import{_ as C}from"./BpWWOd5v.js";import{d as v,a9 as B,a as y,bc as V,o,m as _,k as n,t as P,i as u,f,h as p,p as d,as as F,a8 as N,a4 as H,q as I,j as x,v as h,be as E,ak as W,F as k,n as j,D as L}from"./Bysyzw-g.js";import{_ as M}from"./C6_B1_1h.js";import{_ as q}from"./WFxqX3Wd.js";import"./CXTghDHT.js";const z={flex:"~ gap2","items-center":""},A={w8:"","text-right":"","text-sm":"",op25:""},R={key:0,"flex-auto":"","text-right":""},Y=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(m){const e=m,a=B(),l=y(()=>V(e.plugin.src,a.value?.rootDir||"").path);return(t,c)=>{const r=D,s=S,i=C;return o(),_("div",z,[n("div",A,P(t.index),1),u(r,{filepath:e.plugin.src,subpath:!0},null,8,["filepath"]),n("div",null,[f(l).startsWith("#")?(o(),p(s,{key:0,n:"rose",textContent:"virtual"})):f(l).startsWith(".")?d("",!0):(o(),p(s,{key:1,n:"gray",textContent:"module"})),t.plugin.mode==="server"?(o(),p(s,{key:2,n:"teal",textContent:"server"})):d("",!0),t.plugin.mode==="client"?(o(),p(s,{key:3,n:"orange",textContent:"client"})):d("",!0)]),t.plugin.metric?.duration!=null?(o(),_("div",R,[u(i,{duration:t.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),G={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},J={flex:"~ items-center gap-1","font-bold":""},K=v({__name:"HelpTip",props:{title:{},icon:{}},setup(m){return(e,a)=>{const l=H,t=F("ContentSlot");return o(),_("div",G,[n("div",J,[e.icon?(o(),p(l,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),n("div",null,P(e.title),1)]),n("div",null,[N(e.$slots,"default",{},()=>[u(t,{use:e.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),O={};function Q(m,e){const a=K;return o(),p(a,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:x(()=>[N(m.$slots,"default")]),_:3})}const U=I(O,[["render",Q]]),X={class:"markdown-body"},Z={__name:"plugins",setup(m,{expose:e}){return e({frontmatter:{}}),(l,t)=>{const c=U;return o(),_("div",X,[t[1]||(t[1]=n("h1",null,"Plugins",-1)),t[2]||(t[2]=n("p",null,[h("Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the "),n("code",null,"plugins/"),h(" directory and they will be automatically imported and registered.")],-1)),u(c,null,{default:x(()=>t[0]||(t[0]=[h(" Plugins always run before your application's runtime. The loading time of each plugin will directly impact your application's initial loading time. ")])),_:1}),t[3]||(t[3]=n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},tt=Z,nt={pt4:""},et={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},ut=v({__name:"plugins",setup(m){const e=E(),a=W(),l=y(()=>{const c=e.value?.plugins||[],r=a.value?.metrics.clientPlugins()||[];return c.map(s=>{const i=typeof s=="string"?{src:s}:s;return{...i,metric:r.find(g=>g.src===i.src||g.src.startsWith(i.src))}})}),t=y(()=>{const c=a.value?.metrics.clientPlugins()||[],r=Math.min(...c.map(i=>i.start));return Math.max(...c.map(i=>i.end))-r});return(c,r)=>{const s=Y,i=C,g=M,T=tt,w=q;return o(),_(k,null,[u(g,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${f(l).length}`},{default:x(()=>[n("div",nt,[(o(!0),_(k,null,j(f(l),($,b)=>(o(),p(s,{key:$.src,plugin:$,index:b+1,"ml--4":"","border-base":"",py2:"",class:L(b?"border-t":"")},null,8,["plugin","index","class"]))),128)),n("div",et,[r[0]||(r[0]=n("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1)),r[1]||(r[1]=n("span",{op50:""},"Total execution time:",-1)),u(i,{duration:f(t),factor:10},null,8,["duration"])])])]),_:1},8,["description"]),u(w,null,{default:x(()=>[u(T)]),_:1})],64)}}});export{ut as default};
@@ -1 +0,0 @@
1
- import{_ as F}from"./CpQX28Pm.js";import{_ as L}from"./CdlRa3-_.js";import{_ as W}from"./ZTJOnUjs.js";import{d as A,N as E,b9 as G,r as V,ba as X,L as q,P as z,o as p,m as g,a8 as H,f as n,t as $,p as w,F as B,i as o,h as J,j as u,k as y,l as M,v as c,S as K,W as O,_ as Q,X as Y,bb as Z,a9 as ee,a as te,au as ae,av as ne,bc as se,b8 as oe}from"./Bysyzw-g.js";const le={key:0},re={p4:"",flex:"~ col gap-1"},ue={class:"text-lg font-medium leading-6"},ie={flex:"~ gap-3",mt2:"","justify-end":""},ve=A({__name:"NpmVersionCheck",props:{packageName:{},options:{},showVersion:{type:Boolean,default:!0}},setup(l){const a=l,t=E(),{info:s,update:i,state:k,processId:N,restart:m}=G(a.packageName,a.options),f=V(!0),v=V(!0),S=X(),b=q(),U=z();async function C(){const r=await i(async e=>b.start(e));K("npm:update",{packageName:a.packageName,oldVersion:s.value?.current}),r&&v.value&&S.value.push({id:r,message:`${a.packageName} has been updated. Do you want to restart the Nuxt server now?`}),r&&f.value&&(U.value=r,t.push("/modules/terminals"))}return(r,e)=>{const x=F,R=L,h=W,T=O,P=Q,I=Y;return p(),g(B,null,[H(r.$slots,"default",{id:n(N),info:n(s),update:C,state:n(k),restart:n(m)},()=>[n(s)&&r.showVersion?(p(),g("code",le,$(`v${n(s).current}`),1)):w("",!0),n(s)?.latest?(p(),g(B,{key:1},[n(s).needsUpdate?(p(),g("button",{key:0,onClick:e[0]||(e[0]=_=>C())},[o(x,{n:"green",title:"updates available",textContent:"updates available"})])):(p(),J(x,{key:1,n:"gray",title:"latest",textContent:"latest"}))],64)):w("",!0)]),o(n(b),null,{default:u(({resolve:_,args:j})=>[o(I,{"model-value":!0,onClose:d=>_(!1)},{default:u(()=>[y("div",re,[y("h3",ue," Update "+$(a.packageName)+"? ",1),e[8]||(e[8]=y("p",{op50:""}," The following command will be executed in your terminal: ",-1)),o(R,{code:j[0],lang:"bash",my3:"",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),o(h,{modelValue:n(f),"onUpdate:modelValue":e[1]||(e[1]=d=>M(f)?f.value=d:null),n:"primary"},{default:u(()=>e[3]||(e[3]=[c(" Navigate to terminal ")])),_:1},8,["modelValue"]),o(h,{modelValue:n(v),"onUpdate:modelValue":e[2]||(e[2]=d=>M(v)?v.value=d:null),n:"primary"},{default:u(()=>e[4]||(e[4]=[c(" Restart Nuxt server after update ")])),_:1},8,["modelValue"]),y("div",ie,[o(T,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:u(()=>e[5]||(e[5]=[c(" Please make sure to backup your project first. ")])),_:1}),o(P,{onClick:d=>_(!1)},{default:u(()=>e[6]||(e[6]=[c(" Cancel ")])),_:2},1032,["onClick"]),o(P,{n:"solid primary",onClick:d=>_(!0)},{default:u(()=>e[7]||(e[7]=[c(" Update ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)}}}),D=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"];function de(){return oe("getModulesList",async()=>(await $fetch("https://api.nuxt.com/modules?version=3")).modules.filter(a=>!D.includes(a.npm)&&a.compatibility.nuxt.includes(">=3")))}function _e(){return Z("installed-modules",()=>{const l=ee(),a=de();return te(()=>(l.value?._installedModules||[]).map(t=>{if(!t.entryPath)return;const s=!!(t.entryPath&&ae(t.entryPath)),i=t.meta?.name?t.meta?.name:t.entryPath?s?ne(t.entryPath):l.value?.rootDir?se(t.entryPath,l.value?.rootDir).path:void 0:void 0,k=!!l.value?.modules?.includes(i),N=a.value?.find(m=>m.npm===i)||a.value?.find(m=>m.name===i);return{name:i,isPackageModule:s,isUninstallable:k,info:N,...t}}).filter(t=>t&&(!t.name||!D.includes(t.name))))})}export{ve as _,de as a,_e as u};
@@ -1 +0,0 @@
1
- import{d as x,o as s,m as u,F as M,n as w,i as m,k as d,h as I,aL as k,f as e,p as v,a as g,av as C,aM as L,t as X,a9 as U,r as D,af as z,au as H,j as h,l as N,a4 as j}from"./Bysyzw-g.js";import{_ as P}from"./52L3kFQK.js";import{_ as R}from"./Ci0JrwP0.js";import{_ as B}from"./CQTsRCSt.js";import{_ as Y}from"./BK2fI3On.js";import{_ as q}from"./C6_B1_1h.js";import{_ as G}from"./WFxqX3Wd.js";import{D as E}from"./BcJws1i5.js";import"./goeoWIau.js";import"./DK4YETzW.js";import"./CXTghDHT.js";const J={flex:"~ wrap gap2",p2:"",pl4:""},K=x({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(y){return(l,c)=>{const r=B,o=Y;return s(),u("div",null,[(s(!0),u(M,null,w(l.map.entries(),([t,b])=>(s(),u("div",{key:t},[m(r,{filepath:t,op50:"","hover:underline":""},null,8,["filepath"]),d("div",J,[(s(!0),u(M,null,w(b,A=>(s(),I(o,{key:A.as,item:A,metadata:l.metadata,filepath:t.match(/^[\w@]/)?void 0:t},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),O={key:0,flex:"~ col gap-2 items-start"},Q=x({__name:"HelpImportsDirs",setup(y){const l=k();return(c,r)=>{const o=B;return e(l)?.dirs?(s(),u("div",O,[(s(!0),u(M,null,w(e(l).dirs,t=>(s(),I(o,{key:t,filepath:t,"text-primary":""},null,8,["filepath"]))),128))])):v("",!0)}}}),W={flex:"~ gap-2 wrap",mb6:""},Z=x({__name:"HelpImportsModules",setup(y){const l=k(),c=g(()=>[...new Set(l.value?.imports.map(r=>C(r.from)).filter(r=>!!r&&!L(r)))]);return(r,o)=>(s(),u("div",W,[(s(!0),u(M,null,w(e(c),t=>(s(),u("code",{key:t,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},X(t),1))),128))]))}}),ee={class:"markdown-body"},oe={__name:"imports",setup(y,{expose:l}){return l({frontmatter:{}}),(r,o)=>{const t=Q,b=Z;return s(),u("div",ee,[o[0]||(o[0]=d("h1",null,"Auto imports",-1)),o[1]||(o[1]=d("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)),o[2]||(o[2]=d("hr",null,null,-1)),o[3]||(o[3]=d("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),m(t),o[4]||(o[4]=d("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),m(b),o[5]||(o[5]=d("hr",null,null,-1)),o[6]||(o[6]=d("p",null,[d("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},te=oe,ne={key:0,relative:"","h-full":"","of-auto":""},se={key:0,flex:"~ gap-2 items-center"},be=x({__name:"imports",setup(y){const l=U(),c=D("all"),r=D(""),o=k(),t=g(()=>o.value?.metadata),b=g(()=>o.value?.imports.filter(a=>a.as||a.name).sort((a,p)=>(a.as||a.name).localeCompare(p.as||p.name))||[]),A=g(()=>new z(b.value,{keys:["from","as","name"]})),i=g(()=>{const a=new Map,p=new Map,S=new Map;let f=r.value?A.value.search(r.value).map(n=>n.item):b.value;c.value==="using"&&t.value?f=f.filter(n=>(n.as||n.name)in t.value.injectionUsage):c.value==="not-used"&&t.value&&(f=f.filter(n=>!((n.as||n.name)in t.value.injectionUsage)));const $={user:0,lib:0,builtin:0};return f.forEach(n=>{const _=H(n.from)?L(C(n.from))?S:p:a;_.has(n.from)||_.set(n.from,[]),_.get(n.from).push(n),$[_===a?"user":_===p?"lib":"builtin"]++}),{user:a,lib:p,builtin:S,count:$}});return(a,p)=>{const S=j,f=P,$=R,n=K,_=q,F=te,V=G;return s(),u(M,null,[e(l)?(s(),u("div",ne,[m($,{search:e(r),"onUpdate:search":p[1]||(p[1]=T=>N(r)?r.value=T:null),pb3:""},{default:h(()=>[e(t)?(s(),u("div",se,[m(S,{icon:"carbon-filter",op50:""}),m(f,{modelValue:e(c),"onUpdate:modelValue":p[0]||(p[0]=T=>N(c)?c.value=T:null),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])):v("",!0)]),_:1},8,["search"]),e(i).user.size?(s(),I(_,{key:0,open:e(i).count.user<=("DETAILS_MAX_ITEMS"in a?a.DETAILS_MAX_ITEMS:e(E)),icon:"carbon-function",text:"User composables",description:`${e(i).count.user} composables from ${e(i).user.size} modules`},{default:h(()=>[m(n,{map:e(i).user,root:e(l).rootDir,metadata:e(t)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):v("",!0),e(i).builtin.size?(s(),I(_,{key:1,open:e(i).count.builtin<=("DETAILS_MAX_ITEMS"in a?a.DETAILS_MAX_ITEMS:e(E)),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${e(i).count.builtin} composables`},{default:h(()=>[m(n,{map:e(i).builtin,root:e(l).rootDir,metadata:e(t)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):v("",!0),e(i).lib.size?(s(),I(_,{key:2,open:e(i).count.lib<=("DETAILS_MAX_ITEMS"in a?a.DETAILS_MAX_ITEMS:e(E)),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${e(i).count.lib} composables from ${e(i).lib.size} packages`},{default:h(()=>[m(n,{map:e(i).lib,root:e(l).rootDir,metadata:e(t)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):v("",!0)])):v("",!0),m(V,null,{default:h(()=>[m(F)]),_:1})],64)}}});export{be as default};
@@ -1 +0,0 @@
1
- import{d as j,a as V,r as S,o,m as u,k as e,F as f,n as E,D as F,f as i,t as v,p as w,E as U,i as m,j as d,v as y,G as D,H as I,I as q,J as R,K as G,_ as L,L as h,M as ee,N as ne,O as te,P as le,Q as ie,R as oe,S as re,U as k,h as B,l as P,V as se,W as ue,X as ae,y as de}from"./Bysyzw-g.js";import{_ as me}from"./CQTsRCSt.js";import{_ as pe}from"./CdlRa3-_.js";import{_ as fe}from"./ZTJOnUjs.js";import{_ as ve}from"./WFxqX3Wd.js";import"./DK4YETzW.js";const ye={"h-full":"",grid:"~ rows-[max-content_1fr]"},ce={flex:"~ wrap","w-full":""},be=["onClick"],xe={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},ge={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},we=j({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(N){const c=N,$=`${q().app.baseURL}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),b=V(()=>{const l=[{name:"Overview",id:"overview"}];return c.current.features.bundleClient&&l.push({name:"Client Bundle",id:"bundle-client"}),c.current.features.bundleNitro&&l.push({name:"Nitro Bundle",id:"bundle-nitro"}),c.current.features.viteInspect&&l.push({name:"Vite Inspect",id:"vite-inspect"}),l}),s=S(b.value[0]);function x(l){return l<1024?`${l}B`:l<1024*1024?`${(l/1024).toFixed(1)}KB`:l<1024*1024*1024?`${(l/1024/1024).toFixed(1)}MB`:`${(l/1024/1024/1024).toFixed(1)}GB`}function p(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}async function T(l){return R.clearAnalyzeBuilds(await G(),[l])}return(l,n)=>{const C=me,A=L;return o(),u("div",ye,[e("div",ce,[(o(!0),u(f,null,E(i(b),(r,t)=>(o(),u("button",{key:t,px4:"",py2:"",border:"r base",hover:"bg-active",class:F(r.id===i(s).id?"":"border-b"),onClick:_=>s.value=r},[e("div",{class:F(r.id===i(s).id?"":"op30")},v(r.name),3)],10,be))),128)),n[1]||(n[1]=e("div",{border:"b base","flex-auto":""},null,-1))]),i(s).id==="overview"?(o(),u("div",xe,[n[15]||(n[15]=e("div",{"flex-auto":""},null,-1)),e("div",ge,[n[10]||(n[10]=e("div",{"i-carbon-commit":"","text-xl":""},null,-1)),e("div",null,[n[2]||(n[2]=e("div",{"text-sm":"",op50:""}," Name ",-1)),e("div",null,v(l.current.name),1)]),n[11]||(n[11]=e("div",{"i-carbon-time":"","text-xl":""},null,-1)),e("div",null,[n[3]||(n[3]=e("div",{"text-sm":"",op50:""}," Build duration ",-1)),e("div",null,v(p(l.current)),1)]),l.current.size?.clientBundle?(o(),u(f,{key:0},[n[5]||(n[5]=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1)),e("div",null,[n[4]||(n[4]=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1)),e("div",null,v(x(l.current.size.clientBundle)),1)])],64)):w("",!0),l.current.size.nitroBundle?(o(),u(f,{key:1},[n[7]||(n[7]=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1)),e("div",null,[n[6]||(n[6]=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1)),e("div",null,v(x(l.current.size.nitroBundle)),1)])],64)):w("",!0),n[12]||(n[12]=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1)),e("div",null,[n[8]||(n[8]=e("div",{"text-sm":"",op50:""}," Built ",-1)),e("div",null,v(i(U)(new Date(l.current.endTime))),1)]),n[13]||(n[13]=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1)),e("div",null,[n[9]||(n[9]=e("div",{"text-sm":"",op50:""}," Report Path ",-1)),m(C,{filepath:l.current.analyzeDir},null,8,["filepath"])])]),n[16]||(n[16]=e("div",{"flex-auto":""},null,-1)),m(A,{n:"rose",icon:"carbon-delete",onClick:n[0]||(n[0]=r=>T(l.current.name))},{default:d(()=>n[14]||(n[14]=[y(" Delete this report ")])),_:1})])):w("",!0),n._lazyshow1||i(s).id==="bundle-client"?(n._lazyshow1=!0,o(),u(f,null,[D(e("iframe",{src:`${i($)}${l.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,i(s).id==="bundle-client"]])],64)):w("v-show-if",!0),n._lazyshow2||i(s).id==="bundle-nitro"?(n._lazyshow2=!0,o(),u(f,null,[D(e("iframe",{src:`${i($)}${l.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,i(s).id==="bundle-nitro"]])],64)):w("v-show-if",!0),n._lazyshow3||i(s).id==="vite-inspect"?(n._lazyshow3=!0,o(),u(f,null,[D(e("iframe",{src:`${i($)}${l.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[I,i(s).id==="vite-inspect"]])],64)):w("v-show-if",!0)])}}}),ze={class:"markdown-body"},$e={__name:"analyze-build",setup(N,{expose:c}){return c({frontmatter:{}}),($,b)=>(o(),u("div",ze,b[0]||(b[0]=[e("h1",null,"Build Analyze",-1),e("p",null,[y("DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command "),e("code",null,"nuxt build --analyze"),y(" and present the output data directly in DevTools for easy browsing and comparing.")],-1)])))}},_e=$e,Be={flex:"~ col"},Ce=["onClick"],ke={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},Ne={flex:"~ items-center justify-center wrap",p4:""},Te={flex:"~ col gap-1","w-250":"",p4:""},Ae={flex:"~ gap-3",mt2:"","justify-end":""},Pe=j({__name:"analyze-build",setup(N){const c=h(),z=ee(),$=ne(),b=te("analyze-build:slug",""),s=V(()=>z.value?.builds.find(r=>r.slug===b.value)??z.value?.builds[0]),x=S(!1),p=S(""),T=V(()=>z.value?.builds.some(r=>r.name===p.value.trim()));async function l(){p.value=await R.generateAnalyzeBuildName(),await c.start()&&(re("analyze-build:start"),k.value={name:p.value,processId:await R.startAnalyzeBuild(await G(),p.value)},x.value&&C())}const n=le();function C(){k.value?.processId&&(n.value=k.value.processId,$.push("/modules/terminals"))}function A(r){return`${((r.endTime-r.startTime)/1e3).toFixed(1)}s`}return ie(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:l}]),(r,t)=>{const _=L,O=we,H=de,K=oe,M=se,W=ue,J=pe,Q=fe,X=ae,Y=_e,Z=ve;return o(),u(f,null,[m(K,{"left-size":30},{left:d(()=>[e("div",Be,[(o(!0),u(f,null,E(i(z)?.builds,a=>(o(),u(f,{key:a.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:F(a.slug===i(s)?.slug?"text-primary bg-active":""),onClick:g=>b.value=a.slug},[e("code",null,v(a.name),1),e("div",ke,[t[4]||(t[4]=e("div",{"i-carbon-time":""},null,-1)),e("span",null,v(A(a)),1),t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("span",null,v(i(U)(new Date(a.endTime))),1)])],10,Ce),t[6]||(t[6]=e("div",{"x-divider":""},null,-1))],64))),128)),e("div",Ne,[("processAnalyzeBuildInfo"in r?r.processAnalyzeBuildInfo:i(k))?(o(),B(_,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:t[1]||(t[1]=a=>C())},{default:d(()=>t[8]||(t[8]=[y(" Building... ")])),_:1})):(o(),B(_,{key:0,n:"primary",icon:"carbon-edge-node",onClick:t[0]||(t[0]=a=>l())},{default:d(()=>t[7]||(t[7]=[y(" Start a new build ")])),_:1}))])])]),right:d(()=>[i(s)?(o(),B(O,{key:0,current:i(s)},null,8,["current"])):(o(),B(H,{key:1}))]),_:1}),m(i(c),null,{default:d(({resolve:a})=>[m(X,{"model-value":!0,onClose:g=>a(!1)},{default:d(()=>[e("div",Te,[t[13]||(t[13]=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1)),t[14]||(t[14]=e("p",{op50:""}," Enter the name of the build: ",-1)),m(M,{modelValue:i(p),"onUpdate:modelValue":t[2]||(t[2]=g=>P(p)?p.value=g:null),placeholder:"Build name"},null,8,["modelValue"]),i(T)?(o(),B(W,{key:0,"n-orange":""},{default:d(()=>t[9]||(t[9]=[y(" A build with the same name already exists, continue would overrides the previous build result. ")])),_:1})):w("",!0),t[15]||(t[15]=e("div",{my3:"","x-divider":""},null,-1)),t[16]||(t[16]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),m(J,{code:`npx nuxi analyze --no-serve --name=${i(p)}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),m(Q,{modelValue:i(x),"onUpdate:modelValue":t[3]||(t[3]=g=>P(x)?x.value=g:null),mt2:"",n:"primary"},{default:d(()=>t[10]||(t[10]=[y(" Navigate to terminal ")])),_:1},8,["modelValue"]),e("div",Ae,[m(_,{onClick:g=>a(!1)},{default:d(()=>t[11]||(t[11]=[y(" Cancel ")])),_:2},1032,["onClick"]),m(_,{n:"solid primary",onClick:g=>a(!0)},{default:d(()=>t[12]||(t[12]=[y(" Start ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),m(Z,null,{default:d(()=>[m(Y)]),_:1})],64)}}});export{Pe as default};
@@ -1 +0,0 @@
1
- import{d as L,r as E,a as k,as as W,f as t,o,m as s,k as e,t as w,h as y,j as x,bd as q,F as v,n as B,p as P,i as f,v as T,D as M,V as A,_ as H,aa as J,be as D,a$ as G,b0 as Q,a9 as X,ao as Y,b1 as Z,aq as ee,l as te,ac as ne,J as oe,K as ae}from"./Bysyzw-g.js";import{_ as j}from"./CpQX28Pm.js";import{_ as F}from"./CQTsRCSt.js";import{_ as se}from"./C6_B1_1h.js";import{_ as re}from"./COjmv9fs.js";import{_ as le}from"./WFxqX3Wd.js";import"./CXTghDHT.js";import"./goeoWIau.js";import"./DK4YETzW.js";const ue={block:"","cursor-pointer":""},ie={p2:""},de=["onSubmit"],pe={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},ce={key:1},me=L({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:i}){const h=V,$=i,m=E([]),_=k(()=>{const d=N(h.route.path);return m.value=Array.from({length:d.length},()=>""),d});function N(d){return d.split(/(:\w+[?*]?(?:\(\))?)/).filter(Boolean).map(p=>p[0]===":"?p.replace(/\(\)$/,"?"):p)}const r=k(()=>_.value.map((d,p)=>d[0]===":"?m.value[p]:d).join("").replace(/\/+/g,"/")),n=k(()=>h.route.path.includes(":"));function g(){$("navigate",r.value)}return(d,p)=>{const a=A,u=H,c=W("VDropdown");return t(n)?(o(),y(c,{key:1},{popper:x(({hide:l})=>[e("div",ie,[e("form",{flex:"~ col",onSubmit:q(()=>{g(),l()},["prevent"])},[t(n)?(o(),s(v,{key:0},[p[0]||(p[0]=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),e("div",pe,[(o(!0),s(v,null,B(t(_),(b,R)=>(o(),s(v,{key:R},[b[0]===":"?(o(),y(a,{key:0,modelValue:t(m)[R],"onUpdate:modelValue":I=>t(m)[R]=I,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",ce,w(b),1))],64))),128))])],64)):P("",!0),f(u,{type:"submit",block:"",n:"primary"},{default:x(()=>p[1]||(p[1]=[T(" Navigate ")])),_:1})],40,de)])]),default:x(()=>[e("code",ue,[(o(!0),s(v,null,B(t(_),(l,b)=>(o(),s("span",{key:b,class:M(l[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},w(l[0]===":"?l.slice(1):l),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:g},[e("code",null,w(d.route.path),1)]))}}}),he={"w-full":""},_e={"w-20":"","pr-1":""},fe={flex:"","items-center":"","justify-end":""},ge={"text-sm":""},ve={flex:"inline gap3","items-center":""},ye={op0:"","group-hover:op100":"",flex:"~ gap1"},be=["onClick"],xe={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},ke={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},we={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},$e={key:0},Ne=["onClick"],Re=L({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const i=V,h=J(),$=D(),m=k(()=>[...i.pages].sort((r,n)=>r.path.localeCompare(n.path)));function _(r){const n=i.layouts.find(g=>g.name===r);n&&h(n.file)}function N(r){if(typeof r=="string")return $.value?.middleware.find(n=>n.name===r)?.path}return(r,n)=>{const g=j,d=me,p=F;return o(),s("div",null,[e("table",he,[n[3]||(n[3]=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1)),e("tbody",null,[(o(!0),s(v,null,B(t(m),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",_e,[e("div",fe,[r.matched.find(u=>u.name===a.name)?(o(),y(g,{key:0,n:"green",title:"active",textContent:"active"})):r.matchedPending.find(u=>u.name===a.name)?(o(),y(g,{key:1,n:"teal",title:"next",textContent:"next"})):P("",!0)])]),e("td",ge,[e("div",ve,[f(d,{route:a,class:M(r.matched.find(u=>u.name===a.name)?"text-primary":r.matchedPending.find(u=>u.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=u=>r.$emit("navigate",u))},null,8,["route","class"]),e("div",ye,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:u=>t(h)(a.file||a.meta?.file)},n[2]||(n[2]=[e("div",{"i-carbon-script-reference":""},null,-1)]),8,be)):P("",!0)])])]),e("td",xe,w(a.name),1),e("td",ke,[f(p,{filepath:N(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",we,[a.meta.layout===!1?(o(),s("span",$e,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:u=>_(a.meta.layout)},w(a.meta.layout),9,Ne)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=u=>_("default"))}," (default) "))])]))),128))])])])}}}),Ce={class:"markdown-body"},Pe={__name:"pages",setup(V,{expose:i}){return i({frontmatter:{}}),($,m)=>(o(),s("div",Ce,m[0]||(m[0]=[e("h1",null,"Pages",-1),e("p",null,[T("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),T(" directory.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),e("hr",null,null,-1),e("h1",null,"Middlewares",-1),e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},Ve=Pe,Ie={key:0,"h-full":"","of-auto":""},Te={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Be={"font-mono":""},Ee={key:1,op50:""},Le={key:0,"text-orange":"",op75:""},Me={key:1,op50:""},Ae={"min-h-14":""},De={key:1,class:"py-4 text-center"},je={"w-full":""},Fe={mr1:""},Ge=L({__name:"pages",setup(V){const i=G(),h=Q(),$=X(),m=D(),_=Y(),N=Z(),r=k(()=>m.value?.middleware||[]),n=E(""),g=E(0),d=k(()=>(r.value,n.value,_.value,g.value,i.value?.currentRoute?.value?.path));ee(()=>{h.value&&(n.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(c=>{n.value=c.fullPath}),i.value?.afterEach(c=>{n.value=c.fullPath})});async function p(){n.value!==i.value?.currentRoute?.value?.path&&i.value.push(n.value||"/")}const a=k(()=>i.value.resolve(n.value||"/").matched);function u(c){i.value.push(c),n.value=c}return(c,l)=>{const b=A,R=Re,I=se,S=j,z=F,K=re,U=Ve,O=le;return o(),s(v,null,[t($)?.pages&&t(i)?(o(),s("div",Ie,[e("div",Te,[e("div",null,[t(d)!==t(n)?(o(),s(v,{key:0},[l[1]||(l[1]=e("span",{op50:""},"Navigate from ",-1)),e("span",Be,w(t(d)),1),l[2]||(l[2]=e("span",{op50:""}," to ",-1))],64)):(o(),s("span",Ee,"Current route"))]),f(b,{modelValue:t(n),"onUpdate:modelValue":l[0]||(l[0]=C=>te(n)?n.value=C:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:M(t(d)===t(n)?"":t(a).length?"text-green":"text-orange"),onKeydown:ne(p,["enter"])},null,8,["modelValue","class"]),e("div",null,[t(d)!==t(n)?(o(),s(v,{key:0},[l[3]||(l[3]=e("span",null,[T("Press "),e("b",{"font-bold":""},"Enter"),T(" to navigate")],-1)),t(a).length?P("",!0):(o(),s("span",Le," (no match)"))],64)):(o(),s("span",Me,"Edit path above to navigate"))])]),f(I,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:x(()=>[e("div",Ae,[t(a).length?(o(),y(R,{key:0,pages:t(a),layouts:t(_)||[],matched:t(h).matched,"matched-pending":t(a),onNavigate:u},null,8,["pages","layouts","matched","matched-pending"])):(o(),s("div",De,l[4]||(l[4]=[e("span",{op50:""},"No routes matched",-1)])))])]),_:1}),f(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(N).length} routes registered in your application`,padding:"pr5"},{default:x(()=>[f(R,{pages:t(N),layouts:t(_)||[],matched:t(h).matched,"matched-pending":t(a),onNavigate:u},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),y(I,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:x(()=>[e("table",je,[l[5]||(l[5]=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1)),(o(!0),s(v,null,B(t(r),C=>(o(),s("tr",{key:C.path,"h-7":""},[e("td",null,[e("span",Fe,w(C.name),1),C.global?(o(),y(S,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):P("",!0)]),e("td",null,[f(z,{filepath:C.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):P("",!0)])):(o(),y(K,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in c?c.rpc:t(oe)).runWizard(await("ensureDevAuthToken"in c?c.ensureDevAuthToken:t(ae))(),"enablePages")}}]},null,8,["actions"])),f(O,null,{default:x(()=>[f(U)]),_:1})],64)}}});export{Ge as default};
@@ -1 +0,0 @@
1
- import{d as m,r as c,f as o,m as s,k as i,i as a,j as u,aR as d,F as k,p as l,o as n,a8 as v,z as g,_}from"./Bysyzw-g.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":""},h=m({__name:"HelpFab",setup(w){const t=c(!1),{showHelpButtons:p}=g();return(b,e)=>{const f=_;return o(p)?(n(),s(k,{key:0},[i("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]=r=>t.value=!o(t))},e[3]||(e[3]=[i("div",{"i-ri:question-mark":""},null,-1)])),a(d,{name:"fade-in"},{default:u(()=>[o(t)?(n(),s("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]=r=>t.value=!1)})):l("",!0)]),_:1}),a(d,{name:"slide-in"},{default:u(()=>[o(t)?(n(),s("div",x,[v(b.$slots,"default"),a(f,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=r=>t.value=!1)})])):l("",!0)]),_:3})],64)):l("",!0)}}});export{h as _};
@@ -1 +0,0 @@
1
- import{q as a,s as i,o as u,m as l,k as t,t as o,i as c,j as d,v as p,x as f}from"./Bysyzw-g.js";const g={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},b={class:"max-w-520px text-center z-20"},x=["textContent"],h=["textContent"],m={class:"w-full flex items-center justify-center"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const n=e;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,r)=>{const s=f;return u(),l("div",g,[r[0]||(r[0]=t("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),t("div",b,[t("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:o(e.statusCode)},null,8,x),t("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:o(e.description)},null,8,h),t("div",m,[c(s,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:d(()=>[p(o(e.backHome),1)]),_:1})])])])}}},_=a(y,[["__scopeId","data-v-c66f19f0"]]);export{_ as default};