@nuxt/devtools 4.0.0-alpha.8 → 4.0.0-alpha.9
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 +2 -2
- package/dist/chunks/analyze-build.mjs +1 -1
- package/dist/chunks/code-server.mjs +75 -0
- package/dist/chunks/module-main.mjs +29 -8
- package/dist/chunks/vite-inspect.mjs +1 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-e7n6afwb.js +1 -0
- package/dist/client/_nuxt/analyze-build-hl5kov9g.js +1 -0
- package/dist/client/_nuxt/assets-mhs93a2v.js +6 -0
- package/dist/client/_nuxt/{auth-required-panel-gdnspumn.js → auth-required-panel-fp6njgq4.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/f408df35-fbed-4f67-b31a-84e2dcf7d5f4.json +1 -0
- package/dist/client/_nuxt/{client-ngo84kjy.js → client-e4xweo15.js} +1 -1
- package/dist/client/_nuxt/client-ox3ztino.js +2 -0
- package/dist/client/_nuxt/code-diff-g3koa3wx.js +8 -0
- package/dist/client/_nuxt/{code-snippets-hxwvpad4.js → code-snippets-jiqnd4op.js} +1 -1
- package/dist/client/_nuxt/components-jjqi3963.js +1 -0
- package/dist/client/_nuxt/{composable-item-kchrxdzu.js → composable-item-nslyhu40.js} +1 -1
- package/dist/client/_nuxt/{composables-in7qtp0e.js → composables-jsh6xr6n.js} +1 -1
- package/dist/client/_nuxt/custom-_name_-nby2wkqs.js +1 -0
- package/dist/client/_nuxt/{data-schema-button-jy2w2afg.js → data-schema-button-n858k5no.js} +1 -1
- package/dist/client/_nuxt/data-schema-drawer-nd5v2dc8.js +2 -0
- package/dist/client/_nuxt/{debug-inf9k7rz.js → debug-iqz97avh.js} +1 -1
- package/dist/client/_nuxt/{default-dgqm22gk.js → default-kms351ji.js} +1 -1
- package/dist/client/_nuxt/{duration-display-m84jv0cg.js → duration-display-kvy6t3q5.js} +1 -1
- package/dist/client/_nuxt/entry.css-hsdbnv92.css +1 -0
- package/dist/client/_nuxt/{error-404-eoz73pl9.js → error-404-m7lxn6po.js} +1 -1
- package/dist/client/_nuxt/error-404.css-kodsrozu.css +1 -0
- package/dist/client/_nuxt/{error-500-h0agvsjp.js → error-500-fa1284ej.js} +1 -1
- package/dist/client/_nuxt/error-500.css-mq6ubyvk.css +1 -0
- package/dist/client/_nuxt/{error-h5jfp4d9.js → error-dnpxky1s.js} +1 -1
- package/dist/client/_nuxt/{filepath-item-b7ye3und.js → filepath-item-elq07qqm.js} +1 -1
- package/dist/client/_nuxt/full-muovlha1.js +1 -0
- package/dist/client/_nuxt/{help-fab-l6k9jkcj.js → help-fab-mk77l527.js} +1 -1
- package/dist/client/_nuxt/hooks-fuegc0zi.js +1 -0
- package/dist/client/_nuxt/{imports-ib3kw7ns.js → imports-dxp64giy.js} +1 -1
- package/dist/client/_nuxt/launch-page-ldhzltru.js +1 -0
- package/dist/client/_nuxt/mbruyqke.js +4 -0
- package/dist/client/_nuxt/modules-ip395o4i.js +1 -0
- package/dist/client/_nuxt/nbadge-odjar6lb.js +1 -0
- package/dist/client/_nuxt/ncheckbox-ecu968cz.js +1 -0
- package/dist/client/_nuxt/{ncode-block-jv3jk7c5.js → ncode-block-ivymjiov.js} +1 -1
- package/dist/client/_nuxt/ndrawer-fbwc78mp.js +1 -0
- package/dist/client/_nuxt/ndropdown-j9whus4q.js +1 -0
- package/dist/client/_nuxt/{nicon-title-66kg2f9l.js → nicon-title-lthyup78.js} +1 -1
- package/dist/client/_nuxt/{nlink-gej31v24.js → nlink-iv6gnrhx.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown-nskcr8pg.js → nmarkdown-mbwbivxu.js} +1 -1
- package/dist/client/_nuxt/{nnavbar-bvq6rk5u.js → nnavbar-ivws4py6.js} +1 -1
- package/dist/client/_nuxt/none-f6zkixpn.js +1 -0
- package/dist/client/_nuxt/npanel-grids-jzjbt8z8.js +1 -0
- package/dist/client/_nuxt/nsection-block-xwt9b4fq.js +1 -0
- package/dist/client/_nuxt/nselect-efk0r1bm.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-o18hum8e.js +1 -0
- package/dist/client/_nuxt/nsplit-pane-nl6gqw3a.js +1 -0
- package/dist/client/_nuxt/nsplit-pane.css-o64elxn9.css +1 -0
- package/dist/client/_nuxt/{ntip-kpuxzuo5.js → ntip-e476flgx.js} +1 -1
- package/dist/client/_nuxt/{nuxt-hqfu72u1.js → nuxt-ck1m833g.js} +1 -1
- package/dist/client/_nuxt/open-graph-fevqc4qw.js +3 -0
- package/dist/client/_nuxt/overview-mov3ns5a.js +1 -0
- package/dist/client/_nuxt/pages-hl3ggxo7.js +1 -0
- package/dist/client/_nuxt/payload-i1xm1c2a.js +1 -0
- package/dist/client/_nuxt/{pinia-dl2li4zl.js → pinia-j5ib0mm9.js} +1 -1
- package/dist/client/_nuxt/plugins-dmozf1ud.js +1 -0
- package/dist/client/_nuxt/{ready-if1s6ugr.js → ready-mci0xx49.js} +1 -1
- package/dist/client/_nuxt/render-tree-ht6m4wvr.js +1 -0
- package/dist/client/_nuxt/runtime-configs-lwkz00jf.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-oyv7niet.js +1 -0
- package/dist/client/_nuxt/server-routes-e2av60g4.js +7 -0
- package/dist/client/_nuxt/server-tasks-jdi82ndh.js +1 -0
- package/dist/client/_nuxt/settings-nqvn74vj.js +1 -0
- package/dist/client/_nuxt/splitpanes.esm-e6jbjw2k.js +1 -0
- package/dist/client/_nuxt/{stacktrace-list-epxhdumx.js → stacktrace-list-bw2f6i1o.js} +1 -1
- package/dist/client/_nuxt/state-components-frowf3zr.js +1 -0
- package/dist/client/_nuxt/state-editor-dnnm0b1r.js +1 -0
- package/dist/client/_nuxt/state-modules-b9ourhpx.js +1 -0
- package/dist/client/_nuxt/storage-dtuxyb3g.js +1 -0
- package/dist/client/_nuxt/storage-options-o7q1mchx.js +1 -0
- package/dist/client/_nuxt/timeline-dtcyzchh.js +31 -0
- package/dist/client/_nuxt/{unocss-runtime-dh4insrr.js → unocss-runtime-l66gafm5.js} +1 -1
- package/dist/client/_nuxt/utils-d9q1xry0.js +1 -0
- package/dist/client/_nuxt/vendor/{json-editor-vue-c7zwcfg4.js → json-editor-vue-l1ffxhko.js} +2 -2
- package/dist/client/_nuxt/vendor/{unocss-maavuy8p.js → unocss-b56v4bpd.js} +1 -1
- package/dist/client/_nuxt/virtual-files-odf1l0xb.js +1 -0
- package/dist/client/_nuxt/vue-devtools-bho31pmk.js +4 -0
- package/dist/client/_nuxt/{vue-router-mro49nyg.js → vue-router-d5qsebus.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/view/client.js +6 -4
- package/dist/shared/{devtools.B9TxdMuu.mjs → devtools.CCWq4fFE.mjs} +3 -9
- package/package.json +9 -12
- package/dist/chunks/vscode.mjs +0 -169
- package/dist/client/_nuxt/__blank-mr7fdmv7.js +0 -1
- package/dist/client/_nuxt/analyze-build-nemej5kd.js +0 -1
- package/dist/client/_nuxt/assets-cl372mus.js +0 -6
- package/dist/client/_nuxt/builds/meta/9ec1ff21-8126-4e86-bc50-039a1d3867c9.json +0 -1
- package/dist/client/_nuxt/code-diff-lkyoam09.js +0 -8
- package/dist/client/_nuxt/components-f9ckplr6.js +0 -1
- package/dist/client/_nuxt/custom-_name_-i8pdh231.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-liuhj385.js +0 -2
- package/dist/client/_nuxt/entry.css-ivisc4pv.css +0 -1
- package/dist/client/_nuxt/error-404.css-i7pin5fo.css +0 -1
- package/dist/client/_nuxt/error-500.css-4ikva5xr.css +0 -1
- package/dist/client/_nuxt/full-bc145h1r.js +0 -1
- package/dist/client/_nuxt/hooks-ce5n3mpx.js +0 -1
- package/dist/client/_nuxt/iefeupks.js +0 -4
- package/dist/client/_nuxt/launch-page-f3nbtoc4.js +0 -1
- package/dist/client/_nuxt/modules-gf4tkhai.js +0 -1
- package/dist/client/_nuxt/nbadge-254fd0s4.js +0 -1
- package/dist/client/_nuxt/ncheckbox-jr3c6e4e.js +0 -1
- package/dist/client/_nuxt/ndrawer-myfvks89.js +0 -1
- package/dist/client/_nuxt/ndropdown-jnrvla1s.js +0 -1
- package/dist/client/_nuxt/none-fcxnfo1z.js +0 -1
- package/dist/client/_nuxt/nsection-block-illvvuef.js +0 -1
- package/dist/client/_nuxt/nselect-hlo7a40m.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-f47fcdsg.js +0 -1
- package/dist/client/_nuxt/nswitch-iey7gi9t.js +0 -1
- package/dist/client/_nuxt/open-graph-m35euip2.js +0 -3
- package/dist/client/_nuxt/overview-egkv3tit.js +0 -1
- package/dist/client/_nuxt/pages-ddqyzugj.js +0 -1
- package/dist/client/_nuxt/pages-n0i7aw4m.js +0 -1
- package/dist/client/_nuxt/payload-d6h8l8l2.js +0 -1
- package/dist/client/_nuxt/plugins-nhvbpqrg.js +0 -1
- package/dist/client/_nuxt/render-tree-h0xpx3p4.js +0 -1
- package/dist/client/_nuxt/rpc-jaaujnev.js +0 -1
- package/dist/client/_nuxt/runtime-configs-o91gwu2q.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-ej6h9rh8.js +0 -1
- package/dist/client/_nuxt/server-routes-ocltmxje.js +0 -7
- package/dist/client/_nuxt/server-tasks-hhkstkby.js +0 -1
- package/dist/client/_nuxt/settings-i2ld0c8q.js +0 -1
- package/dist/client/_nuxt/state-components-eipbhsbn.js +0 -1
- package/dist/client/_nuxt/state-editor-ogobz58w.js +0 -1
- package/dist/client/_nuxt/state-modules-egymhwqw.js +0 -1
- package/dist/client/_nuxt/storage-cciny388.js +0 -1
- package/dist/client/_nuxt/storage-options-g42elkwy.js +0 -1
- package/dist/client/_nuxt/timeline-oese6i7t.js +0 -31
- package/dist/client/_nuxt/utils-h3uzf8s7.js +0 -2
- package/dist/client/_nuxt/virtual-files-pd2s0ff2.js +0 -1
- package/dist/client/_nuxt/vue-devtools-bxffe3ae.js +0 -4
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,C as t,P as n,Q as r,S as i,St as a,T as o,Tt as s,V as c,W as l,X as u,Y as d,Z as f,Zt as p,_ as m,_t as h,dt as g,en as _,g as v,h as y,jt as b,m as x,p as S,s as C,st as ee,ut as w}from"./vendor/json-editor-vue-c7zwcfg4.js";import{C as T,E,F as te,L as D,c as O,i as k,n as A,y as ne}from"./utils-h3uzf8s7.js";import{z as re}from"./rpc-jaaujnev.js";import{t as j}from"./storage-options-g42elkwy.js";import{t as M}from"./_plugin-vue_export-helper-d9irwgla.js";import{A as N,O as P,d as F,n as I,v as L}from"#entry";import{t as ie}from"./ndrawer-myfvks89.js";import{t as R}from"./composables-ioamscf4.js";import{t as z}from"./ncheckbox-jr3c6e4e.js";import{t as B}from"./filepath-item-b7ye3und.js";import{t as V}from"./help-fab-l6k9jkcj.js";import{t as H}from"./nnavbar-bvq6rk5u.js";import{t as U}from"./nicon-title-66kg2f9l.js";import{t as W}from"./nsection-block-illvvuef.js";import{n as G}from"./dist-das2ggjj.js";import{t as K}from"./nbadge-254fd0s4.js";import{n as q,t as J}from"./vendor/vis-izx2wksk.js";import{t as Y}from"./nselect-tabs-f47fcdsg.js";import{n as X,t as ae}from"./state-components-eipbhsbn.js";var oe={},se={class:`markdown-body`};function ce(e,t){return l(),m(`div`,se,[...t[0]||=[x(`template`,null,[x(`div`,{class:`markdown-body`},[x(`h1`,null,`Components`),x(`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.`),x(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),x(`p`,null,[x(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var le=M(oe,[[`render`,ce]]),ue={"text-sm":``,"font-mono":``},Z=Object.assign(o({__name:`ComponentName`,props:{component:{}},setup(e){let t=e,n=S(()=>t.component.pascalName||G(t.component.name||t.component.__name||t.component.kebabName||``));return(e,t)=>(l(),m(`code`,ue,[t[0]||=x(`span`,{mr1:``,op20:``},`<`,-1),i(_(n.value),1),t[1]||=x(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),{__name:`ComponentName`}),Q={flex:`~ col gap1`,"items-start":``,"of-hidden":``},de={flex:`~ gap2 items-center`,px3:``},fe={px3:``,pb2:``},pe={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},me={"text-sm":``},he={"text-primary":``},ge={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},_e={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ve={"text-sm":``},ye={"text-primary":``},be={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},$=Object.assign(o({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=S(()=>n.component.pascalName||G(n.component.name||n.component.__name||n.component.kebabName||``)),a=S(()=>n.component.filePath||n.component.file||n.component.__file||``),o=I();return(n,s)=>{let c=Z,f=P,p=K,h=B;return l(),m(`div`,Q,[x(`div`,de,[t(c,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(l(),y(f,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:w(()=>[...s[1]||=[i(` Docs `,-1)]]),_:1},8,[`to`])):v(``,!0),t(f,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:s[0]||=e=>b(o)(`<${r.value}></${r.value}>`,`component-name`)},{default:w(()=>[...s[2]||=[i(` Copy `,-1)]]),_:1}),e.component.global?(l(),y(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):v(``,!0)]),x(`div`,fe,[a.value?(l(),y(h,{key:0,filepath:a.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):v(``,!0)]),e.dependents?(l(),m(`div`,pe,[x(`div`,me,[x(`strong`,he,_(e.dependents.length),1),s[3]||=x(`span`,{op50:``},` references`,-1)]),e.dependents.length?(l(),m(`div`,ge,[(l(!0),m(C,null,d(e.dependents,e=>(l(),y(h,{key:e,filepath:e},null,8,[`filepath`]))),128))])):v(``,!0)])):v(``,!0),e.dependencies?(l(),m(`div`,_e,[x(`div`,ve,[x(`strong`,ye,_(e.dependencies.length),1),s[4]||=x(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(l(),m(`div`,be,[(l(!0),m(C,null,d(e.dependencies,e=>(l(),y(h,{key:e,filepath:e},null,8,[`filepath`]))),128))])):v(``,!0)])):v(``,!0),u(n.$slots,`default`)])}}}),{__name:`ComponentDetails`}),xe={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},Se={relative:``,"h-full":``,"w-full":``},Ce={key:0,py4:``,pt3:``,flex:`~ col`},we={border:`t base`,p4:``},Te=Object.assign(o({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(e){let n=e,r=a(),o=a(),d=te(),f=s(),p=E(),g=T(),_=ne(),{componentsGraphShowNodeModules:y,componentsGraphShowGlobalComponents:D,componentsGraphShowPages:O,componentsGraphShowLayouts:k,componentsGraphShowWorkspace:A}=j(`ui`),M=a(),N=a(``),F=re(N,300),I=S(()=>{let e=n.relationships||[];if(M.value){let t=new Set;function n(r){!r||t.has(r)||(t.add(r),r.deps.forEach(t=>{n(e.find(e=>e.id===t))}))}return n(M.value),[...t]}return e}),R=S(()=>{let e=I.value.map(e=>{let t=n.components.find(t=>t.filePath===e.id),r=p.value?.find(t=>t.file===e.id),i=_.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:i?`layout`:r?`page`:`unknown`;if(!y.value&&a===`lib`||!O.value&&a===`page`||!k.value&&a===`layout`||!A.value&&a===`user`&&g.value&&!e.id.startsWith(g.value.rootDir)||!D.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=F.value&&!e.id.toLowerCase().includes(F.value.toLowerCase());return{id:e.id,label:Y(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:d.value===`dark`?`white`:`black`},color:s?`#8885`:M.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:r,layout:i,relationship:e}}}).filter(e=>!!e),t=I.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new q(e),edges:t}}),B=S(()=>f.value?.component?(n.relationships?.find(e=>e.id===f.value?.component?.filePath)?.deps)?.map(e=>n.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),V=S(()=>f.value?.component?(n.relationships?.filter(e=>e.deps.includes(f.value.component.filePath)))?.map(e=>n.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);c(()=>{let e=new J(r.value,R.value,{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.on(`click`,e=>{let t=e.nodes?.[0];f.value=R.value.nodes.get(t).extra}),ee(R,()=>{e.setData(R.value)})});function U(){f.value=void 0}let W=/.*\/components\//,G=/\.vue$/,K=/\/index$/;function Y(e){let t=n.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(K,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){M.value=f.value?.relationship,f.value=void 0}return(e,n)=>{let a=z,s=H,c=L,d=$,p=P,g=ie;return l(),m(C,null,[t(s,{ref_key:`navbar`,ref:o,search:N.value,"onUpdate:search":n[6]||=e=>N.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:w(()=>[x(`div`,xe,[t(a,{modelValue:b(O),"onUpdate:modelValue":n[0]||=e=>h(O)?O.value=e:null,n:`primary sm`},{default:w(()=>[...n[8]||=[x(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),t(a,{modelValue:b(k),"onUpdate:modelValue":n[1]||=e=>h(k)?k.value=e:null,n:`primary sm`},{default:w(()=>[...n[9]||=[x(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),t(a,{modelValue:b(A),"onUpdate:modelValue":n[2]||=e=>h(A)?A.value=e:null,n:`primary sm`},{default:w(()=>[...n[10]||=[x(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),t(a,{modelValue:b(y),"onUpdate:modelValue":n[3]||=e=>h(y)?y.value=e:null,n:`primary sm`},{default:w(()=>[...n[11]||=[x(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),t(a,{modelValue:b(D),"onUpdate:modelValue":n[4]||=e=>h(D)?D.value=e:null,n:`primary sm`},{default:w(()=>[...n[12]||=[x(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),M.value?(l(),m(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:n[5]||=e=>M.value=void 0},[...n[13]||=[i(` Clear filter `,-1),x(`div`,{"i-carbon-close":``},null,-1)]])):v(``,!0),n[14]||=x(`div`,{"flex-auto":``},null,-1),u(e.$slots,`default`)]),_:3},8,[`search`]),x(`div`,Se,[x(`div`,{ref_key:`container`,ref:r,"h-full":``,"w-full":``},null,512),t(c,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:w(()=>[...n[15]||=[x(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),x(`div`,{op50:``},` Component `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),x(`div`,{op50:``},` Global Component `),x(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),x(`div`,{op50:``},` Page `),x(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[x(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),x(`div`,{op50:``},` Layout `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),x(`div`,{op50:``},` Library Component `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),x(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),t(g,{"model-value":!!(f.value&&f.value.component),top:o.value,border:`t l base`,"w-80":``,onClose:U},{default:w(()=>[f.value&&f.value.component?(l(),m(`div`,Ce,[t(d,{component:f.value.component,dependencies:B.value,dependents:V.value},null,8,[`component`,`dependencies`,`dependents`]),x(`div`,we,[t(p,{n:`primary solid`,onClick:n[7]||=e=>X()},{default:w(()=>[...n[16]||=[i(` Filter to this component `,-1)]]),_:1})])])):v(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),{__name:`ComponentsGraph`}),Ee={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},De={key:0,"ml--1":``,"text-primary":``},Oe=Object.assign(o({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=S(()=>n.component.filePath||n.component.file||n.component.__file||``);return(n,i)=>{let a=Z,o=$,s=f(`VDropdown`),c=K,d=B;return l(),m(`div`,Ee,[t(s,null,{popper:w(()=>[t(o,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:w(()=>[x(`button`,{"hover:text-primary":``,class:p(e.dependents&&e.dependents.length===0?`op50`:``)},[t(a,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(l(),m(`sup`,De,` x`+_(e.dependents?.length),1)):v(``,!0),e.component.global?(l(),y(c,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):v(``,!0),u(n.$slots,`default`),r.value?(l(),y(d,{key:2,filepath:r.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):v(``,!0)])}}}),{__name:`ComponentItem`}),ke={flex:`~ gap-2 items-center`},Ae={pl4:``},je=Object.assign(o({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let r=e,i=a(``),o=a(`all`),s=S(()=>{let e=r.components.map(e=>A(e,r.relationships));return o.value===`using`?e.filter(e=>e.dependents?.length):o.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),c={ClientOnly:`https://nuxt.com/docs/api/components/client-only`,DevOnly:`https://nuxt.com/docs/api/components/dev-only`,NuxtClientFallback:`https://nuxt.com/docs/api/components/nuxt-client-fallback`,NuxtPicture:`https://nuxt.com/docs/api/components/nuxt-picture`,NuxtRouteAnnouncer:`https://nuxt.com/docs/api/components/nuxt-route-announcer`,NuxtTime:`https://nuxt.com/docs/api/components/nuxt-time`,NuxtPage:`https://nuxt.com/docs/api/components/nuxt-page`,NuxtLayout:`https://nuxt.com/docs/api/components/nuxt-layout`,NuxtLink:`https://nuxt.com/docs/api/components/nuxt-link`,NuxtLoadingIndicator:`https://nuxt.com/docs/api/components/nuxt-loading-indicator`,NuxtErrorBoundary:`https://nuxt.com/docs/api/components/nuxt-error-boundary`,NuxtWelcome:`https://nuxt.com/docs/api/components/nuxt-welcome`,NuxtIsland:`https://nuxt.com/docs/api/components/nuxt-island`,NuxtImg:`https://nuxt.com/docs/api/components/nuxt-img`},f=S(()=>new F(s.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),p=S(()=>{let e=[],t=new Map,n=[],r=[],a={user:0,lib:0,builtin:0,runtime:0};return(i.value?f.value.search(i.value).map(e=>e.item):s.value).forEach(i=>{let o=i.component;if(o.filePath&&O(o.filePath)){let e=k(o.filePath);if(!e)return;e===`nuxt`?(o.meta??={},o.meta.docs??=c?.[o.pascalName],n.push(i),a.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(i),a.lib++)}else o.global&&!o.filePath?(r.push(i),a.runtime++):(e.push(i),a.user++)}),{count:a,user:e,builtin:n,lib:t,runtime:r}});return(e,r)=>{let a=N,s=Y,c=H,f=Oe,h=W,g=U;return l(),m(C,null,[t(c,{search:i.value,"onUpdate:search":r[1]||=e=>i.value=e,pb3:``},{actions:w(()=>[u(e.$slots,`default`)]),default:w(()=>[x(`div`,ke,[t(a,{icon:`carbon-filter`,op50:``}),t(s,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`])])]),_:3},8,[`search`]),p.value.user.length?(l(),y(h,{key:0,icon:`carbon-nominal`,text:`User components`,open:p.value.user.length<=b(50),description:`Total components: ${p.value.count.user}`},{default:w(()=>[(l(!0),m(C,null,d(p.value.user,e=>(l(),y(f,n({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):v(``,!0),p.value.runtime.length?(l(),y(h,{key:1,icon:`carbon-load-balancer-global`,open:p.value.runtime.length<=b(50),text:`Runtime components`,description:`Total components: ${p.value.count.runtime}`},{default:w(()=>[(l(!0),m(C,null,d(p.value.runtime,e=>(l(),y(f,n({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):v(``,!0),p.value.builtin.length?(l(),y(h,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${p.value.count.builtin}`},{default:w(()=>[(l(!0),m(C,null,d(p.value.builtin,e=>(l(),y(f,n({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):v(``,!0),p.value.lib.size?(l(),y(h,{key:3,open:p.value.count.lib<=b(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:w(()=>[(l(!0),m(C,null,d(p.value.lib.entries(),([e,r])=>(l(),m(`div`,{key:e,"ml-2":``},[t(g,{text:`${e} (${r.length})`,py1:``,op50:``},null,8,[`text`]),x(`div`,Ae,[(l(!0),m(C,null,d(r,e=>(l(),y(f,n({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):v(``,!0)],64)}}}),{__name:`ComponentsList`}),Me={relative:``,"h-full":``,"of-auto":``},Ne={"flex-none":``,flex:`~ gap3`},Pe=o({__name:`components`,setup(n){R({icon:`i-carbon-assembly-cluster`,title:`Components`,order:2});let i=D(),a=ae(),o=X(),{componentsView:s}=j(`ui`);function c(){i.value?.inspector?.enable()}function u(){s.value=s.value===`list`?`graph`:`list`}return(n,d)=>{let f=P,p=le,h=V,_=r(`tooltip`);return l(),m(C,null,[x(`div`,Me,[(l(),y(e(b(s)===`list`?je:Te),{components:b(a),relationships:b(o)},{default:w(()=>[x(`div`,Ne,[g(t(f,{"text-lg":``,border:!1,icon:b(s)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:u},null,8,[`icon`]),[[_,`Toggle View`,void 0,{"bottom-end":!0}]]),b(i)?.inspector?.isAvailable?g((l(),y(f,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:c},null,512)),[[_,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):v(``,!0)])]),_:1},8,[`components`,`relationships`]))]),t(h,null,{default:w(()=>[t(p)]),_:1})],64)}}});export{Pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,C as t,F as n,H as r,S as i,St as a,T as o,V as s,W as c,_ as l,bt as u,ct as d,en as f,h as p,jt as m,m as h,p as g,ut as _}from"./vendor/json-editor-vue-c7zwcfg4.js";import{b as v,y}from"./ready-if1s6ugr.js";import{F as b,V as x}from"./utils-h3uzf8s7.js";import{S,a as C}from"./rpc-jaaujnev.js";import{T as w,_ as T,v as E,w as D,x as O}from"#entry";import{t as k}from"./composables-ioamscf4.js";import{t as A}from"./auth-required-panel-gdnspumn.js";import{t as j}from"./launch-page-f3nbtoc4.js";var M=new Map,N=Object.assign(o({__name:`IframeView`,props:{tab:{}},setup(e){let t=e,i=b(),o=a(),f=g(()=>t.tab.name),p=a(),m=u(S(o));s(()=>{let e=t.tab.view,r=e.persistent!==!1,i=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(M.get(f.value)&&r)p.value=M.get(f.value),p.value.style.visibility=`visible`;else{p.value=document.createElement(`iframe`),p.value.setAttribute(`allow`,i.join(`; `)),p.value.setAttribute(`aria-label`,`Nuxt Devtools`),r&&M.set(f.value,p.value),p.value.src=e.src;try{p.value.style.opacity=`0.01`,p.value.onload=()=>{v(),h(),p.value.style.opacity=`1`}}catch{p.value.style.opacity=`1`}document.body.appendChild(p.value),n(y)}setTimeout(h,100)}),d(y),d(h),d(v),r(()=>{p.value&&(p.value.style.visibility=`hidden`)});function h(){if(!(!p.value||!p.value.contentWindow))try{let e=p.value.contentWindow.document.querySelector(`html`);e?.classList.toggle(`dark`,i.value===`dark`),e?.classList.toggle(`light`,i.value===`dark`),new MutationObserver(()=>{i.value=p.value?.contentWindow?.document.querySelector(`html`)?.classList.contains(`dark`)?`dark`:`light`}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let _=x();function v(){if(!(!p.value||!p.value.contentWindow))try{p.value.contentWindow.__NUXT_DEVTOOLS__=_.value}catch{}}function y(){p.value&&Object.assign(p.value.style,{position:`fixed`,left:`${m.left}px`,top:`${m.top}px`,width:`${m.width}px`,height:`${m.height}px`,outline:`none`})}return(e,t)=>(c(),l(`div`,{ref_key:`anchor`,ref:o,"h-full":``,"w-full":``},null,512))}}),{__name:`IframeView`}),P={flex:`~ col gap2`,mxa:``,"items-center":``},F={"text-xl":``},I={"text-rose":``},L=o({__name:`custom-[name]`,props:{name:{}},setup(n){let r=n;k({layout:`full`});let a=y(),o=v(),l=g(()=>r.name??a.params.name),u=O(),d=g(()=>u.value.find(e=>e.name===l.value));return s(()=>{d.value?d.value.requireAuth&&!D.value&&w():setTimeout(()=>{d.value||o.push(`/modules/overview`)},2e3)}),(n,r)=>{let a=T,o=A,s=N,u=j,g=E;return d.value?d.value.requireAuth&&!m(D)?(c(),p(o,{key:1})):d.value.view.type===`iframe`?(c(),p(s,{key:2,tab:d.value},null,8,[`tab`])):d.value.view.type===`vnode`?(c(),p(e(d.value.view.vnode),{key:3})):d.value.view.type===`launch`?(c(),p(u,{key:4,name:`custom-${d.value.name}`,icon:d.value.view.icon||d.value.icon,title:d.value.view.title||d.value.title,description:d.value.view.description,actions:d.value.view.actions,onAction:r[0]||=e=>m(C).customTabAction(d.value.name,e)},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(c(),p(a,{key:5},{default:_(()=>[t(g,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:_(()=>[i(` Unknown tab type `+f(d.value.view),1)]),_:1})]),_:1})):(c(),p(a,{key:0},{default:_(()=>[h(`div`,P,[r[3]||=h(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),h(`p`,F,[r[1]||=i(` Tab `,-1),h(`code`,I,f(l.value),1),r[2]||=i(` not found `,-1)]),r[4]||=h(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),r[5]||=h(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{L as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as e,St as t,T as n,W as r,Y as i,_ as a,en as o,g as s,h as c,jt as l,m as u,p as d,s as f,st as p,u as m,ut as h}from"./vendor/json-editor-vue-c7zwcfg4.js";import{f as g}from"./rpc-jaaujnev.js";import{O as _,n as v,t as y}from"#entry";import{t as b}from"./nselect-hlo7a40m.js";import{t as x}from"./nswitch-iey7gi9t.js";import{t as S}from"./ndropdown-jnrvla1s.js";import{t as C}from"./ncode-block-jv3jk7c5.js";import{t as w}from"./ndrawer-myfvks89.js";import{n as T,t as E}from"./vendor/quicktype-core-otmjigaj.js";var D=E(),O=T(),k={border:`b base`,flex:`~ items-center gap-2`,sticky:``,"left-0":``,"right-0":``,"top-0":``,"z-1":``,"bg-base":``,p3:``},A={key:0,flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--2":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-lime:30":``,"text-8px":``},j={flex:`~ col`,"w-100":``,"of-auto":``,py2:``},M={"text-xs":``,capitalize:``,op75:``},N=Object.assign(n({__name:`DataSchemaDrawer`,setup(n){let T=y(),E=t(0),N=t(`TypeScript`),P=d(()=>O.all.find(e=>e.displayName===N.value)),F=t(P.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)),I=g(async()=>{if(E.value,!T.value)return``;let e=(0,D.jsonInputForTargetLanguage)(N.value);await e.addSource({name:T.value.name??`Data`,samples:[T.value.input]});let t=new D.InputData;return t.addInput(e),(await(0,D.quicktype)({inputData:t,lang:N.value,rendererOptions:F.value?.reduce((e,t)=>(e[t.name]=t.defaultValue,e),{})})).lines.join(`
|
|
2
|
-
`)}),L=d(()=>{let e=N.value.toLocaleLowerCase();return e.startsWith(`javascript`)?`javascript`:e.startsWith(`json`)?`json`:e.startsWith(`typescript`)?`typescript`:e});p(F,()=>{E.value++},{deep:!0}),p(N,()=>{F.value=P.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)});let R=v();function z(){R(I.value||``)}return(t,n)=>{let d=b,p=_,g=x,v=S,y=C,E=w;return P.value?(r(),c(m,{key:0,to:`body`},[e(E,{"model-value":!!l(T)?.input,"auto-close":``,"max-w-screen":``,"w-2xl":``,"n-code-block":``,onClose:n[2]||=e=>T.value=null},{default:h(()=>[u(`div`,k,[n[3]||=u(`p`,{"mr-2":``},` Schema `,-1),e(d,{modelValue:N.value,"onUpdate:modelValue":n[0]||=e=>N.value=e,n:`xs primary`},{default:h(()=>[(r(!0),a(f,null,i(l(O.all),e=>(r(),a(`option`,{key:e.displayName},o(e.displayName),1))),128))]),_:1},8,[`modelValue`]),F.value?.length?(r(),c(v,{key:0,n:`sm lime`},{trigger:h(({click:t})=>[e(p,{icon:`carbon-settings`,"h-full":``,onClick:e=>t()},null,8,[`onClick`]),F.value?(r(),a(`span`,A,o(F.value.length),1)):s(``,!0)]),default:h(()=>[u(`div`,j,[(r(!0),a(f,null,i(F.value,(e,t)=>(r(),c(g,{key:e.name,modelValue:F.value[t].defaultValue,"onUpdate:modelValue":e=>F.value[t].defaultValue=e,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:h(()=>[u(`span`,M,o(e.description),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):s(``,!0),n[4]||=u(`div`,{"flex-auto":``},null,-1),e(p,{icon:`carbon-copy`,"mr-6":``,"h-full":``,onClick:n[1]||=e=>z()})]),l(I)?(r(),c(y,{key:0,lang:L.value,code:l(I)},null,8,[`lang`,`code`])):s(``,!0)]),_:1},8,[`model-value`])])):s(``,!0)}}}),{__name:`DataSchemaDrawer`});export{N as default};
|