@nuxt/devtools-nightly 0.0.0 → 2.0.0-28980754.13f6fd0

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 (146) hide show
  1. package/.discoveryrc.cjs +13 -0
  2. package/LICENSE +21 -0
  3. package/README.md +129 -0
  4. package/cli.mjs +2 -0
  5. package/dist/chunks/analyze-build.mjs +58 -0
  6. package/dist/chunks/module-main.mjs +18277 -0
  7. package/dist/chunks/plugin-metrics.mjs +68 -0
  8. package/dist/chunks/timeline.mjs +73 -0
  9. package/dist/chunks/vite-inspect.mjs +61 -0
  10. package/dist/chunks/vscode.mjs +202 -0
  11. package/dist/chunks/vue-devtools.mjs +18 -0
  12. package/dist/chunks/vue-inspector.mjs +15 -0
  13. package/dist/client/200.html +29 -0
  14. package/dist/client/404.html +29 -0
  15. package/dist/client/_nuxt/__blank-lg13rweu.js +1 -0
  16. package/dist/client/_nuxt/analyze-build-iq7xh3z1.js +1 -0
  17. package/dist/client/_nuxt/assets-gh0s06d1.js +16 -0
  18. package/dist/client/_nuxt/assets.css-hmxl533k.css +1 -0
  19. package/dist/client/_nuxt/builds/latest.json +1 -0
  20. package/dist/client/_nuxt/builds/meta/49cca9aa-555f-4765-adf5-305615694a06.json +1 -0
  21. package/dist/client/_nuxt/client-kpmlv67d.js +1 -0
  22. package/dist/client/_nuxt/code-diff.vue-n76oqanv.js +8 -0
  23. package/dist/client/_nuxt/code-snippets.vue-mo56dnf7.js +1 -0
  24. package/dist/client/_nuxt/components-lsb65kqi.js +1 -0
  25. package/dist/client/_nuxt/composable-item.vue-ou7mghhp.js +1 -0
  26. package/dist/client/_nuxt/constants-b32h69zq.js +1 -0
  27. package/dist/client/_nuxt/custom-_name_-jtqok9n0.js +1 -0
  28. package/dist/client/_nuxt/data-schema-button.vue-c1grymka.js +1 -0
  29. package/dist/client/_nuxt/data-schema-drawer-d4rpskxd.js +2 -0
  30. package/dist/client/_nuxt/default-g4qh1jek.js +1 -0
  31. package/dist/client/_nuxt/duration-display.vue-dzttyi5n.js +1 -0
  32. package/dist/client/_nuxt/e6dj4v2s.js +17 -0
  33. package/dist/client/_nuxt/entry.css-mj1nvcy6.css +1 -0
  34. package/dist/client/_nuxt/error-404-kkixf30c.js +1 -0
  35. package/dist/client/_nuxt/error-404.css-fwe7gpvk.css +1 -0
  36. package/dist/client/_nuxt/error-500-m1ccut5u.js +1 -0
  37. package/dist/client/_nuxt/error-500.css-djemplc9.css +1 -0
  38. package/dist/client/_nuxt/error-ow5xdwzf.js +9 -0
  39. package/dist/client/_nuxt/filepath-item.vue-emq61mdv.js +1 -0
  40. package/dist/client/_nuxt/full-nu44fgoz.js +1 -0
  41. package/dist/client/_nuxt/help-fab.css-ms50khsu.css +1 -0
  42. package/dist/client/_nuxt/help-fab.vue-pnejmv3y.js +1 -0
  43. package/dist/client/_nuxt/hooks-mgy9fbq4.js +1 -0
  44. package/dist/client/_nuxt/imports-hjuvh4if.js +1 -0
  45. package/dist/client/_nuxt/index-g2a9x4et.js +1 -0
  46. package/dist/client/_nuxt/index-ioxrnncp.js +2 -0
  47. package/dist/client/_nuxt/index-obsucz0g.js +1 -0
  48. package/dist/client/_nuxt/launch-page.vue-kdqfy3so.js +1 -0
  49. package/dist/client/_nuxt/modules-k3t829jl.js +1 -0
  50. package/dist/client/_nuxt/nbadge-drglxech.js +1 -0
  51. package/dist/client/_nuxt/ncheckbox.vue-n4yvgmy3.js +1 -0
  52. package/dist/client/_nuxt/ncode-block.css-lvdc77tw.css +1 -0
  53. package/dist/client/_nuxt/ncode-block.vue-dt6krs6h.js +2 -0
  54. package/dist/client/_nuxt/ndrawer.vue-dekxbytt.js +1 -0
  55. package/dist/client/_nuxt/ndropdown.vue-ftpt7kxg.js +1 -0
  56. package/dist/client/_nuxt/nicon-title.vue-hzhi6u0u.js +1 -0
  57. package/dist/client/_nuxt/nlink.vue-mgfv3kxu.js +1 -0
  58. package/dist/client/_nuxt/nmarkdown.vue-jpbjhala.js +1 -0
  59. package/dist/client/_nuxt/nnavbar.vue-ifbz2rxx.js +1 -0
  60. package/dist/client/_nuxt/none-vukmnfqm.js +1 -0
  61. package/dist/client/_nuxt/nsection-block-c3li7360.js +1 -0
  62. package/dist/client/_nuxt/nsection-block.css-e7kbjm7k.css +1 -0
  63. package/dist/client/_nuxt/nselect-tabs.vue-7ode1s40.js +1 -0
  64. package/dist/client/_nuxt/nselect.vue-g1dfz7uv.js +1 -0
  65. package/dist/client/_nuxt/nswitch.vue-iu20lc9i.js +1 -0
  66. package/dist/client/_nuxt/open-graph-fqsf6nxz.js +3 -0
  67. package/dist/client/_nuxt/open-graph.css-e21qzmvj.css +1 -0
  68. package/dist/client/_nuxt/overview-fu25jfez.js +1 -0
  69. package/dist/client/_nuxt/pages-krmwwon2.js +1 -0
  70. package/dist/client/_nuxt/payload-brwibidn.js +1 -0
  71. package/dist/client/_nuxt/pinia-jwh05bbu.js +1 -0
  72. package/dist/client/_nuxt/plugins-ct1odttb.js +1 -0
  73. package/dist/client/_nuxt/render-tree-btmc22jz.js +1 -0
  74. package/dist/client/_nuxt/runtime-configs-n2sp6jan.js +1 -0
  75. package/dist/client/_nuxt/server-discovery-jimy0pfh.js +1 -0
  76. package/dist/client/_nuxt/server-route-inputs.vue-ldyagniy.js +1 -0
  77. package/dist/client/_nuxt/server-routes-hly5t016.js +9 -0
  78. package/dist/client/_nuxt/server-tasks-morkovw5.js +1 -0
  79. package/dist/client/_nuxt/settings-ic9nbnp8.js +1 -0
  80. package/dist/client/_nuxt/stacktrace-list.vue-nqi994si.js +1 -0
  81. package/dist/client/_nuxt/state-components-ka9yswzm.js +1 -0
  82. package/dist/client/_nuxt/state-editor.vue-nbrmuzl0.js +1 -0
  83. package/dist/client/_nuxt/state-modules-fi6koj0q.js +1 -0
  84. package/dist/client/_nuxt/storage-kce0wh6l.js +1 -0
  85. package/dist/client/_nuxt/terminals-bz0knva4.js +1 -0
  86. package/dist/client/_nuxt/terminals.css-mejv43xm.css +1 -0
  87. package/dist/client/_nuxt/timeline-eie3snk2.js +31 -0
  88. package/dist/client/_nuxt/timeline.css-lhkpu01p.css +1 -0
  89. package/dist/client/_nuxt/unocss-runtime-cb61k1ql.js +1 -0
  90. package/dist/client/_nuxt/vendor/json-editor-vue-kcahofzr.js +3818 -0
  91. package/dist/client/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css +1 -0
  92. package/dist/client/_nuxt/vendor/markdown-it-fvu08dbs.js +16 -0
  93. package/dist/client/_nuxt/vendor/quicktype-core-lnbp3n5r.js +1006 -0
  94. package/dist/client/_nuxt/vendor/shiki-bpva4tco.js +282 -0
  95. package/dist/client/_nuxt/vendor/unocss-mstcul8h.js +2 -0
  96. package/dist/client/_nuxt/vendor/unocss.css-mhvipxpl.css +1 -0
  97. package/dist/client/_nuxt/vendor/vis-fzckz0r6.js +98 -0
  98. package/dist/client/_nuxt/vendor/xterm-b1jefe3j.js +9 -0
  99. package/dist/client/_nuxt/vendor/xterm.css-egmhki83.css +32 -0
  100. package/dist/client/_nuxt/virtual-files-ffma32j9.js +1 -0
  101. package/dist/client/_nuxt/virtual-files.css-gqpg2wnb.css +1 -0
  102. package/dist/client/_nuxt/vue-virtual-scroller.esm-ryb7s73q.js +2 -0
  103. package/dist/client/discovery/index.html +611 -0
  104. package/dist/client/index.html +29 -0
  105. package/dist/client/nuxt.svg +3 -0
  106. package/dist/dirs.d.mts +7 -0
  107. package/dist/dirs.d.ts +7 -0
  108. package/dist/dirs.mjs +28 -0
  109. package/dist/module.cjs +5 -0
  110. package/dist/module.d.mts +9 -0
  111. package/dist/module.d.ts +9 -0
  112. package/dist/module.json +9 -0
  113. package/dist/module.mjs +6 -0
  114. package/dist/runtime/auth/index.html +76 -0
  115. package/dist/runtime/function-metrics-helpers.d.ts +3 -0
  116. package/dist/runtime/function-metrics-helpers.js +69 -0
  117. package/dist/runtime/nitro/inline.d.ts +3 -0
  118. package/dist/runtime/nitro/inline.js +6 -0
  119. package/dist/runtime/plugins/devtools.client.d.ts +2 -0
  120. package/dist/runtime/plugins/devtools.client.js +56 -0
  121. package/dist/runtime/plugins/devtools.server.d.ts +2 -0
  122. package/dist/runtime/plugins/devtools.server.js +7 -0
  123. package/dist/runtime/plugins/view/FrameBox.vue +167 -0
  124. package/dist/runtime/plugins/view/Main.vue +415 -0
  125. package/dist/runtime/plugins/view/client.d.ts +12 -0
  126. package/dist/runtime/plugins/view/client.js +332 -0
  127. package/dist/runtime/plugins/view/state.d.ts +5 -0
  128. package/dist/runtime/plugins/view/state.js +17 -0
  129. package/dist/runtime/plugins/view/utils.d.ts +31 -0
  130. package/dist/runtime/plugins/view/utils.js +156 -0
  131. package/dist/runtime/settings.d.ts +4 -0
  132. package/dist/runtime/settings.js +2 -0
  133. package/dist/runtime/shared/hooks.d.ts +2 -0
  134. package/dist/runtime/shared/hooks.js +33 -0
  135. package/dist/runtime/use-nuxt-devtools.d.ts +8 -0
  136. package/dist/runtime/use-nuxt-devtools.js +23 -0
  137. package/dist/runtime/vue-devtools-client.d.ts +2 -0
  138. package/dist/runtime/vue-devtools-client.js +8 -0
  139. package/dist/shared/devtools-nightly.2a48a9e5.d.mts +62 -0
  140. package/dist/shared/devtools-nightly.2a48a9e5.d.ts +62 -0
  141. package/dist/shared/devtools-nightly.60b2ba4d.mjs +122 -0
  142. package/dist/types.d.mts +42 -0
  143. package/dist/types.d.ts +42 -0
  144. package/dist/types.mjs +1 -0
  145. package/package.json +128 -2
  146. package/types.d.ts +1 -0
