@nuxt/devtools 2.6.5 → 2.7.0

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 (144) hide show
  1. package/dist/chunks/module-main.mjs +30 -28
  2. package/dist/client/200.html +24 -24
  3. package/dist/client/404.html +24 -24
  4. package/dist/client/_nuxt/__blank-o2e2nlba.js +1 -0
  5. package/dist/client/_nuxt/analyze-build-nz1y96gd.js +1 -0
  6. package/dist/client/_nuxt/assets-nh6uq1n5.js +16 -0
  7. package/dist/client/_nuxt/builds/latest.json +1 -1
  8. package/dist/client/_nuxt/builds/meta/d81a82cc-1641-42f4-8236-01d5f57535e9.json +1 -0
  9. package/dist/client/_nuxt/{client-kvgyopwa.js → client-grni31iy.js} +1 -1
  10. package/dist/client/_nuxt/code-diff.vue-cickw09g.js +8 -0
  11. package/dist/client/_nuxt/code-snippets.vue-c07ituis.js +1 -0
  12. package/dist/client/_nuxt/components-cq7iswa4.js +1 -0
  13. package/dist/client/_nuxt/composable-item.vue-emog8rj6.js +1 -0
  14. package/dist/client/_nuxt/custom-_name_-fy2dzlhn.js +1 -0
  15. package/dist/client/_nuxt/data-schema-button.vue-fo5mzhk5.js +1 -0
  16. package/dist/client/_nuxt/data-schema-drawer-i7brie61.js +2 -0
  17. package/dist/client/_nuxt/debug-mfvc65ao.js +1 -0
  18. package/dist/client/_nuxt/default-f96z8sx9.js +1 -0
  19. package/dist/client/_nuxt/duration-display.vue-hc7it00w.js +1 -0
  20. package/dist/client/_nuxt/{entry.css-bgro2w4m.css → entry.css-kes83a7q.css} +1 -1
  21. package/dist/client/_nuxt/error-404-fsmcgc81.js +1 -0
  22. package/dist/client/_nuxt/error-404.css-f2r0whq7.css +1 -0
  23. package/dist/client/_nuxt/error-500-ggd23rlw.js +1 -0
  24. package/dist/client/_nuxt/error-500.css-m0gu28nc.css +1 -0
  25. package/dist/client/_nuxt/{error-ghvu2n3h.js → error-bdtzadbh.js} +6 -6
  26. package/dist/client/_nuxt/filepath-item.vue-neqjm2ct.js +1 -0
  27. package/dist/client/_nuxt/full-hh85jtzl.js +1 -0
  28. package/dist/client/_nuxt/help-fab.vue-lyrsxykz.js +1 -0
  29. package/dist/client/_nuxt/hooks-isq60ffg.js +1 -0
  30. package/dist/client/_nuxt/hs1vn89w.js +19 -0
  31. package/dist/client/_nuxt/imports-i1bdmxvv.js +1 -0
  32. package/dist/client/_nuxt/index-elnpw1x4.js +1 -0
  33. package/dist/client/_nuxt/launch-page.vue-b5jz6435.js +1 -0
  34. package/dist/client/_nuxt/modules-hxuay0ud.js +1 -0
  35. package/dist/client/_nuxt/nbadge-h7alls7b.js +1 -0
  36. package/dist/client/_nuxt/ncheckbox.vue-bh13p6qy.js +1 -0
  37. package/dist/client/_nuxt/ncode-block.vue-fnl81rsp.js +2 -0
  38. package/dist/client/_nuxt/ndrawer.vue-hcqgn10u.js +1 -0
  39. package/dist/client/_nuxt/ndropdown.vue-cclblmxb.js +1 -0
  40. package/dist/client/_nuxt/nicon-title.vue-c7m4gyag.js +1 -0
  41. package/dist/client/_nuxt/nlink.vue-hu4nnvo7.js +1 -0
  42. package/dist/client/_nuxt/nmarkdown.vue-benph8ez.js +1 -0
  43. package/dist/client/_nuxt/nnavbar.vue-nldppm6i.js +1 -0
  44. package/dist/client/_nuxt/none-c4q49gb7.js +1 -0
  45. package/dist/client/_nuxt/nsection-block-ld7dxama.js +1 -0
  46. package/dist/client/_nuxt/nselect-tabs.vue-g78ecijz.js +1 -0
  47. package/dist/client/_nuxt/nselect.vue-ikkkj1tq.js +1 -0
  48. package/dist/client/_nuxt/nswitch.vue-gb2x6p6j.js +1 -0
  49. package/dist/client/_nuxt/open-graph-ut0bupqh.js +3 -0
  50. package/dist/client/_nuxt/overview-o50tzp8d.js +1 -0
  51. package/dist/client/_nuxt/pages-hi719vyc.js +1 -0
  52. package/dist/client/_nuxt/payload-dprej8cs.js +1 -0
  53. package/dist/client/_nuxt/pinia-ghxvse5l.js +1 -0
  54. package/dist/client/_nuxt/plugins-g5ehm351.js +1 -0
  55. package/dist/client/_nuxt/render-tree-nko8dely.js +1 -0
  56. package/dist/client/_nuxt/runtime-configs-m1mfkc7h.js +1 -0
  57. package/dist/client/_nuxt/server-discovery-onsh2smk.js +1 -0
  58. package/dist/client/_nuxt/server-route-inputs.vue-e944cjqy.js +1 -0
  59. package/dist/client/_nuxt/server-routes-ia6aa4ou.js +9 -0
  60. package/dist/client/_nuxt/server-tasks-i6584keu.js +1 -0
  61. package/dist/client/_nuxt/settings-dumbcp6e.js +1 -0
  62. package/dist/client/_nuxt/stacktrace-list.vue-gtf32k2z.js +1 -0
  63. package/dist/client/_nuxt/{state-components-i9ev6w42.js → state-components-k1rzq61q.js} +1 -1
  64. package/dist/client/_nuxt/state-editor.vue-bv2vsi3e.js +1 -0
  65. package/dist/client/_nuxt/state-modules-caoe1wdh.js +1 -0
  66. package/dist/client/_nuxt/storage-f7vi2lpi.js +1 -0
  67. package/dist/client/_nuxt/terminals-ey2y919c.js +1 -0
  68. package/dist/client/_nuxt/timeline-ngc4nnxj.js +31 -0
  69. package/dist/client/_nuxt/{unocss-runtime-natbzd10.js → unocss-runtime-e6p7e9vg.js} +1 -1
  70. package/dist/client/_nuxt/vendor/json-editor-vue-linwxbdb.js +3902 -0
  71. package/dist/client/_nuxt/vendor/{quicktype-core-jxekulwx.js → quicktype-core-i7mnewyz.js} +1 -1
  72. package/dist/client/_nuxt/vendor/{shiki-jxvjmls6.js → shiki-hpfujfi3.js} +1 -1
  73. package/dist/client/_nuxt/vendor/{unocss-n80di6md.js → unocss-c1ookmgn.js} +3 -3
  74. package/dist/client/_nuxt/virtual-files-nhnn9uqz.js +1 -0
  75. package/dist/client/_nuxt/vue-devtools-eqaeie6v.js +2 -0
  76. package/dist/client/_nuxt/{vue-virtual-scroller.esm-oaume2n6.js → vue-virtual-scroller.esm-ma3b9hj8.js} +2 -2
  77. package/dist/client/discovery/index.html +1 -1
  78. package/dist/client/index.html +24 -24
  79. package/dist/module.json +1 -1
  80. package/dist/webcomponents/index.mjs +612 -586
  81. package/package.json +34 -34
  82. package/dist/client/_nuxt/__blank-oybwb9u0.js +0 -1
  83. package/dist/client/_nuxt/analyze-build-exflnuwi.js +0 -1
  84. package/dist/client/_nuxt/assets-jmd1acsq.js +0 -16
  85. package/dist/client/_nuxt/builds/meta/50d38183-21be-4c6a-b93c-9aad9dacb71b.json +0 -1
  86. package/dist/client/_nuxt/ch41giyg.js +0 -15
  87. package/dist/client/_nuxt/code-diff.vue-bq8bth0l.js +0 -8
  88. package/dist/client/_nuxt/code-snippets.vue-i2momvvn.js +0 -1
  89. package/dist/client/_nuxt/components-hke3x7rv.js +0 -1
  90. package/dist/client/_nuxt/composable-item.vue-bd0qe28q.js +0 -1
  91. package/dist/client/_nuxt/custom-_name_-vk6sxnjq.js +0 -1
  92. package/dist/client/_nuxt/data-schema-button.vue-hwc5uuo4.js +0 -1
  93. package/dist/client/_nuxt/data-schema-drawer-l8t0dpro.js +0 -2
  94. package/dist/client/_nuxt/debug-kzd6td4c.js +0 -1
  95. package/dist/client/_nuxt/default-hdlt6j4k.js +0 -1
  96. package/dist/client/_nuxt/duration-display.vue-juecltgn.js +0 -1
  97. package/dist/client/_nuxt/error-404-i1es9hcq.js +0 -1
  98. package/dist/client/_nuxt/error-404.css-nxlugf5l.css +0 -1
  99. package/dist/client/_nuxt/error-500-du8psod2.js +0 -1
  100. package/dist/client/_nuxt/error-500.css-bcokcrit.css +0 -1
  101. package/dist/client/_nuxt/filepath-item.vue-e693vfym.js +0 -1
  102. package/dist/client/_nuxt/full-duvrk1v3.js +0 -1
  103. package/dist/client/_nuxt/help-fab.vue-le7iybnb.js +0 -1
  104. package/dist/client/_nuxt/hooks-jnw6sgbe.js +0 -1
  105. package/dist/client/_nuxt/imports-n9gtts3r.js +0 -1
  106. package/dist/client/_nuxt/index-ltaw282l.js +0 -1
  107. package/dist/client/_nuxt/launch-page.vue-mubr1qiq.js +0 -1
  108. package/dist/client/_nuxt/modules-oshl858b.js +0 -1
  109. package/dist/client/_nuxt/nbadge-hbh0pw7g.js +0 -1
  110. package/dist/client/_nuxt/ncheckbox.vue-cowm3nmm.js +0 -1
  111. package/dist/client/_nuxt/ncode-block.vue-nph7f5ph.js +0 -2
  112. package/dist/client/_nuxt/ndrawer.vue-bscihm5p.js +0 -1
  113. package/dist/client/_nuxt/ndropdown.vue-mt2skirs.js +0 -1
  114. package/dist/client/_nuxt/nicon-title.vue-l5va2e26.js +0 -1
  115. package/dist/client/_nuxt/nlink.vue-gjku6j2r.js +0 -1
  116. package/dist/client/_nuxt/nmarkdown.vue-ho3nn7tc.js +0 -1
  117. package/dist/client/_nuxt/nnavbar.vue-fe2vbqhk.js +0 -1
  118. package/dist/client/_nuxt/none-b6qt2l9k.js +0 -1
  119. package/dist/client/_nuxt/nsection-block-b1meb1ma.js +0 -1
  120. package/dist/client/_nuxt/nselect-tabs.vue-hb4dua1x.js +0 -1
  121. package/dist/client/_nuxt/nselect.vue-j457efs9.js +0 -1
  122. package/dist/client/_nuxt/nswitch.vue-m7rzt1v6.js +0 -1
  123. package/dist/client/_nuxt/open-graph-h1bmv712.js +0 -3
  124. package/dist/client/_nuxt/overview-igkkj0w7.js +0 -1
  125. package/dist/client/_nuxt/pages-egvz386w.js +0 -1
  126. package/dist/client/_nuxt/payload-be770vb8.js +0 -1
  127. package/dist/client/_nuxt/pinia-brl9kc3p.js +0 -1
  128. package/dist/client/_nuxt/plugins-bgfzay6d.js +0 -1
  129. package/dist/client/_nuxt/render-tree-npycwzn4.js +0 -1
  130. package/dist/client/_nuxt/runtime-configs-fbrk7nq8.js +0 -1
  131. package/dist/client/_nuxt/server-discovery-iq9d1ccu.js +0 -1
  132. package/dist/client/_nuxt/server-route-inputs.vue-m4ax1l4d.js +0 -1
  133. package/dist/client/_nuxt/server-routes-koaspj0k.js +0 -9
  134. package/dist/client/_nuxt/server-tasks-2v7pcdmy.js +0 -1
  135. package/dist/client/_nuxt/settings-ob6p57bq.js +0 -1
  136. package/dist/client/_nuxt/stacktrace-list.vue-nfhbrir6.js +0 -1
  137. package/dist/client/_nuxt/state-editor.vue-byiz4hoi.js +0 -1
  138. package/dist/client/_nuxt/state-modules-c2rs6wdq.js +0 -1
  139. package/dist/client/_nuxt/storage-fgzv4lrj.js +0 -1
  140. package/dist/client/_nuxt/terminals-fj33nfal.js +0 -1
  141. package/dist/client/_nuxt/timeline-f04w3haj.js +0 -31
  142. package/dist/client/_nuxt/vendor/json-editor-vue-gd4lkf0o.js +0 -3902
  143. package/dist/client/_nuxt/virtual-files-lrvn9h52.js +0 -1
  144. package/dist/client/_nuxt/vue-devtools-m76pi1vn.js +0 -2
