@nuxt/devtools 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +2 -2
- package/dist/chunks/vue-tracer.mjs +14 -0
- package/dist/client/200.html +22 -22
- package/dist/client/404.html +22 -22
- package/dist/client/_nuxt/__blank-e5z7ffa4.js +1 -0
- package/dist/client/_nuxt/{analyze-build-l4969lgh.js → analyze-build-cj8ped4j.js} +1 -1
- package/dist/client/_nuxt/assets-g2a5d3vk.js +16 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/2a61a2a5-23bf-4f63-886a-9c38ebc0e065.json +1 -0
- package/dist/client/_nuxt/{client-edufhzwa.js → client-gsjyqe32.js} +1 -1
- package/dist/client/_nuxt/code-diff.vue-i89n1j2r.js +8 -0
- package/dist/client/_nuxt/code-snippets.vue-eixx1s2g.js +1 -0
- package/dist/client/_nuxt/components-hs6q9cve.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-k5s38fcb.js +1 -0
- package/dist/client/_nuxt/custom-_name_-owcg55ki.js +1 -0
- package/dist/client/_nuxt/data-schema-button.vue-htzfoue4.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-fl1lvvva.js +2 -0
- package/dist/client/_nuxt/default-geiuynj5.js +1 -0
- package/dist/client/_nuxt/{duration-display.vue-gu7el5x3.js → duration-display.vue-h9mqvgci.js} +1 -1
- package/dist/client/_nuxt/error-404-dv94kocq.js +1 -0
- package/dist/client/_nuxt/error-404.css-cyoi3t2n.css +1 -0
- package/dist/client/_nuxt/error-500-n7ptz9gg.js +1 -0
- package/dist/client/_nuxt/error-500.css-c3osv0mr.css +1 -0
- package/dist/client/_nuxt/{error-jndv6aqj.js → error-czl89kb6.js} +6 -6
- package/dist/client/_nuxt/{filepath-item.vue-ll9h44c8.js → filepath-item.vue-jftwevzm.js} +1 -1
- package/dist/client/_nuxt/full-oyph9txt.js +1 -0
- package/dist/client/_nuxt/help-fab.vue-m3loez22.js +1 -0
- package/dist/client/_nuxt/{hooks-ixsdqv69.js → hooks-lto1lr6d.js} +1 -1
- package/dist/client/_nuxt/imports-npa2r9da.js +1 -0
- package/dist/client/_nuxt/index-jc4yj4to.js +1 -0
- package/dist/client/_nuxt/index-locabwng.js +1 -0
- package/dist/client/_nuxt/launch-page.vue-cpibtiyv.js +1 -0
- package/dist/client/_nuxt/m6q5jxyf.js +17 -0
- package/dist/client/_nuxt/{modules-lx3nkhcb.js → modules-cf83k2dl.js} +1 -1
- package/dist/client/_nuxt/nbadge-ngr8fyeh.js +1 -0
- package/dist/client/_nuxt/ncheckbox.vue-1pzqvzrt.js +1 -0
- package/dist/client/_nuxt/{ncode-block.vue-msaaoy71.js → ncode-block.vue-bir2wz4z.js} +2 -2
- package/dist/client/_nuxt/ndrawer.vue-l1gwm2vb.js +1 -0
- package/dist/client/_nuxt/ndropdown.vue-g7muyou7.js +1 -0
- package/dist/client/_nuxt/nicon-title.vue-dsf9ygne.js +1 -0
- package/dist/client/_nuxt/nlink.vue-bz4gqft1.js +1 -0
- package/dist/client/_nuxt/nmarkdown.vue-iw2voruc.js +1 -0
- package/dist/client/_nuxt/nnavbar.vue-lx7u1v1n.js +1 -0
- package/dist/client/_nuxt/none-ih7k4flj.js +1 -0
- package/dist/client/_nuxt/nsection-block-n909in7j.js +1 -0
- package/dist/client/_nuxt/nselect-tabs.vue-fqyl6q6m.js +1 -0
- package/dist/client/_nuxt/nselect.vue-beh7ue6r.js +1 -0
- package/dist/client/_nuxt/{nswitch.vue-l8xqfho0.js → nswitch.vue-jbyu7ls8.js} +1 -1
- package/dist/client/_nuxt/{open-graph-d7sxt89b.js → open-graph-cvlp53mg.js} +2 -2
- package/dist/client/_nuxt/overview-b8560st0.js +1 -0
- package/dist/client/_nuxt/pages-l28dpc28.js +1 -0
- package/dist/client/_nuxt/payload-c5ee4ltu.js +1 -0
- package/dist/client/_nuxt/pinia-hqa6fyey.js +1 -0
- package/dist/client/_nuxt/{plugins-jf10b6hs.js → plugins-g305m48w.js} +1 -1
- package/dist/client/_nuxt/render-tree-fwnqhw5k.js +1 -0
- package/dist/client/_nuxt/runtime-configs-irfbuiww.js +1 -0
- package/dist/client/_nuxt/server-discovery-gpa5383a.js +1 -0
- package/dist/client/_nuxt/{server-route-inputs.vue-jnx1cv8r.js → server-route-inputs.vue-fudrxwrv.js} +1 -1
- package/dist/client/_nuxt/{server-routes-hnfxgz05.js → server-routes-i6df08vv.js} +3 -3
- package/dist/client/_nuxt/{server-tasks-h172w86r.js → server-tasks-d4xp6g69.js} +1 -1
- package/dist/client/_nuxt/{settings-cu1sweow.js → settings-bplq7bsb.js} +1 -1
- package/dist/client/_nuxt/stacktrace-list.vue-insachyo.js +1 -0
- package/dist/client/_nuxt/{state-components-fdqi5qrf.js → state-components-74bob3n8.js} +1 -1
- package/dist/client/_nuxt/state-editor.vue-jjwoeqcv.js +1 -0
- package/dist/client/_nuxt/state-modules-e61lgtaz.js +1 -0
- package/dist/client/_nuxt/storage-hcqe1em7.js +1 -0
- package/dist/client/_nuxt/terminals-pfh0mieu.js +1 -0
- package/dist/client/_nuxt/{timeline-heq9ren3.js → timeline-i1g8r53a.js} +2 -2
- package/dist/client/_nuxt/{unocss-runtime-fzjefjlm.js → unocss-runtime-l2otbg6e.js} +1 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-llkaejaf.js +3819 -0
- package/dist/client/_nuxt/vendor/{quicktype-core-i8ym98gu.js → quicktype-core-o2aektoq.js} +83 -83
- package/dist/client/_nuxt/vendor/{shiki-ej2em068.js → shiki-kdj4mcqm.js} +30 -38
- package/dist/client/_nuxt/vendor/unocss-mvzv9iuf.js +2 -0
- package/dist/client/_nuxt/vendor/vis-fth2qiu5.js +98 -0
- package/dist/client/_nuxt/vendor/{xterm-b1jefe3j.js → xterm-dbpzgj7s.js} +7 -7
- package/dist/client/_nuxt/virtual-files-os2zxe1v.js +1 -0
- package/dist/client/_nuxt/vue-devtools-fc087omm.js +2 -0
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-guzt9iin.js → vue-virtual-scroller.esm-gnguvd0a.js} +2 -2
- package/dist/client/index.html +22 -22
- package/dist/module.d.mts +1 -2
- package/dist/module.d.ts +1 -2
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/view/Main.vue +21 -4
- package/dist/runtime/plugins/view/client.js +28 -39
- package/dist/shared/{devtools.2e078e30.d.mts → devtools.427ec2e8.d.mts} +0 -9
- package/dist/shared/{devtools.2e078e30.d.ts → devtools.427ec2e8.d.ts} +0 -9
- package/dist/types.d.mts +1 -2
- package/dist/types.d.ts +1 -2
- package/package.json +17 -17
- package/dist/chunks/vue-inspector.mjs +0 -15
- package/dist/client/_nuxt/__blank-ld6vcstp.js +0 -1
- package/dist/client/_nuxt/assets-rwimhsfq.js +0 -16
- package/dist/client/_nuxt/builds/meta/bb0232af-3ede-4a7a-91e4-f1381bfe6a29.json +0 -1
- package/dist/client/_nuxt/code-diff.vue-nu85g53p.js +0 -8
- package/dist/client/_nuxt/code-snippets.vue-mtca7vbo.js +0 -1
- package/dist/client/_nuxt/components-hfwd2f13.js +0 -1
- package/dist/client/_nuxt/composable-item.vue-jp23lpaj.js +0 -1
- package/dist/client/_nuxt/custom-_name_-b6hz78a5.js +0 -1
- package/dist/client/_nuxt/data-schema-button.vue-lz9owmcc.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-by6y5f74.js +0 -2
- package/dist/client/_nuxt/default-crdabeod.js +0 -1
- package/dist/client/_nuxt/error-404-b74x3dw8.js +0 -1
- package/dist/client/_nuxt/error-404.css-c4cbwrmc.css +0 -1
- package/dist/client/_nuxt/error-500-lxgu6zam.js +0 -1
- package/dist/client/_nuxt/error-500.css-k70rrah0.css +0 -1
- package/dist/client/_nuxt/full-fw08y527.js +0 -1
- package/dist/client/_nuxt/help-fab.vue-hyf2xt5v.js +0 -1
- package/dist/client/_nuxt/imports-kt3v5qcg.js +0 -1
- package/dist/client/_nuxt/index-bdk3y7i2.js +0 -1
- package/dist/client/_nuxt/index-obsucz0g.js +0 -1
- package/dist/client/_nuxt/launch-page.vue-hnfa4f5k.js +0 -1
- package/dist/client/_nuxt/mdin2k9x.js +0 -17
- package/dist/client/_nuxt/nbadge-jscmxa0e.js +0 -1
- package/dist/client/_nuxt/ncheckbox.vue-oxgpzkb5.js +0 -1
- package/dist/client/_nuxt/ndrawer.vue-ggbjuic7.js +0 -1
- package/dist/client/_nuxt/ndropdown.vue-by1qbsg0.js +0 -1
- package/dist/client/_nuxt/nicon-title.vue-j1ceohu1.js +0 -1
- package/dist/client/_nuxt/nlink.vue-idpwaqq8.js +0 -1
- package/dist/client/_nuxt/nmarkdown.vue-oxfi26vk.js +0 -1
- package/dist/client/_nuxt/nnavbar.vue-ccrl0i3s.js +0 -1
- package/dist/client/_nuxt/none-o0keg2jc.js +0 -1
- package/dist/client/_nuxt/nsection-block-omdmf6ve.js +0 -1
- package/dist/client/_nuxt/nselect-tabs.vue-irobeaxl.js +0 -1
- package/dist/client/_nuxt/nselect.vue-dfin0ans.js +0 -1
- package/dist/client/_nuxt/overview-cbwwn16u.js +0 -1
- package/dist/client/_nuxt/pages-m77chk1v.js +0 -1
- package/dist/client/_nuxt/payload-d3lzja2v.js +0 -1
- package/dist/client/_nuxt/pinia-celahsku.js +0 -1
- package/dist/client/_nuxt/render-tree-eizdzodc.js +0 -1
- package/dist/client/_nuxt/runtime-configs-labvfb4w.js +0 -1
- package/dist/client/_nuxt/server-discovery-b9kztzlw.js +0 -1
- package/dist/client/_nuxt/stacktrace-list.vue-l5a36a3u.js +0 -1
- package/dist/client/_nuxt/state-editor.vue-gnkemono.js +0 -1
- package/dist/client/_nuxt/state-modules-j0orvr18.js +0 -1
- package/dist/client/_nuxt/storage-nruvnn8w.js +0 -1
- package/dist/client/_nuxt/terminals-c8p45vpu.js +0 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-npezbdce.js +0 -3818
- package/dist/client/_nuxt/vendor/unocss-jzxuon8q.js +0 -2
- package/dist/client/_nuxt/vendor/vis-fzckz0r6.js +0 -98
- package/dist/client/_nuxt/virtual-files-gxfhrd65.js +0 -1
- package/dist/client/_nuxt/vue-devtools-j81qx9qy.js +0 -2
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{_ as G}from"./ncode-block.vue-msaaoy71.js";import{bl as H}from"./mdin2k9x.js";import{p as Q,q as X,f as Y,z as j,U as W,P as S}from"./vendor/json-editor-vue-npezbdce.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 P(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 U(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)&&Z(r,u,t,o),r=o,t=null,u=null)}),(t||u)&&Z(r,u,t,null),n};function Z(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=P(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=P(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=U(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=U(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
|
-
`));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
|
-
`))&&(n=n.trim()),(!r.newlineIsToken||!e.includes(`
|
|
4
|
-
`))&&(e=e.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(n.endsWith(`
|
|
5
|
-
`)&&(n=n.slice(0,-1)),e.endsWith(`
|
|
6
|
-
`)&&(e=e.slice(0,-1))),g.prototype.equals.call(this,n,e,r)};function ne(n,e,r){return k.diff(n,e,r)}var re=new g;re.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var oe=new g;oe.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function R(n){"@babel/helpers - typeof";return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(n)}var D=new g;D.useLongestToken=!0;D.tokenize=k.tokenize;D.castInput=function(n,e){var r=e.undefinedReplacement,t=e.stringifyReplacer,u=t===void 0?function(o,i){return typeof i>"u"?r:i}:t;return typeof n=="string"?n:JSON.stringify(A(n,null,null,u),u," ")};D.equals=function(n,e,r){return g.prototype.equals.call(D,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"),r)};function A(n,e,r,t,u){e=e||[],r=r||[],t&&(n=t(u,n));var o;for(o=0;o<e.length;o+=1)if(e[o]===n)return r[o];var i;if(Object.prototype.toString.call(n)==="[object Array]"){for(e.push(n),i=new Array(n.length),r.push(i),o=0;o<n.length;o+=1)i[o]=A(n[o],e,r,t,u);return e.pop(),r.pop(),i}if(n&&n.toJSON&&(n=n.toJSON()),R(n)==="object"&&n!==null){e.push(n),i={},r.push(i);var f=[],l;for(l in n)Object.prototype.hasOwnProperty.call(n,l)&&f.push(l);for(f.sort(),o=0;o<f.length;o+=1)l=f[o],i[l]=A(n[l],e,r,t,l);e.pop(),r.pop()}else i=n;return i}var J=new g;J.tokenize=function(n){return n.slice()};J.join=J.removeEmpty=function(n){return n};const le=Q({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function r(f,l){const s=ne(f.trim(),l.trim()),a=[],c=[],p=[];for(const d of s){const m=d.value.trimEnd().split(`
|
|
7
|
-
`);for(const h of m)d.added?(a.push(p.length),p.push(h)):(d.removed&&c.push(p.length),p.push(h))}return{added:a,removed:c,result:p.join(`
|
|
8
|
-
`)}}const t=X(()=>r(e.from,e.to));function u(f){let l=0;return f.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,s=>(l++,t.value.added.includes(l-1)?'class="line line-added"':t.value.removed.includes(l-1)?'class="line line-removed"':s))}const o=Y();j(i);function i(){const f=H(o);f&&f.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(f,l)=>{const s=G;return W(),S(s,{ref_key:"elRef",ref:o,code:t.value.result,lang:f.lang,"transform-rendered":u,onLoaded:i},null,8,["code","lang"])}}});export{le as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as g}from"./ncode-block.vue-msaaoy71.js";import{a as C,_ as x}from"./mdin2k9x.js";import{p as S,m as w,q as B,w as N,U as a,W as n,X as s,F as d,ae as V,a0 as i,a8 as $,a3 as u,a2 as m,a9 as v,u as T,P as h,Z as r}from"./vendor/json-editor-vue-npezbdce.js";const D={key:0,relative:"","n-code-block":""},E={flex:"~ wrap","w-full":""},F=["onClick"],L={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},U=S({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(f){const l=f,e=w(l.codeSnippets[0]),_=C(),b=B(()=>e.value?.lang||"text");return N(()=>{l.codeSnippets.includes(e.value)||(e.value=l.codeSnippets[0])}),(p,o)=>{const k=g,c=x;return p.codeSnippets.length?(a(),n("div",D,[s("div",E,[(a(!0),n(d,null,V(p.codeSnippets,(t,y)=>(a(),n("button",{key:y,px4:"",py2:"",border:"r base",hover:"bg-active",class:i(t===e.value?"":"border-b"),onClick:q=>e.value=t},[s("div",{class:i(t===e.value?"":"op30"),"font-mono":""},$(t.name),3)],10,F))),128)),o[1]||(o[1]=s("div",{border:"b base","flex-auto":""},null,-1))]),e.value?(a(),n(d,{key:0},[u(k,{code:e.value.code,lang:b.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),s("div",L,[u(c,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>T(_)(e.value.code,p.eventType||`code-snippet-${e.value.name}`))},{default:m(()=>o[2]||(o[2]=[v(" Copy ")])),_:1}),e.value?.docs?(a(),h(c,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:m(()=>o[3]||(o[3]=[v(" Docs ")])),_:1},8,["to"])):r("",!0)])],64)):r("",!0)])):r("",!0)}}});export{U as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ie,_ as O,Q as pe,R as re,J as ue,S as de,g as Y,T as me,U as ce,V as fe,N as ve,W as _e,X as he,H as be,f as ge}from"./mdin2k9x.js";import{U as o,W as d,X as n,p as I,q as P,a9 as q,a8 as E,a3 as u,u as $,P as y,Z as w,F as T,ae as M,Y as H,f as U,m as ye,z as we,j as xe,a2 as f,A as z,V as ke,a0 as Ce,a4 as W,ag as $e,ad as Ne,aa as Q}from"./vendor/json-editor-vue-npezbdce.js";import{_ as Ve}from"./help-fab.vue-hyf2xt5v.js";import{_ as Pe}from"./ncheckbox.vue-oxgpzkb5.js";import{_ as Z}from"./nnavbar.vue-ccrl0i3s.js";import{p as K}from"./index-obsucz0g.js";import{_ as ee}from"./nbadge-jscmxa0e.js";import{_ as ne}from"./filepath-item.vue-ll9h44c8.js";import{_ as Se}from"./ndrawer.vue-ggbjuic7.js";import{N as De}from"./vendor/vis-fzckz0r6.js";import{_ as Te}from"./nselect-tabs.vue-irobeaxl.js";import{_ as Be}from"./nsection-block-omdmf6ve.js";import{_ as Le}from"./nicon-title.vue-j1ceohu1.js";import{D as j}from"./constants-b32h69zq.js";import{u as Me,a as Ue}from"./state-components-fdqi5qrf.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";const Ie={class:"markdown-body"},Fe={__name:"components",setup(V,{expose:s}){return s({frontmatter:{}}),(i,c)=>(o(),d("div",Ie,c[0]||(c[0]=[n("h1",null,"Components",-1),n("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.",-1),n("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},Ge={"text-sm":"","font-mono":""},oe=I({__name:"ComponentName",props:{component:{}},setup(V){const s=V,v=P(()=>s.component.pascalName||K(s.component.name||s.component.__name||s.component.kebabName||""));return(i,c)=>(o(),d("code",Ge,[c[0]||(c[0]=n("span",{mr1:"",op20:""},"<",-1)),q(E(v.value),1),c[1]||(c[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),Re={flex:"~ col gap1","items-start":"","of-hidden":""},ze={flex:"~ gap2",px3:""},Ae={px3:"",pb2:""},We={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Ee={"text-sm":""},He={"text-primary":""},Xe={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},je={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},qe={"text-sm":""},Oe={"text-primary":""},Je={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},te=I({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(V){const s=V,v=P(()=>s.component.pascalName||K(s.component.name||s.component.__name||s.component.kebabName||"")),i=P(()=>s.component.filePath||s.component.file||s.component.__file||""),c=ie();return(l,a)=>{const h=oe,r=O,b=ee,x=ne;return o(),d("div",Re,[n("div",ze,[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]=m=>$(c)(`<${v.value}></${v.value}>`,"component-name"))}),l.component.global?(o(),y(b,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0)]),n("div",Ae,[i.value?(o(),y(x,{key:0,filepath:i.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)]),l.dependents?(o(),d("div",We,[n("div",Ee,[n("strong",He,E(l.dependents.length),1),a[1]||(a[1]=n("span",{op50:""}," references",-1))]),l.dependents.length?(o(),d("div",Xe,[(o(!0),d(T,null,M(l.dependents,m=>(o(),y(x,{key:m,filepath:m},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),l.dependencies?(o(),d("div",je,[n("div",qe,[n("strong",Oe,E(l.dependencies.length),1),a[2]||(a[2]=n("span",{op50:""}," dependencies",-1))]),l.dependencies.length?(o(),d("div",Je,[(o(!0),d(T,null,M(l.dependencies,m=>(o(),y(x,{key:m,filepath:m},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),H(l.$slots,"default")])}}}),Qe={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},Ye={relative:"","h-full":"","w-full":""},Ze={key:0,py4:"",pt4:"",flex:"~ col"},Ke={border:"t base",p4:""},en=I({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(V){const s=V,v=U(),i=U(),c=pe(),l=ye(),a=re(),h=ue(),r=de(),{componentsGraphShowNodeModules:b,componentsGraphShowGlobalComponents:x,componentsGraphShowPages:m,componentsGraphShowLayouts:N,componentsGraphShowWorkspace:_}=Y("ui"),k=U(),p=U(""),F=me(p,300),G=P(()=>{const S=s.relationships||[];if(k.value){let e=function(C){!C||t.has(C)||(t.add(C),C.deps.forEach(B=>{e(S.find(L=>L.id===B))}))};const t=new Set;return e(k.value),Array.from(t)}return S}),A=P(()=>{const S=G.value.map(t=>{const C=s.components.find(R=>R.filePath===t.id),B=a.value?.find(R=>R.file===t.id),L=r.value?.find(R=>R.file===t.id),X=t.id.replace(/\?.*$/,"").replace(/#.*$/,""),D=t.id.includes("/node_modules/")?"lib":C?C.global?"global":"user":L?"layout":B?"page":"unknown";if(!b.value&&D==="lib"||!m.value&&D==="page"||!N.value&&D==="layout"||!_.value&&D==="user"&&h.value&&!t.id.startsWith(h.value.rootDir)||!x.value&&D==="global")return null;const g=D==="layout"?"hexagon":D==="page"?"square":"dot",J=F.value&&!t.id.toLowerCase().includes(F.value.toLowerCase());return{id:t.id,label:X.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:D,shape:g,size:15+Math.min(t.deps.length/2,8),font:{color:J?"#8885":c.value==="dark"?"white":"black"},color:J?"#8885":k.value?.id===t.id?"#82c742":void 0,extra:{id:t.id,component:C,page:B,layout:L,relationship:t}}}).filter(t=>!!t),e=G.value.flatMap(t=>t.deps.map(C=>({from:t.id,to:C,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:S,edges:e}}),se=P(()=>l.value?.component?s.relationships?.find(e=>e.id===l.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),le=P(()=>l.value?.component?s.relationships?.filter(e=>e.deps.includes(l.value.component.filePath))?.map(e=>s.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);we(()=>{const S={nodes:{shape:"dot",size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:"#42b883"},unknown:{color:"#b86542"},lib:{color:"#b4b842"},page:{color:"#42b2b8"},layout:{color:"#4256b8"}}},e=new De(v.value,A.value,S);e.on("click",t=>{const C=t.nodes?.[0],B=A.value.nodes?.find(L=>L.id===C)?.extra;B&&(l.value=B)}),xe(A,()=>{e.setData(A.value)})});function ae(){k.value=l.value?.relationship,l.value=void 0}return(S,e)=>{const t=Pe,C=Z,B=ce,L=te,X=O,D=Se;return o(),d(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(()=>[n("div",Qe,[u(t,{modelValue:$(m),"onUpdate:modelValue":e[0]||(e[0]=g=>z(m)?m.value=g:null),n:"primary sm"},{default:f(()=>e[9]||(e[9]=[n("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),u(t,{modelValue:$(N),"onUpdate:modelValue":e[1]||(e[1]=g=>z(N)?N.value=g:null),n:"primary sm"},{default:f(()=>e[10]||(e[10]=[n("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),u(t,{modelValue:$(_),"onUpdate:modelValue":e[2]||(e[2]=g=>z(_)?_.value=g:null),n:"primary sm"},{default:f(()=>e[11]||(e[11]=[n("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),u(t,{modelValue:$(b),"onUpdate:modelValue":e[3]||(e[3]=g=>z(b)?b.value=g:null),n:"primary sm"},{default:f(()=>e[12]||(e[12]=[n("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),u(t,{modelValue:$(x),"onUpdate:modelValue":e[4]||(e[4]=g=>z(x)?x.value=g:null),n:"primary sm"},{default:f(()=>e[13]||(e[13]=[n("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),k.value?(o(),d("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[14]||(e[14]=[q(" Clear filter "),n("div",{"i-carbon-close":""},null,-1)]))):w("",!0),e[15]||(e[15]=n("div",{"flex-auto":""},null,-1)),H(S.$slots,"default")]),_:3},8,["search"]),n("div",Ye,[n("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[16]||(e[16]=[n("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),n("div",{op50:""}," Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),n("div",{op50:""}," Global Component "),n("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),n("div",{op50:""}," Page "),n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[n("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),n("div",{op50:""}," Layout "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),n("div",{op50:""}," Library Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),n("div",{op50:""}," Unknown ")],-1)])),_:1}),u(D,{"model-value":!!(l.value&&l.value.component),top:i.value,border:"t l base","w-80":"",onClose:e[8]||(e[8]=g=>l.value=void 0)},{default:f(()=>[l.value&&l.value.component?(o(),d("div",Ze,[u(L,{component:l.value.component,dependencies:se.value,dependents:le.value},null,8,["component","dependencies","dependents"]),n("div",Ke,[u(X,{n:"primary solid",onClick:e[7]||(e[7]=g=>ae())},{default:f(()=>e[17]||(e[17]=[q(" Filter to this component ")])),_:1})])])):w("",!0)]),_:1},8,["model-value","top"])])],64)}}}),nn={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},on={key:0,"ml--1":"","text-primary":""},tn=I({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(V){const s=V,v=P(()=>s.component.filePath||s.component.file||s.component.__file||"");return(i,c)=>{const l=oe,a=te,h=ke("VDropdown"),r=ee,b=ne;return o(),d("div",nn,[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(()=>[n("button",{"hover:text-primary":"",class:Ce(i.dependents&&i.dependents.length===0?"op50":"")},[u(l,{component:i.component},null,8,["component"])],2)]),_:1}),i.dependents?.length?(o(),d("sup",on," x"+E(i.dependents?.length),1)):w("",!0),i.component.global?(o(),y(r,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0),H(i.$slots,"default"),v.value?(o(),y(b,{key:2,filepath:v.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)])}}}),sn={flex:"~ gap-2 items-center"},ln={pl4:""},an=I({__name:"ComponentsList",props:{components:{},relationships:{}},setup(V){const s=V,v=U(""),i=U("all"),c=P(()=>{const h=s.components.map(r=>fe(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=P(()=>new ve(c.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),a=P(()=>{const h=[],r=new Map,b=[],x=[],m={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&&_e(k.filePath)){const p=he(k.filePath);if(!p)return;p==="nuxt"?(b.push(_),m.builtin++):(r.has(p)||r.set(p,[]),r.get(p).push(_),m.lib++)}else k.global&&!k.filePath?(x.push(_),m.runtime++):(h.push(_),m.user++)}),{count:m,user:h,builtin:b,lib:r,runtime:x}});return(h,r)=>{const b=be,x=Te,m=Z,N=tn,_=Be,k=Le;return o(),d(T,null,[u(m,{search:v.value,"onUpdate:search":r[1]||(r[1]=p=>v.value=p),pb3:""},{actions:f(()=>[H(h.$slots,"default")]),default:f(()=>[n("div",sn,[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?(o(),y(_,{key:0,icon:"carbon-nominal",text:"User components",open:a.value.user.length<=$(j),description:`Total components: ${a.value.count.user}`},{default:f(()=>[(o(!0),d(T,null,M(a.value.user,p=>(o(),y(N,W({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):w("",!0),a.value.runtime.length?(o(),y(_,{key:1,icon:"carbon-load-balancer-global",open:a.value.runtime.length<=$(j),text:"Runtime components",description:`Total components: ${a.value.count.runtime}`},{default:f(()=>[(o(!0),d(T,null,M(a.value.runtime,p=>(o(),y(N,W({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):w("",!0),a.value.builtin.length?(o(),y(_,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${a.value.count.builtin}`},{default:f(()=>[(o(!0),d(T,null,M(a.value.builtin,p=>(o(),y(N,W({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["description"])):w("",!0),a.value.lib.size?(o(),y(_,{key:3,open:a.value.count.lib<=$(j),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${a.value.count.lib} components from ${a.value.lib.size} packages`},{default:f(()=>[(o(!0),d(T,null,M(a.value.lib.entries(),([p,F])=>(o(),d("div",{key:p,"ml-2":""},[u(k,{text:`${p} (${F.length})`,py1:"",op50:""},null,8,["text"]),n("div",ln,[(o(!0),d(T,null,M(F,G=>(o(),y(N,W({key:G.component.filePath,ref_for:!0},G),null,16))),128))])]))),128))]),_:1},8,["open","description"])):w("",!0)],64)}}}),pn={relative:"","h-full":"","of-auto":""},rn={"flex-none":"",flex:"~ gap3"},Vn=I({__name:"components",setup(V){const s=ge(),v=Me(),i=Ue(),{componentsView:c}=Y("ui");function l(){s.value?.inspector?.instance&&s.value.inspector.enable()}function a(){c.value=c.value==="list"?"graph":"list"}return(h,r)=>{const b=O,x=Fe,m=Ve,N=$e("tooltip");return o(),d(T,null,[n("div",pn,[(o(),y(Ne($(c)==="list"?an:en),{components:$(v),relationships:$(i)},{default:f(()=>[n("div",rn,[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?.instance?Q((o(),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(m,null,{default:f(()=>[u(x)]),_:1})],64)}}});export{Vn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as U,K as $,H as E,_ as F}from"./mdin2k9x.js";import{_ as j}from"./nmarkdown.vue-oxfi26vk.js";import{_ as S}from"./filepath-item.vue-ll9h44c8.js";import{k as W}from"./index-obsucz0g.js";import{C as y}from"./constants-b32h69zq.js";import{p as q,q as r,V as z,U as s,P as i,a2 as m,X as a,Z as p,a3 as b,u as k,a9 as c,W as l,F as x,a8 as _,ae as H,a0 as K}from"./vendor/json-editor-vue-npezbdce.js";const L={rounded:"","font-mono":""},M={key:0,"text-primary":""},O={key:0},P={title:"Vue Directive"},T={"max-w-100":""},X={px4:"",py3:"","text-sm":""},Z={flex:"~ gap2",n:"primary xs"},A={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},G={"text-sm":""},J={"text-primary":""},Q={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},R={key:1,"text-sm":"",op50:""},ne=q({__name:"ComposableItem",props:{item:{},isDirective:{type:Boolean,default:!1},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(g){const o=g,C=U(),h=$(),u=r(()=>o.item.as||o.item.name),D=r(()=>{let e=u.value;return o.isDirective&&(e[0]!=="v"&&(e=`v${e}`),e=W(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 V=E,w=j,f=F,B=S,I=z("VDropdown");return s(),i(I,{disabled:!o.metadata},{popper:m(()=>[a("div",T,[a("div",X,[e.item.meta?.description?(s(),i(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:e.item.meta.description},null,8,["markdown"])):p("",!0),a("div",Z,[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})):p("",!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"])):p("",!0)])]),a("div",A,[n.value?(s(),l(x,{key:0},[a("div",G,[t[5]||(t[5]=a("span",{op50:""},"It has been referenced ",-1)),a("strong",J,_(n.value),1),t[6]||(t[6]=a("span",{op50:""}," times by:",-1))]),a("div",Q,[(s(!0),l(x,null,H(N.value,d=>(s(),i(B,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),l("div",R," Not in use via auto import. "))])])]),default:m(()=>[a("button",{"hover:text-primary":"",class:K([e.metadata&&!n.value?"op30 hover:op100":"",e.classes])},[a("code",L,[c(_(u.value)+" ",1),n.value&&e.counter?(s(),l("sup",M,"x"+_(n.value),1)):p("",!0)]),e.isDirective?(s(),l("sup",O,[a("abbr",P,[b(V,{icon:"tabler:hexagon-letter-d"})])])):p("",!0)],2)]),_:1},8,["disabled"])}}});export{ne as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Q as M,Y as N,Z as j,$ as B,p as E,a0 as I,a1 as k,a2 as P,h as V,r as W,U as D,a3 as L}from"./mdin2k9x.js";import{p as $,f as C,q as x,r as U,z as q,n as O,w as b,I as R,W as S,U as n,P as u,a2 as y,u as A,ad as F,X as r,a9 as w,a8 as T,a3 as X}from"./vendor/json-editor-vue-npezbdce.js";import{_ as z}from"./launch-page.vue-hnfa4f5k.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";import"./nmarkdown.vue-oxfi26vk.js";import"./client-edufhzwa.js";const h=new Map,G=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=M(),d=C(),s=x(()=>m.tab.name),e=C(),t=U(N(d));q(()=>{const o=m.tab.view,l=o.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(s.value)&&l)e.value=h.get(s.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",_.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&h.set(s.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),i(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),O(p)}setTimeout(i,100)}),b(p),b(i),b(v),R(()=>{e.value&&(e.value.style.visibility="hidden")});function i(){if(!(!e.value||!e.value.contentWindow))try{const o=e.value.contentWindow.document.querySelector("html");o?.classList.toggle("dark",c.value==="dark"),o?.classList.toggle("light",c.value==="dark"),new MutationObserver(()=>{c.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(o,{attributes:!0,attributeFilter:["class"]})}catch{}}const a=j();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function p(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(o,l)=>(n(),S("div",{ref_key:"anchor",ref:d,"h-full":"","w-full":""},null,512))}}),Q={flex:"~ col gap2",mxa:"","items-center":""},Y={"text-xl":""},Z={"text-rose":""},ne=$({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=B(),d=E(),s=x(()=>m.name??c.params.name),e=I(),t=x(()=>e.value.find(i=>i.name===s.value));return q(()=>{t.value?t.value.requireAuth&&!k.value&&P():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(i,a)=>{const v=V,p=L,o=G,l=z,_=D;return t.value?t.value.requireAuth&&!A(k)?(n(),u(p,{key:1})):t.value.view.type==="iframe"?(n(),u(o,{key:2,tab:t.value},null,8,["tab"])):t.value.view.type==="vnode"?(n(),u(F(t.value.view.vnode),{key:3})):t.value.view.type==="launch"?(n(),u(l,{key:4,name:`custom-${t.value.name}`,icon:t.value.view.icon||t.value.icon,title:t.value.view.title||t.value.title,description:t.value.view.description,actions:t.value.view.actions,onAction:a[0]||(a[0]=g=>A(W).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[X(_,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+T(t.value.view),1)]),_:1})]),_:1})):(n(),u(v,{key:0},{default:y(()=>[r("div",Q,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",Y,[a[1]||(a[1]=w(" Tab ")),r("code",Z,T(s.value),1),a[2]||(a[2]=w(" not found "))]),a[4]||(a[4]=r("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1)),a[5]||(a[5]=r("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]),_:1}))}}});export{ne as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as r,_ as s}from"./mdin2k9x.js";import{p as c,ag as i,aa as p,U as _,P as m}from"./vendor/json-editor-vue-npezbdce.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 +0,0 @@
|
|
|
1
|
-
import{_ as W}from"./nselect.vue-dfin0ans.js";import{u as A,c as E,a as F,_ as q}from"./mdin2k9x.js";import{_ as z}from"./nswitch.vue-l8xqfho0.js";import{_ as J}from"./ndropdown.vue-by1qbsg0.js";import{_ as O}from"./ncode-block.vue-msaaoy71.js";import{_ as P}from"./ndrawer.vue-ggbjuic7.js";import{A as h,d as x}from"./vendor/quicktype-core-i8ym98gu.js";import{p as X,f as k,q as N,j as C,U as n,P as c,a3 as m,a2 as r,X as i,W as d,F as D,ae as j,u as f,a8 as b,Z as _,ac as Z}from"./vendor/json-editor-vue-npezbdce.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";import"./client-edufhzwa.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=X({__name:"DataSchemaDrawer",setup(Q){const s=A(),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=E(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
|
-
`)}),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 $=F();function B(){$(y.value||"")}return(e,t)=>{const w=W,u=q,p=z,L=J,I=O,T=P;return v.value?(n(),c(Z,{key:0,to:"body"},[m(T,{"model-value":!!f(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)),m(w,{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value=a),n:"xs primary"},{default:r(()=>[(n(!0),d(D,null,j(f(h.all),a=>(n(),d("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})=>[m(u,{icon:"carbon-settings","h-full":"",onClick:g=>a()},null,8,["onClick"]),o.value?(n(),d("span",H,b(o.value.length),1)):_("",!0)]),default:r(()=>[i("div",K,[(n(!0),d(D,null,j(o.value,(a,g)=>(n(),c(p,{key:a.name,modelValue:o.value[g].defaultValue,"onUpdate:modelValue":U=>o.value[g].defaultValue=U,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:r(()=>[i("span",M,b(a.description),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):_("",!0),t[4]||(t[4]=i("div",{"flex-auto":""},null,-1)),m(u,{icon:"carbon-copy","mr-6":"","h-full":"",onClick:t[1]||(t[1]=a=>B())})]),f(y)?(n(),c(I,{key:0,lang:S.value,code:f(y)},null,8,["lang","code"])):_("",!0)]),_:1},8,["model-value"])])):_("",!0)}}});export{ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as o}from"./mdin2k9x.js";import{U as t,W as s,X as r,Y as a}from"./vendor/json-editor-vue-npezbdce.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";const n={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,f){return t(),s("div",c,[r("div",l,[a(e.$slots,"default")])])}const u=o(n,[["render",d]]);export{u as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as a,d as i,e as u}from"./mdin2k9x.js";import{U as c,W as l,X as e,a8 as r,a3 as d,a2 as p,a9 as f}from"./vendor/json-editor-vue-npezbdce.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=u;return c(),l("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[d(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:p(()=>[f(r(t.backHome),1)]),_:1})])])])}}},N=a(y,[["__scopeId","data-v-d1262905"]]);export{N as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-d1262905]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-d1262905]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-d1262905]{background-color:#ffffff4d}.gradient-border[data-v-d1262905]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-d1262905]{background-color:#1414144d}.gradient-border[data-v-d1262905]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-d1262905]:before{background-size:400% auto;border-radius:.5rem;content:"";inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-d1262905]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-d1262905]{position:fixed}.left-0[data-v-d1262905]{left:0}.right-0[data-v-d1262905]{right:0}.z-10[data-v-d1262905]{z-index:10}.z-20[data-v-d1262905]{z-index:20}.grid[data-v-d1262905]{display:grid}.mb-16[data-v-d1262905]{margin-bottom:4rem}.mb-8[data-v-d1262905]{margin-bottom:2rem}.max-w-520px[data-v-d1262905]{max-width:520px}.min-h-screen[data-v-d1262905]{min-height:100vh}.w-full[data-v-d1262905]{width:100%}.flex[data-v-d1262905]{display:flex}.cursor-pointer[data-v-d1262905]{cursor:pointer}.place-content-center[data-v-d1262905]{place-content:center}.items-center[data-v-d1262905]{align-items:center}.justify-center[data-v-d1262905]{justify-content:center}.overflow-hidden[data-v-d1262905]{overflow:hidden}.bg-white[data-v-d1262905]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-d1262905]{padding-left:1rem;padding-right:1rem}.px-8[data-v-d1262905]{padding-left:2rem;padding-right:2rem}.py-2[data-v-d1262905]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-d1262905]{text-align:center}.text-8xl[data-v-d1262905]{font-size:6rem;line-height:1}.text-xl[data-v-d1262905]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-d1262905]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-d1262905]{font-weight:300}.font-medium[data-v-d1262905]{font-weight:500}.leading-tight[data-v-d1262905]{line-height:1.25}.font-sans[data-v-d1262905]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-d1262905]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-d1262905]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-d1262905]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-d1262905]{padding-left:0;padding-right:0}.sm\:px-6[data-v-d1262905]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-d1262905]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-d1262905]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-d1262905]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as s,d as i}from"./mdin2k9x.js";import{U as a,W as u,X as e,a8 as o}from"./vendor/json-editor-vue-npezbdce.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return i({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(a(),u("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},y=s(f,[["__scopeId","data-v-d2b962c0"]]);export{y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-d2b962c0]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-d2b962c0]{position:fixed}.-bottom-1\/2[data-v-d2b962c0]{bottom:-50%}.left-0[data-v-d2b962c0]{left:0}.right-0[data-v-d2b962c0]{right:0}.grid[data-v-d2b962c0]{display:grid}.mb-16[data-v-d2b962c0]{margin-bottom:4rem}.mb-8[data-v-d2b962c0]{margin-bottom:2rem}.h-1\/2[data-v-d2b962c0]{height:50%}.max-w-520px[data-v-d2b962c0]{max-width:520px}.min-h-screen[data-v-d2b962c0]{min-height:100vh}.place-content-center[data-v-d2b962c0]{place-content:center}.overflow-hidden[data-v-d2b962c0]{overflow:hidden}.bg-white[data-v-d2b962c0]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-d2b962c0]{padding-left:2rem;padding-right:2rem}.text-center[data-v-d2b962c0]{text-align:center}.text-8xl[data-v-d2b962c0]{font-size:6rem;line-height:1}.text-xl[data-v-d2b962c0]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-d2b962c0]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-d2b962c0]{font-weight:300}.font-medium[data-v-d2b962c0]{font-weight:500}.leading-tight[data-v-d2b962c0]{line-height:1.25}.font-sans[data-v-d2b962c0]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-d2b962c0]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-d2b962c0]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-d2b962c0]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-d2b962c0]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-d2b962c0]{font-size:2.25rem;line-height:2.5rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as t}from"./mdin2k9x.js";import{U as e,W as r,Y as s}from"./vendor/json-editor-vue-npezbdce.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";const c={},n={"h-full":"","of-auto":""};function a(o,f){return e(),r("div",n,[s(o.$slots,"default")])}const d=t(c,[["render",a]]);export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as f,_ as m}from"./mdin2k9x.js";import{p as v,f as c,u as g,W as o,X as r,a3 as s,a2 as u,M as i,F as k,Z as a,U as l,Y as _}from"./vendor/json-editor-vue-npezbdce.js";const x={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},y=v({__name:"HelpFab",setup(w){const t=c(!1),{showHelpButtons:p}=f("ui");return(d,e)=>{const b=m;return g(p)?(l(),o(k,{key:0},[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)])),s(i,{name:"fade-in"},{default:u(()=>[t.value?(l(),o("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:e[1]||(e[1]=n=>t.value=!1)})):a("",!0)]),_:1}),s(i,{name:"slide-in"},{default:u(()=>[t.value?(l(),o("div",x,[_(d.$slots,"default"),s(b,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=n=>t.value=!1)})])):a("",!0)]),_:3})],64)):a("",!0)}}});export{y as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a6 as T,X as U,a7 as A,J as P,N as j,W as X,H as W}from"./mdin2k9x.js";import{_ as q}from"./nselect-tabs.vue-irobeaxl.js";import{_ as J}from"./nnavbar.vue-ccrl0i3s.js";import{_ as z}from"./filepath-item.vue-ll9h44c8.js";import{_ as Y}from"./composable-item.vue-jp23lpaj.js";import{p as C,U as a,W as u,F as k,ae as M,a3 as c,X as i,P as w,u as f,Z as x,q as _,a8 as Z,f as B,a2 as $}from"./vendor/json-editor-vue-npezbdce.js";import{_ as G}from"./nsection-block-omdmf6ve.js";import{_ as K}from"./help-fab.vue-hyf2xt5v.js";import{D as V}from"./constants-b32h69zq.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";import"./nmarkdown.vue-oxfi26vk.js";import"./client-edufhzwa.js";import"./index-obsucz0g.js";import"./nicon-title.vue-j1ceohu1.js";const O={flex:"~ wrap gap2",p2:"",pl4:""},Q=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=z,e=Y;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",O,[(a(!0),u(k,null,M(m,g=>(a(),w(e,{key:g.as,item:g,metadata:r.metadata,"is-directive":g.meta?.vueDirective===!0,filepath:l.match(/^[\w@]/)?void 0:l},null,8,["item","metadata","is-directive","filepath"]))),128))])]))),128))])}}}),R={key:0,flex:"~ col gap-2 items-start"},ee=C({__name:"HelpImportsDirs",setup(D){const r=T();return(v,o)=>{const e=z;return f(r)?.dirs?(a(),u("div",R,[(a(!0),u(k,null,M(f(r).dirs,l=>(a(),w(e,{key:l,filepath:l,"text-primary":""},null,8,["filepath"]))),128))])):x("",!0)}}}),te={flex:"~ gap-2 wrap",mb6:""},oe=C({__name:"HelpImportsModules",setup(D){const r=T(),v=_(()=>[...new Set(r.value?.imports.map(o=>U(o.from)).filter(o=>!!o&&!A(o)))]);return(o,e)=>(a(),u("div",te,[(a(!0),u(k,null,M(v.value,l=>(a(),u("code",{key:l,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},Z(l),1))),128))]))}}),se={class:"markdown-body"},ae={__name:"imports",setup(D,{expose:r}){return r({frontmatter:{}}),(o,e)=>{const l=ee,m=oe;return a(),u("div",se,[e[0]||(e[0]=i("h1",null,"Auto imports",-1)),e[1]||(e[1]=i("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1)),e[2]||(e[2]=i("hr",null,null,-1)),e[3]||(e[3]=i("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),c(l),e[4]||(e[4]=i("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),c(m),e[5]||(e[5]=i("hr",null,null,-1)),e[6]||(e[6]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)),e[7]||(e[7]=i("h2",null,"Directives",-1)),e[8]||(e[8]=i("p",null,"Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1)),e[9]||(e[9]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/directory-structure/directives",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},le={key:0,relative:"","h-full":"","of-auto":""},re={key:0,flex:"~ gap-2 items-center lt-sm:col lt-sm:items-start"},$e=C({__name:"imports",setup(D){const r=P(),v=B("all"),o=B("all"),e=B(""),l=T(),m=_(()=>l.value?.metadata),g=_(()=>l.value?.imports.filter(d=>d.as||d.name).sort((d,n)=>(d.as||d.name).localeCompare(n.as||n.name))||[]),F=_(()=>new j(g.value,{keys:["from","as","name"]})),s=_(()=>{const d=new Map,n=new Map,I=new Map;let p=e.value?F.value.search(e.value).map(t=>t.item):g.value;const N=o.value;N==="composables"?p=p.filter(t=>t.meta?.vueDirective!==!0):N==="directives"&&(p=p.filter(t=>t.meta?.vueDirective===!0)),v.value==="using"&&m.value?p=p.filter(t=>(t.as||t.name)in m.value.injectionUsage):v.value==="not-used"&&m.value&&(p=p.filter(t=>!((t.as||t.name)in m.value.injectionUsage)));const h={user:0,lib:0,builtin:0};return p.forEach(t=>{const b=X(t.from)?A(U(t.from))?I:n:d;b.has(t.from)||b.set(t.from,[]),b.get(t.from).push(t),h[b===d?"user":b===n?"lib":"builtin"]++}),{user:d,lib:n,builtin:I,count:h}}),S=_(()=>o.value==="directives"?`${s.value.count.user} directives from ${s.value.user.size} modules`:`${s.value.count.user} composables from ${s.value.user.size} modules`),H=_(()=>o.value==="directives"?`${s.value.count.builtin} directives`:`${s.value.count.builtin} composables`),E=_(()=>o.value==="directives"?`${s.value.count.lib} directives from ${s.value.lib.size} packages`:`${s.value.count.lib} composables from ${s.value.lib.size} packages`);return(d,n)=>{const I=W,p=q,N=J,h=Q,t=G,b=ae,L=K;return a(),u(k,null,[f(r)?(a(),u("div",le,[c(N,{search:e.value,"onUpdate:search":n[2]||(n[2]=y=>e.value=y),pb3:""},{default:$(()=>[m.value?(a(),u("div",re,[c(I,{icon:"carbon-filter",op50:""}),c(p,{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=y=>v.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"]),c(p,{modelValue:o.value,"onUpdate:modelValue":n[1]||(n[1]=y=>o.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Composables",value:"composables"},{label:"Directives",value:"directives"}]},null,8,["modelValue"])])):x("",!0)]),_:1},8,["search"]),s.value.user.size?(a(),w(t,{key:0,open:s.value.count.user<=f(V),icon:o.value==="directives"?"tabler:hexagon-letter-d":"carbon-function",text:`User ${o.value==="directives"?"directives":"composables"}`,description:S.value},{default:$(()=>[c(h,{map:s.value.user,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","icon","text","description"])):x("",!0),s.value.builtin.size?(a(),w(t,{key:1,open:s.value.count.builtin<=f(V),icon:"simple-icons-nuxtdotjs",text:`Built-in ${o.value==="directives"?"directives":"composables"}`,description:H.value},{default:$(()=>[c(h,{map:s.value.builtin,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0),s.value.lib.size?(a(),w(t,{key:2,open:s.value.count.lib<=f(V),icon:"carbon-3d-mpr-toggle",text:`${o.value==="directives"?"Directives":"Composables"} from libraries`,description:E.value},{default:$(()=>[c(h,{map:s.value.lib,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0)])):x("",!0),c(L,null,{default:$(()=>[c(b)]),_:1})],64)}}});export{$e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as y,g,h as N,t as b,i as k,j as h,_ as w}from"./mdin2k9x.js";import{_ as C}from"./nlink.vue-idpwaqq8.js";import{_ as V}from"./ncheckbox.vue-oxgpzkb5.js";import{p as B,f as L,P as u,a2 as o,U as m,X as t,a3 as n,a9 as l,u as P,Z as T}from"./vendor/json-editor-vue-npezbdce.js";import"./vendor/unocss-jzxuon8q.js";import"./vendor/shiki-ej2em068.js";const j={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},D={"max-w-190":"","text-lg":""},E={mb6:"",op50:""},F={p4:""},G={flex:"~ col gap-2",mxa:""},Z=B({__name:"index",setup(S){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){b.value=s.value,k.value=!1}function _(){a.value=!1,p.value.devtools.close()}return(U,e)=>{const f=h,r=C,i=w,x=V,v=N;return m(),u(v,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:o(()=>[t("div",j,[e[7]||(e[7]=t("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1)),t("p",D,[n(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",E,[e[4]||(e[4]=l(" Learn more at ")),n(r,{href:"https://devtools.nuxt.com/",target:"_blank",rel:"noopener noreferrer",n:"primary"},{default:o(()=>e[3]||(e[3]=[l(" devtools.nuxt.com ")])),_:1})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>e[5]||(e[5]=[t("span",null,"Get Started",-1)])),_:1}),P(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:_},{default:o(()=>e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])),_:1})):T("",!0)]),t("div",F,[t("div",G,[n(x,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=c=>s.value=c),n:"green6"},{default:o(()=>[e[8]||(e[8]=t("span",{op50:""},"Send anonymous statistics, help us improving DevTools",-1)),n(r,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op35:"",textContent:"Learn more"})]),_:1},8,["modelValue"])])])]),_:1})}}});export{Z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const l=/\d/,C=["-","_","/","."];function h(e=""){if(!l.test(e))return e!==e.toLowerCase()}function f(e,p){const i=C,n=[];if(!e||typeof e!="string")return n;let t="",s,u;for(const r of e){const a=i.includes(r);if(a===!0){n.push(t),t="",s=void 0;continue}const o=h(r);if(u===!1){if(s===!1&&o===!0){n.push(t),t=r,s=o;continue}if(s===!0&&o===!1&&t.length>1){const c=t.at(-1);n.push(t.slice(0,Math.max(0,t.length-1))),t=c+r,s=o;continue}}t+=r,s=o,u=a}return n.push(t),n}function d(e){return e?e[0].toUpperCase()+e.slice(1):""}function y(e,p){return e?(Array.isArray(e)?e:f(e)).map(i=>d(i)).join(""):""}function A(e,p){return e?(Array.isArray(e)?e:f(e)).map(i=>i.toLowerCase()).join("-"):""}export{A as k,y as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as w,x as y,bm as C,H as B,_ as P,U as V}from"./mdin2k9x.js";import{_ as $}from"./nmarkdown.vue-oxfi26vk.js";import{p as v,P as a,a2 as o,U as t,a3 as c,X as i,a8 as m,Z as _,W as F,ae as I,a4 as L,a9 as T,F as U}from"./vendor/json-editor-vue-npezbdce.js";const D={"text-xl":""},E={flex:"~ gap2 wrap"},W=v({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(l,{emit:p}){const d=l,u=p;function f(e,s){y("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const g=C,k=$,h=B,b=P,N=V,x=w;return t(),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",D,m(e.title),1),e.description?(t(),a(k,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):_("",!0),i("div",E,[(t(!0),F(U,null,I(e.actions,(n,r)=>(t(),a(b,L({key:r,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0,ref_for:!0},n.attrs,{onClick:G=>f(n,r)}),{default:o(()=>[n.pending?(t(),a(h,{key:0,icon:"carbon-circle-dash","animate-spin":""})):_("",!0),T(" "+m(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{W as _};
|