@nuxt/devtools-nightly 2.7.0-29358767.ab3d5ab → 3.0.0-beta.1-29360371.9a6c882

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/chunks/module-main.mjs +1 -1
  2. package/dist/chunks/vite-inspect.mjs +3 -3
  3. package/dist/client/200.html +1 -30
  4. package/dist/client/404.html +1 -30
  5. package/dist/client/_nuxt/__blank-dhzpxa9h.js +1 -0
  6. package/dist/client/_nuxt/analyze-build-i7dz4diz.js +1 -0
  7. package/dist/client/_nuxt/assets-e1eiimkb.js +16 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/201c45d2-00f5-4709-8202-2f048e9eeba9.json +1 -0
  10. package/dist/client/_nuxt/{client-grni31iy.js → client-miiq4qin.js} +1 -1
  11. package/dist/client/_nuxt/code-diff-ojhnq7lb.js +8 -0
  12. package/dist/client/_nuxt/code-snippets-io8vjgte.js +1 -0
  13. package/dist/client/_nuxt/components-b06rag2o.js +1 -0
  14. package/dist/client/_nuxt/composable-item-de2qbj5y.js +1 -0
  15. package/dist/client/_nuxt/custom-_name_-n5xcd89j.js +1 -0
  16. package/dist/client/_nuxt/data-schema-button-hqryewml.js +1 -0
  17. package/dist/client/_nuxt/data-schema-drawer-ohi5wclq.js +2 -0
  18. package/dist/client/_nuxt/debug-edst1aup.js +1 -0
  19. package/dist/client/_nuxt/{default-msxuy5cx.js → default-iey7bcl0.js} +1 -1
  20. package/dist/client/_nuxt/{duration-display.vue-hc7it00w.js → duration-display-cjpkh71u.js} +1 -1
  21. package/dist/client/_nuxt/entry.css-gme6a42i.css +1 -0
  22. package/dist/client/_nuxt/error-404-j1jq1c66.js +1 -0
  23. package/dist/client/_nuxt/error-404.css-b77wc31r.css +1 -0
  24. package/dist/client/_nuxt/error-500-g7c66z1a.js +1 -0
  25. package/dist/client/_nuxt/error-500.css-fqn6oeub.css +1 -0
  26. package/dist/client/_nuxt/{error-blzd68sr.js → error-n99dhadk.js} +7 -7
  27. package/dist/client/_nuxt/filepath-item-owlv864w.js +1 -0
  28. package/dist/client/_nuxt/full-boj6lq2g.js +1 -0
  29. package/dist/client/_nuxt/help-fab-chg6ox1v.js +1 -0
  30. package/dist/client/_nuxt/hjatffgj.js +19 -0
  31. package/dist/client/_nuxt/hooks-bpngdbhx.js +1 -0
  32. package/dist/client/_nuxt/imports-i8h7x738.js +1 -0
  33. package/dist/client/_nuxt/index-jmvfijcg.js +1 -0
  34. package/dist/client/_nuxt/launch-page-l87i7ewv.js +1 -0
  35. package/dist/client/_nuxt/modules-mo5j545f.js +1 -0
  36. package/dist/client/_nuxt/nbadge-d24jlq2b.js +1 -0
  37. package/dist/client/_nuxt/ncheckbox-eijyrwcq.js +1 -0
  38. package/dist/client/_nuxt/ncode-block-pcw3yh3u.js +2 -0
  39. package/dist/client/_nuxt/ndrawer-bkb7znk3.js +1 -0
  40. package/dist/client/_nuxt/ndropdown-jcnxkt1n.js +1 -0
  41. package/dist/client/_nuxt/nicon-title-he6hzgyb.js +1 -0
  42. package/dist/client/_nuxt/nlink-fgjzhevk.js +1 -0
  43. package/dist/client/_nuxt/nmarkdown-n6zsr15e.js +1 -0
  44. package/dist/client/_nuxt/nnavbar-b4ap0r8w.js +1 -0
  45. package/dist/client/_nuxt/none-mairbbrs.js +1 -0
  46. package/dist/client/_nuxt/nsection-block-je23gs2w.js +1 -0
  47. package/dist/client/_nuxt/nsection-block.css-h05mpq8x.css +1 -0
  48. package/dist/client/_nuxt/nselect-nvb1idpm.js +1 -0
  49. package/dist/client/_nuxt/nselect-tabs-fwdas30r.js +1 -0
  50. package/dist/client/_nuxt/nswitch-ls95gzk4.js +1 -0
  51. package/dist/client/_nuxt/open-graph-hjnpn4lk.js +3 -0
  52. package/dist/client/_nuxt/overview-k79e36il.js +1 -0
  53. package/dist/client/_nuxt/pages-ds02jwc5.js +1 -0
  54. package/dist/client/_nuxt/payload-jjh8ouvz.js +1 -0
  55. package/dist/client/_nuxt/pinia-be68olcl.js +1 -0
  56. package/dist/client/_nuxt/plugins-b9qyoo0c.js +1 -0
  57. package/dist/client/_nuxt/render-tree-m94vu53a.js +1 -0
  58. package/dist/client/_nuxt/runtime-configs-la4u86eo.js +1 -0
  59. package/dist/client/_nuxt/server-discovery-mjs49bz1.js +1 -0
  60. package/dist/client/_nuxt/server-route-inputs-e42a8bs5.js +1 -0
  61. package/dist/client/_nuxt/server-routes-emm36jf2.js +9 -0
  62. package/dist/client/_nuxt/server-tasks-gkj1p3fy.js +1 -0
  63. package/dist/client/_nuxt/settings-qjlpbgea.js +1 -0
  64. package/dist/client/_nuxt/stacktrace-list-gp6s7nwa.js +1 -0
  65. package/dist/client/_nuxt/{state-components-k1rzq61q.js → state-components-8k7sf46m.js} +1 -1
  66. package/dist/client/_nuxt/state-editor-kisl1jyp.js +1 -0
  67. package/dist/client/_nuxt/state-modules-lzveckmy.js +1 -0
  68. package/dist/client/_nuxt/storage-cgn8xpm9.js +1 -0
  69. package/dist/client/_nuxt/terminals-oykxibii.js +1 -0
  70. package/dist/client/_nuxt/timeline-kuccxakl.js +31 -0
  71. package/dist/client/_nuxt/{unocss-runtime-jezk5dwt.js → unocss-runtime-o01c8yfj.js} +1 -1
  72. package/dist/client/_nuxt/vendor/{json-editor-vue-linwxbdb.js → json-editor-vue-ikjc812x.js} +1 -1
  73. package/dist/client/_nuxt/vendor/json-editor-vue.css-f8ezrn37.css +1 -0
  74. package/dist/client/_nuxt/vendor/{quicktype-core-i7mnewyz.js → quicktype-core-e2ngitjr.js} +47 -47
  75. package/dist/client/_nuxt/vendor/{unocss-ia2v1z12.js → unocss-jpwnx6aq.js} +3 -3
  76. package/dist/client/_nuxt/vendor/unocss.css-c5u30s53.css +1 -0
  77. package/dist/client/_nuxt/vendor/xterm.css-g1ekxkss.css +1 -0
  78. package/dist/client/_nuxt/virtual-files-be3na8kr.js +1 -0
  79. package/dist/client/_nuxt/vue-devtools-bywsfgh0.js +2 -0
  80. package/dist/client/_nuxt/{vue-virtual-scroller.esm-ma3b9hj8.js → vue-virtual-scroller.esm-b0ym3ct8.js} +1 -1
  81. package/dist/client/index.html +1 -30
  82. package/dist/module.json +1 -1
  83. package/dist/runtime/shared/hooks.js +7 -5
  84. package/package.json +6 -6
  85. package/dist/client/_nuxt/__blank-o2e2nlba.js +0 -1
  86. package/dist/client/_nuxt/analyze-build-diwe2szv.js +0 -1
  87. package/dist/client/_nuxt/assets-pe7aspnr.js +0 -16
  88. package/dist/client/_nuxt/bt3kp296.js +0 -19
  89. package/dist/client/_nuxt/builds/meta/fd2d247c-d08c-4876-8eb1-788ff76b5130.json +0 -1
  90. package/dist/client/_nuxt/code-diff.vue-cickw09g.js +0 -8
  91. package/dist/client/_nuxt/code-snippets.vue-c07ituis.js +0 -1
  92. package/dist/client/_nuxt/components-f2l06ppp.js +0 -1
  93. package/dist/client/_nuxt/composable-item.vue-emog8rj6.js +0 -1
  94. package/dist/client/_nuxt/custom-_name_-h5c6lznk.js +0 -1
  95. package/dist/client/_nuxt/data-schema-button.vue-fo5mzhk5.js +0 -1
  96. package/dist/client/_nuxt/data-schema-drawer-n1vsqai5.js +0 -2
  97. package/dist/client/_nuxt/debug-ci1q2odt.js +0 -1
  98. package/dist/client/_nuxt/entry.css-kes83a7q.css +0 -1
  99. package/dist/client/_nuxt/error-404-j6tfgryj.js +0 -1
  100. package/dist/client/_nuxt/error-404.css-f2r0whq7.css +0 -1
  101. package/dist/client/_nuxt/error-500-ladx81qb.js +0 -1
  102. package/dist/client/_nuxt/error-500.css-m0gu28nc.css +0 -1
  103. package/dist/client/_nuxt/filepath-item.vue-neqjm2ct.js +0 -1
  104. package/dist/client/_nuxt/full-2v877h6v.js +0 -1
  105. package/dist/client/_nuxt/help-fab.vue-lyrsxykz.js +0 -1
  106. package/dist/client/_nuxt/hooks-g58ti7nj.js +0 -1
  107. package/dist/client/_nuxt/imports-nol9on59.js +0 -1
  108. package/dist/client/_nuxt/index-g2ijengi.js +0 -1
  109. package/dist/client/_nuxt/launch-page.vue-b5jz6435.js +0 -1
  110. package/dist/client/_nuxt/modules-hu1ysr54.js +0 -1
  111. package/dist/client/_nuxt/nbadge-h7alls7b.js +0 -1
  112. package/dist/client/_nuxt/ncheckbox.vue-bh13p6qy.js +0 -1
  113. package/dist/client/_nuxt/ncode-block.vue-fnl81rsp.js +0 -2
  114. package/dist/client/_nuxt/ndrawer.vue-hcqgn10u.js +0 -1
  115. package/dist/client/_nuxt/ndropdown.vue-cclblmxb.js +0 -1
  116. package/dist/client/_nuxt/nicon-title.vue-c7m4gyag.js +0 -1
  117. package/dist/client/_nuxt/nlink.vue-beik88gb.js +0 -1
  118. package/dist/client/_nuxt/nmarkdown.vue-benph8ez.js +0 -1
  119. package/dist/client/_nuxt/nnavbar.vue-nldppm6i.js +0 -1
  120. package/dist/client/_nuxt/none-lokkcqs4.js +0 -1
  121. package/dist/client/_nuxt/nsection-block-ld7dxama.js +0 -1
  122. package/dist/client/_nuxt/nsection-block.css-h1lgpwgm.css +0 -1
  123. package/dist/client/_nuxt/nselect-tabs.vue-g78ecijz.js +0 -1
  124. package/dist/client/_nuxt/nselect.vue-ikkkj1tq.js +0 -1
  125. package/dist/client/_nuxt/nswitch.vue-gb2x6p6j.js +0 -1
  126. package/dist/client/_nuxt/open-graph-faj5gzr7.js +0 -3
  127. package/dist/client/_nuxt/overview-jwmopyjo.js +0 -1
  128. package/dist/client/_nuxt/pages-fhkqnroq.js +0 -1
  129. package/dist/client/_nuxt/payload-j580eq4r.js +0 -1
  130. package/dist/client/_nuxt/pinia-cx9i5o0a.js +0 -1
  131. package/dist/client/_nuxt/plugins-gkuc4ygp.js +0 -1
  132. package/dist/client/_nuxt/render-tree-ow6bnqdi.js +0 -1
  133. package/dist/client/_nuxt/runtime-configs-jfsk38ap.js +0 -1
  134. package/dist/client/_nuxt/server-discovery-i686iedr.js +0 -1
  135. package/dist/client/_nuxt/server-route-inputs.vue-e944cjqy.js +0 -1
  136. package/dist/client/_nuxt/server-routes-mlww6eyz.js +0 -9
  137. package/dist/client/_nuxt/server-tasks-k0hu327m.js +0 -1
  138. package/dist/client/_nuxt/settings-bkwbcq7e.js +0 -1
  139. package/dist/client/_nuxt/stacktrace-list.vue-gtf32k2z.js +0 -1
  140. package/dist/client/_nuxt/state-editor.vue-bv2vsi3e.js +0 -1
  141. package/dist/client/_nuxt/state-modules-caoe1wdh.js +0 -1
  142. package/dist/client/_nuxt/storage-gccispaw.js +0 -1
  143. package/dist/client/_nuxt/terminals-g1fjbpv3.js +0 -1
  144. package/dist/client/_nuxt/timeline-h1bvvh7f.js +0 -31
  145. package/dist/client/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css +0 -1
  146. package/dist/client/_nuxt/vendor/unocss.css-mhvipxpl.css +0 -1
  147. package/dist/client/_nuxt/vendor/xterm.css-egmhki83.css +0 -32
  148. package/dist/client/_nuxt/virtual-files-bb8hkol9.js +0 -1
  149. package/dist/client/_nuxt/vue-devtools-eqaeie6v.js +0 -2
  150. /package/dist/client/_nuxt/vendor/{xterm-elw8536o.js → xterm-nmc0lagr.js} +0 -0
