@nuxt/devtools 1.0.1 → 1.0.2

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 (86) hide show
  1. package/dist/chunks/module-main.mjs +1 -1
  2. package/dist/chunks/timeline.mjs +6 -2
  3. package/dist/client/200.html +16 -16
  4. package/dist/client/404.html +16 -16
  5. package/dist/client/__blank/index.html +16 -16
  6. package/dist/client/_nuxt/{CodeDiff.vue.72250861.js → CodeDiff.vue.495a2700.js} +1 -1
  7. package/dist/client/_nuxt/{ComposableItem.vue.5fcac467.js → ComposableItem.vue.09c56ec4.js} +1 -1
  8. package/dist/client/_nuxt/{DataSchemaButton.vue.b4fc42f9.js → DataSchemaButton.vue.058ff215.js} +1 -1
  9. package/dist/client/_nuxt/{DataSchemaDrawer.ecd92b92.js → DataSchemaDrawer.d62bbda3.js} +1 -1
  10. package/dist/client/_nuxt/{DurationDisplay.vue.7b02ae9f.js → DurationDisplay.vue.e7d2f90b.js} +1 -1
  11. package/dist/client/_nuxt/{FilepathItem.vue.6cdabcd4.js → FilepathItem.vue.feb8a13c.js} +1 -1
  12. package/dist/client/_nuxt/{HelpFab.vue.31b87f2a.js → HelpFab.vue.70bfd8f0.js} +1 -1
  13. package/dist/client/_nuxt/{LaunchPage.vue.06fcb257.js → LaunchPage.vue.68d99ad2.js} +1 -1
  14. package/dist/client/_nuxt/{NBadge.681f2fb6.js → NBadge.b912de36.js} +1 -1
  15. package/dist/client/_nuxt/{NCheckbox.vue.23790c32.js → NCheckbox.vue.a65a9466.js} +1 -1
  16. package/dist/client/_nuxt/{NCodeBlock.vue.7cb5f01d.js → NCodeBlock.vue.c114d969.js} +1 -1
  17. package/dist/client/_nuxt/{NDrawer.vue.15b4d748.js → NDrawer.vue.4bcebe5d.js} +1 -1
  18. package/dist/client/_nuxt/{NDropdown.vue.54157271.js → NDropdown.vue.32f13066.js} +1 -1
  19. package/dist/client/_nuxt/{NIconTitle.vue.2d1e44fb.js → NIconTitle.vue.dcd70230.js} +1 -1
  20. package/dist/client/_nuxt/{NLink.vue.e913f358.js → NLink.vue.353afc82.js} +1 -1
  21. package/dist/client/_nuxt/{NMarkdown.vue.20899182.js → NMarkdown.vue.4e215b1f.js} +1 -1
  22. package/dist/client/_nuxt/{NNavbar.vue.c506a970.js → NNavbar.vue.29f03776.js} +1 -1
  23. package/dist/client/_nuxt/{NSectionBlock.d66bb8c4.js → NSectionBlock.56f7fa97.js} +1 -1
  24. package/dist/client/_nuxt/{NSelect.vue.9e5ebac9.js → NSelect.vue.d4b5d548.js} +1 -1
  25. package/dist/client/_nuxt/{NSelectTabs.vue.9bf6517b.js → NSelectTabs.vue.f4ae464e.js} +1 -1
  26. package/dist/client/_nuxt/{NSwitch.vue.2e265fe1.js → NSwitch.vue.95382b67.js} +1 -1
  27. package/dist/client/_nuxt/{NTip.vue.51a4b91d.js → NTip.vue.fbfe6de9.js} +1 -1
  28. package/dist/client/_nuxt/{StateEditor.vue.420289e1.js → StateEditor.vue.9d7dcb3f.js} +1 -1
  29. package/dist/client/_nuxt/{__blank.95ba7574.js → __blank.961dc152.js} +1 -1
  30. package/dist/client/_nuxt/{analyze-build.5b09c13b.js → analyze-build.29ca822b.js} +1 -1
  31. package/dist/client/_nuxt/{assets.f0ad2218.js → assets.5182b2b7.js} +1 -1
  32. package/dist/client/_nuxt/builds/latest.json +1 -1
  33. package/dist/client/_nuxt/builds/meta/9c2bc90a-5134-40c2-becb-286bd0304a77.json +1 -0
  34. package/dist/client/_nuxt/{client.b2473ec3.js → client.4841a079.js} +1 -1
  35. package/dist/client/_nuxt/{components.dcc368d1.js → components.3821affe.js} +1 -1
  36. package/dist/client/_nuxt/{custom-_name_.129bf0b8.js → custom-_name_.45e0e481.js} +1 -1
  37. package/dist/client/_nuxt/{default.b857d80c.js → default.551695d6.js} +1 -1
  38. package/dist/client/_nuxt/{entry.7cb87d02.js → entry.5d59ff5c.js} +8 -8
  39. package/dist/client/_nuxt/{error-404.6518563d.js → error-404.c4b39504.js} +1 -1
  40. package/dist/client/_nuxt/{error-500.94c551da.js → error-500.4029de92.js} +1 -1
  41. package/dist/client/_nuxt/{full.169e4977.js → full.b09bb7d2.js} +1 -1
  42. package/dist/client/_nuxt/{hooks.f1018405.js → hooks.ad652487.js} +1 -1
  43. package/dist/client/_nuxt/{imports.dda10442.js → imports.779c7207.js} +1 -1
  44. package/dist/client/_nuxt/{index.05d4e5a2.js → index.07112662.js} +1 -1
  45. package/dist/client/_nuxt/{index.02ce2a44.js → index.8874e47c.js} +1 -1
  46. package/dist/client/_nuxt/{json-editor-vue.b5b3ad21.js → json-editor-vue.b1851782.js} +1 -1
  47. package/dist/client/_nuxt/{modules.25c79d85.js → modules.53d23733.js} +1 -1
  48. package/dist/client/_nuxt/{none.cebdb11e.js → none.48f4e2a5.js} +1 -1
  49. package/dist/client/_nuxt/{open-graph.4871f819.js → open-graph.545307be.js} +1 -1
  50. package/dist/client/_nuxt/{overview.a8b5c91e.js → overview.60692331.js} +1 -1
  51. package/dist/client/_nuxt/{pages.b6c85de5.js → pages.065c5174.js} +1 -1
  52. package/dist/client/_nuxt/{payload.5d97df2d.js → payload.f3ad6ba9.js} +1 -1
  53. package/dist/client/_nuxt/{plugins.f3bd0c25.js → plugins.97361fa6.js} +1 -1
  54. package/dist/client/_nuxt/{runtime-configs.92408de9.js → runtime-configs.04157e18.js} +1 -1
  55. package/dist/client/_nuxt/{server-routes.90d653e7.js → server-routes.631067b9.js} +1 -1
  56. package/dist/client/_nuxt/{settings.9790bb1a.js → settings.72bdb2b5.js} +1 -1
  57. package/dist/client/_nuxt/{state-components.ca15f9b7.js → state-components.9496e3b2.js} +1 -1
  58. package/dist/client/_nuxt/{state-modules.c1654bb7.js → state-modules.3599ee72.js} +1 -1
  59. package/dist/client/_nuxt/{storage-options.035e7403.js → storage-options.5fca38da.js} +1 -1
  60. package/dist/client/_nuxt/{storage.c7339fe7.js → storage.be53a14a.js} +1 -1
  61. package/dist/client/_nuxt/{terminals.41bf8c60.js → terminals.ad730beb.js} +1 -1
  62. package/dist/client/_nuxt/{timeline.ed636d87.js → timeline.b8cc1d67.js} +1 -1
  63. package/dist/client/_nuxt/{unocss-runtime.16c4cc56.js → unocss-runtime.55c74b5c.js} +1 -1
  64. package/dist/client/_nuxt/{virtual-files.7d0bcad0.js → virtual-files.7fd05201.js} +1 -1
  65. package/dist/client/index.html +16 -16
  66. package/dist/client/modules/analyze-build/index.html +16 -16
  67. package/dist/client/modules/assets/index.html +16 -16
  68. package/dist/client/modules/components/index.html +16 -16
  69. package/dist/client/modules/hooks/index.html +16 -16
  70. package/dist/client/modules/imports/index.html +16 -16
  71. package/dist/client/modules/modules/index.html +16 -16
  72. package/dist/client/modules/open-graph/index.html +16 -16
  73. package/dist/client/modules/overview/index.html +16 -16
  74. package/dist/client/modules/pages/index.html +16 -16
  75. package/dist/client/modules/payload/index.html +16 -16
  76. package/dist/client/modules/plugins/index.html +16 -16
  77. package/dist/client/modules/runtime-configs/index.html +16 -16
  78. package/dist/client/modules/server-routes/index.html +16 -16
  79. package/dist/client/modules/storage/index.html +16 -16
  80. package/dist/client/modules/terminals/index.html +16 -16
  81. package/dist/client/modules/timeline/index.html +16 -16
  82. package/dist/client/modules/virtual-files/index.html +16 -16
  83. package/dist/client/settings/index.html +16 -16
  84. package/dist/module.json +1 -1
  85. package/package.json +7 -7
  86. package/dist/client/_nuxt/builds/meta/10bb1edc-fde3-4c52-91c9-404c411ae86d.json +0 -1
