@nuxt/devtools 1.0.3 → 1.0.4

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 (94) hide show
  1. package/README.md +2 -1
  2. package/dist/chunks/module-main.mjs +96 -83
  3. package/dist/chunks/vscode.mjs +2 -2
  4. package/dist/client/200.html +17 -17
  5. package/dist/client/404.html +17 -17
  6. package/dist/client/_nuxt/{CodeDiff.vue.0700b533.js → CodeDiff.vue.d8722166.js} +2 -2
  7. package/dist/client/_nuxt/{ComposableItem.vue.869f4305.js → ComposableItem.vue.a0062ecc.js} +1 -1
  8. package/dist/client/_nuxt/{DataSchemaButton.vue.72b202db.js → DataSchemaButton.vue.baec9a00.js} +1 -1
  9. package/dist/client/_nuxt/{DataSchemaDrawer.3aeebd14.js → DataSchemaDrawer.b2c7e5f0.js} +1 -1
  10. package/dist/client/_nuxt/{DurationDisplay.vue.37c54f2c.js → DurationDisplay.vue.75bf04c2.js} +1 -1
  11. package/dist/client/_nuxt/{FilepathItem.vue.ca308ea2.js → FilepathItem.vue.7a091e26.js} +1 -1
  12. package/dist/client/_nuxt/{HelpFab.vue.6bf23ece.js → HelpFab.vue.07720a44.js} +1 -1
  13. package/dist/client/_nuxt/{LaunchPage.vue.c8e4a567.js → LaunchPage.vue.51fc4c47.js} +1 -1
  14. package/dist/client/_nuxt/NBadge.ce033599.js +1 -0
  15. package/dist/client/_nuxt/NCheckbox.vue.0f5a8440.js +1 -0
  16. package/dist/client/_nuxt/{NCodeBlock.vue.c80c8282.js → NCodeBlock.vue.4697f7e4.js} +2 -2
  17. package/dist/client/_nuxt/{NDrawer.vue.e2617b9c.js → NDrawer.vue.4b4bd813.js} +1 -1
  18. package/dist/client/_nuxt/NDropdown.vue.ddbb4404.js +1 -0
  19. package/dist/client/_nuxt/{NIconTitle.vue.83cd82be.js → NIconTitle.vue.8be5866f.js} +1 -1
  20. package/dist/client/_nuxt/{NLink.vue.92e49c8b.js → NLink.vue.99516332.js} +1 -1
  21. package/dist/client/_nuxt/{NMarkdown.vue.07fe8875.js → NMarkdown.vue.d386a844.js} +1 -1
  22. package/dist/client/_nuxt/{NNavbar.vue.823096f1.js → NNavbar.vue.a82b9c01.js} +1 -1
  23. package/dist/client/_nuxt/NSectionBlock.1609c1ec.js +1 -0
  24. package/dist/client/_nuxt/NSelect.vue.7cf27fe7.js +1 -0
  25. package/dist/client/_nuxt/NSelectTabs.vue.8f4924f6.js +1 -0
  26. package/dist/client/_nuxt/NSwitch.vue.6fd7c26d.js +1 -0
  27. package/dist/client/_nuxt/StacktraceList.vue.a2e4171d.js +1 -0
  28. package/dist/client/_nuxt/StateEditor.vue.777f604e.js +1 -0
  29. package/dist/client/_nuxt/{__blank.aff34a18.js → __blank.2e21a1a7.js} +1 -1
  30. package/dist/client/_nuxt/analyze-build.371a5734.js +1 -0
  31. package/dist/client/_nuxt/assets.439f186c.js +16 -0
  32. package/dist/client/_nuxt/builds/latest.json +1 -1
  33. package/dist/client/_nuxt/builds/meta/f35e8543-749e-4b65-87f9-0ac9fa3dd3ab.json +1 -0
  34. package/dist/client/_nuxt/{client.b8ca1554.js → client.bd4053bc.js} +1 -1
  35. package/dist/client/_nuxt/{components.f8fde87c.js → components.ccf2fad3.js} +1 -1
  36. package/dist/client/_nuxt/{custom-_name_.779ca3e5.js → custom-_name_.b0891a20.js} +1 -1
  37. package/dist/client/_nuxt/{default.50175b13.js → default.97700872.js} +1 -1
  38. package/dist/client/_nuxt/{entry.aa8c94e8.css → entry.2732f55b.css} +1 -1
  39. package/dist/client/_nuxt/entry.35c58391.js +27 -0
  40. package/dist/client/_nuxt/{error-404.0dae1ccf.js → error-404.576aef72.js} +1 -1
  41. package/dist/client/_nuxt/{error-500.0a479375.js → error-500.61e43a5a.js} +1 -1
  42. package/dist/client/_nuxt/error.82c66fee.js +9 -0
  43. package/dist/client/_nuxt/full.72d92407.js +1 -0
  44. package/dist/client/_nuxt/{hooks.08bf14b9.js → hooks.889b91ae.js} +1 -1
  45. package/dist/client/_nuxt/{imports.10f1634a.js → imports.8a1177ed.js} +1 -1
  46. package/dist/client/_nuxt/{index.b567c37e.js → index.0214b01d.js} +1 -1
  47. package/dist/client/_nuxt/{index.06e4cc9c.js → index.11f08f78.js} +1 -1
  48. package/dist/client/_nuxt/{json-editor-vue.c3cbb111.js → json-editor-vue.24ac60a9.js} +1 -1
  49. package/dist/client/_nuxt/modules.0ea1264b.js +2 -0
  50. package/dist/client/_nuxt/{none.7a39bbba.js → none.9d86a5c5.js} +1 -1
  51. package/dist/client/_nuxt/{open-graph.7c382b87.js → open-graph.ce924f19.js} +2 -2
  52. package/dist/client/_nuxt/overview.811117a6.js +1 -0
  53. package/dist/client/_nuxt/{pages.e4e22a03.js → pages.f870c402.js} +1 -1
  54. package/dist/client/_nuxt/{payload.d7e93a46.js → payload.ae9699f5.js} +1 -1
  55. package/dist/client/_nuxt/{plugins.b2f10668.js → plugins.a8eafa2c.js} +1 -1
  56. package/dist/client/_nuxt/{runtime-configs.9fe5125f.js → runtime-configs.344cb73a.js} +1 -1
  57. package/dist/client/_nuxt/server-routes.d5948352.js +9 -0
  58. package/dist/client/_nuxt/{settings.78f334a8.js → settings.a887e1c0.js} +1 -1
  59. package/dist/client/_nuxt/state-components.295d8108.js +1 -0
  60. package/dist/client/_nuxt/state-modules.a1a00874.js +1 -0
  61. package/dist/client/_nuxt/{storage-options.2b389201.js → storage-options.835c9b2d.js} +1 -1
  62. package/dist/client/_nuxt/{storage.44a95fac.js → storage.d4c1d127.js} +1 -1
  63. package/dist/client/_nuxt/{terminals.539d48eb.js → terminals.3c6722c6.js} +1 -1
  64. package/dist/client/_nuxt/timeline.cebcddc5.js +29 -0
  65. package/dist/client/_nuxt/{unocss-runtime.dfaa24d0.js → unocss-runtime.eab56c8d.js} +1 -1
  66. package/dist/client/_nuxt/virtual-files.33dacdaf.js +1 -0
  67. package/dist/client/index.html +17 -17
  68. package/dist/module.json +1 -1
  69. package/dist/module.mjs +1 -1
  70. package/dist/runtime/plugins/devtools.client.mjs +2 -2
  71. package/dist/runtime/plugins/view/Main.vue +2 -0
  72. package/dist/shared/{devtools.6f6e0f47.mjs → devtools.371fa152.mjs} +2 -2
  73. package/package.json +14 -14
  74. package/dist/client/_nuxt/NBadge.0b42c7f8.js +0 -1
  75. package/dist/client/_nuxt/NCheckbox.vue.6b5ce38f.js +0 -1
  76. package/dist/client/_nuxt/NDropdown.vue.ff9a8df2.js +0 -1
  77. package/dist/client/_nuxt/NSectionBlock.c3646235.js +0 -1
  78. package/dist/client/_nuxt/NSelect.vue.c8c511ae.js +0 -1
  79. package/dist/client/_nuxt/NSelectTabs.vue.ec21a846.js +0 -1
  80. package/dist/client/_nuxt/NSwitch.vue.1cea2bc6.js +0 -1
  81. package/dist/client/_nuxt/NTip.vue.ca2f8e8a.js +0 -1
  82. package/dist/client/_nuxt/StateEditor.vue.2abb9bb3.js +0 -1
  83. package/dist/client/_nuxt/analyze-build.76d0de73.js +0 -1
  84. package/dist/client/_nuxt/assets.2cb4325d.js +0 -16
  85. package/dist/client/_nuxt/builds/meta/c6495541-4f21-430a-9b71-cda3f41cbf03.json +0 -1
  86. package/dist/client/_nuxt/entry.9a5af3dc.js +0 -27
  87. package/dist/client/_nuxt/full.f21cfe4d.js +0 -1
  88. package/dist/client/_nuxt/modules.63cf2a03.js +0 -2
  89. package/dist/client/_nuxt/overview.ea00b3f6.js +0 -1
  90. package/dist/client/_nuxt/server-routes.95c3caa5.js +0 -9
  91. package/dist/client/_nuxt/state-components.d81178a3.js +0 -1
  92. package/dist/client/_nuxt/state-modules.b9e84f85.js +0 -1
  93. package/dist/client/_nuxt/timeline.5deddf7e.js +0 -29
  94. package/dist/client/_nuxt/virtual-files.46ad04c9.js +0 -1
