@nuxt/devtools 1.0.0-beta.1 → 1.0.0-beta.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 (100) hide show
  1. package/dist/chunks/module-main.mjs +12 -2
  2. package/dist/client/200.html +24 -24
  3. package/dist/client/404.html +24 -24
  4. package/dist/client/__blank/index.html +42 -0
  5. package/dist/client/_nuxt/{CodeDiff.vue.09a831fc.js → CodeDiff.vue.b74b0167.js} +1 -1
  6. package/dist/client/_nuxt/{ComposableItem.vue.770ce9d1.js → ComposableItem.vue.66a98e20.js} +1 -1
  7. package/dist/client/_nuxt/{DataSchemaButton.vue.65a9244c.js → DataSchemaButton.vue.b30dcd6f.js} +1 -1
  8. package/dist/client/_nuxt/{DataSchemaDrawer.939e0d36.js → DataSchemaDrawer.d00941d6.js} +1 -1
  9. package/dist/client/_nuxt/{DurationDisplay.vue.3abddd08.js → DurationDisplay.vue.5b7cc04d.js} +1 -1
  10. package/dist/client/_nuxt/{FilepathItem.vue.66158bcd.js → FilepathItem.vue.6dd69314.js} +1 -1
  11. package/dist/client/_nuxt/{HelpFab.vue.074157ff.js → HelpFab.vue.314bc83b.js} +1 -1
  12. package/dist/client/_nuxt/{LaunchPage.vue.20d8d836.js → LaunchPage.vue.017c62ce.js} +1 -1
  13. package/dist/client/_nuxt/{NBadge.532c6829.js → NBadge.e849763e.js} +1 -1
  14. package/dist/client/_nuxt/{NCheckbox.vue.83a6e70e.js → NCheckbox.vue.cf7e1e9d.js} +1 -1
  15. package/dist/client/_nuxt/{NCodeBlock.vue.d4a74ca4.js → NCodeBlock.vue.882d562f.js} +1 -1
  16. package/dist/client/_nuxt/{NDrawer.vue.f03c3dec.js → NDrawer.vue.a4010d93.js} +1 -1
  17. package/dist/client/_nuxt/{NDropdown.vue.885f70c3.js → NDropdown.vue.3b1768f5.js} +1 -1
  18. package/dist/client/_nuxt/{NIconTitle.vue.5caf9fc5.js → NIconTitle.vue.71113a3f.js} +1 -1
  19. package/dist/client/_nuxt/{NLink.vue.c05eef3c.js → NLink.vue.a09685db.js} +1 -1
  20. package/dist/client/_nuxt/{NMarkdown.vue.52b3ce56.js → NMarkdown.vue.13c5f0c3.js} +1 -1
  21. package/dist/client/_nuxt/NNavbar.vue.d9a029e0.js +1 -0
  22. package/dist/client/_nuxt/{NSectionBlock.43816001.js → NSectionBlock.7f41e147.js} +1 -1
  23. package/dist/client/_nuxt/{NSelect.vue.dcac9c73.js → NSelect.vue.e7f8c81a.js} +1 -1
  24. package/dist/client/_nuxt/{NSelectTabs.vue.411a7347.js → NSelectTabs.vue.ddc009ff.js} +1 -1
  25. package/dist/client/_nuxt/{NSwitch.vue.aacb5de3.js → NSwitch.vue.8d3010b0.js} +1 -1
  26. package/dist/client/_nuxt/{NTip.vue.7a94f00d.js → NTip.vue.3f5fb5a1.js} +1 -1
  27. package/dist/client/_nuxt/{StateEditor.vue.e862f0c1.js → StateEditor.vue.162475d5.js} +1 -1
  28. package/dist/client/_nuxt/__blank.f49c5a73.js +1 -0
  29. package/dist/client/_nuxt/{analyze-build.2cdd206f.js → analyze-build.988e7c9e.js} +1 -1
  30. package/dist/client/_nuxt/assets.2b649247.js +16 -0
  31. package/dist/client/_nuxt/{client.ab169146.js → client.253674ec.js} +1 -1
  32. package/dist/client/_nuxt/{components.81bb7f4d.js → components.7583b49c.js} +1 -1
  33. package/dist/client/_nuxt/{constants.4e5eba24.js → constants.2cc6e981.js} +1 -1
  34. package/dist/client/_nuxt/{css.a67813b3.js → css.f61fd02b.js} +3 -3
  35. package/dist/client/_nuxt/custom-_name_.0e141ac3.js +1 -0
  36. package/dist/client/_nuxt/{default.de670135.js → default.a50dad07.js} +1 -1
  37. package/dist/client/_nuxt/entry.3dd66f35.js +27 -0
  38. package/dist/client/_nuxt/{entry.ebd8706b.css → entry.960c025a.css} +1 -1
  39. package/dist/client/_nuxt/{error-404.b43ed6fa.js → error-404.429edf81.js} +1 -1
  40. package/dist/client/_nuxt/{error-500.9a32d319.js → error-500.9e83b20b.js} +1 -1
  41. package/dist/client/_nuxt/{full.44b6f3d9.js → full.c90b8ab9.js} +1 -1
  42. package/dist/client/_nuxt/{hooks.85310903.js → hooks.40588927.js} +1 -1
  43. package/dist/client/_nuxt/{html.af01869e.js → html.14085b69.js} +1 -1
  44. package/dist/client/_nuxt/{imports.3e92b5b9.js → imports.7b590e48.js} +1 -1
  45. package/dist/client/_nuxt/{index.370f8c55.js → index.8013a14e.js} +1 -1
  46. package/dist/client/_nuxt/{index.780a9ee0.js → index.90ae56cb.js} +1 -1
  47. package/dist/client/_nuxt/{json-editor-vue.724e0801.js → json-editor-vue.465dc720.js} +2 -2
  48. package/dist/client/_nuxt/{middleware.44a34c7b.js → middleware.72aa446e.js} +1 -1
  49. package/dist/client/_nuxt/{modules.24081f84.js → modules.d997669f.js} +1 -1
  50. package/dist/client/_nuxt/{none.06949a5f.js → none.ab2b300f.js} +1 -1
  51. package/dist/client/_nuxt/open-graph.1cc10683.js +3 -0
  52. package/dist/client/_nuxt/{overview.86a88207.js → overview.014aea35.js} +1 -1
  53. package/dist/client/_nuxt/pages.7f7e1a57.js +1 -0
  54. package/dist/client/_nuxt/{payload.1baa204b.js → payload.58a8bb6b.js} +1 -1
  55. package/dist/client/_nuxt/{plugins.f261769b.js → plugins.1f073986.js} +1 -1
  56. package/dist/client/_nuxt/{runtime-configs.a5615107.js → runtime-configs.6d4dd513.js} +1 -1
  57. package/dist/client/_nuxt/{server-routes.2022f4ba.js → server-routes.b5fc14db.js} +1 -1
  58. package/dist/client/_nuxt/{settings.ab7b45b3.js → settings.04d1166d.js} +1 -1
  59. package/dist/client/_nuxt/shellscript.e25d1410.js +4 -0
  60. package/dist/client/_nuxt/{state-components.1d5849c5.js → state-components.c2be3414.js} +1 -1
  61. package/dist/client/_nuxt/{state-modules.78318316.js → state-modules.5bf4563c.js} +1 -1
  62. package/dist/client/_nuxt/{storage-options.8ca9ecbc.js → storage-options.2224e06b.js} +1 -1
  63. package/dist/client/_nuxt/{storage.cb6d643c.js → storage.8cd70b69.js} +1 -1
  64. package/dist/client/_nuxt/{terminals.06dde221.js → terminals.ce3bbf0e.js} +1 -1
  65. package/dist/client/_nuxt/{timeline.5add59be.js → timeline.23647b38.js} +1 -1
  66. package/dist/client/_nuxt/{unocss-runtime.1dfe0ac4.js → unocss-runtime.41db0d67.js} +1 -1
  67. package/dist/client/_nuxt/{virtual-files.804fdba7.js → virtual-files.bc5e9072.js} +1 -1
  68. package/dist/client/_nuxt/{vitesse-dark.ab479e3d.js → vitesse-dark.ff0e7dcb.js} +1 -1
  69. package/dist/client/_nuxt/{vitesse-light.696edcfd.js → vitesse-light.c6996724.js} +1 -1
  70. package/dist/client/_nuxt/{vue-html.0806679f.js → vue-html.88dda4a8.js} +1 -1
  71. package/dist/client/_nuxt/{vue.24311fdc.js → vue.7ad3b25a.js} +3 -3
  72. package/dist/client/index.html +24 -24
  73. package/dist/client/modules/analyze-build/index.html +24 -24
  74. package/dist/client/modules/assets/index.html +24 -24
  75. package/dist/client/modules/components/index.html +24 -24
  76. package/dist/client/modules/hooks/index.html +24 -24
  77. package/dist/client/modules/imports/index.html +24 -24
  78. package/dist/client/modules/middleware/index.html +24 -24
  79. package/dist/client/modules/modules/index.html +24 -24
  80. package/dist/client/modules/open-graph/index.html +24 -24
  81. package/dist/client/modules/overview/index.html +24 -24
  82. package/dist/client/modules/pages/index.html +24 -24
  83. package/dist/client/modules/payload/index.html +24 -24
  84. package/dist/client/modules/plugins/index.html +24 -24
  85. package/dist/client/modules/runtime-configs/index.html +24 -24
  86. package/dist/client/modules/server-routes/index.html +24 -24
  87. package/dist/client/modules/storage/index.html +24 -24
  88. package/dist/client/modules/terminals/index.html +24 -24
  89. package/dist/client/modules/timeline/index.html +24 -24
  90. package/dist/client/modules/virtual-files/index.html +24 -24
  91. package/dist/client/settings/index.html +24 -24
  92. package/dist/module.json +1 -1
  93. package/package.json +8 -8
  94. package/dist/client/_nuxt/NNavbar.vue.0f176f87.js +0 -1
  95. package/dist/client/_nuxt/assets.41fcf77e.js +0 -16
  96. package/dist/client/_nuxt/custom-_name_.3060f125.js +0 -1
  97. package/dist/client/_nuxt/entry.9effa704.js +0 -27
  98. package/dist/client/_nuxt/open-graph.6cf823d3.js +0 -3
  99. package/dist/client/_nuxt/pages.23eb0566.js +0 -1
  100. package/dist/client/_nuxt/shellscript.9d056341.js +0 -4
