@nuxt/devtools-nightly 0.0.0 → 2.0.0-beta.0-28940205.5b566fb

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 (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +129 -0
  3. package/cli.mjs +2 -0
  4. package/dist/chunks/analyze-build.mjs +58 -0
  5. package/dist/chunks/module-main.mjs +2044 -0
  6. package/dist/chunks/plugin-metrics.mjs +68 -0
  7. package/dist/chunks/timeline.mjs +73 -0
  8. package/dist/chunks/vite-inspect.mjs +61 -0
  9. package/dist/chunks/vscode.mjs +195 -0
  10. package/dist/chunks/vue-devtools.mjs +30 -0
  11. package/dist/chunks/vue-inspector.mjs +15 -0
  12. package/dist/client/200.html +20 -0
  13. package/dist/client/404.html +20 -0
  14. package/dist/client/_nuxt/__blank-n15vnpb5.js +1 -0
  15. package/dist/client/_nuxt/analyze-build-kcwmvlyl.js +1 -0
  16. package/dist/client/_nuxt/assets-ivvrbi3q.js +16 -0
  17. package/dist/client/_nuxt/assets.css-hmxl533k.css +1 -0
  18. package/dist/client/_nuxt/b6bfxrb8.js +17 -0
  19. package/dist/client/_nuxt/builds/latest.json +1 -0
  20. package/dist/client/_nuxt/builds/meta/b8bbfd27-5704-4be8-a606-01af93c734ef.json +1 -0
  21. package/dist/client/_nuxt/client-c9f80qsp.js +1 -0
  22. package/dist/client/_nuxt/code-diff.vue-bhijg81q.js +8 -0
  23. package/dist/client/_nuxt/code-snippets.vue-i4e657wf.js +1 -0
  24. package/dist/client/_nuxt/components-krpx1826.js +1 -0
  25. package/dist/client/_nuxt/composable-item.vue-kwpzi9u7.js +1 -0
  26. package/dist/client/_nuxt/constants-b32h69zq.js +1 -0
  27. package/dist/client/_nuxt/custom-_name_-cepykbos.js +1 -0
  28. package/dist/client/_nuxt/default-mk5axw1k.js +1 -0
  29. package/dist/client/_nuxt/duration-display.vue-kqe6a4wx.js +1 -0
  30. package/dist/client/_nuxt/entry.css-nqz5coc9.css +1 -0
  31. package/dist/client/_nuxt/error-404-lp8coab3.js +1 -0
  32. package/dist/client/_nuxt/error-404.css-b3x40x40.css +1 -0
  33. package/dist/client/_nuxt/error-500-d4b6gi3u.js +1 -0
  34. package/dist/client/_nuxt/error-500.css-hilpkhd4.css +1 -0
  35. package/dist/client/_nuxt/error-ojb7cn7v.js +9 -0
  36. package/dist/client/_nuxt/filepath-item.vue-b829sn9l.js +1 -0
  37. package/dist/client/_nuxt/full-j8mngb76.js +1 -0
  38. package/dist/client/_nuxt/help-fab.css-ms50khsu.css +1 -0
  39. package/dist/client/_nuxt/help-fab.vue-gtlaa6k2.js +1 -0
  40. package/dist/client/_nuxt/hooks-htmew7il.js +1 -0
  41. package/dist/client/_nuxt/imports-18kqq3am.js +1 -0
  42. package/dist/client/_nuxt/index-dl6nn7ct.js +2 -0
  43. package/dist/client/_nuxt/index-e7wrzeix.js +1 -0
  44. package/dist/client/_nuxt/launch-page.vue-iyi310zf.js +1 -0
  45. package/dist/client/_nuxt/modules-hdu1ikfi.js +1 -0
  46. package/dist/client/_nuxt/nbadge-fktngirm.js +1 -0
  47. package/dist/client/_nuxt/ncheckbox.vue-fs1yhvat.js +1 -0
  48. package/dist/client/_nuxt/ncode-block.css-c9cb29at.css +1 -0
  49. package/dist/client/_nuxt/ncode-block.vue-gy1ero5j.js +2 -0
  50. package/dist/client/_nuxt/ndrawer.vue-cjxfdzsk.js +1 -0
  51. package/dist/client/_nuxt/ndropdown.vue-fe8ybtb0.js +1 -0
  52. package/dist/client/_nuxt/nicon-title.vue-ouqsubn7.js +1 -0
  53. package/dist/client/_nuxt/nlink.vue-jafnipxp.js +1 -0
  54. package/dist/client/_nuxt/nmarkdown.vue-hygash5x.js +1 -0
  55. package/dist/client/_nuxt/nnavbar.vue-d5x8tq5w.js +1 -0
  56. package/dist/client/_nuxt/none-i3w61o4x.js +1 -0
  57. package/dist/client/_nuxt/nsection-block-ivkmhmn9.js +1 -0
  58. package/dist/client/_nuxt/nsection-block.css-e7kbjm7k.css +1 -0
  59. package/dist/client/_nuxt/nselect-tabs.vue-sw71szzx.js +1 -0
  60. package/dist/client/_nuxt/nselect.vue-mkp3umn0.js +1 -0
  61. package/dist/client/_nuxt/open-graph-i5rptgvl.js +3 -0
  62. package/dist/client/_nuxt/open-graph.css-e21qzmvj.css +1 -0
  63. package/dist/client/_nuxt/overview-jzek603r.js +1 -0
  64. package/dist/client/_nuxt/pages-mhjzw1eo.js +1 -0
  65. package/dist/client/_nuxt/payload-kjhui3c5.js +1 -0
  66. package/dist/client/_nuxt/pinia-jy0feqo2.js +1 -0
  67. package/dist/client/_nuxt/plugins-d2vnj57a.js +1 -0
  68. package/dist/client/_nuxt/render-tree-malxu5t7.js +1 -0
  69. package/dist/client/_nuxt/runtime-configs-c8u0cuv7.js +1 -0
  70. package/dist/client/_nuxt/server-route-inputs.vue-dfs3eezs.js +1 -0
  71. package/dist/client/_nuxt/server-routes-ea89bftg.js +9 -0
  72. package/dist/client/_nuxt/server-tasks-guw0x7eh.js +1 -0
  73. package/dist/client/_nuxt/settings-nr7x6wel.js +1 -0
  74. package/dist/client/_nuxt/stacktrace-list.vue-cfyme80n.js +1 -0
  75. package/dist/client/_nuxt/state-components-f29eyhzi.js +1 -0
  76. package/dist/client/_nuxt/state-editor.vue-nd6tb0dn.js +1 -0
  77. package/dist/client/_nuxt/state-modules-gh2s62ky.js +1 -0
  78. package/dist/client/_nuxt/storage-d1qa6fff.js +1 -0
  79. package/dist/client/_nuxt/terminals-igsxvm6w.js +1 -0
  80. package/dist/client/_nuxt/terminals.css-mejv43xm.css +1 -0
  81. package/dist/client/_nuxt/timeline-lm6kcwsd.js +31 -0
  82. package/dist/client/_nuxt/timeline.css-lhkpu01p.css +1 -0
  83. package/dist/client/_nuxt/unocss-runtime-jzfgcoxk.js +1 -0
  84. package/dist/client/_nuxt/vendor/json-editor-vue-gi2fewby.js +3818 -0
  85. package/dist/client/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css +1 -0
  86. package/dist/client/_nuxt/vendor/markdown-it-fvu08dbs.js +16 -0
  87. package/dist/client/_nuxt/vendor/shiki-bnvxb5wv.js +147 -0
  88. package/dist/client/_nuxt/vendor/unocss-3uirpnla.js +2 -0
  89. package/dist/client/_nuxt/vendor/unocss.css-mhvipxpl.css +1 -0
  90. package/dist/client/_nuxt/vendor/vis-dlwijd5n.js +98 -0
  91. package/dist/client/_nuxt/vendor/xterm-dbpzgj7s.js +9 -0
  92. package/dist/client/_nuxt/vendor/xterm.css-egmhki83.css +32 -0
  93. package/dist/client/_nuxt/virtual-files-jzsbborg.js +1 -0
  94. package/dist/client/_nuxt/virtual-files.css-gqpg2wnb.css +1 -0
  95. package/dist/client/_nuxt/vue-virtual-scroller.esm-hx1s7s1b.js +2 -0
  96. package/dist/client/index.html +20 -0
  97. package/dist/client/nuxt.svg +3 -0
  98. package/dist/dirs.d.mts +7 -0
  99. package/dist/dirs.d.ts +7 -0
  100. package/dist/dirs.mjs +28 -0
  101. package/dist/module.cjs +5 -0
  102. package/dist/module.d.mts +9 -0
  103. package/dist/module.d.ts +9 -0
  104. package/dist/module.json +9 -0
  105. package/dist/module.mjs +6 -0
  106. package/dist/runtime/auth/index.html +76 -0
  107. package/dist/runtime/function-metrics-helpers.d.ts +3 -0
  108. package/dist/runtime/function-metrics-helpers.js +69 -0
  109. package/dist/runtime/nitro/inline.d.ts +3 -0
  110. package/dist/runtime/nitro/inline.js +6 -0
  111. package/dist/runtime/plugins/devtools.client.d.ts +2 -0
  112. package/dist/runtime/plugins/devtools.client.js +56 -0
  113. package/dist/runtime/plugins/devtools.server.d.ts +2 -0
  114. package/dist/runtime/plugins/devtools.server.js +7 -0
  115. package/dist/runtime/plugins/view/FrameBox.vue +167 -0
  116. package/dist/runtime/plugins/view/Main.vue +422 -0
  117. package/dist/runtime/plugins/view/client.d.ts +12 -0
  118. package/dist/runtime/plugins/view/client.js +332 -0
  119. package/dist/runtime/plugins/view/state.d.ts +5 -0
  120. package/dist/runtime/plugins/view/state.js +17 -0
  121. package/dist/runtime/plugins/view/utils.d.ts +31 -0
  122. package/dist/runtime/plugins/view/utils.js +156 -0
  123. package/dist/runtime/settings.d.ts +4 -0
  124. package/dist/runtime/settings.js +2 -0
  125. package/dist/runtime/shared/hooks.d.ts +2 -0
  126. package/dist/runtime/shared/hooks.js +33 -0
  127. package/dist/runtime/use-nuxt-devtools.d.ts +8 -0
  128. package/dist/runtime/use-nuxt-devtools.js +23 -0
  129. package/dist/runtime/vue-devtools/overlay.d.ts +1 -0
  130. package/dist/runtime/vue-devtools/overlay.js +8 -0
  131. package/dist/shared/devtools-nightly.2a48a9e5.d.mts +62 -0
  132. package/dist/shared/devtools-nightly.2a48a9e5.d.ts +62 -0
  133. package/dist/shared/devtools-nightly.5ac54dae.mjs +121 -0
  134. package/dist/types.d.mts +42 -0
  135. package/dist/types.d.ts +42 -0
  136. package/dist/types.mjs +1 -0
  137. package/package.json +123 -2
  138. package/types.d.ts +1 -0
@@ -0,0 +1 @@
1
+ {"id":"b8bbfd27-5704-4be8-a606-01af93c734ef","timestamp":1736412328264}
@@ -0,0 +1 @@
1
+ {"id":"b8bbfd27-5704-4be8-a606-01af93c734ef","timestamp":1736412328264,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -0,0 +1 @@
1
+ import{j as f,H as r}from"./vendor/json-editor-vue-gi2fewby.js";let e;const n=[];function s(i){if(n.push(i),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&n.forEach(o=>o(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(o){o&&n.forEach(t=>t(o))},get(){return e.value},configurable:!0}),()=>{n.splice(n.indexOf(i),1)}}function u(){e||(e=f(),s(o));function i(){e&&r(e)}function o(t){e.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",i)}return e}const c=u();export{c as d};
@@ -0,0 +1,8 @@
1
+ import{_ as H}from"./ncode-block.vue-gy1ero5j.js";import{bh as P}from"./b6bfxrb8.js";import{k as U,l as X,b as Y,x as j,Q as W,M as S}from"./vendor/json-editor-vue-gi2fewby.js";function g(){}g.prototype={diff:function(e,r){var t,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=u.callback;typeof u=="function"&&(o=u,u={});var i=this;function f(v){return v=i.postProcess(v,u),o?(setTimeout(function(){o(v)},0),!0):v}e=this.castInput(e,u),r=this.castInput(r,u),e=this.removeEmpty(this.tokenize(e,u)),r=this.removeEmpty(this.tokenize(r,u));var l=r.length,s=e.length,a=1,c=l+s;u.maxEditLength!=null&&(c=Math.min(c,u.maxEditLength));var p=(t=u.timeout)!==null&&t!==void 0?t:1/0,d=Date.now()+p,m=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(m[0],r,e,0,u);if(m[0].oldPos+1>=s&&h+1>=l)return f(F(i,m[0].lastComponent,r,e,i.useLongestToken));var y=-1/0,T=1/0;function x(){for(var v=Math.max(y,-a);v<=Math.min(T,a);v+=2){var C=void 0,w=m[v-1],E=m[v+1];w&&(m[v-1]=void 0);var _=!1;if(E){var M=E.oldPos-v;_=E&&0<=M&&M<l}var B=w&&w.oldPos+1<s;if(!_&&!B){m[v]=void 0;continue}if(!B||_&&w.oldPos<E.oldPos?C=i.addToPath(E,!0,!1,0,u):C=i.addToPath(w,!1,!0,1,u),h=i.extractCommon(C,r,e,v,u),C.oldPos+1>=s&&h+1>=l)return f(F(i,C.lastComponent,r,e,i.useLongestToken));m[v]=C,C.oldPos+1>=s&&(T=Math.min(T,v-1)),h+1>=l&&(y=Math.max(y,v+1))}a++}if(o)(function v(){setTimeout(function(){if(a>c||Date.now()>d)return o();x()||v()},0)})();else for(;a<=c&&Date.now()<=d;){var z=x();if(z)return z}},addToPath:function(e,r,t,u,o){var i=e.lastComponent;return i&&!o.oneChangePerToken&&i.added===r&&i.removed===t?{oldPos:e.oldPos+u,lastComponent:{count:i.count+1,added:r,removed:t,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+u,lastComponent:{count:1,added:r,removed:t,previousComponent:i}}},extractCommon:function(e,r,t,u,o){for(var i=r.length,f=t.length,l=e.oldPos,s=l-u,a=0;s+1<i&&l+1<f&&this.equals(t[l+1],r[s+1],o);)s++,l++,a++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return a&&!o.oneChangePerToken&&(e.lastComponent={count:a,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,s},equals:function(e,r,t){return t.comparator?t.comparator(e,r):e===r||t.ignoreCase&&e.toLowerCase()===r.toLowerCase()},removeEmpty:function(e){for(var r=[],t=0;t<e.length;t++)e[t]&&r.push(e[t]);return r},castInput:function(e){return e},tokenize:function(e){return Array.from(e)},join:function(e){return e.join("")},postProcess:function(e){return e}};function F(n,e,r,t,u){for(var o=[],i;e;)o.push(e),i=e.previousComponent,delete e.previousComponent,e=i;o.reverse();for(var f=0,l=o.length,s=0,a=0;f<l;f++){var c=o[f];if(c.removed)c.value=n.join(t.slice(a,a+c.count)),a+=c.count;else{if(!c.added&&u){var p=r.slice(s,s+c.count);p=p.map(function(d,m){var h=t[a+m];return h.length>d.length?h:d}),c.value=n.join(p)}else c.value=n.join(r.slice(s,s+c.count));s+=c.count,c.added||(a+=c.count)}}return o}function V(n,e){var r;for(r=0;r<n.length&&r<e.length;r++)if(n[r]!=e[r])return n.slice(0,r);return n.slice(0,r)}function Q(n,e){var r;if(!n||!e||n[n.length-1]!=e[e.length-1])return"";for(r=0;r<n.length&&r<e.length;r++)if(n[n.length-(r+1)]!=e[e.length-(r+1)])return n.slice(-r);return n.slice(-r)}function q(n,e,r){if(n.slice(0,e.length)!=e)throw Error("string ".concat(JSON.stringify(n)," doesn't start with prefix ").concat(JSON.stringify(e),"; this is a bug"));return r+n.slice(e.length)}function N(n,e,r){if(!e)return n+r;if(n.slice(-e.length)!=e)throw Error("string ".concat(JSON.stringify(n)," doesn't end with suffix ").concat(JSON.stringify(e),"; this is a bug"));return n.slice(0,-e.length)+r}function L(n,e){return q(n,e,"")}function I(n,e){return N(n,e,"")}function Z(n,e){return e.slice(0,b(n,e))}function b(n,e){var r=0;n.length>e.length&&(r=n.length-e.length);var t=e.length;n.length<e.length&&(t=n.length);var u=Array(t),o=0;u[0]=0;for(var i=1;i<t;i++){for(e[i]==e[o]?u[i]=u[o]:u[i]=o;o>0&&e[i]!=e[o];)o=u[o];e[i]==e[o]&&o++}o=0;for(var f=r;f<n.length;f++){for(;o>0&&n[f]!=e[o];)o=u[o];n[f]==e[o]&&o++}return o}var O="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",K=new RegExp("[".concat(O,"]+|\\s+|[^").concat(O,"]"),"ug"),k=new g;k.equals=function(n,e,r){return r.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n.trim()===e.trim()};k.tokenize=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;if(e.intlSegmenter){if(e.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=Array.from(e.intlSegmenter.segment(n),function(o){return o.segment})}else r=n.match(K)||[];var t=[],u=null;return r.forEach(function(o){/\s/.test(o)?u==null?t.push(o):t.push(t.pop()+o):/\s/.test(u)?t[t.length-1]==u?t.push(t.pop()+o):t.push(u+o):t.push(o),u=o}),t};k.join=function(n){return n.map(function(e,r){return r==0?e:e.replace(/^\s+/,"")}).join("")};k.postProcess=function(n,e){if(!n||e.oneChangePerToken)return n;var r=null,t=null,u=null;return n.forEach(function(o){o.added?t=o:o.removed?u=o:((t||u)&&G(r,u,t,o),r=o,t=null,u=null)}),(t||u)&&G(r,u,t,null),n};function G(n,e,r,t){if(e&&r){var u=e.value.match(/^\s*/)[0],o=e.value.match(/\s*$/)[0],i=r.value.match(/^\s*/)[0],f=r.value.match(/\s*$/)[0];if(n){var l=V(u,i);n.value=N(n.value,i,l),e.value=L(e.value,l),r.value=L(r.value,l)}if(t){var s=Q(o,f);t.value=q(t.value,f,s),e.value=I(e.value,s),r.value=I(r.value,s)}}else if(r)n&&(r.value=r.value.replace(/^\s*/,"")),t&&(t.value=t.value.replace(/^\s*/,""));else if(n&&t){var a=t.value.match(/^\s*/)[0],c=e.value.match(/^\s*/)[0],p=e.value.match(/\s*$/)[0],d=V(a,c);e.value=L(e.value,d);var m=Q(L(a,d),p);e.value=I(e.value,m),t.value=q(t.value,a,m),n.value=N(n.value,a,a.slice(0,a.length-m.length))}else if(t){var h=t.value.match(/^\s*/)[0],y=e.value.match(/\s*$/)[0],T=Z(y,h);e.value=I(e.value,T)}else if(n){var x=n.value.match(/\s*$/)[0],z=e.value.match(/^\s*/)[0],v=Z(x,z);e.value=L(e.value,v)}}var ee=new g;ee.tokenize=function(n){var e=new RegExp("(\\r?\\n)|[".concat(O,"]+|[^\\S\\n\\r]+|[^").concat(O,"]"),"ug");return n.match(e)||[]};var $=new g;$.tokenize=function(n,e){e.stripTrailingCr&&(n=n.replace(/\r\n/g,`
2
+ `));var r=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var u=0;u<t.length;u++){var o=t[u];u%2&&!e.newlineIsToken?r[r.length-1]+=o:r.push(o)}return r};$.equals=function(n,e,r){return r.ignoreWhitespace?((!r.newlineIsToken||!n.includes(`
3
+ `))&&(n=n.trim()),(!r.newlineIsToken||!e.includes(`
4
+ `))&&(e=e.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(n.endsWith(`
5
+ `)&&(n=n.slice(0,-1)),e.endsWith(`
6
+ `)&&(e=e.slice(0,-1))),g.prototype.equals.call(this,n,e,r)};function ne(n,e,r){return $.diff(n,e,r)}var re=new g;re.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var oe=new g;oe.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function R(n){"@babel/helpers - typeof";return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(n)}var D=new g;D.useLongestToken=!0;D.tokenize=$.tokenize;D.castInput=function(n,e){var r=e.undefinedReplacement,t=e.stringifyReplacer,u=t===void 0?function(o,i){return typeof i>"u"?r:i}:t;return typeof n=="string"?n:JSON.stringify(A(n,null,null,u),u," ")};D.equals=function(n,e,r){return g.prototype.equals.call(D,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"),r)};function A(n,e,r,t,u){e=e||[],r=r||[],t&&(n=t(u,n));var o;for(o=0;o<e.length;o+=1)if(e[o]===n)return r[o];var i;if(Object.prototype.toString.call(n)==="[object Array]"){for(e.push(n),i=new Array(n.length),r.push(i),o=0;o<n.length;o+=1)i[o]=A(n[o],e,r,t,u);return e.pop(),r.pop(),i}if(n&&n.toJSON&&(n=n.toJSON()),R(n)==="object"&&n!==null){e.push(n),i={},r.push(i);var f=[],l;for(l in n)Object.prototype.hasOwnProperty.call(n,l)&&f.push(l);for(f.sort(),o=0;o<f.length;o+=1)l=f[o],i[l]=A(n[l],e,r,t,l);e.pop(),r.pop()}else i=n;return i}var J=new g;J.tokenize=function(n){return n.slice()};J.join=J.removeEmpty=function(n){return n};const le=U({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function r(f,l){const s=ne(f.trim(),l.trim()),a=[],c=[],p=[];for(const d of s){const m=d.value.trimEnd().split(`
7
+ `);for(const h of m)d.added?(a.push(p.length),p.push(h)):(d.removed&&c.push(p.length),p.push(h))}return{added:a,removed:c,result:p.join(`
8
+ `)}}const t=X(()=>r(e.from,e.to));function u(f){let l=0;return f.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,s=>(l++,t.value.added.includes(l-1)?'class="line line-added"':t.value.removed.includes(l-1)?'class="line line-removed"':s))}const o=Y();j(i);function i(){const f=P(o);f&&f.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(f,l)=>{const s=H;return W(),S(s,{ref_key:"elRef",ref:o,code:t.value.result,lang:f.lang,"transform-rendered":u,onLoaded:i},null,8,["code","lang"])}}});export{le as _};
@@ -0,0 +1 @@
1
+ import{_ as g}from"./ncode-block.vue-gy1ero5j.js";import{I as C,e as S}from"./b6bfxrb8.js";import{k as w,j as x,l as B,w as N,Q as a,S as n,U as s,F as d,ab as $,Y as i,a5 as V,a0 as u,$ as v,a6 as m,u as T,M as h,W as r}from"./vendor/json-editor-vue-gi2fewby.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"},Q=w({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(f){const l=f,e=x(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=S;return p.codeSnippets.length?(a(),n("div",D,[s("div",E,[(a(!0),n(d,null,$(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:j=>e.value=t},[s("div",{class:i(t===e.value?"":"op30"),"font-mono":""},V(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=>T(_)(e.value.code,p.eventType||`code-snippet-${e.value.name}`))},{default:v(()=>o[2]||(o[2]=[m(" Copy ")])),_:1}),e.value?.docs?(a(),h(c,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:v(()=>o[3]||(o[3]=[m(" Docs ")])),_:1},8,["to"])):r("",!0)])],64)):r("",!0)])):r("",!0)}}});export{Q as _};
@@ -0,0 +1 @@
1
+ import{I as ie,e as X,P as pe,Q as re,H as ue,R as de,b as J,S as me,T as ce,U as fe,M as ve,V as _e,W as he,D as be,X as ge}from"./b6bfxrb8.js";import{Q as t,S as _,U as n,k as R,l as S,a6 as Q,a5 as W,a0 as v,u as N,M as x,W as k,F as M,ab as B,V as H,b as L,j as ye,x as we,c as xe,$ as b,y as A,R as ke,Y as Ce,a1 as z,ae as $e,a7 as Ne,a8 as Y}from"./vendor/json-editor-vue-gi2fewby.js";import{_ as Ve}from"./help-fab.vue-gtlaa6k2.js";import{_ as Se}from"./ncheckbox.vue-fs1yhvat.js";import{_ as K}from"./nnavbar.vue-d5x8tq5w.js";import{_ as Z}from"./nbadge-fktngirm.js";import{_ as ee}from"./filepath-item.vue-b829sn9l.js";import{_ as Pe}from"./ndrawer.vue-cjxfdzsk.js";import{N as De}from"./vendor/vis-dlwijd5n.js";import{_ as Me}from"./nselect-tabs.vue-sw71szzx.js";import{_ as Te}from"./nsection-block-ivkmhmn9.js";import{_ as Ue}from"./nicon-title.vue-ouqsubn7.js";import{D as O}from"./constants-b32h69zq.js";import{u as Be,a as Le}from"./state-components-f29eyhzi.js";import"./vendor/unocss-3uirpnla.js";import"./vendor/shiki-bnvxb5wv.js";const Re={class:"markdown-body"},Ie={__name:"components",setup(r,{expose:s}){return s({frontmatter:{}}),(a,i)=>(t(),_("div",Re,i[0]||(i[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)])))}},Fe=/\d/,Ge=["-","_","/","."];function Ae(r=""){if(!Fe.test(r))return r!==r.toLowerCase()}function Ee(r,s){const m=Ge,a=[];if(!r||typeof r!="string")return a;let i="",o,p;for(const c of r){const u=m.includes(c);if(u===!0){a.push(i),i="",o=void 0;continue}const f=Ae(c);if(p===!1){if(o===!1&&f===!0){a.push(i),i=c,o=f;continue}if(o===!0&&f===!1&&i.length>1){const g=i.at(-1);a.push(i.slice(0,Math.max(0,i.length-1))),i=g+c,o=f;continue}}i+=c,o=f,p=u}return a.push(i),a}function ze(r){return r?r[0].toUpperCase()+r.slice(1):""}function ne(r,s){return r?(Array.isArray(r)?r:Ee(r)).map(m=>ze(m)).join(""):""}const We={"text-sm":"","font-mono":""},oe=R({__name:"ComponentName",props:{component:{}},setup(r){const s=r,m=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||""));return(a,i)=>(t(),_("code",We,[i[0]||(i[0]=n("span",{mr1:"",op20:""},"<",-1)),Q(W(m.value),1),i[1]||(i[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),He={flex:"~ col gap1","items-start":"","of-hidden":""},je={flex:"~ gap2",px3:""},Oe={px3:"",pb2:""},Qe={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Xe={"text-sm":""},qe={"text-primary":""},Ye={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Je={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Ke={"text-sm":""},Ze={"text-primary":""},en={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},te=R({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,m=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||"")),a=S(()=>s.component.filePath||s.component.file||s.component.__file||""),i=ie();return(o,p)=>{const c=oe,u=X,f=Z,g=ee;return t(),_("div",He,[n("div",je,[v(c,{component:o.component},null,8,["component"]),v(u,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:p[0]||(p[0]=h=>N(i)(`<${m.value}></${m.value}>`,"component-name"))}),o.component.global?(t(),x(f,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0)]),n("div",Oe,[a.value?(t(),x(g,{key:0,filepath:a.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)]),o.dependents?(t(),_("div",Qe,[n("div",Xe,[n("strong",qe,W(o.dependents.length),1),p[1]||(p[1]=n("span",{op50:""}," references",-1))]),o.dependents.length?(t(),_("div",Ye,[(t(!0),_(M,null,B(o.dependents,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),o.dependencies?(t(),_("div",Je,[n("div",Ke,[n("strong",Ze,W(o.dependencies.length),1),p[2]||(p[2]=n("span",{op50:""}," dependencies",-1))]),o.dependencies.length?(t(),_("div",en,[(t(!0),_(M,null,B(o.dependencies,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),H(o.$slots,"default")])}}}),nn={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},on={relative:"","h-full":"","w-full":""},tn={key:0,py4:"",pt4:"",flex:"~ col"},sn={border:"t base",p4:""},ln=R({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(r){const s=r,m=L(),a=L(),i=pe(),o=ye(),p=re(),c=ue(),u=de(),{componentsGraphShowNodeModules:f,componentsGraphShowGlobalComponents:g,componentsGraphShowPages:h,componentsGraphShowLayouts:V,componentsGraphShowWorkspace:y}=J("ui"),C=L(),d=L(""),I=me(d,300),F=S(()=>{const P=s.relationships||[];if(C.value){let e=function($){!$||l.has($)||(l.add($),$.deps.forEach(T=>{e(P.find(U=>U.id===T))}))};const l=new Set;return e(C.value),Array.from(l)}return P}),E=S(()=>{const P=F.value.map(l=>{const $=s.components.find(G=>G.filePath===l.id),T=p.value?.find(G=>G.file===l.id),U=u.value?.find(G=>G.file===l.id),j=l.id.replace(/\?.*$/,"").replace(/#.*$/,""),D=l.id.includes("/node_modules/")?"lib":$?$.global?"global":"user":U?"layout":T?"page":"unknown";if(!f.value&&D==="lib"||!h.value&&D==="page"||!V.value&&D==="layout"||!y.value&&D==="user"&&c.value&&!l.id.startsWith(c.value.rootDir)||!g.value&&D==="global")return null;const w=D==="layout"?"hexagon":D==="page"?"square":"dot",q=I.value&&!l.id.toLowerCase().includes(I.value.toLowerCase());return{id:l.id,label:j.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:D,shape:w,size:15+Math.min(l.deps.length/2,8),font:{color:q?"#8885":i.value==="dark"?"white":"black"},color:q?"#8885":C.value?.id===l.id?"#82c742":void 0,extra:{id:l.id,component:$,page:T,layout:U,relationship:l}}}).filter(l=>!!l),e=F.value.flatMap(l=>l.deps.map($=>({from:l.id,to:$,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:P,edges:e}}),se=S(()=>o.value?.component?s.relationships?.find(e=>e.id===o.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(l=>l.id===e)?.id).filter(Boolean):[]),le=S(()=>o.value?.component?s.relationships?.filter(e=>e.deps.includes(o.value.component.filePath))?.map(e=>s.relationships?.find(l=>l.id===e.id)?.id).filter(Boolean):[]);we(()=>{const P={nodes:{shape:"dot",size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:"#42b883"},unknown:{color:"#b86542"},lib:{color:"#b4b842"},page:{color:"#42b2b8"},layout:{color:"#4256b8"}}},e=new De(m.value,E.value,P);e.on("click",l=>{const $=l.nodes?.[0],T=E.value.nodes?.find(U=>U.id===$)?.extra;T&&(o.value=T)}),xe(E,()=>{e.setData(E.value)})});function ae(){C.value=o.value?.relationship,o.value=void 0}return(P,e)=>{const l=Se,$=K,T=ce,U=te,j=X,D=Pe;return t(),_(M,null,[v($,{ref_key:"navbar",ref:a,search:d.value,"onUpdate:search":e[6]||(e[6]=w=>d.value=w),absolute:"","left-0":"","right-0":"","top-0":""},{actions:b(()=>[n("div",nn,[v(l,{modelValue:N(h),"onUpdate:modelValue":e[0]||(e[0]=w=>A(h)?h.value=w:null),n:"primary sm"},{default:b(()=>e[9]||(e[9]=[n("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(V),"onUpdate:modelValue":e[1]||(e[1]=w=>A(V)?V.value=w:null),n:"primary sm"},{default:b(()=>e[10]||(e[10]=[n("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(y),"onUpdate:modelValue":e[2]||(e[2]=w=>A(y)?y.value=w:null),n:"primary sm"},{default:b(()=>e[11]||(e[11]=[n("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(f),"onUpdate:modelValue":e[3]||(e[3]=w=>A(f)?f.value=w:null),n:"primary sm"},{default:b(()=>e[12]||(e[12]=[n("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(g),"onUpdate:modelValue":e[4]||(e[4]=w=>A(g)?g.value=w:null),n:"primary sm"},{default:b(()=>e[13]||(e[13]=[n("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),C.value?(t(),_("button",{key:0,flex:"~ gap-1","flex-none":"","items-center":"","rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:e[5]||(e[5]=w=>C.value=void 0)},e[14]||(e[14]=[Q(" Clear filter "),n("div",{"i-carbon-close":""},null,-1)]))):k("",!0),e[15]||(e[15]=n("div",{"flex-auto":""},null,-1)),H(P.$slots,"default")]),_:3},8,["search"]),n("div",on,[n("div",{ref_key:"container",ref:m,"h-full":"","w-full":""},null,512),v(T,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:b(()=>e[16]||(e[16]=[n("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),n("div",{op50:""}," Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),n("div",{op50:""}," Global Component "),n("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),n("div",{op50:""}," Page "),n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[n("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),n("div",{op50:""}," Layout "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),n("div",{op50:""}," Library Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),n("div",{op50:""}," Unknown ")],-1)])),_:1}),v(D,{"model-value":!!(o.value&&o.value.component),top:a.value,border:"t l base","w-80":"",onClose:e[8]||(e[8]=w=>o.value=void 0)},{default:b(()=>[o.value&&o.value.component?(t(),_("div",tn,[v(U,{component:o.value.component,dependencies:se.value,dependents:le.value},null,8,["component","dependencies","dependents"]),n("div",sn,[v(j,{n:"primary solid",onClick:e[7]||(e[7]=w=>ae())},{default:b(()=>e[17]||(e[17]=[Q(" Filter to this component ")])),_:1})])])):k("",!0)]),_:1},8,["model-value","top"])])],64)}}}),an={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},pn={key:0,"ml--1":"","text-primary":""},rn=R({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,m=S(()=>s.component.filePath||s.component.file||s.component.__file||"");return(a,i)=>{const o=oe,p=te,c=ke("VDropdown"),u=Z,f=ee;return t(),_("div",an,[v(c,null,{popper:b(()=>[v(p,{component:a.component,dependencies:a.dependencies,dependents:a.dependents,"w-100":"",pt4:""},null,8,["component","dependencies","dependents"])]),default:b(()=>[n("button",{"hover:text-primary":"",class:Ce(a.dependents&&a.dependents.length===0?"op50":"")},[v(o,{component:a.component},null,8,["component"])],2)]),_:1}),a.dependents?.length?(t(),_("sup",pn," x"+W(a.dependents?.length),1)):k("",!0),a.component.global?(t(),x(u,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0),H(a.$slots,"default"),m.value?(t(),x(f,{key:2,filepath:m.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)])}}}),un={flex:"~ gap-2 items-center"},dn={pl4:""},mn=R({__name:"ComponentsList",props:{components:{},relationships:{}},setup(r){const s=r,m=L(""),a=L("all"),i=S(()=>{const c=s.components.map(u=>fe(u,s.relationships));return a.value==="using"?c.filter(u=>u.dependents?.length):a.value==="not-used"?c.filter(u=>!u.dependents?.length):c}),o=S(()=>new ve(i.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),p=S(()=>{const c=[],u=new Map,f=[],g=[],h={user:0,lib:0,builtin:0,runtime:0};return(m.value?o.value.search(m.value).map(y=>y.item):i.value).forEach(y=>{const C=y.component;if(C.filePath&&_e(C.filePath)){const d=he(C.filePath);if(!d)return;d==="nuxt"?(f.push(y),h.builtin++):(u.has(d)||u.set(d,[]),u.get(d).push(y),h.lib++)}else C.global&&!C.filePath?(g.push(y),h.runtime++):(c.push(y),h.user++)}),{count:h,user:c,builtin:f,lib:u,runtime:g}});return(c,u)=>{const f=be,g=Me,h=K,V=rn,y=Te,C=Ue;return t(),_(M,null,[v(h,{search:m.value,"onUpdate:search":u[1]||(u[1]=d=>m.value=d),pb3:""},{actions:b(()=>[H(c.$slots,"default")]),default:b(()=>[n("div",un,[v(f,{icon:"carbon-filter",op50:""}),v(g,{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=d=>a.value=d),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),p.value.user.length?(t(),x(y,{key:0,icon:"carbon-nominal",text:"User components",open:p.value.user.length<=N(O),description:`Total components: ${p.value.count.user}`},{default:b(()=>[(t(!0),_(M,null,B(p.value.user,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.runtime.length?(t(),x(y,{key:1,icon:"carbon-load-balancer-global",open:p.value.runtime.length<=N(O),text:"Runtime components",description:`Total components: ${p.value.count.runtime}`},{default:b(()=>[(t(!0),_(M,null,B(p.value.runtime,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.builtin.length?(t(),x(y,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${p.value.count.builtin}`},{default:b(()=>[(t(!0),_(M,null,B(p.value.builtin,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["description"])):k("",!0),p.value.lib.size?(t(),x(y,{key:3,open:p.value.count.lib<=N(O),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:b(()=>[(t(!0),_(M,null,B(p.value.lib.entries(),([d,I])=>(t(),_("div",{key:d,"ml-2":""},[v(C,{text:`${d} (${I.length})`,py1:"",op50:""},null,8,["text"]),n("div",dn,[(t(!0),_(M,null,B(I,F=>(t(),x(V,z({key:F.component.filePath,ref_for:!0},F),null,16))),128))])]))),128))]),_:1},8,["open","description"])):k("",!0)],64)}}}),cn={relative:"","h-full":"","of-auto":""},fn={"flex-none":"",flex:"~ gap3"},Mn=R({__name:"components",setup(r){const s=ge(),m=Be(),a=Le(),{componentsView:i}=J("ui");function o(){s.value?.inspector?.instance&&s.value.inspector.enable()}function p(){i.value=i.value==="list"?"graph":"list"}return(c,u)=>{const f=X,g=Ie,h=Ve,V=$e("tooltip");return t(),_(M,null,[n("div",cn,[(t(),x(Ne(N(i)==="list"?mn:ln),{components:N(m),relationships:N(a)},{default:b(()=>[n("div",fn,[Y(v(f,{"text-lg":"",border:!1,icon:N(i)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:p},null,8,["icon"]),[[V,"Toggle View",void 0,{"bottom-end":!0}]]),N(s)?.inspector?.instance?Y((t(),x(f,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:o},null,512)),[[V,"Inspect Vue components",void 0,{"bottom-end":!0}]]):k("",!0)])]),_:1},8,["components","relationships"]))]),v(h,null,{default:b(()=>[v(g)]),_:1})],64)}}});export{Mn as default};
@@ -0,0 +1 @@
1
+ import{_ as B}from"./nmarkdown.vue-hygash5x.js";import{I as U,J as V,e as $}from"./b6bfxrb8.js";import{_ as D}from"./filepath-item.vue-b829sn9l.js";import{C as y}from"./constants-b32h69zq.js";import{k as E,l,R as F,Q as s,M as r,$ as i,U as o,W as u,a0 as S,u as k,a6 as d,S as c,F as x,a5 as v,ab as j,Y as M}from"./vendor/json-editor-vue-gi2fewby.js";const W={"hover:text-primary":""},z={key:0,"text-primary":""},J={"max-w-100":""},L={px4:"",py3:"","text-sm":""},O={flex:"~ gap2",n:"primary xs"},Q={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},R={"text-sm":""},T={"text-primary":""},Y={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},q={key:1,"text-sm":"",op50:""},X=E({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(b){const t=b,g=U(),C=V(),m=l(()=>t.item.as||t.item.name),n=l(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),h=l(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(a=>!a.endsWith("?macro=true"))),_=l(()=>t.item.meta?.docsUrl?t.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(t.item.from)?y.nuxt[t.item.name]:t.item.from==="vue"?y.vue[t.item.name]:null);return(a,e)=>{const w=B,f=$,I=D,N=F("VDropdown");return s(),r(N,{disabled:!t.metadata},{popper:i(()=>[o("div",J,[o("div",L,[a.item.meta?.description?(s(),r(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):u("",!0),o("div",O,[S(f,{icon:"carbon-copy",onClick:e[0]||(e[0]=p=>k(g)(m.value,"imports-name"))},{default:i(()=>e[2]||(e[2]=[d(" Copy ")])),_:1}),a.filepath?(s(),r(f,{key:0,icon:"carbon-code",onClick:e[1]||(e[1]=p=>a.filepath&&k(C)(a.filepath))},{default:i(()=>e[3]||(e[3]=[d(" Source ")])),_:1})):u("",!0),_.value?(s(),r(f,{key:1,icon:"carbon-catalog",to:_.value,target:"_blank"},{default:i(()=>e[4]||(e[4]=[d(" Docs ")])),_:1},8,["to"])):u("",!0)])]),o("div",Q,[n.value?(s(),c(x,{key:0},[o("div",R,[e[5]||(e[5]=o("span",{op50:""},"It has been referenced ",-1)),o("strong",T,v(n.value),1),e[6]||(e[6]=o("span",{op50:""}," times by:",-1))]),o("div",Y,[(s(!0),c(x,null,j(h.value,p=>(s(),r(I,{key:p,filepath:p},null,8,["filepath"]))),128))])],64)):(s(),c("div",q," Not in use via auto import. "))])])]),default:i(()=>[o("button",W,[o("code",{rounded:"","font-mono":"",class:M([a.metadata&&!n.value?"op30 hover:op100":"",a.classes])},[d(v(m.value)+" ",1),n.value&&a.counter?(s(),c("sup",z,"x"+v(n.value),1)):u("",!0)],2)])]),_:1},8,["disabled"])}}});export{X as _};
@@ -0,0 +1 @@
1
+ const t=50,e={nuxt:{useAppConfig:"https://nuxt.com/docs/api/composables/use-app-config",useAsyncData:"https://nuxt.com/docs/api/composables/use-async-data",useCookie:"https://nuxt.com/docs/api/composables/use-cookie",useError:"https://nuxt.com/docs/api/composables/use-error",useFetch:"https://nuxt.com/docs/api/composables/use-fetch",useHead:"https://nuxt.com/docs/api/composables/use-head",useHeadSafe:"https://nuxt.com/docs/api/composables/use-head-safe",useLazyAsyncData:"https://nuxt.com/docs/api/composables/use-lazy-async-data",useLazyFetch:"https://nuxt.com/docs/api/composables/use-lazy-fetch",useNuxtApp:"https://nuxt.com/docs/api/composables/use-nuxt-app",useRoute:"https://nuxt.com/docs/api/composables/use-route",useRouter:"https://nuxt.com/docs/api/composables/use-router",useRuntimeConfig:"https://nuxt.com/docs/api/composables/use-runtime-config",useState:"https://nuxt.com/docs/api/composables/use-state",$fetch:"https://nuxt.com/docs/api/utils/dollarfetch",abortNavigation:"https://nuxt.com/docs/api/utils/abort-navigation",createError:"https://nuxt.com/docs/api/utils/create-error",defineNuxtComponent:"https://nuxt.com/docs/api/utils/define-nuxt-component",definePageMeta:"https://nuxt.com/docs/api/utils/define-page-meta",navigateTo:"https://nuxt.com/docs/api/utils/navigate-to#navigateto",onBeforeRouteLeave:"https://nuxt.com/docs/api/utils/on-before-route-leave",onBeforeRouteUpdate:"https://nuxt.com/docs/api/utils/on-before-route-update",updateAppConfig:"https://nuxt.com/docs/api/utils/update-app-config"},vue:{ref:"https://vuejs.org/api/reactivity-core.html#ref",computed:"https://vuejs.org/api/reactivity-core.html#computed",reactive:"https://vuejs.org/api/reactivity-core.html#reactive",watch:"https://vuejs.org/api/reactivity-core.html#watch",watchEffect:"https://vuejs.org/api/reactivity-core.html#watcheffect",watchPostEffect:"https://vuejs.org/api/reactivity-core.html#watchposteffect",watchSyncEffect:"https://vuejs.org/api/reactivity-core.html#watchsynceffect",onMounted:"https://vuejs.org/api/composition-api-lifecycle.html#onmounted",onUnmounted:"https://vuejs.org/api/composition-api-lifecycle.html#onunmounted",onActivated:"https://vuejs.org/api/composition-api-lifecycle.html#onactivated",onDeactivated:"https://vuejs.org/api/composition-api-lifecycle.html#ondeactivated",onBeforeMount:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforemount",onBeforeUnmount:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforeunmount",onUpdated:"https://vuejs.org/api/composition-api-lifecycle.html#onupdated",onBeforeUpdate:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforeupdate",nextTick:"https://vuejs.org/api/general.html#nexttick"}},o={snippet:"i-carbon-code",headers:"i-carbon-html-reference",cookies:"i-carbon-cookie",params:"i-carbon-text-selection",query:"i-carbon-help",body:"i-carbon-document"};export{e as C,t as D,o as S};
@@ -0,0 +1 @@
1
+ import{P as q,Y as N,Z as j,$ as B,l as E,a0 as P,a1 as k,a2 as V,c as D,r as I,T as L,a3 as S}from"./b6bfxrb8.js";import{k as $,b as C,l as x,r as W,x as M,n as O,w as b,G as R,S as U,Q as n,M as u,$ as y,u as A,a7 as F,U as r,a6 as w,a5 as T,a0 as G}from"./vendor/json-editor-vue-gi2fewby.js";import{_ as Q}from"./launch-page.vue-iyi310zf.js";import"./vendor/unocss-3uirpnla.js";import"./vendor/shiki-bnvxb5wv.js";import"./nmarkdown.vue-hygash5x.js";import"./client-c9f80qsp.js";const h=new Map,X=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=q(),d=C(),s=x(()=>m.tab.name),e=C(),t=W(N(d));M(()=>{const o=m.tab.view,l=o.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(s.value)&&l)e.value=h.get(s.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",_.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&h.set(s.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),i(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),O(p)}setTimeout(i,100)}),b(p),b(i),b(v),R(()=>{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=j();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))}}),Y={flex:"~ col gap2",mxa:"","items-center":""},Z={"text-xl":""},z={"text-rose":""},ne=$({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=B(),d=E(),s=x(()=>m.name??c.params.name),e=P(),t=x(()=>e.value.find(i=>i.name===s.value));return M(()=>{t.value?t.value.requireAuth&&!k.value&&V():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(i,a)=>{const v=D,p=S,o=X,l=Q,_=L;return t.value?t.value.requireAuth&&!A(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=>A(I).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[G(_,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+T(t.value.view),1)]),_:1})]),_:1})):(n(),u(v,{key:0},{default:y(()=>[r("div",Y,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",Z,[a[1]||(a[1]=w(" Tab ")),r("code",z,T(s.value),1),a[2]||(a[2]=w(" not found "))]),a[4]||(a[4]=r("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1)),a[5]||(a[5]=r("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]),_:1}))}}});export{ne as default};
@@ -0,0 +1 @@
1
+ import{_ as o}from"./b6bfxrb8.js";import{Q as t,S as s,U as r,V as a}from"./vendor/json-editor-vue-gi2fewby.js";import"./vendor/unocss-3uirpnla.js";import"./vendor/shiki-bnvxb5wv.js";const n={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function _(e,d){return t(),s("div",c,[r("div",l,[a(e.$slots,"default")])])}const u=o(n,[["render",_]]);export{u as default};
@@ -0,0 +1 @@
1
+ import{k as i,l as u,Q as s,S as d,a6 as f,a5 as o,U as p,Y as c}from"./vendor/json-editor-vue-gi2fewby.js";const l={"ml-1":"","text-xs":"",op50:""},_=i({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(a){const t=a;function n(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,m)=>(s(),d("div",{class:c(n(e.duration))},[f(o(r.value[0]),1),p("span",l,o(r.value[1]),1)],2))}});export{_};