@@ -0,0 +1 @@
1
+ import{b as a,d as i,e as u}from"./e6dj4v2s.js";import{U as c,W as l,X as e,a8 as r,a3 as d,a2 as p,a9 as f}from"./vendor/json-editor-vue-kcahofzr.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-bpva4tco.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"},h=["textContent"],b=["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:[{children:`!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:[{children:'*,: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 c(),l("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,h),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,b),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-afde3943"]]);export{N as default};
@@ -0,0 +1 @@
1
+ .spotlight[data-v-afde3943]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-afde3943]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-afde3943]{background-color:#ffffff4d}.gradient-border[data-v-afde3943]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-afde3943]{background-color:#1414144d}.gradient-border[data-v-afde3943]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-afde3943]: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-afde3943]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-afde3943]{position:fixed}.left-0[data-v-afde3943]{left:0}.right-0[data-v-afde3943]{right:0}.z-10[data-v-afde3943]{z-index:10}.z-20[data-v-afde3943]{z-index:20}.grid[data-v-afde3943]{display:grid}.mb-16[data-v-afde3943]{margin-bottom:4rem}.mb-8[data-v-afde3943]{margin-bottom:2rem}.max-w-520px[data-v-afde3943]{max-width:520px}.min-h-screen[data-v-afde3943]{min-height:100vh}.w-full[data-v-afde3943]{width:100%}.flex[data-v-afde3943]{display:flex}.cursor-pointer[data-v-afde3943]{cursor:pointer}.place-content-center[data-v-afde3943]{place-content:center}.items-center[data-v-afde3943]{align-items:center}.justify-center[data-v-afde3943]{justify-content:center}.overflow-hidden[data-v-afde3943]{overflow:hidden}.bg-white[data-v-afde3943]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-afde3943]{padding-left:1rem;padding-right:1rem}.px-8[data-v-afde3943]{padding-left:2rem;padding-right:2rem}.py-2[data-v-afde3943]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-afde3943]{text-align:center}.text-8xl[data-v-afde3943]{font-size:6rem;line-height:1}.text-xl[data-v-afde3943]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-afde3943]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-afde3943]{font-weight:300}.font-medium[data-v-afde3943]{font-weight:500}.leading-tight[data-v-afde3943]{line-height:1.25}.font-sans[data-v-afde3943]{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-afde3943]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-afde3943]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-afde3943]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-afde3943]{padding-left:0;padding-right:0}.sm\:px-6[data-v-afde3943]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-afde3943]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-afde3943]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-afde3943]{font-size:1.25rem;line-height:1.75rem}}
@@ -0,0 +1 @@
1
+ import{b as s,d as i}from"./e6dj4v2s.js";import{U as a,W as u,X as e,a8 as o}from"./vendor/json-editor-vue-kcahofzr.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-bpva4tco.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 i({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!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:[{children:'*,: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)=>(a(),u("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-6134163b"]]);export{y as default};
@@ -0,0 +1 @@
1
+ .spotlight[data-v-6134163b]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-6134163b]{position:fixed}.-bottom-1\/2[data-v-6134163b]{bottom:-50%}.left-0[data-v-6134163b]{left:0}.right-0[data-v-6134163b]{right:0}.grid[data-v-6134163b]{display:grid}.mb-16[data-v-6134163b]{margin-bottom:4rem}.mb-8[data-v-6134163b]{margin-bottom:2rem}.h-1\/2[data-v-6134163b]{height:50%}.max-w-520px[data-v-6134163b]{max-width:520px}.min-h-screen[data-v-6134163b]{min-height:100vh}.place-content-center[data-v-6134163b]{place-content:center}.overflow-hidden[data-v-6134163b]{overflow:hidden}.bg-white[data-v-6134163b]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-6134163b]{padding-left:2rem;padding-right:2rem}.text-center[data-v-6134163b]{text-align:center}.text-8xl[data-v-6134163b]{font-size:6rem;line-height:1}.text-xl[data-v-6134163b]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-6134163b]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-6134163b]{font-weight:300}.font-medium[data-v-6134163b]{font-weight:500}.leading-tight[data-v-6134163b]{line-height:1.25}.font-sans[data-v-6134163b]{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-6134163b]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-6134163b]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-6134163b]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-6134163b]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-6134163b]{font-size:2.25rem;line-height:2.5rem}}
@@ -0,0 +1,9 @@
1
+ import{f as E,A as x}from"./e6dj4v2s.js";import{_ as N}from"./stacktrace-list.vue-nqi994si.js";import{p as y,q as v,W as l,a3 as C,a2 as w,X as f,a8 as p,Z as _,P as S,U as i,a9 as $}from"./vendor/json-editor-vue-kcahofzr.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-bpva4tco.js";import"./filepath-item.vue-emq61mdv.js";const O=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,R=/^(eval@)?(\[native code\])?$/;function A(e,a){if(typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u")return T(e);if(e.stack&&e.stack.match(h))return F(e);if(e.stack)return b(e);throw new Error("Cannot parse given Error object")}function m(e){if(!e.includes(":"))return[e,void 0,void 0];const o=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[o[1],o[2]||void 0,o[3]||void 0]}function d(e,a){return e}function F(e,a){return I(e.stack)}function I(e,a){return d(e.split(`
2
+ `).filter(t=>!!t.match(h))).map(t=>{t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const n=r.match(/ (\(.+\)$)/);r=n?r.replace(n[0],""):r;const c=m(n?n[1]:r),s=n&&r||void 0,u=["eval","<anonymous>"].includes(c[0])?void 0:c[0];return{function:s,file:u,line:c[1]?+c[1]:void 0,col:c[2]?+c[2]:void 0,raw:t}})}function b(e,a){return P(e.stack)}function P(e,a){return d(e.split(`
3
+ `).filter(t=>!t.match(R))).map(t=>{if(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":"))return{function:t};{const r=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(r),c=n&&n[1]?n[1]:void 0,s=m(t.replace(r,""));return{function:c,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:t}}})}function T(e,a){return!e.stacktrace||e.message.includes(`
4
+ `)&&e.message.split(`
5
+ `).length>e.stacktrace.split(`
6
+ `).length?V(e):e.stack?B(e):X(e)}function V(e,a){const o=/Line (\d+).*script (?:in )?(\S+)/i,t=e.message.split(`
7
+ `),r=[];for(let n=2,c=t.length;n<c;n+=2){const s=o.exec(t[n]);s&&r.push({file:s[2],line:+s[1],raw:t[n]})}return d(r)}function X(e,a){const o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,t=e.stacktrace.split(`
8
+ `),r=[];for(let n=0,c=t.length;n<c;n+=2){const s=o.exec(t[n]);s&&r.push({function:s[3]||void 0,file:s[2],line:s[1]?+s[1]:void 0,raw:t[n]})}return d(r)}function B(e,a){return d(e.stack.split(`
9
+ `).filter(t=>!!t.match(O)&&!t.match(/^Error created at/))).map(t=>{const r=t.split("@"),n=m(r.pop()),c=r.shift()||"",s=c.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;let u;c.match(/\(([^)]*)\)/)&&(u=c.replace(/^[^(]+\(([^)]*)\)$/,"$1"));const k=u===void 0||u==="[arguments not available]"?void 0:u.split(",");return{function:s,args:k,file:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:t}})}function L(e){return e.map(a=>({functionName:a.function,args:a.args,fileName:a.file,lineNumber:a.line,columnNumber:a.col,source:a.raw}))}function g(e,a){return L(A(e))}const D={p6:""},G={key:0},M={"text-6xl":""},K={key:0,op75:""},U={my4:"","text-xl":"","text-red":""},W={key:1,"of-auto":"",rounded:"","bg-active":"",p2:""},j=["textContent"],q={key:1,op50:""},ee=y({__name:"error",setup(e){const a=E(),o=v(()=>{const r=a.value?.nuxt?.payload?.error;return r&&(console.error("[Nuxt DevTools] Error in payload:"),console.error(r),console.error({...r})),r}),t=v(()=>{if(!o.value?.stack)return[];try{return o.value.stack.startsWith("<pre>")?g({stack:o.value.stack.replace(/<.*?>/g,"")}):g(o.value)}catch(r){return console.error(r),[]}});return(r,n)=>{const c=x,s=N;return i(),l("div",D,[o.value?(i(),l("div",G,[C(c,{n:"red",icon:"i-carbon-warning-alt-filled",mb5:""},{default:w(()=>n[0]||(n[0]=[$(" Error occurred in this page ")])),_:1}),f("div",M,p(o.value.statusCode||"Client Error"),1),o.value.statusMessage?(i(),l("div",K,p(o.value.statusMessage),1)):_("",!0),f("div",U,p(o.value.message||o.value.description||"Unknown error"),1),t.value.length||o.value.stack?(i(),l("div",W,[n[1]||(n[1]=f("div",{px1:"",op50:""}," Stacktrace ",-1)),t.value.length?(i(),S(s,{key:0,px2:"",stacktrace:t.value},null,8,["stacktrace"])):(i(),l("pre",{key:1,textContent:p(o.value.stack)},null,8,j))])):_("",!0)])):(i(),l("div",q," No error "))])}}});export{ee as default};
@@ -0,0 +1 @@
1
+ import{L as k,a as c,K as g,aw as C}from"./e6dj4v2s.js";import{p as b,q as B,U as t,W as a,X as s,F as l,a9 as u,a8 as r,Z as d,a0 as N,Y as w,u as m}from"./vendor/json-editor-vue-kcahofzr.js";const E={flex:"~ gap-2 items-center",class:"group"},F=["title"],I={key:0,op50:""},S={key:0,flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},D=b({__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?C(p.filepath,i.value.rootDir):{path:p.filepath||""});return(e,o)=>(t(),a("span",E,[s("span",{class:N([e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath},[e.override?(t(),a(l,{key:0},[u(r(e.override),1)],64)):n.value.moduleName?(t(),a(l,{key:1},[s("span",null,r(n.value.moduleName),1),e.subpath?(t(),a("span",I,r(n.value.path.slice(n.value.moduleName.length)),1)):d("",!0)],64)):(t(),a(l,{key:2},[u(r(n.value.path),1)],64))],10,F),w(e.$slots,"default"),e.filepath?(t(),a("div",S,[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)]))])):d("",!0)]))}});export{D as _};
@@ -0,0 +1 @@
1
+ import{b as t}from"./e6dj4v2s.js";import{U as e,W as r,Y as s}from"./vendor/json-editor-vue-kcahofzr.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-bpva4tco.js";const c={},n={"h-full":"","of-auto":""};function a(o,f){return e(),r("div",n,[s(o.$slots,"default")])}const d=t(c,[["render",a]]);export{d as default};
@@ -0,0 +1 @@
1
+ .slide-in-enter-active,.slide-in-leave-active{transition:transform .3s}.slide-in-enter-from,.slide-in-leave-to{transform:translate(100%)}.fade-in-enter-active,.fade-in-leave-active{transition:opacity .3s}.fade-in-enter-from,.fade-in-leave-to{opacity:0}
@@ -0,0 +1 @@
1
+ import{g as f,_ as m}from"./e6dj4v2s.js";import{p as v,f as c,u as g,W as o,X as n,a3 as s,a2 as i,M as u,F as k,Z as a,U as l,Y as _}from"./vendor/json-editor-vue-kcahofzr.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":"",px8:"",py4:"","bg-base":""},y=v({__name:"HelpFab",setup(w){const t=c(!1),{showHelpButtons:p}=f("ui");return(d,e)=>{const b=m;return g(p)?(l(),o(k,{key:0},[n("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]=r=>t.value=!t.value)},e[3]||(e[3]=[n("div",{"i-ri:question-mark":""},null,-1)])),s(u,{name:"fade-in"},{default:i(()=>[t.value?(l(),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]=r=>t.value=!1)})):a("",!0)]),_:1}),s(u,{name:"slide-in"},{default:i(()=>[t.value?(l(),o("div",x,[_(d.$slots,"default"),s(b,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=r=>t.value=!1)})])):a("",!0)]),_:3})],64)):a("",!0)}}});export{y as _};
@@ -0,0 +1 @@
1
+ import{_ as S}from"./duration-display.vue-dzttyi5n.js";import{a5 as T,a6 as F,f as B}from"./e6dj4v2s.js";import{p as $,f as H,q as w,U as u,W as h,X as o,a9 as l,a0 as p,F as y,ae as P,a8 as m,$ as V,u as x,a3 as _,P as C,a2 as f,Z as N}from"./vendor/json-editor-vue-kcahofzr.js";import{_ as D}from"./nsection-block-c3li7360.js";import{_ as E}from"./help-fab.vue-pnejmv3y.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-bpva4tco.js";import"./nicon-title.vue-hzhi6u0u.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:""},R={"text-sm":""},W={"ws-nowrap":""},X={"text-sm":""},Z={"w-0":"","text-center":"","text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-right":"","text-sm":""},K=$({__name:"HooksTable",props:{hooks:{}},setup(k){const a=k,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 ")),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 ")),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 ")),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 ")),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 ")),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,P(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:("getHashColorFromString"in e?e.getHashColorFromString:x(T))(c(s.name))})},[o("code",R,m(c(s.name)),1)],4),o("td",W,[o("code",X,m(v(s.name)),1)]),o("td",Z,m(s.listeners),1),o("td",G,m(s.executions.length+1),1),o("td",J,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),M={class:"markdown-body"},Q={__name:"hooks",setup(k,{expose:a}){return a({frontmatter:{}}),(n,d)=>(u(),h("div",M,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)])))}},it=$({__name:"hooks",setup(k){const a=F(),r=B(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=K,c=D,v=Q,i=E;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),x(a)?.length?(u(),C(c,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${x(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:x(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{it as default};
@@ -0,0 +1 @@
1
+ import{a7 as T,Y as U,a8 as A,K as P,O as j,X,H as Y}from"./e6dj4v2s.js";import{_ as q}from"./nselect-tabs.vue-7ode1s40.js";import{_ as K}from"./nnavbar.vue-ifbz2rxx.js";import{_ as z}from"./filepath-item.vue-emq61mdv.js";import{_ as O}from"./composable-item.vue-ou7mghhp.js";import{p as C,U as a,W as u,F as k,ae as M,a3 as c,X as i,P as w,u as f,Z as x,q as _,a8 as W,f as B,a2 as $}from"./vendor/json-editor-vue-kcahofzr.js";import{_ as Z}from"./nsection-block-c3li7360.js";import{_ as G}from"./help-fab.vue-pnejmv3y.js";import{D as V}from"./constants-b32h69zq.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-bpva4tco.js";import"./nmarkdown.vue-jpbjhala.js";import"./client-kpmlv67d.js";import"./index-obsucz0g.js";import"./nicon-title.vue-hzhi6u0u.js";const J={flex:"~ wrap gap2",p2:"",pl4:""},Q=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=z,e=O;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",J,[(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))])}}}),R={key:0,flex:"~ col gap-2 items-start"},ee=C({__name:"HelpImportsDirs",setup(D){const r=T();return(v,o)=>{const e=z;return f(r)?.dirs?(a(),u("div",R,[(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=T(),v=_(()=>[...new Set(r.value?.imports.map(o=>U(o.from)).filter(o=>!!o&&!A(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":""},W(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"},$e=C({__name:"imports",setup(D){const r=P(),v=B("all"),o=B("all"),e=B(""),l=T(),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))||[]),F=_(()=>new j(g.value,{keys:["from","as","name"]})),s=_(()=>{const d=new Map,n=new Map,I=new Map;let p=e.value?F.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)?A(U(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}}),S=_(()=>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`),H=_(()=>o.value==="directives"?`${s.value.count.builtin} directives`:`${s.value.count.builtin} composables`),E=_(()=>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=K,h=Q,t=Z,b=ae,L=G;return a(),u(k,null,[f(r)?(a(),u("div",le,[c(N,{search:e.value,"onUpdate:search":n[2]||(n[2]=y=>e.value=y),pb3:""},{default:$(()=>[m.value?(a(),u("div",re,[c(I,{icon:"carbon-filter",op50:""}),c(p,{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=y=>v.value=y),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]=y=>o.value=y),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(V),icon:o.value==="directives"?"tabler:hexagon-letter-d":"carbon-function",text:`User ${o.value==="directives"?"directives":"composables"}`,description:S.value},{default:$(()=>[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(V),icon:"simple-icons-nuxtdotjs",text:`Built-in ${o.value==="directives"?"directives":"composables"}`,description:H.value},{default:$(()=>[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(V),icon:"carbon-3d-mpr-toggle",text:`${o.value==="directives"?"Directives":"Composables"} from libraries`,description:E.value},{default:$(()=>[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:$(()=>[c(b)]),_:1})],64)}}});export{$e as default};
@@ -0,0 +1 @@
1
+ import{f as y,g,h as N,t as b,i as k,j as h,_ as w}from"./e6dj4v2s.js";import{_ as C}from"./nlink.vue-mgfv3kxu.js";import{_ as V}from"./ncheckbox.vue-n4yvgmy3.js";import{p as B,f as L,P as u,a2 as o,U as m,X as t,a3 as n,a9 as l,u as P,Z as T}from"./vendor/json-editor-vue-kcahofzr.js";import"./vendor/unocss-mstcul8h.js";import"./vendor/shiki-bpva4tco.js";const j={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},D={"max-w-190":"","text-lg":""},$={mb6:"",op50:""},E={p4:""},F={flex:"~ col gap-2",mxa:""},Z=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){b.value=s.value,k.value=!1}function f(){a.value=!1,p.value.devtools.close()}return(S,e)=>{const _=h,r=C,i=w,x=V,v=N;return m(),u(v,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:o(()=>[t("div",j,[e[7]||(e[7]=t("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1)),t("p",D,[n(_,{"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!")),e[2]||(e[2]=t("br",null,null,-1))]),t("p",$,[e[4]||(e[4]=l(" Learn more at ")),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})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>e[5]||(e[5]=[t("span",null,"Get Started",-1)])),_:1}),P(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:f},{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{Z as default};