@@ -1,8 +0,0 @@
1
- import{_ as k}from"./ncode-block.vue-nph7f5ph.js";import{ao as D}from"#entry";import{p as I,q as T,k as j,E as y,U as q,$ as M}from"./vendor/json-editor-vue-gd4lkf0o.js";class z{diff(e,t,n={}){let o;typeof n=="function"?(o=n,n={}):"callback"in n&&(o=n.callback);const u=this.castInput(e,n),c=this.castInput(t,n),r=this.removeEmpty(this.tokenize(u,n)),s=this.removeEmpty(this.tokenize(c,n));return this.diffWithOptionsObj(r,s,n,o)}diffWithOptionsObj(e,t,n,o){var u;const c=d=>{if(d=this.postProcess(d,n),o){setTimeout(function(){o(d)},0);return}else return d},r=t.length,s=e.length;let l=1,i=r+s;n.maxEditLength!=null&&(i=Math.min(i,n.maxEditLength));const p=(u=n.timeout)!==null&&u!==void 0?u: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>=r)return c(this.buildValues(a[0].lastComponent,t,e));let g=-1/0,w=1/0;const x=()=>{for(let d=Math.max(g,-l);d<=Math.min(w,l);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 E=v.oldPos-d;L=v&&0<=E&&E<r}const _=P&&P.oldPos+1<s;if(!L&&!_){a[d]=void 0;continue}if(!_||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>=r)return c(this.buildValues(C.lastComponent,t,e))||!0;a[d]=C,C.oldPos+1>=s&&(w=Math.min(w,d-1)),h+1>=r&&(g=Math.max(g,d+1))}l++};if(o)(function d(){setTimeout(function(){if(l>i||Date.now()>f)return o(void 0);x()||d()},0)})();else for(;l<=i&&Date.now()<=f;){const d=x();if(d)return d}}addToPath(e,t,n,o,u){const c=e.lastComponent;return c&&!u.oneChangePerToken&&c.added===t&&c.removed===n?{oldPos:e.oldPos+o,lastComponent:{count:c.count+1,added:t,removed:n,previousComponent:c.previousComponent}}:{oldPos:e.oldPos+o,lastComponent:{count:1,added:t,removed:n,previousComponent:c}}}extractCommon(e,t,n,o,u){const c=t.length,r=n.length;let s=e.oldPos,l=s-o,i=0;for(;l+1<c&&s+1<r&&this.equals(n[s+1],t[l+1],u);)l++,s++,i++,u.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return i&&!u.oneChangePerToken&&(e.lastComponent={count:i,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,l}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 u;for(;e;)o.push(e),u=e.previousComponent,delete e.previousComponent,e=u;o.reverse();const c=o.length;let r=0,s=0,l=0;for(;r<c;r++){const i=o[r];if(i.removed)i.value=this.join(n.slice(l,l+i.count)),l+=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[l+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||(l+=i.count)}}return o}}class A extends z{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 V=new A;function W(m,e,t){return V.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 u=n[o];o%2&&!e.newlineIsToken?t[t.length-1]+=u:t.push(u)}return t}const B=I({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(m){const e=m;function t(r,s){const l=W(r.trim(),s.trim()),i=[],p=[],f=[];for(const a of l){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(r){let s=0;return r.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,l=>(s++,n.value.added.includes(s-1)?'class="line line-added"':n.value.removed.includes(s-1)?'class="line line-removed"':l))}const u=j();y(c);function c(){const r=D(u);r&&r.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(r,s)=>{const l=k;return M(),q(l,{ref_key:"elRef",ref:u,code:n.value.result,lang:r.lang,"transform-rendered":o,onLoaded:c},null,8,["code","lang"])}}});export{B as _};
@@ -1 +0,0 @@
1
- import{_ as g}from"./ncode-block.vue-nph7f5ph.js";import{a as C,_ as x}from"#entry";import{p as S,n as w,q as B,w as N,J as n,a1 as r,$ as a,a0 as s,F as d,ag as V,a4 as i,a8 as $,X as u,U as T,V as v,ab as m,u as h}from"./vendor/json-editor-vue-gd4lkf0o.js";const D={key:0,relative:"","n-code-block":""},E={flex:"~ wrap","w-full":""},F=["onClick"],L={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},U=S({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(f){const l=f,e=w(l.codeSnippets[0]),_=C(),b=B(()=>e.value?.lang||"text");return N(()=>{l.codeSnippets.includes(e.value)||(e.value=l.codeSnippets[0])}),(p,o)=>{const k=g,c=x;return p.codeSnippets.length?(a(),n("div",D,[s("div",E,[(a(!0),n(d,null,V(p.codeSnippets,(t,y)=>(a(),n("button",{key:y,px4:"",py2:"",border:"r base",hover:"bg-active",class:i(t===e.value?"":"border-b"),onClick:q=>e.value=t},[s("div",{class:i(t===e.value?"":"op30"),"font-mono":""},$(t.name),3)],10,F))),128)),o[1]||(o[1]=s("div",{border:"b base","flex-auto":""},null,-1))]),e.value?(a(),n(d,{key:0},[u(k,{code:e.value.code,lang:b.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),s("div",L,[u(c,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>h(_)(e.value.code,p.eventType||`code-snippet-${e.value.name}`))},{default:v(()=>[...o[2]||(o[2]=[m(" Copy ",-1)])]),_:1}),e.value?.docs?(a(),T(c,{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{U as _};
@@ -1 +0,0 @@
1
- import{a as ie,_ as X,a4 as re,aq as ue,A as me,B as ce,g as J,ar as de,n as fe,as as ve,S as he,Y as _e,W as be,I as ge,f as xe}from"#entry";import{J as m,$ as o,a0 as n,p as G,q as P,ab as E,a8 as O,a1 as g,W as j,X as u,U as b,V as c,u as $,F as B,ag as M,k as F,n as ye,E as we,x as ke,j as z,Z as Ce,a4 as Ne,Y as W,ai as $e,ac as Y,af as Ve}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as De}from"./help-fab.vue-le7iybnb.js";import{_ as Pe}from"./ncheckbox.vue-cowm3nmm.js";import{_ as Z}from"./nnavbar.vue-fe2vbqhk.js";import{p as K}from"./index-jc4yj4to.js";import{_ as Q}from"./nbadge-hbh0pw7g.js";import{_ as ee}from"./filepath-item.vue-e693vfym.js";import{_ as Se}from"./ndrawer.vue-bscihm5p.js";import{D as Le,N as Be}from"./vendor/vis-bs03k74b.js";import{_ as Ie}from"./nselect-tabs.vue-hb4dua1x.js";import{_ as Te}from"./nsection-block-b1meb1ma.js";import{_ as Me}from"./nicon-title.vue-l5va2e26.js";import{D as H}from"./constants-b32h69zq.js";import{u as Ue,a as Fe}from"./state-components-i9ev6w42.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";const Ge={class:"markdown-body"},Ae={__name:"components",setup(D,{expose:l}){return l({frontmatter:{}}),(p,d)=>(o(),m("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(D){const l=D,v=P(()=>l.component.pascalName||K(l.component.name||l.component.__name||l.component.kebabName||""));return(p,d)=>(o(),m("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:""},oe=G({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(D){const l=D,v=P(()=>l.component.pascalName||K(l.component.name||l.component.__name||l.component.kebabName||"")),p=P(()=>l.component.filePath||l.component.file||l.component.__file||""),d=ie();return(s,h)=>{const i=ne,x=X,a=Q,w=ee;return o(),m("div",ze,[n("div",Ee,[u(i,{component:s.component},null,8,["component"]),s.component.meta?.docs&&typeof s.component.meta.docs=="string"?(o(),b(x,{key:0,title:"Open docs","flex-none":"",n:"xs",to:s.component.meta.docs,target:"_blank",icon:"carbon-catalog"},{default:c(()=>[...h[1]||(h[1]=[E(" Docs ",-1)])]),_:1},8,["to"])):g("",!0),u(x,{title:"Copy name","flex-none":"",n:"xs",icon:"carbon-copy",onClick:h[0]||(h[0]=_=>$(d)(`<${v.value}></${v.value}>`,"component-name"))},{default:c(()=>[...h[2]||(h[2]=[E(" Copy ",-1)])]),_:1}),s.component.global?(o(),b(a,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):g("",!0)]),n("div",We,[p.value?(o(),b(w,{key:0,filepath:p.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):g("",!0)]),s.dependents?(o(),m("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?(o(),m("div",He,[(o(!0),m(B,null,M(s.dependents,_=>(o(),b(w,{key:_,filepath:_},null,8,["filepath"]))),128))])):g("",!0)])):g("",!0),s.dependencies?(o(),m("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?(o(),m("div",Ze,[(o(!0),m(B,null,M(s.dependencies,_=>(o(),b(w,{key:_,filepath:_},null,8,["filepath"]))),128))])):g("",!0)])):g("",!0),j(s.$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:""},on=G({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(D){const l=D,v=F(),p=F(),d=re(),s=ye(),h=ue(),i=me(),x=ce(),{componentsGraphShowNodeModules:a,componentsGraphShowGlobalComponents:w,componentsGraphShowPages:_,componentsGraphShowLayouts:k,componentsGraphShowWorkspace:S}=J("ui"),f=F(),C=F(""),r=de(C,300),A=P(()=>{const V=l.relationships||[];if(f.value){let e=function(N){!N||t.has(N)||(t.add(N),N.deps.forEach(I=>{e(V.find(U=>U.id===I))}))};const t=new Set;return e(f.value),Array.from(t)}return V}),T=P(()=>{const V=A.value.map(t=>{const N=l.components.find(R=>R.filePath===t.id),I=h.value?.find(R=>R.file===t.id),U=x.value?.find(R=>R.file===t.id),L=t.id.includes("/node_modules/")?"lib":N?N.global?"global":"user":U?"layout":I?"page":"unknown";if(!a.value&&L==="lib"||!_.value&&L==="page"||!k.value&&L==="layout"||!S.value&&L==="user"&&i.value&&!t.id.startsWith(i.value.rootDir)||!w.value&&L==="global")return null;const q=L==="layout"?"hexagon":L==="page"?"square":"dot",y=r.value&&!t.id.toLowerCase().includes(r.value.toLowerCase());return{id:t.id,label:ae(t.id),group:L,shape:q,size:15+Math.min(t.deps.length/2,8),font:{color:y?"#8885":d.value==="dark"?"white":"black"},color:y?"#8885":f.value?.id===t.id?"#82c742":void 0,extra:{id:t.id,component:N,page:I,layout:U,relationship:t}}}).filter(t=>!!t),e=A.value.flatMap(t=>t.deps.map(N=>({from:t.id,to:N,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new Le(V),edges:e}}),te=P(()=>s.value?.component?l.relationships?.find(e=>e.id===s.value?.component?.filePath)?.deps?.map(e=>l.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),se=P(()=>s.value?.component?l.relationships?.filter(e=>e.deps.includes(s.value.component.filePath))?.map(e=>l.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);we(()=>{const V={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,V);e.on("click",t=>{const N=t.nodes?.[0],I=T.value.nodes.get(N).extra;s.value=I}),ke(T,()=>{e.setData(T.value)})});function le(){s.value=void 0}function ae(V){const e=l.components.find(t=>t.filePath===V);return e?e.pascalName:V.replace(/.*\/components\//,"").replace(/\.vue$/,"").replace(/\/index$/,"").split("/").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}function pe(){f.value=s.value?.relationship,s.value=void 0}return(V,e)=>{const t=Pe,N=Z,I=fe,U=oe,L=X,q=Se;return o(),m(B,null,[u(N,{ref_key:"navbar",ref:p,search:C.value,"onUpdate:search":e[6]||(e[6]=y=>C.value=y),absolute:"","left-0":"","right-0":"","top-0":""},{actions:c(()=>[n("div",Ke,[u(t,{modelValue:$(_),"onUpdate:modelValue":e[0]||(e[0]=y=>z(_)?_.value=y:null),n:"primary sm"},{default:c(()=>[...e[8]||(e[8]=[n("span",{op75:""},"Show pages",-1)])]),_:1},8,["modelValue"]),u(t,{modelValue:$(k),"onUpdate:modelValue":e[1]||(e[1]=y=>z(k)?k.value=y:null),n:"primary sm"},{default:c(()=>[...e[9]||(e[9]=[n("span",{op75:""},"Show layouts",-1)])]),_:1},8,["modelValue"]),u(t,{modelValue:$(S),"onUpdate:modelValue":e[2]||(e[2]=y=>z(S)?S.value=y:null),n:"primary sm"},{default:c(()=>[...e[10]||(e[10]=[n("span",{op75:""},"Show workspace",-1)])]),_:1},8,["modelValue"]),u(t,{modelValue:$(a),"onUpdate:modelValue":e[3]||(e[3]=y=>z(a)?a.value=y:null),n:"primary sm"},{default:c(()=>[...e[11]||(e[11]=[n("span",{op75:""},"Show node_modules",-1)])]),_:1},8,["modelValue"]),u(t,{modelValue:$(w),"onUpdate:modelValue":e[4]||(e[4]=y=>z(w)?w.value=y:null),n:"primary sm"},{default:c(()=>[...e[12]||(e[12]=[n("span",{op75:""},"Show global components",-1)])]),_:1},8,["modelValue"])]),f.value?(o(),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:e[5]||(e[5]=y=>f.value=void 0)},[...e[13]||(e[13]=[E(" Clear filter ",-1),n("div",{"i-carbon-close":""},null,-1)])])):g("",!0),e[14]||(e[14]=n("div",{"flex-auto":""},null,-1)),j(V.$slots,"default")]),_:3},8,["search"]),n("div",Qe,[n("div",{ref_key:"container",ref:v,"h-full":"","w-full":""},null,512),u(I,{absolute:"","bottom-3":"","left-3":"","border-0":"","n-glass-effect":"",p2:"",px3:"","text-sm":""},{default:c(()=>[...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}),u(q,{"model-value":!!(s.value&&s.value.component),top:p.value,border:"t l base","w-80":"",onClose:le},{default:c(()=>[s.value&&s.value.component?(o(),m("div",en,[u(U,{component:s.value.component,dependencies:te.value,dependents:se.value},null,8,["component","dependencies","dependents"]),n("div",nn,[u(L,{n:"primary solid",onClick:e[7]||(e[7]=y=>pe())},{default:c(()=>[...e[16]||(e[16]=[E(" Filter to this component ",-1)])]),_:1})])])):g("",!0)]),_:1},8,["model-value","top"])])],64)}}}),tn={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(D){const l=D,v=P(()=>l.component.filePath||l.component.file||l.component.__file||"");return(p,d)=>{const s=ne,h=oe,i=Ce("VDropdown"),x=Q,a=ee;return o(),m("div",tn,[u(i,null,{popper:c(()=>[u(h,{component:p.component,dependencies:p.dependencies,dependents:p.dependents,"w-100":"",pt3:""},null,8,["component","dependencies","dependents"])]),default:c(()=>[n("button",{"hover:text-primary":"",class:Ne(p.dependents&&p.dependents.length===0?"op50":"")},[u(s,{component:p.component},null,8,["component"])],2)]),_:1}),p.dependents?.length?(o(),m("sup",sn," x"+O(p.dependents?.length),1)):g("",!0),p.component.global?(o(),b(x,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):g("",!0),j(p.$slots,"default"),v.value?(o(),b(a,{key:2,filepath:v.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):g("",!0)])}}}),an={flex:"~ gap-2 items-center"},pn={pl4:""},rn=G({__name:"ComponentsList",props:{components:{},relationships:{}},setup(D){const l=D,v=F(""),p=F("all"),d=P(()=>{const x=l.components.map(a=>ve(a,l.relationships));return p.value==="using"?x.filter(a=>a.dependents?.length):p.value==="not-used"?x.filter(a=>!a.dependents?.length):x}),s={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 x=[],a=new Map,w=[],_=[],k={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 C=f.component;if(C.filePath&&_e(C.filePath)){const r=be(C.filePath);if(!r)return;r==="nuxt"?(C.meta??={},C.meta.docs??=s?.[C.pascalName],w.push(f),k.builtin++):(a.has(r)||a.set(r,[]),a.get(r).push(f),k.lib++)}else C.global&&!C.filePath?(_.push(f),k.runtime++):(x.push(f),k.user++)}),{count:k,user:x,builtin:w,lib:a,runtime:_}});return(x,a)=>{const w=ge,_=Ie,k=Z,S=ln,f=Te,C=Me;return o(),m(B,null,[u(k,{search:v.value,"onUpdate:search":a[1]||(a[1]=r=>v.value=r),pb3:""},{actions:c(()=>[j(x.$slots,"default")]),default:c(()=>[n("div",an,[u(w,{icon:"carbon-filter",op50:""}),u(_,{modelValue:p.value,"onUpdate:modelValue":a[0]||(a[0]=r=>p.value=r),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?(o(),b(f,{key:0,icon:"carbon-nominal",text:"User components",open:i.value.user.length<=$(H),description:`Total components: ${i.value.count.user}`},{default:c(()=>[(o(!0),m(B,null,M(i.value.user,r=>(o(),b(S,W({key:r.component.filePath},{ref_for:!0},r),null,16))),128))]),_:1},8,["open","description"])):g("",!0),i.value.runtime.length?(o(),b(f,{key:1,icon:"carbon-load-balancer-global",open:i.value.runtime.length<=$(H),text:"Runtime components",description:`Total components: ${i.value.count.runtime}`},{default:c(()=>[(o(!0),m(B,null,M(i.value.runtime,r=>(o(),b(S,W({key:r.component.filePath},{ref_for:!0},r),null,16))),128))]),_:1},8,["open","description"])):g("",!0),i.value.builtin.length?(o(),b(f,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${i.value.count.builtin}`},{default:c(()=>[(o(!0),m(B,null,M(i.value.builtin,r=>(o(),b(S,W({key:r.component.filePath},{ref_for:!0},r),null,16))),128))]),_:1},8,["description"])):g("",!0),i.value.lib.size?(o(),b(f,{key:3,open:i.value.count.lib<=$(H),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${i.value.count.lib} components from ${i.value.lib.size} packages`},{default:c(()=>[(o(!0),m(B,null,M(i.value.lib.entries(),([r,A])=>(o(),m("div",{key:r,"ml-2":""},[u(C,{text:`${r} (${A.length})`,py1:"",op50:""},null,8,["text"]),n("div",pn,[(o(!0),m(B,null,M(A,T=>(o(),b(S,W({key:T.component.filePath},{ref_for:!0},T),null,16))),128))])]))),128))]),_:1},8,["open","description"])):g("",!0)],64)}}}),un={relative:"","h-full":"","of-auto":""},mn={"flex-none":"",flex:"~ gap3"},Pn=G({__name:"components",setup(D){const l=xe(),v=Ue(),p=Fe(),{componentsView:d}=J("ui");function s(){l.value?.inspector?.enable()}function h(){d.value=d.value==="list"?"graph":"list"}return(i,x)=>{const a=X,w=Ae,_=De,k=$e("tooltip");return o(),m(B,null,[n("div",un,[(o(),b(Ve($(d)==="list"?rn:on),{components:$(v),relationships:$(p)},{default:c(()=>[n("div",mn,[Y(u(a,{"text-lg":"",border:!1,icon:$(d)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:h},null,8,["icon"]),[[k,"Toggle View",void 0,{"bottom-end":!0}]]),$(l)?.inspector?.isAvailable?Y((o(),b(a,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:s},null,512)),[[k,"Inspect Vue components",void 0,{"bottom-end":!0}]]):g("",!0)])]),_:1},8,["components","relationships"]))]),u(_,null,{default:c(()=>[u(w)]),_: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-ho3nn7tc.js";import{_ as S}from"./filepath-item.vue-e693vfym.js";import{k as q}from"./index-jc4yj4to.js";import{C as y}from"./constants-b32h69zq.js";import{p as z,q as r,Z as J,U as i,$ as s,V as m,a0 as a,a4 as L,J as p,a1 as l,ab as c,a8 as _,X as b,u as k,F as x,ag as M}from"./vendor/json-editor-vue-gd4lkf0o.js";const O={rounded:"","font-mono":""},T={key:0,"text-primary":""},W={key:0},X={title:"Vue Directive"},Z={"max-w-100":""},A={px4:"",py3:"","text-sm":""},G={flex:"~ gap2",n:"primary xs"},H={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},K={"text-sm":""},P={"text-primary":""},Q={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},R={key:1,"text-sm":"",op50:""},ne=z({__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=q(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"))),v=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 w=E,I=j,f=F,V=S,B=J("VDropdown");return s(),i(B,{disabled:!o.metadata},{popper:m(()=>[a("div",Z,[a("div",A,[e.item.meta?.description?(s(),i(I,{key:0,tag:"div",pb3:"","text-sm":"",markdown:e.item.meta.description},null,8,["markdown"])):l("",!0),a("div",G,[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)])]),_: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)])]),_:1})):l("",!0),v.value?(s(),i(f,{key:1,icon:"carbon-catalog",to:v.value,target:"_blank"},{default:m(()=>[...t[4]||(t[4]=[c(" Docs ",-1)])]),_:1},8,["to"])):l("",!0)])]),a("div",H,[n.value?(s(),p(x,{key:0},[a("div",K,[t[5]||(t[5]=a("span",{op50:""},"It has been referenced ",-1)),a("strong",P,_(n.value),1),t[6]||(t[6]=a("span",{op50:""}," times by:",-1))]),a("div",Q,[(s(!0),p(x,null,M(N.value,d=>(s(),i(V,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),p("div",R," Not in use via auto import. "))])])]),default:m(()=>[a("button",{"hover:text-primary":"",class:L([e.metadata&&!n.value?"op30 hover:op100":"",e.classes])},[a("code",O,[c(_(u.value)+" ",1),n.value&&e.counter?(s(),p("sup",T,"x"+_(n.value),1)):l("",!0)]),e.isDirective?(s(),p("sup",W,[a("abbr",X,[b(w,{icon:"tabler:hexagon-letter-d"})])])):l("",!0)],2)]),_:1},8,["disabled"])}}});export{ne as _};
@@ -1 +0,0 @@
1
- import{a4 as M,ba as j,bb as E,bc as N,a6 as V,l as B,ag as k,bd as D,r as I,n as L,j as P,aa as W}from"#entry";import{p as $,k as C,q as x,r as O,E as q,z as R,w as _,M as S,J as U,$ as n,U as u,V as y,a0 as r,ab as w,a8 as A,u as T,af as F,X}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as z}from"./launch-page.vue-mubr1qiq.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./nmarkdown.vue-ho3nn7tc.js";import"./client-kvgyopwa.js";const h=new Map,G=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=M(),d=C(),s=x(()=>m.tab.name),e=C(),t=O(j(d));q(()=>{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))}}),J={flex:"~ col gap2",mxa:"","items-center":""},H={"text-xl":""},K={"text-rose":""},ne=$({__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 q(()=>{t.value?t.value.requireAuth&&!k.value&&D():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(i,a)=>{const v=P,p=W,o=G,l=z,b=L;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(I).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[X(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",J,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",H,[a[1]||(a[1]=w(" Tab ",-1)),r("code",K,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,ai as i,ac as p,$ as _,U as m}from"./vendor/json-editor-vue-gd4lkf0o.js";const D=s({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(u){const t=r();return(o,e)=>{const n=c,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 +0,0 @@
1
- import{_ as A}from"./nselect.vue-j457efs9.js";import{u as E,c as F,a as W,_ as q}from"#entry";import{_ as z}from"./nswitch.vue-m7rzt1v6.js";import{_ as J}from"./ndropdown.vue-mt2skirs.js";import{_ as O}from"./ncode-block.vue-nph7f5ph.js";import{_ as X}from"./ndrawer.vue-bscihm5p.js";import{A as h,d as x}from"./vendor/quicktype-core-jxekulwx.js";import{p as G,k,q as N,x as C,U as c,a1 as m,$ as n,X as d,V as r,a0 as i,J as f,F as D,ag as $,u as _,a8 as V,ae as H}from"./vendor/json-editor-vue-gd4lkf0o.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./client-kvgyopwa.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
- `)}),j=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 S=W();function B(){S(y.value||"")}return(e,t)=>{const w=A,u=q,p=z,L=J,I=O,T=X;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,$(_(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,$(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: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:j.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-b1meb1ma.js";import{_ as H}from"./ncheckbox.vue-cowm3nmm.js";import{g as M}from"./color-mt9xuhgy.js";import{_ as I}from"./nbadge-hbh0pw7g.js";import{p as V,q as R,U as y,$ as l,V as d,ab as P,W as j,a8 as k,a2 as z,k as p,J as u,F as x,a0 as t,X as s,a1 as $,ag as B,a4 as E,u as N}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as W,p as O}from"#entry";import{_ as q}from"./filepath-item.vue-e693vfym.js";import{_ as J}from"./ncode-block.vue-nph7f5ph.js";import"./nicon-title.vue-l5va2e26.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./client-kvgyopwa.js";const K=V({__name:"NBadgeHashed",props:{text:{}},setup(_){const i=_,c=R(()=>{const a=M(i.text,50,60),r=M(i.text,50,60,.05);return{color:a,background:r}});return(a,r)=>(l(),y(I,{style:z(c.value)},{default:d(()=>[P(k(a.text),1),j(a.$slots,"default")]),_:3},8,["style"]))}}),L={flex:"~ gap-2 col",mb4:""},X={flex:"~ gap-3 items-center"},A={key:0,flex:"~ gap-1","items-center":"",p1:"",border:"~ base rounded"},G={"max-w-full":"","of-auto":""},Q={"text-center":"",op50:""},Y={flex:"~",px4:""},Z={key:0,op50:""},ee={px2:"","text-center":""},te={"of-auto":""},oe=V({__name:"DebugModuleMutationRecords",props:{moduleMutationRecords:{}},setup(_){const i=_;function c(n){return n.startsWith("/")||n.match(/^[a-z]:[\\/]/i)}const a=p(!1),r=p(!1),v=p(!1),b=p(!1),w=p(!1),m=p(""),S=R(()=>{let n=i.moduleMutationRecords;return a.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!=="{}")),m.value&&(n=n.filter(e=>e.name===m.value)),n});return(n,e)=>{const f=H,g=K,F=W,U=q,T=J;return l(),u(x,null,[t("div",L,[t("div",X,[s(f,{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=o=>a.value=o),n:"primary"},{default:d(()=>[...e[6]||(e[6]=[t("span",{"ws-nowrap":"",op75:""},"Builtin Modules",-1)])]),_:1},8,["modelValue"]),s(f,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=o=>r.value=o),n:"primary"},{default:d(()=>[...e[7]||(e[7]=[t("span",{"ws-nowrap":"",op75:""},"Templates",-1)])]),_:1},8,["modelValue"]),s(f,{modelValue:v.value,"onUpdate:modelValue":e[2]||(e[2]=o=>v.value=o),n:"primary"},{default:d(()=>[...e[8]||(e[8]=[t("span",{"ws-nowrap":"",op75:""},"Transpile",-1)])]),_:1},8,["modelValue"]),s(f,{modelValue:b.value,"onUpdate:modelValue":e[3]||(e[3]=o=>b.value=o),n:"primary"},{default:d(()=>[...e[9]||(e[9]=[t("span",{"ws-nowrap":"",op75:""},"Plugins",-1)])]),_:1},8,["modelValue"]),s(f,{modelValue:w.value,"onUpdate:modelValue":e[4]||(e[4]=o=>w.value=o),n:"primary"},{default:d(()=>[...e[10]||(e[10]=[t("span",{"ws-nowrap":"",op75:""},"Empty Initial",-1)])]),_:1},8,["modelValue"]),m.value?(l(),u("div",A,[s(g,{"font-mono":"",text:m.value},null,8,["text"]),s(F,{icon:"carbon-close",border:!1,onClick:e[5]||(e[5]=o=>m.value="")})])):$("",!0)])]),t("table",G,[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,B(S.value,o=>(l(),u("tr",{key:n.moduleMutationRecords.indexOf(o),border:"b dashed transparent hover:base"},[t("td",Q,[t("div",null,k(n.moduleMutationRecords.indexOf(o)+1),1)]),t("td",null,[o.name&&c(o.name)?(l(),y(U,{key:0,filepath:o.name},null,8,["filepath"])):(l(),y(g,{key:1,role:"button","font-mono":"",text:o.name,onClick:h=>m.value=o.name},null,8,["text","onClick"]))]),t("td",null,[t("code",Y,[(l(!0),u(x,null,B(o.keys,(h,C)=>(l(),u(x,{key:C},[t("span",null,k(h),1),C<o.keys.length-1?(l(),u("span",Z," . ")):$("",!0)],64))),128))])]),t("td",ee,[s(g,{"font-mono":"",text:o.method||"=",class:E(o.method?"":"saturate-0")},null,8,["text","class"])]),t("td",te,[s(T,{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=V({__name:"debug",setup(_){const i=O();return(c,a)=>{const r=D;return N(i)?(l(),u("div",le,[s(r,{icon:"carbon-container-image-push-pull",text:"Module Mutation Records",description:"Records of module mutations to nuxt options"},{default:d(()=>[s(oe,{"module-mutation-records":N(i).moduleMutationRecords||[]},null,8,["module-mutation-records"])]),_:1})])):(l(),u("div",ne,[...a[0]||(a[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};
@@ -1 +0,0 @@
1
- import{b as o}from"#entry";import{J as t,$ as s,a0 as r,W as a}from"./vendor/json-editor-vue-gd4lkf0o.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";const n={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,f){return s(),t("div",c,[r("div",l,[a(e.$slots,"default")])])}const u=o(n,[["render",d]]);export{u as default};
@@ -1 +0,0 @@
1
- import{p as i,q as u,J as d,$ as f,a4 as l,W as o,ab as p,a0 as c,a8 as a}from"./vendor/json-editor-vue-gd4lkf0o.js";const m={"ml-1":"","text-xs":"",op50:""},g=i({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(n){const t=n;function s(e){return t.color?e?(e=e*t.factor,e<.5?"text-gray:50":e>1e3?"text-red-400":e>500?"text-orange-400":e>200?"text-yellow-400":""):"text-gray-400":""}const r=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(e,x)=>(f(),d("div",{class:l(s(e.duration))},[o(e.$slots,"before"),p(" "+a(r.value[0]),1),c("span",m,a(r.value[1]),1),o(e.$slots,"after")],2))}});export{g as _};
@@ -1 +0,0 @@
1
- import{b as a,d as i,e as u}from"#entry";import{J as c,$ as l,a0 as e,a8 as r,X as d,V as p,ab as f}from"./vendor/json-editor-vue-gd4lkf0o.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},b=["textContent"],h=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=u;return l(),c("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,b),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,h),e("div",x,[d(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:p(()=>[f(r(t.backHome),1)]),_:1})])])])}}},N=a(y,[["__scopeId","data-v-f5f8c093"]]);export{N as default};
@@ -1 +0,0 @@
1
- .spotlight[data-v-f5f8c093]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-f5f8c093]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-f5f8c093]{background-color:#ffffff4d}.gradient-border[data-v-f5f8c093]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-f5f8c093]{background-color:#1414144d}.gradient-border[data-v-f5f8c093]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-f5f8c093]:before{background-size:400% auto;border-radius:.5rem;content:"";inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-f5f8c093]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-f5f8c093]{position:fixed}.left-0[data-v-f5f8c093]{left:0}.right-0[data-v-f5f8c093]{right:0}.z-10[data-v-f5f8c093]{z-index:10}.z-20[data-v-f5f8c093]{z-index:20}.grid[data-v-f5f8c093]{display:grid}.mb-16[data-v-f5f8c093]{margin-bottom:4rem}.mb-8[data-v-f5f8c093]{margin-bottom:2rem}.max-w-520px[data-v-f5f8c093]{max-width:520px}.min-h-screen[data-v-f5f8c093]{min-height:100vh}.w-full[data-v-f5f8c093]{width:100%}.flex[data-v-f5f8c093]{display:flex}.cursor-pointer[data-v-f5f8c093]{cursor:pointer}.place-content-center[data-v-f5f8c093]{place-content:center}.items-center[data-v-f5f8c093]{align-items:center}.justify-center[data-v-f5f8c093]{justify-content:center}.overflow-hidden[data-v-f5f8c093]{overflow:hidden}.bg-white[data-v-f5f8c093]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-f5f8c093]{padding-left:1rem;padding-right:1rem}.px-8[data-v-f5f8c093]{padding-left:2rem;padding-right:2rem}.py-2[data-v-f5f8c093]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-f5f8c093]{text-align:center}.text-8xl[data-v-f5f8c093]{font-size:6rem;line-height:1}.text-xl[data-v-f5f8c093]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-f5f8c093]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-f5f8c093]{font-weight:300}.font-medium[data-v-f5f8c093]{font-weight:500}.leading-tight[data-v-f5f8c093]{line-height:1.25}.font-sans[data-v-f5f8c093]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-f5f8c093]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-f5f8c093]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-f5f8c093]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-f5f8c093]{padding-left:0;padding-right:0}.sm\:px-6[data-v-f5f8c093]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-f5f8c093]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-f5f8c093]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-f5f8c093]{font-size:1.25rem;line-height:1.75rem}}
@@ -1 +0,0 @@
1
- import{b as s,d as a}from"#entry";import{J as i,$ as u,a0 as e,a8 as o}from"./vendor/json-editor-vue-gd4lkf0o.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},y=s(f,[["__scopeId","data-v-0818c0bd"]]);export{y as default};
@@ -1 +0,0 @@
1
- .spotlight[data-v-0818c0bd]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-0818c0bd]{position:fixed}.-bottom-1\/2[data-v-0818c0bd]{bottom:-50%}.left-0[data-v-0818c0bd]{left:0}.right-0[data-v-0818c0bd]{right:0}.grid[data-v-0818c0bd]{display:grid}.mb-16[data-v-0818c0bd]{margin-bottom:4rem}.mb-8[data-v-0818c0bd]{margin-bottom:2rem}.h-1\/2[data-v-0818c0bd]{height:50%}.max-w-520px[data-v-0818c0bd]{max-width:520px}.min-h-screen[data-v-0818c0bd]{min-height:100vh}.place-content-center[data-v-0818c0bd]{place-content:center}.overflow-hidden[data-v-0818c0bd]{overflow:hidden}.bg-white[data-v-0818c0bd]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-0818c0bd]{padding-left:2rem;padding-right:2rem}.text-center[data-v-0818c0bd]{text-align:center}.text-8xl[data-v-0818c0bd]{font-size:6rem;line-height:1}.text-xl[data-v-0818c0bd]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-0818c0bd]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-0818c0bd]{font-weight:300}.font-medium[data-v-0818c0bd]{font-weight:500}.leading-tight[data-v-0818c0bd]{line-height:1.25}.font-sans[data-v-0818c0bd]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-0818c0bd]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-0818c0bd]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-0818c0bd]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-0818c0bd]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-0818c0bd]{font-size:2.25rem;line-height:2.5rem}}
@@ -1 +0,0 @@
1
- import{w as k,a as c,A as g,a3 as b}from"#entry";import{p as C,q as B,J as t,$ as a,a0 as s,W as N,a1 as u,F as l,ab as d,a8 as r,a4 as $,u as m}from"./vendor/json-editor-vue-gd4lkf0o.js";const w={flex:"~ gap-2 items-center",class:"group"},E=["title"],F={key:0,op50:""},I={key:0,flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},D=C({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(f){const p=f,v=k(),h=c(),i=g(),n=B(()=>p.filepath&&i.value?b(p.filepath,i.value.rootDir):{path:p.filepath||""});return(e,o)=>(a(),t("span",w,[s("span",{class:$([e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath},[e.override?(a(),t(l,{key:0},[d(r(e.override),1)],64)):n.value.moduleName?(a(),t(l,{key:1},[s("span",null,r(n.value.moduleName),1),e.subpath?(a(),t("span",F,r(n.value.path.slice(n.value.moduleName.length)),1)):u("",!0)],64)):(a(),t(l,{key:2},[d(r(n.value.path),1)],64))],10,E),N(e.$slots,"default"),e.filepath?(a(),t("div",I,[s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:o[0]||(o[0]=y=>m(v)(e.filepath))},[...o[2]||(o[2]=[s("div",{"i-carbon-script-reference":""},null,-1)])]),s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Copy path",onClick:o[1]||(o[1]=y=>m(h)(e.filepath))},[...o[3]||(o[3]=[s("div",{"i-carbon-copy":""},null,-1)])])])):u("",!0)]))}});export{D as _};
@@ -1 +0,0 @@
1
- import{b as t}from"#entry";import{J as e,$ as r,W as s}from"./vendor/json-editor-vue-gd4lkf0o.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";const c={},n={"h-full":"","of-auto":""};function a(o,f){return r(),e("div",n,[s(o.$slots,"default")])}const d=t(c,[["render",a]]);export{d as default};
@@ -1 +0,0 @@
1
- import{g as f,_ as m}from"#entry";import{p as v,k as c,J as o,a1 as s,u as k,$ as a,F as g,a0 as r,X as l,H as u,V as i,W as _}from"./vendor/json-editor-vue-gd4lkf0o.js";const x={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"","bg-base":"",px8:"",py4:""},y=v({__name:"HelpFab",setup(w){const t=c(!1),{showHelpButtons:p}=f("ui");return(d,e)=>{const b=m;return k(p)?(a(),o(g,{key:0},[r("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:e[0]||(e[0]=n=>t.value=!t.value)},[...e[3]||(e[3]=[r("div",{"i-ri:question-mark":""},null,-1)])]),l(u,{name:"fade-in"},{default:i(()=>[t.value?(a(),o("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:e[1]||(e[1]=n=>t.value=!1)})):s("",!0)]),_:1}),l(u,{name:"slide-in"},{default:i(()=>[t.value?(a(),o("div",x,[_(d.$slots,"default"),l(b,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=n=>t.value=!1)})])):s("",!0)]),_:3})],64)):s("",!0)}}});export{y as _};
@@ -1 +0,0 @@
1
- import{_ as S}from"./duration-display.vue-juecltgn.js";import{g as T}from"./color-mt9xuhgy.js";import{p as $,k as H,q as w,J as h,$ as u,a0 as o,ab as l,a4 as p,F as y,ag as F,a8 as m,a2 as V,u as k,X as _,U as C,a1 as N,V as f}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as B}from"./nsection-block-b1meb1ma.js";import{_ as D}from"./help-fab.vue-le7iybnb.js";import{s as P,f as E}from"#entry";import"./nicon-title.vue-l5va2e26.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";const O={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},U={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},Y={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},q={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},J={"text-sm":""},R={"ws-nowrap":""},X={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-center":"","text-sm":""},M={"w-0":"","text-right":"","text-sm":""},Q=$({__name:"HooksTable",props:{hooks:{}},setup(x){const a=x,r=H("duration"),n=H("asc"),d={duration:(e,t)=>(t.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},g=w(()=>a.hooks.map(e=>e.start).sort((e,t)=>e-t)),b=w(()=>{const e=d[r.value],t=[...a.hooks].sort(e);return n.value==="desc"&&t.reverse(),t});function c(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function v(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function i(e){r.value===e?n.value=n.value==="asc"?"desc":"asc":r.value=e}return(e,t)=>{const I=S;return u(),h("table",O,[o("thead",j,[o("tr",null,[o("th",L,[o("button",{onClick:t[0]||(t[0]=s=>i("start"))},[t[5]||(t[5]=l(" Order ",-1)),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="start"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[1]||(t[1]=s=>i("name"))},[t[6]||(t[6]=l(" Hook name ",-1)),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="name"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[2]||(t[2]=s=>i("listener"))},[t[7]||(t[7]=l(" Listeners ",-1)),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="listener"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",U,[o("button",{onClick:t[3]||(t[3]=s=>i("executions"))},[t[8]||(t[8]=l(" Executions ",-1)),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="executions"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",Y,[o("button",{onClick:t[4]||(t[4]=s=>i("duration"))},[t[9]||(t[9]=l(" Duration ",-1)),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="duration"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(u(!0),h(y,null,F(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",q,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:V({color:("getHslColorFromStringHash"in e?e.getHslColorFromStringHash:k(T))(c(s.name))})},[o("code",J,m(c(s.name)),1)],4),o("td",R,[o("code",X,m(v(s.name)),1)]),o("td",G,m(s.listeners),1),o("td",K,m(s.executions.length+1),1),o("td",M,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),W={class:"markdown-body"},Z={__name:"hooks",setup(x,{expose:a}){return a({frontmatter:{}}),(n,d)=>(u(),h("div",W,[...d[0]||(d[0]=[o("h1",null,"Hooks",-1),o("p",null,[l("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")],-1)])]))}},ut=$({__name:"hooks",setup(x){const a=P(),r=E(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=Q,c=B,v=Z,i=D;return u(),h(y,null,[o("div",null,[n.value?.length?(u(),C(c,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n.value.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:n.value},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),k(a)?.length?(u(),C(c,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${k(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:k(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{ut as default};
@@ -1 +0,0 @@
1
- import{V as A,W as T,X as U,A as j,S as P,Y as X,I as Y}from"#entry";import{_ as q}from"./nselect-tabs.vue-hb4dua1x.js";import{_ as J}from"./nnavbar.vue-fe2vbqhk.js";import{_ as S}from"./filepath-item.vue-e693vfym.js";import{_ as W}from"./composable-item.vue-bd0qe28q.js";import{p as C,J as u,$ as a,F as k,ag as M,X as c,a0 as i,U as w,a1 as x,u as f,q as _,a8 as G,k as V,V as y}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as K}from"./nsection-block-b1meb1ma.js";import{_ as O}from"./help-fab.vue-le7iybnb.js";import{D as B}from"./constants-b32h69zq.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./nmarkdown.vue-ho3nn7tc.js";import"./client-kvgyopwa.js";import"./index-jc4yj4to.js";import"./nicon-title.vue-l5va2e26.js";const Q={flex:"~ wrap gap2",p2:"",pl4:""},R=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=S,e=W;return a(),u("div",null,[(a(!0),u(k,null,M(r.map.entries(),([l,m])=>(a(),u("div",{key:l},[c(o,{filepath:l,op50:"","hover:underline":""},null,8,["filepath"]),i("div",Q,[(a(!0),u(k,null,M(m,g=>(a(),w(e,{key:g.as,item:g,metadata:r.metadata,"is-directive":g.meta?.vueDirective===!0,filepath:l.match(/^[\w@]/)?void 0:l},null,8,["item","metadata","is-directive","filepath"]))),128))])]))),128))])}}}),Z={key:0,flex:"~ col gap-2 items-start"},ee=C({__name:"HelpImportsDirs",setup(D){const r=A();return(v,o)=>{const e=S;return f(r)?.dirs?(a(),u("div",Z,[(a(!0),u(k,null,M(f(r).dirs,l=>(a(),w(e,{key:l,filepath:l,"text-primary":""},null,8,["filepath"]))),128))])):x("",!0)}}}),te={flex:"~ gap-2 wrap",mb6:""},oe=C({__name:"HelpImportsModules",setup(D){const r=A(),v=_(()=>[...new Set(r.value?.imports.map(o=>T(o.from)).filter(o=>!!o&&!U(o)))]);return(o,e)=>(a(),u("div",te,[(a(!0),u(k,null,M(v.value,l=>(a(),u("code",{key:l,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},G(l),1))),128))]))}}),se={class:"markdown-body"},ae={__name:"imports",setup(D,{expose:r}){return r({frontmatter:{}}),(o,e)=>{const l=ee,m=oe;return a(),u("div",se,[e[0]||(e[0]=i("h1",null,"Auto imports",-1)),e[1]||(e[1]=i("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1)),e[2]||(e[2]=i("hr",null,null,-1)),e[3]||(e[3]=i("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),c(l),e[4]||(e[4]=i("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),c(m),e[5]||(e[5]=i("hr",null,null,-1)),e[6]||(e[6]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)),e[7]||(e[7]=i("h2",null,"Directives",-1)),e[8]||(e[8]=i("p",null,"Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1)),e[9]||(e[9]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/directory-structure/directives",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},le={key:0,relative:"","h-full":"","of-auto":""},re={key:0,flex:"~ gap-2 items-center lt-sm:col lt-sm:items-start"},ye=C({__name:"imports",setup(D){const r=j(),v=V("all"),o=V("all"),e=V(""),l=A(),m=_(()=>l.value?.metadata),g=_(()=>l.value?.imports.filter(d=>d.as||d.name).sort((d,n)=>(d.as||d.name).localeCompare(n.as||n.name))||[]),z=_(()=>new P(g.value,{keys:["from","as","name"]})),s=_(()=>{const d=new Map,n=new Map,I=new Map;let p=e.value?z.value.search(e.value).map(t=>t.item):g.value;const N=o.value;N==="composables"?p=p.filter(t=>t.meta?.vueDirective!==!0):N==="directives"&&(p=p.filter(t=>t.meta?.vueDirective===!0)),v.value==="using"&&m.value?p=p.filter(t=>(t.as||t.name)in m.value.injectionUsage):v.value==="not-used"&&m.value&&(p=p.filter(t=>!((t.as||t.name)in m.value.injectionUsage)));const h={user:0,lib:0,builtin:0};return p.forEach(t=>{const b=X(t.from)?U(T(t.from))?I:n:d;b.has(t.from)||b.set(t.from,[]),b.get(t.from).push(t),h[b===d?"user":b===n?"lib":"builtin"]++}),{user:d,lib:n,builtin:I,count:h}}),F=_(()=>o.value==="directives"?`${s.value.count.user} directives from ${s.value.user.size} modules`:`${s.value.count.user} composables from ${s.value.user.size} modules`),E=_(()=>o.value==="directives"?`${s.value.count.builtin} directives`:`${s.value.count.builtin} composables`),H=_(()=>o.value==="directives"?`${s.value.count.lib} directives from ${s.value.lib.size} packages`:`${s.value.count.lib} composables from ${s.value.lib.size} packages`);return(d,n)=>{const I=Y,p=q,N=J,h=R,t=K,b=ae,L=O;return a(),u(k,null,[f(r)?(a(),u("div",le,[c(N,{search:e.value,"onUpdate:search":n[2]||(n[2]=$=>e.value=$),pb3:""},{default:y(()=>[m.value?(a(),u("div",re,[c(I,{icon:"carbon-filter",op50:""}),c(p,{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=$=>v.value=$),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"]),c(p,{modelValue:o.value,"onUpdate:modelValue":n[1]||(n[1]=$=>o.value=$),n:"primary sm",options:[{label:"All",value:"all"},{label:"Composables",value:"composables"},{label:"Directives",value:"directives"}]},null,8,["modelValue"])])):x("",!0)]),_:1},8,["search"]),s.value.user.size?(a(),w(t,{key:0,open:s.value.count.user<=f(B),icon:o.value==="directives"?"tabler:hexagon-letter-d":"carbon-function",text:`User ${o.value==="directives"?"directives":"composables"}`,description:F.value},{default:y(()=>[c(h,{map:s.value.user,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","icon","text","description"])):x("",!0),s.value.builtin.size?(a(),w(t,{key:1,open:s.value.count.builtin<=f(B),icon:"simple-icons-nuxtdotjs",text:`Built-in ${o.value==="directives"?"directives":"composables"}`,description:E.value},{default:y(()=>[c(h,{map:s.value.builtin,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0),s.value.lib.size?(a(),w(t,{key:2,open:s.value.count.lib<=f(B),icon:"carbon-3d-mpr-toggle",text:`${o.value==="directives"?"Directives":"Composables"} from libraries`,description:H.value},{default:y(()=>[c(h,{map:s.value.lib,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0)])):x("",!0),c(L,null,{default:y(()=>[c(b)]),_:1})],64)}}});export{ye as default};
@@ -1 +0,0 @@
1
- import{f as y,g,h as b,_ as k,t as N,i as h,j as w}from"#entry";import{_ as V}from"./nlink.vue-gjku6j2r.js";import{_ as C}from"./ncheckbox.vue-cowm3nmm.js";import{p as B,k as L,U as u,$ as m,V as o,a0 as t,X as n,a1 as T,ab as l,u as j}from"./vendor/json-editor-vue-gd4lkf0o.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";const D={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},P={"max-w-190":"","text-lg":""},$={mb6:"",op50:""},E={p4:""},F={flex:"~ col gap-2",mxa:""},q=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){N.value=s.value,h.value=!1}function _(){a.value=!1,p.value.devtools.close()}return(S,e)=>{const f=b,r=V,i=k,x=C,v=w;return m(),u(v,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:o(()=>[t("div",D,[e[7]||(e[7]=t("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1)),t("p",P,[n(f,{"mr-0.5":"","inline-block":"","h-5":"","translate-y--1.1":"","align-mid":""}),e[1]||(e[1]=l(" is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!",-1)),e[2]||(e[2]=t("br",null,null,-1))]),t("p",$,[e[4]||(e[4]=l(" Learn more at ",-1)),n(r,{href:"https://devtools.nuxt.com/",target:"_blank",rel:"noopener noreferrer",n:"primary"},{default:o(()=>[...e[3]||(e[3]=[l(" devtools.nuxt.com ",-1)])]),_:1})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>[...e[5]||(e[5]=[t("span",null,"Get Started",-1)])]),_:1}),j(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:_},{default:o(()=>[...e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])]),_:1})):T("",!0)]),t("div",E,[t("div",F,[n(x,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=c=>s.value=c),n:"green6"},{default:o(()=>[e[8]||(e[8]=t("span",{op50:""},"Send anonymous statistics, help us improving DevTools",-1)),n(r,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op35:"",textContent:"Learn more"})]),_:1},8,["modelValue"])])])]),_:1})}}});export{q as default};
@@ -1 +0,0 @@
1
- import{n as w,o as y,_ as C,I as B,M as V,j as $}from"#entry";import{_ as v}from"./nmarkdown.vue-ho3nn7tc.js";import{p as I,U as o,$ as t,V as a,X as c,a0 as i,a1 as m,a8 as _,J as P,F,ag as L,Y as M,ab as T}from"./vendor/json-editor-vue-gd4lkf0o.js";const j={"text-xl":""},D={flex:"~ gap2 wrap"},U=I({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(l,{emit:p}){const d=l,u=p;function f(e,s){V("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const g=y,k=v,b=B,h=C,N=w,x=$;return t(),o(x,null,{default:a(()=>[c(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:a(()=>[c(g,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",j,_(e.title),1),e.description?(t(),o(k,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):m("",!0),i("div",D,[(t(!0),P(F,null,L(e.actions,(n,r)=>(t(),o(h,M({key:r,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0},{ref_for:!0},n.attrs,{onClick:E=>f(n,r)}),{default:a(()=>[n.pending?(t(),o(b,{key:0,icon:"carbon-circle-dash","animate-spin":""})):m("",!0),T(" "+_(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{U as _};
@@ -1 +0,0 @@
1
- import{_ as oe}from"./filepath-item.vue-e693vfym.js";import{w as Y,n as G,e as L,I as J,Z as Q,_ as S,r as q,E,M as ne,$ as W,a0 as X,S as se,A as le,Q as ae,q as ie,a1 as re}from"#entry";import{_ as ue,u as O,a as de}from"./state-modules-c2rs6wdq.js";import{_ as me}from"./duration-display.vue-juecltgn.js";import{p as D,q as I,U as C,$ as t,V as u,a0 as e,W as T,J as m,a1 as g,ab as k,a8 as b,u as j,a4 as F,X as s,F as B,ag as A,an as pe,k as P,H}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as ce}from"./nsection-block-b1meb1ma.js";import{_ as fe}from"./nicon-title.vue-l5va2e26.js";import{_ as Z}from"./ndropdown.vue-mt2skirs.js";import{_ as _e}from"./ncheckbox.vue-cowm3nmm.js";import{_ as ve}from"./nnavbar.vue-fe2vbqhk.js";import{_ as ge}from"./nbadge-hbh0pw7g.js";import{s as xe}from"./vue-virtual-scroller.esm-oaume2n6.js";import{_ as be}from"./ncode-block.vue-nph7f5ph.js";import{_ as ke}from"./nlink.vue-gjku6j2r.js";import{_ as he}from"./code-diff.vue-bq8bth0l.js";import{_ as ye}from"./help-fab.vue-le7iybnb.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./client-kvgyopwa.js";const $e={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},we={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},Ce={key:2},Ie={key:1,flex:"~ gap-2",title:"Documentation"},Me={key:2,flex:"~ gap-2"},Ne={key:0,flex:"~ gap-4 items-center"},Be={key:0,flex:"~ gap-2 items-center",op50:""},je={key:1,flex:"~ gap-2 items-center",op50:""},De={key:1},Pe={flex:"~ col","items-end":""},Ae={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Te=["src","alt"],Fe={key:1,"i-carbon-cube":"",ma:"","flex-none":"","text-4xl":"",op30:""},Se={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Ue=["src"],ze={flex:"","justify-end":""},Le="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Oe="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",Ve="https://github.com/",qe="https://www.npmjs.com/package/",V=D({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const v=N,a=I(()=>({...v.mod?.meta,...v.mod,...v.info})),{format:x}=Intl.NumberFormat(navigator.language||"en",{notation:"compact",maximumFractionDigits:1}),y=I(()=>x(a.value.stats?.stars||0)),l=I(()=>x(a.value.stats?.downloads||0)),r=Y();return(o,c)=>{const h=L,f=J,d=me,$=G;return t(),C($,{p4:"",flex:"~ gap2"},{default:u(()=>[e("div",$e,[T(o.$slots,"main",{},()=>[e("div",we,[o.mod.isPackageModule?(t(),C(h,{key:0,to:qe+(a.value.npm||a.value.name),target:"_blank",hover:"underline text-primary"},{default:u(()=>[k(b(a.value.name),1)]),_:1},8,["to"])):o.mod.entryPath?(t(),m("button",{key:1,role:"button",hover:"underline text-primary",onClick:c[0]||(c[0]=_=>j(r)(o.mod.entryPath))},b(a.value.name),1)):(t(),m("span",Ce,b(a.value.name),1)),T(o.$slots,"badge")]),a.value.description?(t(),m("div",{key:0,class:F(o.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},b(a.value.description),3)):g("",!0),c[3]||(c[3]=e("div",{"flex-auto":""},null,-1)),a.value.website?(t(),m("div",Ie,[c[1]||(c[1]=e("span",{"i-carbon-link":"","flex-none":"","text-lg":"",op50:""},null,-1)),s(h,{to:a.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:u(()=>[k(b(a.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):g("",!0),a.value.github?(t(),m("div",Me,[c[2]||(c[2]=e("span",{"i-carbon-logo-github":"","flex-none":"","text-lg":"",op50:""},null,-1)),s(h,{to:a.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:u(()=>[k(b(a.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):g("",!0)]),T(o.$slots,"items"),a.value.stats?(t(),m("div",Ne,[a.value.stats.stars?(t(),m("div",Be,[s(f,{icon:"carbon-star","flex-none":"","text-lg":""}),e("span",null,b(y.value),1)])):g("",!0),a.value.stats.downloads?(t(),m("div",je,[s(f,{icon:"carbon-download","flex-none":"","text-lg":""}),e("span",null,b(l.value),1)])):g("",!0)])):g("",!0),o.mod.timings?.setup?(t(),m("div",De,[s(d,{title:"Module Setup Time",flex:"~ items-center",duration:o.mod.timings.setup,factor:.5},{before:u(()=>[s(f,{icon:"carbon-time",mr2:"","flex-none":"","text-lg":"",op50:""})]),_:1},8,["duration"])])):g("",!0)]),e("div",Pe,[a.value.icon||o.mod.isPackageModule?(t(),m("div",Ae,[a.value.icon?(t(),m("img",{key:0,src:Le+a.value.icon,alt:o.mod.name,ma:""},null,8,Te)):(t(),m("div",Fe))])):g("",!0),a.value.maintainers?.length&&o.maintainers?(t(),m("div",Se,[(t(!0),m(B,null,A(a.value.maintainers,_=>(t(),C(h,{key:_.name,target:"_blank",to:Ve+_.github,title:_.name},{default:u(()=>[e("img",{src:Oe+_.github,"h-6":"","w-6":"","rounded-full":""},null,8,Ue)]),_:2},1032,["to","title"]))),128))])):g("",!0),o.$slots.actions?(t(),m(B,{key:2},[c[4]||(c[4]=e("div",{"flex-auto":""},null,-1)),e("div",ze,[T(o.$slots,"actions")])],64)):g("",!0)])]),_:3})}}}),Ee={key:0,flex:"~ gap-2",title:"Open on filesystem"},He={key:1,"mx--2":""},Ye=["onClick"],Ge={key:2,"mx--2":""},Je=["onClick"],Qe={op50:""},We={"text-green":""},Xe={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Ze={"text-sm":"",op50:""},Ke=D({__name:"ModuleItem",props:{mod:{}},setup(N){const v=N,a=I(()=>v.mod.info),x=I(()=>({...v.mod?.meta,...v.mod,...a.value})),y=Q();return(l,r)=>{const o=oe,c=L,h=ue,f=V;return t(),C(f,{mod:l.mod,info:a.value},{items:u(()=>[l.mod.entryPath?(t(),m("div",Ee,[r[0]||(r[0]=e("span",{"i-carbon-folder-move-to":"","flex-none":"","text-lg":"",op50:""},null,-1)),s(o,{filepath:l.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):g("",!0),x.value.npm?(t(),C(h,{key:x.value.npm,"package-name":x.value.npm,options:{dev:!0}},{default:u(({info:d,update:$,state:_,id:i,restart:n})=>[_==="running"?(t(),C(c,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:i?"/modules/terminals":void 0,onClick:w=>i?y.value=i:void 0},{default:u(()=>[...r[1]||(r[1]=[e("span",{"i-carbon-circle-dash":"","flex-none":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])]),_:1},8,["to","onClick"])):_==="updated"?(t(),m("div",He,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:n},[...r[2]||(r[2]=[e("span",{"i-carbon-intent-request-active":"","flex-none":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)])],8,Ye)])):d?.needsUpdate?(t(),m("div",Ge,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:w=>$()},[r[3]||(r[3]=e("span",{"i-carbon-intent-request-upgrade":"","flex-none":"","text-lg":"",op50:""},null,-1)),e("code",Qe,"v"+b(d.current),1),r[4]||(r[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",We,"v"+b(d.latest),1)],8,Je)])):d?.latest?(t(),m("div",Xe,[r[5]||(r[5]=e("span",{"i-carbon-cube":"","flex-none":"","text-lg":"",op50:""},null,-1)),e("code",Ze,"v"+b(d.current),1)])):g("",!0)]),_:1},8,["package-name"])):g("",!0)]),_:1},8,["mod","info"])}}}),Re=D({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:v}){const a=N,x=v,y=O(),l=I(()=>y.value.find(f=>f.name===a.item.npm)),r=I(()=>l.value&&l.value.isPackageModule),o=I(()=>l.value&&l.value.isPackageModule&&l.value.isUninstallable);async function c(f,d){const $=d==="install"?q.installNuxtModule:q.uninstallNuxtModule,_=await $(await E(),f.npm,!0);ne(`modules:${d}`,{moduleName:f.npm}),_.commands&&await W.start(f,_,d)&&(X.value.push({name:f.npm,info:f,processId:_.processId}),x("start"),await $(await E(),f.npm,!1))}const h={};return(f,d)=>{const $=ge,_=S,i=Z,n=V;return t(),C(n,{mod:h,role:r.value?"":"button",info:f.item,mb2:"","h-full":"",class:F(r.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:d[1]||(d[1]=w=>r.value?null:c(f.item,"install"))},pe({_:2},[r.value?{name:"badge",fn:u(()=>[s($,{n:"green",textContent:"Installed"}),o.value?(t(),C(i,{key:0,n:"sm green"},{trigger:u(({click:w})=>[s(_,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:p=>w()},null,8,["onClick"])]),default:u(()=>[s(_,{icon:"carbon-trash-can",n:"red",onClick:d[0]||(d[0]=w=>c(f.item,"uninstall"))},{default:u(()=>[...d[2]||(d[2]=[k(" Uninstall ",-1)])]),_:1})]),_:1})):g("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),et={"h-full":"",flex:"~ col gap-4"},tt={flex:"~ items-center"},ot={flex:"~ col","w-30":"","of-auto":""},nt={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},st={flex:"~ items-center gap-2"},lt={flex:"~ gap1","text-sm":"",op50:""},at={key:0},it={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},rt=D({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:v}){const a=v,x=de(),y=O(),l=["downloads","stars","updated","created"],r=P(!1),o=P(l[0]),c=P(!0),h={downloads:(i,n)=>i.stats.downloads-n.stats.downloads,stars:(i,n)=>i.stats.stars-n.stats.stars,created:(i,n)=>i.stats.createdAt-n.stats.createdAt,updated:(i,n)=>i.stats.publishedAt-n.stats.publishedAt},f=I(()=>x.value?.toSorted((i,n)=>h[o.value](i,n)*(r.value?1:-1))),d=P(""),$=I(()=>new se(x.value||[],{keys:["name","description","npm","category"],sortFn:(i,n)=>{const w=x.value?.[i.idx],p=x.value?.[n.idx];return w&&p?h[o.value](w,p)*(r.value?1:-1):i.score-n.score},threshold:.2})),_=I(()=>{let i=f.value;return c.value&&(i=(i||[]).filter(n=>!y.value.some(w=>w.name===n.name))),d.value?$.value.search(d.value).map(n=>n.item).filter(n=>i?.includes(n)):i});return(i,n)=>{const w=fe,p=S,U=J,K=Z,R=_e,ee=ve,te=Re;return t(),m("div",et,[s(w,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),s(ee,{search:d.value,"onUpdate:search":n[2]||(n[2]=M=>d.value=M),"no-padding":"","px-6":"","pb-3":"","pt-2":""},{actions:u(()=>[s(K,{direction:"end",n:"sm primary"},{trigger:u(({click:M})=>[e("div",tt,[s(p,{icon:r.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:n[0]||(n[0]=z=>r.value=!r.value)},null,8,["icon"]),s(p,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:z=>M()},{default:u(()=>[k(b(o.value)+" ",1),s(U,{icon:"carbon:chevron-down"})]),_:1},8,["onClick"])])]),default:u(()=>[e("div",ot,[(t(),m(B,null,A(l,M=>s(p,{key:M,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:z=>o.value=M},{default:u(()=>[e("span",nt,[k(b(M)+" ",1),o.value===M?(t(),C(U,{key:0,icon:"carbon:checkmark"})):g("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),default:u(()=>[e("div",st,[s(R,{modelValue:c.value,"onUpdate:modelValue":n[1]||(n[1]=M=>c.value=M),n:"primary md"},{default:u(()=>[...n[4]||(n[4]=[e("span",{op75:""},"Exclude installed modules",-1)])]),_:1},8,["modelValue"]),e("div",lt,[d.value||c.value?(t(),m("span",at,b(_.value?.length)+" matched · ",1)):g("",!0),e("span",null,b(j(x)?.length)+" modules in total",1)])])]),_:1},8,["search"]),e("div",it,[s(j(xe),{class:"scroller",items:_.value,"item-size":200,"key-field":"name"},{default:u(({item:M})=>[s(te,{item:M,onStart:n[3]||(n[3]=z=>a("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),ut={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},dt={capitalize:""},mt={op50:""},pt={flex:"~ gap-3",mt2:"","justify-end":""},ct=D({__name:"ModuleActionDialog",setup(N){const v=le(),a=Y(),x={};return(y,l)=>{const r=V,o=be,c=ke,h=he,f=ie,d=S,$=ae;return t(),C(j(W),null,{default:u(({resolve:_,args:i})=>[s($,{"model-value":!0,onClose:n=>_(!1)},{default:u(()=>[s(r,{mod:x,info:i[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",ut,[e("h2",{"text-xl":"",class:F(i[2]==="install"?"text-primary":"text-red")},[e("span",dt,b(i[2]),1),l[1]||(l[1]=k()),e("code",null,b(i[0].name),1),l[2]||(l[2]=k("? ",-1))],2),l[7]||(l[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(o,{code:i[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",mt,[l[3]||(l[3]=k(" Then your ",-1)),s(c,{role:"button",n:"primary",underline:"",onClick:l[0]||(l[0]=n=>j(a)(j(v)?._nuxtConfigFile)),textContent:"Nuxt config"}),l[4]||(l[4]=k(" will be updated as: ",-1))]),s(h,{from:i[1].configOriginal,to:i[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),l[8]||(l[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),k(". ")],-1)),e("div",pt,[s(f,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:u(()=>[...l[5]||(l[5]=[k(" Please make sure to backup your project first. ",-1)])]),_:1}),s(d,{onClick:n=>_(!1)},{default:u(()=>[...l[6]||(l[6]=[k(" Cancel ",-1)])]),_:1},8,["onClick"]),s(d,{n:"solid",capitalize:"",class:F(i[2]==="install"?"n-primary":"n-red"),onClick:n=>_(!0)},{default:u(()=>[k(b(i[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),ft={class:"markdown-body"},_t={__name:"modules",setup(N,{expose:v}){return v({frontmatter:{}}),(x,y)=>(t(),m("div",ft,[...y[0]||(y[0]=[e("h1",null,"Modules",-1),e("p",null,[k("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),e("code",null,"nuxt.config"),k(".")],-1),e("p",null,[k("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),k(" or install them directly inside the DevTools.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])]))}},vt={"h-full":"","w-full":"","of-auto":""},gt={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},xt=["src","alt"],bt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},kt={op75:""},ht={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},yt="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",qt=D({__name:"modules",setup(N){const v=P(!1),a=O(),x=Q(),y=I(()=>a.value.filter(r=>r.isPackageModule)),l=I(()=>a.value.filter(r=>!r.isPackageModule));return re(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{v.value=!0}}]),(r,o)=>{const c=Ke,h=G,f=L,d=ce,$=S,_=rt,i=ct,n=_t,w=ye;return t(),m(B,null,[e("div",vt,[s(d,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${y.value.length}`},{default:u(()=>[(t(!0),m(B,null,A(y.value,p=>(t(),C(c,{key:p.name,mod:p},null,8,["mod"]))),128)),(t(!0),m(B,null,A("processInstallingModules"in r?r.processInstallingModules:j(X),p=>(t(),C(f,{key:p.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:U=>x.value=p.processId},{default:u(()=>[s(h,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:u(()=>[e("div",gt,[e("img",{src:yt+p.info.icon,alt:p.info.name,ma:""},null,8,xt),o[4]||(o[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",bt,[o[5]||(o[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",kt,"Installing "+b(p.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(h,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:o[0]||(o[0]=p=>v.value=!0)},{default:u(()=>[...o[6]||(o[6]=[e("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),e("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1)])]),_:1})]),_:1},8,["description"]),l.value.length?(t(),C(d,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${l.value.length}`},{default:u(()=>[(t(!0),m(B,null,A(l.value,p=>(t(),m(B,{key:p.meta?.name||p.entryPath},[p.meta?.name||p.entryPath?(t(),C(c,{key:0,mod:p},null,8,["mod"])):g("",!0)],64))),128))]),_:1},8,["description"])):g("",!0),s(H,{name:"fade-in"},{default:u(()=>[v.value?(t(),m("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:o[1]||(o[1]=p=>v.value=!1)})):g("",!0)]),_:1}),s(H,{name:"slide-in"},{default:u(()=>[v.value?(t(),m("div",ht,[s($,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:o[2]||(o[2]=p=>v.value=!1)}),s(_,{onClose:o[3]||(o[3]=p=>v.value=!1)})])):g("",!0)]),_:1}),s(i)]),s(w,null,{default:u(()=>[s(n)]),_:1})],64)}}});export{qt as default};
@@ -1 +0,0 @@
1
- import{b as o}from"#entry";import{J as n,$ as s,W as t}from"./vendor/json-editor-vue-gd4lkf0o.js";const r={},c={class:"n-badge"};function _(e,a){return s(),n("span",c,[t(e.$slots,"default")])}const m=o(r,[["render",_]]);export{m as _};
@@ -1 +0,0 @@
1
- import{H as i,I as r}from"#entry";import{p,J as b,$ as u,ac as h,a0 as n,as as m,u as a,a3 as k,j as f,X as v,W as _,a4 as x}from"./vendor/json-editor-vue-gd4lkf0o.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-checkbox-box n-transition n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base"},I=p({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(c,{emit:t}){const e=i(c,"modelValue",t,{passive:!0});return(o,s)=>{const d=r;return u(),b("label",{class:"n-checkbox select-none items-center hover:n-checkbox-hover n-disabled:n-disabled",checked:a(e)||null,disabled:o.disabled||null},[h(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>f(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:o.disabled,onKeypress:s[1]||(s[1]=k(l=>e.value=!a(e),["enter"]))},null,40,y),[[m,a(e)]]),n("span",B,[v(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:x([a(e)?"":"op50","n-transition"])},[_(o.$slots,"default")],2)],8,V)}}});export{I as _};
@@ -1,2 +0,0 @@
1
- import{d as g}from"./client-kvgyopwa.js";import{p as k,q as d,z as v,J as n,$ as t,a4 as c,a0 as s,F as i,ag as x,a8 as _}from"./vendor/json-editor-vue-gd4lkf0o.js";const y=["innerHTML"],B=["textContent"],b=k({__name:"NCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},inline:{type:Boolean},grammarContextCode:{},transformRendered:{}},emits:["loaded"],setup(p,{emit:u}){const e=p,m=u,a=d(()=>{const o=e.lang==="text"?{code:e.code,supported:!1}:g.value?.devtools.renderCodeHighlight(e.code,e.lang,{grammarContextCode:e.grammarContextCode})||{code:e.code,supported:!1};return o.supported&&e.transformRendered&&(o.code=e.transformRendered(o.code)),o.supported&&v(()=>m("loaded")),o}),r=d(()=>["n-code-block shiki",e.lines&&!e.inline?"n-code-block-lines":""]);return(o,l)=>o.lang&&a.value.supported?(t(),n("pre",{key:0,class:c(r.value)},[s("code",{innerHTML:a.value.code},null,8,y)],2)):(t(),n("pre",{key:1,class:c(r.value)},[s("code",null,[(t(!0),n(i,null,x(o.code.split(`
2
- `),(C,f)=>(t(),n(i,{key:f},[s("span",{class:"line",textContent:_(C)},null,8,B),l[0]||(l[0]=s("br",null,null,-1))],64))),128))])],2))}});export{b as _};
@@ -1 +0,0 @@
1
- import{bi as n,a2 as b,_ as g}from"#entry";import{p as h,k as y,U as v,$ as l,V as k,J as B,a1 as C,Y as i,u as o,X as $,a0 as V,W as _,H as w}from"./vendor/json-editor-vue-gd4lkf0o.js";const x=["border"],N={relative:"","h-full":"","w-full":"","of-auto":""},T=h({__name:"NDrawer",props:{modelValue:{type:Boolean},top:{},left:{},autoClose:{type:Boolean},transition:{default:"right"}},emits:["close"],setup(m,{emit:c}){const e=m,f=c,a=y(),{height:u}=n(()=>e.top,void 0,{box:"border-box"}),s=typeof e.left=="string"&&e.left.startsWith("#")?document.querySelector(e.left)?.getBoundingClientRect().width:n(()=>e.left,void 0,{box:"border-box"}).width;b(a,()=>{e.modelValue&&e.autoClose&&f("close")},{ignore:["a","button","summary",'[role="dialog"]']});const d={right:{"enter-from-class":"transform translate-x-1/1","leave-to-class":"transform translate-x-1/1"},top:{"enter-from-class":"transform translate-y--1/1","leave-to-class":"transform translate-y--1/1"},bottom:{"enter-from-class":"transform translate-y-1/1","leave-to-class":"transform translate-y-1/1"}};return(t,r)=>{const p=g;return l(),v(w,i(d[t.transition],{"enter-active-class":"duration-200 ease-in","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100"}),{default:k(()=>[t.modelValue?(l(),B("div",i({key:0,ref_key:"el",ref:a,border:`${t.transition==="right"?"l":t.transition==="bottom"?"t":"b"} base`,flex:"~ col gap-1",class:{"right-0":t.transition==="right"||t.transition==="bottom"},absolute:"","bottom-0":"","z-10":"","z-20":"","of-auto":"","n-glass-effect":"","text-sm":"",style:{top:t.transition==="bottom"?"auto":`${o(u)}px`,left:t.transition==="right"&&!o(s)?"auto":`${o(s)}px`}},t.$attrs),[$(p,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",border:!1,onClick:r[0]||(r[0]=z=>t.$emit("close"))}),V("div",N,[_(t.$slots,"default")])],16,x)):C("",!0)]),_:3},16)}}});export{T as _};
@@ -1 +0,0 @@
1
- import{a2 as i,_ as p,H as u}from"#entry";import{p as m,k as c,J as f,$ as b,W as n,a0 as v,X as _,u as t,V as k,ab as V,a4 as B}from"./vendor/json-editor-vue-gd4lkf0o.js";const y=m({__name:"NDropdown",props:{modelValue:{type:Boolean},direction:{default:"start"}},setup(r,{emit:l}){const e=u(r,"modelValue",l,{passive:!0}),a=c();return i(a,()=>{e.value=!1}),(s,o)=>{const d=p;return b(),f("div",{ref_key:"el",ref:a,class:"relative"},[n(s.$slots,"trigger",{enabled:t(e),click:()=>e.value=!t(e)},()=>[_(d,{onClick:o[0]||(o[0]=g=>e.value=!t(e))},{default:k(()=>[...o[1]||(o[1]=[V(" Dropdown ",-1)])]),_:1})]),v("div",{class:B(["absolute z-10 border n-border-base rounded n-bg-base shadow n-transition",[t(e)?"op-100":"op0 pointer-events-none -translate-y-1",s.direction==="end"?"right-0":"left-0"]])},[n(s.$slots,"default")],2)],512)}}});export{y as _};
@@ -1 +0,0 @@
1
- import{p as o,J as a,$ as s,a1 as t,W as n,a4 as r,a0 as l,a8 as i}from"./vendor/json-editor-vue-gd4lkf0o.js";const c={flex:"~ gap-3","items-center":""},u=o({__name:"NIconTitle",props:{icon:{},text:{}},setup(p){return(e,m)=>(s(),a("div",c,[e.icon?(s(),a("div",{key:0,class:r(e.icon)},null,2)):t("",!0),n(e.$slots,"default",{},()=>[l("div",null,i(e.text),1)])]))}});export{u as _};
@@ -1 +0,0 @@
1
- import{e as s}from"#entry";import{p as l,q as i,U as p,$ as r,Y as u,V as c,W as m,J as _,a1 as k}from"./vendor/json-editor-vue-gd4lkf0o.js";const d={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},v=l({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(o){const t=o,n=i(()=>t.href||t.to);return(e,f)=>{const a=s;return r(),p(a,u(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:c(()=>[m(e.$slots,"default"),n.value&&e.target==="_blank"?(r(),_("div",d)):k("",!0)]),_:3},16,["class"])}}});export{v as _};
@@ -1 +0,0 @@
1
- import{d as o}from"./client-kvgyopwa.js";import{p as t,U as a,u as e,$ as r,af as s,a8 as d}from"./vendor/json-editor-vue-gd4lkf0o.js";const i=t({__name:"NMarkdown",props:{markdown:{},tag:{}},setup(m){return(n,p)=>n.markdown&&e(o)?.devtools?.renderMarkdown?(r(),a(s(n.tag||"span"),{key:0,class:"n-markdown",innerHTML:e(o).devtools.renderMarkdown(n.markdown)},null,8,["innerHTML"])):(r(),a(s(n.tag||"span"),{key:1,class:"n-markdown",textContent:d(n.markdown)},null,8,["textContent"]))}});export{i as _};
@@ -1 +0,0 @@
1
- import{v as l}from"#entry";import{p,J as i,$ as s,a4 as o,a0 as d,W as a,U as m,a1 as u}from"./vendor/json-editor-vue-gd4lkf0o.js";const f={flex:"~ gap4 wrap","items-center":""},b=p({__name:"NNavbar",props:{search:{},noPadding:{type:Boolean}},emits:["update:search"],setup(h,{emit:n}){const r=n;function t(e){r("update:search",e.target.value)}return(e,v)=>{const c=l;return s(),i("div",{flex:"~ col gap2 wrap",border:"b base","n-navbar-glass":"","flex-1":"",class:o([{p4:!e.noPadding}])},[d("div",f,[a(e.$slots,"search",{},()=>[e.search!==void 0?(s(),m(c,{key:0,placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:o({"px-3 py-2":!e.noPadding}),value:e.search,onInput:t},null,8,["class","value"])):u("",!0)]),a(e.$slots,"actions")]),a(e.$slots,"default")],2)}}});export{b as _};
@@ -1 +0,0 @@
1
- import{b as o}from"#entry";import{J as t,$ as r,W as n}from"./vendor/json-editor-vue-gd4lkf0o.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";const s={},c={relative:"","w-full":""};function a(e,l){return r(),t("div",c,[n(e.$slots,"default")])}const d=o(s,[["render",a]]);export{d as default};
@@ -1 +0,0 @@
1
- import{H as $,I as B,b as C}from"#entry";import{_ as b}from"./nicon-title.vue-l5va2e26.js";import{p as h,J as l,$ as a,F as u,a0 as s,a1 as p,a4 as r,X as w,u as i,V as N,W as t,U as k,ab as c,a8 as f,ac as V,ad as _}from"./vendor/json-editor-vue-gd4lkf0o.js";const S=["open"],x={"text-base":""},I={key:0,"text-sm":"",op50:""},T=h({__name:"NSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(v){const n=$(v,"open",void 0,{passive:!0});function d(e){n.value=e.target.open}return(e,o)=>{const m=B,g=b;return a(),l(u,null,[s("details",{open:i(n),onToggle:o[0]||(o[0]=(...y)=>d&&d(...y))},[s("summary",{class:r(["cursor-pointer select-none p4 hover:bg-active",e.collapse?"":"pointer-events-none"])},[w(g,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:r([i(n)?"op100":"op60",e.headerClass])},{default:N(()=>[s("div",null,[s("div",x,[t(e.$slots,"text",{},()=>[c(f(e.text),1)],!0)]),e.description||e.$slots.description?(a(),l("div",I,[t(e.$slots,"description",{},()=>[c(f(e.description),1)],!0)])):p("",!0)]),o[1]||(o[1]=s("div",{class:"flex-auto"},null,-1)),t(e.$slots,"actions",{},void 0,!0),e.collapse?(a(),k(m,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):p("",!0)]),_:3},8,["icon","text","class"])],2),o._lazyshow1||i(n)?(o._lazyshow1=!0,a(),l(u,null,[V(s("div",{class:r(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[t(e.$slots,"details",{},void 0,!0),s("div",{class:r([e.containerClass,"mt1"])},[t(e.$slots,"default",{},void 0,!0)],2),t(e.$slots,"footer",{},void 0,!0)],2),[[_,i(n)]])],64)):p("v-show-if",!0)],40,S),o[2]||(o[2]=s("div",{class:"x-divider"},null,-1))],64)}}}),H=C(T,[["__scopeId","data-v-95ac5573"]]);export{H as _};
@@ -1 +0,0 @@
1
- import{p as m,J as l,$ as t,F as c,ag as v,a4 as r,u as o,a0 as d,ac as f,a8 as _,aw as g,j as y}from"./vendor/json-editor-vue-gd4lkf0o.js";import{H as V}from"#entry";const h={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},x=["disabled","title"],B=["disabled","value","title"],F=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(i,{emit:p}){const a=V(i,"modelValue",p,{passive:!0});return(s,n)=>(t(),l("fieldset",h,[(t(!0),l(c,null,v(s.options,(e,b)=>(t(),l("label",{key:e.label,disabled:s.disabled,class:r(["relative n-border-base px-0.5em py-0.1em hover:n-bg-active",[b?"border-l n-border-base ml--1px":"",e.value===o(a)?"n-bg-active":""]]),title:e.label},[d("div",{class:r([e.value===o(a)?"":"op35"])},_(e.label),3),f(d("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>y(a)?a.value=u:null),type:"radio",disabled:s.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,B),[[g,o(a)]])],10,x))),128))]))}});export{F as _};
@@ -1 +0,0 @@
1
- import{H as p,I as m}from"#entry";import{p as f,J as l,$ as o,a4 as n,W as t,ac as b,U as h,a1 as d,aC as v,u as y,a0 as V,j as k,a8 as B}from"./vendor/json-editor-vue-gd4lkf0o.js";const g=["disabled"],w={key:0,value:"",disabled:"",hidden:""},$=f({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(i,{emit:r}){const a=p(i,"modelValue",r,{passive:!0});return(e,s)=>{const c=m;return o(),l("div",{class:n(["n-select flex flex items-center border rounded n-bg-base px-2 py-1 focus-within:border-context focus-within:n-focus-base",e.disabled?"border-gray:10":"n-border-base"])},[t(e.$slots,"icon",{},()=>[e.icon?(o(),h(c,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):d("",!0)]),b(V("select",{"onUpdate:modelValue":s[0]||(s[0]=u=>k(a)?a.value=u:null),disabled:e.disabled,class:n(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(o(),l("option",w,B(e.placeholder),1)):d("",!0),t(e.$slots,"default")],10,g),[[v,y(a)]])],2)}}});export{$ as _};
@@ -1 +0,0 @@
1
- import{p as n,aq as o,ar as i,J as c,$ as r,ac as u,a0 as l,W as h,as as b,a3 as p}from"./vendor/json-editor-vue-gd4lkf0o.js";const m=["checked","disabled"],v=["disabled"],k=n({__name:"NSwitch",props:o({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const s=i(t,"modelValue");return(a,e)=>(r(),c("label",{class:"n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled",checked:s.value||null,disabled:a.disabled||null},[u(l("input",{"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d),type:"checkbox",class:"peer absolute op0",disabled:a.disabled,onKeypress:e[1]||(e[1]=p(d=>s.value=!s.value,["enter"]))},null,40,v),[[b,s.value]]),e[2]||(e[2]=l("div",{class:"n-switch-slider n-transition n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base"},[l("div",{class:"n-switch-thumb n-transition n-checked:n-switch-thumb-checked"})],-1)),h(a.$slots,"default")],8,m))}});export{k as _};
@@ -1,3 +0,0 @@
1
- import{at as oe,a as ae,w as H,n as J,_ as U,au as G,av as ne,aw as se,ax as re,b as ie,ay as le,az as ce,c as de,y as pe,z as ue,C as me,aA as E,v as ge}from"#entry";import{_ as he}from"./nnavbar.vue-fe2vbqhk.js";import{_ as P}from"./nlink.vue-gjku6j2r.js";import{_ as q}from"./nsection-block-b1meb1ma.js";import{_ as _e}from"./ncode-block.vue-nph7f5ph.js";import{p as N,q as C,k as I,U as A,a1 as y,$ as t,V as h,a0 as e,J as n,F as S,ag as B,a4 as O,a8 as u,X as p,ab as $,u as g,a2 as L,am as fe,z as ve,ai as be,ac as D,a3 as we}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as xe}from"./help-fab.vue-le7iybnb.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./nicon-title.vue-l5va2e26.js";import"./client-kvgyopwa.js";const K=[{name:"title",suggestion:"required",head:{title:"[title]"},seoMeta:{title:"[title]"},docs:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title",description:"A concise and descriptive title for the browser that accurately summarizes the content of the page."},{name:"description",suggestion:"required",head:{meta:[{name:"description",content:"[description]"}]},seoMeta:{description:"[description]"},description:"A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results."},{name:"icon",suggestion:"recommended",head:{link:[{rel:"icon",type:"image/png",href:"/favicon.png"}]},description:"A small image that appears in the browser tab and bookmark menu to help users easily identify the page."},{name:"lang",suggestion:"recommended",head:{htmlAttrs:{lang:"en"}},description:"The primary language of the page to help search engines and browsers understand the content."},{name:"og:title",suggestion:"recommended",head:{meta:[{property:"og:title",content:"[og:title]"}]},seoMeta:{ogTitle:"[og:title]"},docs:"https://ogp.me/#metadata",description:"A title for the link preview used by social media platforms."},{name:"og:description",suggestion:"recommended",head:{meta:[{property:"og:description",content:"[og:description]"}]},seoMeta:{ogDescription:"[og:description]"},docs:"https://ogp.me/#metadata",description:"A description for the link preview used by social media platforms."},{name:"og:image",suggestion:"recommended",head:{meta:[{property:"og:image",content:"[og:image]"}]},seoMeta:{ogImage:"[og:image]"},docs:"https://ogp.me/#metadata",description:"An image for the link preview used by social media platforms."},{name:"og:url",suggestion:"recommended",head:{meta:[{property:"og:url",content:"[og:url]"}]},seoMeta:{ogUrl:"[og:url]"},docs:"https://ogp.me/#metadata",description:"A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page."},{name:"twitter:title",suggestion:"optional",head:{meta:[{name:"twitter:title",content:"[twitter:title]"}]},seoMeta:{twitterTitle:"[twitter:title]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A title for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:description",suggestion:"optional",head:{meta:[{name:"twitter:description",content:"[twitter:description]"}]},seoMeta:{twitterDescription:"[twitter:description]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A description for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:image",suggestion:"optional",head:{meta:[{name:"twitter:image",content:"[twitter:image]"}]},seoMeta:{twitterImage:"[twitter:image]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"An image for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:card",suggestion:"optional",head:{meta:[{name:"twitter:card",content:"summary"}]},seoMeta:{twitterCard:"summary"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"The type of Twitter card to use, which determines the type of card to display in link previews on Twitter."}],ye={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},ke=["onClick"],$e={key:0,"x-divider":""},Te={key:1,"x-divider":""},Se={flex:"~ gap-1 items-center",class:"px2 pt2",lg:"px4 py2"},Ce={"w-full":"",p2:"",op75:""},Ne={key:1,m4:"",flex:"~ col gap-2"},Me={flex:"~ gap-1 wrap items-center"},Oe={key:1},Ae={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},Ie=N({__name:"OpenGraphMissingTabs",props:{tags:{},matchedRouteFilepath:{}},setup(v){const s=v,l=C(()=>K.filter(d=>!s.tags?.some(o=>o.name===d.name))),a=C(()=>{let d={};const o={};l.value.forEach(m=>{m.seoMeta?Object.assign(o,m.seoMeta):d=oe(d,m.head)});const w=[];if(Object.keys(o).length){const m=JSON.stringify(o,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");w.push(`useSeoMeta(${m})`)}if(Object.keys(d).length){const m=JSON.stringify(d,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");w.push(`useHead(${m})`)}return w.join(`
2
-
3
- `)}),c=ae(),k=H(),b=["Missing Tags","Code Snippet"],_=I(b[0]);return(d,o)=>{const w=P,m=J,T=U,M=_e,R=q;return l.value.length?(t(),A(R,{key:0,text:"Missing Tags",description:`${l.value.length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:h(()=>[e("div",ye,[(t(),n(S,null,B(b,(r,i)=>e("button",{key:i,px4:"",py2:"",border:"r t base",hover:"bg-active",class:O(r===_.value?"":"border-b"),onClick:f=>_.value=r},[e("div",{class:O(r===_.value?"":"op30"),capitalize:""},u(r),3)],10,ke)),64)),o[3]||(o[3]=e("div",{border:"b base","flex-auto":""},null,-1))]),_.value===b[0]?(t(),A(m,{key:0,grid:"~ cols-[1fr] lg:cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:h(()=>[(t(!0),n(S,null,B(l.value,(r,i)=>(t(),n(S,{key:i},[i?(t(),n("div",$e)):y("",!0),i?(t(),n("div",Te)):y("",!0),e("div",Se,[o[4]||(o[4]=e("div",{"i-carbon-warning":"","text-orange":""},null,-1)),p(w,{"op-50":"",href:r.docs,target:"_blank",n:"orange"},{default:h(()=>[$(u(r.name),1)]),_:2},1032,["href"])]),e("div",Ce,u(r.description),1)],64))),128))]),_:1})):(t(),n("div",Ne,[e("p",Me,[p(T,{icon:"carbon-copy",n:"xs","px-2":"",onClick:o[0]||(o[0]=r=>g(c)(a.value,"open-graph-suggestion"))},{default:h(()=>[...o[5]||(o[5]=[$(" Copy ",-1)])]),_:1}),o[7]||(o[7]=$(" the following code snippet and paste it into your ",-1)),d.matchedRouteFilepath?(t(),A(T,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:o[1]||(o[1]=r=>g(k)(d.matchedRouteFilepath))},{default:h(()=>[...o[6]||(o[6]=[$(" page component ",-1)])]),_:1})):(t(),n("span",Oe,"page component")),o[8]||(o[8]=$(" to full fill the missing tags. ",-1))]),p(m,{relative:"","n-code-block":""},{default:h(()=>[p(M,{code:a.value,lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),e("div",Ae,[p(T,{icon:"carbon-copy",onClick:o[2]||(o[2]=r=>g(c)(a.value,"open-graph-suggestion"))},{default:h(()=>[...o[9]||(o[9]=[$(" Copy ",-1)])]),_:1})])]),_:1})]))]),_:1},8,["description"])):y("",!0)}}}),Be={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},Le={class:"break-words border border-base px-[12px] py-[10px] antialiased"},Re={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},ze={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},Fe={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},je={class:"mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50",style:{"-webkit-line-clamp":"1","border-spacing":"0px","-webkit-box-orient":"vertical"}},De=N({__name:"SocialFacebook",props:{card:{}},setup(v){return(s,l)=>(t(),n("div",Be,[e("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:L({backgroundImage:`url(${JSON.stringify(s.card.image)})`})},null,4),e("div",Le,[e("div",Re,u(s.card.url),1),e("div",ze,[e("div",Fe,u(s.card.title),1),e("div",je,u(s.card.description),1)])])]))}}),Ve={class:"max-w-[438px] min-w-[438px] of-hidden border border-base rounded-[16px] bg-base -outline-offset-1",style:{"font-family":"TwitterChirp, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"}},Ee={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},He={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},Je={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},Ue={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},Ge=N({__name:"SocialTwitter",props:{tags:{}},setup(v){const s=v,l=C(()=>G(s.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"twitter:image"},{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"twitter:image:alt"}],description:[{tag:"meta",name:"twitter:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]})),a=C(()=>l.value.image?s.tags.find(c=>c.tag==="meta"&&c.name==="twitter:card")?.value||"summary_large_image":"summary");return(c,k)=>(t(),n("div",Ve,[e("div",{class:O(["cursor-pointer overflow-hidden leading-[1.3em]",a.value==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[a.value==="summary_large_image"?(t(),n("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:L({backgroundImage:`url(${JSON.stringify(l.value.image)})`})},null,4)):(t(),n("div",{key:1,class:"h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:L({backgroundImage:`url(${JSON.stringify(l.value.image)})`})},null,4)),e("div",Ee,[e("div",He,u(l.value.url),1),e("div",Je,u(l.value.title),1),e("div",Ue,u(l.value.description),1)])],2)]))}}),Pe={class:"max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] bg-base shadow-md"},qe={class:"break-words p-[10px] antialiased"},Ke={class:"block h-auto max-h-[50px] border-separate select-none break-words text-left",style:{"border-spacing":"0px"}},We={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},Xe={class:"overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85"},Ye=N({__name:"SocialLinkedin",props:{card:{}},setup(v){return(s,l)=>(t(),n("div",Pe,[e("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:L({backgroundImage:`url(${JSON.stringify(s.card.image)})`})},null,4),e("div",qe,[e("div",Ke,[e("div",We,u(s.card.title),1),e("div",Xe,u(s.card.url),1)])])]))}}),Qe={class:"relative max-w-[420px] min-w-[420px] rounded-[16px] rounded-bl-0 bg-base py-[6px] leading-[18px] drop-shadow-sm drop-shadow-color-[#10232f26]"},Ze={class:"pl-[10px] pr-[8px]"},et={class:"text-[#3390ec] leading-normal underline"},tt={class:"quote w-full flex"},ot={class:"flex flex-col gap-1"},at={key:0,class:"my-[3px] overflow-hidden rounded"},nt=["src"],st={class:"cursor-pointer text-sm text-[#3390ec]"},rt={class:"cursor-pointer text-sm"},it={class:"cursor-pointer text-sm"},lt={class:"flex justify-end text-xs text-[#707579]"},ct=N({__name:"SocialTelegram",props:{card:{}},setup(v){const s=ne(),l=se(re(),"HH:mm");return(a,c)=>(t(),n("div",Qe,[e("div",Ze,[e("div",et,u(a.card.url),1),e("div",tt,[e("div",ot,[a.card.image?(t(),n("div",at,[e("img",{class:"h-full max-w-full w-full rounded object-cover",src:a.card.image},null,8,nt)])):y("",!0),e("div",st,[e("strong",null,u(g(s).hostname),1)]),e("div",rt,[e("strong",null,u(a.card.title),1)]),e("div",it,u(a.card.description),1)])]),e("div",lt,[e("span",null,u(g(l)),1)])]),c[0]||(c[0]=e("svg",{width:"11",height:"20",viewBox:"0 0 11 20",xmlns:"http://www.w3.org/2000/svg",class:"absolute bottom-0 ml-[-8.4px] translate-y-px text-white"},[e("g",{transform:"translate(9 -14)","fill-rule":"evenodd"},[e("path",{id:"corner-fill",d:"M-6 16h6v17c-.193-2.84-.876-5.767-2.05-8.782-.904-2.325-2.446-4.485-4.625-6.48A1 1 0 01-6 16z",transform:"matrix(1 0 0 -1 0 49)",fill:"currentColor"})])],-1))]))}}),dt=ie(ct,[["__scopeId","data-v-4566448e"]]),pt={flex:"~ col","w-full":""},ut={flex:"~ wrap","w-full":"","flex-none":""},mt=["onClick"],gt={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},ht={key:0},_t={key:1},ft={key:2},vt={key:3},bt=N({__name:"SocialPreviewGroup",props:{tags:{}},setup(v){const s=v,l=["twitter","facebook","linkedin","telegram"],a=le("nuxt-devtools-social-preview-tab",l[0]),c=C(()=>G(s.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"og:image:alt"}],description:[{tag:"meta",name:"og:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]}));return(k,b)=>{const _=De,d=Ge,o=Ye,w=dt;return t(),n("div",pt,[e("div",ut,[(t(),n(S,null,B(l,(m,T)=>e("button",{key:T,px4:"",py2:"",border:"r base",hover:"bg-active",class:O(m===g(a)?"":"border-b"),onClick:M=>a.value=m},[e("div",{class:O(m===g(a)?"":"op30"),capitalize:""},u(m),3)],10,mt)),64)),b[0]||(b[0]=e("div",{border:"b base","flex-auto":""},null,-1))]),e("div",gt,[g(a)==="facebook"?(t(),n("div",ht,[p(_,{card:c.value},null,8,["card"])])):g(a)==="twitter"?(t(),n("div",_t,[p(d,{tags:k.tags},null,8,["tags"])])):g(a)==="linkedin"?(t(),n("div",ft,[p(o,{card:c.value},null,8,["card"])])):g(a)==="telegram"?(t(),n("div",vt,[p(w,{card:c.value},null,8,["card"])])):y("",!0)])])}}}),wt={class:"markdown-body"},xt={__name:"open-graph",setup(v,{expose:s}){return s({frontmatter:{}}),(a,c)=>(t(),n("div",wt,[...c[0]||(c[0]=[fe('<h1>Open Graph</h1><p>Nuxt provides several different ways to manage your meta tags using <a href="https://unhead.harlanzw.com/" target="_blank" rel="noopener"><code>unhead</code></a>. Improve your Nuxt app’s SEO with powerful head config, composables and components.</p><p><a href="https://nuxt.com/docs/getting-started/seo-meta" target="_blank" rel="noopener">Learn more on the documentation</a></p><hr><p>You can also find how open graph specs are defined in:</p><ul><li><a href="https://ogp.me/" target="_blank" rel="noopener">The Open Graph protocol</a></li><li><a href="https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started" target="_blank" rel="noopener">Twitter Cards</a></li></ul>',6)])]))}},yt={grid:"~ lg:cols-2","h-full":"","w-full":"","of-hidden":""},kt={"flex-auto":"","of-auto":""},$t={"flex-none":"",flex:"~ gap2 items-center"},Tt={flex:"~ col"},St={key:0,"x-divider":""},Ct={key:1,"x-divider":""},Nt={mr2:"",px4:"",py2:""},Vt=N({__name:"open-graph",setup(v){const s=I(0),l=ce(),a=de(async()=>(s.value,(await l.value?.resolveTags()).map(i=>{const f=i.props||{};return i.tag==="htmlAttrs"&&f.lang?{tag:"html",name:"lang",value:f.lang}:f.charset?{tag:"meta",name:"charset",value:f.charset}:{tag:i.tag,name:f.property??f.name??f.rel??i.tag,value:f.content??f.href??i.textContent??JSON.stringify(f)}})),[]),c=I(!0);function k(){s.value+=1}const b=pe(),_=ue(),d=I(""),o=me(),w=H();async function m(){d.value!==_.value.path&&b.value.push(d.value||"/")}const T=C(()=>d.value===_.value.path?[]:b.value.resolve(d.value||"/").matched),M=C(()=>{const r=o.value.find(i=>i.path===_.value?.matched?.[0]?.path);return r?.file||r?.meta?.file});function R(r){return K.find(i=>i.name===r.name)?.docs}return E(_).toBeTruthy().then(r=>{d.value=r.path}),E(b).toBeTruthy().then(r=>{r.afterEach(()=>{ve(()=>{d.value=_.value.path,setTimeout(k,200),setTimeout(k,800)})})}),(r,i)=>{const f=ge,z=U,W=he,V=P,X=J,Y=q,Q=Ie,Z=bt,ee=xt,te=xe,F=be("tooltip");return t(),n(S,null,[e("div",yt,[e("div",kt,[p(W,null,{search:h(()=>[p(f,{modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=x=>d.value=x),placeholder:"Route",icon:"carbon-direction-right-01 scale-y--100",n:"primary","flex-auto":"","font-mono":"",class:O(["px-5 py-2",g(_)?.path===d.value?"":T.value.length?"text-green":"text-orange"]),onKeydown:we(m,["enter"])},null,8,["modelValue","class"])]),actions:h(()=>[e("div",$t,[M.value?D((t(),A(z,{key:0,"text-lg":"",border:!1,icon:"carbon:launch",title:"Open file in editor",onClick:i[1]||(i[1]=x=>g(w)(M.value))},null,512)),[[F,"Open file in editor"]]):y("",!0),D(p(z,{"text-lg":"",border:!1,icon:"carbon:reset",title:"Refresh Data",onClick:k},null,512),[[F,"Refresh Data"]]),D(p(z,{"text-lg":"",border:!1,icon:c.value?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:i[2]||(i[2]=x=>c.value=!c.value)},null,8,["icon"]),[[F,"Toggle Preview"]])])]),_:1}),e("div",Tt,[p(Y,{text:"Tags",icon:"carbon:tag-group"},{default:h(()=>[p(X,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:h(()=>[(t(!0),n(S,null,B(g(a),(x,j)=>(t(),n(S,{key:j},[j?(t(),n("div",St)):y("",!0),j?(t(),n("div",Ct)):y("",!0),e("div",Nt,[p(V,{op50:"",href:R(x),target:"_blank",n:"primary"},{default:h(()=>[$(u(x.name),1)]),_:2},1032,["href"])]),p(V,{href:String(x.value).match(/^https?:\/\//)?x.value:void 0,target:"_blank","w-full":"",p2:"","font-mono":"",n:"primary"},{default:h(()=>[$(u(x.value),1)]),_:2},1032,["href"])],64))),128))]),_:1})]),_:1}),p(Q,{tags:g(a),"matched-route-filepath":M.value},null,8,["tags","matched-route-filepath"])])]),c.value&&g(a)?.length?(t(),A(Z,{key:0,tags:g(a),"flex-none":"","border-base":"","lt-lg":"border-t",lg:"h-full w-140 border-l"},null,8,["tags"])):y("",!0)]),p(te,null,{default:h(()=>[p(ee)]),_:1})],64)}}});export{Vt as default};
@@ -1 +0,0 @@
1
- import{f as M,A as z,V as E,ab as O,ac as P,a6 as $,e as F,h as q,ad as g,ae as k,af as G,q as H,ag as K,_ as U,i as J,E as W,j as X}from"#entry";import{u as Q,_ as Y}from"./state-modules-c2rs6wdq.js";import{u as Z}from"./state-components-i9ev6w42.js";import{p as h,q as A,U as v,$ as s,V as n,J as p,u as o,a0 as e,X as i,a8 as a,a1 as u,F as f,ab as l}from"./vendor/json-editor-vue-gd4lkf0o.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./nbadge-hbh0pw7g.js";import"./ncode-block.vue-nph7f5ph.js";import"./client-kvgyopwa.js";import"./ncheckbox.vue-cowm3nmm.js";const c="2.6.5",tt={key:0},et={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p5:"",px5:"","md:px20":""},ot={flex:"~ col","mt-5":"","items-center":"","md:mt-20":""},nt={op40:""},st={flex:"~ gap2 wrap"},lt={key:5,"pointer-events-none":"","min-w-40":"","theme-card-lime":"",p4:"",flex:"~ auto gap-6"},it={grid:"~ cols-[auto_auto] gap-x-5 items-center"},ut={"text-right":""},rt={"text-right":""},at={"text-right":""},dt={"text-right":""},pt={flex:"~ col gap2"},mt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},xt={flex:"col gap-2",mxa:"",hidden:"","w-100":"","text-sm":"",op50:"","md:flex":""},vt={flex:"~ gap-1","items-center":""},ft={flex:"~ gap-1","items-center":""},Vt=h({__name:"overview",setup(gt){const b=M(),m=z(),D=Z(),y=E(),V=Q(),j=O(),w=P(),B=$();function I(){J.value=!0,B.push("/")}const _=A(()=>b.value?.nuxt.vueApp.version),r=A(()=>b.value?.metrics.loading());function L(){W()}return(S,t)=>{const R=q,x=F,C=Y,N=H,d=U,T=X;return s(),v(T,{"h-screen":"","w-full":"",flex:""},{default:n(()=>[o(m)?(s(),p("div",et,[t[40]||(t[40]=e("div",{"flex-auto":""},null,-1)),e("div",ot,[i(x,{flex:"~","mt--10":"","items-center":"","justify-center":"",to:"https://devtools.nuxt.com/",target:"_blank"},{default:n(()=>[i(R,{"h-10":""})]),_:1}),e("button",{mb6:"",mt3:"","text-center":"","text-sm":"",flex:"~ gap-1 wrap",onClick:I},[t[0]||(t[0]=e("span",{op40:""}," Nuxt DevTools ",-1)),e("code",nt,"v"+a(o(c)),1),i(C,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),e("div",st,[i(x,{to:"https://nuxt.com",target:"_blank","theme-card-green":"",p4:"",flex:"~ col auto"},{default:n(()=>[t[1]||(t[1]=e("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1)),i(C,{"package-name":"nuxt",options:{dev:!0}})]),_:1}),_.value?(s(),v(x,{key:0,to:"https://vuejs.org",target:"_blank","theme-card-green":"",p4:"",flex:"~ col auto"},{default:n(()=>[t[2]||(t[2]=e("div",{"logos-vue":"","text-3xl":""},null,-1)),e("code",null,"v"+a(_.value),1)]),_:1})):u("",!0),o(m)?(s(),p(f,{key:1},[o(m)&&o(m).pages&&o(b)?(s(),v(x,{key:0,"min-w-40":"","theme-card-lime":"",p4:"",flex:"~ col auto",to:"/modules/pages"},{default:n(()=>[t[3]||(t[3]=e("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(j).length,"page")),1)]),_:1})):u("",!0),o(m)?(s(),v(x,{key:1,"min-w-40":"","theme-card-lime":"",p4:"",flex:"~ col auto",to:"/modules/components"},{default:n(()=>[t[4]||(t[4]=e("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(D).length,"component")),1)]),_:1})):u("",!0),o(m)&&o(y)?(s(),v(x,{key:2,"min-w-40":"","theme-card-yellow":"",p4:"",flex:"~ col auto",to:"/modules/imports"},{default:n(()=>[t[5]||(t[5]=e("div",{"carbon-function":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(y).imports.length,"import")),1)]),_:1})):u("",!0),o(m)?(s(),v(x,{key:3,"min-w-40":"","theme-card-purple":"",p4:"",flex:"~ col auto",to:"/modules/modules"},{default:n(()=>[t[6]||(t[6]=e("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(V).length,"module")),1)]),_:1})):u("",!0),o(m)?(s(),v(x,{key:4,"min-w-40":"","theme-card-teal":"",p4:"",flex:"~ col auto",to:"/modules/plugins"},{default:n(()=>[t[7]||(t[7]=e("div",{"carbon-plug":"","text-3xl":""},null,-1)),e("div",null,a(o(g)(o(m).plugins.length,"plugin")),1)]),_:1})):u("",!0),r.value?(s(),p("div",lt,[t[12]||(t[12]=e("div",{"i-carbon-time-plot":"","flex-none":"","text-3xl":""},null,-1)),e("div",it,[r.value.ssrStart?(s(),p(f,{key:0},[t[8]||(t[8]=e("div",{"text-sm":""}," SSR to full load ",-1)),e("div",ut,a(o(k)(r.value.appLoad-r.value.ssrStart)),1)],64)):u("",!0),t[10]||(t[10]=e("div",{"text-sm":""}," Page load ",-1)),e("div",rt,a(o(k)(r.value.appLoad-r.value.appInit)),1),t[11]||(t[11]=e("div",{"text-sm":""}," Navigation ",-1)),e("div",at,a(o(k)(r.value.pageEnd-r.value.pageStart)),1),r.value.hmrStart?(s(),p(f,{key:1},[t[9]||(t[9]=e("div",{"text-sm":""}," HMR ",-1)),e("div",dt,a(o(k)(r.value.hmrEnd-r.value.hmrStart)),1)],64)):u("",!0)])])):u("",!0)],64)):u("",!0)]),e("div",pt,[o(G)?(s(),v(N,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:n(()=>[...t[13]||(t[13]=[l(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ",-1)])]),_:1})):u("",!0),e("button",{title:"Authorize",onClick:L},[("isDevAuthed"in S?S.isDevAuthed:o(K))?u("",!0):(s(),v(N,{key:0,n:"orange5",icon:"i-carbon-locked","justify-center":""},{default:n(()=>[...t[14]||(t[14]=[l(" Access from an untrusted browser, some features are limited. Click to authorize now. ",-1)])]),_:1}))])]),e("div",mt,[t[16]||(t[16]=e("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[e("div",{"i-carbon-star":""}),l(" Star on GitHub ")],-1)),t[17]||(t[17]=e("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[e("div",{"i-carbon-data-enrichment":""}),l(" Ideas & Suggestions ")],-1)),t[18]||(t[18]=e("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[e("div",{"i-carbon-plan":""}),l(" Project Roadmap ")],-1)),t[19]||(t[19]=e("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[e("div",{"i-carbon-debug":""}),l(" Bug Reports ")],-1)),i(x,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:n(()=>[...t[15]||(t[15]=[e("div",{"i-carbon-settings-adjust":""},null,-1),l(" Settings ",-1)])]),_:1})]),t[41]||(t[41]=e("div",{"flex-auto":""},null,-1)),e("div",xt,[e("div",vt,[o(w)?(s(),p(f,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[20]||(t[20]=[l(" ⌘ Cmd ",-1)])]),_:1}),t[22]||(t[22]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[21]||(t[21]=[l(" K ",-1)])]),_:1})],64)):(s(),p(f,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[23]||(t[23]=[l(" Ctrl ",-1)])]),_:1}),t[25]||(t[25]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[24]||(t[24]=[l(" K ",-1)])]),_:1})],64)),t[26]||(t[26]=e("div",{"flex-auto":""},null,-1)),t[27]||(t[27]=l(" Open Command Palette ",-1))]),e("div",ft,[o(w)?(s(),p(f,{key:0},[i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[28]||(t[28]=[l(" ⇧ Shift ",-1)])]),_:1}),t[31]||(t[31]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[29]||(t[29]=[l(" ⌥ Option ",-1)])]),_:1}),t[32]||(t[32]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[30]||(t[30]=[l(" D ",-1)])]),_:1})],64)):(s(),p(f,{key:1},[i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[33]||(t[33]=[l(" Shift ",-1)])]),_:1}),t[36]||(t[36]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[34]||(t[34]=[l(" Alt ",-1)])]),_:1}),t[37]||(t[37]=e("span",null,"+",-1)),i(d,{n:"xs",class:"px2"},{default:n(()=>[...t[35]||(t[35]=[l(" D ",-1)])]),_:1})],64)),t[38]||(t[38]=e("div",{"flex-auto":""},null,-1)),t[39]||(t[39]=e("div",null,"Toggle DevTools",-1))])])])):(s(),p("div",tt," Loading... "))]),_:1})}}});export{Vt as default};
@@ -1 +0,0 @@
1
- import{v as F,_ as H,w as J,x as S,a as X,y as Z,z as G,A as Q,B as Y,C as ee,D as te,r as oe,E as ne}from"#entry";import{_ as j}from"./nbadge-hbh0pw7g.js";import{p as L,k as A,q as x,Z as ae,J as a,U as k,$ as t,a0 as e,a8 as C,V as $,F as g,ag as I,a4 as M,al as se,a1 as N,X as _,ab as E,u as c,E as re,a3 as le}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as z}from"./filepath-item.vue-e693vfym.js";import{_ as ue}from"./nsection-block-b1meb1ma.js";import{_ as ie}from"./launch-page.vue-mubr1qiq.js";import{_ as pe}from"./help-fab.vue-le7iybnb.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./nicon-title.vue-l5va2e26.js";import"./nmarkdown.vue-ho3nn7tc.js";import"./client-kvgyopwa.js";const de={block:"","cursor-pointer":""},ce={p2:""},me=["onSubmit"],ve={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},he={key:1},_e=L({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(P,{emit:i}){const v=P,R=i,m=A([]),f=x(()=>{const r=w(v.route.path);return m.value=Array.from({length:r.length},()=>""),r});function w(r){return r.split(/(:\w+[?*]?(?:\(\))?)/).filter(Boolean).map(d=>d[0]===":"?d.replace(/\(\)$/,"?"):d)}const y=x(()=>f.value.map((r,d)=>r[0]===":"?m.value[d]:r).join("").replace(/\/+/g,"/")),o=x(()=>v.route.path.includes(":"));function s(){R("navigate",y.value)}return(r,d)=>{const h=F,n=H,l=ae("VDropdown");return o.value?(t(),k(l,{key:1},{popper:$(({hide:b})=>[e("div",ce,[e("form",{flex:"~ col",onSubmit:se(()=>{s(),b()},["prevent"])},[o.value?(t(),a(g,{key:0},[d[0]||(d[0]=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),e("div",ve,[(t(!0),a(g,null,I(f.value,(u,p)=>(t(),a(g,{key:p},[u[0]===":"?(t(),k(h,{key:0,modelValue:m.value[p],"onUpdate:modelValue":B=>m.value[p]=B,"w-20":"","n-sm":"",placeholder:u.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(t(),a("span",he,C(u),1))],64))),128))])],64)):N("",!0),_(n,{type:"submit",block:"",n:"primary"},{default:$(()=>[...d[1]||(d[1]=[E(" Navigate ",-1)])]),_:1})],40,me)])]),default:$(()=>[e("code",de,[(t(!0),a(g,null,I(f.value,(b,u)=>(t(),a("span",{key:u,class:M(b[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},C(b[0]===":"?b.slice(1):b),3))),128))])]),_:1})):(t(),a("button",{key:0,onClick:s},[e("code",null,C(r.route.path),1)]))}}}),fe={"max-w-full":"","of-auto":""},ge={"w-full":""},ye={"w-20":"","pr-1":""},be={flex:"","items-center":"","justify-end":""},xe={"text-sm":""},ke={flex:"inline gap3","items-center":""},we={flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},$e=["onClick"],Ce=["onClick"],Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Re={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ve={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Pe={key:0},Ee=["onClick"],Ie=L({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(P){const i=P,v=J(),R=S(),m=X(),f=x(()=>[...i.pages].sort((o,s)=>o.path.localeCompare(s.path)));function w(o){const s=i.layouts.find(r=>r.name===o);s&&v(s.file)}function y(o){if(typeof o=="string")return R.value?.middleware.find(s=>s.name===o)?.path}return(o,s)=>{const r=j,d=_e,h=z;return t(),a("div",fe,[e("table",ge,[s[4]||(s[4]=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1)),e("tbody",null,[(t(!0),a(g,null,I(f.value,n=>(t(),a("tr",{key:n.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ye,[e("div",be,[o.matched.find(l=>l.name===n.name)?(t(),k(r,{key:0,n:"green",title:"active",textContent:"active"})):o.matchedPending.find(l=>l.name===n.name)?(t(),k(r,{key:1,n:"teal",title:"next",textContent:"next"})):N("",!0)])]),e("td",xe,[e("div",ke,[_(d,{route:n,class:M(o.matched.find(l=>l.name===n.name)?"text-primary":o.matchedPending.find(l=>l.name===n.name)?"text-teal":""),"ws-nowrap":"",onNavigate:s[0]||(s[0]=l=>o.$emit("navigate",l))},null,8,["route","class"]),e("div",we,[n.file||n.meta?.file?(t(),a("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>c(v)(n.file||n.meta?.file)},[...s[2]||(s[2]=[e("div",{"i-carbon-script-reference":""},null,-1)])],8,$e)):N("",!0),n.file||n.meta?.file?(t(),a("button",{key:1,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Copy path",onClick:l=>c(m)(n.file||n.meta?.file)},[...s[3]||(s[3]=[e("div",{"i-carbon-copy":""},null,-1)])],8,Ce)):N("",!0)])])]),e("td",Ne,C(n.name),1),e("td",Re,[_(h,{filepath:y(n.meta.middleware),override:`${n.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ve,[n.meta.layout===!1?(t(),a("span",Pe,"-")):n.meta.layout?(t(),a("button",{key:1,onClick:l=>w(n.meta.layout)},C(n.meta.layout),9,Ee)):(t(),a("button",{key:2,"text-sm":"",op15:"",onClick:s[1]||(s[1]=l=>w("default"))}," (default) "))])]))),128))])])])}}}),Be={class:"markdown-body"},Te={__name:"pages",setup(P,{expose:i}){return i({frontmatter:{}}),(R,m)=>(t(),a("div",Be,[...m[0]||(m[0]=[e("h1",null,"Pages",-1),e("p",null,[E("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),E(" directory.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),e("hr",null,null,-1),e("h1",null,"Middlewares",-1),e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])]))}},Ae={key:0,"h-full":"","of-auto":""},Le={border:"b base",flex:"~ col gap1","n-navbar-glass":"",px4:"",py3:""},Me={"font-mono":""},De={key:1,op50:""},Fe={key:0,"text-orange":"",op75:""},Se={key:1,op50:""},je={"min-h-14":""},ze={key:1,class:"py-4 text-center"},Ue={"w-full":""},Ke={mr1:""},ot=L({__name:"pages",setup(P){const i=Z(),v=G(),R=Q(),m=S(),f=Y(),w=ee(),y=x(()=>m.value?.middleware||[]),o=A(""),s=A(0),r=x(()=>(y.value,o.value,f.value,s.value,i.value?.currentRoute?.value?.path));re(()=>{v.value&&(o.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(u=>{o.value=u.fullPath}),i.value?.afterEach(u=>{o.value=u.fullPath})});async function d(){o.value!==i.value?.currentRoute?.value?.path&&i.value.push(o.value||"/")}const h=x(()=>i.value.resolve(o.value||"/").matched);function n(u){i.value.push(u),o.value=u}const l=te(),b=x(()=>`./${l===4?"app/":""}pages/index.vue`);return(u,p)=>{const B=F,D=Ie,T=ue,U=j,K=z,O=ie,W=Te,q=pe;return t(),a(g,null,[c(R)?.pages&&c(i)?(t(),a("div",Ae,[e("div",Le,[e("div",null,[r.value!==o.value?(t(),a(g,{key:0},[p[1]||(p[1]=e("span",{op50:""},"Navigate from ",-1)),e("span",Me,C(r.value),1),p[2]||(p[2]=e("span",{op50:""}," to ",-1))],64)):(t(),a("span",De,"Current route"))]),_(B,{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=V=>o.value=V),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:M(r.value===o.value?"":h.value.length?"text-green":"text-orange"),onKeydown:le(d,["enter"])},null,8,["modelValue","class"]),e("div",null,[r.value!==o.value?(t(),a(g,{key:0},[p[3]||(p[3]=e("span",null,[E("Press "),e("b",{"font-bold":""},"Enter"),E(" to navigate")],-1)),h.value.length?N("",!0):(t(),a("span",Fe," (no match)"))],64)):(t(),a("span",Se,"Edit path above to navigate"))])]),_(T,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:$(()=>[e("div",je,[h.value.length?(t(),k(D,{key:0,pages:h.value,layouts:c(f)||[],matched:c(v).matched,"matched-pending":h.value,onNavigate:n},null,8,["pages","layouts","matched","matched-pending"])):(t(),a("div",ze,[...p[4]||(p[4]=[e("span",{op50:""},"No routes matched",-1)])]))])]),_:1}),_(T,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${c(w).length} routes registered in your application`,padding:"pr5"},{default:$(()=>[_(D,{pages:c(w),layouts:c(f)||[],matched:c(v).matched,"matched-pending":h.value,onNavigate:n},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),y.value.length?(t(),k(T,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${y.value.length} middleware registered in your application`,padding:"px13"},{default:$(()=>[e("table",Ue,[p[5]||(p[5]=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1)),(t(!0),a(g,null,I(y.value,V=>(t(),a("tr",{key:V.path,"h-7":""},[e("td",null,[e("span",Ke,C(V.name),1),V.global?(t(),k(U,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):N("",!0)]),e("td",null,[_(K,{filepath:V.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):N("",!0)])):(t(),k(O,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:`Create ${b.value} to enable routing`,actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in u?u.rpc:c(oe)).runWizard(await("ensureDevAuthToken"in u?u.ensureDevAuthToken:c(ne))(),"enablePages")}}]},null,8,["description","actions"])),_(q,null,{default:$(()=>[_(W)]),_:1})],64)}}});export{ot as default};
@@ -1 +0,0 @@
1
- import{_ as k}from"./state-editor.vue-byiz4hoi.js";import{p as x,J as i,$ as e,F as $,ag as N,U as d,V as a,W as B,Y as V,a0 as b,q as h,ai as w,a1 as _,X as o,u as F,ac as O,ab as E}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as P}from"./nsection-block-b1meb1ma.js";import{f as R,_ as j}from"#entry";import{_ as A}from"./help-fab.vue-le7iybnb.js";import"./data-schema-button.vue-hwc5uuo4.js";import"./nicon-title.vue-l5va2e26.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";const G={key:0,flex:"~ col gap-1"},H={key:1,mt2:"",px4:"",italic:"",op35:""},K=x({__name:"StateGroup",props:{state:{},revision:{},prefix:{default:""}},setup(f){return(t,n)=>{const c=k;return e(),i("div",null,[t.state&&Object.keys(t.state).length>0?(e(),i("div",G,[(e(!0),i($,null,N(t.state,(s,r)=>(e(),d(c,{key:r,revision:t.revision,state:s,name:r.startsWith(t.prefix)?r.slice(t.prefix.length):r},{actions:a(l=>[B(t.$slots,"actions",V({ref_for:!0},l))]),_:3},8,["revision","state","name"]))),128))])):(e(),i("div",H," No data "))])}}}),T={class:"markdown-body"},W={__name:"payload",setup(f,{expose:t}){return t({frontmatter:{}}),(c,s)=>(e(),i("div",T,[...s[0]||(s[0]=[b("h1",null,"State & Async Data",-1),b("p",null,"// TODO",-1)])]))}},q={key:0},tt=x({__name:"payload",setup(f){const t=R(),n=h(()=>t.value?.nuxt.payload),c=h(()=>t.value?.revision.value);async function s(r){await t.value?.nuxt.hooks.callHookParallel("app:data:refresh",r)}return(r,l)=>{const m=K,p=P,v=j,S=k,g=W,D=A,C=w("tooltip");return e(),i($,null,[F(t)?(e(),i("div",q,[o(p,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[o(m,{state:n.value.state,revision:c.value,prefix:"$s"},null,8,["state","revision"])]),_:1}),o(p,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[o(v,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:l[0]||(l[0]=y=>s())},{default:a(()=>[...l[1]||(l[1]=[E(" Re-fetch all data ",-1)])]),_:1})]),default:a(()=>[o(m,{state:n.value.data,revision:c.value},{actions:a(({isOpen:y,name:u})=>[y&&u?O((e(),d(v,{key:0,title:`Re-fetch '${u}'`,icon:"carbon-recycle",border:!1,onClick:J=>s([u])},null,8,["title","onClick"])),[[C,`Re-fetch '${u}'`,void 0,{bottom:!0}]]):_("",!0)]),_:1},8,["state","revision"])]),_:1}),n.value.functions&&Object.keys(n.value.functions).length?(e(),d(p,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions"},{default:a(()=>[o(S,{"ml--6":"",state:n.value.functions,revision:c.value},null,8,["state","revision"])]),_:1})):_("",!0)])):_("",!0),o(D,null,{default:a(()=>[o(g)]),_:1})],64)}}});export{tt as default};
@@ -1 +0,0 @@
1
- import{F as r}from"#entry";import{u as m,m as c}from"./vue-devtools-m76pi1vn.js";import{p,J as i,$ as e,U as o,u as n,V as _,ab as u}from"./vendor/json-editor-vue-gd4lkf0o.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./vue-virtual-scroller.esm-oaume2n6.js";const l={class:"h-full w-full"},h=p({__name:"pinia",setup(f){const{connected:s}=m();return(d,t)=>{const a=r;return e(),i("div",l,[n(s)?(e(),o(n(c),{key:0})):(e(),o(a,{key:1},{default:_(()=>[...t[0]||(t[0]=[u(" Connecting.... ",-1)])]),_:1}))])}}});export{h as default};
@@ -1 +0,0 @@
1
- import{_ as w}from"./nbadge-hbh0pw7g.js";import{_ as S}from"./filepath-item.vue-e693vfym.js";import{_ as k}from"./duration-display.vue-juecltgn.js";import{A as D,a3 as B,I as V,b as I,x as F,f as H}from"#entry";import{p as v,q as h,J as _,$ as s,a0 as n,X as c,a1 as d,a8 as C,V as f,U as p,Z as W,W as P,ab as x,F as b,ag as E,a4 as A}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as L}from"./nsection-block-b1meb1ma.js";import{_ as M}from"./help-fab.vue-le7iybnb.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./nicon-title.vue-l5va2e26.js";const j={flex:"~ gap2","items-center":""},q={w8:"","text-right":"","text-sm":"",op25:""},z={key:0,"flex-auto":"","text-right":""},J=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(m){const e=m,r=D(),a=h(()=>B(e.plugin.src,r.value?.rootDir||"").path);return(t,l)=>{const o=w,u=S,i=k;return s(),_("div",j,[n("div",q,C(t.index),1),c(u,{filepath:e.plugin.src,subpath:!0},{default:f(()=>[n("div",null,[a.value.startsWith("#")?(s(),p(o,{key:0,n:"rose",textContent:"virtual"})):a.value.startsWith(".")?d("",!0):(s(),p(o,{key:1,n:"gray",textContent:"module"})),t.plugin.mode==="server"?(s(),p(o,{key:2,n:"teal",textContent:"server"})):d("",!0),t.plugin.mode==="client"?(s(),p(o,{key:3,n:"orange",textContent:"client"})):d("",!0)])]),_:1},8,["filepath"]),t.plugin.metric?.duration!=null?(s(),_("div",z,[c(i,{duration:t.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),R={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},U={flex:"~ items-center gap-1","font-bold":""},X=v({__name:"HelpTip",props:{title:{},icon:{}},setup(m){return(e,r)=>{const a=V,t=W("ContentSlot");return s(),_("div",R,[n("div",U,[e.icon?(s(),p(a,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),n("div",null,C(e.title),1)]),n("div",null,[P(e.$slots,"default",{},()=>[c(t,{use:e.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),Y={};function Z(m,e){const r=X;return s(),p(r,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:f(()=>[P(m.$slots,"default")]),_:3})}const G=I(Y,[["render",Z]]),K={class:"markdown-body"},O={__name:"plugins",setup(m,{expose:e}){return e({frontmatter:{}}),(a,t)=>{const l=G;return s(),_("div",K,[t[1]||(t[1]=n("h1",null,"Plugins",-1)),t[2]||(t[2]=n("p",null,[x("Nuxt plugins allow you to extend the functionality of the Nuxt runtime and the Vue instance. You can add plugins to the "),n("code",null,"plugins/"),x(" directory and they will be automatically imported and registered.")],-1)),c(l,null,{default:f(()=>[...t[0]||(t[0]=[x(" Plugins always run before your application's runtime. The loading time of each plugin will directly impact your application's initial loading time. ",-1)])]),_:1}),t[3]||(t[3]=n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},Q={pt4:""},tt={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},pt=v({__name:"plugins",setup(m){const e=F(),r=H(),a=h(()=>{const l=e.value?.plugins||[],o=r.value?.metrics.clientPlugins()||[];return l.map(u=>{const i=typeof u=="string"?{src:u}:u;return{...i,metric:o.find(g=>g.src===i.src||g.src.startsWith(i.src))}})}),t=h(()=>{const l=r.value?.metrics.clientPlugins()||[],o=Math.min(...l.map(i=>i.start));return Math.max(...l.map(i=>i.end))-o});return(l,o)=>{const u=J,i=k,g=L,N=O,T=M;return s(),_(b,null,[c(g,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${a.value.length}`},{default:f(()=>[n("div",Q,[(s(!0),_(b,null,E(a.value,(y,$)=>(s(),p(u,{key:y.src,plugin:y,index:$+1,"ml--4":"","border-base":"",py2:"",class:A($?"border-t":"")},null,8,["plugin","index","class"]))),128)),n("div",tt,[o[0]||(o[0]=n("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1)),o[1]||(o[1]=n("span",{op50:""},"Total execution time:",-1)),c(i,{duration:t.value,factor:10},null,8,["duration"])])])]),_:1},8,["description"]),c(T,null,{default:f(()=>[c(N)]),_:1})],64)}}});export{pt as default};
@@ -1 +0,0 @@
1
- import{f as m,w as d,F as f}from"#entry";import{u as c,f as _}from"./vue-devtools-m76pi1vn.js";import{p as v,J as C,$ as n,U as l,u as o,V as E,ab as I}from"./vendor/json-editor-vue-gd4lkf0o.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./vue-virtual-scroller.esm-oaume2n6.js";const k={class:"h-full w-full"},y=v({__name:"render-tree",setup(x){const{connected:a}=c(),t=m(),p=d();function s(r){r?t.value.devtools.open():t.value.devtools.close()}return(r,e)=>{const i=f;return n(),C("div",k,[o(a)?(n(),l(o(_),{key:0,onOnInspectComponentStart:e[0]||(e[0]=u=>s(!1)),onOnInspectComponentEnd:e[1]||(e[1]=u=>s(!0)),onOpenInEditor:o(p)},null,8,["onOpenInEditor"])):(n(),l(i,{key:1},{default:E(()=>[...e[2]||(e[2]=[I(" Connecting.... ",-1)])]),_:1}))])}}});export{y as default};