@nuxt/devtools-nightly 2.0.0-beta.6-28978839.578ecfc → 2.0.0-beta.7-28980749.c20c724
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/dist/chunks/module-main.mjs +64 -41
- package/dist/chunks/vscode.mjs +3 -3
- package/dist/chunks/vue-devtools.mjs +3 -3
- package/dist/client/200.html +13 -13
- package/dist/client/404.html +13 -13
- package/dist/client/_nuxt/__blank-lg13rweu.js +1 -0
- package/dist/client/_nuxt/analyze-build-hl3z5moi.js +1 -0
- package/dist/client/_nuxt/{assets-epc1omtv.js → assets-hg8y65bo.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/0c7d4b11-3960-472e-aa5e-814f5fa473f1.json +1 -0
- package/dist/client/_nuxt/{code-diff.vue-btv1bdr0.js → code-diff.vue-dw4253xo.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-k1eonni6.js → code-snippets.vue-h63l3ga8.js} +1 -1
- package/dist/client/_nuxt/components-g4671hrj.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-awv2fe0i.js +1 -0
- package/dist/client/_nuxt/{custom-_name_-h79rq3oa.js → custom-_name_-lehsfv4z.js} +1 -1
- package/dist/client/_nuxt/{data-schema-button.vue-g5f288wb.js → data-schema-button.vue-cvp49yv0.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-d3uykogs.js → data-schema-drawer-gj6u0k3q.js} +1 -1
- package/dist/client/_nuxt/{default-bn98asj3.js → default-n5abea1i.js} +1 -1
- package/dist/client/_nuxt/entry.css-mj1nvcy6.css +1 -0
- package/dist/client/_nuxt/{error-404-ili7zuvo.js → error-404-k1azvkry.js} +1 -1
- package/dist/client/_nuxt/{error-500-ig9h4vyo.js → error-500-fl4i136a.js} +1 -1
- package/dist/client/_nuxt/{error-e30hod5e.js → error-epn2rlwx.js} +1 -1
- package/dist/client/_nuxt/{filepath-item.vue-dv8t36m8.js → filepath-item.vue-ocz0upxz.js} +1 -1
- package/dist/client/_nuxt/{full-nquao1nk.js → full-cofqwlaq.js} +1 -1
- package/dist/client/_nuxt/{help-fab.vue-b4km25gy.js → help-fab.vue-jti43xum.js} +1 -1
- package/dist/client/_nuxt/{hooks-g3c0b4rq.js → hooks-fm2xz72g.js} +1 -1
- package/dist/client/_nuxt/imports-jajy765b.js +1 -0
- package/dist/client/_nuxt/{index-mrfaxiq8.js → index-8ojfxtmp.js} +1 -1
- package/dist/client/_nuxt/{index-bejc4xe2.js → index-mkx27gf0.js} +1 -1
- package/dist/client/_nuxt/index-obsucz0g.js +1 -0
- package/dist/client/_nuxt/{launch-page.vue-h9zld33t.js → launch-page.vue-fip61omh.js} +1 -1
- package/dist/client/_nuxt/{jl98s4wc.js → lbm7brd5.js} +4 -4
- package/dist/client/_nuxt/{modules-g323nw4w.js → modules-ozt4x0g5.js} +1 -1
- package/dist/client/_nuxt/{nbadge-n0d7cbpa.js → nbadge-lm8ruxdz.js} +1 -1
- package/dist/client/_nuxt/{ncheckbox.vue-b8l374zk.js → ncheckbox.vue-o34fufk3.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-oa1cbosx.js → ndrawer.vue-den3x6bs.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-khy1smu9.js → ndropdown.vue-h1rzwvol.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-i4iopkha.js → nlink.vue-geo1m3b0.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-bv8o4xzs.js → nnavbar.vue-e4gbvuiu.js} +1 -1
- package/dist/client/_nuxt/{none-dw53b7ia.js → none-hq61ikv8.js} +1 -1
- package/dist/client/_nuxt/{nsection-block-mriokuc1.js → nsection-block-j74ks6nb.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs.vue-ao6503xs.js → nselect-tabs.vue-omvwf3ky.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-o1duk8yi.js → nselect.vue-mcse0obw.js} +1 -1
- package/dist/client/_nuxt/{open-graph-leid1e5b.js → open-graph-fgxh745s.js} +1 -1
- package/dist/client/_nuxt/{overview-nu9skx1l.js → overview-cqqn59w9.js} +1 -1
- package/dist/client/_nuxt/{pages-h0bb9ypc.js → pages-i073875q.js} +1 -1
- package/dist/client/_nuxt/{payload-lbd3p8p1.js → payload-lpa4xzf7.js} +1 -1
- package/dist/client/_nuxt/{pinia-g6dl9fs6.js → pinia-icj8n3eh.js} +1 -1
- package/dist/client/_nuxt/{plugins-hdaiapq8.js → plugins-mrm4erax.js} +1 -1
- package/dist/client/_nuxt/{render-tree-leowmac1.js → render-tree-c8m9uiit.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-bjj77u3n.js → runtime-configs-jgrd3nvs.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-kioko3v9.js → server-discovery-nz1q58ac.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-iawhla30.js → server-route-inputs.vue-k7nz89da.js} +1 -1
- package/dist/client/_nuxt/{server-routes-jmwia5lf.js → server-routes-dgw2yb8s.js} +1 -1
- package/dist/client/_nuxt/{server-tasks-iuh8y4kj.js → server-tasks-ohziocip.js} +1 -1
- package/dist/client/_nuxt/{settings-oqdnemhy.js → settings-mdfl1baf.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list.vue-d60b1azo.js → stacktrace-list.vue-ju2yzl1a.js} +1 -1
- package/dist/client/_nuxt/{state-components-ktgnlmib.js → state-components-hu0vwgq9.js} +1 -1
- package/dist/client/_nuxt/{state-editor.vue-d6gklqvj.js → state-editor.vue-fey2xg3o.js} +1 -1
- package/dist/client/_nuxt/{state-modules-c1b0tmxl.js → state-modules-ou3w6py8.js} +1 -1
- package/dist/client/_nuxt/{storage-f2vxig9a.js → storage-fg7uqyfv.js} +1 -1
- package/dist/client/_nuxt/{terminals-hjrk2rfj.js → terminals-km35rk4z.js} +1 -1
- package/dist/client/_nuxt/timeline-ji41jouc.js +31 -0
- package/dist/client/_nuxt/{virtual-files-fxck5vf1.js → virtual-files-pdvx204m.js} +1 -1
- package/dist/client/index.html +13 -13
- package/dist/module.json +1 -1
- package/package.json +4 -4
- package/dist/client/_nuxt/__blank-lb5ijdpb.js +0 -1
- package/dist/client/_nuxt/analyze-build-gb0rp3n4.js +0 -1
- package/dist/client/_nuxt/builds/meta/6fb951a3-6558-4617-923d-4f90820a2e3c.json +0 -1
- package/dist/client/_nuxt/components-m3ya561d.js +0 -1
- package/dist/client/_nuxt/composable-item.vue-hmfpyqv3.js +0 -1
- package/dist/client/_nuxt/entry.css-gcfkqtar.css +0 -1
- package/dist/client/_nuxt/imports-k9wjonrq.js +0 -1
- package/dist/client/_nuxt/timeline-j1c4u20v.js +0 -31
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ie,_ as q,R as pe,S as re,K as ue,T as de,g as Z,U as me,V as ce,W as fe,O as ve,X as _e,Y as he,H as be,f as ge}from"./lbm7brd5.js";import{U as o,W as d,X as n,p as I,q as P,a9 as j,a8 as E,a3 as u,u as $,P as y,Z as w,F as T,ae as M,Y as H,f as U,m as ye,z as we,j as xe,a2 as f,A as z,V as ke,a0 as Ce,a4 as W,ag as $e,aa as Ne,ab as K}from"./vendor/json-editor-vue-kcahofzr.js";import{_ as Ve}from"./help-fab.vue-jti43xum.js";import{_ as Pe}from"./ncheckbox.vue-o34fufk3.js";import{_ as J}from"./nnavbar.vue-e4gbvuiu.js";import{p as Q}from"./index-obsucz0g.js";import{_ as ee}from"./nbadge-lm8ruxdz.js";import{_ as ne}from"./filepath-item.vue-ocz0upxz.js";import{_ as Se}from"./ndrawer.vue-den3x6bs.js";import{N as De}from"./vendor/vis-fzckz0r6.js";import{_ as Te}from"./nselect-tabs.vue-omvwf3ky.js";import{_ as Be}from"./nsection-block-j74ks6nb.js";import{_ as Le}from"./nicon-title.vue-hzhi6u0u.js";import{D as X}from"./constants-b32h69zq.js";import{u as Me,a as Ue}from"./state-components-hu0vwgq9.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-ja073547.js";const Ie={class:"markdown-body"},Fe={__name:"components",setup(V,{expose:s}){return s({frontmatter:{}}),(i,c)=>(o(),d("div",Ie,c[0]||(c[0]=[n("h1",null,"Components",-1),n("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),n("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},Ge={"text-sm":"","font-mono":""},oe=I({__name:"ComponentName",props:{component:{}},setup(V){const s=V,v=P(()=>s.component.pascalName||Q(s.component.name||s.component.__name||s.component.kebabName||""));return(i,c)=>(o(),d("code",Ge,[c[0]||(c[0]=n("span",{mr1:"",op20:""},"<",-1)),j(E(v.value),1),c[1]||(c[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),Re={flex:"~ col gap1","items-start":"","of-hidden":""},ze={flex:"~ gap2",px3:""},Ae={px3:"",pb2:""},We={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Ee={"text-sm":""},He={"text-primary":""},Oe={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Xe={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},je={"text-sm":""},qe={"text-primary":""},Ye={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},te=I({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(V){const s=V,v=P(()=>s.component.pascalName||Q(s.component.name||s.component.__name||s.component.kebabName||"")),i=P(()=>s.component.filePath||s.component.file||s.component.__file||""),c=ie();return(l,a)=>{const h=oe,r=q,b=ee,x=ne;return o(),d("div",Re,[n("div",ze,[u(h,{component:l.component},null,8,["component"]),u(r,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:a[0]||(a[0]=m=>$(c)(`<${v.value}></${v.value}>`,"component-name"))}),l.component.global?(o(),y(b,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0)]),n("div",Ae,[i.value?(o(),y(x,{key:0,filepath:i.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)]),l.dependents?(o(),d("div",We,[n("div",Ee,[n("strong",He,E(l.dependents.length),1),a[1]||(a[1]=n("span",{op50:""}," references",-1))]),l.dependents.length?(o(),d("div",Oe,[(o(!0),d(T,null,M(l.dependents,m=>(o(),y(x,{key:m,filepath:m},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),l.dependencies?(o(),d("div",Xe,[n("div",je,[n("strong",qe,E(l.dependencies.length),1),a[2]||(a[2]=n("span",{op50:""}," dependencies",-1))]),l.dependencies.length?(o(),d("div",Ye,[(o(!0),d(T,null,M(l.dependencies,m=>(o(),y(x,{key:m,filepath:m},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),H(l.$slots,"default")])}}}),Ke={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},Ze={relative:"","h-full":"","w-full":""},Je={key:0,py4:"",pt4:"",flex:"~ col"},Qe={border:"t base",p4:""},en=I({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(V){const s=V,v=U(),i=U(),c=pe(),l=ye(),a=re(),h=ue(),r=de(),{componentsGraphShowNodeModules:b,componentsGraphShowGlobalComponents:x,componentsGraphShowPages:m,componentsGraphShowLayouts:N,componentsGraphShowWorkspace:_}=Z("ui"),k=U(),p=U(""),F=me(p,300),G=P(()=>{const S=s.relationships||[];if(k.value){let e=function(C){!C||t.has(C)||(t.add(C),C.deps.forEach(B=>{e(S.find(L=>L.id===B))}))};const t=new Set;return e(k.value),Array.from(t)}return S}),A=P(()=>{const S=G.value.map(t=>{const C=s.components.find(R=>R.filePath===t.id),B=a.value?.find(R=>R.file===t.id),L=r.value?.find(R=>R.file===t.id),O=t.id.replace(/\?.*$/,"").replace(/#.*$/,""),D=t.id.includes("/node_modules/")?"lib":C?C.global?"global":"user":L?"layout":B?"page":"unknown";if(!b.value&&D==="lib"||!m.value&&D==="page"||!N.value&&D==="layout"||!_.value&&D==="user"&&h.value&&!t.id.startsWith(h.value.rootDir)||!x.value&&D==="global")return null;const g=D==="layout"?"hexagon":D==="page"?"square":"dot",Y=F.value&&!t.id.toLowerCase().includes(F.value.toLowerCase());return{id:t.id,label:O.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:D,shape:g,size:15+Math.min(t.deps.length/2,8),font:{color:Y?"#8885":c.value==="dark"?"white":"black"},color:Y?"#8885":k.value?.id===t.id?"#82c742":void 0,extra:{id:t.id,component:C,page:B,layout:L,relationship:t}}}).filter(t=>!!t),e=G.value.flatMap(t=>t.deps.map(C=>({from:t.id,to:C,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:S,edges:e}}),se=P(()=>l.value?.component?s.relationships?.find(e=>e.id===l.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),le=P(()=>l.value?.component?s.relationships?.filter(e=>e.deps.includes(l.value.component.filePath))?.map(e=>s.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);we(()=>{const S={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"}}},e=new De(v.value,A.value,S);e.on("click",t=>{const C=t.nodes?.[0],B=A.value.nodes?.find(L=>L.id===C)?.extra;B&&(l.value=B)}),xe(A,()=>{e.setData(A.value)})});function ae(){k.value=l.value?.relationship,l.value=void 0}return(S,e)=>{const t=Pe,C=J,B=ce,L=te,O=q,D=Se;return o(),d(T,null,[u(C,{ref_key:"navbar",ref:i,search:p.value,"onUpdate:search":e[6]||(e[6]=g=>p.value=g),absolute:"","left-0":"","right-0":"","top-0":""},{actions:f(()=>[n("div",Ke,[u(t,{modelValue:$(m),"onUpdate:modelValue":e[0]||(e[0]=g=>z(m)?m.value=g:null),n:"primary sm"},{default:f(()=>e[9]||(e[9]=[n("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),u(t,{modelValue:$(N),"onUpdate:modelValue":e[1]||(e[1]=g=>z(N)?N.value=g:null),n:"primary sm"},{default:f(()=>e[10]||(e[10]=[n("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),u(t,{modelValue:$(_),"onUpdate:modelValue":e[2]||(e[2]=g=>z(_)?_.value=g:null),n:"primary sm"},{default:f(()=>e[11]||(e[11]=[n("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),u(t,{modelValue:$(b),"onUpdate:modelValue":e[3]||(e[3]=g=>z(b)?b.value=g:null),n:"primary sm"},{default:f(()=>e[12]||(e[12]=[n("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),u(t,{modelValue:$(x),"onUpdate:modelValue":e[4]||(e[4]=g=>z(x)?x.value=g:null),n:"primary sm"},{default:f(()=>e[13]||(e[13]=[n("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),k.value?(o(),d("button",{key:0,flex:"~ gap-1","flex-none":"","items-center":"","rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:e[5]||(e[5]=g=>k.value=void 0)},e[14]||(e[14]=[j(" Clear filter "),n("div",{"i-carbon-close":""},null,-1)]))):w("",!0),e[15]||(e[15]=n("div",{"flex-auto":""},null,-1)),H(S.$slots,"default")]),_:3},8,["search"]),n("div",Ze,[n("div",{ref_key:"container",ref:v,"h-full":"","w-full":""},null,512),u(B,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:f(()=>e[16]||(e[16]=[n("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),n("div",{op50:""}," Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),n("div",{op50:""}," Global Component "),n("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),n("div",{op50:""}," Page "),n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[n("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),n("div",{op50:""}," Layout "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),n("div",{op50:""}," Library Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),n("div",{op50:""}," Unknown ")],-1)])),_:1}),u(D,{"model-value":!!(l.value&&l.value.component),top:i.value,border:"t l base","w-80":"",onClose:e[8]||(e[8]=g=>l.value=void 0)},{default:f(()=>[l.value&&l.value.component?(o(),d("div",Je,[u(L,{component:l.value.component,dependencies:se.value,dependents:le.value},null,8,["component","dependencies","dependents"]),n("div",Qe,[u(O,{n:"primary solid",onClick:e[7]||(e[7]=g=>ae())},{default:f(()=>e[17]||(e[17]=[j(" Filter to this component ")])),_:1})])])):w("",!0)]),_:1},8,["model-value","top"])])],64)}}}),nn={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},on={key:0,"ml--1":"","text-primary":""},tn=I({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(V){const s=V,v=P(()=>s.component.filePath||s.component.file||s.component.__file||"");return(i,c)=>{const l=oe,a=te,h=ke("VDropdown"),r=ee,b=ne;return o(),d("div",nn,[u(h,null,{popper:f(()=>[u(a,{component:i.component,dependencies:i.dependencies,dependents:i.dependents,"w-100":"",pt4:""},null,8,["component","dependencies","dependents"])]),default:f(()=>[n("button",{"hover:text-primary":"",class:Ce(i.dependents&&i.dependents.length===0?"op50":"")},[u(l,{component:i.component},null,8,["component"])],2)]),_:1}),i.dependents?.length?(o(),d("sup",on," x"+E(i.dependents?.length),1)):w("",!0),i.component.global?(o(),y(r,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0),H(i.$slots,"default"),v.value?(o(),y(b,{key:2,filepath:v.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)])}}}),sn={flex:"~ gap-2 items-center"},ln={pl4:""},an=I({__name:"ComponentsList",props:{components:{},relationships:{}},setup(V){const s=V,v=U(""),i=U("all"),c=P(()=>{const h=s.components.map(r=>fe(r,s.relationships));return i.value==="using"?h.filter(r=>r.dependents?.length):i.value==="not-used"?h.filter(r=>!r.dependents?.length):h}),l=P(()=>new ve(c.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),a=P(()=>{const h=[],r=new Map,b=[],x=[],m={user:0,lib:0,builtin:0,runtime:0};return(v.value?l.value.search(v.value).map(_=>_.item):c.value).forEach(_=>{const k=_.component;if(k.filePath&&_e(k.filePath)){const p=he(k.filePath);if(!p)return;p==="nuxt"?(b.push(_),m.builtin++):(r.has(p)||r.set(p,[]),r.get(p).push(_),m.lib++)}else k.global&&!k.filePath?(x.push(_),m.runtime++):(h.push(_),m.user++)}),{count:m,user:h,builtin:b,lib:r,runtime:x}});return(h,r)=>{const b=be,x=Te,m=J,N=tn,_=Be,k=Le;return o(),d(T,null,[u(m,{search:v.value,"onUpdate:search":r[1]||(r[1]=p=>v.value=p),pb3:""},{actions:f(()=>[H(h.$slots,"default")]),default:f(()=>[n("div",sn,[u(b,{icon:"carbon-filter",op50:""}),u(x,{modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=p=>i.value=p),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),a.value.user.length?(o(),y(_,{key:0,icon:"carbon-nominal",text:"User components",open:a.value.user.length<=$(X),description:`Total components: ${a.value.count.user}`},{default:f(()=>[(o(!0),d(T,null,M(a.value.user,p=>(o(),y(N,W({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):w("",!0),a.value.runtime.length?(o(),y(_,{key:1,icon:"carbon-load-balancer-global",open:a.value.runtime.length<=$(X),text:"Runtime components",description:`Total components: ${a.value.count.runtime}`},{default:f(()=>[(o(!0),d(T,null,M(a.value.runtime,p=>(o(),y(N,W({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):w("",!0),a.value.builtin.length?(o(),y(_,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${a.value.count.builtin}`},{default:f(()=>[(o(!0),d(T,null,M(a.value.builtin,p=>(o(),y(N,W({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["description"])):w("",!0),a.value.lib.size?(o(),y(_,{key:3,open:a.value.count.lib<=$(X),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${a.value.count.lib} components from ${a.value.lib.size} packages`},{default:f(()=>[(o(!0),d(T,null,M(a.value.lib.entries(),([p,F])=>(o(),d("div",{key:p,"ml-2":""},[u(k,{text:`${p} (${F.length})`,py1:"",op50:""},null,8,["text"]),n("div",ln,[(o(!0),d(T,null,M(F,G=>(o(),y(N,W({key:G.component.filePath,ref_for:!0},G),null,16))),128))])]))),128))]),_:1},8,["open","description"])):w("",!0)],64)}}}),pn={relative:"","h-full":"","of-auto":""},rn={"flex-none":"",flex:"~ gap3"},Vn=I({__name:"components",setup(V){const s=ge(),v=Me(),i=Ue(),{componentsView:c}=Z("ui");function l(){s.value?.inspector?.instance&&s.value.inspector.enable()}function a(){c.value=c.value==="list"?"graph":"list"}return(h,r)=>{const b=q,x=Fe,m=Ve,N=$e("tooltip");return o(),d(T,null,[n("div",pn,[(o(),y(Ne($(c)==="list"?an:en),{components:$(v),relationships:$(i)},{default:f(()=>[n("div",rn,[K(u(b,{"text-lg":"",border:!1,icon:$(c)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:a},null,8,["icon"]),[[N,"Toggle View",void 0,{"bottom-end":!0}]]),$(s)?.inspector?.instance?K((o(),y(b,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:l},null,512)),[[N,"Inspect Vue components",void 0,{"bottom-end":!0}]]):w("",!0)])]),_:1},8,["components","relationships"]))]),u(m,null,{default:f(()=>[u(x)]),_:1})],64)}}});export{Vn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as $,L as U,H as E,_ as F}from"./lbm7brd5.js";import{_ as j}from"./nmarkdown.vue-jpbjhala.js";import{_ as L}from"./filepath-item.vue-ocz0upxz.js";import{k as S}from"./index-obsucz0g.js";import{C as y}from"./constants-b32h69zq.js";import{p as W,q as r,V as q,U as s,P as i,a2 as m,X as a,Z as p,a3 as b,u as k,a9 as c,W as l,F as x,a8 as v,ae as z,a0 as H}from"./vendor/json-editor-vue-kcahofzr.js";const M={rounded:"","font-mono":""},O={key:0,"text-primary":""},P={key:0},T={title:"Vue Directive"},X={"max-w-100":""},Z={px4:"",py3:"","text-sm":""},A={flex:"~ gap2",n:"primary xs"},G={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},J={"text-sm":""},K={"text-primary":""},Q={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},R={key:1,"text-sm":"",op50:""},ne=W({__name:"ComposableItem",props:{item:{},isDirective:{type:Boolean,default:!1},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(g){const o=g,C=$(),h=U(),u=r(()=>o.item.as||o.item.name),D=r(()=>{let e=u.value;return o.isDirective&&(e[0]!=="v"&&(e=`v${e}`),e=S(e)),e}),n=r(()=>o.metadata?.injectionUsage?.[u.value]?.count||0),N=r(()=>(o.metadata?.injectionUsage?.[u.value]?.moduleIds||[]).filter(e=>!e.endsWith("?macro=true"))),_=r(()=>o.item.meta?.docsUrl?o.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(o.item.from)?y.nuxt[o.item.name]:o.item.from==="vue"?y.vue[o.item.name]:null);return(e,t)=>{const V=E,w=j,f=F,B=L,I=q("VDropdown");return s(),i(I,{disabled:!o.metadata},{popper:m(()=>[a("div",X,[a("div",Z,[e.item.meta?.description?(s(),i(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:e.item.meta.description},null,8,["markdown"])):p("",!0),a("div",A,[b(f,{icon:"carbon-copy",onClick:t[0]||(t[0]=d=>k(C)(D.value,"imports-name"))},{default:m(()=>t[2]||(t[2]=[c(" Copy ")])),_:1}),e.filepath?(s(),i(f,{key:0,icon:"carbon-code",onClick:t[1]||(t[1]=d=>e.filepath&&k(h)(e.filepath))},{default:m(()=>t[3]||(t[3]=[c(" Source ")])),_:1})):p("",!0),_.value?(s(),i(f,{key:1,icon:"carbon-catalog",to:_.value,target:"_blank"},{default:m(()=>t[4]||(t[4]=[c(" Docs ")])),_:1},8,["to"])):p("",!0)])]),a("div",G,[n.value?(s(),l(x,{key:0},[a("div",J,[t[5]||(t[5]=a("span",{op50:""},"It has been referenced ",-1)),a("strong",K,v(n.value),1),t[6]||(t[6]=a("span",{op50:""}," times by:",-1))]),a("div",Q,[(s(!0),l(x,null,z(N.value,d=>(s(),i(B,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),l("div",R," Not in use via auto import. "))])])]),default:m(()=>[a("button",{"hover:text-primary":"",class:H([e.metadata&&!n.value?"op30 hover:op100":"",e.classes])},[a("code",M,[c(v(u.value)+" ",1),n.value&&e.counter?(s(),l("sup",O,"x"+v(n.value),1)):p("",!0)]),e.isDirective?(s(),l("sup",P,[a("abbr",T,[b(V,{icon:"tabler:hexagon-letter-d"})])])):p("",!0)],2)]),_:1},8,["disabled"])}}});export{ne as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as M,Z as N,$ as V,a0 as j,p as B,a1 as E,a2 as k,a3 as I,h as P,r as W,V as D,a4 as L}from"./
|
|
1
|
+
import{R as M,Z as N,$ as V,a0 as j,p as B,a1 as E,a2 as k,a3 as I,h as P,r as W,V as D,a4 as L}from"./lbm7brd5.js";import{p as $,f as C,q as x,r as R,z as q,n as O,w as b,I as S,W as U,U as n,P as u,a2 as y,u as A,aa as F,X as r,a9 as w,a8 as T,a3 as X}from"./vendor/json-editor-vue-kcahofzr.js";import{_ as z}from"./launch-page.vue-fip61omh.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-ja073547.js";import"./nmarkdown.vue-jpbjhala.js";import"./client-kpmlv67d.js";const h=new Map,G=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=M(),p=C(),s=x(()=>m.tab.name),e=C(),t=R(N(p));q(()=>{const o=m.tab.view,l=o.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(s.value)&&l)e.value=h.get(s.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",_.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&h.set(s.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),i(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),O(d)}setTimeout(i,100)}),b(d),b(i),b(v),S(()=>{e.value&&(e.value.style.visibility="hidden")});function i(){if(!(!e.value||!e.value.contentWindow))try{const o=e.value.contentWindow.document.querySelector("html");o?.classList.toggle("dark",c.value==="dark"),o?.classList.toggle("light",c.value==="dark"),new MutationObserver(()=>{c.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(o,{attributes:!0,attributeFilter:["class"]})}catch{}}const a=V();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function d(){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(o,l)=>(n(),U("div",{ref_key:"anchor",ref:p,"h-full":"","w-full":""},null,512))}}),Z={flex:"~ col gap2",mxa:"","items-center":""},H={"text-xl":""},J={"text-rose":""},ne=$({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=j(),p=B(),s=x(()=>m.name??c.params.name),e=E(),t=x(()=>e.value.find(i=>i.name===s.value));return q(()=>{t.value?t.value.requireAuth&&!k.value&&I():setTimeout(()=>{t.value||p.push("/modules/overview")},2e3)}),(i,a)=>{const v=P,d=L,o=G,l=z,_=D;return t.value?t.value.requireAuth&&!A(k)?(n(),u(d,{key:1})):t.value.view.type==="iframe"?(n(),u(o,{key:2,tab:t.value},null,8,["tab"])):t.value.view.type==="vnode"?(n(),u(F(t.value.view.vnode),{key:3})):t.value.view.type==="launch"?(n(),u(l,{key:4,name:`custom-${t.value.name}`,icon:t.value.view.icon||t.value.icon,title:t.value.view.title||t.value.title,description:t.value.view.description,actions:t.value.view.actions,onAction:a[0]||(a[0]=g=>A(W).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[X(_,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+T(t.value.view),1)]),_:1})]),_:1})):(n(),u(v,{key:0},{default:y(()=>[r("div",Z,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",H,[a[1]||(a[1]=w(" Tab ")),r("code",J,T(s.value),1),a[2]||(a[2]=w(" not found "))]),a[4]||(a[4]=r("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1)),a[5]||(a[5]=r("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]),_:1}))}}});export{ne as default};
|
package/dist/client/_nuxt/{data-schema-button.vue-g5f288wb.js → data-schema-button.vue-cvp49yv0.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as r,_ as s}from"./
|
|
1
|
+
import{u as r,_ as s}from"./lbm7brd5.js";import{p as c,ag as i,ab as p,U as m,P as _}from"./vendor/json-editor-vue-kcahofzr.js";const D=c({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(u){const t=r();return(o,e)=>{const n=s,a=i("tooltip");return p((m(),_(n,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=l=>t.value=o.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{D as _};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as W}from"./nselect.vue-
|
|
1
|
+
import{_ as W}from"./nselect.vue-mcse0obw.js";import{u as A,c as E,a as F,_ as q}from"./lbm7brd5.js";import{_ as z}from"./nswitch.vue-iu20lc9i.js";import{_ as J}from"./ndropdown.vue-h1rzwvol.js";import{_ as O}from"./ncode-block.vue-dt6krs6h.js";import{_ as P}from"./ndrawer.vue-den3x6bs.js";import{A as h,d as k}from"./vendor/quicktype-core-lnbp3n5r.js";import{p as X,f as x,q as N,j as C,U as n,P as c,a3 as m,a2 as u,X as i,W as d,F as D,ae as j,u as f,a8 as b,Z as _,ad as Z}from"./vendor/json-editor-vue-kcahofzr.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-ja073547.js";import"./client-kpmlv67d.js";const G={border:"b base",flex:"~ items-center gap-2",sticky:"","left-0":"","right-0":"","top-0":"","z-1":"",p3:"","bg-base":""},H={key:0,flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--2":"","h-4":"","w-4":"","rounded-full":"","bg-lime:30":"","text-8px":""},K={flex:"~ col","w-100":"","of-auto":"",py2:""},M={"text-xs":"",capitalize:"",op75:""},ie=X({__name:"DataSchemaDrawer",setup(Q){const s=A(),V=x(0),l=x("TypeScript"),v=N(()=>h.all.find(e=>e.displayName===l.value)),o=x(v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")),y=E(async()=>{if(V.value,!s.value)return"";const e=k.jsonInputForTargetLanguage(l.value);await e.addSource({name:s.value.name??"Data",samples:[s.value.input]});const t=new k.InputData;return t.addInput(e),(await k.quicktype({inputData:t,lang:l.value,rendererOptions:o.value?.reduce((r,p)=>(r[p.name]=p.defaultValue,r),{})})).lines.join(`
|
|
2
2
|
`)}),$=N(()=>{const e=l.value.toLocaleLowerCase();return e.startsWith("javascript")?"javascript":e.startsWith("json")?"json":e.startsWith("typescript")?"typescript":e});C(o,()=>{V.value++},{deep:!0}),C(l,()=>{o.value=v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")});const S=F();function B(){S(y.value||"")}return(e,t)=>{const w=W,r=q,p=z,L=J,I=O,T=P;return v.value?(n(),c(Z,{key:0,to:"body"},[m(T,{"model-value":!!f(s)?.input,"auto-close":"","max-w-screen":"","w-2xl":"","n-code-block":"",onClose:t[2]||(t[2]=a=>s.value=null)},{default:u(()=>[i("div",G,[t[3]||(t[3]=i("p",{"mr-2":""}," Schema ",-1)),m(w,{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value=a),n:"xs primary"},{default:u(()=>[(n(!0),d(D,null,j(f(h.all),a=>(n(),d("option",{key:a.displayName},b(a.displayName),1))),128))]),_:1},8,["modelValue"]),o.value?.length?(n(),c(L,{key:0,n:"sm lime"},{trigger:u(({click:a})=>[m(r,{icon:"carbon-settings","h-full":"",onClick:g=>a()},null,8,["onClick"]),o.value?(n(),d("span",H,b(o.value.length),1)):_("",!0)]),default:u(()=>[i("div",K,[(n(!0),d(D,null,j(o.value,(a,g)=>(n(),c(p,{key:a.name,modelValue:o.value[g].defaultValue,"onUpdate:modelValue":U=>o.value[g].defaultValue=U,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:u(()=>[i("span",M,b(a.description),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):_("",!0),t[4]||(t[4]=i("div",{"flex-auto":""},null,-1)),m(r,{icon:"carbon-copy","mr-6":"","h-full":"",onClick:t[1]||(t[1]=a=>B())})]),f(y)?(n(),c(I,{key:0,lang:$.value,code:f(y)},null,8,["lang","code"])):_("",!0)]),_:1},8,["model-value"])])):_("",!0)}}});export{ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o}from"./
|
|
1
|
+
import{b as o}from"./lbm7brd5.js";import{U as t,W as s,X as r,Y as a}from"./vendor/json-editor-vue-kcahofzr.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-ja073547.js";const n={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,f){return t(),s("div",c,[r("div",l,[a(e.$slots,"default")])])}const u=o(n,[["render",d]]);export{u as default};
|