@@ -0,0 +1,16 @@
1
+ import{d as q,a0 as te,r as j,a1 as J,a2 as ne,m as r,I as X,i as d,f as t,k as e,v as F,F as M,n as Z,h as N,j as x,p as E,G as Q,a3 as pe,a4 as me,V as fe,L as W,M as H,a5 as O,_ as oe,o as s,a6 as le,X as ae,a as S,a7 as ve,a8 as he,a9 as ie,t as P,aa as _e,l as R,b as se,ab as ge,e as xe,ac as be,ad as we,ae as ye,af as $e,Z as ke,ag as Ce,ah as Ve,ai as Pe,aj as Ae}from"./entry.35c58391.js";import{_ as De}from"./NCheckbox.vue.0f5a8440.js";import{_ as Fe}from"./NDropdown.vue.ddbb4404.js";import{_ as Ne}from"./NNavbar.vue.a82b9c01.js";import{_ as Se}from"./NSectionBlock.1609c1ec.js";import{_ as Ie}from"./FilepathItem.vue.7a091e26.js";import{_ as Te,u as Ue}from"./storage-options.835c9b2d.js";import{_ as je}from"./NDrawer.vue.4b4bd813.js";import{D as Ee}from"./constants.2cc6e981.js";import"./NIconTitle.vue.8be5866f.js";import"./NCodeBlock.vue.4697f7e4.js";import"./client.bd4053bc.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":""},Me={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},ze=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 f(a){C.value=a.target,m.value=!0}function b(a){a.target===C.value&&(m.value=!1)}function I(a){a.preventDefault()}function A(a){a.preventDefault(),v(a.dataTransfer.files)}function v(a){const _=Array.from(a||[]);if(_.length){const g=[],w=o.value.map(i=>i.name);for(const i of _)if(w.includes(i.name)){let V=1;const[y,T]=i.name.split(".");for(;w.includes(`${y} (${V}).${T}`);)V++;const K=`${y}-${V}.${T}`,c=new Blob([i],{type:i.type}),n=new File([c],K,{lastModified:Date.now()});g.push(n),w.push(K)}else i.type===""&&O({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),g.push(i);o.value=[...o.value,...g]}}async function B(){if(pe.value||me.value)return;fe("assets:upload");const a=[];for(const _ of o.value){const g=new FileReader;g.readAsDataURL(_);const i=(await new Promise(V=>{g.onload=()=>V(g.result)})).split(";base64,").pop();a.push({path:_.name,encoding:"base64",content:i})}await W.writeStaticAssets(await H(),[...a],l.folder).then(()=>{p(),O({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(_=>{p(),O({message:`Error uploading files: ${_?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),m.value=!1}function G(a){o.value?.splice(a,1)}function z(a){return URL.createObjectURL(a)}function h(a,_){const[g,w]=a.name.split("."),i=_.replace(/\.\w+$/,""),V=`${i}.${w}`;return i.length===0?(alert("File name must be at least 1 characters long"),g):(Object.defineProperty(a,"name",{value:V,writable:!1}),o.value.splice(o.value.indexOf(a),1,a),a)}function u(){o.value=[]}function p(){m.value=!1,u()}return J("dragenter",f),J("dragleave",b),J("dragover",I),J("drop",A),(a,_)=>{const g=oe,w=le,i=ae,V=ne("tooltip");return s(),r("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Q(t(m)?"opacity-100 visible":"opacity-0 invisible")},[X(d(g,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:p},null,512),[[V,"Close",void 0,{"bottom-end":!0}]]),t(o)?.length?(s(),r("div",Me,[ze,e("div",Oe,[(s(!0),r(M,null,Z(t(o),(y,T)=>(s(),r("div",{key:y.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:z(y)},null,8,Ke)]),e("div",Xe,[d(i,{n:"xs","h-full":"","flex-auto":"","model-value":y.name,"onUpdate:modelValue":K=>h(y,K.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(g,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:K=>G(T)},null,8,["onClick"])])]))),128))]),e("div",Ge,[t(o).length?(s(),N(g,{key:0,n:"red",onClick:u},{default:x(()=>[d(w,{icon:"carbon-clean"}),F(" Clear ")]),_:1})):E("",!0),d(g,{disabled:!t(o).length,n:"primary solid",onClick:B},{default:x(()=>[d(w,{icon:"carbon-cloud-upload"}),F(" Upload ")]),_:1},8,["disabled"])])])):(s(),r("div",Le,[e("label",Be,[d(w,{icon:"carbon-cloud-upload","mr-2":""}),F(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:_[0]||(_[0]=y=>v(y.target.files))},null,32)]))],2)}}}),qe=q({__name:"AssetFontPreview",props:{asset:{}},setup(L){const l=L,m=S(()=>`devtools-assets-${ve(l.asset)}`);return he(S(()=>`
2
+ @font-face {
3
+ font-family: '${m.value}';
4
+ src: url('${l.asset.publicPath}');
5
+ }
6
+ `)),(C,o)=>(s(),r("div",{"of-hidden":"",style:ie({fontFamily:`'${t(m)}'`})}," 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))}}),We={flex:"","items-center":"","justify-center":"","of-hidden":"","bg-active":"","object-cover":"",p1:""},He=["src"],Je={key:2,"i-carbon-document":"","text-3xl":"",op20:""},Qe={key:3,"w-full":"","self-start":"",p4:""},Ye=["textContent"],et={key:4},tt=["src","autoplay","controls"],nt={key:5},ot={key:0,"i-carbon-volume-up":"","text-3xl":"",op20:""},st=["src"],lt={key:6,"i-carbon-help":"","text-3xl":"",op20:""},re=q({__name:"AssetPreview",props:{asset:{},textContent:{},detail:{type:Boolean}},setup(L){return(l,m)=>{const C=qe;return s(),r("div",We,[l.asset.type==="image"?(s(),r("img",{key:0,src:l.asset.publicPath},null,8,He)):l.asset.type==="font"?(s(),N(C,{key:l.asset.publicPath,asset:l.asset,"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):l.asset.type==="text"&&!l.textContent?(s(),r("div",Je)):l.asset.type==="text"&&l.textContent?(s(),r("div",Qe,[e("pre",{"max-h-10rem":"","of-hidden":"","text-xs":"","font-mono":"",textContent:P(l.textContent)},null,8,Ye)])):l.asset.type==="video"?(s(),r("div",et,[e("video",{src:l.asset.publicPath,autoplay:l.detail,controls:l.detail},null,8,tt)])):l.asset.type==="audio"?(s(),r("div",nt,[l.detail?(s(),r("audio",{key:1,src:l.asset.publicPath,controls:""},null,8,st)):(s(),r("div",ot))])):(s(),r("div",lt))])}}}),at={flex:"~ col gap-1",hover:"bg-active","items-center":"","of-hidden":"",rounded:"",p2:""},it={"w-full":"","of-hidden":"",truncate:"","ws-nowrap":"","text-center":"","text-xs":""},rt=q({__name:"AssetGridItem",props:{asset:{},folder:{}},setup(L){const l=L,m=S(()=>l.folder&&l.asset.path.startsWith(l.folder)?l.asset.path.slice(l.folder.length):l.asset.path);return(C,o)=>{const f=re;return s(),r("button",at,[d(f,{"h-30":"","w-30":"",rounded:"",border:"~ base",asset:C.asset},null,8,["asset"]),e("div",it,P(t(m)),1)])}}}),ue=q({__name:"AssetListItem",props:{item:{},index:{default:0},modelValue:{}},setup(L,{emit:l}){const m=L,o=te(m,"modelValue",l,{passive:!0}),f=S(()=>m.item?.children?.length),b=j(!0),I=S(()=>f.value?"i-carbon-folder":m.item.type==="image"?"i-carbon-image":m.item.type==="video"?"i-carbon-video":m.item.type==="audio"?"i-carbon-volume-up":m.item.type==="font"?"i-carbon-text-small-caps":m.item.type==="text"?"i-carbon-document":m.item.type==="json"?"i-carbon-json":"i-carbon-document-blank");return(A,v)=>{const B=le,G=ue;return s(),r("div",null,[e("button",{flex:"~ gap-2","w-full":"","items-center":"",hover:"bg-active",px4:"",py1:"",style:ie({paddingLeft:`calc(1rem + ${A.index*1.5}em)`}),class:Q({"bg-active":!t(f)&&t(o)?.filePath===A.item?.filePath}),border:"b base",onClick:v[0]||(v[0]=z=>t(f)?b.value=!t(b):o.value=A.item)},[e("div",{class:Q(t(I))},null,2),e("span",{class:Q({"flex items-center":t(f)}),"flex-auto":"","text-start":"","text-sm":"","font-mono":""},P(A.item.path),3),t(f)?(s(),N(B,{key:0,icon:"carbon:chevron-right","transform-rotate":t(b)?90:0,transition:""},null,8,["transform-rotate"])):E("",!0)],6),t(b)?_e(A.$slots,"default",{key:0},()=>[(s(!0),r(M,null,Z(A.item?.children,z=>(s(),N(G,{key:z.filepath,modelValue:t(o),"onUpdate:modelValue":v[1]||(v[1]=h=>R(o)?o.value=h:null),item:z,index:A.index+1},null,8,["modelValue","item","index"]))),128))]):E("",!0)])}}}),ut={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},ct=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Preview "),e("div",{"x-divider":""})],-1),dt={flex:"~","items-center":"","justify-center":""},pt=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Details "),e("div",{"x-divider":""})],-1),mt={"max-w-full":"","w-full":"","table-fixed":""},ft=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Filepath ",-1),vt={flex:"~ gap-1","w-full":"","items-center":""},ht=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Public Path ",-1),_t={flex:"~ gap-1","w-full":"","items-center":"","of-hidden":""},gt={"flex-auto":"","of-hidden":"",truncate:"","ws-pre":"","font-mono":""},xt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Type ",-1),bt={capitalize:""},wt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Image Size ",-1),yt={key:0},$t=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Aspect Ratio ",-1),kt=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," File size ",-1),Ct=e("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Last modified ",-1),Vt={op70:""},Pt=e("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Actions "),e("div",{"x-divider":""})],-1),At={flex:"~ gap2 wrap"},Dt=e("div",{"flex-auto":""},null,-1),Ft={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},Nt=e("span",null," Are you sure you want to delete this asset? ",-1),St={flex:"~ gap2 wrap justify-center"},It={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},Tt={flex:"~ gap2 wrap justify-center"},Ut={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},jt=["onKeydown"],Et={flex:"","justify-end":"","gap-4":""},Lt=q({__name:"AssetDetails",props:{modelValue:{}},setup(L,{emit:l}){const o=te(L,"modelValue",l,{passive:!0}),f=se(async()=>{if(o.value.type==="image")return W.getImageMeta(await H(),o.value.filePath)}),b=j(!1),I=j(),A=j(0),v=se(async()=>{if(o.value.type!=="text")return;A.value;const c=await W.getTextAssetContent(await H(),o.value.filePath);return I.value=c,c});async function B(){if(v.value!==I.value)try{await W.writeStaticAssets(await H(),[{path:o.value.path,content:I.value,override:!0}],""),b.value=!1,A.value++,O({message:"Updated",icon:"i-carbon-checkmark",classes:"text-green"})}catch{O({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const G=ge(),z=S(()=>(G.value?._installedModules||[]).some(n=>n.meta?.name==="@nuxt/image"||n.meta?.name==="@nuxt/image-edge")),h=S(()=>{const c=[];if(o.value.type==="image"){const n=f.value?.width?`
7
+ width="${f.value.width}"
8
+ height="${f.value.height}" `:" ";return c.push({lang:"vue-html",code:`<img${n}
9
+ src="${o.value.publicPath}"
10
+ />`,name:"Plain Image"}),z.value&&c.push({lang:"vue-html",code:`<NuxtImg${n}
11
+ src="${o.value.publicPath}"
12
+ />`,name:"Nuxt Img",docs:"https://image.nuxt.com/usage/nuxt-img"},{lang:"vue-html",code:`<NuxtPicture${n}
13
+ src="${o.value.publicPath}"
14
+ />`,name:"Nuxt Picture",docs:"https://image.nuxt.com/usage/nuxt-picture"}),c}return c.push({lang:"html",code:`<a download href="${o.value.publicPath}">
15
+ Download ${o.value.path.split("/").slice(-1)[0]}
16
+ </a>`,name:"Download link"}),c}),u=xe(),p=be(),a=we(()=>o.value.mtime),_=S(()=>{const c=o.value.size;return c<1024?`${c} B`:c<1024*1024?`${(c/1024).toFixed(2)} KB`:`${(c/1024/1024).toFixed(2)} MB`}),g=S(()=>{if(!f.value?.width||!f.value?.height)return"";const c=($,U)=>U?c(U,$%U):$,n=c(f.value.width,f.value.height);return n>3?`${f.value.width/n}:${f.value.height/n}`:""}),w=S(()=>["image","text","video","audio","font"].includes(o.value.type)),i=j(!1);async function V(){try{await W.deleteStaticAsset(await H(),o.value.filePath),o.value=void 0,i.value=!1,O({message:"Asset deleted",icon:"i-carbon-checkmark",classes:"text-green"})}catch{O({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const y=j(!1),T=j("");async function K(){const c=o.value.filePath.split("/"),n=c.slice(-1)[0].split(".").slice(0,-1).join(".");if(!T.value||T.value===n)return O({message:"Please enter a new name",icon:"i-carbon-warning",classes:"text-orange"});try{const $=c.slice(-1)[0].split(".").slice(-1)[0],U=`${c.slice(0,-1).join("/")}/${T.value}.${$}`;await W.renameStaticAsset(await H(),o.value.filePath,U),o.value=void 0,y.value=!1,O({message:"Asset renamed",icon:"i-carbon-checkmark",classes:"text-green"})}catch{O({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}return(c,n)=>{const $=re,U=Ie,D=oe,ce=Te,Y=ke,de=ae,ee=ne("tooltip");return s(),r(M,null,[e("div",ut,[t(w)?(s(),r(M,{key:0},[ct,e("div",dt,[d($,{detail:"","max-h-80":"","min-h-20":"","min-w-20":"","w-auto":"",rounded:"",border:"~ base",asset:t(o),"text-content":t(v)},null,8,["asset","text-content"])])],64)):E("",!0),pt,e("table",mt,[e("tbody",null,[e("tr",null,[ft,e("td",null,[e("div",vt,[d(U,{filepath:t(o).filePath,"text-left":""},null,8,["filepath"]),X(d(D,{"flex-none":"",title:"Open in Editor",icon:"carbon-launch",border:!1,onClick:n[0]||(n[0]=k=>t(p)(t(o).filePath))},null,512),[[ee,"Open in Editor"]])])])]),e("tr",null,[ht,e("td",null,[e("div",_t,[e("div",gt,P(t(o).publicPath),1),X(d(D,{"flex-none":"",title:"Copy public path",icon:"carbon-copy",border:!1,onClick:n[1]||(n[1]=k=>t(u)(t(o).publicPath,"assets-public-path"))},null,512),[[ee,"Copy public path"]]),X(d(D,{"flex-none":"",to:t(o).publicPath,icon:"carbon-launch",target:"_blank",border:!1,title:"Open in browser"},null,8,["to"]),[[ee,"Open in browser"]])])])]),e("tr",null,[xt,e("td",bt,P(t(o).type),1)]),t(f)?.width?(s(),r(M,{key:0},[e("tr",null,[wt,e("td",null,P(t(f).width)+" x "+P(t(f).height),1)]),t(g)?(s(),r("tr",yt,[$t,e("td",null,P(t(g)),1)])):E("",!0)],64)):E("",!0),e("tr",null,[kt,e("td",null,P(t(_)),1)]),e("tr",null,[Ct,e("td",null,[F(P(new Date(t(o).mtime).toLocaleString())+" ",1),e("span",Vt,"("+P(t(a))+")",1)])])])]),Pt,e("div",At,[d(D,{to:t(o).publicPath,download:"",target:"_blank",icon:"carbon-download",n:"green"},{default:x(()=>[F(" Download ")]),_:1},8,["to"]),t(o).type==="text"?(s(),N(D,{key:0,icon:"carbon-edit",n:"cyan",onClick:n[2]||(n[2]=k=>b.value=!t(b))},{default:x(()=>[F(" Edit ")]),_:1})):E("",!0),d(D,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:n[3]||(n[3]=k=>y.value=!t(y))},{default:x(()=>[F(" Rename ")]),_:1}),d(D,{icon:"carbon-delete",n:"red",onClick:n[4]||(n[4]=k=>i.value=!t(i))},{default:x(()=>[F(" Delete ")]),_:1})]),Dt,t(h).length?(s(),N(ce,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":t(h)},null,8,["code-snippets"])):E("",!0)]),d(Y,{modelValue:t(i),"onUpdate:modelValue":n[6]||(n[6]=k=>R(i)?i.value=k:null)},{default:x(()=>[e("div",Ft,[Nt,e("div",St,[d(D,{icon:"carbon-close",onClick:n[5]||(n[5]=k=>i.value=!1)},{default:x(()=>[F(" Cancel ")]),_:1}),d(D,{icon:"carbon-delete",n:"red",onClick:V},{default:x(()=>[F(" Delete ")]),_:1})])])]),_:1},8,["modelValue"]),d(Y,{modelValue:t(y),"onUpdate:modelValue":n[9]||(n[9]=k=>R(y)?y.value=k:null)},{default:x(()=>[e("div",It,[d(de,{modelValue:t(T),"onUpdate:modelValue":n[7]||(n[7]=k=>R(T)?T.value=k:null),placeholder:"New name",n:"blue"},null,8,["modelValue"]),e("div",Tt,[d(D,{icon:"carbon-close",onClick:n[8]||(n[8]=k=>y.value=!1)},{default:x(()=>[F(" Cancel ")]),_:1}),d(D,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:K},{default:x(()=>[F(" Rename ")]),_:1})])])]),_:1},8,["modelValue"]),t(o).type==="text"?(s(),N(Y,{key:0,modelValue:t(b),"onUpdate:modelValue":n[12]||(n[12]=k=>R(b)?b.value=k:null)},{default:x(()=>[e("div",Ut,[X(e("textarea",{"onUpdate:modelValue":n[10]||(n[10]=k=>R(I)?I.value=k:null),placeholder:"Item value...",class:"h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none",onKeydown:ye(B,["enter"])},null,40,jt),[[$e,t(I)]]),e("div",Et,[d(D,{icon:"carbon-close",onClick:n[11]||(n[11]=k=>b.value=!1)},{default:x(()=>[F(" Cancel ")]),_:1}),d(D,{icon:"carbon:save",n:"primary",onClick:B},{default:x(()=>[F(" save ")]),_:1})])])]),_:1},8,["modelValue"])):E("",!0)],64)}}}),Bt={"h-full":"","of-auto":""},Mt={"flex-none":"",flex:"~ gap2 items-center","text-lg":""},zt={flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--1":"","h-4":"","w-4":"","rounded-full":"","bg-primary:30":"","text-8px":""},Ot={flex:"~ col","w-30":"","of-auto":""},Rt={"text-xs":"",op75:""},Kt={op50:""},Xt={key:0},Gt={"mt--4":"",px2:"",grid:"~ cols-minmax-8rem"},Zt={key:1,p2:"",grid:"~ cols-minmax-8rem"},qt={key:1},rn=q({__name:"assets",setup(L){const l=Ce(),m=j(!1),C=j(""),o=S(()=>new Ve(l.value||[],{keys:["path"]})),f=Pe(()=>{const h=[];for(const u of l.value||[]){const p=u.path.split(".").pop();p&&!h.find(a=>a.name===p)&&h.push({name:p,value:!0})}return h}),b=S(()=>(C.value?o.value.search(C.value).map(u=>u.item):l.value||[]).filter(u=>{const p=u.path.split(".").pop();return!p||f.some(a=>a.name===p&&a.value)})),I=S(()=>{const h={};for(const u of b.value){const p=`${u.path.split("/").slice(0,-1).join("/")}/`;h[p]||(h[p]=[]),h[p].push(u)}return Object.entries(h).sort(([u],[p])=>u.localeCompare(p))}),A=S(()=>{const h={path:"public",children:[]},u=(p,a,_)=>{const[g,...w]=a;let i=p.children.find(V=>V.path===g);i||(i={..._,path:g,children:[]},p.children.push(i)),w.length>1?u(i,w,_):w.length===1&&i.children.push({..._,path:w[0]})};return b.value.forEach(p=>{const a=p.path.split("/").filter(_=>_!=="");u(h,a,p)}),h.children}),v=j(),{view:B}=Ue("assets");function G(){B.value=B.value==="list"?"grid":"list"}Ae("Escape",()=>{v.value=void 0});const z=j();return(h,u)=>{const p=oe,a=De,_=Fe,g=Ne,w=Ze,i=rt,V=Se,y=ue,T=Lt,K=je,c=ne("tooltip");return s(),r("div",Bt,[d(g,{ref_key:"navbar",ref:z,search:t(C),"onUpdate:search":u[1]||(u[1]=n=>R(C)?C.value=n:null),pb2:""},{actions:x(()=>[e("div",Mt,[X(d(p,{icon:"carbon:cloud-upload",title:"File Upload",border:!1,onClick:u[0]||(u[0]=n=>m.value=!t(m))},null,512),[[c,"File Upload",void 0,{"bottom-end":!0}]]),t(f).length?(s(),N(_,{key:0,direction:"end",n:"sm primary"},{trigger:x(({click:n})=>[X(d(p,{icon:"carbon-filter",border:!1,title:"Filter",p3:"","text-lg":"",onClick:$=>n()},null,8,["onClick"]),[[c,"Filter",void 0,{"bottom-end":!0}]]),e("span",zt,P(t(f).length),1)]),default:x(()=>[e("div",Ot,[(s(!0),r(M,null,Z(t(f),n=>(s(),N(a,{key:n.name,modelValue:n.value,"onUpdate:modelValue":$=>n.value=$,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:x(()=>[e("span",Rt,P(n.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):E("",!0),X(d(p,{"text-lg":"",border:!1,icon:t(B)==="grid"?"i-carbon-list":"i-carbon-grid",title:"Toggle view",onClick:G},null,8,["icon"]),[[c,"Toggle View",void 0,{"bottom-end":!0}]])])]),default:x(()=>[e("div",Kt,[t(C)?(s(),r("span",Xt,P(t(b).length)+" matched · ",1)):E("",!0),e("span",null,P(t(l)?.length)+" assets in total",1)])]),_:1},8,["search"]),d(w,{modelValue:t(m),"onUpdate:modelValue":u[2]||(u[2]=n=>R(m)?m.value=n:null),folder:"/"},null,8,["modelValue"]),t(B)==="grid"?(s(),r(M,{key:0},[t(I).length>1?(s(!0),r(M,{key:0},Z(t(I),([n,$])=>(s(),N(V,{key:n,text:n,description:`${$.length} items`,open:$.length<=("DETAILS_MAX_ITEMS"in h?h.DETAILS_MAX_ITEMS:t(Ee)),padding:!1},{default:x(()=>[e("div",Gt,[(s(!0),r(M,null,Z($,U=>(s(),N(i,{key:U.path,asset:U,folder:n,onClick:D=>v.value=U},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(s(),r("div",Zt,[(s(!0),r(M,null,Z(t(b),n=>(s(),N(i,{key:n.path,asset:n,onClick:$=>v.value=n},null,8,["asset","onClick"]))),128))]))],64)):(s(),r("div",qt,[(s(!0),r(M,null,Z(t(A),(n,$)=>(s(),N(y,{key:$,modelValue:t(v),"onUpdate:modelValue":u[3]||(u[3]=U=>R(v)?v.value=U:null),item:n},null,8,["modelValue","item"]))),128))])),d(K,{"model-value":!!t(v),"auto-close":"","w-120":"",top:t(z),onClose:u[5]||(u[5]=n=>v.value=void 0)},{default:x(()=>[t(v)?(s(),N(T,{key:0,modelValue:t(v),"onUpdate:modelValue":u[4]||(u[4]=n=>R(v)?v.value=n:null)},null,8,["modelValue"])):E("",!0)]),_:1},8,["model-value","top"])])}}});export{rn as default};
@@ -1 +1 @@
1
- {"id":"c6495541-4f21-430a-9b71-cda3f41cbf03","timestamp":1700488523667}
1
+ {"id":"f35e8543-749e-4b65-87f9-0ac9fa3dd3ab","timestamp":1701114946144}
@@ -0,0 +1 @@
1
+ {"id":"f35e8543-749e-4b65-87f9-0ac9fa3dd3ab","timestamp":1701114946144,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -1 +1 @@
1
- import{bv as f,bL as r}from"./entry.9a5af3dc.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{bw as f,bM as r}from"./entry.35c58391.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,a9 as Al,_ as ff,r as bi,aj as bT,ak as $T,ab as wT,al as _T,am as ET,w as ST,j as ze,B as l1,an as OT,l as _n,ao as TT,G as PT,ap as IT,ag as kT,aq as CT,ar as xT,as as ts,a5 as AT,at as RT,a1 as DT,au as MT,I as Gv}from"./entry.9a5af3dc.js";import{_ as NT}from"./HelpFab.vue.6bf23ece.js";import{u as FT,a as BT}from"./state-components.d81178a3.js";import{_ as LT}from"./NCheckbox.vue.6b5ce38f.js";import{_ as u1}from"./NNavbar.vue.823096f1.js";import{_ as h1}from"./NBadge.0b42c7f8.js";import{_ as d1}from"./FilepathItem.vue.ca308ea2.js";import{_ as jT}from"./NDrawer.vue.e2617b9c.js";import{_ as zT}from"./NSelectTabs.vue.ec21a846.js";import{_ as HT}from"./NSectionBlock.c3646235.js";import{_ as WT}from"./NIconTitle.vue.83cd82be.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.at(-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.toLowerCase())).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,aa as Al,_ as ff,r as bi,ak as bT,al as $T,ab as wT,am as _T,an as ET,w as ST,j as ze,B as l1,ao as OT,l as _n,ap as TT,G as PT,aq as IT,ah as kT,ar as CT,as as xT,at as ts,a6 as AT,au as RT,a2 as DT,av as MT,I as Gv}from"./entry.35c58391.js";import{_ as NT}from"./HelpFab.vue.07720a44.js";import{u as FT,a as BT}from"./state-components.295d8108.js";import{_ as LT}from"./NCheckbox.vue.0f5a8440.js";import{_ as u1}from"./NNavbar.vue.a82b9c01.js";import{_ as h1}from"./NBadge.ce033599.js";import{_ as d1}from"./FilepathItem.vue.7a091e26.js";import{_ as jT}from"./NDrawer.vue.4b4bd813.js";import{_ as zT}from"./NSelectTabs.vue.8f4924f6.js";import{_ as HT}from"./NSectionBlock.1609c1ec.js";import{_ as WT}from"./NIconTitle.vue.8be5866f.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.at(-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.toLowerCase())).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 j,aj as q,r as A,a as g,av as B,aw as D,am as $,ax as E,ay as y,az as M,aA as L,m as N,o as s,aB as P,P as V,aC as I,aD as C,aE as W,f as a,h as l,j as b,au as O,A as R,k as u,v as w,t as T,L as S,i as F,an as U,aF as z}from"./entry.9a5af3dc.js";import{_ as G}from"./LaunchPage.vue.c8e4a567.js";import"./NMarkdown.vue.07fe8875.js";import"./client.b8ca1554.js";const x=new Map,X=j({__name:"IframeView",props:{tab:{}},setup(f){const m=f,r=q(),v=A(),i=g(()=>m.tab.name),e=A(),t=B(D(v));$(()=>{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=L();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(),N("div",{ref_key:"anchor",ref:v,"h-full":"","w-full":""},null,512))}}),H={flex:"~ col gap2",mxa:"","items-center":""},J=u("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1),K={"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=j({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,r=P(),v=V(),i=g(()=>m.name??r.params.name),e=I(),t=g(()=>e.value.find(o=>o.name===i.value));return $(()=>{t.value?t.value.requireAuth&&!C.value&&W():setTimeout(()=>{t.value||v.push("/modules/overview")},2e3)}),(o,p)=>{const d=R,_=z,n=X,c=G,h=U;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(O(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(()=>[F(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",H,[J,u("p",K,[w(" Tab "),u("code",Q,T(a(i)),1),w(" not found ")]),Y,Z])]),_:1}))}}});export{oe as default};
1
+ import{d as $,ak as q,r as A,a as x,aw as B,ax as D,an as j,ay as E,az as y,aA as M,aB as L,m as N,o as s,aC as P,P as V,aD as I,aE as C,aF as W,f as a,h as l,j as b,av as O,A as R,k as u,v as w,t as T,L as S,i as F,ao as U,aG as G}from"./entry.35c58391.js";import{_ as z}from"./LaunchPage.vue.51fc4c47.js";import"./NMarkdown.vue.d386a844.js";import"./client.bd4053bc.js";const k=new Map,X=$({__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),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=L();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(),N("div",{ref_key:"anchor",ref:v,"h-full":"","w-full":""},null,512))}}),H={flex:"~ col gap2",mxa:"","items-center":""},J=u("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1),K={"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=P(),v=V(),i=x(()=>m.name??r.params.name),e=I(),t=x(()=>e.value.find(o=>o.name===i.value));return j(()=>{t.value?t.value.requireAuth&&!C.value&&W():setTimeout(()=>{t.value||v.push("/modules/overview")},2e3)}),(o,p)=>{const d=R,_=G,n=X,c=z,h=U;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(O(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(()=>[F(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",H,[J,u("p",K,[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,a9 as a,o as n}from"./entry.9a5af3dc.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,aa as a,o as n}from"./entry.35c58391.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};