@nuxt/devtools-nightly 2.1.3-29019366.2eb2a37 → 2.2.0-29019371.ab4e646

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 (65) hide show
  1. package/dist/chunks/module-main.mjs +1 -1
  2. package/dist/client/200.html +12 -12
  3. package/dist/client/404.html +12 -12
  4. package/dist/client/_nuxt/__blank-hgo94jeo.js +1 -0
  5. package/dist/client/_nuxt/{analyze-build-mu6z27zz.js → analyze-build-myma3yd1.js} +1 -1
  6. package/dist/client/_nuxt/{assets-cfx394zl.js → assets-lv794jnv.js} +1 -1
  7. package/dist/client/_nuxt/{fbsja1bs.js → ba74h01u.js} +4 -4
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/b81d40a5-e8a7-4c63-bd26-b566ad277cca.json +1 -0
  10. package/dist/client/_nuxt/{code-diff.vue-isljdopw.js → code-diff.vue-leogxoz1.js} +1 -1
  11. package/dist/client/_nuxt/{code-snippets.vue-702pwlyq.js → code-snippets.vue-nvtd3pj0.js} +1 -1
  12. package/dist/client/_nuxt/{components-jgk2p3br.js → components-hjsf7ksd.js} +1 -1
  13. package/dist/client/_nuxt/{composable-item.vue-c34ra8vg.js → composable-item.vue-biqh7ndo.js} +1 -1
  14. package/dist/client/_nuxt/{custom-_name_-mi7d74pi.js → custom-_name_-kex24woa.js} +1 -1
  15. package/dist/client/_nuxt/{data-schema-button.vue-nxvasvs9.js → data-schema-button.vue-jp02xd0f.js} +1 -1
  16. package/dist/client/_nuxt/{data-schema-drawer-j57t5ydg.js → data-schema-drawer-j8693gtm.js} +1 -1
  17. package/dist/client/_nuxt/{default-iumwa5pn.js → default-j6l1ygv8.js} +1 -1
  18. package/dist/client/_nuxt/{error-404-f7okt111.js → error-404-opaazyo0.js} +1 -1
  19. package/dist/client/_nuxt/{error-500-f6whss2j.js → error-500-b8putag8.js} +1 -1
  20. package/dist/client/_nuxt/{error-m7deom42.js → error-hw4nz28z.js} +1 -1
  21. package/dist/client/_nuxt/{filepath-item.vue-daxa4407.js → filepath-item.vue-exj9bzuo.js} +1 -1
  22. package/dist/client/_nuxt/{full-ifoz435s.js → full-lyo7xogd.js} +1 -1
  23. package/dist/client/_nuxt/{help-fab.vue-cgdegfc2.js → help-fab.vue-e4itx2nb.js} +1 -1
  24. package/dist/client/_nuxt/{hooks-nnvdnybz.js → hooks-by1oydo6.js} +1 -1
  25. package/dist/client/_nuxt/{imports-ipbrhiu2.js → imports-ewfsysyi.js} +1 -1
  26. package/dist/client/_nuxt/{index-dtbr7src.js → index-ll8fiede.js} +1 -1
  27. package/dist/client/_nuxt/{launch-page.vue-h0djvz1n.js → launch-page.vue-cea50uh8.js} +1 -1
  28. package/dist/client/_nuxt/{modules-ue7zllp7.js → modules-hmx7tlg2.js} +1 -1
  29. package/dist/client/_nuxt/{nbadge-g4eu5zb5.js → nbadge-irmvqnko.js} +1 -1
  30. package/dist/client/_nuxt/{ncheckbox.vue-itzb0tps.js → ncheckbox.vue-l9opyx34.js} +1 -1
  31. package/dist/client/_nuxt/{ndrawer.vue-grut5tpv.js → ndrawer.vue-k5p5tlwf.js} +1 -1
  32. package/dist/client/_nuxt/{ndropdown.vue-l9d7spsr.js → ndropdown.vue-k1705v4p.js} +1 -1
  33. package/dist/client/_nuxt/{nlink.vue-fx2zgfoc.js → nlink.vue-onmg0jek.js} +1 -1
  34. package/dist/client/_nuxt/{nnavbar.vue-l41ly2p4.js → nnavbar.vue-fue4am60.js} +1 -1
  35. package/dist/client/_nuxt/{none-mq8wkybq.js → none-cl6yiwom.js} +1 -1
  36. package/dist/client/_nuxt/{nsection-block-lvco0rmb.js → nsection-block-c0xnizfr.js} +1 -1
  37. package/dist/client/_nuxt/{nselect-tabs.vue-k6p3ng9x.js → nselect-tabs.vue-k91b8jqs.js} +1 -1
  38. package/dist/client/_nuxt/{nselect.vue-irwn99mm.js → nselect.vue-g4eljg7m.js} +1 -1
  39. package/dist/client/_nuxt/{open-graph-kijkw4h0.js → open-graph-c4ydth6b.js} +1 -1
  40. package/dist/client/_nuxt/{overview-nmo2iwcu.js → overview-jkk7sab9.js} +1 -1
  41. package/dist/client/_nuxt/{pages-h8hc0tdr.js → pages-mfzb98c9.js} +1 -1
  42. package/dist/client/_nuxt/{payload-myycqdjr.js → payload-i1sj7egx.js} +1 -1
  43. package/dist/client/_nuxt/{pinia-lguwloqu.js → pinia-jk28bn4e.js} +1 -1
  44. package/dist/client/_nuxt/{plugins-iithk2t9.js → plugins-how6r945.js} +1 -1
  45. package/dist/client/_nuxt/{render-tree-h952d1w8.js → render-tree-cs83a5o0.js} +1 -1
  46. package/dist/client/_nuxt/{runtime-configs-njpyz4ie.js → runtime-configs-g2ibli02.js} +1 -1
  47. package/dist/client/_nuxt/{server-discovery-o1s8cex2.js → server-discovery-c64pbsxn.js} +1 -1
  48. package/dist/client/_nuxt/{server-route-inputs.vue-o4nyg570.js → server-route-inputs.vue-ip4oitys.js} +1 -1
  49. package/dist/client/_nuxt/{server-routes-m45ffjje.js → server-routes-g1x79dvh.js} +1 -1
  50. package/dist/client/_nuxt/{server-tasks-b6cav1yw.js → server-tasks-ocyl787x.js} +1 -1
  51. package/dist/client/_nuxt/{settings-hl15460m.js → settings-hrs3i0fe.js} +1 -1
  52. package/dist/client/_nuxt/{stacktrace-list.vue-gnv947s9.js → stacktrace-list.vue-cgia2cun.js} +1 -1
  53. package/dist/client/_nuxt/{state-components-dbsilg41.js → state-components-g3e0hwb3.js} +1 -1
  54. package/dist/client/_nuxt/{state-editor.vue-bt6m8d17.js → state-editor.vue-c0s3wr8c.js} +1 -1
  55. package/dist/client/_nuxt/{state-modules-paq2zdoq.js → state-modules-sendvo2g.js} +1 -1
  56. package/dist/client/_nuxt/{storage-mmbsp05z.js → storage-o6ngyyj7.js} +1 -1
  57. package/dist/client/_nuxt/{terminals-efr3u5n4.js → terminals-frjt0qq9.js} +1 -1
  58. package/dist/client/_nuxt/{timeline-e2x7slnv.js → timeline-fx09ptyk.js} +1 -1
  59. package/dist/client/_nuxt/{virtual-files-quoq1sma.js → virtual-files-cb0gkyzh.js} +1 -1
  60. package/dist/client/_nuxt/{vue-devtools-ig3w2qgl.js → vue-devtools-e9suydbb.js} +1 -1
  61. package/dist/client/index.html +12 -12
  62. package/dist/module.json +1 -1
  63. package/package.json +4 -4
  64. package/dist/client/_nuxt/__blank-dudv6g9d.js +0 -1
  65. package/dist/client/_nuxt/builds/meta/eb9011e0-12a9-45ae-9850-4a19fb2e0b80.json +0 -1