@@ -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.9effa704.js";import{_ as de}from"./FilepathItem.vue.66158bcd.js";import{_ as ce}from"./NTip.vue.7a94f00d.js";import{_ as me}from"./NCodeBlock.vue.d4a74ca4.js";import{_ as _e}from"./NCheckbox.vue.83a6e70e.js";import{_ as pe}from"./HelpFab.vue.074157ff.js";import"./client.ab169146.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.3dd66f35.js";import{_ as de}from"./FilepathItem.vue.6dd69314.js";import{_ as ce}from"./NTip.vue.3f5fb5a1.js";import{_ as me}from"./NCodeBlock.vue.882d562f.js";import{_ as _e}from"./NCheckbox.vue.cf7e1e9d.js";import{_ as pe}from"./HelpFab.vue.314bc83b.js";import"./client.253674ec.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};
@@ -0,0 +1,16 @@
1
+ import{d as X,r as F,Y as q,o as s,m as c,i as d,f as t,k as e,v as C,F as B,n as Z,h as I,j as b,p as E,G as Y,Z as U,a0 as de,a1 as pe,U as me,K as G,L as H,_ as ee,a2 as ne,W as oe,a as P,a3 as fe,a4 as ve,a5 as se,t as N,a6 as le,a7 as he,l as R,a8 as _e,b as te,a9 as ge,e as xe,aa as be,ab as ae,I as W,ac as we,ad as ye,X as $e,ae as ke,af as Ce,ag as Pe}from"./entry.3dd66f35.js";import{_ as Ae}from"./NNavbar.vue.d9a029e0.js";import{_ as De}from"./NSectionBlock.7f41e147.js";import{_ as Ve}from"./FilepathItem.vue.6dd69314.js";import{_ as Ne,u as Fe}from"./storage-options.2224e06b.js";import{_ as Se}from"./NDrawer.vue.a4010d93.js";import{D as Ie}from"./constants.2cc6e981.js";import"./NIconTitle.vue.71113a3f.js";import"./NCodeBlock.vue.882d562f.js";import"./client.253674ec.js";const Te={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},je={for:"drop-zone-input","text-3xl":""},Ue={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},Ee=e("div",{px6:"",py6:""},[e("h1",{"text-2xl":""}," Upload "),e("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1),Le={grid:"~ cols-minmax-8rem","overflow-auto":"",p6:""},Be={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Me=["src"],ze={flex:"~ gap1","items-center":""},Oe={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Re=X({__name:"AssetDropZone",props:{folder:{type:String,required:!0}},setup(T){const a=T,p=F(!1),n=F(),m=F([]),h=["image","video"];function A(r){n.value=r.target,p.value=!0}function u(r){r.target===n.value&&(p.value=!1)}function $(r){r.preventDefault()}function K(r){r.preventDefault(),L(r.dataTransfer.files)}function L(r){const g=Array.from(r||[]);if(g.length){const v=[],k=m.value.map(f=>f.name);for(const f of g)if(k.includes(f.name)){let l=1;const[D,i]=f.name.split(".");for(;k.includes(`${D} (${l}).${i}`);)l++;const o=`${D}-${l}.${i}`,z=new Blob([f],{type:f.type}),O=new File([z],o,{lastModified:Date.now()});v.push(O),k.push(o)}else f.type===""?U({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}):h.some(l=>f.type.includes(l))?v.push(f):U({message:`"${f.type}" file type is not allowed`,icon:"carbon:face-dissatisfied",classes:"text-orange"});m.value=[...m.value,...v]}}async function x(){if(de.value||pe.value)return;me("assets:upload");const r=[];for(const g of m.value){const v=new FileReader;v.readAsDataURL(g);const f=(await new Promise(l=>{v.onload=()=>l(v.result)})).split(";base64,").pop();r.push({path:g.name,encoding:"base64",content:f})}await G.writeStaticAssets(await H(),[...r],a.folder).then(()=>{j(),U({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(g=>{console.error(g),j(),U({message:`Error uploading files: ${g}`,icon:"i-carbon-warning",classes:"text-red"})}),p.value=!1}function _(r){m.value?.splice(r,1)}function w(r){return URL.createObjectURL(r)}function M(r,g){const[v,k]=r.name.split("."),f=g.replace(/\.\w+$/,""),l=`${f}.${k}`;return f.length===0?(alert("File name must be at least 1 characters long"),v):(Object.defineProperty(r,"name",{value:l,writable:!1}),m.value.splice(m.value.indexOf(r),1,r),r)}function S(){m.value=[]}function j(){p.value=!1,S()}return q("dragenter",A),q("dragleave",u),q("dragover",$),q("drop",K),(r,g)=>{const v=ee,k=ne,f=oe;return s(),c("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Y(t(p)?"opacity-100 visible":"opacity-0 invisible")},[d(v,{icon:"carbon-close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:j}),t(m)?.length?(s(),c("div",Ue,[Ee,e("div",Le,[(s(!0),c(B,null,Z(t(m),(l,D)=>(s(),c("div",{key:l.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[e("div",Be,[e("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:w(l)},null,8,Me)]),e("div",ze,[d(f,{n:"xs","h-full":"","flex-auto":"","model-value":l.name,"onUpdate:modelValue":i=>M(l,i.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(v,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:i=>_(D)},null,8,["onClick"])])]))),128))]),e("div",Oe,[t(m).length?(s(),I(v,{key:0,n:"red",onClick:S},{default:b(()=>[d(k,{icon:"carbon-clean"}),C(" Clear ")]),_:1})):E("",!0),d(v,{disabled:!t(m).length,n:"primary solid",onClick:x},{default:b(()=>[d(k,{icon:"carbon-cloud-upload"}),C(" Upload ")]),_:1},8,["disabled"])])])):(s(),c("div",Te,[e("label",je,[d(k,{icon:"carbon-cloud-upload","mr-2":""}),C(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:g[0]||(g[0]=l=>L(l.target.files))},null,32)]))],2)}}}),Ke=X({__name:"AssetFontPreview",props:{asset:{}},setup(T){const a=T,p=P(()=>`devtools-assets-${fe(a.asset)}`);return ve(P(()=>`
2
+ @font-face {
3
+ font-family: '${p.value}';
4
+ src: url('${a.asset.publicPath}');
5
+ }
6
+ `)),(n,m)=>(s(),c("div",{"of-hidden":"",style:se({fontFamily:`'${t(p)}'`})}," Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz ",4))}}),Xe={flex:"","items-center":"","justify-center":"","of-hidden":"","bg-active":"","object-cover":"",p1:""},Ge=["src"],Ze={key:2,"i-carbon-document":"","text-3xl":"",op20:""},We={key:3,"w-full":"","self-start":"",p4:""},qe=["textContent"],Ye={key:4},He=["src","autoplay","controls"],Je={key:5},Qe={key:0,"i-carbon-volume-up":"","text-3xl":"",op20:""},et=["src"],tt={key:6,"i-carbon-help":"","text-3xl":"",op20:""},ie=X({__name:"AssetPreview",props:{asset:{},textContent:{},detail:{type:Boolean}},setup(T){return(a,p)=>{const n=Ke;return s(),c("div",Xe,[a.asset.type==="image"?(s(),c("img",{key:0,src:a.asset.publicPath},null,8,Ge)):a.asset.type==="font"?(s(),I(n,{key:a.asset.publicPath,asset:a.asset,"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):a.asset.type==="text"&&!a.textContent?(s(),c("div",Ze)):a.asset.type==="text"&&a.textContent?(s(),c("div",We,[e("pre",{"max-h-10rem":"","of-hidden":"","text-xs":"","font-mono":"",textContent:N(a.textContent)},null,8,qe)])):a.asset.type==="video"?(s(),c("div",Ye,[e("video",{src:a.asset.publicPath,autoplay:a.detail,controls:a.detail},null,8,He)])):a.asset.type==="audio"?(s(),c("div",Je,[a.detail?(s(),c("audio",{key:1,src:a.asset.publicPath,controls:""},null,8,et)):(s(),c("div",Qe))])):(s(),c("div",tt))])}}}),nt={flex:"~ col gap-1",hover:"bg-active","items-center":"","of-hidden":"",rounded:"",p2:""},ot={"w-full":"","of-hidden":"",truncate:"","ws-nowrap":"","text-center":"","text-xs":""},st=X({__name:"AssetGridItem",props:{asset:{},folder:{}},setup(T){const a=T,p=P(()=>a.folder&&a.asset.path.startsWith(a.folder)?a.asset.path.slice(a.folder.length):a.asset.path);return(n,m)=>{const h=ie;return s(),c("button",nt,[d(h,{"h-30":"","w-30":"",rounded:"",border:"~ base",asset:n.asset},null,8,["asset"]),e("div",ot,N(t(p)),1)])}}}),re=X({__name:"AssetListItem",props:{item:{},index:{default:0},modelValue:{}},setup(T,{emit:a}){const p=T,n=le(p,"modelValue",a,{passive:!0}),m=P(()=>p.item?.children?.length),h=F(!0),A=P(()=>m.value?"i-carbon-folder":p.item.type==="image"?"i-carbon-image":p.item.type==="video"?"i-carbon-video":p.item.type==="audio"?"i-carbon-volume-up":p.item.type==="font"?"i-carbon-text-small-caps":p.item.type==="text"?"i-carbon-document":p.item.type==="json"?"i-carbon-json":"i-carbon-document-blank");return(u,$)=>{const K=ne,L=re;return s(),c("div",null,[e("button",{flex:"~ gap-2","w-full":"","items-center":"",hover:"bg-active",px4:"",py1:"",style:se({paddingLeft:`calc(1rem + ${u.index*1.5}em)`}),class:Y({"bg-active":!t(m)&&t(n)?.filePath===u.item?.filePath}),border:"b base",onClick:$[0]||($[0]=x=>t(m)?h.value=!t(h):n.value=u.item)},[e("div",{class:Y(t(A))},null,2),e("span",{class:Y({"flex items-center":t(m)}),"flex-auto":"","text-start":"","text-sm":"","font-mono":""},N(u.item.path),3),t(m)?(s(),I(K,{key:0,icon:"carbon:chevron-right","transform-rotate":t(h)?90:0,transition:""},null,8,["transform-rotate"])):E("",!0)],6),t(h)?he(u.$slots,"default",{key:0},()=>[(s(!0),c(B,null,Z(u.item?.children,x=>(s(),I(L,{key:x.filepath,modelValue:t(n),"onUpdate:modelValue":$[1]||($[1]=_=>R(n)?n.value=_:null),item:x,index:u.index+1},null,8,["modelValue","item","index"]))),128))]):E("",!0)])}}}),lt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},at=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Preview "),e("div",{"x-divider":""})],-1),it={flex:"~","items-center":"","justify-center":""},rt=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Details "),e("div",{"x-divider":""})],-1),ct={"max-w-full":"","w-full":"","table-fixed":""},ut=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Filepath ",-1),dt={flex:"~ gap-1","w-full":"","items-center":""},pt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Public Path ",-1),mt={flex:"~ gap-1","w-full":"","items-center":"","of-hidden":""},ft={"flex-auto":"","of-hidden":"",truncate:"","ws-pre":"","font-mono":""},vt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Type ",-1),ht={capitalize:""},_t=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Image Size ",-1),gt={key:0},xt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Aspect Ratio ",-1),bt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," File size ",-1),wt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Last modified ",-1),yt={op70:""},$t=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Actions "),e("div",{"x-divider":""})],-1),kt={flex:"~ gap2 wrap"},Ct=e("div",{"flex-auto":""},null,-1),Pt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},At=e("span",null," Are you sure you want to delete this asset? ",-1),Dt={flex:"~ gap2 wrap justify-center"},Vt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},Nt={flex:"~ gap2 wrap justify-center"},Ft={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},St=["onKeydown"],It={flex:"","justify-end":"","gap-4":""},Tt=X({__name:"AssetDetails",props:{modelValue:{}},setup(T,{emit:a}){const n=le(T,"modelValue",a,{passive:!0}),m=_e(),h=te(()=>{if(n.value.type==="image")return G.getImageMeta(n.value.filePath)}),A=F(!1),u=F(),$=F(0),K=te(async()=>{if(n.value.type!=="text")return;$.value;const i=await G.getTextAssetContent(n.value.filePath);return u.value=i,i});async function L(){if(K.value!==u.value)try{await G.writeStaticAssets(await H(),[{path:n.value.path,content:u.value,override:!0}],""),A.value=!1,$.value++,U({message:"Updated",icon:"i-carbon-checkmark",classes:"text-green"})}catch{U({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const x=ge(),_=P(()=>(x.value?._installedModules||[]).some(o=>o.meta?.name==="@nuxt/image"||o.meta?.name==="@nuxt/image-edge")),w=P(()=>{const i=[];if(n.value.type==="image"){const o=h.value?.width?`
7
+ width="${h.value.width}"
8
+ height="${h.value.height}" `:" ";return i.push({lang:"vue-html",code:`<img${o}
9
+ src="${n.value.publicPath}"
10
+ />`,name:"Plain Image"}),_.value&&i.push({lang:"vue-html",code:`<NuxtImg${o}
11
+ src="${n.value.publicPath}"
12
+ />`,name:"Nuxt Img",docs:"https://image.nuxt.com/usage/nuxt-img"},{lang:"vue-html",code:`<NuxtPicture${o}
13
+ src="${n.value.publicPath}"
14
+ />`,name:"Nuxt Picture",docs:"https://image.nuxt.com/usage/nuxt-picture"}),i}return i.push({lang:"html",code:`<a download href="${n.value.publicPath}">
15
+ Download ${n.value.path.split("/").slice(-1)[0]}
16
+ </a>`,name:"Download link"}),i}),M=xe(),S=be(()=>n.value.mtime),j=P(()=>{const i=n.value.size;return i<1024?`${i} B`:i<1024*1024?`${(i/1024).toFixed(2)} KB`:`${(i/1024/1024).toFixed(2)} MB`}),r=P(()=>{if(!h.value?.width||!h.value?.height)return"";const i=(z,O)=>O?i(O,z%O):z,o=i(h.value.width,h.value.height);return o>3?`${h.value.width/o}:${h.value.height/o}`:""}),g=P(()=>["image","text","video","audio","font"].includes(n.value.type)),v=F(!1);async function k(){try{await G.deleteStaticAsset(await H(),n.value.filePath),n.value=void 0,v.value=!1,U({message:"Asset deleted",icon:"i-carbon-checkmark",classes:"text-green"})}catch{U({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const f=F(!1),l=F("");async function D(){const i=n.value.filePath.split("/"),o=i.slice(-1)[0].split(".").slice(0,-1).join(".");if(!l.value||l.value===o)return U({message:"Please enter a new name",icon:"i-carbon-warning",classes:"text-orange"});try{const z=i.slice(-1)[0].split(".").slice(-1)[0],O=`${i.slice(0,-1).join("/")}/${l.value}.${z}`;await G.renameStaticAsset(await H(),n.value.filePath,O),n.value=void 0,f.value=!1,U({message:"Asset renamed",icon:"i-carbon-checkmark",classes:"text-green"})}catch{U({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}return(i,o)=>{const z=ie,O=Ve,V=ee,ce=Ne,J=$e,ue=oe,Q=ae("tooltip");return s(),c(B,null,[e("div",lt,[t(g)?(s(),c(B,{key:0},[at,e("div",it,[d(z,{detail:"","max-h-80":"","min-h-20":"","min-w-20":"","w-auto":"",rounded:"",border:"~ base",asset:t(n),"text-content":t(K)},null,8,["asset","text-content"])])],64)):E("",!0),rt,e("table",ct,[e("tbody",null,[e("tr",null,[ut,e("td",null,[e("div",dt,[d(O,{filepath:t(n).filePath,"text-left":""},null,8,["filepath"]),W(d(V,{"flex-none":"",title:"Open in Editor",icon:"carbon-launch",border:!1,onClick:o[0]||(o[0]=y=>t(m)(t(n).filePath))},null,512),[[Q,"Open in Editor"]])])])]),e("tr",null,[pt,e("td",null,[e("div",mt,[e("div",ft,N(t(n).publicPath),1),W(d(V,{"flex-none":"",title:"Copy public path",icon:"carbon-copy",border:!1,onClick:o[1]||(o[1]=y=>t(M)(t(n).publicPath))},null,512),[[Q,"Copy public path"]]),W(d(V,{"flex-none":"",to:t(n).publicPath,icon:"carbon-launch",target:"_blank",border:!1,title:"Open in browser"},null,8,["to"]),[[Q,"Open in browser"]])])])]),e("tr",null,[vt,e("td",ht,N(t(n).type),1)]),t(h)?.width?(s(),c(B,{key:0},[e("tr",null,[_t,e("td",null,N(t(h).width)+" x "+N(t(h).height),1)]),t(r)?(s(),c("tr",gt,[xt,e("td",null,N(t(r)),1)])):E("",!0)],64)):E("",!0),e("tr",null,[bt,e("td",null,N(t(j)),1)]),e("tr",null,[wt,e("td",null,[C(N(new Date(t(n).mtime).toLocaleString())+" ",1),e("span",yt,"("+N(t(S))+")",1)])])])]),$t,e("div",kt,[d(V,{to:t(n).publicPath,download:"",target:"_blank",icon:"carbon-download",n:"green"},{default:b(()=>[C(" Download ")]),_:1},8,["to"]),t(n).type==="text"?(s(),I(V,{key:0,icon:"carbon-edit",n:"cyan",onClick:o[2]||(o[2]=y=>A.value=!t(A))},{default:b(()=>[C(" Edit ")]),_:1})):E("",!0),d(V,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:o[3]||(o[3]=y=>f.value=!t(f))},{default:b(()=>[C(" Rename ")]),_:1}),d(V,{icon:"carbon-delete",n:"red",onClick:o[4]||(o[4]=y=>v.value=!t(v))},{default:b(()=>[C(" Delete ")]),_:1})]),Ct,t(w).length?(s(),I(ce,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":t(w)},null,8,["code-snippets"])):E("",!0)]),d(J,{modelValue:t(v),"onUpdate:modelValue":o[6]||(o[6]=y=>R(v)?v.value=y:null)},{default:b(()=>[e("div",Pt,[At,e("div",Dt,[d(V,{icon:"carbon-close",onClick:o[5]||(o[5]=y=>v.value=!1)},{default:b(()=>[C(" Cancel ")]),_:1}),d(V,{icon:"carbon-delete",n:"red",onClick:k},{default:b(()=>[C(" Delete ")]),_:1})])])]),_:1},8,["modelValue"]),d(J,{modelValue:t(f),"onUpdate:modelValue":o[9]||(o[9]=y=>R(f)?f.value=y:null)},{default:b(()=>[e("div",Vt,[d(ue,{modelValue:t(l),"onUpdate:modelValue":o[7]||(o[7]=y=>R(l)?l.value=y:null),placeholder:"New name",n:"blue"},null,8,["modelValue"]),e("div",Nt,[d(V,{icon:"carbon-close",onClick:o[8]||(o[8]=y=>f.value=!1)},{default:b(()=>[C(" Cancel ")]),_:1}),d(V,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:D},{default:b(()=>[C(" Rename ")]),_:1})])])]),_:1},8,["modelValue"]),t(n).type==="text"?(s(),I(J,{key:0,modelValue:t(A),"onUpdate:modelValue":o[12]||(o[12]=y=>R(A)?A.value=y:null)},{default:b(()=>[e("div",Ft,[W(e("textarea",{"onUpdate:modelValue":o[10]||(o[10]=y=>R(u)?u.value=y:null),placeholder:"Item value...",class:"h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none",onKeydown:we(L,["enter"])},null,40,St),[[ye,t(u)]]),e("div",It,[d(V,{icon:"carbon-close",onClick:o[11]||(o[11]=y=>A.value=!1)},{default:b(()=>[C(" Cancel ")]),_:1}),d(V,{icon:"carbon:save",n:"primary",onClick:L},{default:b(()=>[C(" save ")]),_:1})])])]),_:1},8,["modelValue"])):E("",!0)],64)}}}),jt={"h-full":"","of-auto":""},Ut={"flex-none":"",flex:"~ gap2 items-center"},Et={op50:""},Lt={key:0},Bt={"mt--4":"",px2:"",grid:"~ cols-minmax-8rem"},Mt={key:1,p2:"",grid:"~ cols-minmax-8rem"},zt={key:1},Jt=X({__name:"assets",setup(T){const a=ke(),p=F(""),n=P(()=>new Ce(a.value||[],{keys:["path"]})),m=P(()=>p.value?n.value.search(p.value).map(_=>_.item):a.value||[]),h=P(()=>{const x={};for(const _ of m.value){const w=`${_.path.split("/").slice(0,-1).join("/")}/`;x[w]||(x[w]=[]),x[w].push(_)}return Object.entries(x).sort(([_],[w])=>_.localeCompare(w))}),A=P(()=>{const x={path:"public",children:[]},_=(w,M,S)=>{const[j,...r]=M;let g=w.children.find(v=>v.path===j);g||(g={...S,path:j,children:[]},w.children.push(g)),r.length>1?_(g,r,S):r.length===1&&g.children.push({...S,path:r[0]})};return m.value.forEach(w=>{const M=w.path.split("/").filter(S=>S!=="");_(x,M,w)}),x.children}),u=F(),{view:$}=Fe("assets");function K(){$.value=$.value==="list"?"grid":"list"}Pe("Escape",()=>{u.value=void 0});const L=F();return(x,_)=>{const w=ee,M=Ae,S=Re,j=st,r=De,g=re,v=Tt,k=Se,f=ae("tooltip");return s(),c("div",jt,[d(M,{ref_key:"navbar",ref:L,search:t(p),"onUpdate:search":_[0]||(_[0]=l=>R(p)?p.value=l:null),pb2:""},{actions:b(()=>[e("div",Ut,[W(d(w,{"text-lg":"",border:!1,icon:t($)==="grid"?"i-carbon-list":"i-carbon-grid",title:"Toggle view",onClick:K},null,8,["icon"]),[[f,"Toggle View",void 0,{"bottom-end":!0}]])])]),default:b(()=>[e("div",Et,[t(p)?(s(),c("span",Lt,N(t(m).length)+" matched · ",1)):E("",!0),e("span",null,N(t(a)?.length)+" assets in total",1)])]),_:1},8,["search"]),d(S,{folder:"/"}),t($)==="grid"?(s(),c(B,{key:0},[t(h).length>1?(s(!0),c(B,{key:0},Z(t(h),([l,D])=>(s(),I(r,{key:l,text:l,description:`${D.length} items`,open:D.length<=("DETAILS_MAX_ITEMS"in x?x.DETAILS_MAX_ITEMS:t(Ie)),padding:!1},{default:b(()=>[e("div",Bt,[(s(!0),c(B,null,Z(D,i=>(s(),I(j,{key:i.path,asset:i,folder:l,onClick:o=>u.value=i},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(s(),c("div",Mt,[(s(!0),c(B,null,Z(t(m),l=>(s(),I(j,{key:l.path,asset:l,onClick:D=>u.value=l},null,8,["asset","onClick"]))),128))]))],64)):(s(),c("div",zt,[(s(!0),c(B,null,Z(t(A),(l,D)=>(s(),I(g,{key:D,modelValue:t(u),"onUpdate:modelValue":_[1]||(_[1]=i=>R(u)?u.value=i:null),item:l},null,8,["modelValue","item"]))),128))])),d(k,{"model-value":!!t(u),"auto-close":"","w-120":"",top:t(L),onClose:_[3]||(_[3]=l=>u.value=void 0)},{default:b(()=>[t(u)?(s(),I(v,{key:0,modelValue:t(u),"onUpdate:modelValue":_[2]||(_[2]=l=>R(u)?u.value=l:null)},null,8,["modelValue"])):E("",!0)]),_:1},8,["model-value","top"])])}}});export{Jt as default};
@@ -1 +1 @@
1
- import{bo as f,bD as r}from"./entry.9effa704.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{bo as f,bD as r}from"./entry.3dd66f35.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 we,k as Q,d as Un,a as Jt,v as zh,t as tu,f as K,e as YO,i as be,h as nt,p as at,F as ur,n as mi,a7 as Pu,_ as rf,r as gn,ah as XO,ai as QO,a9 as JO,aj as ZO,ak as eT,w as tT,j as Le,B as Y$,al as rT,l as bi,am as iT,G as nT,an as aT,af as oT,ao as sT,ap as uT,aq as Xo,a2 as lT,ar as dT,ab as hT,as as cT,I as Mv}from"./entry.9effa704.js";import{_ as fT}from"./HelpFab.vue.074157ff.js";import{u as vT,a as pT}from"./state-components.1d5849c5.js";import{_ as gT}from"./NCheckbox.vue.83a6e70e.js";import{_ as X$}from"./NNavbar.vue.0f176f87.js";import{_ as Q$}from"./NBadge.532c6829.js";import{_ as J$}from"./FilepathItem.vue.66158bcd.js";import{_ as yT}from"./NDrawer.vue.f03c3dec.js";import{_ as mT}from"./NSelectTabs.vue.411a7347.js";import{_ as bT}from"./NSectionBlock.43816001.js";import{_ as $T}from"./NIconTitle.vue.5caf9fc5.js";import{D as Cl}from"./constants.4e5eba24.js";const wT={class:"markdown-body"},_T=Q("h1",null,"Components",-1),ET=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),ST=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),OT=Q("p",null,[Q("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),TT=[_T,ET,ST,OT],kT={__name:"components",setup(r,{expose:n}){return n({frontmatter:{}}),(t,i)=>(ee(),we("div",wT,TT))}},PT=/\d/,IT=["-","_","/","."];function CT(r=""){if(!PT.test(r))return r.toUpperCase()===r}function xT(r,n){const e=n??IT,t=[];if(!r||typeof r!="string")return t;let i="",a,o;for(const s of r){const u=e.includes(s);if(u===!0){t.push(i),i="",a=void 0;continue}const l=CT(s);if(o===!1){if(a===!1&&l===!0){t.push(i),i=s,a=l;continue}if(a===!0&&l===!1&&i.length>1){const d=i[i.length-1];t.push(i.slice(0,Math.max(0,i.length-1))),i=d+s,a=l;continue}}i+=s,a=l,o=u}return t.push(i),t}function AT(r){return r?r[0].toUpperCase()+r.slice(1):""}function Z$(r){return r?(Array.isArray(r)?r:xT(r)).map(n=>AT(n)).join(""):""}const DT={"text-sm":"","font-mono":""},RT=Q("span",{mr1:"",op20:""},"<",-1),MT=Q("span",{ml1:"",op20:""},"/>",-1),e1=Un({__name:"ComponentName",props:{component:{}},setup(r){const n=r,e=Jt(()=>n.component.pascalName||Z$(n.component.name||n.component.__name||n.component.kebabName||""));return(t,i)=>(ee(),we("code",DT,[RT,zh(tu(K(e)),1),MT]))}}),NT={flex:"~ col gap1","items-start":"","of-hidden":""},FT={flex:"~ gap2",px3:""},BT={px3:"",pb2:""},LT={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},jT={"text-sm":""},zT={"text-primary":""},HT=Q("span",{op50:""}," references",-1),WT={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},VT={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},UT={"text-sm":""},GT={"text-primary":""},KT=Q("span",{op50:""}," dependencies",-1),qT={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},t1=Un({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const n=r,e=Jt(()=>n.component.pascalName||Z$(n.component.name||n.component.__name||n.component.kebabName||"")),t=Jt(()=>n.component.filePath||n.component.file||n.component.__file||""),i=YO();return(a,o)=>{const s=e1,u=rf,l=Q$,d=J$;return ee(),we("div",NT,[Q("div",FT,[be(s,{component:a.component},null,8,["component"]),be(u,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:o[0]||(o[0]=h=>K(i)(`<${K(e)}></${K(e)}>`))}),a.component.global?(ee(),nt(l,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):at("",!0)]),Q("div",BT,[K(t)?(ee(),nt(d,{key:0,filepath:K(t),"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):at("",!0)]),a.dependents?(ee(),we("div",LT,[Q("div",jT,[Q("strong",zT,tu(a.dependents.length),1),HT]),a.dependents.length?(ee(),we("div",WT,[(ee(!0),we(ur,null,mi(a.dependents,h=>(ee(),nt(d,{key:h,filepath:h},null,8,["filepath"]))),128))])):at("",!0)])):at("",!0),a.dependencies?(ee(),we("div",VT,[Q("div",UT,[Q("strong",GT,tu(a.dependencies.length),1),KT]),a.dependencies.length?(ee(),we("div",qT,[(ee(!0),we(ur,null,mi(a.dependencies,h=>(ee(),nt(d,{key:h,filepath:h},null,8,["filepath"]))),128))])):at("",!0)])):at("",!0),Pu(a.$slots,"default")])}}});/**
1
+ import{o as ee,m as we,k as Q,d as Un,a as Jt,v as zh,t as tu,f as K,e as YO,i as be,h as nt,p as at,F as ur,n as mi,a7 as Pu,_ as rf,r as gn,ah as XO,ai as QO,a9 as JO,aj as ZO,ak as eT,w as tT,j as Le,B as Y$,al as rT,l as bi,am as iT,G as nT,an as aT,af as oT,ao as sT,ap as uT,aq as Xo,a2 as lT,ar as dT,ab as hT,as as cT,I as Mv}from"./entry.3dd66f35.js";import{_ as fT}from"./HelpFab.vue.314bc83b.js";import{u as vT,a as pT}from"./state-components.c2be3414.js";import{_ as gT}from"./NCheckbox.vue.cf7e1e9d.js";import{_ as X$}from"./NNavbar.vue.d9a029e0.js";import{_ as Q$}from"./NBadge.e849763e.js";import{_ as J$}from"./FilepathItem.vue.6dd69314.js";import{_ as yT}from"./NDrawer.vue.a4010d93.js";import{_ as mT}from"./NSelectTabs.vue.ddc009ff.js";import{_ as bT}from"./NSectionBlock.7f41e147.js";import{_ as $T}from"./NIconTitle.vue.71113a3f.js";import{D as Cl}from"./constants.2cc6e981.js";const wT={class:"markdown-body"},_T=Q("h1",null,"Components",-1),ET=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),ST=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),OT=Q("p",null,[Q("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),TT=[_T,ET,ST,OT],kT={__name:"components",setup(r,{expose:n}){return n({frontmatter:{}}),(t,i)=>(ee(),we("div",wT,TT))}},PT=/\d/,IT=["-","_","/","."];function CT(r=""){if(!PT.test(r))return r.toUpperCase()===r}function xT(r,n){const e=n??IT,t=[];if(!r||typeof r!="string")return t;let i="",a,o;for(const s of r){const u=e.includes(s);if(u===!0){t.push(i),i="",a=void 0;continue}const l=CT(s);if(o===!1){if(a===!1&&l===!0){t.push(i),i=s,a=l;continue}if(a===!0&&l===!1&&i.length>1){const d=i[i.length-1];t.push(i.slice(0,Math.max(0,i.length-1))),i=d+s,a=l;continue}}i+=s,a=l,o=u}return t.push(i),t}function AT(r){return r?r[0].toUpperCase()+r.slice(1):""}function Z$(r){return r?(Array.isArray(r)?r:xT(r)).map(n=>AT(n)).join(""):""}const DT={"text-sm":"","font-mono":""},RT=Q("span",{mr1:"",op20:""},"<",-1),MT=Q("span",{ml1:"",op20:""},"/>",-1),e1=Un({__name:"ComponentName",props:{component:{}},setup(r){const n=r,e=Jt(()=>n.component.pascalName||Z$(n.component.name||n.component.__name||n.component.kebabName||""));return(t,i)=>(ee(),we("code",DT,[RT,zh(tu(K(e)),1),MT]))}}),NT={flex:"~ col gap1","items-start":"","of-hidden":""},FT={flex:"~ gap2",px3:""},BT={px3:"",pb2:""},LT={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},jT={"text-sm":""},zT={"text-primary":""},HT=Q("span",{op50:""}," references",-1),WT={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},VT={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},UT={"text-sm":""},GT={"text-primary":""},KT=Q("span",{op50:""}," dependencies",-1),qT={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},t1=Un({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const n=r,e=Jt(()=>n.component.pascalName||Z$(n.component.name||n.component.__name||n.component.kebabName||"")),t=Jt(()=>n.component.filePath||n.component.file||n.component.__file||""),i=YO();return(a,o)=>{const s=e1,u=rf,l=Q$,d=J$;return ee(),we("div",NT,[Q("div",FT,[be(s,{component:a.component},null,8,["component"]),be(u,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:o[0]||(o[0]=h=>K(i)(`<${K(e)}></${K(e)}>`))}),a.component.global?(ee(),nt(l,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):at("",!0)]),Q("div",BT,[K(t)?(ee(),nt(d,{key:0,filepath:K(t),"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):at("",!0)]),a.dependents?(ee(),we("div",LT,[Q("div",jT,[Q("strong",zT,tu(a.dependents.length),1),HT]),a.dependents.length?(ee(),we("div",WT,[(ee(!0),we(ur,null,mi(a.dependents,h=>(ee(),nt(d,{key:h,filepath:h},null,8,["filepath"]))),128))])):at("",!0)])):at("",!0),a.dependencies?(ee(),we("div",VT,[Q("div",UT,[Q("strong",GT,tu(a.dependencies.length),1),KT]),a.dependencies.length?(ee(),we("div",qT,[(ee(!0),we(ur,null,mi(a.dependencies,h=>(ee(),nt(d,{key:h,filepath:h},null,8,["filepath"]))),128))])):at("",!0)])):at("",!0),Pu(a.$slots,"default")])}}});/**
2
2
  * vis-data
3
3
  * http://visjs.org/
4
4
  *
@@ -1 +1 @@
1
- const t=35,e={nuxt:{useAppConfig:"https://nuxt.com/docs/api/composables/use-app-config",useAsyncData:"https://nuxt.com/docs/api/composables/use-async-data",useCookie:"https://nuxt.com/docs/api/composables/use-cookie",useError:"https://nuxt.com/docs/api/composables/use-error",useFetch:"https://nuxt.com/docs/api/composables/use-fetch",useHead:"https://nuxt.com/docs/api/composables/use-head",useHeadSafe:"https://nuxt.com/docs/api/composables/use-head-safe",useLazyAsyncData:"https://nuxt.com/docs/api/composables/use-lazy-async-data",useLazyFetch:"https://nuxt.com/docs/api/composables/use-lazy-fetch",useNuxtApp:"https://nuxt.com/docs/api/composables/use-nuxt-app",useRoute:"https://nuxt.com/docs/api/composables/use-route",useRouter:"https://nuxt.com/docs/api/composables/use-router",useRuntimeConfig:"https://nuxt.com/docs/api/composables/use-runtime-config",useState:"https://nuxt.com/docs/api/composables/use-state",$fetch:"https://nuxt.com/docs/api/utils/dollarfetch",abortNavigation:"https://nuxt.com/docs/api/utils/abort-navigation",createError:"https://nuxt.com/docs/api/utils/create-error",defineNuxtComponent:"https://nuxt.com/docs/api/utils/define-nuxt-component",definePageMeta:"https://nuxt.com/docs/api/utils/define-page-meta",navigateTo:"https://nuxt.com/docs/api/utils/navigate-to#navigateto",onBeforeRouteLeave:"https://nuxt.com/docs/api/utils/on-before-route-leave",onBeforeRouteUpdate:"https://nuxt.com/docs/api/utils/on-before-route-update",updateAppConfig:"https://nuxt.com/docs/api/utils/update-app-config"},vue:{ref:"https://vuejs.org/api/reactivity-core.html#ref",computed:"https://vuejs.org/api/reactivity-core.html#computed",reactive:"https://vuejs.org/api/reactivity-core.html#reactive",watch:"https://vuejs.org/api/reactivity-core.html#watch",watchEffect:"https://vuejs.org/api/reactivity-core.html#watcheffect",watchPostEffect:"https://vuejs.org/api/reactivity-core.html#watchposteffect",watchSyncEffect:"https://vuejs.org/api/reactivity-core.html#watchsynceffect",onMounted:"https://vuejs.org/api/composition-api-lifecycle.html#onmounted",onUnmounted:"https://vuejs.org/api/composition-api-lifecycle.html#onunmounted",onActivated:"https://vuejs.org/api/composition-api-lifecycle.html#onactivated",onDeactivated:"https://vuejs.org/api/composition-api-lifecycle.html#ondeactivated",onBeforeMount:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforemount",onBeforeUnmount:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforeunmount",onUpdated:"https://vuejs.org/api/composition-api-lifecycle.html#onupdated",onBeforeUpdate:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforeupdate",nextTick:"https://vuejs.org/api/general.html#nexttick"}},o={snippet:"i-carbon-code",headers:"i-carbon-html-reference",cookies:"i-carbon-cookie",params:"i-carbon-text-selection",query:"i-carbon-help",body:"i-carbon-document"};export{e as C,t as D,o as S};
1
+ const t=50,e={nuxt:{useAppConfig:"https://nuxt.com/docs/api/composables/use-app-config",useAsyncData:"https://nuxt.com/docs/api/composables/use-async-data",useCookie:"https://nuxt.com/docs/api/composables/use-cookie",useError:"https://nuxt.com/docs/api/composables/use-error",useFetch:"https://nuxt.com/docs/api/composables/use-fetch",useHead:"https://nuxt.com/docs/api/composables/use-head",useHeadSafe:"https://nuxt.com/docs/api/composables/use-head-safe",useLazyAsyncData:"https://nuxt.com/docs/api/composables/use-lazy-async-data",useLazyFetch:"https://nuxt.com/docs/api/composables/use-lazy-fetch",useNuxtApp:"https://nuxt.com/docs/api/composables/use-nuxt-app",useRoute:"https://nuxt.com/docs/api/composables/use-route",useRouter:"https://nuxt.com/docs/api/composables/use-router",useRuntimeConfig:"https://nuxt.com/docs/api/composables/use-runtime-config",useState:"https://nuxt.com/docs/api/composables/use-state",$fetch:"https://nuxt.com/docs/api/utils/dollarfetch",abortNavigation:"https://nuxt.com/docs/api/utils/abort-navigation",createError:"https://nuxt.com/docs/api/utils/create-error",defineNuxtComponent:"https://nuxt.com/docs/api/utils/define-nuxt-component",definePageMeta:"https://nuxt.com/docs/api/utils/define-page-meta",navigateTo:"https://nuxt.com/docs/api/utils/navigate-to#navigateto",onBeforeRouteLeave:"https://nuxt.com/docs/api/utils/on-before-route-leave",onBeforeRouteUpdate:"https://nuxt.com/docs/api/utils/on-before-route-update",updateAppConfig:"https://nuxt.com/docs/api/utils/update-app-config"},vue:{ref:"https://vuejs.org/api/reactivity-core.html#ref",computed:"https://vuejs.org/api/reactivity-core.html#computed",reactive:"https://vuejs.org/api/reactivity-core.html#reactive",watch:"https://vuejs.org/api/reactivity-core.html#watch",watchEffect:"https://vuejs.org/api/reactivity-core.html#watcheffect",watchPostEffect:"https://vuejs.org/api/reactivity-core.html#watchposteffect",watchSyncEffect:"https://vuejs.org/api/reactivity-core.html#watchsynceffect",onMounted:"https://vuejs.org/api/composition-api-lifecycle.html#onmounted",onUnmounted:"https://vuejs.org/api/composition-api-lifecycle.html#onunmounted",onActivated:"https://vuejs.org/api/composition-api-lifecycle.html#onactivated",onDeactivated:"https://vuejs.org/api/composition-api-lifecycle.html#ondeactivated",onBeforeMount:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforemount",onBeforeUnmount:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforeunmount",onUpdated:"https://vuejs.org/api/composition-api-lifecycle.html#onupdated",onBeforeUpdate:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforeupdate",nextTick:"https://vuejs.org/api/general.html#nexttick"}},o={snippet:"i-carbon-code",headers:"i-carbon-html-reference",cookies:"i-carbon-cookie",params:"i-carbon-text-selection",query:"i-carbon-help",body:"i-carbon-document"};export{e as C,t as D,o as S};
@@ -1,4 +1,4 @@
1
- const e=Object.freeze({information_for_contributors:["This file has been converted from https://github.com/microsoft/vscode-css/blob/master/grammars/css.cson","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],version:"https://github.com/microsoft/vscode-css/commit/3bd00206f6b0d16eb2eba53fb886462eb8c58baa",name:"css",scopeName:"source.css",patterns:[{include:"#comment-block"},{include:"#escapes"},{include:"#combinators"},{include:"#selector"},{include:"#at-rules"},{include:"#rule-list"}],repository:{"at-rules":{patterns:[{begin:"\\A(?:\\xEF\\xBB\\xBF)?(?i:(?=\\s*@charset\\b))",end:";|(?=$)",endCaptures:{0:{name:"punctuation.terminator.rule.css"}},name:"meta.at-rule.charset.css",patterns:[{captures:{1:{name:"invalid.illegal.not-lowercase.charset.css"},2:{name:"invalid.illegal.leading-whitespace.charset.css"},3:{name:"invalid.illegal.no-whitespace.charset.css"},4:{name:"invalid.illegal.whitespace.charset.css"},5:{name:"invalid.illegal.not-double-quoted.charset.css"},6:{name:"invalid.illegal.unclosed-string.charset.css"},7:{name:"invalid.illegal.unexpected-characters.charset.css"}},match:`(?x) # Possible errors:
1
+ const e=Object.freeze({information_for_contributors:["This file has been converted from https://github.com/microsoft/vscode-css/blob/master/grammars/css.cson","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],version:"https://github.com/microsoft/vscode-css/commit/c216f777497265700ff336f739328e5197e012cd",name:"css",scopeName:"source.css",patterns:[{include:"#comment-block"},{include:"#escapes"},{include:"#combinators"},{include:"#selector"},{include:"#at-rules"},{include:"#rule-list"}],repository:{"at-rules":{patterns:[{begin:"\\A(?:\\xEF\\xBB\\xBF)?(?i:(?=\\s*@charset\\b))",end:";|(?=$)",endCaptures:{0:{name:"punctuation.terminator.rule.css"}},name:"meta.at-rule.charset.css",patterns:[{captures:{1:{name:"invalid.illegal.not-lowercase.charset.css"},2:{name:"invalid.illegal.leading-whitespace.charset.css"},3:{name:"invalid.illegal.no-whitespace.charset.css"},4:{name:"invalid.illegal.whitespace.charset.css"},5:{name:"invalid.illegal.not-double-quoted.charset.css"},6:{name:"invalid.illegal.unclosed-string.charset.css"},7:{name:"invalid.illegal.unexpected-characters.charset.css"}},match:`(?x) # Possible errors:
2
2
  \\G
3
3
  ((?!@charset)@\\w+) # Not lowercase (@charset is case-sensitive)
4
4
  |
@@ -209,7 +209,7 @@ const e=Object.freeze({information_for_contributors:["This file has been convert
209
209
  \\b # Boundary checking intentionally lax to
210
210
  )? # facilitate embedding in CSS-like grammars`,name:"constant.numeric.css"}]},"property-keywords":{patterns:[{match:`(?xi) (?<![\\w-])
211
211
  (above|absolute|active|add|additive|after-edge|alias|all|all-petite-caps|all-scroll|all-small-caps|alpha|alphabetic|alternate|alternate-reverse
212
- |always|antialiased|auto|auto-pos|available|avoid|avoid-column|avoid-page|avoid-region|backwards|balance|baseline|before-edge|below|bevel
212
+ |always|antialiased|auto|auto-fill|auto-fit|auto-pos|available|avoid|avoid-column|avoid-page|avoid-region|backwards|balance|baseline|before-edge|below|bevel
213
213
  |bidi-override|blink|block|block-axis|block-start|block-end|bold|bolder|border|border-box|both|bottom|bottom-outside|break-all|break-word|bullets
214
214
  |butt|capitalize|caption|cell|center|central|char|circle|clip|clone|close-quote|closest-corner|closest-side|col-resize|collapse|color|color-burn
215
215
  |color-dodge|column|column-reverse|common-ligatures|compact|condensed|contain|content|content-box|contents|context-menu|contextual|copy|cover
@@ -265,7 +265,7 @@ const e=Object.freeze({information_for_contributors:["This file has been convert
265
265
  | border-start-start-radius|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style
266
266
  | border-top-width|border-width|bottom|box-decoration-break|box-shadow|box-sizing|break-after|break-before|break-inside|caption-side
267
267
  | caret-color|clear|clip|clip-path|clip-rule|color|color-adjust|color-interpolation-filters|color-scheme|column-count|column-fill|column-gap
268
- | column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|contain|content|counter-increment
268
+ | column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|contain|container|container-name|container-type|content|counter-increment
269
269
  | counter-reset|cursor|direction|display|empty-cells|enable-background|fallback|fill|fill-opacity|fill-rule|filter|flex|flex-basis
270
270
  | flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|flood-color|flood-opacity|font|font-display|font-family
271
271
  | font-feature-settings|font-kerning|font-language-override|font-optical-sizing|font-size|font-size-adjust|font-stretch
@@ -0,0 +1 @@
1
+ import{d as $,ah as q,r as A,a as x,at as B,au as D,ak as j,av as M,aw as y,ax as E,ay as N,m as V,o as s,az as I,O as L,aA as O,aB as C,aC as P,f as a,h as l,j as b,as as W,A as R,k as u,v as w,t as T,K as S,i as U,al as F,aD as z}from"./entry.3dd66f35.js";import{_ as G}from"./LaunchPage.vue.017c62ce.js";import"./NMarkdown.vue.13c5f0c3.js";import"./client.253674ec.js";const k=new Map,K=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,r=q(),v=A(),i=x(()=>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(k.get(i.value)&&c)e.value=k.get(i.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",h.join("; ")),c&&k.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),M(_)}setTimeout(o,100)}),y(_),y(o),y(d),E(()=>{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=x(()=>m.name??r.params.name),e=O(),t=x(()=>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]=g=>("rpc"in o?o.rpc:a(S)).customTabAction(a(t).name,g))},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,a7 as a,o as n}from"./entry.9effa704.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,a7 as a,o as n}from"./entry.3dd66f35.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};