@nuxt/devtools 0.2.5 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/chunks/module-main.mjs +692 -258
- package/dist/chunks/plugin-metrics.mjs +56 -0
- package/dist/chunks/vite-inspect.mjs +12 -13
- package/dist/chunks/vscode.mjs +44 -26
- package/dist/chunks/vue-inspector.mjs +2 -2
- package/dist/cli.mjs +5 -4
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/Badge.ec308af3.js +1 -0
- package/dist/client/_nuxt/DrawerRight.vue.a85afa62.js +1 -0
- package/dist/client/_nuxt/DurationDisplay.vue.9b5b62d4.js +1 -0
- package/dist/client/_nuxt/FilepathItem.vue.178a1de3.js +1 -0
- package/dist/client/_nuxt/LaunchPage.vue.a0bbd67e.js +1 -0
- package/dist/client/_nuxt/NCheckbox.vue.4a02f339.js +1 -0
- package/dist/client/_nuxt/NCodeBlock.vue.593cb41f.js +1 -0
- package/dist/client/_nuxt/NIconButton.vue.a83f99ea.js +1 -0
- package/dist/client/_nuxt/NIconTitle.vue.ce90e41b.js +1 -0
- package/dist/client/_nuxt/NMarkdown.vue.11f68fad.js +1 -0
- package/dist/client/_nuxt/NSectionBlock.c955e75e.js +1 -0
- package/dist/client/_nuxt/NSelect.vue.e19311d6.js +1 -0
- package/dist/client/_nuxt/NSwitch.vue.76c93e66.js +1 -0
- package/dist/client/_nuxt/NTextInput.vue.d770ca6c.js +1 -0
- package/dist/client/_nuxt/NTip.vue.ac67cde4.js +1 -0
- package/dist/client/_nuxt/NpmVersionCheck.vue.0eab98c7.js +1 -0
- package/dist/client/_nuxt/{NuxtLogo.8111403f.js → NuxtLogo.38adb408.js} +1 -1
- package/dist/client/_nuxt/{PanelLeftRight.vue.56b5906c.js → PanelLeftRight.vue.90cdedcf.js} +1 -1
- package/dist/client/_nuxt/StateEditor.vue.c57dfe46.js +1 -0
- package/dist/client/_nuxt/{TabIcon.vue.30ae65eb.js → TabIcon.vue.8236980c.js} +1 -1
- package/dist/client/_nuxt/{__inspecting.8819ade8.js → __inspecting.143a746c.js} +1 -1
- package/dist/client/_nuxt/assets.d6a1ab2b.js +16 -0
- package/dist/client/_nuxt/components.1b7f02b2.js +1 -0
- package/dist/client/_nuxt/context.fe69916a.js +1 -0
- package/dist/client/_nuxt/custom-_name_.02ebd30e.js +1 -0
- package/dist/client/_nuxt/default.e6b60844.js +1 -0
- package/dist/client/_nuxt/editor.e10c09a2.js +1 -0
- package/dist/client/_nuxt/entry.216b69f8.js +259 -0
- package/dist/client/_nuxt/entry.654353dc.css +32 -0
- package/dist/client/_nuxt/error-404.51bdc645.js +1 -0
- package/dist/client/_nuxt/{error-500.8f6cefc5.js → error-500.15ac1dfe.js} +1 -1
- package/dist/client/_nuxt/error-component.0a7a48e4.js +3 -0
- package/dist/client/_nuxt/hooks.aa487478.js +1 -0
- package/dist/client/_nuxt/icons.43eaabec.js +1 -0
- package/dist/client/_nuxt/imports.01c0f8be.js +1 -0
- package/dist/client/_nuxt/{index.a6656ecb.js → index.3b3b7aca.js} +5 -5
- package/dist/client/_nuxt/index.517491fb.js +1 -0
- package/dist/client/_nuxt/index.c769634a.js +3 -0
- package/dist/client/_nuxt/layouts.e447e192.js +1 -0
- package/dist/client/_nuxt/middleware.e73473f1.js +1 -0
- package/dist/client/_nuxt/modules.304ea21e.js +1 -0
- package/dist/client/_nuxt/{none.394b52e6.js → none.3e2499ec.js} +1 -1
- package/dist/client/_nuxt/overview.b79bf694.js +1 -0
- package/dist/client/_nuxt/pages.fafa9fe0.js +1 -0
- package/dist/client/_nuxt/payload.ee430f3a.js +1 -0
- package/dist/client/_nuxt/plugins.5095ec46.js +1 -0
- package/dist/client/_nuxt/runtime-configs.b20fbeb6.js +1 -0
- package/dist/client/_nuxt/server-routes.7352d340.js +1 -0
- package/dist/client/_nuxt/settings.b6d3cae9.js +1 -0
- package/dist/client/_nuxt/storage.2e73159a.js +1 -0
- package/dist/client/_nuxt/terminals.4329aeb9.css +1 -0
- package/dist/client/_nuxt/terminals.65080a19.js +1 -0
- package/dist/client/_nuxt/{unocss-runtime.daeb320e.js → unocss-runtime.5708ce83.js} +2 -2
- package/dist/client/_nuxt/virtual-files.9eb05502.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/modules/assets/index.html +7 -0
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/layouts/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/storage/index.html +2 -2
- package/dist/client/modules/terminals/index.html +7 -0
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/client/settings/index.html +7 -0
- package/dist/dirs.mjs +2 -2
- package/dist/module.d.ts +3 -33
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/plugins/devtools.client.mjs +7 -1
- package/dist/shared/{devtools.258c6e2e.mjs → devtools.696fb428.mjs} +1 -1
- package/dist/types.d.ts +4 -337
- package/dist/types.mjs +1 -1
- package/package.json +36 -35
- package/dist/client/_nuxt/Badge.4f16da14.js +0 -1
- package/dist/client/_nuxt/FilepathItem.vue.235fa07d.js +0 -1
- package/dist/client/_nuxt/LaunchPage.vue.86f00e85.js +0 -1
- package/dist/client/_nuxt/NButton.a7fda268.css +0 -1
- package/dist/client/_nuxt/NButton.vue.76dccbb9.js +0 -100
- package/dist/client/_nuxt/NCheckbox.vue.60126ccb.js +0 -1
- package/dist/client/_nuxt/NMarkdown.vue.abb154b8.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.58837776.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.891fa081.css +0 -1
- package/dist/client/_nuxt/NTextInput.vue.1fd15b74.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.bdb7e5c8.js +0 -1
- package/dist/client/_nuxt/asyncData.103aad72.js +0 -1
- package/dist/client/_nuxt/client.9c41f495.js +0 -1
- package/dist/client/_nuxt/components.43dee80b.js +0 -1
- package/dist/client/_nuxt/context.55688cca.js +0 -1
- package/dist/client/_nuxt/custom-_name_.8832be9d.js +0 -1
- package/dist/client/_nuxt/default.c29c3e74.js +0 -1
- package/dist/client/_nuxt/editor.66e59505.js +0 -1
- package/dist/client/_nuxt/entry.3a404c59.css +0 -1
- package/dist/client/_nuxt/entry.883bcfe6.js +0 -11
- package/dist/client/_nuxt/error-404.d027ece6.js +0 -1
- package/dist/client/_nuxt/error-component.ee11a8ba.js +0 -3
- package/dist/client/_nuxt/hooks.427abdcd.js +0 -1
- package/dist/client/_nuxt/icons.7b11eba5.js +0 -1
- package/dist/client/_nuxt/imports.2dc7174b.js +0 -1
- package/dist/client/_nuxt/index.0d6abd2a.js +0 -1
- package/dist/client/_nuxt/json-editor-vue.a65019ca.js +0 -137
- package/dist/client/_nuxt/layouts.4db8e1e6.js +0 -1
- package/dist/client/_nuxt/middleware.c4f2a57b.js +0 -1
- package/dist/client/_nuxt/modules.a2209d2d.js +0 -1
- package/dist/client/_nuxt/nuxt-link.a34a1045.js +0 -1
- package/dist/client/_nuxt/overview.5053fd45.js +0 -1
- package/dist/client/_nuxt/pages.9a1a9ac3.js +0 -1
- package/dist/client/_nuxt/payload.ed4c5688.js +0 -1
- package/dist/client/_nuxt/plugins.95c9e3e6.js +0 -1
- package/dist/client/_nuxt/runtime-configs.7ebddf6f.js +0 -1
- package/dist/client/_nuxt/server-routes.5337ffc6.js +0 -1
- package/dist/client/_nuxt/state.1f523208.js +0 -1
- package/dist/client/_nuxt/storage.4459d7bf.js +0 -1
- package/dist/client/_nuxt/virtual-files.a15894d9.js +0 -3
- package/dist/iframe-client.d.ts +0 -15
- package/dist/iframe-client.mjs +0 -32
- package/iframe-client.d.ts +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{_ as G}from"./NTextInput.vue.d770ca6c.js";import{a as P,m as h,p as K,o,f as l,q,u as n,c as m,h as e,t as u,s as H,r as U,F as $,v as B,x as V,w as A,l as F,y as _,k as R,z as T,A as W,B as J,i as w,C as L,D as Q,E as z,G as X,H as Y,I as Z}from"./entry.216b69f8.js";import{h as ee}from"./index.c769634a.js";import{_ as te}from"./NSectionBlock.c955e75e.js";import{_ as ne}from"./FilepathItem.vue.178a1de3.js";import{_ as se}from"./NIconButton.vue.a83f99ea.js";import{_ as oe}from"./NCodeBlock.vue.593cb41f.js";import{u as M,o as ae}from"./editor.e10c09a2.js";import{_ as ie}from"./DrawerRight.vue.a85afa62.js";import{F as le}from"./fuse.esm.88e2763d.js";import"./NIconTitle.vue.ce90e41b.js";import"./context.fe69916a.js";const re=P({__name:"AssetFontPreview",props:{asset:null},setup(a){const s=a,t=h(()=>`devtools-assets-${ee(s.asset)}`);return K(h(()=>`
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: '${t.value}';
|
|
4
|
+
src: url('${s.asset.publicPath}');
|
|
5
|
+
}
|
|
6
|
+
`)),(f,v)=>(o(),l("div",{"of-hidden":"",style:q({fontFamily:`'${n(t)}'`})}," 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))}}),ce={"items-center":"","of-hidden":"","justify-center":"",flex:"",p1:"","bg-active":"","object-cover":""},de=["src"],ue={key:2,op20:"","text-3xl":"","i-carbon-document":""},pe={key:3,"w-full":"",p4:"","self-start":""},me=["textContent"],he={key:4,op20:"","text-3xl":"","i-carbon-help":""},O=P({__name:"AssetPreview",props:{asset:null,textContent:null},setup(a){return(s,t)=>{const f=re;return o(),l("div",ce,[a.asset.type==="image"?(o(),l("img",{key:0,src:a.asset.publicPath},null,8,de)):a.asset.type==="font"?(o(),m(f,{key:a.asset.publicPath,asset:a.asset,p2:"","self-stretch":"","text-2xl":""},null,8,["asset"])):a.asset.type==="text"&&!a.textContent?(o(),l("div",ue)):a.asset.type==="text"&&a.textContent?(o(),l("div",pe,[e("pre",{"of-hidden":"","font-mono":"","text-xs":"","max-h-10rem":"",textContent:u(a.textContent)},null,8,me)])):(o(),l("div",he))])}}}),_e={key:0,"n-code-block":"",relative:""},fe={flex:"~ wrap","w-full":""},ve=["onClick"],xe=e("div",{"flex-auto":""},null,-1),ge=e("div",{"x-divider":""},null,-1),be=P({__name:"CodeSnippets",props:{codeSnippets:null},setup(a){const s=a,t=H(s.codeSnippets[0]),f=M();return U(()=>{s.codeSnippets.includes(t.value)||(t.value=s.codeSnippets[0])}),(v,g)=>{const d=R,y=oe;return a.codeSnippets.length?(o(),l("div",_e,[e("div",fe,[(o(!0),l($,null,B(a.codeSnippets,(b,S)=>(o(),l("button",{key:S,p2:"",border:"r base",hover:"bg-active",class:V(b===n(t)?"bg-active":""),onClick:x=>t.value=b},[e("div",{class:V(b===n(t)?"":"op50")},u(b.name),3)],10,ve))),128)),xe,n(t)?.docs?(o(),m(d,{key:0,to:n(t).docs,target:"_blank",icon:"carbon-help",n:"sm primary",border:"none",my1:"","px-2":""},{default:A(()=>[F(" Docs ")]),_:1},8,["to"])):_("",!0),n(t)?(o(),m(d,{key:1,icon:"carbon-copy",n:"sm primary",border:"none","px-2":"",my1:"",mr1:"",onClick:g[0]||(g[0]=b=>n(f)(n(t).code))},{default:A(()=>[F(" Copy ")]),_:1})):_("",!0)]),ge,n(t)?(o(),m(y,{key:0,code:n(t).code,lang:n(t).lang,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"])):_("",!0)])):_("",!0)}}}),we={flex:"~ col gap-4","w-full":"","of-hidden":"","min-h-full":"",p4:""},ye=e("div",{flex:"~ gap2",op50:"","items-center":"","mb--2":""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Preview "),e("div",{"x-divider":""})],-1),$e={flex:"~","items-center":"","justify-center":""},ke=e("div",{op50:"","mb--2":"",flex:"~ gap2","items-center":""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Details "),e("div",{"x-divider":""})],-1),Ce={"w-full":"","max-w-full":"","table-fixed":""},Pe=e("td",{op50:"","text-right":"",pr5:"","ws-nowrap":"","w-30":""}," Filepath ",-1),Se={flex:"~ gap-1","items-center":""},Ae=e("div",{"flex-auto":""},null,-1),Ie=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," Public Path ",-1),Ne={flex:"~ gap-1","items-center":""},Be={"font-mono":""},Fe=e("div",{"flex-auto":""},null,-1),De=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," Type ",-1),ze={capitalize:""},je=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," Image Size ",-1),Ee={key:0},Ve=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," Aspect Ratio ",-1),Te=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," File size ",-1),Le=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," Last modified ",-1),Re={op70:""},Me=e("div",{op50:"","mb--2":"",flex:"~ gap2","items-center":""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Actions "),e("div",{"x-divider":""})],-1),Oe={flex:"~ gap2 wrap"},Ge=e("div",{"flex-auto":""},null,-1),Ke=P({__name:"AssetDetails",props:{asset:null},setup(a){const s=a,t=T(()=>{if(s.asset.type==="image")return L.getImageMeta(s.asset.filePath)}),f=T(()=>{if(s.asset.type==="text")return L.getTextAssetContent(s.asset.filePath)}),v=W(),g=h(()=>(v.value?._installedModules||[]).some(r=>r.meta?.name==="@nuxt/image"||r.meta?.name==="@nuxt/image-edge")),d=h(()=>{const i=[];if(s.asset.type==="image"){const r=t.value?.width?`
|
|
7
|
+
width="${t.value.width}"
|
|
8
|
+
height="${t.value.height}" `:" ";return i.push({lang:"vue-html",code:`<img${r}
|
|
9
|
+
src="${s.asset.publicPath}"
|
|
10
|
+
/>`,name:"Plain Image"}),g.value&&i.push({lang:"vue-html",code:`<NuxtImage${r}
|
|
11
|
+
src="${s.asset.publicPath}"
|
|
12
|
+
/>`,name:"Nuxt Image",docs:"https://image.nuxtjs.org/components/nuxt-img"},{lang:"vue-html",code:`<NuxtPicture${r}
|
|
13
|
+
src="${s.asset.publicPath}"
|
|
14
|
+
/>`,name:"Nuxt Picture",docs:"https://image.nuxtjs.org/components/nuxt-picture"}),i}return i.push({lang:"html",code:`<a download href="${s.asset.publicPath}">
|
|
15
|
+
Download ${s.asset.path.split("/").slice(-1)[0]}
|
|
16
|
+
</a>`,name:"Download link"}),i}),y=M(),b=J(()=>s.asset.mtime),S=h(()=>{const i=s.asset.size;return i<1024?`${i} B`:i<1024*1024?`${(i/1024).toFixed(2)} KB`:`${(i/1024/1024).toFixed(2)} MB`}),x=h(()=>{if(!t.value?.width||!t.value?.height)return"";const i=(k,C)=>C?i(C,k%C):k,r=i(t.value.width,t.value.height);return r>3?`${t.value.width/r}:${t.value.height/r}`:""}),p=h(()=>["image","text","video","font"].includes(s.asset.type));return(i,r)=>{const k=O,C=ne,I=se,D=R,j=be;return o(),l("div",we,[n(p)?(o(),l($,{key:0},[ye,e("div",$e,[w(k,{rounded:"","max-h-80":"","w-auto":"","min-h-20":"","min-w-20":"",border:"~ base",asset:a.asset,"text-content":n(f)},null,8,["asset","text-content"])])],64)):_("",!0),ke,e("table",Ce,[e("tbody",null,[e("tr",null,[Pe,e("td",null,[e("div",Se,[w(C,{filepath:a.asset.filePath,"w-full":"","line-break":"","ws-normal":"","text-left":""},null,8,["filepath"]),Ae,w(I,{title:"Open in Editor",icon:"carbon-launch",onClick:r[0]||(r[0]=c=>("openInEditor"in i?i.openInEditor:n(ae))(a.asset.filePath))})])])]),e("tr",null,[Ie,e("td",null,[e("div",Ne,[e("div",Be,u(a.asset.publicPath),1),Fe,w(I,{to:a.asset.publicPath,icon:"carbon-launch",target:"_blank",title:"Open in browser"},null,8,["to"]),w(I,{title:"Copy public path",icon:"carbon-copy",onClick:r[1]||(r[1]=c=>n(y)(a.asset.publicPath))})])])]),e("tr",null,[De,e("td",ze,u(a.asset.type),1)]),n(t)?.width?(o(),l($,{key:0},[e("tr",null,[je,e("td",null,u(n(t).width)+" x "+u(n(t).height),1)]),n(x)?(o(),l("tr",Ee,[Ve,e("td",null,u(n(x)),1)])):_("",!0)],64)):_("",!0),e("tr",null,[Te,e("td",null,u(n(S)),1)]),e("tr",null,[Le,e("td",null,[F(u(new Date(a.asset.mtime).toLocaleString())+" ",1),e("span",Re,"("+u(n(b))+")",1)])])])]),Me,e("div",Oe,[w(D,{to:a.asset.publicPath,download:"",target:"_blank",icon:"carbon-download"},{default:A(()=>[F(" Download ")]),_:1},8,["to"]),a.asset.type==="image"?(o(),m(D,{key:0,disabled:"",icon:"carbon-image-service"},{default:A(()=>[F(" Optimize image (Coming soon) ")]),_:1})):_("",!0)]),Ge,n(d).length?(o(),m(j,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":n(d)},null,8,["code-snippets"])):_("",!0)])}}}),qe={flex:"~ col gap-1",hover:"bg-active",rounded:"","of-hidden":"","items-center":"",p2:""},He={"of-hidden":"","w-full":"","ws-nowrap":"","text-center":"",truncate:"","text-xs":""},Ue=P({__name:"AssetGridItem",props:{asset:null,folder:null},setup(a){const s=a,t=h(()=>s.folder&&s.asset.path.startsWith(s.folder)?s.asset.path.slice(s.folder.length):s.asset.path);return(f,v)=>{const g=O;return o(),l("button",qe,[w(g,{rounded:"","w-30":"","h-30":"",border:"~ base",asset:a.asset},null,8,["asset"]),e("div",He,u(n(t)),1)])}}}),We={flex:"~ gap-1","w-full":"","items-center":"",hover:"bg-active",rounded:"",px4:"",py2:""},Je={"text-center":"","ws-nowrap":"","of-hidden":"",truncate:""},Qe=P({__name:"AssetListItem",props:{asset:null},setup(a){const s=a,t=h(()=>s.asset.type==="image"?"i-carbon-image":s.asset.type==="video"?"i-carbon-video":s.asset.type==="audio"?"i-carbon-volume-up":s.asset.type==="font"?"i-carbon-text-small-caps":s.asset.type==="text"?"i-carbon-document":s.asset.type==="json"?"i-carbon-json":"i-carbon-document-blank");return(f,v)=>(o(),l("button",We,[e("div",{class:V(n(t))},null,2),e("div",Je,u(a.asset.path),1)]))}}),Xe={"h-full":"","of-auto":""},Ye={flex:"~ gap4"},Ze={"flex-none":"",flex:"~ gap4"},et={op50:""},tt={key:0},nt={px2:"","mt--4":"",grid:"~ cols-minmax-8rem"},st={key:1,p2:"",grid:"~ cols-minmax-8rem"},ot={key:1},xt=P({__name:"assets",setup(a){const s=Q(),t=z(""),f=h(()=>new le(s.value||[],{keys:["path"]})),v=h(()=>t.value?f.value.search(t.value).map(p=>p.item):s.value||[]),g=h(()=>{const x={};for(const p of v.value){const i=`${p.path.split("/").slice(0,-1).join("/")}/`;x[i]||(x[i]=[]),x[i].push(p)}return Object.entries(x).sort(([p],[i])=>p.localeCompare(i))}),d=z(),y=z("grid");function b(){y.value=y.value==="list"?"grid":"list"}X("Escape",()=>{d.value=void 0});const S=z();return(x,p)=>{const i=G,r=Z,k=Ue,C=te,I=Qe,D=Ke,j=ie;return o(),l("div",Xe,[e("div",{ref_key:"navbar",ref:S,flex:"~ col gap-2",border:"b base",p4:"","navbar-glass":"","flex-1":"",pb2:""},[e("div",Ye,[w(i,{modelValue:n(t),"onUpdate:modelValue":p[0]||(p[0]=c=>Y(t)?t.value=c:null),placeholder:"Search...",icon:"carbon-search","flex-auto":"",p:"x5 y2",n:"primary"},null,8,["modelValue"]),e("div",Ze,[e("button",{title:"Toggle view",onClick:b},[n(y)==="grid"?(o(),m(r,{key:0,icon:"i-carbon-list"})):(o(),m(r,{key:1,icon:"i-carbon-grid"}))])])]),e("div",et,[n(t)?(o(),l("span",tt,u(n(v).length)+" matched · ",1)):_("",!0),e("span",null,u(n(s)?.length)+" assets in total",1)])],512),n(y)==="grid"?(o(),l($,{key:0},[n(g).length>1?(o(!0),l($,{key:0},B(n(g),([c,N])=>(o(),m(C,{key:c,text:c,description:`${N.length} items`,open:N.length<30,padding:!1},{default:A(()=>[e("div",nt,[(o(!0),l($,null,B(N,E=>(o(),m(k,{key:E.path,asset:E,folder:c,onClick:at=>d.value=E},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(o(),l("div",st,[(o(!0),l($,null,B(n(v),c=>(o(),m(k,{key:c.path,asset:c,onClick:N=>d.value=c},null,8,["asset","onClick"]))),128))]))],64)):(o(),l("div",ot,[(o(!0),l($,null,B(n(v),c=>(o(),m(I,{key:c.path,asset:c,onClick:N=>d.value=c},null,8,["asset","onClick"]))),128))])),w(j,{"model-value":!!n(d),"w-120":"","auto-close":"",navbar:n(S),onClose:p[1]||(p[1]=c=>d.value=void 0)},{default:A(()=>[n(d)?(o(),m(D,{key:0,asset:n(d)},null,8,["asset"])):_("",!0)]),_:1},8,["model-value","navbar"])])}}});export{xt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as T,m as S,o as s,f as b,l as A,t as Q,u as o,h as d,i as g,c as v,y as w,J as E,K as X,w as x,E as I,L as Y,M as Z,A as ee,N as oe,O as ne,P as te,Q as se,R as le,H as D,F as M,S as z,k as ae,T as ie,U as re,v as F,b as ce,V as ue,W as pe,X as me,I as de}from"./entry.216b69f8.js";import{_ as fe}from"./NCheckbox.vue.4a02f339.js";import{_ as _e}from"./NIconButton.vue.a83f99ea.js";import{_ as W}from"./Badge.ec308af3.js";import{_ as j}from"./FilepathItem.vue.178a1de3.js";import{u as he}from"./editor.e10c09a2.js";import{_ as ve}from"./DrawerRight.vue.a85afa62.js";import{_ as be}from"./NTextInput.vue.d770ca6c.js";import{_ as ge}from"./NSectionBlock.c955e75e.js";import{_ as ye}from"./NIconTitle.vue.ce90e41b.js";import{F as xe}from"./fuse.esm.88e2763d.js";import"./context.fe69916a.js";const ke=/\d/,$e=["-","_","/","."];function we(n=""){if(!ke.test(n))return n.toUpperCase()===n}function Ce(n,l){const u=l??$e,p=[];if(!n||typeof n!="string")return p;let e="",a,m;for(const f of n){const _=u.includes(f);if(_===!0){p.push(e),e="",a=void 0;continue}const r=we(f);if(m===!1){if(a===!1&&r===!0){p.push(e),e=f,a=r;continue}if(a===!0&&r===!1&&e.length>1){const $=e[e.length-1];p.push(e.slice(0,Math.max(0,e.length-1))),e=$+f,a=r;continue}}e+=f,a=r,m=_}return p.push(e),p}function Ne(n){return n?n[0].toUpperCase()+n.slice(1):""}function H(n){return n?(Array.isArray(n)?n:Ce(n)).map(l=>Ne(l)).join(""):""}const Ve={"text-sm":"","font-mono":""},Se=d("span",{op20:"",mr1:""},"<",-1),Pe=d("span",{op20:"",ml1:""},"/>",-1),q=T({__name:"ComponentName",props:{component:null},setup(n){const l=n,u=S(()=>l.component.pascalName||H(l.component.name||l.component.__name||l.component.kebabName||""));return(p,e)=>(s(),b("code",Ve,[Se,A(Q(o(u)),1),Pe]))}}),Be={flex:"~ col gap1","of-hidden":"","items-start":""},Me={flex:"~ gap2"},J=T({__name:"ComponentDetails",props:{component:null},setup(n){const l=n,u=S(()=>l.component.pascalName||H(l.component.name||l.component.__name||l.component.kebabName||"")),p=S(()=>l.component.filePath||l.component.file||l.component.__file||""),e=he();return(a,m)=>{const f=q,_=_e,r=W,$=j;return s(),b("div",Be,[d("div",Me,[g(f,{component:n.component},null,8,["component"]),g(_,{title:"Copy name","flex-none":"",icon:"carbon-copy",onClick:m[0]||(m[0]=t=>o(e)(`<${o(u)}></${o(u)}>`))}),n.component.global?(s(),v(r,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0)]),d("div",null,[o(p)?(s(),v($,{key:0,filepath:o(p),"w-full":"","text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)]),E(a.$slots,"default")])}}}),Re={hover:"bg-active",class:"group",flex:"~ gap2",rounded:"","w-full":"","items-center":"",px2:"",py1:""},Te={"hover:text-primary":""},Ue=T({__name:"ComponentItem",props:{component:null},setup(n){const l=n,u=S(()=>l.component.filePath||l.component.file||l.component.__file||"");return(p,e)=>{const a=q,m=J,f=X("VDropdown"),_=W,r=j;return s(),b("div",Re,[g(f,null,{popper:x(()=>[g(m,{component:n.component,p4:""},null,8,["component"])]),default:x(()=>[d("button",Te,[g(a,{component:n.component},null,8,["component"])])]),_:1}),n.component.global?(s(),v(_,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0),E(p.$slots,"default"),o(u)?(s(),v(r,{key:1,filepath:o(u),"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)])}}}),Fe=d("span",{op75:""},"Show pages",-1),Ie=d("span",{op75:""},"Show layouts",-1),De=d("span",{op75:""},"Show workspace",-1),Le=d("span",{op75:""},"Show node_modules",-1),Ee=d("div",{"i-carbon-close":""},null,-1),Ae=d("div",{"flex-auto":""},null,-1),Ge={"w-full":"",relative:"","h-full":""},ze={key:0,p4:"",pr10:"",pt4:"",flex:"~ col gap4"},We=T({__name:"ComponentsGraph",props:{components:null},setup(n){const l=n,u=I(),p=I(),e=Y(),a=I(),m=Z(),f=ee(),_=oe(),r=ne(),{componentsGraphShowNodeModules:$,componentsGraphShowPages:t,componentsGraphShowLayouts:y,componentsGraphShowWorkspace:P}=z(),R=I(),G=S(()=>{const C=r.value||[];if(R.value){let c=function(h){!h||i.has(h)||(i.add(h),h.deps.forEach(N=>{c(C.find(V=>V.id===N))}))};const i=new Set;return C.find(h=>h.id===a.value?.id),c(R.value),Array.from(i)}return C}),L=S(()=>{const C=G.value.map(i=>{const h=l.components.find(U=>U.filePath===i.id),N=m.value?.find(U=>U.file===i.id),V=_.value?.find(U=>U.file===i.id),k=i.id.replace(/\?.*$/,"").replace(/\#.*$/,""),B=i.id.includes("/node_modules/")?"lib":h?"user":V?"layout":N?"page":"unknown";if(!$.value&&B==="lib"||!t.value&&B==="page"||!y.value&&B==="layout"||!P.value&&B==="user"&&f.value&&!i.id.startsWith(f.value.rootDir))return null;const O=B==="layout"?"hexagon":B==="page"?"square":"dot";return{id:i.id,label:k.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:B,shape:O,size:15+Math.min(i.deps.length/2,8),font:{color:e.value==="dark"?"white":"black"},color:R.value?.id===i.id?"#82c742":void 0,extra:{id:i.id,component:h,page:N,layout:V,relationship:i}}}).filter(i=>!!i),c=G.value.flatMap(i=>i.deps.map(h=>({from:i.id,to:h,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:C,edges:c}});te(()=>{const C={nodes:{shape:"dot",size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:"#42b883"},unknown:{color:"#b86542"},lib:{color:"#b4b842"},page:{color:"#42b2b8"},layout:{color:"#4256b8"}}},c=new se(u.value,L.value,C);c.on("click",i=>{const h=i.nodes?.[0],N=L.value.nodes?.find(V=>V.id===h)?.extra;N&&(a.value=N)}),le(L,()=>{c.setData(L.value)})});function K(){R.value=a.value?.relationship,a.value=void 0}return(C,c)=>{const i=fe,h=J,N=ae,V=ve;return s(),b(M,null,[d("div",{ref_key:"navbar",ref:p,flex:"~ gap4",border:"b base",absolute:"",p4:"","flex-1":"","navbar-glass":"","left-0":"","top-0":"","right-0":""},[g(i,{modelValue:o(t),"onUpdate:modelValue":c[0]||(c[0]=k=>D(t)?t.value=k:null),n:"primary sm"},{default:x(()=>[Fe]),_:1},8,["modelValue"]),g(i,{modelValue:o(y),"onUpdate:modelValue":c[1]||(c[1]=k=>D(y)?y.value=k:null),n:"primary sm"},{default:x(()=>[Ie]),_:1},8,["modelValue"]),g(i,{modelValue:o(P),"onUpdate:modelValue":c[2]||(c[2]=k=>D(P)?P.value=k:null),n:"primary sm"},{default:x(()=>[De]),_:1},8,["modelValue"]),g(i,{modelValue:o($),"onUpdate:modelValue":c[3]||(c[3]=k=>D($)?$.value=k:null),n:"primary sm"},{default:x(()=>[Le]),_:1},8,["modelValue"]),o(R)?(s(),b("button",{key:0,flex:"~ gap-1","items-center":"",op50:"","text-xs":"",py1:"","bg-gray:20":"",pl3:"",pr2:"","rounded-full":"","hover:op100":"",onClick:c[4]||(c[4]=k=>R.value=void 0)},[A(" Clear filter "),Ee])):w("",!0),Ae,E(C.$slots,"default")],512),d("div",Ge,[d("div",{ref_key:"container",ref:u,"w-full":"","h-full":""},null,512),g(V,{"model-value":!!(o(a)&&o(a).component),navbar:o(p),"w-80":"",onClose:c[6]||(c[6]=k=>a.value=void 0)},{default:x(()=>[o(a)&&o(a).component?(s(),b("div",ze,[g(h,{component:o(a).component},null,8,["component"]),d("div",null,[g(N,{n:"primary solid",onClick:c[5]||(c[5]=k=>K())},{default:x(()=>[A(" Filter to this component ")]),_:1})])])):w("",!0)]),_:1},8,["model-value","navbar"])])],64)}}}),je={p4:"",flex:"~ gap4","flex-1":"",border:"b base","navbar-glass":""},He={pl4:""},qe=T({__name:"ComponentsList",props:{components:null},setup(n){const l=n,u=I(""),p=S(()=>new xe(l.components,{keys:["pascalName","filePath","kebabName"]})),e=S(()=>{const a=[],m=new Map,f=[],_=[],r={user:0,lib:0,builtin:0,runtime:0};return(u.value?p.value.search(u.value).map(t=>t.item):l.components).forEach(t=>{if(t.filePath&&ie(t.filePath)){const y=re(t.filePath);if(!y)return;y==="nuxt"?(f.push(t),r.builtin++):(m.has(y)||m.set(y,[]),m.get(y).push(t),r.lib++)}else t.global&&!t.filePath?(_.push(t),r.runtime++):(a.push(t),r.user++)}),{count:r,user:a,builtin:f,lib:m,runtime:_}});return(a,m)=>{const f=be,_=Ue,r=ge,$=ye;return s(),b(M,null,[d("div",je,[g(f,{modelValue:o(u),"onUpdate:modelValue":m[0]||(m[0]=t=>D(u)?u.value=t:null),placeholder:"Search...",icon:"carbon-search",p:"x5 y2",n:"primary","flex-auto":"","bg-base":"","border-base":""},null,8,["modelValue"]),E(a.$slots,"default")]),o(e).user.length?(s(),v(r,{key:0,icon:"carbon-nominal",text:"User components",description:`Total components: ${o(e).count.user}`},{default:x(()=>[(s(!0),b(M,null,F(o(e).user,t=>(s(),v(_,{key:t.filePath,"ml--5":"",component:t},null,8,["component"]))),128))]),_:1},8,["description"])):w("",!0),o(e).runtime.length?(s(),v(r,{key:1,icon:"carbon-load-balancer-global",text:"Runtime components",description:`Total components: ${o(e).count.runtime}`},{default:x(()=>[(s(!0),b(M,null,F(o(e).runtime,t=>(s(),v(_,{key:t.filePath,"ml--5":"",component:t},null,8,["component"]))),128))]),_:1},8,["description"])):w("",!0),o(e).builtin.length?(s(),v(r,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${o(e).count.builtin}`},{default:x(()=>[(s(!0),b(M,null,F(o(e).builtin,t=>(s(),v(_,{key:t.filePath,"ml--5":"",component:t},null,8,["component"]))),128))]),_:1},8,["description"])):w("",!0),o(e).lib.size?(s(),v(r,{key:3,icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${o(e).count.lib} components from ${o(e).lib.size} packages`},{default:x(()=>[(s(!0),b(M,null,F(o(e).lib.entries(),([t,y])=>(s(),b("div",{key:t},[g($,{text:`${t} (${y.length})`,op50:"",py1:""},null,8,["text"]),d("div",He,[(s(!0),b(M,null,F(y,P=>(s(),v(_,{key:P.filePath,component:P},null,8,["component"]))),128))])]))),128))]),_:1},8,["description"])):w("",!0)],64)}}}),Je={"h-full":"","of-auto":"",relative:""},Ke={"flex-none":"",flex:"~ gap4"},io=T({__name:"components",setup(n){const l=ce(),u=ue(),p=pe(),{componentsView:e}=z();function a(){l.value?.inspector?.instance&&(l.value.inspector.enable(),u.push("/__inspecting"))}function m(){e.value=e.value==="list"?"graph":"list"}return(f,_)=>{const r=de;return s(),b("div",Je,[(s(),v(me(o(e)==="list"?qe:We),{components:o(p)},{default:x(()=>[d("div",Ke,[d("button",{title:"Toggle view",onClick:m},[o(e)==="graph"?(s(),v(r,{key:0,icon:"i-carbon-list"})):(s(),v(r,{key:1,icon:"i-carbon-network-4"}))]),o(l)?.inspector?.instance?(s(),b("button",{key:0,title:"Inspect Vue components",onClick:a},[g(r,{icon:"i-carbon-select-window"})])):w("",!0)])]),_:1},8,["components"]))])}}});export{io as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aR as e,aS as i}from"./entry.216b69f8.js";function r(){const t=Symbol("singleton");return[function(n){e()?.appContext.app.provide(t,n)},function(n){return i(t,n)}]}const[c,p]=r();export{c as p,p as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as k,L as g,E as b,m as y,a2 as x,a3 as C,P as E,a4 as T,r as m,a5 as j,a6 as M,o as i,f as _,a7 as $,a8 as B,u as n,c as f,X as L,C as I,t as W}from"./entry.216b69f8.js";import{_ as D}from"./LaunchPage.vue.a0bbd67e.js";import"./TabIcon.vue.8236980c.js";import"./NMarkdown.vue.11f68fad.js";const d=new Map,O=k({__name:"IframeView",props:{tab:null},setup(h){const c=h,l=g(),u=b(),t=y(()=>c.tab.name),e=b(),o=x(C(u));E(()=>{const a=c.tab.view,p=a.persistent!==!1;if(d.get(t.value)&&p)e.value=d.get(t.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),p&&d.set(t.value,e.value),e.value.src=a.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{r(),s(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),T(w)}setTimeout(s,100)}),m(w),m(s),m(r),j(()=>{e.value&&(e.value.style.visibility="hidden")});function s(){if(!(!e.value||!e.value.contentWindow))try{const a=e.value.contentWindow.document.querySelector("html");a?.classList.toggle("dark",l.value==="dark"),a?.classList.toggle("light",l.value==="dark")}catch{}}const v=M();function r(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=v.value}catch{}}function w(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${o.left}px`,top:`${o.top}px`,width:`${o.width}px`,height:`${o.height}px`,outline:"none"})}return(a,p)=>(i(),_("div",{ref_key:"anchor",ref:u,"w-full":"","h-full":""},null,512))}}),P={key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},S={key:4,flex:"~ col","h-full":"","items-center":"","justify-center":""},N=k({__name:"custom-[name]",setup(h){const c=$(),l=y(()=>c.params.name),u=B(),t=y(()=>u.all.value.find(e=>e.name===l.value));return(e,o)=>{const s=O,v=D;return n(t)?n(t).view.type==="iframe"?(i(),f(s,{key:1,tab:n(t)},null,8,["tab"])):n(t).view.type==="vnode"?(i(),f(L(n(t).view.vnode),{key:2})):n(t).view.type==="launch"?(i(),f(v,{key:3,icon:n(t).view.icon||n(t).icon,title:n(t).view.title||n(t).title,description:n(t).view.description,actions:n(t).view.actions,onAction:o[0]||(o[0]=r=>("rpc"in e?e.rpc:n(I)).customTabAction(n(t).name,r))},null,8,["icon","title","description","actions"])):(i(),_("div",S," Unknown tab type "+W(n(t).view),1)):(i(),_("div",P," Tab not found "))}}});export{N as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as z}from"./context.fe69916a.js";import{a as h,E as k,P as L,f as d,aj as w,aO as B,o as i,c as b,w as u,J as y,L as O,m as T,aP as j,n as E,g as F,b as $,ak as I,u as n,h as o,x as m,y as x,i as f,l as v,t as S,aQ as R,k as q,q as A,K as V,X as M,S as H,af as J,a8 as K,F as N,v as D,ai as Q}from"./entry.216b69f8.js";import{_ as W}from"./TabIcon.vue.8236980c.js";const X=h({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(a,{slots:e,attrs:t}){const c=k(!1);return L(()=>{c.value=!0}),r=>{if(c.value)return e.default?.();const s=e.fallback||e.placeholder;if(s)return s();const p=r.fallback||r.placeholder||"",l=r.fallbackTag||r.placeholderTag||"span";return d(l,t,p)}}}),Y={name:B,props:{placeholder:String,tag:{type:String,default:"span"}}};function G(a,e,t,c,r,s){const p=X;return i(),b(p,{placeholder:t.placeholder,"placeholder-tag":t.tag},{default:u(()=>[y(a.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const U=w(Y,[["render",G]]),Z=h({__name:"NDarkToggle",setup(a){const e=O(),t=T({get(){return e.value==="dark"},set(){e.preference=t.value?"light":"dark"}}),c=j(t),r={mode:e,isDark:t,toggle:c};return(s,p)=>{const l=U;return i(),b(l,{tag:"span"},{default:u(()=>[y(s.$slots,"default",E(F(r)))]),_:3})}}}),ee={key:0,py2:"",px3:"",border:"b base",flex:"~ col gap-1"},te=o("div",{"text-sm":"",op50:""}," Dock devtools to ",-1),ne={flex:"~ gap-1","text-lg":""},oe={px3:"",py2:"",border:"b base",flex:"~ gap-2"},ae=o("div",{"carbon-sun":"","dark:carbon-moon":"","translate-y--1px":""},null,-1),se=o("div",{"translate-y--1px":"","carbon-settings":""},null,-1),le={px3:"",py2:"",flex:"~ gap2"},ie=h({__name:"DockingPanel",setup(a){const e=R(),t=$(),c=I();function r(){c.hooks.callHookParallel("app:data:refresh",Object.keys(c.payload.data)),t.value&&(t.value={...t.value})}function s(){location.reload()}return(p,l)=>{const _=q,C=Z;return i(),d("div",null,[n(t)?(i(),d("div",ee,[te,o("div",ne,[o("button",{"i-carbon-open-panel-filled-bottom":"",class:m(n(e).position==="bottom"?"text-primary":"op50"),onClick:l[0]||(l[0]=g=>n(e).position="bottom")},null,2),o("button",{"i-carbon-open-panel-filled-right":"",class:m(n(e).position==="right"?"text-primary":"op50"),onClick:l[1]||(l[1]=g=>n(e).position="right")},null,2),o("button",{"i-carbon-open-panel-filled-left":"",class:m(n(e).position==="left"?"text-primary":"op50"),onClick:l[2]||(l[2]=g=>n(e).position="left")},null,2),o("button",{"i-carbon-open-panel-filled-top":"",class:m(n(e).position==="top"?"text-primary":"op50"),onClick:l[3]||(l[3]=g=>n(e).position="top")},null,2)])])):x("",!0),o("div",oe,[f(C,null,{default:u(({toggle:g,isDark:P})=>[f(_,{n:"sm primary",onClick:Se=>g()},{default:u(()=>[ae,v(" "+S(P.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),f(_,{n:"sm primary",to:"/settings"},{default:u(()=>[se,v(" Settings ")]),_:1})]),o("div",le,[f(_,{n:"solid primary xs",onClick:r},{default:u(()=>[v(" Refetch Data ")]),_:1}),f(_,{n:"solid primary xs",onClick:s},{default:u(()=>[v(" Refresh Page ")]),_:1})])])}}}),ce=h({__name:"Notification",setup(a){const e=k(!1),t=k(),c=k();return z((r,s,p=1500)=>{c.value=r,t.value=s,e.value=!0,setTimeout(()=>{e.value=!1},p)}),(r,s)=>(i(),d("div",{"text-center":"","top-0":"","right-0":"","left-0":"",fixed:"","z-50":"",class:m(n(e)?"":"pointer-events-none overflow-hidden")},[o("div",{border:"~ base",flex:"~ inline gap2",rounded:"","bg-base":"","text-primary":"","items-center":"","px-4":"","py-1":"","inline-block":"","m-3":"","transition-all":"","duration-300":"",style:A(n(e)?{}:{transform:"translateY(-300%)"}),class:m(n(e)?"shadow":"shadow-none")},[n(t)?(i(),d("div",{key:0,class:m(n(t))},null,2)):x("",!0),o("div",null,S(n(c)),1)],6)],2))}}),re={key:0,hidden:"","lg:block":""},ue=h({__name:"SideNavItem",props:{tab:null},setup(a){const e=a,t=H(),c=$(),r=T(()=>{const s=e.tab;return!(s.shouldShow&&!s.shouldShow()||s.requireClient&&!c.value||t.hiddenTabs.value.includes(s.name))});return(s,p)=>{const l=W,_=J,C=V("VTooltip");return n(r)?(i(),b(C,{key:0,placement:"right"},{popper:u(()=>[o("div",null,S(a.tab.title),1),"extraTabVNode"in a.tab&&a.tab.extraTabVNode?(i(),d("div",re,[(i(),b(M(a.tab.extraTabVNode)))])):x("",!0)]),default:u(()=>[f(_,{to:"path"in a.tab?a.tab.path:`/modules/custom-${a.tab.name}`,flex:"~",hover:"bg-active","select-none":"","items-center":"","justify-center":"",p1:"","w-10":"","text-secondary":"","rounded-xl":"","h-10":"","exact-active-class":"!text-primary bg-active"},{default:u(()=>[f(l,{"text-xl":"",icon:a.tab.icon,title:a.tab.title},null,8,["icon","title"])]),_:1},8,["to"])]),_:1})):x("",!0)}}}),de={border:"r base",flex:"~ col gap-0.5","h-full":"","items-center":"","bg-base":"","z-100":"",class:"no-scrollbar"},pe={flex:"~ col","items-center":"","bg-base":"","top-0":"",pt3:"",sticky:"","z-1":"",mb1:""},_e=["title"],fe=o("div",{"h-1px":"","w-8":"","mt-2":"",border:"b base"},null,-1),me=o("div",{"h-1px":"","w-8":"",my1:"",border:"b base"},null,-1),be=o("div",{"flex-auto":""},null,-1),he=h({__name:"SideNav",setup(a){const e=$(),t=K();return(c,r)=>{const s=ie,p=V("VDropdown"),l=ue;return i(),d("div",de,[o("div",pe,[f(p,{placement:"left-start",distance:20},{popper:u(()=>[f(s)]),default:u(()=>[o("button",{"text-lg":"","w-6":"","h-6":"","i-logos-nuxt-icon":"",class:m(n(e)?"":"saturate-0"),title:n(e)?"Nuxt DevTools":"DevTools Client not connected, try open it in iframe mode"},null,10,_e)]),_:1}),fe]),(i(!0),d(N,null,D(n(t).builtin.value,_=>(i(),b(l,{key:_.name,tab:_},null,8,["tab"]))),128)),n(t).custom.value.length?(i(),d(N,{key:0},[me,(i(!0),d(N,null,D(n(t).custom.value,_=>(i(),b(l,{key:_.name,tab:_},null,8,["tab"]))),128)),be],64)):x("",!0)])}}}),ve={},ge={class:"n-loading"},xe={class:"flex flex-col items-center text-lg animate-pulse"},ke=o("div",{class:"text-4xl op50 i-carbon-circle-dash animate-spin"},null,-1);function ye(a,e){return i(),d("div",ge,[o("div",xe,[ke,y(a.$slots,"default",{},()=>[v(" Loading... ")])])])}const $e=w(ve,[["render",ye]]),Ce={"bg-base":"","of-hidden":"","h-screen":"","font-sans":""},Ne={key:1,grid:"~ cols-[50px_1fr]","of-hidden":"","h-full":""},Te={"h-full":"","of-auto":""},Pe=h({__name:"default",setup(a){const e=$(),t=T(()=>!e.value&&!Q.value);return(c,r)=>{const s=ce,p=$e,l=he;return i(),d("div",Ce,[f(s),n(t)?(i(),b(p,{key:0},{default:u(()=>[v(" Connecting.... ")]),_:1})):(i(),d("div",Ne,[f(l,{"of-x-hidden":"","of-y-auto":""}),o("div",Te,[y(c.$slots,"default")])]))])}}});export{Pe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as t,ax as n}from"./entry.216b69f8.js";import{u as r}from"./context.fe69916a.js";async function s(o){await t.openInEditor(o)}function e(){const o=n(),i=r();return a=>{o.copy(a),i("Copied to clipboard","carbon-checkmark")}}export{s as o,e as u};
|