@@ -1 +1 @@
1
- {"id":"eb9011e0-12a9-45ae-9850-4a19fb2e0b80","timestamp":1741161955969}
1
+ {"id":"b81d40a5-e8a7-4c63-bd26-b566ad277cca","timestamp":1741162279678}
@@ -0,0 +1 @@
1
+ {"id":"b81d40a5-e8a7-4c63-bd26-b566ad277cca","timestamp":1741162279678,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -1,4 +1,4 @@
1
- import{_ as P}from"./ncode-block.vue-bir2wz4z.js";import{bh as Q}from"./fbsja1bs.js";import{p as U,q as X,f as Y,E as j,S as W,a1 as S}from"./vendor/json-editor-vue-llkaejaf.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 z(){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 q=!1;if(E){var M=E.oldPos-v;q=E&&0<=M&&M<l}var B=w&&w.oldPos+1<s;if(!q&&!B){m[v]=void 0;continue}if(!B||q&&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();z()||v()},0)})();else for(;a<=c&&Date.now()<=d;){var x=z();if(x)return x}},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 Z(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 _(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 _(n,e,"")}function I(n,e){return N(n,e,"")}function G(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"),$=new g;$.equals=function(n,e,r){return r.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n.trim()===e.trim()};$.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};$.join=function(n){return n.map(function(e,r){return r==0?e:e.replace(/^\s+/,"")}).join("")};$.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)&&H(r,u,t,o),r=o,t=null,u=null)}),(t||u)&&H(r,u,t,null),n};function H(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=Z(o,f);t.value=_(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=Z(L(a,d),p);e.value=I(e.value,m),t.value=_(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=G(y,h);e.value=I(e.value,T)}else if(n){var z=n.value.match(/\s*$/)[0],x=e.value.match(/^\s*/)[0],v=G(z,x);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 k=new g;k.tokenize=function(n,e){e.stripTrailingCr&&(n=n.replace(/\r\n/g,`
1
+ import{_ as P}from"./ncode-block.vue-bir2wz4z.js";import{bh as Q}from"./ba74h01u.js";import{p as U,q as X,f as Y,E as j,S as W,a1 as S}from"./vendor/json-editor-vue-llkaejaf.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 z(){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 q=!1;if(E){var M=E.oldPos-v;q=E&&0<=M&&M<l}var B=w&&w.oldPos+1<s;if(!q&&!B){m[v]=void 0;continue}if(!B||q&&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();z()||v()},0)})();else for(;a<=c&&Date.now()<=d;){var x=z();if(x)return x}},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 Z(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 _(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 _(n,e,"")}function I(n,e){return N(n,e,"")}function G(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"),$=new g;$.equals=function(n,e,r){return r.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n.trim()===e.trim()};$.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};$.join=function(n){return n.map(function(e,r){return r==0?e:e.replace(/^\s+/,"")}).join("")};$.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)&&H(r,u,t,o),r=o,t=null,u=null)}),(t||u)&&H(r,u,t,null),n};function H(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=Z(o,f);t.value=_(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=Z(L(a,d),p);e.value=I(e.value,m),t.value=_(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=G(y,h);e.value=I(e.value,T)}else if(n){var z=n.value.match(/\s*$/)[0],x=e.value.match(/^\s*/)[0],v=G(z,x);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 k=new g;k.tokenize=function(n,e){e.stripTrailingCr&&(n=n.replace(/\r\n/g,`
2
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};k.equals=function(n,e,r){return r.ignoreWhitespace?((!r.newlineIsToken||!n.includes(`
3
3
  `))&&(n=n.trim()),(!r.newlineIsToken||!e.includes(`
4
4
  `))&&(e=e.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(n.endsWith(`
@@ -1 +1 @@
1
- import{_ as g}from"./ncode-block.vue-bir2wz4z.js";import{a as C,_ as S}from"./fbsja1bs.js";import{p as x,m as w,q as B,w as N,P as n,R as r,a1 as a,Q as s,F as d,ae as V,a3 as i,S as $,u as T,a2 as u,a9 as m,X as v,a8 as h}from"./vendor/json-editor-vue-llkaejaf.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=x({__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=S;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:v(t===e.value?"":"border-b"),onClick:R=>e.value=t},[s("div",{class:v(t===e.value?"":"op30"),"font-mono":""},h(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},[i(k,{code:e.value.code,lang:b.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),s("div",L,[i(c,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>T(_)(e.value.code,p.eventType||`code-snippet-${e.value.name}`))},{default:u(()=>o[2]||(o[2]=[m(" Copy ")])),_:1}),e.value?.docs?(a(),$(c,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:u(()=>o[3]||(o[3]=[m(" Docs ")])),_:1},8,["to"])):r("",!0)])],64)):r("",!0)])):r("",!0)}}});export{Q as _};
1
+ import{_ as g}from"./ncode-block.vue-bir2wz4z.js";import{a as C,_ as S}from"./ba74h01u.js";import{p as x,m as w,q as B,w as N,P as n,R as r,a1 as a,Q as s,F as d,ae as V,a3 as i,S as $,u as T,a2 as u,a9 as m,X as v,a8 as h}from"./vendor/json-editor-vue-llkaejaf.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=x({__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=S;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:v(t===e.value?"":"border-b"),onClick:R=>e.value=t},[s("div",{class:v(t===e.value?"":"op30"),"font-mono":""},h(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},[i(k,{code:e.value.code,lang:b.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),s("div",L,[i(c,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>T(_)(e.value.code,p.eventType||`code-snippet-${e.value.name}`))},{default:u(()=>o[2]||(o[2]=[m(" Copy ")])),_:1}),e.value?.docs?(a(),$(c,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:u(()=>o[3]||(o[3]=[m(" Docs ")])),_:1},8,["to"])):r("",!0)])],64)):r("",!0)])):r("",!0)}}});export{Q as _};
@@ -1 +1 @@
1
- import{a as pe,_ as O,Q as re,R as ue,J as me,S as de,g as J,T as ce,U as fe,V as ve,N as _e,W as he,X as be,E as ge,f as ye}from"./fbsja1bs.js";import{P as m,a1 as t,Q as o,p as I,q as D,a9 as q,a8 as W,R as w,U as j,a3 as u,S as y,u as $,F as T,ae as L,f as U,m as we,E as xe,j as ke,a2 as f,C as z,Y as Ce,X as $e,a4 as E,ag as Ne,aa as Q,ad as Ve}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as Pe}from"./help-fab.vue-cgdegfc2.js";import{_ as De}from"./ncheckbox.vue-itzb0tps.js";import{_ as Y}from"./nnavbar.vue-l41ly2p4.js";import{p as K}from"./index-jc4yj4to.js";import{_ as Z}from"./nbadge-g4eu5zb5.js";import{_ as ee}from"./filepath-item.vue-daxa4407.js";import{_ as Se}from"./ndrawer.vue-grut5tpv.js";import{D as Te,N as Be}from"./vendor/vis-fth2qiu5.js";import{_ as Le}from"./nselect-tabs.vue-k6p3ng9x.js";import{_ as Me}from"./nsection-block-lvco0rmb.js";import{_ as Ue}from"./nicon-title.vue-dsf9ygne.js";import{D as X}from"./constants-b32h69zq.js";import{u as Ie,a as Fe}from"./state-components-dbsilg41.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const Ge={class:"markdown-body"},Re={__name:"components",setup(P,{expose:s}){return s({frontmatter:{}}),(i,c)=>(t(),m("div",Ge,c[0]||(c[0]=[o("h1",null,"Components",-1),o("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),o("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},ze={"text-sm":"","font-mono":""},oe=I({__name:"ComponentName",props:{component:{}},setup(P){const s=P,v=D(()=>s.component.pascalName||K(s.component.name||s.component.__name||s.component.kebabName||""));return(i,c)=>(t(),m("code",ze,[c[0]||(c[0]=o("span",{mr1:"",op20:""},"<",-1)),q(W(v.value),1),c[1]||(c[1]=o("span",{ml1:"",op20:""},"/>",-1))]))}}),Ae={flex:"~ col gap1","items-start":"","of-hidden":""},Ee={flex:"~ gap2",px3:""},We={px3:"",pb2:""},je={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},He={"text-sm":""},Xe={"text-primary":""},qe={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Oe={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Qe={"text-sm":""},Je={"text-primary":""},Ye={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},ne=I({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(P){const s=P,v=D(()=>s.component.pascalName||K(s.component.name||s.component.__name||s.component.kebabName||"")),i=D(()=>s.component.filePath||s.component.file||s.component.__file||""),c=pe();return(l,a)=>{const h=oe,r=O,b=Z,x=ee;return t(),m("div",Ae,[o("div",Ee,[u(h,{component:l.component},null,8,["component"]),u(r,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:a[0]||(a[0]=d=>$(c)(`<${v.value}></${v.value}>`,"component-name"))}),l.component.global?(t(),y(b,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0)]),o("div",We,[i.value?(t(),y(x,{key:0,filepath:i.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)]),l.dependents?(t(),m("div",je,[o("div",He,[o("strong",Xe,W(l.dependents.length),1),a[1]||(a[1]=o("span",{op50:""}," references",-1))]),l.dependents.length?(t(),m("div",qe,[(t(!0),m(T,null,L(l.dependents,d=>(t(),y(x,{key:d,filepath:d},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),l.dependencies?(t(),m("div",Oe,[o("div",Qe,[o("strong",Je,W(l.dependencies.length),1),a[2]||(a[2]=o("span",{op50:""}," dependencies",-1))]),l.dependencies.length?(t(),m("div",Ye,[(t(!0),m(T,null,L(l.dependencies,d=>(t(),y(x,{key:d,filepath:d},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),j(l.$slots,"default")])}}}),Ke={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},Ze={relative:"","h-full":"","w-full":""},eo={key:0,py4:"",pt4:"",flex:"~ col"},oo={border:"t base",p4:""},no=I({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(P){const s=P,v=U(),i=U(),c=re(),l=we(),a=ue(),h=me(),r=de(),{componentsGraphShowNodeModules:b,componentsGraphShowGlobalComponents:x,componentsGraphShowPages:d,componentsGraphShowLayouts:N,componentsGraphShowWorkspace:_}=J("ui"),k=U(),p=U(""),F=ce(p,300),G=D(()=>{const V=s.relationships||[];if(k.value){let e=function(C){!C||n.has(C)||(n.add(C),C.deps.forEach(B=>{e(V.find(M=>M.id===B))}))};const n=new Set;return e(k.value),Array.from(n)}return V}),A=D(()=>{const V=G.value.map(n=>{const C=s.components.find(R=>R.filePath===n.id),B=a.value?.find(R=>R.file===n.id),M=r.value?.find(R=>R.file===n.id),S=n.id.includes("/node_modules/")?"lib":C?C.global?"global":"user":M?"layout":B?"page":"unknown";if(!b.value&&S==="lib"||!d.value&&S==="page"||!N.value&&S==="layout"||!_.value&&S==="user"&&h.value&&!n.id.startsWith(h.value.rootDir)||!x.value&&S==="global")return null;const H=S==="layout"?"hexagon":S==="page"?"square":"dot",g=F.value&&!n.id.toLowerCase().includes(F.value.toLowerCase());return{id:n.id,label:ae(n.id),group:S,shape:H,size:15+Math.min(n.deps.length/2,8),font:{color:g?"#8885":c.value==="dark"?"white":"black"},color:g?"#8885":k.value?.id===n.id?"#82c742":void 0,extra:{id:n.id,component:C,page:B,layout:M,relationship:n}}}).filter(n=>!!n),e=G.value.flatMap(n=>n.deps.map(C=>({from:n.id,to:C,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new Te(V),edges:e}}),te=D(()=>l.value?.component?s.relationships?.find(e=>e.id===l.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(n=>n.id===e)?.id).filter(Boolean):[]),se=D(()=>l.value?.component?s.relationships?.filter(e=>e.deps.includes(l.value.component.filePath))?.map(e=>s.relationships?.find(n=>n.id===e.id)?.id).filter(Boolean):[]);xe(()=>{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,A.value,V);e.on("click",n=>{const C=n.nodes?.[0],B=A.value.nodes.get(C).extra;l.value=B}),ke(A,()=>{e.setData(A.value)})});function le(){l.value=void 0}function ae(V){const e=s.components.find(n=>n.filePath===V);return e?e.pascalName:V.replace(/.*\/components\//,"").replace(/\.vue$/,"").replace(/\/index$/,"").split("/").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ie(){k.value=l.value?.relationship,l.value=void 0}return(V,e)=>{const n=De,C=Y,B=fe,M=ne,S=O,H=Se;return t(),m(T,null,[u(C,{ref_key:"navbar",ref:i,search:p.value,"onUpdate:search":e[6]||(e[6]=g=>p.value=g),absolute:"","left-0":"","right-0":"","top-0":""},{actions:f(()=>[o("div",Ke,[u(n,{modelValue:$(d),"onUpdate:modelValue":e[0]||(e[0]=g=>z(d)?d.value=g:null),n:"primary sm"},{default:f(()=>e[8]||(e[8]=[o("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(N),"onUpdate:modelValue":e[1]||(e[1]=g=>z(N)?N.value=g:null),n:"primary sm"},{default:f(()=>e[9]||(e[9]=[o("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(_),"onUpdate:modelValue":e[2]||(e[2]=g=>z(_)?_.value=g:null),n:"primary sm"},{default:f(()=>e[10]||(e[10]=[o("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(b),"onUpdate:modelValue":e[3]||(e[3]=g=>z(b)?b.value=g:null),n:"primary sm"},{default:f(()=>e[11]||(e[11]=[o("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(x),"onUpdate:modelValue":e[4]||(e[4]=g=>z(x)?x.value=g:null),n:"primary sm"},{default:f(()=>e[12]||(e[12]=[o("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),k.value?(t(),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]=g=>k.value=void 0)},e[13]||(e[13]=[q(" Clear filter "),o("div",{"i-carbon-close":""},null,-1)]))):w("",!0),e[14]||(e[14]=o("div",{"flex-auto":""},null,-1)),j(V.$slots,"default")]),_:3},8,["search"]),o("div",Ze,[o("div",{ref_key:"container",ref:v,"h-full":"","w-full":""},null,512),u(B,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:f(()=>e[15]||(e[15]=[o("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),o("div",{op50:""}," Component "),o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),o("div",{op50:""}," Global Component "),o("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),o("div",{op50:""}," Page "),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[o("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),o("div",{op50:""}," Layout "),o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),o("div",{op50:""}," Library Component "),o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),o("div",{op50:""}," Unknown ")],-1)])),_:1}),u(H,{"model-value":!!(l.value&&l.value.component),top:i.value,border:"t l base","w-80":"",onClose:le},{default:f(()=>[l.value&&l.value.component?(t(),m("div",eo,[u(M,{component:l.value.component,dependencies:te.value,dependents:se.value},null,8,["component","dependencies","dependents"]),o("div",oo,[u(S,{n:"primary solid",onClick:e[7]||(e[7]=g=>ie())},{default:f(()=>e[16]||(e[16]=[q(" Filter to this component ")])),_:1})])])):w("",!0)]),_:1},8,["model-value","top"])])],64)}}}),to={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},so={key:0,"ml--1":"","text-primary":""},lo=I({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(P){const s=P,v=D(()=>s.component.filePath||s.component.file||s.component.__file||"");return(i,c)=>{const l=oe,a=ne,h=Ce("VDropdown"),r=Z,b=ee;return t(),m("div",to,[u(h,null,{popper:f(()=>[u(a,{component:i.component,dependencies:i.dependencies,dependents:i.dependents,"w-100":"",pt4:""},null,8,["component","dependencies","dependents"])]),default:f(()=>[o("button",{"hover:text-primary":"",class:$e(i.dependents&&i.dependents.length===0?"op50":"")},[u(l,{component:i.component},null,8,["component"])],2)]),_:1}),i.dependents?.length?(t(),m("sup",so," x"+W(i.dependents?.length),1)):w("",!0),i.component.global?(t(),y(r,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0),j(i.$slots,"default"),v.value?(t(),y(b,{key:2,filepath:v.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)])}}}),ao={flex:"~ gap-2 items-center"},io={pl4:""},po=I({__name:"ComponentsList",props:{components:{},relationships:{}},setup(P){const s=P,v=U(""),i=U("all"),c=D(()=>{const h=s.components.map(r=>ve(r,s.relationships));return i.value==="using"?h.filter(r=>r.dependents?.length):i.value==="not-used"?h.filter(r=>!r.dependents?.length):h}),l=D(()=>new _e(c.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),a=D(()=>{const h=[],r=new Map,b=[],x=[],d={user:0,lib:0,builtin:0,runtime:0};return(v.value?l.value.search(v.value).map(_=>_.item):c.value).forEach(_=>{const k=_.component;if(k.filePath&&he(k.filePath)){const p=be(k.filePath);if(!p)return;p==="nuxt"?(b.push(_),d.builtin++):(r.has(p)||r.set(p,[]),r.get(p).push(_),d.lib++)}else k.global&&!k.filePath?(x.push(_),d.runtime++):(h.push(_),d.user++)}),{count:d,user:h,builtin:b,lib:r,runtime:x}});return(h,r)=>{const b=ge,x=Le,d=Y,N=lo,_=Me,k=Ue;return t(),m(T,null,[u(d,{search:v.value,"onUpdate:search":r[1]||(r[1]=p=>v.value=p),pb3:""},{actions:f(()=>[j(h.$slots,"default")]),default:f(()=>[o("div",ao,[u(b,{icon:"carbon-filter",op50:""}),u(x,{modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=p=>i.value=p),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),a.value.user.length?(t(),y(_,{key:0,icon:"carbon-nominal",text:"User components",open:a.value.user.length<=$(X),description:`Total components: ${a.value.count.user}`},{default:f(()=>[(t(!0),m(T,null,L(a.value.user,p=>(t(),y(N,E({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):w("",!0),a.value.runtime.length?(t(),y(_,{key:1,icon:"carbon-load-balancer-global",open:a.value.runtime.length<=$(X),text:"Runtime components",description:`Total components: ${a.value.count.runtime}`},{default:f(()=>[(t(!0),m(T,null,L(a.value.runtime,p=>(t(),y(N,E({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):w("",!0),a.value.builtin.length?(t(),y(_,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${a.value.count.builtin}`},{default:f(()=>[(t(!0),m(T,null,L(a.value.builtin,p=>(t(),y(N,E({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["description"])):w("",!0),a.value.lib.size?(t(),y(_,{key:3,open:a.value.count.lib<=$(X),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${a.value.count.lib} components from ${a.value.lib.size} packages`},{default:f(()=>[(t(!0),m(T,null,L(a.value.lib.entries(),([p,F])=>(t(),m("div",{key:p,"ml-2":""},[u(k,{text:`${p} (${F.length})`,py1:"",op50:""},null,8,["text"]),o("div",io,[(t(!0),m(T,null,L(F,G=>(t(),y(N,E({key:G.component.filePath,ref_for:!0},G),null,16))),128))])]))),128))]),_:1},8,["open","description"])):w("",!0)],64)}}}),ro={relative:"","h-full":"","of-auto":""},uo={"flex-none":"",flex:"~ gap3"},Do=I({__name:"components",setup(P){const s=ye(),v=Ie(),i=Fe(),{componentsView:c}=J("ui");function l(){s.value?.inspector?.enable()}function a(){c.value=c.value==="list"?"graph":"list"}return(h,r)=>{const b=O,x=Re,d=Pe,N=Ne("tooltip");return t(),m(T,null,[o("div",ro,[(t(),y(Ve($(c)==="list"?po:no),{components:$(v),relationships:$(i)},{default:f(()=>[o("div",uo,[Q(u(b,{"text-lg":"",border:!1,icon:$(c)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:a},null,8,["icon"]),[[N,"Toggle View",void 0,{"bottom-end":!0}]]),$(s)?.inspector?.isAvailable?Q((t(),y(b,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:l},null,512)),[[N,"Inspect Vue components",void 0,{"bottom-end":!0}]]):w("",!0)])]),_:1},8,["components","relationships"]))]),u(d,null,{default:f(()=>[u(x)]),_:1})],64)}}});export{Do as default};
1
+ import{a as pe,_ as O,Q as re,R as ue,J as me,S as de,g as J,T as ce,U as fe,V as ve,N as _e,W as he,X as be,E as ge,f as ye}from"./ba74h01u.js";import{P as m,a1 as t,Q as o,p as I,q as D,a9 as q,a8 as W,R as w,U as j,a3 as u,S as y,u as $,F as T,ae as L,f as U,m as we,E as xe,j as ke,a2 as f,C as z,Y as Ce,X as $e,a4 as E,ag as Ne,aa as Q,ad as Ve}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as Pe}from"./help-fab.vue-e4itx2nb.js";import{_ as De}from"./ncheckbox.vue-l9opyx34.js";import{_ as Y}from"./nnavbar.vue-fue4am60.js";import{p as K}from"./index-jc4yj4to.js";import{_ as Z}from"./nbadge-irmvqnko.js";import{_ as ee}from"./filepath-item.vue-exj9bzuo.js";import{_ as Se}from"./ndrawer.vue-k5p5tlwf.js";import{D as Te,N as Be}from"./vendor/vis-fth2qiu5.js";import{_ as Le}from"./nselect-tabs.vue-k91b8jqs.js";import{_ as Me}from"./nsection-block-c0xnizfr.js";import{_ as Ue}from"./nicon-title.vue-dsf9ygne.js";import{D as X}from"./constants-b32h69zq.js";import{u as Ie,a as Fe}from"./state-components-g3e0hwb3.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const Ge={class:"markdown-body"},Re={__name:"components",setup(P,{expose:s}){return s({frontmatter:{}}),(i,c)=>(t(),m("div",Ge,c[0]||(c[0]=[o("h1",null,"Components",-1),o("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),o("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},ze={"text-sm":"","font-mono":""},oe=I({__name:"ComponentName",props:{component:{}},setup(P){const s=P,v=D(()=>s.component.pascalName||K(s.component.name||s.component.__name||s.component.kebabName||""));return(i,c)=>(t(),m("code",ze,[c[0]||(c[0]=o("span",{mr1:"",op20:""},"<",-1)),q(W(v.value),1),c[1]||(c[1]=o("span",{ml1:"",op20:""},"/>",-1))]))}}),Ae={flex:"~ col gap1","items-start":"","of-hidden":""},Ee={flex:"~ gap2",px3:""},We={px3:"",pb2:""},je={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},He={"text-sm":""},Xe={"text-primary":""},qe={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Oe={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Qe={"text-sm":""},Je={"text-primary":""},Ye={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},ne=I({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(P){const s=P,v=D(()=>s.component.pascalName||K(s.component.name||s.component.__name||s.component.kebabName||"")),i=D(()=>s.component.filePath||s.component.file||s.component.__file||""),c=pe();return(l,a)=>{const h=oe,r=O,b=Z,x=ee;return t(),m("div",Ae,[o("div",Ee,[u(h,{component:l.component},null,8,["component"]),u(r,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:a[0]||(a[0]=d=>$(c)(`<${v.value}></${v.value}>`,"component-name"))}),l.component.global?(t(),y(b,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0)]),o("div",We,[i.value?(t(),y(x,{key:0,filepath:i.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)]),l.dependents?(t(),m("div",je,[o("div",He,[o("strong",Xe,W(l.dependents.length),1),a[1]||(a[1]=o("span",{op50:""}," references",-1))]),l.dependents.length?(t(),m("div",qe,[(t(!0),m(T,null,L(l.dependents,d=>(t(),y(x,{key:d,filepath:d},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),l.dependencies?(t(),m("div",Oe,[o("div",Qe,[o("strong",Je,W(l.dependencies.length),1),a[2]||(a[2]=o("span",{op50:""}," dependencies",-1))]),l.dependencies.length?(t(),m("div",Ye,[(t(!0),m(T,null,L(l.dependencies,d=>(t(),y(x,{key:d,filepath:d},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),j(l.$slots,"default")])}}}),Ke={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},Ze={relative:"","h-full":"","w-full":""},eo={key:0,py4:"",pt4:"",flex:"~ col"},oo={border:"t base",p4:""},no=I({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(P){const s=P,v=U(),i=U(),c=re(),l=we(),a=ue(),h=me(),r=de(),{componentsGraphShowNodeModules:b,componentsGraphShowGlobalComponents:x,componentsGraphShowPages:d,componentsGraphShowLayouts:N,componentsGraphShowWorkspace:_}=J("ui"),k=U(),p=U(""),F=ce(p,300),G=D(()=>{const V=s.relationships||[];if(k.value){let e=function(C){!C||n.has(C)||(n.add(C),C.deps.forEach(B=>{e(V.find(M=>M.id===B))}))};const n=new Set;return e(k.value),Array.from(n)}return V}),A=D(()=>{const V=G.value.map(n=>{const C=s.components.find(R=>R.filePath===n.id),B=a.value?.find(R=>R.file===n.id),M=r.value?.find(R=>R.file===n.id),S=n.id.includes("/node_modules/")?"lib":C?C.global?"global":"user":M?"layout":B?"page":"unknown";if(!b.value&&S==="lib"||!d.value&&S==="page"||!N.value&&S==="layout"||!_.value&&S==="user"&&h.value&&!n.id.startsWith(h.value.rootDir)||!x.value&&S==="global")return null;const H=S==="layout"?"hexagon":S==="page"?"square":"dot",g=F.value&&!n.id.toLowerCase().includes(F.value.toLowerCase());return{id:n.id,label:ae(n.id),group:S,shape:H,size:15+Math.min(n.deps.length/2,8),font:{color:g?"#8885":c.value==="dark"?"white":"black"},color:g?"#8885":k.value?.id===n.id?"#82c742":void 0,extra:{id:n.id,component:C,page:B,layout:M,relationship:n}}}).filter(n=>!!n),e=G.value.flatMap(n=>n.deps.map(C=>({from:n.id,to:C,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new Te(V),edges:e}}),te=D(()=>l.value?.component?s.relationships?.find(e=>e.id===l.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(n=>n.id===e)?.id).filter(Boolean):[]),se=D(()=>l.value?.component?s.relationships?.filter(e=>e.deps.includes(l.value.component.filePath))?.map(e=>s.relationships?.find(n=>n.id===e.id)?.id).filter(Boolean):[]);xe(()=>{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,A.value,V);e.on("click",n=>{const C=n.nodes?.[0],B=A.value.nodes.get(C).extra;l.value=B}),ke(A,()=>{e.setData(A.value)})});function le(){l.value=void 0}function ae(V){const e=s.components.find(n=>n.filePath===V);return e?e.pascalName:V.replace(/.*\/components\//,"").replace(/\.vue$/,"").replace(/\/index$/,"").split("/").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ie(){k.value=l.value?.relationship,l.value=void 0}return(V,e)=>{const n=De,C=Y,B=fe,M=ne,S=O,H=Se;return t(),m(T,null,[u(C,{ref_key:"navbar",ref:i,search:p.value,"onUpdate:search":e[6]||(e[6]=g=>p.value=g),absolute:"","left-0":"","right-0":"","top-0":""},{actions:f(()=>[o("div",Ke,[u(n,{modelValue:$(d),"onUpdate:modelValue":e[0]||(e[0]=g=>z(d)?d.value=g:null),n:"primary sm"},{default:f(()=>e[8]||(e[8]=[o("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(N),"onUpdate:modelValue":e[1]||(e[1]=g=>z(N)?N.value=g:null),n:"primary sm"},{default:f(()=>e[9]||(e[9]=[o("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(_),"onUpdate:modelValue":e[2]||(e[2]=g=>z(_)?_.value=g:null),n:"primary sm"},{default:f(()=>e[10]||(e[10]=[o("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(b),"onUpdate:modelValue":e[3]||(e[3]=g=>z(b)?b.value=g:null),n:"primary sm"},{default:f(()=>e[11]||(e[11]=[o("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(x),"onUpdate:modelValue":e[4]||(e[4]=g=>z(x)?x.value=g:null),n:"primary sm"},{default:f(()=>e[12]||(e[12]=[o("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),k.value?(t(),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]=g=>k.value=void 0)},e[13]||(e[13]=[q(" Clear filter "),o("div",{"i-carbon-close":""},null,-1)]))):w("",!0),e[14]||(e[14]=o("div",{"flex-auto":""},null,-1)),j(V.$slots,"default")]),_:3},8,["search"]),o("div",Ze,[o("div",{ref_key:"container",ref:v,"h-full":"","w-full":""},null,512),u(B,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:f(()=>e[15]||(e[15]=[o("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),o("div",{op50:""}," Component "),o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),o("div",{op50:""}," Global Component "),o("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),o("div",{op50:""}," Page "),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[o("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),o("div",{op50:""}," Layout "),o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),o("div",{op50:""}," Library Component "),o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),o("div",{op50:""}," Unknown ")],-1)])),_:1}),u(H,{"model-value":!!(l.value&&l.value.component),top:i.value,border:"t l base","w-80":"",onClose:le},{default:f(()=>[l.value&&l.value.component?(t(),m("div",eo,[u(M,{component:l.value.component,dependencies:te.value,dependents:se.value},null,8,["component","dependencies","dependents"]),o("div",oo,[u(S,{n:"primary solid",onClick:e[7]||(e[7]=g=>ie())},{default:f(()=>e[16]||(e[16]=[q(" Filter to this component ")])),_:1})])])):w("",!0)]),_:1},8,["model-value","top"])])],64)}}}),to={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},so={key:0,"ml--1":"","text-primary":""},lo=I({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(P){const s=P,v=D(()=>s.component.filePath||s.component.file||s.component.__file||"");return(i,c)=>{const l=oe,a=ne,h=Ce("VDropdown"),r=Z,b=ee;return t(),m("div",to,[u(h,null,{popper:f(()=>[u(a,{component:i.component,dependencies:i.dependencies,dependents:i.dependents,"w-100":"",pt4:""},null,8,["component","dependencies","dependents"])]),default:f(()=>[o("button",{"hover:text-primary":"",class:$e(i.dependents&&i.dependents.length===0?"op50":"")},[u(l,{component:i.component},null,8,["component"])],2)]),_:1}),i.dependents?.length?(t(),m("sup",so," x"+W(i.dependents?.length),1)):w("",!0),i.component.global?(t(),y(r,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0),j(i.$slots,"default"),v.value?(t(),y(b,{key:2,filepath:v.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)])}}}),ao={flex:"~ gap-2 items-center"},io={pl4:""},po=I({__name:"ComponentsList",props:{components:{},relationships:{}},setup(P){const s=P,v=U(""),i=U("all"),c=D(()=>{const h=s.components.map(r=>ve(r,s.relationships));return i.value==="using"?h.filter(r=>r.dependents?.length):i.value==="not-used"?h.filter(r=>!r.dependents?.length):h}),l=D(()=>new _e(c.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),a=D(()=>{const h=[],r=new Map,b=[],x=[],d={user:0,lib:0,builtin:0,runtime:0};return(v.value?l.value.search(v.value).map(_=>_.item):c.value).forEach(_=>{const k=_.component;if(k.filePath&&he(k.filePath)){const p=be(k.filePath);if(!p)return;p==="nuxt"?(b.push(_),d.builtin++):(r.has(p)||r.set(p,[]),r.get(p).push(_),d.lib++)}else k.global&&!k.filePath?(x.push(_),d.runtime++):(h.push(_),d.user++)}),{count:d,user:h,builtin:b,lib:r,runtime:x}});return(h,r)=>{const b=ge,x=Le,d=Y,N=lo,_=Me,k=Ue;return t(),m(T,null,[u(d,{search:v.value,"onUpdate:search":r[1]||(r[1]=p=>v.value=p),pb3:""},{actions:f(()=>[j(h.$slots,"default")]),default:f(()=>[o("div",ao,[u(b,{icon:"carbon-filter",op50:""}),u(x,{modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=p=>i.value=p),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),a.value.user.length?(t(),y(_,{key:0,icon:"carbon-nominal",text:"User components",open:a.value.user.length<=$(X),description:`Total components: ${a.value.count.user}`},{default:f(()=>[(t(!0),m(T,null,L(a.value.user,p=>(t(),y(N,E({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):w("",!0),a.value.runtime.length?(t(),y(_,{key:1,icon:"carbon-load-balancer-global",open:a.value.runtime.length<=$(X),text:"Runtime components",description:`Total components: ${a.value.count.runtime}`},{default:f(()=>[(t(!0),m(T,null,L(a.value.runtime,p=>(t(),y(N,E({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):w("",!0),a.value.builtin.length?(t(),y(_,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${a.value.count.builtin}`},{default:f(()=>[(t(!0),m(T,null,L(a.value.builtin,p=>(t(),y(N,E({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["description"])):w("",!0),a.value.lib.size?(t(),y(_,{key:3,open:a.value.count.lib<=$(X),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${a.value.count.lib} components from ${a.value.lib.size} packages`},{default:f(()=>[(t(!0),m(T,null,L(a.value.lib.entries(),([p,F])=>(t(),m("div",{key:p,"ml-2":""},[u(k,{text:`${p} (${F.length})`,py1:"",op50:""},null,8,["text"]),o("div",io,[(t(!0),m(T,null,L(F,G=>(t(),y(N,E({key:G.component.filePath,ref_for:!0},G),null,16))),128))])]))),128))]),_:1},8,["open","description"])):w("",!0)],64)}}}),ro={relative:"","h-full":"","of-auto":""},uo={"flex-none":"",flex:"~ gap3"},Do=I({__name:"components",setup(P){const s=ye(),v=Ie(),i=Fe(),{componentsView:c}=J("ui");function l(){s.value?.inspector?.enable()}function a(){c.value=c.value==="list"?"graph":"list"}return(h,r)=>{const b=O,x=Re,d=Pe,N=Ne("tooltip");return t(),m(T,null,[o("div",ro,[(t(),y(Ve($(c)==="list"?po:no),{components:$(v),relationships:$(i)},{default:f(()=>[o("div",uo,[Q(u(b,{"text-lg":"",border:!1,icon:$(c)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:a},null,8,["icon"]),[[N,"Toggle View",void 0,{"bottom-end":!0}]]),$(s)?.inspector?.isAvailable?Q((t(),y(b,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:l},null,512)),[[N,"Inspect Vue components",void 0,{"bottom-end":!0}]]):w("",!0)])]),_:1},8,["components","relationships"]))]),u(d,null,{default:f(()=>[u(x)]),_:1})],64)}}});export{Do as default};
@@ -1 +1 @@
1
- import{a as $,K as U,E,_ as F}from"./fbsja1bs.js";import{_ as S}from"./nmarkdown.vue-iw2voruc.js";import{_ as j}from"./filepath-item.vue-daxa4407.js";import{k as q}from"./index-jc4yj4to.js";import{C as y}from"./constants-b32h69zq.js";import{p as z,q as r,Y as K,S as i,a1 as s,a2 as m,Q as a,X as L,P as p,R as l,a9 as c,a8 as _,a3 as b,u as k,F as x,ae as M}from"./vendor/json-editor-vue-llkaejaf.js";const O={rounded:"","font-mono":""},P={key:0,"text-primary":""},Q={key:0},R={title:"Vue Directive"},T={"max-w-100":""},W={px4:"",py3:"","text-sm":""},X={flex:"~ gap2",n:"primary xs"},Y={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},A={"text-sm":""},G={"text-primary":""},H={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},J={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,B=S,f=F,I=j,V=K("VDropdown");return s(),i(V,{disabled:!o.metadata},{popper:m(()=>[a("div",T,[a("div",W,[e.item.meta?.description?(s(),i(B,{key:0,tag:"div",pb3:"","text-sm":"",markdown:e.item.meta.description},null,8,["markdown"])):l("",!0),a("div",X,[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}),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})):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},8,["to"])):l("",!0)])]),a("div",Y,[n.value?(s(),p(x,{key:0},[a("div",A,[t[5]||(t[5]=a("span",{op50:""},"It has been referenced ",-1)),a("strong",G,_(n.value),1),t[6]||(t[6]=a("span",{op50:""}," times by:",-1))]),a("div",H,[(s(!0),p(x,null,M(N.value,d=>(s(),i(I,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),p("div",J," 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",P,"x"+_(n.value),1)):l("",!0)]),e.isDirective?(s(),p("sup",Q,[a("abbr",R,[b(w,{icon:"tabler:hexagon-letter-d"})])])):l("",!0)],2)]),_:1},8,["disabled"])}}});export{ne as _};
1
+ import{a as $,K as U,E,_ as F}from"./ba74h01u.js";import{_ as S}from"./nmarkdown.vue-iw2voruc.js";import{_ as j}from"./filepath-item.vue-exj9bzuo.js";import{k as q}from"./index-jc4yj4to.js";import{C as y}from"./constants-b32h69zq.js";import{p as z,q as r,Y as K,S as i,a1 as s,a2 as m,Q as a,X as L,P as p,R as l,a9 as c,a8 as _,a3 as b,u as k,F as x,ae as M}from"./vendor/json-editor-vue-llkaejaf.js";const O={rounded:"","font-mono":""},P={key:0,"text-primary":""},Q={key:0},R={title:"Vue Directive"},T={"max-w-100":""},W={px4:"",py3:"","text-sm":""},X={flex:"~ gap2",n:"primary xs"},Y={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},A={"text-sm":""},G={"text-primary":""},H={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},J={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,B=S,f=F,I=j,V=K("VDropdown");return s(),i(V,{disabled:!o.metadata},{popper:m(()=>[a("div",T,[a("div",W,[e.item.meta?.description?(s(),i(B,{key:0,tag:"div",pb3:"","text-sm":"",markdown:e.item.meta.description},null,8,["markdown"])):l("",!0),a("div",X,[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}),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})):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},8,["to"])):l("",!0)])]),a("div",Y,[n.value?(s(),p(x,{key:0},[a("div",A,[t[5]||(t[5]=a("span",{op50:""},"It has been referenced ",-1)),a("strong",G,_(n.value),1),t[6]||(t[6]=a("span",{op50:""}," times by:",-1))]),a("div",H,[(s(!0),p(x,null,M(N.value,d=>(s(),i(I,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),p("div",J," 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",P,"x"+_(n.value),1)):l("",!0)]),e.isDirective?(s(),p("sup",Q,[a("abbr",R,[b(w,{icon:"tabler:hexagon-letter-d"})])])):l("",!0)],2)]),_:1},8,["disabled"])}}});export{ne as _};
@@ -1 +1 @@
1
- import{Q as E,Y as M,Z as N,$ as j,p as B,a0 as I,a1 as k,a2 as P,i as V,a3 as D,r as L,U as S}from"./fbsja1bs.js";import{p as $,f as C,q as x,r as W,E as q,n as O,w as b,I as R,P as U,a1 as n,S as u,a2 as y,Q as r,a9 as w,a8 as A,u as T,ad as F,a3 as Q}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as G}from"./launch-page.vue-h0djvz1n.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./nmarkdown.vue-iw2voruc.js";import"./client-gsjyqe32.js";const h=new Map,X=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=E(),d=C(),i=x(()=>m.tab.name),e=C(),t=W(M(d));q(()=>{const o=m.tab.view,l=o.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(i.value)&&l)e.value=h.get(i.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(i.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),s(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),O(p)}setTimeout(s,100)}),b(p),b(s),b(v),R(()=>{e.value&&(e.value.style.visibility="hidden")});function s(){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=N();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=j(),d=B(),i=x(()=>m.name??c.params.name),e=I(),t=x(()=>e.value.find(s=>s.name===i.value));return q(()=>{t.value?t.value.requireAuth&&!k.value&&P():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(s,a)=>{const v=V,p=D,o=X,l=G,_=S;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(L).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[Q(_,{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",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,A(i.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};
1
+ import{Q as E,Y as M,Z as N,$ as j,p as B,a0 as I,a1 as k,a2 as P,i as V,a3 as D,r as L,U as S}from"./ba74h01u.js";import{p as $,f as C,q as x,r as W,E as q,n as O,w as b,I as R,P as U,a1 as n,S as u,a2 as y,Q as r,a9 as w,a8 as A,u as T,ad as F,a3 as Q}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as G}from"./launch-page.vue-cea50uh8.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./nmarkdown.vue-iw2voruc.js";import"./client-gsjyqe32.js";const h=new Map,X=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=E(),d=C(),i=x(()=>m.tab.name),e=C(),t=W(M(d));q(()=>{const o=m.tab.view,l=o.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(i.value)&&l)e.value=h.get(i.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(i.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),s(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),O(p)}setTimeout(s,100)}),b(p),b(s),b(v),R(()=>{e.value&&(e.value.style.visibility="hidden")});function s(){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=N();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=j(),d=B(),i=x(()=>m.name??c.params.name),e=I(),t=x(()=>e.value.find(s=>s.name===i.value));return q(()=>{t.value?t.value.requireAuth&&!k.value&&P():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(s,a)=>{const v=V,p=D,o=X,l=G,_=S;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(L).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[Q(_,{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",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,A(i.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};
@@ -1 +1 @@
1
- import{u as r,_ as s}from"./fbsja1bs.js";import{p as c,ag as i,aa as p,a1 as _,S as m}from"./vendor/json-editor-vue-llkaejaf.js";const D=c({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(u){const t=r();return(o,e)=>{const n=s,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
+ import{u as r,_ as s}from"./ba74h01u.js";import{p as c,ag as i,aa as p,a1 as _,S as m}from"./vendor/json-editor-vue-llkaejaf.js";const D=c({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(u){const t=r();return(o,e)=>{const n=s,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 +1,2 @@
1
- import{_ as E}from"./nselect.vue-irwn99mm.js";import{u as F,c as U,a as W,_ as q}from"./fbsja1bs.js";import{_ as z}from"./nswitch.vue-jbyu7ls8.js";import{_ as J}from"./ndropdown.vue-l9d7spsr.js";import{_ as O}from"./ncode-block.vue-bir2wz4z.js";import{_ as P}from"./ndrawer.vue-grut5tpv.js";import{A as h,d as x}from"./vendor/quicktype-core-o2aektoq.js";import{p as Q,f as k,q as N,j as C,S as c,R as m,a1 as n,a3 as d,a2 as r,Q as i,P as f,F as D,ae as j,u as _,a8 as b,ac as R}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./client-gsjyqe32.js";const G={border:"b base",flex:"~ items-center gap-2",sticky:"","left-0":"","right-0":"","top-0":"","z-1":"",p3:"","bg-base":""},H={key:0,flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--2":"","h-4":"","w-4":"","rounded-full":"","bg-lime:30":"","text-8px":""},K={flex:"~ col","w-100":"","of-auto":"",py2:""},M={"text-xs":"",capitalize:"",op75:""},ie=Q({__name:"DataSchemaDrawer",setup(X){const s=F(),V=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=U(async()=>{if(V.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(`
1
+ import{_ as E}from"./nselect.vue-g4eljg7m.js";import{u as F,c as U,a as W,_ as q}from"./ba74h01u.js";import{_ as z}from"./nswitch.vue-jbyu7ls8.js";import{_ as J}from"./ndropdown.vue-k1705v4p.js";import{_ as O}from"./ncode-block.vue-bir2wz4z.js";import{_ as P}from"./ndrawer.vue-k5p5tlwf.js";import{A as h,d as x}from"./vendor/quicktype-core-o2aektoq.js";import{p as Q,f as k,q as N,j as C,S as c,R as m,a1 as n,a3 as d,a2 as r,Q as i,P as f,F as D,ae as j,u as _,a8 as b,ac as R}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./client-gsjyqe32.js";const G={border:"b base",flex:"~ items-center gap-2",sticky:"","left-0":"","right-0":"","top-0":"","z-1":"",p3:"","bg-base":""},H={key:0,flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--2":"","h-4":"","w-4":"","rounded-full":"","bg-lime:30":"","text-8px":""},K={flex:"~ col","w-100":"","of-auto":"",py2:""},M={"text-xs":"",capitalize:"",op75:""},ie=Q({__name:"DataSchemaDrawer",setup(X){const s=F(),V=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=U(async()=>{if(V.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
2
  `)}),S=N(()=>{const e=l.value.toLocaleLowerCase();return e.startsWith("javascript")?"javascript":e.startsWith("json")?"json":e.startsWith("typescript")?"typescript":e});C(o,()=>{V.value++},{deep:!0}),C(l,()=>{o.value=v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")});const $=W();function B(){$(y.value||"")}return(e,t)=>{const w=E,u=q,p=z,L=J,I=O,T=P;return v.value?(n(),c(R,{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",G,[t[3]||(t[3]=i("p",{"mr-2":""}," Schema ",-1)),d(w,{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value=a),n:"xs primary"},{default:r(()=>[(n(!0),f(D,null,j(_(h.all),a=>(n(),f("option",{key:a.displayName},b(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",H,b(o.value.length),1)):m("",!0)]),default:r(()=>[i("div",K,[(n(!0),f(D,null,j(o.value,(a,g)=>(n(),c(p,{key:a.name,modelValue:o.value[g].defaultValue,"onUpdate:modelValue":A=>o.value[g].defaultValue=A,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:r(()=>[i("span",M,b(a.description),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):m("",!0),t[4]||(t[4]=i("div",{"flex-auto":""},null,-1)),d(u,{icon:"carbon-copy","mr-6":"","h-full":"",onClick:t[1]||(t[1]=a=>B())})]),_(y)?(n(),c(I,{key:0,lang:S.value,code:_(y)},null,8,["lang","code"])):m("",!0)]),_:1},8,["model-value"])])):m("",!0)}}});export{ie as default};
@@ -1 +1 @@
1
- import{b as o}from"./fbsja1bs.js";import{P as t,a1 as s,Q as r,U as a}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.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
+ import{b as o}from"./ba74h01u.js";import{P as t,a1 as s,Q as r,U as a}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.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 +1 @@
1
- import{b as a,d as i,e as u}from"./fbsja1bs.js";import{P as c,a1 as l,Q as e,a8 as r,a3 as d,a2 as p,a9 as f}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.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 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,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-1f38420e"]]);export{N as default};
1
+ import{b as a,d as i,e as u}from"./ba74h01u.js";import{P as c,a1 as l,Q as e,a8 as r,a3 as d,a2 as p,a9 as f}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.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 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,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-1f38420e"]]);export{N as default};
@@ -1 +1 @@
1
- import{b as s,d as a}from"./fbsja1bs.js";import{P as i,a1 as u,Q as e,a8 as o}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.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:[{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)=>(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-fb22c929"]]);export{y as default};
1
+ import{b as s,d as a}from"./ba74h01u.js";import{P as i,a1 as u,Q as e,a8 as o}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.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:[{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)=>(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-fb22c929"]]);export{y as default};
@@ -1,4 +1,4 @@
1
- import{f as E,A as x}from"./fbsja1bs.js";import{_ as N}from"./stacktrace-list.vue-gnv947s9.js";import{p as y,q as v,P as l,a1 as i,a3 as C,Q as f,R as _,a2 as S,a9 as w,a8 as p,S as R}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./filepath-item.vue-daxa4407.js";const $=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,O=/^(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(`
1
+ import{f as E,A as x}from"./ba74h01u.js";import{_ as N}from"./stacktrace-list.vue-cgia2cun.js";import{p as y,q as v,P as l,a1 as i,a3 as C,Q as f,R as _,a2 as S,a9 as w,a8 as p,S as R}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./filepath-item.vue-exj9bzuo.js";const $=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,O=/^(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
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
3
  `).filter(t=>!t.match(O))).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
4
  `)&&e.message.split(`
@@ -1 +1 @@
1
- import{K as k,a as c,J as g,av as C}from"./fbsja1bs.js";import{p as b,q as B,P as t,a1 as a,Q as s,U as N,R as u,X as E,F as l,a9 as d,a8 as r,u as m}from"./vendor/json-editor-vue-llkaejaf.js";const F={flex:"~ gap-2 items-center",class:"group"},I=["title"],S={key:0,op50:""},V={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)=>(a(),t("span",F,[s("span",{class:E([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",S,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,I),N(e.$slots,"default"),e.filepath?(a(),t("div",V,[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
+ import{K as k,a as c,J as g,av as C}from"./ba74h01u.js";import{p as b,q as B,P as t,a1 as a,Q as s,U as N,R as u,X as E,F as l,a9 as d,a8 as r,u as m}from"./vendor/json-editor-vue-llkaejaf.js";const F={flex:"~ gap-2 items-center",class:"group"},I=["title"],S={key:0,op50:""},V={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)=>(a(),t("span",F,[s("span",{class:E([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",S,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,I),N(e.$slots,"default"),e.filepath?(a(),t("div",V,[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 +1 @@
1
- import{b as t}from"./fbsja1bs.js";import{P as e,a1 as r,U as s}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const a={},c={"h-full":"","of-auto":""};function n(o,f){return r(),e("div",c,[s(o.$slots,"default")])}const d=t(a,[["render",n]]);export{d as default};
1
+ import{b as t}from"./ba74h01u.js";import{P as e,a1 as r,U as s}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const a={},c={"h-full":"","of-auto":""};function n(o,f){return r(),e("div",c,[s(o.$slots,"default")])}const d=t(a,[["render",n]]);export{d as default};
@@ -1 +1 @@
1
- import{g as f,_ as m}from"./fbsja1bs.js";import{p as v,f as c,P as o,R as s,u as g,a1 as a,F as k,Q as r,a3 as l,M as u,a2 as i,U as _}from"./vendor/json-editor-vue-llkaejaf.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)?(a(),o(k,{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
+ import{g as f,_ as m}from"./ba74h01u.js";import{p as v,f as c,P as o,R as s,u as g,a1 as a,F as k,Q as r,a3 as l,M as u,a2 as i,U as _}from"./vendor/json-editor-vue-llkaejaf.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)?(a(),o(k,{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 +1 @@
1
- import{_ as S}from"./duration-display.vue-h9mqvgci.js";import{a4 as T,a5 as F,f as V}from"./fbsja1bs.js";import{p as $,f as H,q as w,P as h,a1 as u,Q as o,a9 as l,X as p,F as y,ae as B,a8 as m,V as P,u as x,a3 as _,S as C,R as N,a2 as f}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as D}from"./nsection-block-lvco0rmb.js";import{_ as E}from"./help-fab.vue-cgdegfc2.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./nicon-title.vue-dsf9ygne.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":""},R={"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:""},Q={"text-sm":""},U={"ws-nowrap":""},X={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-right":"","text-sm":""},M=$({__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",R,[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,B(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:P({color:("getHashColorFromString"in e?e.getHashColorFromString:x(T))(c(s.name))})},[o("code",Q,m(c(s.name)),1)],4),o("td",U,[o("code",X,m(v(s.name)),1)]),o("td",G,m(s.listeners),1),o("td",J,m(s.executions.length+1),1),o("td",K,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),W={class:"markdown-body"},Z={__name:"hooks",setup(k,{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)])))}},it=$({__name:"hooks",setup(k){const a=F(),r=V(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=M,c=D,v=Z,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};
1
+ import{_ as S}from"./duration-display.vue-h9mqvgci.js";import{a4 as T,a5 as F,f as V}from"./ba74h01u.js";import{p as $,f as H,q as w,P as h,a1 as u,Q as o,a9 as l,X as p,F as y,ae as B,a8 as m,V as P,u as x,a3 as _,S as C,R as N,a2 as f}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as D}from"./nsection-block-c0xnizfr.js";import{_ as E}from"./help-fab.vue-e4itx2nb.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./nicon-title.vue-dsf9ygne.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":""},R={"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:""},Q={"text-sm":""},U={"ws-nowrap":""},X={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-right":"","text-sm":""},M=$({__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",R,[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,B(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:P({color:("getHashColorFromString"in e?e.getHashColorFromString:x(T))(c(s.name))})},[o("code",Q,m(c(s.name)),1)],4),o("td",U,[o("code",X,m(v(s.name)),1)]),o("td",G,m(s.listeners),1),o("td",J,m(s.executions.length+1),1),o("td",K,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),W={class:"markdown-body"},Z={__name:"hooks",setup(k,{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)])))}},it=$({__name:"hooks",setup(k){const a=F(),r=V(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=M,c=D,v=Z,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};
@@ -1 +1 @@
1
- import{a6 as T,X as A,a7 as S,J as P,N as j,W as X,E as q}from"./fbsja1bs.js";import{_ as J}from"./nselect-tabs.vue-k6p3ng9x.js";import{_ as Q}from"./nnavbar.vue-l41ly2p4.js";import{_ as U}from"./filepath-item.vue-daxa4407.js";import{_ as R}from"./composable-item.vue-c34ra8vg.js";import{p as C,P as u,a1 as a,F as k,ae as M,a3 as c,Q as i,S as w,R as x,u as f,q as _,a8 as W,f as B,a2 as $}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as Y}from"./nsection-block-lvco0rmb.js";import{_ as G}from"./help-fab.vue-cgdegfc2.js";import{D as V}from"./constants-b32h69zq.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./nmarkdown.vue-iw2voruc.js";import"./client-gsjyqe32.js";import"./index-jc4yj4to.js";import"./nicon-title.vue-dsf9ygne.js";const K={flex:"~ wrap gap2",p2:"",pl4:""},O=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=U,e=R;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",K,[(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=T();return(v,o)=>{const e=U;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=T(),v=_(()=>[...new Set(r.value?.imports.map(o=>A(o.from)).filter(o=>!!o&&!S(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))||[]),z=_(()=>new j(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)?S(A(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=q,p=J,N=Q,h=O,t=Y,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:F.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:E.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:H.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};
1
+ import{a6 as T,X as A,a7 as S,J as P,N as j,W as X,E as q}from"./ba74h01u.js";import{_ as J}from"./nselect-tabs.vue-k91b8jqs.js";import{_ as Q}from"./nnavbar.vue-fue4am60.js";import{_ as U}from"./filepath-item.vue-exj9bzuo.js";import{_ as R}from"./composable-item.vue-biqh7ndo.js";import{p as C,P as u,a1 as a,F as k,ae as M,a3 as c,Q as i,S as w,R as x,u as f,q as _,a8 as W,f as B,a2 as $}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as Y}from"./nsection-block-c0xnizfr.js";import{_ as G}from"./help-fab.vue-e4itx2nb.js";import{D as V}from"./constants-b32h69zq.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./nmarkdown.vue-iw2voruc.js";import"./client-gsjyqe32.js";import"./index-jc4yj4to.js";import"./nicon-title.vue-dsf9ygne.js";const K={flex:"~ wrap gap2",p2:"",pl4:""},O=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=U,e=R;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",K,[(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=T();return(v,o)=>{const e=U;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=T(),v=_(()=>[...new Set(r.value?.imports.map(o=>A(o.from)).filter(o=>!!o&&!S(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))||[]),z=_(()=>new j(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)?S(A(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=q,p=J,N=Q,h=O,t=Y,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:F.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:E.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:H.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};
@@ -1 +1 @@
1
- import{f as y,g,h as N,_ as b,i as k,t as h,j as w}from"./fbsja1bs.js";import{_ as C}from"./nlink.vue-fx2zgfoc.js";import{_ as V}from"./ncheckbox.vue-itzb0tps.js";import{p as B,f as L,S as u,a1 as m,a2 as o,Q as t,a3 as n,R as T,a9 as l,u as j}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const D={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},P={"max-w-190":"","text-lg":""},S={mb6:"",op50:""},E={p4:""},F={flex:"~ col gap-2",mxa:""},U=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){h.value=s.value,w.value=!1}function _(){a.value=!1,p.value.devtools.close()}return($,e)=>{const f=N,r=C,i=b,x=V,v=k;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!")),e[2]||(e[2]=t("br",null,null,-1))]),t("p",S,[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}),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{U as default};
1
+ import{f as y,g,h as N,_ as b,i as k,t as h,j as w}from"./ba74h01u.js";import{_ as C}from"./nlink.vue-onmg0jek.js";import{_ as V}from"./ncheckbox.vue-l9opyx34.js";import{p as B,f as L,S as u,a1 as m,a2 as o,Q as t,a3 as n,R as T,a9 as l,u as j}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const D={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},P={"max-w-190":"","text-lg":""},S={mb6:"",op50:""},E={p4:""},F={flex:"~ col gap-2",mxa:""},U=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){h.value=s.value,w.value=!1}function _(){a.value=!1,p.value.devtools.close()}return($,e)=>{const f=N,r=C,i=b,x=V,v=k;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!")),e[2]||(e[2]=t("br",null,null,-1))]),t("p",S,[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}),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{U as default};
@@ -1 +1 @@
1
- import{i as w,U as y,bi as B,_ as C,E as P,B as V}from"./fbsja1bs.js";import{_ as $}from"./nmarkdown.vue-iw2voruc.js";import{p as v,S as a,a1 as n,a2 as o,a3 as c,Q as i,R as m,a8 as _,P as E,F,ae as I,a4 as L,a9 as S}from"./vendor/json-editor-vue-llkaejaf.js";const T={"text-xl":""},D={flex:"~ gap2 wrap"},U=v({__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=B,k=$,b=P,h=C,N=y,x=w;return n(),a(x,null,{default:o(()=>[c(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[c(g,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",T,_(e.title),1),e.description?(n(),a(k,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):m("",!0),i("div",D,[(n(!0),E(F,null,I(e.actions,(t,r)=>(n(),a(h,L({key:r,n:"solid primary",disabled:t.pending,to:t.src,target:t.src?"_blank":void 0,ref_for:!0},t.attrs,{onClick:G=>f(t,r)}),{default:o(()=>[t.pending?(n(),a(b,{key:0,icon:"carbon-circle-dash","animate-spin":""})):m("",!0),S(" "+_(t.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{U as _};
1
+ import{i as w,U as y,bi as B,_ as C,E as P,B as V}from"./ba74h01u.js";import{_ as $}from"./nmarkdown.vue-iw2voruc.js";import{p as v,S as a,a1 as n,a2 as o,a3 as c,Q as i,R as m,a8 as _,P as E,F,ae as I,a4 as L,a9 as S}from"./vendor/json-editor-vue-llkaejaf.js";const T={"text-xl":""},D={flex:"~ gap2 wrap"},U=v({__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=B,k=$,b=P,h=C,N=y,x=w;return n(),a(x,null,{default:o(()=>[c(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[c(g,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",T,_(e.title),1),e.description?(n(),a(k,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):m("",!0),i("div",D,[(n(!0),E(F,null,I(e.actions,(t,r)=>(n(),a(h,L({key:r,n:"solid primary",disabled:t.pending,to:t.src,target:t.src?"_blank":void 0,ref_for:!0},t.attrs,{onClick:G=>f(t,r)}),{default:o(()=>[t.pending?(n(),a(b,{key:0,icon:"carbon-circle-dash","animate-spin":""})):m("",!0),S(" "+_(t.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{U as _};
@@ -1 +1 @@
1
- import{_ as oe}from"./filepath-item.vue-daxa4407.js";import{K as G,U as H,e as O,E as J,s as K,_ as S,r as q,m as E,B as ne,a8 as Q,a9 as R,N as se,J as le,y as ae,A as ie,v as re}from"./fbsja1bs.js";import{_ as ue,u as F,a as de}from"./state-modules-paq2zdoq.js";import{_ as me}from"./duration-display.vue-h9mqvgci.js";import{p as P,q as M,S as $,a1 as o,a2 as r,Q as e,U as T,P as p,R as v,a9 as k,a8 as g,u as j,X as U,a3 as s,F as B,ae as A,ak as pe,f as D,M as Y}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as ce}from"./nsection-block-lvco0rmb.js";import{_ as _e}from"./nicon-title.vue-dsf9ygne.js";import{_ as X}from"./ndropdown.vue-l9d7spsr.js";import{_ as fe}from"./ncheckbox.vue-itzb0tps.js";import{_ as ve}from"./nnavbar.vue-l41ly2p4.js";import{_ as ge}from"./nbadge-g4eu5zb5.js";import{s as xe}from"./vue-virtual-scroller.esm-gnguvd0a.js";import{_ as be}from"./ncode-block.vue-bir2wz4z.js";import{_ as ke}from"./nlink.vue-fx2zgfoc.js";import{_ as he}from"./code-diff.vue-isljdopw.js";import{_ as ye}from"./help-fab.vue-cgdegfc2.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./client-gsjyqe32.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={flex:"~ gap-2 items-center",op50:""},je={flex:"~ gap-2 items-center",op50:""},Pe={key:1},De={flex:"~ col","items-end":""},Ae={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Te=["src","alt"],Ue={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Se=["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/",Fe="https://github.com/",Ve="https://www.npmjs.com/package/",V=P({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const f=N,i=M(()=>({...f.mod?.meta,...f.mod,...f.info})),x=G();return(m,t)=>{const l=O,u=J,h=me,w=H;return o(),$(w,{p4:"",flex:"~ gap2"},{default:r(()=>[e("div",$e,[T(m.$slots,"main",{},()=>[e("div",we,[m.mod.isPackageModule?(o(),$(l,{key:0,to:Ve+(i.value.npm||i.value.name),target:"_blank",hover:"underline text-primary"},{default:r(()=>[k(g(i.value.name),1)]),_:1},8,["to"])):m.mod.entryPath?(o(),p("button",{key:1,role:"button",hover:"underline text-primary",onClick:t[0]||(t[0]=c=>j(x)(m.mod.entryPath))},g(i.value.name),1)):(o(),p("span",Ce,g(i.value.name),1)),T(m.$slots,"badge")]),i.value.description?(o(),p("div",{key:0,class:U(m.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},g(i.value.description),3)):v("",!0),t[3]||(t[3]=e("div",{"flex-auto":""},null,-1)),i.value.website?(o(),p("div",Ie,[t[1]||(t[1]=e("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):v("",!0),i.value.github?(o(),p("div",Me,[t[2]||(t[2]=e("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):v("",!0)]),T(m.$slots,"items"),i.value.stats?(o(),p("div",Ne,[e("div",Be,[s(u,{icon:"carbon-star","text-lg":""}),e("span",null,g(i.value.stats.stars),1)]),e("div",je,[s(u,{icon:"carbon-download","text-lg":""}),e("span",null,g(i.value.stats.downloads),1)])])):v("",!0),m.mod.timings?.setup?(o(),p("div",Pe,[s(h,{title:"Module Setup Time",flex:"~ items-center",duration:m.mod.timings.setup*1e3,factor:.5},{before:r(()=>[s(u,{icon:"carbon-time",mr2:"","text-lg":"",op50:""})]),_:1},8,["duration"])])):v("",!0)]),e("div",De,[i.value.icon||m.mod.isPackageModule?(o(),p("div",Ae,[i.value.icon?(o(),p("img",{key:0,src:Le+i.value.icon,alt:m.mod.name,ma:""},null,8,Te)):v("",!0),t[4]||(t[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):v("",!0),i.value.maintainers?.length&&m.maintainers?(o(),p("div",Ue,[(o(!0),p(B,null,A(i.value.maintainers,c=>(o(),$(l,{key:c.name,target:"_blank",to:Fe+c.github,title:c.name},{default:r(()=>[e("img",{src:Oe+c.github,"h-6":"","w-6":"","rounded-full":""},null,8,Se)]),_:2},1032,["to","title"]))),128))])):v("",!0),m.$slots.actions?(o(),p(B,{key:2},[t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("div",ze,[T(m.$slots,"actions")])],64)):v("",!0)])]),_:3})}}}),qe={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ee={key:1,"mx--2":""},Ye=["onClick"],Ge={key:2,"mx--2":""},He=["onClick"],Je={op50:""},Ke={"text-green":""},Qe={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Re={"text-sm":"",op50:""},Xe=P({__name:"ModuleItem",props:{mod:{}},setup(N){const f=N,i=M(()=>f.mod.info),x=M(()=>({...f.mod?.meta,...f.mod,...i.value})),m=K();return(t,l)=>{const u=oe,h=O,w=ue,c=V;return o(),$(c,{mod:t.mod,info:i.value},{items:r(()=>[t.mod.entryPath?(o(),p("div",qe,[l[0]||(l[0]=e("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1)),s(u,{filepath:t.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):v("",!0),x.value.npm?(o(),$(w,{key:x.value.npm,"package-name":x.value.npm,options:{dev:!0}},{default:r(({info:d,update:C,state:b,id:a,restart:n})=>[b==="running"?(o(),$(h,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:a?"/modules/terminals":void 0,onClick:y=>a?m.value=a:void 0},{default:r(()=>l[1]||(l[1]=[e("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])),_:2},1032,["to","onClick"])):b==="updated"?(o(),p("div",Ee,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:n},l[2]||(l[2]=[e("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)]),8,Ye)])):d?.needsUpdate?(o(),p("div",Ge,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:y=>C()},[l[3]||(l[3]=e("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),e("code",Je,"v"+g(d.current),1),l[4]||(l[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Ke,"v"+g(d.latest),1)],8,He)])):d?.latest?(o(),p("div",Qe,[l[5]||(l[5]=e("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),e("code",Re,"v"+g(d.current),1)])):v("",!0)]),_:1},8,["package-name"])):v("",!0)]),_:1},8,["mod","info"])}}}),We=P({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:f}){const i=N,x=f,m=F(),t=M(()=>m.value.find(c=>c.name===i.item.npm)),l=M(()=>t.value&&t.value.isPackageModule),u=M(()=>t.value&&t.value.isPackageModule&&t.value.isUninstallable);async function h(c,d){const C=d==="install"?q.installNuxtModule:q.uninstallNuxtModule,b=await C(await E(),c.npm,!0);ne(`modules:${d}`,{moduleName:c.npm}),b.commands&&await Q.start(c,b,d)&&(R.value.push({name:c.npm,info:c,processId:b.processId}),x("start"),await C(await E(),c.npm,!1))}const w={};return(c,d)=>{const C=ge,b=S,a=X,n=V;return o(),$(n,{mod:w,role:l.value?"":"button",info:c.item,mb2:"","h-full":"",class:U(l.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:d[1]||(d[1]=y=>l.value?null:h(c.item,"install"))},pe({_:2},[l.value?{name:"badge",fn:r(()=>[s(C,{n:"green",textContent:"Installed"}),u.value?(o(),$(a,{key:0,n:"sm green"},{trigger:r(({click:y})=>[s(b,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:_=>y()},null,8,["onClick"])]),default:r(()=>[s(b,{icon:"carbon-trash-can",n:"red",onClick:d[0]||(d[0]=y=>h(c.item,"uninstall"))},{default:r(()=>d[2]||(d[2]=[k(" Uninstall ")])),_:1})]),_:1})):v("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),Ze={"h-full":"",flex:"~ col gap-4"},et={flex:"~ items-center"},tt={flex:"~ col","w-30":"","of-auto":""},ot={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},nt={flex:"~ items-center gap-2"},st={flex:"~ gap1","text-sm":"",op50:""},lt={key:0},at={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},it=P({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:f}){const i=f,x=de(),m=F(),t=["downloads","stars","updated","created"],l=D(!1),u=D(t[0]),h=D(!0),w={downloads:(a,n)=>a.stats.downloads-n.stats.downloads,stars:(a,n)=>a.stats.stars-n.stats.stars,created:(a,n)=>a.stats.createdAt-n.stats.createdAt,updated:(a,n)=>a.stats.publishedAt-n.stats.publishedAt},c=M(()=>x.value?.toSorted((a,n)=>w[u.value](a,n)*(l.value?1:-1))),d=D(""),C=M(()=>new se(x.value||[],{keys:["name","description","npm","category"],sortFn:(a,n)=>{const y=x.value?.[a.idx],_=x.value?.[n.idx];return y&&_?w[u.value](y,_)*(l.value?1:-1):a.score-n.score},threshold:.2})),b=M(()=>{let a=c.value;return h.value&&(a=(a||[]).filter(n=>!m.value.some(y=>y.name===n.name))),d.value?C.value.search(d.value).map(n=>n.item).filter(n=>a?.includes(n)):a});return(a,n)=>{const y=_e,_=S,z=J,W=X,Z=fe,ee=ve,te=We;return o(),p("div",Ze,[s(y,{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]=I=>d.value=I),"no-padding":"","px-6":"","pb-3":"","pt-2":""},{actions:r(()=>[s(W,{direction:"end",n:"sm primary"},{trigger:r(({click:I})=>[e("div",et,[s(_,{icon:l.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:n[0]||(n[0]=L=>l.value=!l.value)},null,8,["icon"]),s(_,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:L=>I()},{default:r(()=>[k(g(u.value)+" ",1),s(z,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:r(()=>[e("div",tt,[(o(),p(B,null,A(t,I=>s(_,{key:I,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:L=>u.value=I},{default:r(()=>[e("span",ot,[k(g(I)+" ",1),u.value===I?(o(),$(z,{key:0,icon:"carbon:checkmark"})):v("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),default:r(()=>[e("div",nt,[s(Z,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=I=>h.value=I),n:"primary md"},{default:r(()=>n[4]||(n[4]=[e("span",{op75:""},"Exclude installed modules",-1)])),_:1},8,["modelValue"]),e("div",st,[d.value||h.value?(o(),p("span",lt,g(b.value?.length)+" matched · ",1)):v("",!0),e("span",null,g(j(x)?.length)+" modules in total",1)])])]),_:1},8,["search"]),e("div",at,[s(j(xe),{class:"scroller",items:b.value,"item-size":200,"key-field":"name"},{default:r(({item:I})=>[s(te,{item:I,onStart:n[3]||(n[3]=L=>i("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),rt={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ut={capitalize:""},dt={op50:""},mt={flex:"~ gap-3",mt2:"","justify-end":""},pt=P({__name:"ModuleActionDialog",setup(N){const f=le(),i=G(),x={};return(m,t)=>{const l=V,u=be,h=ke,w=he,c=ie,d=S,C=ae;return o(),$(j(Q),null,{default:r(({resolve:b,args:a})=>[s(C,{"model-value":!0,onClose:n=>b(!1)},{default:r(()=>[s(l,{mod:x,info:a[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",rt,[e("h2",{"text-xl":"",class:U(a[2]==="install"?"text-primary":"text-red")},[e("span",ut,g(a[2]),1),t[1]||(t[1]=k()),e("code",null,g(a[0].name),1),t[2]||(t[2]=k("? "))],2),t[7]||(t[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(u,{code:a[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",dt,[t[3]||(t[3]=k(" Then your ")),s(h,{role:"button",n:"primary",underline:"",onClick:t[0]||(t[0]=n=>j(i)(j(f)?._nuxtConfigFile)),textContent:"Nuxt config"}),t[4]||(t[4]=k(" will be updated as: "))]),s(w,{from:a[1].configOriginal,to:a[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),t[8]||(t[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),k(". ")],-1)),e("div",mt,[s(c,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:r(()=>t[5]||(t[5]=[k(" Please make sure to backup your project first. ")])),_:1}),s(d,{onClick:n=>b(!1)},{default:r(()=>t[6]||(t[6]=[k(" Cancel ")])),_:2},1032,["onClick"]),s(d,{n:"solid",capitalize:"",class:U(a[2]==="install"?"n-primary":"n-red"),onClick:n=>b(!0)},{default:r(()=>[k(g(a[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),ct={class:"markdown-body"},_t={__name:"modules",setup(N,{expose:f}){return f({frontmatter:{}}),(x,m)=>(o(),p("div",ct,m[0]||(m[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)])))}},ft={"h-full":"","w-full":"","of-auto":""},vt={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},gt=["src","alt"],xt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},bt={op75:""},kt={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},ht="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Vt=P({__name:"modules",setup(N){const f=D(!1),i=F(),x=K(),m=M(()=>i.value.filter(l=>l.isPackageModule)),t=M(()=>i.value.filter(l=>!l.isPackageModule));return re(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{f.value=!0}}]),(l,u)=>{const h=Xe,w=H,c=O,d=ce,C=S,b=it,a=pt,n=_t,y=ye;return o(),p(B,null,[e("div",ft,[s(d,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${m.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(m.value,_=>(o(),$(h,{key:_.name,mod:_},null,8,["mod"]))),128)),(o(!0),p(B,null,A("processInstallingModules"in l?l.processInstallingModules:j(R),_=>(o(),$(c,{key:_.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:z=>x.value=_.processId},{default:r(()=>[s(w,{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:r(()=>[e("div",vt,[e("img",{src:ht+_.info.icon,alt:_.info.name,ma:""},null,8,gt),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",xt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",bt,"Installing "+g(_.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(w,{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:u[0]||(u[0]=_=>f.value=!0)},{default:r(()=>u[6]||(u[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"]),t.value.length?(o(),$(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: ${t.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(t.value,_=>(o(),p(B,{key:_.meta?.name||_.entryPath},[_.meta?.name||_.entryPath?(o(),$(h,{key:0,mod:_},null,8,["mod"])):v("",!0)],64))),128))]),_:1},8,["description"])):v("",!0),s(Y,{name:"fade-in"},{default:r(()=>[f.value?(o(),p("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=_=>f.value=!1)})):v("",!0)]),_:1}),s(Y,{name:"slide-in"},{default:r(()=>[f.value?(o(),p("div",kt,[s(C,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=_=>f.value=!1)}),s(b,{onClose:u[3]||(u[3]=_=>f.value=!1)})])):v("",!0)]),_:1}),s(a)]),s(y,null,{default:r(()=>[s(n)]),_:1})],64)}}});export{Vt as default};
1
+ import{_ as oe}from"./filepath-item.vue-exj9bzuo.js";import{K as G,U as H,e as O,E as J,s as K,_ as S,r as q,m as E,B as ne,a8 as Q,a9 as R,N as se,J as le,y as ae,A as ie,v as re}from"./ba74h01u.js";import{_ as ue,u as F,a as de}from"./state-modules-sendvo2g.js";import{_ as me}from"./duration-display.vue-h9mqvgci.js";import{p as P,q as M,S as $,a1 as o,a2 as r,Q as e,U as T,P as p,R as v,a9 as k,a8 as g,u as j,X as U,a3 as s,F as B,ae as A,ak as pe,f as D,M as Y}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as ce}from"./nsection-block-c0xnizfr.js";import{_ as _e}from"./nicon-title.vue-dsf9ygne.js";import{_ as X}from"./ndropdown.vue-k1705v4p.js";import{_ as fe}from"./ncheckbox.vue-l9opyx34.js";import{_ as ve}from"./nnavbar.vue-fue4am60.js";import{_ as ge}from"./nbadge-irmvqnko.js";import{s as xe}from"./vue-virtual-scroller.esm-gnguvd0a.js";import{_ as be}from"./ncode-block.vue-bir2wz4z.js";import{_ as ke}from"./nlink.vue-onmg0jek.js";import{_ as he}from"./code-diff.vue-leogxoz1.js";import{_ as ye}from"./help-fab.vue-e4itx2nb.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./client-gsjyqe32.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={flex:"~ gap-2 items-center",op50:""},je={flex:"~ gap-2 items-center",op50:""},Pe={key:1},De={flex:"~ col","items-end":""},Ae={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Te=["src","alt"],Ue={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Se=["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/",Fe="https://github.com/",Ve="https://www.npmjs.com/package/",V=P({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const f=N,i=M(()=>({...f.mod?.meta,...f.mod,...f.info})),x=G();return(m,t)=>{const l=O,u=J,h=me,w=H;return o(),$(w,{p4:"",flex:"~ gap2"},{default:r(()=>[e("div",$e,[T(m.$slots,"main",{},()=>[e("div",we,[m.mod.isPackageModule?(o(),$(l,{key:0,to:Ve+(i.value.npm||i.value.name),target:"_blank",hover:"underline text-primary"},{default:r(()=>[k(g(i.value.name),1)]),_:1},8,["to"])):m.mod.entryPath?(o(),p("button",{key:1,role:"button",hover:"underline text-primary",onClick:t[0]||(t[0]=c=>j(x)(m.mod.entryPath))},g(i.value.name),1)):(o(),p("span",Ce,g(i.value.name),1)),T(m.$slots,"badge")]),i.value.description?(o(),p("div",{key:0,class:U(m.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},g(i.value.description),3)):v("",!0),t[3]||(t[3]=e("div",{"flex-auto":""},null,-1)),i.value.website?(o(),p("div",Ie,[t[1]||(t[1]=e("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):v("",!0),i.value.github?(o(),p("div",Me,[t[2]||(t[2]=e("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):v("",!0)]),T(m.$slots,"items"),i.value.stats?(o(),p("div",Ne,[e("div",Be,[s(u,{icon:"carbon-star","text-lg":""}),e("span",null,g(i.value.stats.stars),1)]),e("div",je,[s(u,{icon:"carbon-download","text-lg":""}),e("span",null,g(i.value.stats.downloads),1)])])):v("",!0),m.mod.timings?.setup?(o(),p("div",Pe,[s(h,{title:"Module Setup Time",flex:"~ items-center",duration:m.mod.timings.setup*1e3,factor:.5},{before:r(()=>[s(u,{icon:"carbon-time",mr2:"","text-lg":"",op50:""})]),_:1},8,["duration"])])):v("",!0)]),e("div",De,[i.value.icon||m.mod.isPackageModule?(o(),p("div",Ae,[i.value.icon?(o(),p("img",{key:0,src:Le+i.value.icon,alt:m.mod.name,ma:""},null,8,Te)):v("",!0),t[4]||(t[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):v("",!0),i.value.maintainers?.length&&m.maintainers?(o(),p("div",Ue,[(o(!0),p(B,null,A(i.value.maintainers,c=>(o(),$(l,{key:c.name,target:"_blank",to:Fe+c.github,title:c.name},{default:r(()=>[e("img",{src:Oe+c.github,"h-6":"","w-6":"","rounded-full":""},null,8,Se)]),_:2},1032,["to","title"]))),128))])):v("",!0),m.$slots.actions?(o(),p(B,{key:2},[t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("div",ze,[T(m.$slots,"actions")])],64)):v("",!0)])]),_:3})}}}),qe={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ee={key:1,"mx--2":""},Ye=["onClick"],Ge={key:2,"mx--2":""},He=["onClick"],Je={op50:""},Ke={"text-green":""},Qe={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Re={"text-sm":"",op50:""},Xe=P({__name:"ModuleItem",props:{mod:{}},setup(N){const f=N,i=M(()=>f.mod.info),x=M(()=>({...f.mod?.meta,...f.mod,...i.value})),m=K();return(t,l)=>{const u=oe,h=O,w=ue,c=V;return o(),$(c,{mod:t.mod,info:i.value},{items:r(()=>[t.mod.entryPath?(o(),p("div",qe,[l[0]||(l[0]=e("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1)),s(u,{filepath:t.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):v("",!0),x.value.npm?(o(),$(w,{key:x.value.npm,"package-name":x.value.npm,options:{dev:!0}},{default:r(({info:d,update:C,state:b,id:a,restart:n})=>[b==="running"?(o(),$(h,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:a?"/modules/terminals":void 0,onClick:y=>a?m.value=a:void 0},{default:r(()=>l[1]||(l[1]=[e("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])),_:2},1032,["to","onClick"])):b==="updated"?(o(),p("div",Ee,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:n},l[2]||(l[2]=[e("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)]),8,Ye)])):d?.needsUpdate?(o(),p("div",Ge,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:y=>C()},[l[3]||(l[3]=e("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),e("code",Je,"v"+g(d.current),1),l[4]||(l[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Ke,"v"+g(d.latest),1)],8,He)])):d?.latest?(o(),p("div",Qe,[l[5]||(l[5]=e("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),e("code",Re,"v"+g(d.current),1)])):v("",!0)]),_:1},8,["package-name"])):v("",!0)]),_:1},8,["mod","info"])}}}),We=P({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:f}){const i=N,x=f,m=F(),t=M(()=>m.value.find(c=>c.name===i.item.npm)),l=M(()=>t.value&&t.value.isPackageModule),u=M(()=>t.value&&t.value.isPackageModule&&t.value.isUninstallable);async function h(c,d){const C=d==="install"?q.installNuxtModule:q.uninstallNuxtModule,b=await C(await E(),c.npm,!0);ne(`modules:${d}`,{moduleName:c.npm}),b.commands&&await Q.start(c,b,d)&&(R.value.push({name:c.npm,info:c,processId:b.processId}),x("start"),await C(await E(),c.npm,!1))}const w={};return(c,d)=>{const C=ge,b=S,a=X,n=V;return o(),$(n,{mod:w,role:l.value?"":"button",info:c.item,mb2:"","h-full":"",class:U(l.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:d[1]||(d[1]=y=>l.value?null:h(c.item,"install"))},pe({_:2},[l.value?{name:"badge",fn:r(()=>[s(C,{n:"green",textContent:"Installed"}),u.value?(o(),$(a,{key:0,n:"sm green"},{trigger:r(({click:y})=>[s(b,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:_=>y()},null,8,["onClick"])]),default:r(()=>[s(b,{icon:"carbon-trash-can",n:"red",onClick:d[0]||(d[0]=y=>h(c.item,"uninstall"))},{default:r(()=>d[2]||(d[2]=[k(" Uninstall ")])),_:1})]),_:1})):v("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),Ze={"h-full":"",flex:"~ col gap-4"},et={flex:"~ items-center"},tt={flex:"~ col","w-30":"","of-auto":""},ot={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},nt={flex:"~ items-center gap-2"},st={flex:"~ gap1","text-sm":"",op50:""},lt={key:0},at={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},it=P({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:f}){const i=f,x=de(),m=F(),t=["downloads","stars","updated","created"],l=D(!1),u=D(t[0]),h=D(!0),w={downloads:(a,n)=>a.stats.downloads-n.stats.downloads,stars:(a,n)=>a.stats.stars-n.stats.stars,created:(a,n)=>a.stats.createdAt-n.stats.createdAt,updated:(a,n)=>a.stats.publishedAt-n.stats.publishedAt},c=M(()=>x.value?.toSorted((a,n)=>w[u.value](a,n)*(l.value?1:-1))),d=D(""),C=M(()=>new se(x.value||[],{keys:["name","description","npm","category"],sortFn:(a,n)=>{const y=x.value?.[a.idx],_=x.value?.[n.idx];return y&&_?w[u.value](y,_)*(l.value?1:-1):a.score-n.score},threshold:.2})),b=M(()=>{let a=c.value;return h.value&&(a=(a||[]).filter(n=>!m.value.some(y=>y.name===n.name))),d.value?C.value.search(d.value).map(n=>n.item).filter(n=>a?.includes(n)):a});return(a,n)=>{const y=_e,_=S,z=J,W=X,Z=fe,ee=ve,te=We;return o(),p("div",Ze,[s(y,{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]=I=>d.value=I),"no-padding":"","px-6":"","pb-3":"","pt-2":""},{actions:r(()=>[s(W,{direction:"end",n:"sm primary"},{trigger:r(({click:I})=>[e("div",et,[s(_,{icon:l.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:n[0]||(n[0]=L=>l.value=!l.value)},null,8,["icon"]),s(_,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:L=>I()},{default:r(()=>[k(g(u.value)+" ",1),s(z,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:r(()=>[e("div",tt,[(o(),p(B,null,A(t,I=>s(_,{key:I,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:L=>u.value=I},{default:r(()=>[e("span",ot,[k(g(I)+" ",1),u.value===I?(o(),$(z,{key:0,icon:"carbon:checkmark"})):v("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),default:r(()=>[e("div",nt,[s(Z,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=I=>h.value=I),n:"primary md"},{default:r(()=>n[4]||(n[4]=[e("span",{op75:""},"Exclude installed modules",-1)])),_:1},8,["modelValue"]),e("div",st,[d.value||h.value?(o(),p("span",lt,g(b.value?.length)+" matched · ",1)):v("",!0),e("span",null,g(j(x)?.length)+" modules in total",1)])])]),_:1},8,["search"]),e("div",at,[s(j(xe),{class:"scroller",items:b.value,"item-size":200,"key-field":"name"},{default:r(({item:I})=>[s(te,{item:I,onStart:n[3]||(n[3]=L=>i("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),rt={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ut={capitalize:""},dt={op50:""},mt={flex:"~ gap-3",mt2:"","justify-end":""},pt=P({__name:"ModuleActionDialog",setup(N){const f=le(),i=G(),x={};return(m,t)=>{const l=V,u=be,h=ke,w=he,c=ie,d=S,C=ae;return o(),$(j(Q),null,{default:r(({resolve:b,args:a})=>[s(C,{"model-value":!0,onClose:n=>b(!1)},{default:r(()=>[s(l,{mod:x,info:a[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",rt,[e("h2",{"text-xl":"",class:U(a[2]==="install"?"text-primary":"text-red")},[e("span",ut,g(a[2]),1),t[1]||(t[1]=k()),e("code",null,g(a[0].name),1),t[2]||(t[2]=k("? "))],2),t[7]||(t[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(u,{code:a[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",dt,[t[3]||(t[3]=k(" Then your ")),s(h,{role:"button",n:"primary",underline:"",onClick:t[0]||(t[0]=n=>j(i)(j(f)?._nuxtConfigFile)),textContent:"Nuxt config"}),t[4]||(t[4]=k(" will be updated as: "))]),s(w,{from:a[1].configOriginal,to:a[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),t[8]||(t[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),k(". ")],-1)),e("div",mt,[s(c,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:r(()=>t[5]||(t[5]=[k(" Please make sure to backup your project first. ")])),_:1}),s(d,{onClick:n=>b(!1)},{default:r(()=>t[6]||(t[6]=[k(" Cancel ")])),_:2},1032,["onClick"]),s(d,{n:"solid",capitalize:"",class:U(a[2]==="install"?"n-primary":"n-red"),onClick:n=>b(!0)},{default:r(()=>[k(g(a[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),ct={class:"markdown-body"},_t={__name:"modules",setup(N,{expose:f}){return f({frontmatter:{}}),(x,m)=>(o(),p("div",ct,m[0]||(m[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)])))}},ft={"h-full":"","w-full":"","of-auto":""},vt={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},gt=["src","alt"],xt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},bt={op75:""},kt={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},ht="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Vt=P({__name:"modules",setup(N){const f=D(!1),i=F(),x=K(),m=M(()=>i.value.filter(l=>l.isPackageModule)),t=M(()=>i.value.filter(l=>!l.isPackageModule));return re(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{f.value=!0}}]),(l,u)=>{const h=Xe,w=H,c=O,d=ce,C=S,b=it,a=pt,n=_t,y=ye;return o(),p(B,null,[e("div",ft,[s(d,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${m.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(m.value,_=>(o(),$(h,{key:_.name,mod:_},null,8,["mod"]))),128)),(o(!0),p(B,null,A("processInstallingModules"in l?l.processInstallingModules:j(R),_=>(o(),$(c,{key:_.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:z=>x.value=_.processId},{default:r(()=>[s(w,{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:r(()=>[e("div",vt,[e("img",{src:ht+_.info.icon,alt:_.info.name,ma:""},null,8,gt),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",xt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",bt,"Installing "+g(_.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(w,{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:u[0]||(u[0]=_=>f.value=!0)},{default:r(()=>u[6]||(u[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"]),t.value.length?(o(),$(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: ${t.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(t.value,_=>(o(),p(B,{key:_.meta?.name||_.entryPath},[_.meta?.name||_.entryPath?(o(),$(h,{key:0,mod:_},null,8,["mod"])):v("",!0)],64))),128))]),_:1},8,["description"])):v("",!0),s(Y,{name:"fade-in"},{default:r(()=>[f.value?(o(),p("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=_=>f.value=!1)})):v("",!0)]),_:1}),s(Y,{name:"slide-in"},{default:r(()=>[f.value?(o(),p("div",kt,[s(C,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=_=>f.value=!1)}),s(b,{onClose:u[3]||(u[3]=_=>f.value=!1)})])):v("",!0)]),_:1}),s(a)]),s(y,null,{default:r(()=>[s(n)]),_:1})],64)}}});export{Vt as default};
@@ -1 +1 @@
1
- import{b as o}from"./fbsja1bs.js";import{P as n,a1 as s,U as t}from"./vendor/json-editor-vue-llkaejaf.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
+ import{b as o}from"./ba74h01u.js";import{P as n,a1 as s,U as t}from"./vendor/json-editor-vue-llkaejaf.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 +1 @@
1
- import{C as i,E as r}from"./fbsja1bs.js";import{p,P as b,a1 as u,aa as h,Q as n,aA as m,u as a,W as k,C as f,a3 as v,U as _,X as x}from"./vendor/json-editor-vue-llkaejaf.js";const C=["checked","disabled"],V=["disabled"],y={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},E=p({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(t,{emit:c}){const e=i(t,"modelValue",c,{passive:!0});return(o,s)=>{const d=r;return u(),b("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center 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,V),[[m,a(e)]]),n("span",y,[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,C)}}});export{E as _};
1
+ import{C as i,E as r}from"./ba74h01u.js";import{p,P as b,a1 as u,aa as h,Q as n,aA as m,u as a,W as k,C as f,a3 as v,U as _,X as x}from"./vendor/json-editor-vue-llkaejaf.js";const C=["checked","disabled"],V=["disabled"],y={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},E=p({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(t,{emit:c}){const e=i(t,"modelValue",c,{passive:!0});return(o,s)=>{const d=r;return u(),b("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center 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,V),[[m,a(e)]]),n("span",y,[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,C)}}});export{E as _};