@@ -1 +1 @@
1
- import{d as R,a as V,r as S,o,m as i,k as e,F as c,n as E,G as F,f as n,t as m,p as b,H as G,i as r,j as a,v as _,I as A,J as D,K as P,L as U,_ as L,M as q,N as ee,O as te,P as ne,Q as oe,R as le,S as ie,U as se,V as k,h as w,l as j,W as ae,X as re,A as ue}from"./entry.7cb87d02.js";import{_ as de}from"./FilepathItem.vue.6cdabcd4.js";import{_ as ce}from"./NTip.vue.51a4b91d.js";import{_ as me}from"./NCodeBlock.vue.7cb5f01d.js";import{_ as _e}from"./NCheckbox.vue.23790c32.js";import{_ as pe}from"./HelpFab.vue.31b87f2a.js";import"./client.b2473ec3.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ve={flex:"~ wrap","w-full":""},he=["onClick"],ye=e("div",{border:"b base","flex-auto":""},null,-1),be={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},$e=e("div",{"flex-auto":""},null,-1),xe={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge=e("div",{"i-carbon-commit":"","text-xl":""},null,-1),we=e("div",{"text-sm":"",op50:""}," Name ",-1),ze=e("div",{"i-carbon-time":"","text-xl":""},null,-1),Be=e("div",{"text-sm":"",op50:""}," Build duration ",-1),ke=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1),Ce=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1),Ne=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1),Te=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1),Ae=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1),De=e("div",{"text-sm":"",op50:""}," Built ",-1),Ie=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1),Ve=e("div",{"text-sm":"",op50:""}," Report Path ",-1),Se=e("div",{"flex-auto":""},null,-1),I="/__nuxt_devtools__/analyze/",Fe=R({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(C){const p=C,f=V(()=>{const t=[{name:"Overview",id:"overview"}];return p.current.features.bundleClient&&t.push({name:"Client Bundle",id:"bundle-client"}),p.current.features.bundleNitro&&t.push({name:"Nitro Bundle",id:"bundle-nitro"}),p.current.features.viteInspect&&t.push({name:"Vite Inspect",id:"vite-inspect"}),t}),l=S(f.value[0]);function $(t){return t<1024?`${t}B`:t<1024*1024?`${(t/1024).toFixed(1)}KB`:t<1024*1024*1024?`${(t/1024/1024).toFixed(1)}MB`:`${(t/1024/1024/1024).toFixed(1)}GB`}function g(t){return`${((t.endTime-t.startTime)/1e3).toFixed(1)}s`}async function x(t){return P.clearAnalyzeBuilds(await U(),[t])}return(t,u)=>{const z=de,N=L;return o(),i("div",fe,[e("div",ve,[(o(!0),i(c,null,E(n(f),(v,T)=>(o(),i("button",{key:T,px4:"",py2:"",border:"r base",hover:"bg-active",class:F(v.id===n(l).id?"":"border-b"),onClick:d=>l.value=v},[e("div",{class:F(v.id===n(l).id?"":"op30")},m(v.name),3)],10,he))),128)),ye]),n(l).id==="overview"?(o(),i("div",be,[$e,e("div",xe,[ge,e("div",null,[we,e("div",null,m(t.current.name),1)]),ze,e("div",null,[Be,e("div",null,m(g(t.current)),1)]),t.current.size?.clientBundle?(o(),i(c,{key:0},[ke,e("div",null,[Ce,e("div",null,m($(t.current.size.clientBundle)),1)])],64)):b("",!0),t.current.size.nitroBundle?(o(),i(c,{key:1},[Ne,e("div",null,[Te,e("div",null,m($(t.current.size.nitroBundle)),1)])],64)):b("",!0),Ae,e("div",null,[De,e("div",null,m(n(G)(new Date(t.current.endTime))),1)]),Ie,e("div",null,[Ve,r(z,{filepath:t.current.analyzeDir},null,8,["filepath"])])]),Se,r(N,{n:"rose",icon:"carbon-delete",onClick:u[0]||(u[0]=v=>x(t.current.name))},{default:a(()=>[_(" Delete this report ")]),_:1})])):b("",!0),u._lazyshow1||n(l).id==="bundle-client"?(u._lazyshow1=!0,o(),i(c,null,[A(e("iframe",{src:`${I}${t.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,n(l).id==="bundle-client"]])],64)):b("v-show-if",!0),u._lazyshow2||n(l).id==="bundle-nitro"?(u._lazyshow2=!0,o(),i(c,null,[A(e("iframe",{src:`${I}${t.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,n(l).id==="bundle-nitro"]])],64)):b("v-show-if",!0),u._lazyshow3||n(l).id==="vite-inspect"?(u._lazyshow3=!0,o(),i(c,null,[A(e("iframe",{src:`${I}${t.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[D,n(l).id==="vite-inspect"]])],64)):b("v-show-if",!0)])}}}),Pe={class:"markdown-body"},je=e("h1",null,"Build Analyze",-1),Re=e("p",null,[_("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"),_(" and present the output data directly in DevTools for easy browsing and comparing.")],-1),Ee=[je,Re],Ge={__name:"analyze-build",setup(C,{expose:p}){return p({frontmatter:{}}),(l,$)=>(o(),i("div",Pe,Ee))}},Ue={flex:"~ col"},Le=["onClick"],Oe={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},He=e("div",{"i-carbon-time":""},null,-1),Ke=e("div",{"flex-auto":""},null,-1),Me=e("div",{"x-divider":""},null,-1),We={flex:"~ items-center justify-center wrap",p4:""},Je={flex:"~ col gap-1","w-250":"",p4:""},Qe=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1),Xe=e("p",{op50:""}," Enter the name of the build: ",-1),Ye=e("div",{my3:"","x-divider":""},null,-1),Ze=e("p",{op50:""}," The following command will be executed in your terminal: ",-1),qe={flex:"~ gap-3",mt2:"","justify-end":""},at=R({__name:"analyze-build",setup(C){const p=q(),f=ee(),l=te(),$=ne("analyze-build:slug",""),g=V(()=>f.value?.builds.find(d=>d.slug===$.value)??f.value?.builds[0]),x=S(!1),t=S(""),u=V(()=>f.value?.builds.some(d=>d.name===t.value.trim()));async function z(){t.value=await P.generateAnalyzeBuildName(),await p.start()&&(se("analyze-build:start"),k.value={name:t.value,processId:await P.startAnalyzeBuild(await U(),t.value)},x.value&&v())}const N=oe();function v(){k.value?.processId&&(N.value=k.value.processId,l.push("/modules/terminals"))}function T(d){return`${((d.endTime-d.startTime)/1e3).toFixed(1)}s`}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:z}]),(d,h)=>{const B=L,O=Fe,H=ue,K=ie,M=ae,W=ce,J=me,Q=_e,X=re,Y=Ge,Z=pe;return o(),i(c,null,[r(K,{"left-size":30},{left:a(()=>[e("div",Ue,[(o(!0),i(c,null,E(n(f)?.builds,s=>(o(),i(c,{key:s.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:F(s.slug===n(g)?.slug?"text-primary bg-active":""),onClick:y=>$.value=s.slug},[e("code",null,m(s.name),1),e("div",Oe,[He,e("span",null,m(T(s)),1),Ke,e("span",null,m(n(G)(new Date(s.endTime))),1)])],10,Le),Me],64))),128)),e("div",We,[("processAnalyzeBuildInfo"in d?d.processAnalyzeBuildInfo:n(k))?(o(),w(B,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:h[1]||(h[1]=s=>v())},{default:a(()=>[_(" Building... ")]),_:1})):(o(),w(B,{key:0,n:"primary",icon:"carbon-edge-node",onClick:h[0]||(h[0]=s=>z())},{default:a(()=>[_(" Start a new build ")]),_:1}))])])]),right:a(()=>[n(g)?(o(),w(O,{key:0,current:n(g)},null,8,["current"])):(o(),w(H,{key:1}))]),_:1}),r(n(p),null,{default:a(({resolve:s})=>[r(X,{"model-value":!0,onClose:y=>s(!1)},{default:a(()=>[e("div",Je,[Qe,Xe,r(M,{modelValue:n(t),"onUpdate:modelValue":h[2]||(h[2]=y=>j(t)?t.value=y:null),placeholder:"Build name"},null,8,["modelValue"]),n(u)?(o(),w(W,{key:0,"n-orange":""},{default:a(()=>[_(" A build with the same name already exists, continue would overrides the previous build result. ")]),_:1})):b("",!0),Ye,Ze,r(J,{code:`npx nuxi analyze --no-serve --name=${n(t)}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),r(Q,{modelValue:n(x),"onUpdate:modelValue":h[3]||(h[3]=y=>j(x)?x.value=y:null),mt2:"",n:"primary"},{default:a(()=>[_(" Navigate to terminal ")]),_:1},8,["modelValue"]),e("div",qe,[r(B,{onClick:y=>s(!1)},{default:a(()=>[_(" Cancel ")]),_:2},1032,["onClick"]),r(B,{n:"solid primary",onClick:y=>s(!0)},{default:a(()=>[_(" Start ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),r(Z,null,{default:a(()=>[r(Y)]),_:1})],64)}}});export{at as default};
1
+ import{d as R,a as V,r as S,o,m as i,k as e,F as c,n as E,G as F,f as n,t as m,p as b,H as G,i as r,j as a,v as _,I as A,J as D,K as P,L as U,_ as L,M as q,N as ee,O as te,P as ne,Q as oe,R as le,S as ie,U as se,V as k,h as w,l as j,W as ae,X as re,A as ue}from"./entry.5d59ff5c.js";import{_ as de}from"./FilepathItem.vue.feb8a13c.js";import{_ as ce}from"./NTip.vue.fbfe6de9.js";import{_ as me}from"./NCodeBlock.vue.c114d969.js";import{_ as _e}from"./NCheckbox.vue.a65a9466.js";import{_ as pe}from"./HelpFab.vue.70bfd8f0.js";import"./client.4841a079.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ve={flex:"~ wrap","w-full":""},he=["onClick"],ye=e("div",{border:"b base","flex-auto":""},null,-1),be={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},$e=e("div",{"flex-auto":""},null,-1),xe={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge=e("div",{"i-carbon-commit":"","text-xl":""},null,-1),we=e("div",{"text-sm":"",op50:""}," Name ",-1),ze=e("div",{"i-carbon-time":"","text-xl":""},null,-1),Be=e("div",{"text-sm":"",op50:""}," Build duration ",-1),ke=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1),Ce=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1),Ne=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1),Te=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1),Ae=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1),De=e("div",{"text-sm":"",op50:""}," Built ",-1),Ie=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1),Ve=e("div",{"text-sm":"",op50:""}," Report Path ",-1),Se=e("div",{"flex-auto":""},null,-1),I="/__nuxt_devtools__/analyze/",Fe=R({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(C){const p=C,f=V(()=>{const t=[{name:"Overview",id:"overview"}];return p.current.features.bundleClient&&t.push({name:"Client Bundle",id:"bundle-client"}),p.current.features.bundleNitro&&t.push({name:"Nitro Bundle",id:"bundle-nitro"}),p.current.features.viteInspect&&t.push({name:"Vite Inspect",id:"vite-inspect"}),t}),l=S(f.value[0]);function $(t){return t<1024?`${t}B`:t<1024*1024?`${(t/1024).toFixed(1)}KB`:t<1024*1024*1024?`${(t/1024/1024).toFixed(1)}MB`:`${(t/1024/1024/1024).toFixed(1)}GB`}function g(t){return`${((t.endTime-t.startTime)/1e3).toFixed(1)}s`}async function x(t){return P.clearAnalyzeBuilds(await U(),[t])}return(t,u)=>{const z=de,N=L;return o(),i("div",fe,[e("div",ve,[(o(!0),i(c,null,E(n(f),(v,T)=>(o(),i("button",{key:T,px4:"",py2:"",border:"r base",hover:"bg-active",class:F(v.id===n(l).id?"":"border-b"),onClick:d=>l.value=v},[e("div",{class:F(v.id===n(l).id?"":"op30")},m(v.name),3)],10,he))),128)),ye]),n(l).id==="overview"?(o(),i("div",be,[$e,e("div",xe,[ge,e("div",null,[we,e("div",null,m(t.current.name),1)]),ze,e("div",null,[Be,e("div",null,m(g(t.current)),1)]),t.current.size?.clientBundle?(o(),i(c,{key:0},[ke,e("div",null,[Ce,e("div",null,m($(t.current.size.clientBundle)),1)])],64)):b("",!0),t.current.size.nitroBundle?(o(),i(c,{key:1},[Ne,e("div",null,[Te,e("div",null,m($(t.current.size.nitroBundle)),1)])],64)):b("",!0),Ae,e("div",null,[De,e("div",null,m(n(G)(new Date(t.current.endTime))),1)]),Ie,e("div",null,[Ve,r(z,{filepath:t.current.analyzeDir},null,8,["filepath"])])]),Se,r(N,{n:"rose",icon:"carbon-delete",onClick:u[0]||(u[0]=v=>x(t.current.name))},{default:a(()=>[_(" Delete this report ")]),_:1})])):b("",!0),u._lazyshow1||n(l).id==="bundle-client"?(u._lazyshow1=!0,o(),i(c,null,[A(e("iframe",{src:`${I}${t.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,n(l).id==="bundle-client"]])],64)):b("v-show-if",!0),u._lazyshow2||n(l).id==="bundle-nitro"?(u._lazyshow2=!0,o(),i(c,null,[A(e("iframe",{src:`${I}${t.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[D,n(l).id==="bundle-nitro"]])],64)):b("v-show-if",!0),u._lazyshow3||n(l).id==="vite-inspect"?(u._lazyshow3=!0,o(),i(c,null,[A(e("iframe",{src:`${I}${t.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[D,n(l).id==="vite-inspect"]])],64)):b("v-show-if",!0)])}}}),Pe={class:"markdown-body"},je=e("h1",null,"Build Analyze",-1),Re=e("p",null,[_("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"),_(" and present the output data directly in DevTools for easy browsing and comparing.")],-1),Ee=[je,Re],Ge={__name:"analyze-build",setup(C,{expose:p}){return p({frontmatter:{}}),(l,$)=>(o(),i("div",Pe,Ee))}},Ue={flex:"~ col"},Le=["onClick"],Oe={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},He=e("div",{"i-carbon-time":""},null,-1),Ke=e("div",{"flex-auto":""},null,-1),Me=e("div",{"x-divider":""},null,-1),We={flex:"~ items-center justify-center wrap",p4:""},Je={flex:"~ col gap-1","w-250":"",p4:""},Qe=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1),Xe=e("p",{op50:""}," Enter the name of the build: ",-1),Ye=e("div",{my3:"","x-divider":""},null,-1),Ze=e("p",{op50:""}," The following command will be executed in your terminal: ",-1),qe={flex:"~ gap-3",mt2:"","justify-end":""},at=R({__name:"analyze-build",setup(C){const p=q(),f=ee(),l=te(),$=ne("analyze-build:slug",""),g=V(()=>f.value?.builds.find(d=>d.slug===$.value)??f.value?.builds[0]),x=S(!1),t=S(""),u=V(()=>f.value?.builds.some(d=>d.name===t.value.trim()));async function z(){t.value=await P.generateAnalyzeBuildName(),await p.start()&&(se("analyze-build:start"),k.value={name:t.value,processId:await P.startAnalyzeBuild(await U(),t.value)},x.value&&v())}const N=oe();function v(){k.value?.processId&&(N.value=k.value.processId,l.push("/modules/terminals"))}function T(d){return`${((d.endTime-d.startTime)/1e3).toFixed(1)}s`}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:z}]),(d,h)=>{const B=L,O=Fe,H=ue,K=ie,M=ae,W=ce,J=me,Q=_e,X=re,Y=Ge,Z=pe;return o(),i(c,null,[r(K,{"left-size":30},{left:a(()=>[e("div",Ue,[(o(!0),i(c,null,E(n(f)?.builds,s=>(o(),i(c,{key:s.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:F(s.slug===n(g)?.slug?"text-primary bg-active":""),onClick:y=>$.value=s.slug},[e("code",null,m(s.name),1),e("div",Oe,[He,e("span",null,m(T(s)),1),Ke,e("span",null,m(n(G)(new Date(s.endTime))),1)])],10,Le),Me],64))),128)),e("div",We,[("processAnalyzeBuildInfo"in d?d.processAnalyzeBuildInfo:n(k))?(o(),w(B,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:h[1]||(h[1]=s=>v())},{default:a(()=>[_(" Building... ")]),_:1})):(o(),w(B,{key:0,n:"primary",icon:"carbon-edge-node",onClick:h[0]||(h[0]=s=>z())},{default:a(()=>[_(" Start a new build ")]),_:1}))])])]),right:a(()=>[n(g)?(o(),w(O,{key:0,current:n(g)},null,8,["current"])):(o(),w(H,{key:1}))]),_:1}),r(n(p),null,{default:a(({resolve:s})=>[r(X,{"model-value":!0,onClose:y=>s(!1)},{default:a(()=>[e("div",Je,[Qe,Xe,r(M,{modelValue:n(t),"onUpdate:modelValue":h[2]||(h[2]=y=>j(t)?t.value=y:null),placeholder:"Build name"},null,8,["modelValue"]),n(u)?(o(),w(W,{key:0,"n-orange":""},{default:a(()=>[_(" A build with the same name already exists, continue would overrides the previous build result. ")]),_:1})):b("",!0),Ye,Ze,r(J,{code:`npx nuxi analyze --no-serve --name=${n(t)}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),r(Q,{modelValue:n(x),"onUpdate:modelValue":h[3]||(h[3]=y=>j(x)?x.value=y:null),mt2:"",n:"primary"},{default:a(()=>[_(" Navigate to terminal ")]),_:1},8,["modelValue"]),e("div",qe,[r(B,{onClick:y=>s(!1)},{default:a(()=>[_(" Cancel ")]),_:2},1032,["onClick"]),r(B,{n:"solid primary",onClick:y=>s(!0)},{default:a(()=>[_(" Start ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),r(Z,null,{default:a(()=>[r(Y)]),_:1})],64)}}});export{at as default};
@@ -1,4 +1,4 @@
1
- import{d as q,Y as te,r as j,Z as Y,a0 as ne,m as u,I as G,i as d,f as t,k as e,v as N,F as z,n as Z,h as S,j as g,p as E,G as H,a1 as pe,a2 as me,U as fe,K as W,L as J,a3 as O,_ as oe,o as s,a4 as le,W as ae,a as I,a5 as ve,a6 as he,a7 as ie,t as A,a8 as _e,l as R,a9 as ge,b as se,aa as xe,e as be,ab as we,ac as ye,ad as $e,X as ke,ae as Ce,af as Ve,ag as Pe,ah as Ae}from"./entry.7cb87d02.js";import{_ as De}from"./NCheckbox.vue.23790c32.js";import{_ as Fe}from"./NDropdown.vue.54157271.js";import{_ as Ne}from"./NNavbar.vue.c506a970.js";import{_ as Se}from"./NSectionBlock.d66bb8c4.js";import{_ as Ie}from"./FilepathItem.vue.6cdabcd4.js";import{_ as Te,u as Ue}from"./storage-options.035e7403.js";import{_ as je}from"./NDrawer.vue.15b4d748.js";import{D as Ee}from"./constants.2cc6e981.js";import"./NIconTitle.vue.2d1e44fb.js";import"./NCodeBlock.vue.7cb5f01d.js";import"./client.b2473ec3.js";const Le={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Be={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},ze={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},Me=e("div",{px6:"",py6:""},[e("h1",{"text-2xl":""}," Upload "),e("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1),Oe={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Re={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Ke=["src"],Xe={flex:"~ gap1","items-center":""},Ge={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ze=q({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(L){const l=L,m=te(l,"modelValue"),C=j(),o=j([]);function V(a){C.value=a.target,m.value=!0}function f(a){a.target===C.value&&(m.value=!1)}function D(a){a.preventDefault()}function y(a){a.preventDefault(),v(a.dataTransfer.files)}function v(a){const h=Array.from(a||[]);if(h.length){const _=[],b=o.value.map(r=>r.name);for(const r of h)if(b.includes(r.name)){let P=1;const[w,T]=r.name.split(".");for(;b.includes(`${w} (${P}).${T}`);)P++;const K=`${w}-${P}.${T}`,c=new Blob([r],{type:r.type}),n=new File([c],K,{lastModified:Date.now()});_.push(n),b.push(K)}else r.type===""&&O({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),_.push(r);o.value=[...o.value,..._]}}async function B(){if(pe.value||me.value)return;fe("assets:upload");const a=[];for(const h of o.value){const _=new FileReader;_.readAsDataURL(h);const r=(await new Promise(P=>{_.onload=()=>P(_.result)})).split(";base64,").pop();a.push({path:h.name,encoding:"base64",content:r})}await W.writeStaticAssets(await J(),[...a],l.folder).then(()=>{p(),O({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(h=>{p(),O({message:`Error uploading files: ${h?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),m.value=!1}function X(a){o.value?.splice(a,1)}function M(a){return URL.createObjectURL(a)}function x(a,h){const[_,b]=a.name.split("."),r=h.replace(/\.\w+$/,""),P=`${r}.${b}`;return r.length===0?(alert("File name must be at least 1 characters long"),_):(Object.defineProperty(a,"name",{value:P,writable:!1}),o.value.splice(o.value.indexOf(a),1,a),a)}function i(){o.value=[]}function p(){m.value=!1,i()}return Y("dragenter",V),Y("dragleave",f),Y("dragover",D),Y("drop",y),(a,h)=>{const _=oe,b=le,r=ae,P=ne("tooltip");return s(),u("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:H(t(m)?"opacity-100 visible":"opacity-0 invisible")},[G(d(_,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:p},null,512),[[P,"Close",void 0,{"bottom-end":!0}]]),t(o)?.length?(s(),u("div",ze,[Me,e("div",Oe,[(s(!0),u(z,null,Z(t(o),(w,T)=>(s(),u("div",{key:w.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[e("div",Re,[e("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:M(w)},null,8,Ke)]),e("div",Xe,[d(r,{n:"xs","h-full":"","flex-auto":"","model-value":w.name,"onUpdate:modelValue":K=>x(w,K.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(_,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:K=>X(T)},null,8,["onClick"])])]))),128))]),e("div",Ge,[t(o).length?(s(),S(_,{key:0,n:"red",onClick:i},{default:g(()=>[d(b,{icon:"carbon-clean"}),N(" Clear ")]),_:1})):E("",!0),d(_,{disabled:!t(o).length,n:"primary solid",onClick:B},{default:g(()=>[d(b,{icon:"carbon-cloud-upload"}),N(" Upload ")]),_:1},8,["disabled"])])])):(s(),u("div",Le,[e("label",Be,[d(b,{icon:"carbon-cloud-upload","mr-2":""}),N(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:h[0]||(h[0]=w=>v(w.target.files))},null,32)]))],2)}}}),qe=q({__name:"AssetFontPreview",props:{asset:{}},setup(L){const l=L,m=I(()=>`devtools-assets-${ve(l.asset)}`);return he(I(()=>`
1
+ import{d as q,Y as te,r as j,Z as Y,a0 as ne,m as u,I as G,i as d,f as t,k as e,v as N,F as z,n as Z,h as S,j as g,p as E,G as H,a1 as pe,a2 as me,U as fe,K as W,L as J,a3 as O,_ as oe,o as s,a4 as le,W as ae,a as I,a5 as ve,a6 as he,a7 as ie,t as A,a8 as _e,l as R,a9 as ge,b as se,aa as xe,e as be,ab as we,ac as ye,ad as $e,X as ke,ae as Ce,af as Ve,ag as Pe,ah as Ae}from"./entry.5d59ff5c.js";import{_ as De}from"./NCheckbox.vue.a65a9466.js";import{_ as Fe}from"./NDropdown.vue.32f13066.js";import{_ as Ne}from"./NNavbar.vue.29f03776.js";import{_ as Se}from"./NSectionBlock.56f7fa97.js";import{_ as Ie}from"./FilepathItem.vue.feb8a13c.js";import{_ as Te,u as Ue}from"./storage-options.5fca38da.js";import{_ as je}from"./NDrawer.vue.4bcebe5d.js";import{D as Ee}from"./constants.2cc6e981.js";import"./NIconTitle.vue.dcd70230.js";import"./NCodeBlock.vue.c114d969.js";import"./client.4841a079.js";const Le={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Be={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},ze={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},Me=e("div",{px6:"",py6:""},[e("h1",{"text-2xl":""}," Upload "),e("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1),Oe={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Re={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Ke=["src"],Xe={flex:"~ gap1","items-center":""},Ge={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ze=q({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(L){const l=L,m=te(l,"modelValue"),C=j(),o=j([]);function V(a){C.value=a.target,m.value=!0}function f(a){a.target===C.value&&(m.value=!1)}function D(a){a.preventDefault()}function y(a){a.preventDefault(),v(a.dataTransfer.files)}function v(a){const h=Array.from(a||[]);if(h.length){const _=[],b=o.value.map(r=>r.name);for(const r of h)if(b.includes(r.name)){let P=1;const[w,T]=r.name.split(".");for(;b.includes(`${w} (${P}).${T}`);)P++;const K=`${w}-${P}.${T}`,c=new Blob([r],{type:r.type}),n=new File([c],K,{lastModified:Date.now()});_.push(n),b.push(K)}else r.type===""&&O({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),_.push(r);o.value=[...o.value,..._]}}async function B(){if(pe.value||me.value)return;fe("assets:upload");const a=[];for(const h of o.value){const _=new FileReader;_.readAsDataURL(h);const r=(await new Promise(P=>{_.onload=()=>P(_.result)})).split(";base64,").pop();a.push({path:h.name,encoding:"base64",content:r})}await W.writeStaticAssets(await J(),[...a],l.folder).then(()=>{p(),O({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(h=>{p(),O({message:`Error uploading files: ${h?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),m.value=!1}function X(a){o.value?.splice(a,1)}function M(a){return URL.createObjectURL(a)}function x(a,h){const[_,b]=a.name.split("."),r=h.replace(/\.\w+$/,""),P=`${r}.${b}`;return r.length===0?(alert("File name must be at least 1 characters long"),_):(Object.defineProperty(a,"name",{value:P,writable:!1}),o.value.splice(o.value.indexOf(a),1,a),a)}function i(){o.value=[]}function p(){m.value=!1,i()}return Y("dragenter",V),Y("dragleave",f),Y("dragover",D),Y("drop",y),(a,h)=>{const _=oe,b=le,r=ae,P=ne("tooltip");return s(),u("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:H(t(m)?"opacity-100 visible":"opacity-0 invisible")},[G(d(_,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:p},null,512),[[P,"Close",void 0,{"bottom-end":!0}]]),t(o)?.length?(s(),u("div",ze,[Me,e("div",Oe,[(s(!0),u(z,null,Z(t(o),(w,T)=>(s(),u("div",{key:w.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[e("div",Re,[e("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:M(w)},null,8,Ke)]),e("div",Xe,[d(r,{n:"xs","h-full":"","flex-auto":"","model-value":w.name,"onUpdate:modelValue":K=>x(w,K.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(_,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:K=>X(T)},null,8,["onClick"])])]))),128))]),e("div",Ge,[t(o).length?(s(),S(_,{key:0,n:"red",onClick:i},{default:g(()=>[d(b,{icon:"carbon-clean"}),N(" Clear ")]),_:1})):E("",!0),d(_,{disabled:!t(o).length,n:"primary solid",onClick:B},{default:g(()=>[d(b,{icon:"carbon-cloud-upload"}),N(" Upload ")]),_:1},8,["disabled"])])])):(s(),u("div",Le,[e("label",Be,[d(b,{icon:"carbon-cloud-upload","mr-2":""}),N(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:h[0]||(h[0]=w=>v(w.target.files))},null,32)]))],2)}}}),qe=q({__name:"AssetFontPreview",props:{asset:{}},setup(L){const l=L,m=I(()=>`devtools-assets-${ve(l.asset)}`);return he(I(()=>`
2
2
  @font-face {
3
3
  font-family: '${m.value}';
4
4
  src: url('${l.asset.publicPath}');
@@ -1 +1 @@
1
- {"id":"10bb1edc-fde3-4c52-91c9-404c411ae86d","timestamp":1699561981578}
1
+ {"id":"9c2bc90a-5134-40c2-becb-286bd0304a77","timestamp":1699707256672}
@@ -0,0 +1 @@
1
+ {"id":"9c2bc90a-5134-40c2-becb-286bd0304a77","timestamp":1699707256672,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -1 +1 @@
1
- import{bu as f,bK as r}from"./entry.7cb87d02.js";let o;const n=[];function s(i){if(n.push(i),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&n.forEach(e=>e(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(e){e&&n.forEach(t=>t(e))},get(){return o.value},configurable:!0}),()=>{n.splice(n.indexOf(i),1)}}function u(){o||(o=f(),s(e));function i(){r(o)}function e(t){o.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",i)}return o}const c=u();export{c as d};
1
+ import{bu as f,bK as r}from"./entry.5d59ff5c.js";let o;const n=[];function s(i){if(n.push(i),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&n.forEach(e=>e(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(e){e&&n.forEach(t=>t(e))},get(){return o.value},configurable:!0}),()=>{n.splice(n.indexOf(i),1)}}function u(){o||(o=f(),s(e));function i(){r(o)}function e(t){o.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",i)}return o}const c=u();export{c as d};
@@ -1,4 +1,4 @@
1
- import{o as ee,m as Ee,k as Q,d as Yi,a as rr,v as Qd,t as al,f as q,e as mT,i as we,h as st,p as lt,F as hr,n as wn,a8 as Al,_ as ff,r as bi,ai as bT,aj as $T,aa as wT,ak as _T,al as ET,w as ST,j as ze,B as l1,am as OT,l as _n,an as TT,G as PT,ao as IT,af as kT,ap as CT,aq as xT,ar as ts,a4 as AT,as as RT,a0 as DT,at as MT,I as Gv}from"./entry.7cb87d02.js";import{_ as NT}from"./HelpFab.vue.31b87f2a.js";import{u as FT,a as BT}from"./state-components.ca15f9b7.js";import{_ as LT}from"./NCheckbox.vue.23790c32.js";import{_ as u1}from"./NNavbar.vue.c506a970.js";import{_ as h1}from"./NBadge.681f2fb6.js";import{_ as d1}from"./FilepathItem.vue.6cdabcd4.js";import{_ as jT}from"./NDrawer.vue.15b4d748.js";import{_ as zT}from"./NSelectTabs.vue.9bf6517b.js";import{_ as HT}from"./NSectionBlock.d66bb8c4.js";import{_ as WT}from"./NIconTitle.vue.2d1e44fb.js";import{D as Nu}from"./constants.2cc6e981.js";const VT={class:"markdown-body"},UT=Q("h1",null,"Components",-1),GT=Q("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.",-1),KT=Q("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),qT=Q("p",null,[Q("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),YT=[UT,GT,KT,qT],XT={__name:"components",setup(r,{expose:i}){return i({frontmatter:{}}),(t,n)=>(ee(),Ee("div",VT,YT))}},QT=/\d/,JT=["-","_","/","."];function ZT(r=""){if(!QT.test(r))return r.toUpperCase()===r}function eP(r,i){const e=i??JT,t=[];if(!r||typeof r!="string")return t;let n="",a,o;for(const s of r){const l=e.includes(s);if(l===!0){t.push(n),n="",a=void 0;continue}const u=ZT(s);if(o===!1){if(a===!1&&u===!0){t.push(n),n=s,a=u;continue}if(a===!0&&u===!1&&n.length>1){const h=n[n.length-1];t.push(n.slice(0,Math.max(0,n.length-1))),n=h+s,a=u;continue}}n+=s,a=u,o=l}return t.push(n),t}function tP(r){return r?r[0].toUpperCase()+r.slice(1):""}function c1(r){return r?(Array.isArray(r)?r:eP(r)).map(i=>tP(i)).join(""):""}const rP={"text-sm":"","font-mono":""},nP=Q("span",{mr1:"",op20:""},"<",-1),iP=Q("span",{ml1:"",op20:""},"/>",-1),f1=Yi({__name:"ComponentName",props:{component:{}},setup(r){const i=r,e=rr(()=>i.component.pascalName||c1(i.component.name||i.component.__name||i.component.kebabName||""));return(t,n)=>(ee(),Ee("code",rP,[nP,Qd(al(q(e)),1),iP]))}}),aP={flex:"~ col gap1","items-start":"","of-hidden":""},oP={flex:"~ gap2",px3:""},sP={px3:"",pb2:""},lP={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},uP={"text-sm":""},hP={"text-primary":""},dP=Q("span",{op50:""}," references",-1),cP={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},fP={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},vP={"text-sm":""},pP={"text-primary":""},gP=Q("span",{op50:""}," dependencies",-1),yP={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},v1=Yi({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const i=r,e=rr(()=>i.component.pascalName||c1(i.component.name||i.component.__name||i.component.kebabName||"")),t=rr(()=>i.component.filePath||i.component.file||i.component.__file||""),n=mT();return(a,o)=>{const s=f1,l=ff,u=h1,h=d1;return ee(),Ee("div",aP,[Q("div",oP,[we(s,{component:a.component},null,8,["component"]),we(l,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:o[0]||(o[0]=d=>q(n)(`<${q(e)}></${q(e)}>`,"component-name"))}),a.component.global?(ee(),st(u,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):lt("",!0)]),Q("div",sP,[q(t)?(ee(),st(h,{key:0,filepath:q(t),"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):lt("",!0)]),a.dependents?(ee(),Ee("div",lP,[Q("div",uP,[Q("strong",hP,al(a.dependents.length),1),dP]),a.dependents.length?(ee(),Ee("div",cP,[(ee(!0),Ee(hr,null,wn(a.dependents,d=>(ee(),st(h,{key:d,filepath:d},null,8,["filepath"]))),128))])):lt("",!0)])):lt("",!0),a.dependencies?(ee(),Ee("div",fP,[Q("div",vP,[Q("strong",pP,al(a.dependencies.length),1),gP]),a.dependencies.length?(ee(),Ee("div",yP,[(ee(!0),Ee(hr,null,wn(a.dependencies,d=>(ee(),st(h,{key:d,filepath:d},null,8,["filepath"]))),128))])):lt("",!0)])):lt("",!0),Al(a.$slots,"default")])}}});/**
1
+ import{o as ee,m as Ee,k as Q,d as Yi,a as rr,v as Qd,t as al,f as q,e as mT,i as we,h as st,p as lt,F as hr,n as wn,a8 as Al,_ as ff,r as bi,ai as bT,aj as $T,aa as wT,ak as _T,al as ET,w as ST,j as ze,B as l1,am as OT,l as _n,an as TT,G as PT,ao as IT,af as kT,ap as CT,aq as xT,ar as ts,a4 as AT,as as RT,a0 as DT,at as MT,I as Gv}from"./entry.5d59ff5c.js";import{_ as NT}from"./HelpFab.vue.70bfd8f0.js";import{u as FT,a as BT}from"./state-components.9496e3b2.js";import{_ as LT}from"./NCheckbox.vue.a65a9466.js";import{_ as u1}from"./NNavbar.vue.29f03776.js";import{_ as h1}from"./NBadge.b912de36.js";import{_ as d1}from"./FilepathItem.vue.feb8a13c.js";import{_ as jT}from"./NDrawer.vue.4bcebe5d.js";import{_ as zT}from"./NSelectTabs.vue.f4ae464e.js";import{_ as HT}from"./NSectionBlock.56f7fa97.js";import{_ as WT}from"./NIconTitle.vue.dcd70230.js";import{D as Nu}from"./constants.2cc6e981.js";const VT={class:"markdown-body"},UT=Q("h1",null,"Components",-1),GT=Q("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.",-1),KT=Q("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),qT=Q("p",null,[Q("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),YT=[UT,GT,KT,qT],XT={__name:"components",setup(r,{expose:i}){return i({frontmatter:{}}),(t,n)=>(ee(),Ee("div",VT,YT))}},QT=/\d/,JT=["-","_","/","."];function ZT(r=""){if(!QT.test(r))return r.toUpperCase()===r}function eP(r,i){const e=i??JT,t=[];if(!r||typeof r!="string")return t;let n="",a,o;for(const s of r){const l=e.includes(s);if(l===!0){t.push(n),n="",a=void 0;continue}const u=ZT(s);if(o===!1){if(a===!1&&u===!0){t.push(n),n=s,a=u;continue}if(a===!0&&u===!1&&n.length>1){const h=n[n.length-1];t.push(n.slice(0,Math.max(0,n.length-1))),n=h+s,a=u;continue}}n+=s,a=u,o=l}return t.push(n),t}function tP(r){return r?r[0].toUpperCase()+r.slice(1):""}function c1(r){return r?(Array.isArray(r)?r:eP(r)).map(i=>tP(i)).join(""):""}const rP={"text-sm":"","font-mono":""},nP=Q("span",{mr1:"",op20:""},"<",-1),iP=Q("span",{ml1:"",op20:""},"/>",-1),f1=Yi({__name:"ComponentName",props:{component:{}},setup(r){const i=r,e=rr(()=>i.component.pascalName||c1(i.component.name||i.component.__name||i.component.kebabName||""));return(t,n)=>(ee(),Ee("code",rP,[nP,Qd(al(q(e)),1),iP]))}}),aP={flex:"~ col gap1","items-start":"","of-hidden":""},oP={flex:"~ gap2",px3:""},sP={px3:"",pb2:""},lP={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},uP={"text-sm":""},hP={"text-primary":""},dP=Q("span",{op50:""}," references",-1),cP={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},fP={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},vP={"text-sm":""},pP={"text-primary":""},gP=Q("span",{op50:""}," dependencies",-1),yP={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},v1=Yi({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const i=r,e=rr(()=>i.component.pascalName||c1(i.component.name||i.component.__name||i.component.kebabName||"")),t=rr(()=>i.component.filePath||i.component.file||i.component.__file||""),n=mT();return(a,o)=>{const s=f1,l=ff,u=h1,h=d1;return ee(),Ee("div",aP,[Q("div",oP,[we(s,{component:a.component},null,8,["component"]),we(l,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:o[0]||(o[0]=d=>q(n)(`<${q(e)}></${q(e)}>`,"component-name"))}),a.component.global?(ee(),st(u,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):lt("",!0)]),Q("div",sP,[q(t)?(ee(),st(h,{key:0,filepath:q(t),"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):lt("",!0)]),a.dependents?(ee(),Ee("div",lP,[Q("div",uP,[Q("strong",hP,al(a.dependents.length),1),dP]),a.dependents.length?(ee(),Ee("div",cP,[(ee(!0),Ee(hr,null,wn(a.dependents,d=>(ee(),st(h,{key:d,filepath:d},null,8,["filepath"]))),128))])):lt("",!0)])):lt("",!0),a.dependencies?(ee(),Ee("div",fP,[Q("div",vP,[Q("strong",pP,al(a.dependencies.length),1),gP]),a.dependencies.length?(ee(),Ee("div",yP,[(ee(!0),Ee(hr,null,wn(a.dependencies,d=>(ee(),st(h,{key:d,filepath:d},null,8,["filepath"]))),128))])):lt("",!0)])):lt("",!0),Al(a.$slots,"default")])}}});/**
2
2
  * vis-data
3
3
  * http://visjs.org/
4
4
  *
@@ -1 +1 @@
1
- import{d as $,ai as q,r as A,a as g,au as B,av as D,al as j,aw as E,ax as y,ay as M,az as N,m as V,o as s,aA as I,O as L,aB as O,aC as C,aD as P,f as a,h as l,j as b,at as W,A as R,k as u,v as w,t as T,K as S,i as U,am as F,aE as z}from"./entry.7cb87d02.js";import{_ as G}from"./LaunchPage.vue.06fcb257.js";import"./NMarkdown.vue.20899182.js";import"./client.b2473ec3.js";const x=new Map,K=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,r=q(),v=A(),i=g(()=>m.tab.name),e=A(),t=B(D(v));j(()=>{const n=m.tab.view,c=n.persistent!==!1,h=["clipboard-write","clipboard-read"];if(x.get(i.value)&&c)e.value=x.get(i.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",h.join("; ")),c&&x.set(i.value,e.value),e.value.src=n.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{d(),o(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),E(_)}setTimeout(o,100)}),y(_),y(o),y(d),M(()=>{e.value&&(e.value.style.visibility="hidden")});function o(){if(!(!e.value||!e.value.contentWindow))try{const n=e.value.contentWindow.document.querySelector("html");n?.classList.toggle("dark",r.value==="dark"),n?.classList.toggle("light",r.value==="dark"),new MutationObserver(()=>{r.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(n,{attributes:!0,attributeFilter:["class"]})}catch{}}const p=N();function d(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=p.value}catch{}}function _(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(n,c)=>(s(),V("div",{ref_key:"anchor",ref:v,"h-full":"","w-full":""},null,512))}}),X={flex:"~ col gap2",mxa:"","items-center":""},H=u("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1),J={"text-xl":""},Q={"text-rose":""},Y=u("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1),Z=u("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1),oe=$({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,r=I(),v=L(),i=g(()=>m.name??r.params.name),e=O(),t=g(()=>e.value.find(o=>o.name===i.value));return j(()=>{t.value?t.value.requireAuth&&!C.value&&P():setTimeout(()=>{t.value||v.push("/modules/overview")},2e3)}),(o,p)=>{const d=R,_=z,n=K,c=G,h=F;return a(t)?a(t).requireAuth&&!("isDevAuthed"in o?o.isDevAuthed:a(C))?(s(),l(_,{key:1})):a(t).view.type==="iframe"?(s(),l(n,{key:2,tab:a(t)},null,8,["tab"])):a(t).view.type==="vnode"?(s(),l(W(a(t).view.vnode),{key:3})):a(t).view.type==="launch"?(s(),l(c,{key:4,name:`custom-${a(t).name}`,icon:a(t).view.icon||a(t).icon,title:a(t).view.title||a(t).title,description:a(t).view.description,actions:a(t).view.actions,onAction:p[0]||(p[0]=k=>("rpc"in o?o.rpc:a(S)).customTabAction(a(t).name,k))},null,8,["name","icon","title","description","actions"])):(s(),l(d,{key:5},{default:b(()=>[U(h,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:b(()=>[w(" Unknown tab type "+T(a(t).view),1)]),_:1})]),_:1})):(s(),l(d,{key:0},{default:b(()=>[u("div",X,[H,u("p",J,[w(" Tab "),u("code",Q,T(a(i)),1),w(" not found ")]),Y,Z])]),_:1}))}}});export{oe as default};
1
+ import{d as $,ai as q,r as A,a as g,au as B,av as D,al as j,aw as E,ax as y,ay as M,az as N,m as V,o as s,aA as I,O as L,aB as O,aC as C,aD as P,f as a,h as l,j as b,at as W,A as R,k as u,v as w,t as T,K as S,i as U,am as F,aE as z}from"./entry.5d59ff5c.js";import{_ as G}from"./LaunchPage.vue.68d99ad2.js";import"./NMarkdown.vue.4e215b1f.js";import"./client.4841a079.js";const x=new Map,K=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,r=q(),v=A(),i=g(()=>m.tab.name),e=A(),t=B(D(v));j(()=>{const n=m.tab.view,c=n.persistent!==!1,h=["clipboard-write","clipboard-read"];if(x.get(i.value)&&c)e.value=x.get(i.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",h.join("; ")),c&&x.set(i.value,e.value),e.value.src=n.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{d(),o(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),E(_)}setTimeout(o,100)}),y(_),y(o),y(d),M(()=>{e.value&&(e.value.style.visibility="hidden")});function o(){if(!(!e.value||!e.value.contentWindow))try{const n=e.value.contentWindow.document.querySelector("html");n?.classList.toggle("dark",r.value==="dark"),n?.classList.toggle("light",r.value==="dark"),new MutationObserver(()=>{r.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(n,{attributes:!0,attributeFilter:["class"]})}catch{}}const p=N();function d(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=p.value}catch{}}function _(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(n,c)=>(s(),V("div",{ref_key:"anchor",ref:v,"h-full":"","w-full":""},null,512))}}),X={flex:"~ col gap2",mxa:"","items-center":""},H=u("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1),J={"text-xl":""},Q={"text-rose":""},Y=u("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1),Z=u("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1),oe=$({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,r=I(),v=L(),i=g(()=>m.name??r.params.name),e=O(),t=g(()=>e.value.find(o=>o.name===i.value));return j(()=>{t.value?t.value.requireAuth&&!C.value&&P():setTimeout(()=>{t.value||v.push("/modules/overview")},2e3)}),(o,p)=>{const d=R,_=z,n=K,c=G,h=F;return a(t)?a(t).requireAuth&&!("isDevAuthed"in o?o.isDevAuthed:a(C))?(s(),l(_,{key:1})):a(t).view.type==="iframe"?(s(),l(n,{key:2,tab:a(t)},null,8,["tab"])):a(t).view.type==="vnode"?(s(),l(W(a(t).view.vnode),{key:3})):a(t).view.type==="launch"?(s(),l(c,{key:4,name:`custom-${a(t).name}`,icon:a(t).view.icon||a(t).icon,title:a(t).view.title||a(t).title,description:a(t).view.description,actions:a(t).view.actions,onAction:p[0]||(p[0]=k=>("rpc"in o?o.rpc:a(S)).customTabAction(a(t).name,k))},null,8,["name","icon","title","description","actions"])):(s(),l(d,{key:5},{default:b(()=>[U(h,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:b(()=>[w(" Unknown tab type "+T(a(t).view),1)]),_:1})]),_:1})):(s(),l(d,{key:0},{default:b(()=>[u("div",X,[H,u("p",J,[w(" Tab "),u("code",Q,T(a(i)),1),w(" not found ")]),Y,Z])]),_:1}))}}});export{oe as default};
@@ -1 +1 @@
1
- import{q as o,m as s,k as t,a8 as a,o as n}from"./entry.7cb87d02.js";const r={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,_){return n(),s("div",c,[t("div",l,[a(e.$slots,"default")])])}const i=o(r,[["render",d]]);export{i as default};
1
+ import{q as o,m as s,k as t,a8 as a,o as n}from"./entry.5d59ff5c.js";const r={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,_){return n(),s("div",c,[t("div",l,[a(e.$slots,"default")])])}const i=o(r,[["render",d]]);export{i as default};