@@ -1 +0,0 @@
1
- {"id":"fd2d247c-d08c-4876-8eb1-788ff76b5130","timestamp":1761526036349,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -1,8 +0,0 @@
1
- import{_ as k}from"./ncode-block.vue-fnl81rsp.js";import{ao as D}from"#entry";import{p as I,q as T,k as j,E as y,V as q,a0 as M}from"./vendor/json-editor-vue-linwxbdb.js";class V{diff(e,t,n={}){let o;typeof n=="function"?(o=n,n={}):"callback"in n&&(o=n.callback);const c=this.castInput(e,n),u=this.castInput(t,n),l=this.removeEmpty(this.tokenize(c,n)),s=this.removeEmpty(this.tokenize(u,n));return this.diffWithOptionsObj(l,s,n,o)}diffWithOptionsObj(e,t,n,o){var c;const u=d=>{if(d=this.postProcess(d,n),o){setTimeout(function(){o(d)},0);return}else return d},l=t.length,s=e.length;let r=1,i=l+s;n.maxEditLength!=null&&(i=Math.min(i,n.maxEditLength));const p=(c=n.timeout)!==null&&c!==void 0?c:1/0,f=Date.now()+p,a=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(a[0],t,e,0,n);if(a[0].oldPos+1>=s&&h+1>=l)return u(this.buildValues(a[0].lastComponent,t,e));let g=-1/0,w=1/0;const x=()=>{for(let d=Math.max(g,-r);d<=Math.min(w,r);d+=2){let C;const P=a[d-1],v=a[d+1];P&&(a[d-1]=void 0);let L=!1;if(v){const _=v.oldPos-d;L=v&&0<=_&&_<l}const E=P&&P.oldPos+1<s;if(!L&&!E){a[d]=void 0;continue}if(!E||L&&P.oldPos<v.oldPos?C=this.addToPath(v,!0,!1,0,n):C=this.addToPath(P,!1,!0,1,n),h=this.extractCommon(C,t,e,d,n),C.oldPos+1>=s&&h+1>=l)return u(this.buildValues(C.lastComponent,t,e))||!0;a[d]=C,C.oldPos+1>=s&&(w=Math.min(w,d-1)),h+1>=l&&(g=Math.max(g,d+1))}r++};if(o)(function d(){setTimeout(function(){if(r>i||Date.now()>f)return o(void 0);x()||d()},0)})();else for(;r<=i&&Date.now()<=f;){const d=x();if(d)return d}}addToPath(e,t,n,o,c){const u=e.lastComponent;return u&&!c.oneChangePerToken&&u.added===t&&u.removed===n?{oldPos:e.oldPos+o,lastComponent:{count:u.count+1,added:t,removed:n,previousComponent:u.previousComponent}}:{oldPos:e.oldPos+o,lastComponent:{count:1,added:t,removed:n,previousComponent:u}}}extractCommon(e,t,n,o,c){const u=t.length,l=n.length;let s=e.oldPos,r=s-o,i=0;for(;r+1<u&&s+1<l&&this.equals(n[s+1],t[r+1],c);)r++,s++,i++,c.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return i&&!c.oneChangePerToken&&(e.lastComponent={count:i,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,r}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const o=[];let c;for(;e;)o.push(e),c=e.previousComponent,delete e.previousComponent,e=c;o.reverse();const u=o.length;let l=0,s=0,r=0;for(;l<u;l++){const i=o[l];if(i.removed)i.value=this.join(n.slice(r,r+i.count)),r+=i.count;else{if(!i.added&&this.useLongestToken){let p=t.slice(s,s+i.count);p=p.map(function(f,a){const h=n[r+a];return h.length>f.length?h:f}),i.value=this.join(p)}else i.value=this.join(t.slice(s,s+i.count));s+=i.count,i.added||(r+=i.count)}}return o}}class z extends V{constructor(){super(...arguments),this.tokenize=N}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
2
- `))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
3
- `))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
4
- `)&&(e=e.slice(0,-1)),t.endsWith(`
5
- `)&&(t=t.slice(0,-1))),super.equals(e,t,n)}}const A=new z;function W(m,e,t){return A.diff(m,e,t)}function N(m,e){e.stripTrailingCr&&(m=m.replace(/\r\n/g,`
6
- `));const t=[],n=m.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let o=0;o<n.length;o++){const c=n[o];o%2&&!e.newlineIsToken?t[t.length-1]+=c:t.push(c)}return t}const B=I({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(m){const e=m;function t(l,s){const r=W(l.trim(),s.trim()),i=[],p=[],f=[];for(const a of r){const h=a.value.trimEnd().split(`
7
- `);for(const g of h)a.added?(i.push(f.length),f.push(g)):(a.removed&&p.push(f.length),f.push(g))}return{added:i,removed:p,result:f.join(`
8
- `)}}const n=T(()=>t(e.from,e.to));function o(l){let s=0;return l.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,r=>(s++,n.value.added.includes(s-1)?'class="line line-added"':n.value.removed.includes(s-1)?'class="line line-removed"':r))}const c=j();y(u);function u(){const l=D(c);l&&l.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(l,s)=>{const r=k;return M(),q(r,{ref_key:"elRef",ref:c,code:n.value.result,lang:m.lang,"transform-rendered":o,onLoaded:u},null,8,["code","lang"])}}});export{B as _};
@@ -1 +0,0 @@
1
- import{_ as y}from"./ncode-block.vue-fnl81rsp.js";import{a as g,_ as x}from"#entry";import{p as C,n as S,q as w,w as B,J as s,a2 as r,a0 as a,a1 as l,F as d,ah as N,a5 as i,a9 as V,Y as u,V as $,W as v,ac as m,u as h}from"./vendor/json-editor-vue-linwxbdb.js";const T={key:0,relative:"","n-code-block":""},D={flex:"~ wrap","w-full":""},E=["onClick"],F={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},W=C({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(n){const c=n,e=S(c.codeSnippets[0]),f=g(),_=w(()=>e.value?.lang||"text");return B(()=>{c.codeSnippets.includes(e.value)||(e.value=c.codeSnippets[0])}),(L,o)=>{const b=y,p=x;return n.codeSnippets.length?(a(),s("div",T,[l("div",D,[(a(!0),s(d,null,N(n.codeSnippets,(t,k)=>(a(),s("button",{key:k,px4:"",py2:"",border:"r base",hover:"bg-active",class:i(t===e.value?"":"border-b"),onClick:q=>e.value=t},[l("div",{class:i(t===e.value?"":"op30"),"font-mono":""},V(t.name),3)],10,E))),128)),o[1]||(o[1]=l("div",{border:"b base","flex-auto":""},null,-1))]),e.value?(a(),s(d,{key:0},[u(b,{code:e.value.code,lang:_.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),l("div",F,[u(p,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>h(f)(e.value.code,n.eventType||`code-snippet-${e.value.name}`))},{default:v(()=>[...o[2]||(o[2]=[m(" Copy ",-1)])]),_:1}),e.value?.docs?(a(),$(p,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:v(()=>[...o[3]||(o[3]=[m(" Docs ",-1)])]),_:1},8,["to"])):r("",!0)])],64)):r("",!0)])):r("",!0)}}});export{W as _};
@@ -1 +0,0 @@
1
- import{a as ue,_ as X,a4 as pe,aq as re,A as ce,B as me,g as J,ar as de,n as fe,as as ve,S as he,Y as ge,W as be,I as _e,f as xe}from"#entry";import{J as r,a0 as t,a1 as n,p as G,q as P,ac as E,a9 as O,a2 as _,X as j,Y as p,V as b,W as m,u as V,F as B,ah as M,k as F,n as ye,E as we,x as ke,j as z,$ as Ce,a5 as Ne,Z as W,aj as $e,ad as Y,ag as Ve}from"./vendor/json-editor-vue-linwxbdb.js";import{_ as De}from"./help-fab.vue-lyrsxykz.js";import{_ as Pe}from"./ncheckbox.vue-bh13p6qy.js";import{_ as Z}from"./nnavbar.vue-nldppm6i.js";import{p as K}from"./index-jc4yj4to.js";import{_ as Q}from"./nbadge-h7alls7b.js";import{_ as ee}from"./filepath-item.vue-neqjm2ct.js";import{_ as Se}from"./ndrawer.vue-hcqgn10u.js";import{D as Le,N as Be}from"./vendor/vis-bs03k74b.js";import{_ as Ie}from"./nselect-tabs.vue-g78ecijz.js";import{_ as Te}from"./nsection-block-ld7dxama.js";import{_ as Me}from"./nicon-title.vue-c7m4gyag.js";import{D as H}from"./constants-b32h69zq.js";import{u as Ue,a as Fe}from"./state-components-k1rzq61q.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-ia2v1z12.js";const Ge={class:"markdown-body"},Ae={__name:"components",setup(s,{expose:l}){return l({frontmatter:{}}),(x,d)=>(t(),r("div",Ge,[...d[0]||(d[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)])]))}},Re={"text-sm":"","font-mono":""},ne=G({__name:"ComponentName",props:{component:{}},setup(s){const l=s,v=P(()=>l.component.pascalName||K(l.component.name||l.component.__name||l.component.kebabName||""));return(x,d)=>(t(),r("code",Re,[d[0]||(d[0]=n("span",{mr1:"",op20:""},"<",-1)),E(O(v.value),1),d[1]||(d[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),ze={flex:"~ col gap1","items-start":"","of-hidden":""},Ee={flex:"~ gap2 items-center",px3:""},We={px3:"",pb2:""},Oe={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},je={"text-sm":""},qe={"text-primary":""},He={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:""},Ye={"text-sm":""},Je={"text-primary":""},Ze={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},te=G({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(s){const l=s,v=P(()=>l.component.pascalName||K(l.component.name||l.component.__name||l.component.kebabName||"")),x=P(()=>l.component.filePath||l.component.file||l.component.__file||""),d=ue();return(c,h)=>{const i=ne,y=X,a=Q,k=ee;return t(),r("div",ze,[n("div",Ee,[p(i,{component:s.component},null,8,["component"]),s.component.meta?.docs&&typeof s.component.meta.docs=="string"?(t(),b(y,{key:0,title:"Open docs","flex-none":"",n:"xs",to:s.component.meta.docs,target:"_blank",icon:"carbon-catalog"},{default:m(()=>[...h[1]||(h[1]=[E(" Docs ",-1)])]),_:1},8,["to"])):_("",!0),p(y,{title:"Copy name","flex-none":"",n:"xs",icon:"carbon-copy",onClick:h[0]||(h[0]=g=>V(d)(`<${v.value}></${v.value}>`,"component-name"))},{default:m(()=>[...h[2]||(h[2]=[E(" Copy ",-1)])]),_:1}),s.component.global?(t(),b(a,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):_("",!0)]),n("div",We,[x.value?(t(),b(k,{key:0,filepath:x.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):_("",!0)]),s.dependents?(t(),r("div",Oe,[n("div",je,[n("strong",qe,O(s.dependents.length),1),h[3]||(h[3]=n("span",{op50:""}," references",-1))]),s.dependents.length?(t(),r("div",He,[(t(!0),r(B,null,M(s.dependents,g=>(t(),b(k,{key:g,filepath:g},null,8,["filepath"]))),128))])):_("",!0)])):_("",!0),s.dependencies?(t(),r("div",Xe,[n("div",Ye,[n("strong",Je,O(s.dependencies.length),1),h[4]||(h[4]=n("span",{op50:""}," dependencies",-1))]),s.dependencies.length?(t(),r("div",Ze,[(t(!0),r(B,null,M(s.dependencies,g=>(t(),b(k,{key:g,filepath:g},null,8,["filepath"]))),128))])):_("",!0)])):_("",!0),j(c.$slots,"default")])}}}),Ke={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},Qe={relative:"","h-full":"","w-full":""},en={key:0,py4:"",pt3:"",flex:"~ col"},nn={border:"t base",p4:""},tn=G({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(s){const l=s,v=F(),x=F(),d=pe(),c=ye(),h=re(),i=ce(),y=me(),{componentsGraphShowNodeModules:a,componentsGraphShowGlobalComponents:k,componentsGraphShowPages:g,componentsGraphShowLayouts:C,componentsGraphShowWorkspace:S}=J("ui"),f=F(),N=F(""),u=de(N,300),A=P(()=>{const D=l.relationships||[];if(f.value){let e=function($){!$||o.has($)||(o.add($),$.deps.forEach(I=>{e(D.find(U=>U.id===I))}))};const o=new Set;return e(f.value),Array.from(o)}return D}),T=P(()=>{const D=A.value.map(o=>{const $=l.components.find(R=>R.filePath===o.id),I=h.value?.find(R=>R.file===o.id),U=y.value?.find(R=>R.file===o.id),L=o.id.includes("/node_modules/")?"lib":$?$.global?"global":"user":U?"layout":I?"page":"unknown";if(!a.value&&L==="lib"||!g.value&&L==="page"||!C.value&&L==="layout"||!S.value&&L==="user"&&i.value&&!o.id.startsWith(i.value.rootDir)||!k.value&&L==="global")return null;const q=L==="layout"?"hexagon":L==="page"?"square":"dot",w=u.value&&!o.id.toLowerCase().includes(u.value.toLowerCase());return{id:o.id,label:ae(o.id),group:L,shape:q,size:15+Math.min(o.deps.length/2,8),font:{color:w?"#8885":d.value==="dark"?"white":"black"},color:w?"#8885":f.value?.id===o.id?"#82c742":void 0,extra:{id:o.id,component:$,page:I,layout:U,relationship:o}}}).filter(o=>!!o),e=A.value.flatMap(o=>o.deps.map($=>({from:o.id,to:$,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new Le(D),edges:e}}),oe=P(()=>c.value?.component?l.relationships?.find(e=>e.id===c.value?.component?.filePath)?.deps?.map(e=>l.relationships?.find(o=>o.id===e)?.id).filter(Boolean):[]),se=P(()=>c.value?.component?l.relationships?.filter(e=>e.deps.includes(c.value.component.filePath))?.map(e=>l.relationships?.find(o=>o.id===e.id)?.id).filter(Boolean):[]);we(()=>{const D={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 Be(v.value,T.value,D);e.on("click",o=>{const $=o.nodes?.[0],I=T.value.nodes.get($).extra;c.value=I}),ke(T,()=>{e.setData(T.value)})});function le(){c.value=void 0}function ae(D){const e=l.components.find(o=>o.filePath===D);return e?e.pascalName:D.replace(/.*\/components\//,"").replace(/\.vue$/,"").replace(/\/index$/,"").split("/").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join("")}function ie(){f.value=c.value?.relationship,c.value=void 0}return(D,e)=>{const o=Pe,$=Z,I=fe,U=te,L=X,q=Se;return t(),r(B,null,[p($,{ref_key:"navbar",ref:x,search:N.value,"onUpdate:search":e[6]||(e[6]=w=>N.value=w),absolute:"","left-0":"","right-0":"","top-0":""},{actions:m(()=>[n("div",Ke,[p(o,{modelValue:V(g),"onUpdate:modelValue":e[0]||(e[0]=w=>z(g)?g.value=w:null),n:"primary sm"},{default:m(()=>[...e[8]||(e[8]=[n("span",{op75:""},"Show pages",-1)])]),_:1},8,["modelValue"]),p(o,{modelValue:V(C),"onUpdate:modelValue":e[1]||(e[1]=w=>z(C)?C.value=w:null),n:"primary sm"},{default:m(()=>[...e[9]||(e[9]=[n("span",{op75:""},"Show layouts",-1)])]),_:1},8,["modelValue"]),p(o,{modelValue:V(S),"onUpdate:modelValue":e[2]||(e[2]=w=>z(S)?S.value=w:null),n:"primary sm"},{default:m(()=>[...e[10]||(e[10]=[n("span",{op75:""},"Show workspace",-1)])]),_:1},8,["modelValue"]),p(o,{modelValue:V(a),"onUpdate:modelValue":e[3]||(e[3]=w=>z(a)?a.value=w:null),n:"primary sm"},{default:m(()=>[...e[11]||(e[11]=[n("span",{op75:""},"Show node_modules",-1)])]),_:1},8,["modelValue"]),p(o,{modelValue:V(k),"onUpdate:modelValue":e[4]||(e[4]=w=>z(k)?k.value=w:null),n:"primary sm"},{default:m(()=>[...e[12]||(e[12]=[n("span",{op75:""},"Show global components",-1)])]),_:1},8,["modelValue"])]),f.value?(t(),r("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]=w=>f.value=void 0)},[...e[13]||(e[13]=[E(" Clear filter ",-1),n("div",{"i-carbon-close":""},null,-1)])])):_("",!0),e[14]||(e[14]=n("div",{"flex-auto":""},null,-1)),j(D.$slots,"default")]),_:3},8,["search"]),n("div",Qe,[n("div",{ref_key:"container",ref:v,"h-full":"","w-full":""},null,512),p(I,{absolute:"","bottom-3":"","left-3":"","border-0":"","n-glass-effect":"",p2:"",px3:"","text-sm":""},{default:m(()=>[...e[15]||(e[15]=[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}),p(q,{"model-value":!!(c.value&&c.value.component),top:x.value,border:"t l base","w-80":"",onClose:le},{default:m(()=>[c.value&&c.value.component?(t(),r("div",en,[p(U,{component:c.value.component,dependencies:oe.value,dependents:se.value},null,8,["component","dependencies","dependents"]),n("div",nn,[p(L,{n:"primary solid",onClick:e[7]||(e[7]=w=>ie())},{default:m(()=>[...e[16]||(e[16]=[E(" Filter to this component ",-1)])]),_:1})])])):_("",!0)]),_:1},8,["model-value","top"])])],64)}}}),on={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},sn={key:0,"ml--1":"","text-primary":""},ln=G({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(s){const l=s,v=P(()=>l.component.filePath||l.component.file||l.component.__file||"");return(x,d)=>{const c=ne,h=te,i=Ce("VDropdown"),y=Q,a=ee;return t(),r("div",on,[p(i,null,{popper:m(()=>[p(h,{component:s.component,dependencies:s.dependencies,dependents:s.dependents,"w-100":"",pt3:""},null,8,["component","dependencies","dependents"])]),default:m(()=>[n("button",{"hover:text-primary":"",class:Ne(s.dependents&&s.dependents.length===0?"op50":"")},[p(c,{component:s.component},null,8,["component"])],2)]),_:1}),s.dependents?.length?(t(),r("sup",sn," x"+O(s.dependents?.length),1)):_("",!0),s.component.global?(t(),b(y,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):_("",!0),j(x.$slots,"default"),v.value?(t(),b(a,{key:2,filepath:v.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):_("",!0)])}}}),an={flex:"~ gap-2 items-center"},un={pl4:""},pn=G({__name:"ComponentsList",props:{components:{},relationships:{}},setup(s){const l=s,v=F(""),x=F("all"),d=P(()=>{const y=l.components.map(a=>ve(a,l.relationships));return x.value==="using"?y.filter(a=>a.dependents?.length):x.value==="not-used"?y.filter(a=>!a.dependents?.length):y}),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"},h=P(()=>new he(d.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),i=P(()=>{const y=[],a=new Map,k=[],g=[],C={user:0,lib:0,builtin:0,runtime:0};return(v.value?h.value.search(v.value).map(f=>f.item):d.value).forEach(f=>{const N=f.component;if(N.filePath&&ge(N.filePath)){const u=be(N.filePath);if(!u)return;u==="nuxt"?(N.meta??={},N.meta.docs??=c?.[N.pascalName],k.push(f),C.builtin++):(a.has(u)||a.set(u,[]),a.get(u).push(f),C.lib++)}else N.global&&!N.filePath?(g.push(f),C.runtime++):(y.push(f),C.user++)}),{count:C,user:y,builtin:k,lib:a,runtime:g}});return(y,a)=>{const k=_e,g=Ie,C=Z,S=ln,f=Te,N=Me;return t(),r(B,null,[p(C,{search:v.value,"onUpdate:search":a[1]||(a[1]=u=>v.value=u),pb3:""},{actions:m(()=>[j(y.$slots,"default")]),default:m(()=>[n("div",an,[p(k,{icon:"carbon-filter",op50:""}),p(g,{modelValue:x.value,"onUpdate:modelValue":a[0]||(a[0]=u=>x.value=u),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),i.value.user.length?(t(),b(f,{key:0,icon:"carbon-nominal",text:"User components",open:i.value.user.length<=V(H),description:`Total components: ${i.value.count.user}`},{default:m(()=>[(t(!0),r(B,null,M(i.value.user,u=>(t(),b(S,W({key:u.component.filePath},{ref_for:!0},u),null,16))),128))]),_:1},8,["open","description"])):_("",!0),i.value.runtime.length?(t(),b(f,{key:1,icon:"carbon-load-balancer-global",open:i.value.runtime.length<=V(H),text:"Runtime components",description:`Total components: ${i.value.count.runtime}`},{default:m(()=>[(t(!0),r(B,null,M(i.value.runtime,u=>(t(),b(S,W({key:u.component.filePath},{ref_for:!0},u),null,16))),128))]),_:1},8,["open","description"])):_("",!0),i.value.builtin.length?(t(),b(f,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${i.value.count.builtin}`},{default:m(()=>[(t(!0),r(B,null,M(i.value.builtin,u=>(t(),b(S,W({key:u.component.filePath},{ref_for:!0},u),null,16))),128))]),_:1},8,["description"])):_("",!0),i.value.lib.size?(t(),b(f,{key:3,open:i.value.count.lib<=V(H),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${i.value.count.lib} components from ${i.value.lib.size} packages`},{default:m(()=>[(t(!0),r(B,null,M(i.value.lib.entries(),([u,A])=>(t(),r("div",{key:u,"ml-2":""},[p(N,{text:`${u} (${A.length})`,py1:"",op50:""},null,8,["text"]),n("div",un,[(t(!0),r(B,null,M(A,T=>(t(),b(S,W({key:T.component.filePath},{ref_for:!0},T),null,16))),128))])]))),128))]),_:1},8,["open","description"])):_("",!0)],64)}}}),rn={relative:"","h-full":"","of-auto":""},cn={"flex-none":"",flex:"~ gap3"},Pn=G({__name:"components",setup(s){const l=xe(),v=Ue(),x=Fe(),{componentsView:d}=J("ui");function c(){l.value?.inspector?.enable()}function h(){d.value=d.value==="list"?"graph":"list"}return(i,y)=>{const a=X,k=Ae,g=De,C=$e("tooltip");return t(),r(B,null,[n("div",rn,[(t(),b(Ve(V(d)==="list"?pn:tn),{components:V(v),relationships:V(x)},{default:m(()=>[n("div",cn,[Y(p(a,{"text-lg":"",border:!1,icon:V(d)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:h},null,8,["icon"]),[[C,"Toggle View",void 0,{"bottom-end":!0}]]),V(l)?.inspector?.isAvailable?Y((t(),b(a,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:c},null,512)),[[C,"Inspect Vue components",void 0,{"bottom-end":!0}]]):_("",!0)])]),_:1},8,["components","relationships"]))]),p(g,null,{default:m(()=>[p(k)]),_:1})],64)}}});export{Pn as default};
@@ -1 +0,0 @@
1
- import{a as $,w as U,I as E,_ as F}from"#entry";import{_ as j}from"./nmarkdown.vue-benph8ez.js";import{_ as S}from"./filepath-item.vue-neqjm2ct.js";import{k as W}from"./index-jc4yj4to.js";import{C as y}from"./constants-b32h69zq.js";import{p as q,q as r,$ as z,V as m,a0 as n,W as l,a1 as o,a5 as J,J as u,a2 as d,ac as f,a9 as x,Y as b,u as k,F as g,ah as L}from"./vendor/json-editor-vue-linwxbdb.js";const M={rounded:"","font-mono":""},O={key:0,"text-primary":""},T={key:0},Y={title:"Vue Directive"},A={"max-w-100":""},G={px4:"",py3:"","text-sm":""},H={flex:"~ gap2",n:"primary xs"},K={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},P={"text-sm":""},Q={"text-primary":""},R={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},X={key:1,"text-sm":"",op50:""},se=q({__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(a){const t=a,h=$(),C=U(),c=r(()=>t.item.as||t.item.name),D=r(()=>{let s=c.value;return t.isDirective&&(s[0]!=="v"&&(s=`v${s}`),s=W(s)),s}),i=r(()=>t.metadata?.injectionUsage?.[c.value]?.count||0),N=r(()=>(t.metadata?.injectionUsage?.[c.value]?.moduleIds||[]).filter(s=>!s.endsWith("?macro=true"))),_=r(()=>t.item.meta?.docsUrl?t.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(t.item.from)?y.nuxt[t.item.name]:t.item.from==="vue"?y.vue[t.item.name]:null);return(s,e)=>{const w=E,I=j,v=F,V=S,B=z("VDropdown");return n(),m(B,{disabled:!t.metadata},{popper:l(()=>[o("div",A,[o("div",G,[a.item.meta?.description?(n(),m(I,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):d("",!0),o("div",H,[b(v,{icon:"carbon-copy",onClick:e[0]||(e[0]=p=>k(h)(D.value,"imports-name"))},{default:l(()=>[...e[2]||(e[2]=[f(" Copy ",-1)])]),_:1}),a.filepath?(n(),m(v,{key:0,icon:"carbon-code",onClick:e[1]||(e[1]=p=>a.filepath&&k(C)(a.filepath))},{default:l(()=>[...e[3]||(e[3]=[f(" Source ",-1)])]),_:1})):d("",!0),_.value?(n(),m(v,{key:1,icon:"carbon-catalog",to:_.value,target:"_blank"},{default:l(()=>[...e[4]||(e[4]=[f(" Docs ",-1)])]),_:1},8,["to"])):d("",!0)])]),o("div",K,[i.value?(n(),u(g,{key:0},[o("div",P,[e[5]||(e[5]=o("span",{op50:""},"It has been referenced ",-1)),o("strong",Q,x(i.value),1),e[6]||(e[6]=o("span",{op50:""}," times by:",-1))]),o("div",R,[(n(!0),u(g,null,L(N.value,p=>(n(),m(V,{key:p,filepath:p},null,8,["filepath"]))),128))])],64)):(n(),u("div",X," Not in use via auto import. "))])])]),default:l(()=>[o("button",{"hover:text-primary":"",class:J([a.metadata&&!i.value?"op30 hover:op100":"",a.classes])},[o("code",M,[f(x(c.value)+" ",1),i.value&&a.counter?(n(),u("sup",O,"x"+x(i.value),1)):d("",!0)]),a.isDirective?(n(),u("sup",T,[o("abbr",Y,[b(w,{icon:"tabler:hexagon-letter-d"})])])):d("",!0)],2)]),_:1},8,["disabled"])}}});export{se as _};
@@ -1 +0,0 @@
1
- import{a4 as $,ba as j,bb as E,bc as N,a6 as V,l as B,ag as k,bd as W,r as D,n as I,j as L,aa as P}from"#entry";import{p as q,k as C,q as x,r as O,E as M,z as R,w as _,M as S,J as U,a0 as n,V as u,W as y,a1 as r,ac as w,a9 as A,u as T,ag as F,Y as z}from"./vendor/json-editor-vue-linwxbdb.js";import{_ as G}from"./launch-page.vue-b5jz6435.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-ia2v1z12.js";import"./nmarkdown.vue-benph8ez.js";import"./client-grni31iy.js";const h=new Map,J=q({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=$(),d=C(),s=x(()=>m.tab.name),e=C(),t=O(j(d));M(()=>{const o=m.tab.view,l=o.persistent!==!1,b=["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",b.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),R(p)}setTimeout(i,100)}),_(p),_(i),_(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=E();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function p(){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:d,"h-full":"","w-full":""},null,512))}}),X={flex:"~ col gap2",mxa:"","items-center":""},Y={"text-xl":""},H={"text-rose":""},ne=q({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=N(),d=V(),s=x(()=>m.name??c.params.name),e=B(),t=x(()=>e.value.find(i=>i.name===s.value));return M(()=>{t.value?t.value.requireAuth&&!k.value&&W():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(i,a)=>{const v=L,p=P,o=J,l=G,b=I;return t.value?t.value.requireAuth&&!T(k)?(n(),u(p,{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=>T(D).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[z(b,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+A(t.value.view),1)]),_:1})]),_:1})):(n(),u(v,{key:0},{default:y(()=>[r("div",X,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",Y,[a[1]||(a[1]=w(" Tab ",-1)),r("code",H,A(s.value),1),a[2]||(a[2]=w(" not found ",-1))]),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};
@@ -1 +0,0 @@
1
- import{u as r,_ as c}from"#entry";import{p as s,aj as i,ad as p,a0 as _,V as m}from"./vendor/json-editor-vue-linwxbdb.js";const D=s({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(t){const n=r();return(u,e)=>{const o=c,a=i("tooltip");return p((_(),m(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=l=>n.value=t.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{D as _};
@@ -1,2 +0,0 @@
1
- import{_ as A}from"./nselect.vue-ikkkj1tq.js";import{u as E,c as F,a as U,_ as q}from"#entry";import{_ as z}from"./nswitch.vue-gb2x6p6j.js";import{_ as J}from"./ndropdown.vue-cclblmxb.js";import{_ as O}from"./ncode-block.vue-fnl81rsp.js";import{_ as Y}from"./ndrawer.vue-hcqgn10u.js";import{A as h,d as x}from"./vendor/quicktype-core-i7mnewyz.js";import{p as G,k,q as N,x as C,V as c,a2 as m,a0 as n,Y as d,W as r,a1 as i,J as f,F as D,ah as j,u as _,a9 as V,af as H}from"./vendor/json-editor-vue-linwxbdb.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-ia2v1z12.js";import"./client-grni31iy.js";const K={border:"b base",flex:"~ items-center gap-2",sticky:"","left-0":"","right-0":"","top-0":"","z-1":"","bg-base":"",p3:""},M={key:0,flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--2":"","h-4":"","w-4":"","rounded-full":"","bg-lime:30":"","text-8px":""},P={flex:"~ col","w-100":"","of-auto":"",py2:""},Q={"text-xs":"",capitalize:"",op75:""},ie=G({__name:"DataSchemaDrawer",setup(R){const s=E(),b=k(0),l=k("TypeScript"),v=N(()=>h.all.find(e=>e.displayName===l.value)),o=k(v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")),y=F(async()=>{if(b.value,!s.value)return"";const e=x.jsonInputForTargetLanguage(l.value);await e.addSource({name:s.value.name??"Data",samples:[s.value.input]});const t=new x.InputData;return t.addInput(e),(await x.quicktype({inputData:t,lang:l.value,rendererOptions:o.value?.reduce((u,p)=>(u[p.name]=p.defaultValue,u),{})})).lines.join(`
2
- `)}),S=N(()=>{const e=l.value.toLocaleLowerCase();return e.startsWith("javascript")?"javascript":e.startsWith("json")?"json":e.startsWith("typescript")?"typescript":e});C(o,()=>{b.value++},{deep:!0}),C(l,()=>{o.value=v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")});const $=U();function B(){$(y.value||"")}return(e,t)=>{const w=A,u=q,p=z,L=J,I=O,T=Y;return v.value?(n(),c(H,{key:0,to:"body"},[d(T,{"model-value":!!_(s)?.input,"auto-close":"","max-w-screen":"","w-2xl":"","n-code-block":"",onClose:t[2]||(t[2]=a=>s.value=null)},{default:r(()=>[i("div",K,[t[3]||(t[3]=i("p",{"mr-2":""}," Schema ",-1)),d(w,{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value=a),n:"xs primary"},{default:r(()=>[(n(!0),f(D,null,j(_(h.all),a=>(n(),f("option",{key:a.displayName},V(a.displayName),1))),128))]),_:1},8,["modelValue"]),o.value?.length?(n(),c(L,{key:0,n:"sm lime"},{trigger:r(({click:a})=>[d(u,{icon:"carbon-settings","h-full":"",onClick:g=>a()},null,8,["onClick"]),o.value?(n(),f("span",M,V(o.value.length),1)):m("",!0)]),default:r(()=>[i("div",P,[(n(!0),f(D,null,j(o.value,(a,g)=>(n(),c(p,{key:a.name,modelValue:o.value[g].defaultValue,"onUpdate:modelValue":W=>o.value[g].defaultValue=W,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:r(()=>[i("span",Q,V(a.description),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):m("",!0),t[4]||(t[4]=i("div",{"flex-auto":""},null,-1)),d(u,{icon:"carbon-copy","mr-6":"","h-full":"",onClick:t[1]||(t[1]=a=>B())})]),_(y)?(n(),c(I,{key:0,lang:S.value,code:_(y)},null,8,["lang","code"])):m("",!0)]),_:1},8,["model-value"])])):m("",!0)}}});export{ie as default};
@@ -1 +0,0 @@
1
- import{_ as D}from"./nsection-block-ld7dxama.js";import{_ as H}from"./ncheckbox.vue-bh13p6qy.js";import{g as M}from"./color-mt9xuhgy.js";import{_ as I}from"./nbadge-h7alls7b.js";import{p as h,q as R,V as g,a0 as l,W as m,ac as P,X as j,a9 as k,a3 as z,k as f,J as u,F as x,a1 as t,Y as a,a2 as B,ah as N,a5 as E,u as $}from"./vendor/json-editor-vue-linwxbdb.js";import{_ as W,p as O}from"#entry";import{_ as q}from"./filepath-item.vue-neqjm2ct.js";import{_ as J}from"./ncode-block.vue-fnl81rsp.js";import"./nicon-title.vue-c7m4gyag.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-ia2v1z12.js";import"./client-grni31iy.js";const K=h({__name:"NBadgeHashed",props:{text:{}},setup(i){const d=i,_=R(()=>{const s=M(d.text,50,60),r=M(d.text,50,60,.05);return{color:s,background:r}});return(s,r)=>(l(),g(I,{style:z(_.value)},{default:m(()=>[P(k(i.text),1),j(s.$slots,"default")]),_:3},8,["style"]))}}),L={flex:"~ gap-2 col",mb4:""},X={flex:"~ gap-3 items-center"},Y={key:0,flex:"~ gap-1","items-center":"",p1:"",border:"~ base rounded"},A={"max-w-full":"","of-auto":""},G={"text-center":"",op50:""},Q={flex:"~",px4:""},Z={key:0,op50:""},ee={px2:"","text-center":""},te={"of-auto":""},oe=h({__name:"DebugModuleMutationRecords",props:{moduleMutationRecords:{}},setup(i){const d=i;function _(n){return n.startsWith("/")||n.match(/^[a-z]:[\\/]/i)}const s=f(!1),r=f(!1),v=f(!1),b=f(!1),w=f(!1),p=f(""),S=R(()=>{let n=d.moduleMutationRecords;return s.value||(n=n.filter(e=>!e.name.startsWith("nuxt:")&&e.name!=="@nuxt/devtools")),r.value||(n=n.filter(e=>e.keys.join(".")!=="build.templates")),v.value||(n=n.filter(e=>e.keys.join(".")!=="build.transpile")),b.value||(n=n.filter(e=>e.keys.join(".")!=="plugins")),w.value||(n=n.filter(e=>e.method||e.value!=="[]"&&e.value!=="{}")),p.value&&(n=n.filter(e=>e.name===p.value)),n});return(n,e)=>{const c=H,y=K,F=W,T=q,U=J;return l(),u(x,null,[t("div",L,[t("div",X,[a(c,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=o=>s.value=o),n:"primary"},{default:m(()=>[...e[6]||(e[6]=[t("span",{"ws-nowrap":"",op75:""},"Builtin Modules",-1)])]),_:1},8,["modelValue"]),a(c,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=o=>r.value=o),n:"primary"},{default:m(()=>[...e[7]||(e[7]=[t("span",{"ws-nowrap":"",op75:""},"Templates",-1)])]),_:1},8,["modelValue"]),a(c,{modelValue:v.value,"onUpdate:modelValue":e[2]||(e[2]=o=>v.value=o),n:"primary"},{default:m(()=>[...e[8]||(e[8]=[t("span",{"ws-nowrap":"",op75:""},"Transpile",-1)])]),_:1},8,["modelValue"]),a(c,{modelValue:b.value,"onUpdate:modelValue":e[3]||(e[3]=o=>b.value=o),n:"primary"},{default:m(()=>[...e[9]||(e[9]=[t("span",{"ws-nowrap":"",op75:""},"Plugins",-1)])]),_:1},8,["modelValue"]),a(c,{modelValue:w.value,"onUpdate:modelValue":e[4]||(e[4]=o=>w.value=o),n:"primary"},{default:m(()=>[...e[10]||(e[10]=[t("span",{"ws-nowrap":"",op75:""},"Empty Initial",-1)])]),_:1},8,["modelValue"]),p.value?(l(),u("div",Y,[a(y,{"font-mono":"",text:p.value},null,8,["text"]),a(F,{icon:"carbon-close",border:!1,onClick:e[5]||(e[5]=o=>p.value="")})])):B("",!0)])]),t("table",A,[e[11]||(e[11]=t("thead",{border:"b base"},[t("tr",null,[t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Index "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Module "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Key Path "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Method "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Value ")])],-1)),t("tbody",null,[(l(!0),u(x,null,N(S.value,o=>(l(),u("tr",{key:i.moduleMutationRecords.indexOf(o),border:"b dashed transparent hover:base"},[t("td",G,[t("div",null,k(i.moduleMutationRecords.indexOf(o)+1),1)]),t("td",null,[o.name&&_(o.name)?(l(),g(T,{key:0,filepath:o.name},null,8,["filepath"])):(l(),g(y,{key:1,role:"button","font-mono":"",text:o.name,onClick:V=>p.value=o.name},null,8,["text","onClick"]))]),t("td",null,[t("code",Q,[(l(!0),u(x,null,N(o.keys,(V,C)=>(l(),u(x,{key:C},[t("span",null,k(V),1),C<o.keys.length-1?(l(),u("span",Z," . ")):B("",!0)],64))),128))])]),t("td",ee,[a(y,{"font-mono":"",text:o.method||"=",class:E(o.method?"":"saturate-0")},null,8,["text","class"])]),t("td",te,[a(U,{code:String(o.value),lang:"ts","grammar-context-code":"let a = ","ws-normal":"","break-all":"",py1:"",lines:!1,inline:!0},null,8,["code"])])]))),128))])])],64)}}}),ne={key:0,p6:""},le={key:1},ve=h({__name:"debug",setup(i){const d=O();return(_,s)=>{const r=D;return $(d)?(l(),u("div",le,[a(r,{icon:"carbon-container-image-push-pull",text:"Module Mutation Records",description:"Records of module mutations to nuxt options"},{default:m(()=>[a(oe,{"module-mutation-records":$(d).moduleMutationRecords||[]},null,8,["module-mutation-records"])]),_:1})])):(l(),u("div",ne,[...s[0]||(s[0]=[t("div",null,"No Debug Context Found",-1),t("div",null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)])]))}}});export{ve as default};