@nuxt/devtools 2.2.1 → 2.3.1
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/README.md +0 -3
- package/dist/chunks/module-main.mjs +125 -26
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +24 -24
- package/dist/client/404.html +24 -24
- package/dist/client/_nuxt/__blank-mlfs714t.js +1 -0
- package/dist/client/_nuxt/analyze-build-o6948dlp.js +1 -0
- package/dist/client/_nuxt/assets-fc8kk69n.js +16 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/20291db0-158a-4546-9c85-d3d4300c08ae.json +1 -0
- package/dist/client/_nuxt/{client-gsjyqe32.js → client-bqg1k5yt.js} +1 -1
- package/dist/client/_nuxt/{code-diff.vue-cmobgah0.js → code-diff.vue-wlkcn0ij.js} +3 -3
- package/dist/client/_nuxt/{code-snippets.vue-kiughdhz.js → code-snippets.vue-nnusc3m1.js} +1 -1
- package/dist/client/_nuxt/color-mt9xuhgy.js +1 -0
- package/dist/client/_nuxt/components-dnigdvlk.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-hcm2n3uw.js +1 -0
- package/dist/client/_nuxt/custom-_name_-lea3ahcj.js +1 -0
- package/dist/client/_nuxt/{data-schema-button.vue-j12zu5ly.js → data-schema-button.vue-dgj05cxb.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-c0s8h2rf.js → data-schema-drawer-b6p6fr6f.js} +2 -2
- package/dist/client/_nuxt/debug-l9iw9jsl.js +1 -0
- package/dist/client/_nuxt/{default-gc7ie9i4.js → default-0qldsilx.js} +1 -1
- package/dist/client/_nuxt/duration-display.vue-lb5nc1xj.js +1 -0
- package/dist/client/_nuxt/entry.css-n6hiodwz.css +1 -0
- package/dist/client/_nuxt/{error-404-dlnouvoa.js → error-404-dw25cf31.js} +1 -1
- package/dist/client/_nuxt/error-404.css-k9d8ozcm.css +1 -0
- package/dist/client/_nuxt/{error-500-nwpcih6s.js → error-500-my62qy53.js} +1 -1
- package/dist/client/_nuxt/error-500.css-kolntf6l.css +1 -0
- package/dist/client/_nuxt/{error-n1d3rwvz.js → error-kr6ygqpy.js} +4 -4
- package/dist/client/_nuxt/{filepath-item.vue-csqbsvc3.js → filepath-item.vue-fd1zdt53.js} +1 -1
- package/dist/client/_nuxt/full-lau7d2fq.js +1 -0
- package/dist/client/_nuxt/{help-fab.vue-d99t6zdw.js → help-fab.vue-ob0qjvk7.js} +1 -1
- package/dist/client/_nuxt/hooks-duc6okah.js +1 -0
- package/dist/client/_nuxt/imports-cnlswbzv.js +1 -0
- package/dist/client/_nuxt/{index-izwizeyn.js → index-oskeiuxt.js} +1 -1
- package/dist/client/_nuxt/kvwmbylm.js +15 -0
- package/dist/client/_nuxt/launch-page.vue-nmjrqgea.js +1 -0
- package/dist/client/_nuxt/modules-jlynnmc3.js +1 -0
- package/dist/client/_nuxt/nbadge-njv6jhyo.js +1 -0
- package/dist/client/_nuxt/ncheckbox.vue-g4ghknbn.js +1 -0
- package/dist/client/_nuxt/ncode-block.vue-h2q9yyre.js +2 -0
- package/dist/client/_nuxt/{ndrawer.vue-m60bsg9x.js → ndrawer.vue-d58cjy0i.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-e8of1w4q.js → ndropdown.vue-hod8tej8.js} +1 -1
- package/dist/client/_nuxt/{nicon-title.vue-dsf9ygne.js → nicon-title.vue-oyhtd7jm.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-msx1bzvo.js → nlink.vue-hf7re1rn.js} +1 -1
- package/dist/client/_nuxt/nmarkdown.vue-io3ubke7.js +1 -0
- package/dist/client/_nuxt/nnavbar.vue-nqx0vxgx.js +1 -0
- package/dist/client/_nuxt/none-l9dnfz1g.js +1 -0
- package/dist/client/_nuxt/nsection-block-b5ox8weq.js +1 -0
- package/dist/client/_nuxt/nselect-tabs.vue-kce1z6go.js +1 -0
- package/dist/client/_nuxt/{nselect.vue-cwn1habi.js → nselect.vue-d6y2loab.js} +1 -1
- package/dist/client/_nuxt/{nswitch.vue-jbyu7ls8.js → nswitch.vue-fl7pkx4a.js} +1 -1
- package/dist/client/_nuxt/{open-graph-efd91aeh.js → open-graph-kjrergv9.js} +2 -2
- package/dist/client/_nuxt/{overview-b0jfropt.js → overview-e5oab66c.js} +1 -1
- package/dist/client/_nuxt/pages-o9m20tol.js +1 -0
- package/dist/client/_nuxt/{payload-nzogw6cx.js → payload-kye3mqim.js} +1 -1
- package/dist/client/_nuxt/pinia-jh2ui16k.js +1 -0
- package/dist/client/_nuxt/plugins-od29606e.js +1 -0
- package/dist/client/_nuxt/render-tree-c85w7f8g.js +1 -0
- package/dist/client/_nuxt/{runtime-configs-iwo02vae.js → runtime-configs-gzn1lbwe.js} +1 -1
- package/dist/client/_nuxt/server-discovery-hojt1s3k.js +1 -0
- package/dist/client/_nuxt/{server-route-inputs.vue-ouiap82r.js → server-route-inputs.vue-e2xp979g.js} +1 -1
- package/dist/client/_nuxt/server-routes-n5xn8rel.js +9 -0
- package/dist/client/_nuxt/server-tasks-if1rfb26.js +1 -0
- package/dist/client/_nuxt/settings-jzkg1swh.js +1 -0
- package/dist/client/_nuxt/stacktrace-list.vue-gmd7fzml.js +1 -0
- package/dist/client/_nuxt/{state-components-iu73pb63.js → state-components-jpzjqlfw.js} +1 -1
- package/dist/client/_nuxt/state-editor.vue-lnhqkmb1.js +1 -0
- package/dist/client/_nuxt/state-modules-l0rued1s.js +1 -0
- package/dist/client/_nuxt/storage-muwnw6ww.js +1 -0
- package/dist/client/_nuxt/terminals-mzadk7wd.js +1 -0
- package/dist/client/_nuxt/timeline-ezsq4bra.js +31 -0
- package/dist/client/_nuxt/timeline.css-pdb8jvzb.css +1 -0
- package/dist/client/_nuxt/{unocss-runtime-l2otbg6e.js → unocss-runtime-bag0aauk.js} +1 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-huf8dypo.js +3846 -0
- package/dist/client/_nuxt/vendor/quicktype-core-klbd9u2j.js +1007 -0
- package/dist/client/_nuxt/vendor/{shiki-kdj4mcqm.js → shiki-jv02kgzv.js} +55 -54
- package/dist/client/_nuxt/vendor/{unocss-mvzv9iuf.js → unocss-e7oqigho.js} +2 -2
- package/dist/client/_nuxt/virtual-files-jdb2jga6.js +1 -0
- package/dist/client/_nuxt/vue-devtools-l332du22.js +2 -0
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-gnguvd0a.js → vue-virtual-scroller.esm-bjuzk3oj.js} +2 -2
- package/dist/client/index.html +24 -24
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/shared/{devtools.60b2ba4d.mjs → devtools.c069f83f.mjs} +2 -2
- package/package.json +20 -22
- package/dist/client/_nuxt/__blank-o25h0hkz.js +0 -1
- package/dist/client/_nuxt/analyze-build-h1qtv94t.js +0 -1
- package/dist/client/_nuxt/assets-oebtr6sn.js +0 -16
- package/dist/client/_nuxt/builds/meta/917012c8-846d-4264-bce5-f9be7333c9da.json +0 -1
- package/dist/client/_nuxt/components-jia8wtb3.js +0 -1
- package/dist/client/_nuxt/composable-item.vue-gfbdvk92.js +0 -1
- package/dist/client/_nuxt/custom-_name_-m80m298x.js +0 -1
- package/dist/client/_nuxt/duration-display.vue-h9mqvgci.js +0 -1
- package/dist/client/_nuxt/entry.css-jfo9gib8.css +0 -1
- package/dist/client/_nuxt/error-404.css-cyoi3t2n.css +0 -1
- package/dist/client/_nuxt/error-500.css-c3osv0mr.css +0 -1
- package/dist/client/_nuxt/full-3l6dimb1.js +0 -1
- package/dist/client/_nuxt/hooks-jk04ky26.js +0 -1
- package/dist/client/_nuxt/imports-dqjyu7ow.js +0 -1
- package/dist/client/_nuxt/launch-page.vue-b5znlr95.js +0 -1
- package/dist/client/_nuxt/modules-ftim9y66.js +0 -1
- package/dist/client/_nuxt/n2dc525b.js +0 -17
- package/dist/client/_nuxt/nbadge-htrvttst.js +0 -1
- package/dist/client/_nuxt/ncheckbox.vue-m6od5ntc.js +0 -1
- package/dist/client/_nuxt/ncode-block.vue-bir2wz4z.js +0 -2
- package/dist/client/_nuxt/nmarkdown.vue-iw2voruc.js +0 -1
- package/dist/client/_nuxt/nnavbar.vue-mt44hnfg.js +0 -1
- package/dist/client/_nuxt/none-fqfjn9dv.js +0 -1
- package/dist/client/_nuxt/nsection-block-blzeji2j.js +0 -1
- package/dist/client/_nuxt/nselect-tabs.vue-eewrxxrw.js +0 -1
- package/dist/client/_nuxt/pages-owmi8y1w.js +0 -1
- package/dist/client/_nuxt/pinia-h28kc7st.js +0 -1
- package/dist/client/_nuxt/plugins-cvrrxd2o.js +0 -1
- package/dist/client/_nuxt/render-tree-f4btmb99.js +0 -1
- package/dist/client/_nuxt/server-discovery-kduvqt6t.js +0 -1
- package/dist/client/_nuxt/server-routes-otulhw4o.js +0 -9
- package/dist/client/_nuxt/server-tasks-fb19xaov.js +0 -1
- package/dist/client/_nuxt/settings-m340011e.js +0 -1
- package/dist/client/_nuxt/stacktrace-list.vue-jk5kvmxj.js +0 -1
- package/dist/client/_nuxt/state-editor.vue-ccl909mt.js +0 -1
- package/dist/client/_nuxt/state-modules-mc97lhwd.js +0 -1
- package/dist/client/_nuxt/storage-jl97i4lz.js +0 -1
- package/dist/client/_nuxt/terminals-hicd7c09.js +0 -1
- package/dist/client/_nuxt/timeline-d6b5hxwa.js +0 -31
- package/dist/client/_nuxt/timeline.css-lhkpu01p.css +0 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-llkaejaf.js +0 -3819
- package/dist/client/_nuxt/vendor/quicktype-core-o2aektoq.js +0 -1006
- package/dist/client/_nuxt/virtual-files-kopy8ufw.js +0 -1
- package/dist/client/_nuxt/vue-devtools-nhi1fp41.js +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{_ as P}from"./ncode-block.vue-
|
|
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}
|
|
1
|
+
import{_ as P}from"./ncode-block.vue-h2q9yyre.js";import{ao as Q}from"./kvwmbylm.js";import{q as U,u as X,k as Y,D as j,R as W,a0 as S}from"./vendor/json-editor-vue-huf8dypo.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 R(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,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 R(n,e,"")}function I(n,e){return _(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"),k=new g;k.equals=function(n,e,r){return r.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n.trim()===e.trim()};k.tokenize=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;if(e.intlSegmenter){if(e.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=Array.from(e.intlSegmenter.segment(n),function(o){return o.segment})}else r=n.match(K)||[];var t=[],u=null;return r.forEach(function(o){/\s/.test(o)?u==null?t.push(o):t.push(t.pop()+o):/\s/.test(u)?t[t.length-1]==u?t.push(t.pop()+o):t.push(u+o):t.push(o),u=o}),t};k.join=function(n){return n.map(function(e,r){return r==0?e:e.replace(/^\s+/,"")}).join("")};k.postProcess=function(n,e){if(!n||e.oneChangePerToken)return n;var r=null,t=null,u=null;return n.forEach(function(o){o.added?t=o:o.removed?u=o:((t||u)&&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.value,i,l),e.value=L(e.value,l),r.value=L(r.value,l)}if(t){var s=Z(o,f);t.value=R(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=R(t.value,a,m),n.value=_(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 $=new g;$.tokenize=function(n,e){e.stripTrailingCr&&(n=n.replace(/\r\n/g,`
|
|
2
|
+
`));var r=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var u=0;u<t.length;u++){var o=t[u];u%2&&!e.newlineIsToken?r[r.length-1]+=o:r.push(o)}return r};$.equals=function(n,e,r){return r.ignoreWhitespace?((!r.newlineIsToken||!n.includes(`
|
|
3
3
|
`))&&(n=n.trim()),(!r.newlineIsToken||!e.includes(`
|
|
4
4
|
`))&&(e=e.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(n.endsWith(`
|
|
5
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
|
|
6
|
+
`)&&(e=e.slice(0,-1))),g.prototype.equals.call(this,n,e,r)};function ne(n,e,r){return $.diff(n,e,r)}var re=new g;re.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var oe=new g;oe.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function N(n){"@babel/helpers - typeof";return N=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},N(n)}var D=new g;D.useLongestToken=!0;D.tokenize=$.tokenize;D.castInput=function(n,e){var r=e.undefinedReplacement,t=e.stringifyReplacer,u=t===void 0?function(o,i){return typeof i>"u"?r:i}:t;return typeof n=="string"?n:JSON.stringify(A(n,null,null,u),u," ")};D.equals=function(n,e,r){return g.prototype.equals.call(D,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"),r)};function A(n,e,r,t,u){e=e||[],r=r||[],t&&(n=t(u,n));var o;for(o=0;o<e.length;o+=1)if(e[o]===n)return r[o];var i;if(Object.prototype.toString.call(n)==="[object Array]"){for(e.push(n),i=new Array(n.length),r.push(i),o=0;o<n.length;o+=1)i[o]=A(n[o],e,r,t,u);return e.pop(),r.pop(),i}if(n&&n.toJSON&&(n=n.toJSON()),N(n)==="object"&&n!==null){e.push(n),i={},r.push(i);var f=[],l;for(l in n)Object.prototype.hasOwnProperty.call(n,l)&&f.push(l);for(f.sort(),o=0;o<f.length;o+=1)l=f[o],i[l]=A(n[l],e,r,t,l);e.pop(),r.pop()}else i=n;return i}var J=new g;J.tokenize=function(n){return n.slice()};J.join=J.removeEmpty=function(n){return n};const le=U({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function r(f,l){const s=ne(f.trim(),l.trim()),a=[],c=[],p=[];for(const d of s){const m=d.value.trimEnd().split(`
|
|
7
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
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=Q(o);f&&f.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(f,l)=>{const s=P;return S(),W(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 +1 @@
|
|
|
1
|
-
import{_ as g}from"./ncode-block.vue-
|
|
1
|
+
import{_ as g}from"./ncode-block.vue-h2q9yyre.js";import{a as C,_ as x}from"./kvwmbylm.js";import{q as S,n as w,u as B,w as N,O as n,Q as r,a0 as a,P as s,F as d,ad as V,a2 as i,R as $,v as T,a1 as u,a8 as v,W as m,a7 as h}from"./vendor/json-editor-vue-huf8dypo.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"},P=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:m(t===e.value?"":"border-b"),onClick:R=>e.value=t},[s("div",{class:m(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]=[v(" Copy ")])),_:1}),e.value?.docs?(a(),$(c,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:u(()=>o[3]||(o[3]=[v(" Docs ")])),_:1},8,["to"])):r("",!0)])],64)):r("",!0)])):r("",!0)}}});export{P as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(o,r=65,e=50,l=1){let t=0;for(let h=0;h<o.length;h++)t=o.charCodeAt(h)+((t<<5)-t);return`hsla(${t%360}, ${r}%, ${e}%, ${l})`}export{n as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as pe,_ as X,a4 as re,aq as ue,A as me,B as de,g as Y,ar as ce,n as fe,as as ve,S as _e,Y as he,W as be,I as ge,f as ye}from"./kvwmbylm.js";import{O as m,a0 as t,P as n,q as U,u as D,a8 as O,a7 as E,Q as w,S as j,a2 as u,R as y,v as $,F as B,ad as M,k as I,n as we,D as xe,y as ke,a1 as f,j as A,X as Ce,W as $e,a3 as W,af as Ne,a9 as Q,ac as Ve}from"./vendor/json-editor-vue-huf8dypo.js";import{_ as Pe}from"./help-fab.vue-ob0qjvk7.js";import{_ as De}from"./ncheckbox.vue-g4ghknbn.js";import{_ as J}from"./nnavbar.vue-nqx0vxgx.js";import{p as K}from"./index-jc4yj4to.js";import{_ as Z}from"./nbadge-njv6jhyo.js";import{_ as ee}from"./filepath-item.vue-fd1zdt53.js";import{_ as Se}from"./ndrawer.vue-d58cjy0i.js";import{D as Be,N as Le}from"./vendor/vis-fth2qiu5.js";import{_ as Me}from"./nselect-tabs.vue-kce1z6go.js";import{_ as Te}from"./nsection-block-b5ox8weq.js";import{_ as Ie}from"./nicon-title.vue-oyhtd7jm.js";import{D as H}from"./constants-b32h69zq.js";import{u as Ue,a as Fe}from"./state-components-jpzjqlfw.js";import"./vendor/unocss-e7oqigho.js";import"./vendor/shiki-jv02kgzv.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]=[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)])))}},Ae={"text-sm":"","font-mono":""},ne=U({__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",Ae,[c[0]||(c[0]=n("span",{mr1:"",op20:""},"<",-1)),O(E(v.value),1),c[1]||(c[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),ze={flex:"~ col gap1","items-start":"","of-hidden":""},We={flex:"~ gap2",px3:""},Ee={px3:"",pb2:""},je={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},qe={"text-sm":""},He={"text-primary":""},Oe={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Xe={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Qe={"text-sm":""},Ye={"text-primary":""},Je={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},oe=U({__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=ne,r=X,b=Z,x=ee;return t(),m("div",ze,[n("div",We,[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)]),n("div",Ee,[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,[n("div",qe,[n("strong",He,E(l.dependents.length),1),a[1]||(a[1]=n("span",{op50:""}," references",-1))]),l.dependents.length?(t(),m("div",Oe,[(t(!0),m(B,null,M(l.dependents,d=>(t(),y(x,{key:d,filepath:d},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),l.dependencies?(t(),m("div",Xe,[n("div",Qe,[n("strong",Ye,E(l.dependencies.length),1),a[2]||(a[2]=n("span",{op50:""}," dependencies",-1))]),l.dependencies.length?(t(),m("div",Je,[(t(!0),m(B,null,M(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":""},en={key:0,py4:"",pt4:"",flex:"~ col"},nn={border:"t base",p4:""},on=U({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(P){const s=P,v=I(),i=I(),c=re(),l=we(),a=ue(),h=me(),r=de(),{componentsGraphShowNodeModules:b,componentsGraphShowGlobalComponents:x,componentsGraphShowPages:d,componentsGraphShowLayouts:N,componentsGraphShowWorkspace:_}=Y("ui"),k=I(),p=I(""),F=ce(p,300),G=D(()=>{const V=s.relationships||[];if(k.value){let e=function(C){!C||o.has(C)||(o.add(C),C.deps.forEach(L=>{e(V.find(T=>T.id===L))}))};const o=new Set;return e(k.value),Array.from(o)}return V}),z=D(()=>{const V=G.value.map(o=>{const C=s.components.find(R=>R.filePath===o.id),L=a.value?.find(R=>R.file===o.id),T=r.value?.find(R=>R.file===o.id),S=o.id.includes("/node_modules/")?"lib":C?C.global?"global":"user":T?"layout":L?"page":"unknown";if(!b.value&&S==="lib"||!d.value&&S==="page"||!N.value&&S==="layout"||!_.value&&S==="user"&&h.value&&!o.id.startsWith(h.value.rootDir)||!x.value&&S==="global")return null;const q=S==="layout"?"hexagon":S==="page"?"square":"dot",g=F.value&&!o.id.toLowerCase().includes(F.value.toLowerCase());return{id:o.id,label:ae(o.id),group:S,shape:q,size:15+Math.min(o.deps.length/2,8),font:{color:g?"#8885":c.value==="dark"?"white":"black"},color:g?"#8885":k.value?.id===o.id?"#82c742":void 0,extra:{id:o.id,component:C,page:L,layout:T,relationship:o}}}).filter(o=>!!o),e=G.value.flatMap(o=>o.deps.map(C=>({from:o.id,to:C,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new Be(V),edges:e}}),te=D(()=>l.value?.component?s.relationships?.find(e=>e.id===l.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(o=>o.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(o=>o.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 Le(v.value,z.value,V);e.on("click",o=>{const C=o.nodes?.[0],L=z.value.nodes.get(C).extra;l.value=L}),ke(z,()=>{e.setData(z.value)})});function le(){l.value=void 0}function ae(V){const e=s.components.find(o=>o.filePath===V);return e?e.pascalName:V.replace(/.*\/components\//,"").replace(/\.vue$/,"").replace(/\/index$/,"").split("/").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join("")}function ie(){k.value=l.value?.relationship,l.value=void 0}return(V,e)=>{const o=De,C=J,L=fe,T=oe,S=X,q=Se;return t(),m(B,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",Ke,[u(o,{modelValue:$(d),"onUpdate:modelValue":e[0]||(e[0]=g=>A(d)?d.value=g:null),n:"primary sm"},{default:f(()=>e[8]||(e[8]=[n("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),u(o,{modelValue:$(N),"onUpdate:modelValue":e[1]||(e[1]=g=>A(N)?N.value=g:null),n:"primary sm"},{default:f(()=>e[9]||(e[9]=[n("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),u(o,{modelValue:$(_),"onUpdate:modelValue":e[2]||(e[2]=g=>A(_)?_.value=g:null),n:"primary sm"},{default:f(()=>e[10]||(e[10]=[n("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),u(o,{modelValue:$(b),"onUpdate:modelValue":e[3]||(e[3]=g=>A(b)?b.value=g:null),n:"primary sm"},{default:f(()=>e[11]||(e[11]=[n("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),u(o,{modelValue:$(x),"onUpdate:modelValue":e[4]||(e[4]=g=>A(x)?x.value=g:null),n:"primary sm"},{default:f(()=>e[12]||(e[12]=[n("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]=[O(" Clear filter "),n("div",{"i-carbon-close":""},null,-1)]))):w("",!0),e[14]||(e[14]=n("div",{"flex-auto":""},null,-1)),j(V.$slots,"default")]),_:3},8,["search"]),n("div",Ze,[n("div",{ref_key:"container",ref:v,"h-full":"","w-full":""},null,512),u(L,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:f(()=>e[15]||(e[15]=[n("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),n("div",{op50:""}," Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),n("div",{op50:""}," Global Component "),n("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),n("div",{op50:""}," Page "),n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[n("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),n("div",{op50:""}," Layout "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),n("div",{op50:""}," Library Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),n("div",{op50:""}," Unknown ")],-1)])),_:1}),u(q,{"model-value":!!(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",en,[u(T,{component:l.value.component,dependencies:te.value,dependents:se.value},null,8,["component","dependencies","dependents"]),n("div",nn,[u(S,{n:"primary solid",onClick:e[7]||(e[7]=g=>ie())},{default:f(()=>e[16]||(e[16]=[O(" Filter to this component ")])),_:1})])])):w("",!0)]),_:1},8,["model-value","top"])])],64)}}}),tn={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},sn={key:0,"ml--1":"","text-primary":""},ln=U({__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=ne,a=oe,h=Ce("VDropdown"),r=Z,b=ee;return t(),m("div",tn,[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:$e(i.dependents&&i.dependents.length===0?"op50":"")},[u(l,{component:i.component},null,8,["component"])],2)]),_:1}),i.dependents?.length?(t(),m("sup",sn," x"+E(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)])}}}),an={flex:"~ gap-2 items-center"},pn={pl4:""},rn=U({__name:"ComponentsList",props:{components:{},relationships:{}},setup(P){const s=P,v=I(""),i=I("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=Me,d=J,N=ln,_=Te,k=Ie;return t(),m(B,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(()=>[n("div",an,[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<=$(H),description:`Total components: ${a.value.count.user}`},{default:f(()=>[(t(!0),m(B,null,M(a.value.user,p=>(t(),y(N,W({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<=$(H),text:"Runtime components",description:`Total components: ${a.value.count.runtime}`},{default:f(()=>[(t(!0),m(B,null,M(a.value.runtime,p=>(t(),y(N,W({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(B,null,M(a.value.builtin,p=>(t(),y(N,W({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<=$(H),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(B,null,M(a.value.lib.entries(),([p,F])=>(t(),m("div",{key:p,"ml-2":""},[u(k,{text:`${p} (${F.length})`,py1:"",op50:""},null,8,["text"]),n("div",pn,[(t(!0),m(B,null,M(F,G=>(t(),y(N,W({key:G.component.filePath,ref_for:!0},G),null,16))),128))])]))),128))]),_:1},8,["open","description"])):w("",!0)],64)}}}),un={relative:"","h-full":"","of-auto":""},mn={"flex-none":"",flex:"~ gap3"},Dn=U({__name:"components",setup(P){const s=ye(),v=Ue(),i=Fe(),{componentsView:c}=Y("ui");function l(){s.value?.inspector?.enable()}function a(){c.value=c.value==="list"?"graph":"list"}return(h,r)=>{const b=X,x=Re,d=Pe,N=Ne("tooltip");return t(),m(B,null,[n("div",un,[(t(),y(Ve($(c)==="list"?rn:on),{components:$(v),relationships:$(i)},{default:f(()=>[n("div",mn,[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{Dn as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as $,w as U,I as E,_ as F}from"./kvwmbylm.js";import{_ as j}from"./nmarkdown.vue-io3ubke7.js";import{_ as O}from"./filepath-item.vue-fd1zdt53.js";import{k as S}from"./index-jc4yj4to.js";import{C as y}from"./constants-b32h69zq.js";import{q as W,u as r,X as q,R as i,a0 as s,a1 as m,P as a,W as z,O as p,Q as l,a8 as c,a7 as v,a2 as b,v as k,F as x,ad as L}from"./vendor/json-editor-vue-huf8dypo.js";const M={rounded:"","font-mono":""},P={key:0,"text-primary":""},Q={key:0},R={title:"Vue Directive"},T={"max-w-100":""},X={px4:"",py3:"","text-sm":""},A={flex:"~ gap2",n:"primary xs"},G={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},H={"text-sm":""},J={"text-primary":""},K={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Y={key:1,"text-sm":"",op50:""},ne=W({__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=S(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"))),_=r(()=>o.item.meta?.docsUrl?o.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(o.item.from)?y.nuxt[o.item.name]:o.item.from==="vue"?y.vue[o.item.name]:null);return(e,t)=>{const w=E,I=j,f=F,B=O,V=q("VDropdown");return s(),i(V,{disabled:!o.metadata},{popper:m(()=>[a("div",T,[a("div",X,[e.item.meta?.description?(s(),i(I,{key:0,tag:"div",pb3:"","text-sm":"",markdown:e.item.meta.description},null,8,["markdown"])):l("",!0),a("div",A,[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),_.value?(s(),i(f,{key:1,icon:"carbon-catalog",to:_.value,target:"_blank"},{default:m(()=>t[4]||(t[4]=[c(" Docs ")])),_:1},8,["to"])):l("",!0)])]),a("div",G,[n.value?(s(),p(x,{key:0},[a("div",H,[t[5]||(t[5]=a("span",{op50:""},"It has been referenced ",-1)),a("strong",J,v(n.value),1),t[6]||(t[6]=a("span",{op50:""}," times by:",-1))]),a("div",K,[(s(!0),p(x,null,L(N.value,d=>(s(),i(B,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),p("div",Y," Not in use via auto import. "))])])]),default:m(()=>[a("button",{"hover:text-primary":"",class:z([e.metadata&&!n.value?"op30 hover:op100":"",e.classes])},[a("code",M,[c(v(u.value)+" ",1),n.value&&e.counter?(s(),p("sup",P,"x"+v(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 _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a4 as M,bd as N,be as j,bf as B,a6 as D,l as E,ag as k,bg as P,i as V,aa as I,r as L,n as O}from"./kvwmbylm.js";import{q,k as C,u as x,r as R,D as $,p as W,w as _,H as S,O as U,a0 as n,R as u,a1 as y,P as r,a8 as w,a7 as A,v as T,ac as F,a2 as G}from"./vendor/json-editor-vue-huf8dypo.js";import{_ as H}from"./launch-page.vue-nmjrqgea.js";import"./vendor/unocss-e7oqigho.js";import"./vendor/shiki-jv02kgzv.js";import"./nmarkdown.vue-io3ubke7.js";import"./client-bqg1k5yt.js";const h=new Map,X=q({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=M(),d=C(),i=x(()=>m.tab.name),e=C(),t=R(N(d));$(()=>{const o=m.tab.view,l=o.persistent!==!1,b=["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",b.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),W(p)}setTimeout(s,100)}),_(p),_(s),_(v),S(()=>{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=j();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function p(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(o,l)=>(n(),U("div",{ref_key:"anchor",ref:d,"h-full":"","w-full":""},null,512))}}),z={flex:"~ col gap2",mxa:"","items-center":""},J={"text-xl":""},K={"text-rose":""},ne=q({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=B(),d=D(),i=x(()=>m.name??c.params.name),e=E(),t=x(()=>e.value.find(s=>s.name===i.value));return $(()=>{t.value?t.value.requireAuth&&!k.value&&P():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(s,a)=>{const v=V,p=I,o=X,l=H,b=O;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(()=>[G(b,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+A(t.value.view),1)]),_:1})]),_:1})):(n(),u(v,{key:0},{default:y(()=>[r("div",z,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",J,[a[1]||(a[1]=w(" Tab ")),r("code",K,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};
|
package/dist/client/_nuxt/{data-schema-button.vue-j12zu5ly.js → data-schema-button.vue-dgj05cxb.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as r,_ as s}from"./
|
|
1
|
+
import{u as r,_ as s}from"./kvwmbylm.js";import{q as c,af as i,a9 as p,a0 as _,R as m}from"./vendor/json-editor-vue-huf8dypo.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-
|
|
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=
|
|
1
|
+
import{_ as E}from"./nselect.vue-d6y2loab.js";import{u as F,c as U,a as W,_ as q}from"./kvwmbylm.js";import{_ as z}from"./nswitch.vue-fl7pkx4a.js";import{_ as O}from"./ndropdown.vue-hod8tej8.js";import{_ as J}from"./ncode-block.vue-h2q9yyre.js";import{_ as P}from"./ndrawer.vue-d58cjy0i.js";import{A as h,d as k}from"./vendor/quicktype-core-klbd9u2j.js";import{q as Q,k as x,u as N,y as C,R as c,Q as m,a0 as n,a2 as d,a1 as r,P as i,O as f,F as D,ad as j,v as _,a7 as b,ab as R}from"./vendor/json-editor-vue-huf8dypo.js";import"./vendor/unocss-e7oqigho.js";import"./vendor/shiki-jv02kgzv.js";import"./client-bqg1k5yt.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=x(0),l=x("TypeScript"),v=N(()=>h.all.find(e=>e.displayName===l.value)),o=x(v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")),y=U(async()=>{if(V.value,!s.value)return"";const e=k.jsonInputForTargetLanguage(l.value);await e.addSource({name:s.value.name??"Data",samples:[s.value.input]});const t=new k.InputData;return t.addInput(e),(await k.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 $=W();function B(){$(y.value||"")}return(e,t)=>{const w=E,u=q,p=z,L=O,I=J,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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as T}from"./nsection-block-b5ox8weq.js";import{_ as D}from"./ncheckbox.vue-g4ghknbn.js";import{g as M}from"./color-mt9xuhgy.js";import{_ as H}from"./nbadge-njv6jhyo.js";import{q as h,u as R,R as g,a0 as l,a1 as d,a8 as I,S as j,a7 as k,U as z,k as p,O as u,F as x,P as t,a2 as s,Q as B,ad as N,W as E,v as $}from"./vendor/json-editor-vue-huf8dypo.js";import{_ as O,p as W}from"./kvwmbylm.js";import{_ as q}from"./filepath-item.vue-fd1zdt53.js";import{_ as K}from"./ncode-block.vue-h2q9yyre.js";import"./nicon-title.vue-oyhtd7jm.js";import"./vendor/unocss-e7oqigho.js";import"./vendor/shiki-jv02kgzv.js";import"./client-bqg1k5yt.js";const L=h({__name:"NBadgeHashed",props:{text:{}},setup(_){const i=_,c=R(()=>{const a=M(i.text,50,60),r=M(i.text,50,60,.05);return{color:a,background:r}});return(a,r)=>(l(),g(H,{style:z(c.value)},{default:d(()=>[I(k(a.text),1),j(a.$slots,"default")]),_:3},8,["style"]))}}),Q={flex:"~ gap-2 col",mb4:""},A={flex:"~ gap-3 items-center"},G={key:0,flex:"~ gap-1","items-center":"",p1:"",border:"~ base rounded"},J={"max-w-full":"","of-auto":""},X={"text-center":"",op50:""},Y={flex:"~",px4:""},Z={key:0,op50:""},ee={px2:"","text-center":""},te={"of-auto":""},oe=h({__name:"DebugModuleMutationRecords",props:{moduleMutationRecords:{}},setup(_){const i=_;function c(n){return n.startsWith("/")||n.match(/^[a-z]:[\\/]/i)}const a=p(!1),r=p(!1),v=p(!1),b=p(!1),w=p(!1),m=p(""),S=R(()=>{let n=i.moduleMutationRecords;return a.value||(n=n.filter(e=>!e.name.startsWith("nuxt:")&&e.name!=="@nuxt/devtools")),r.value||(n=n.filter(e=>e.keys.join(".")!=="build.templates")),v.value||(n=n.filter(e=>e.keys.join(".")!=="build.transpile")),b.value||(n=n.filter(e=>e.keys.join(".")!=="plugins")),w.value||(n=n.filter(e=>e.method||e.value!=="[]"&&e.value!=="{}")),m.value&&(n=n.filter(e=>e.name===m.value)),n});return(n,e)=>{const f=D,y=L,F=O,U=q,P=K;return l(),u(x,null,[t("div",Q,[t("div",A,[s(f,{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=o=>a.value=o),n:"primary"},{default:d(()=>e[6]||(e[6]=[t("span",{"ws-nowrap":"",op75:""},"Builtin Modules",-1)])),_:1},8,["modelValue"]),s(f,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=o=>r.value=o),n:"primary"},{default:d(()=>e[7]||(e[7]=[t("span",{"ws-nowrap":"",op75:""},"Templates",-1)])),_:1},8,["modelValue"]),s(f,{modelValue:v.value,"onUpdate:modelValue":e[2]||(e[2]=o=>v.value=o),n:"primary"},{default:d(()=>e[8]||(e[8]=[t("span",{"ws-nowrap":"",op75:""},"Transpile",-1)])),_:1},8,["modelValue"]),s(f,{modelValue:b.value,"onUpdate:modelValue":e[3]||(e[3]=o=>b.value=o),n:"primary"},{default:d(()=>e[9]||(e[9]=[t("span",{"ws-nowrap":"",op75:""},"Plugins",-1)])),_:1},8,["modelValue"]),s(f,{modelValue:w.value,"onUpdate:modelValue":e[4]||(e[4]=o=>w.value=o),n:"primary"},{default:d(()=>e[10]||(e[10]=[t("span",{"ws-nowrap":"",op75:""},"Empty Initial",-1)])),_:1},8,["modelValue"]),m.value?(l(),u("div",G,[s(y,{"font-mono":"",text:m.value},null,8,["text"]),s(F,{icon:"carbon-close",border:!1,onClick:e[5]||(e[5]=o=>m.value="")})])):B("",!0)])]),t("table",J,[e[11]||(e[11]=t("thead",{border:"b base"},[t("tr",null,[t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Index "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Module "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Key Path "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Method "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Value ")])],-1)),t("tbody",null,[(l(!0),u(x,null,N(S.value,o=>(l(),u("tr",{key:n.moduleMutationRecords.indexOf(o),border:"b dashed transparent hover:base"},[t("td",X,[t("div",null,k(n.moduleMutationRecords.indexOf(o)+1),1)]),t("td",null,[o.name&&c(o.name)?(l(),g(U,{key:0,filepath:o.name},null,8,["filepath"])):(l(),g(y,{key:1,role:"button","font-mono":"",text:o.name,onClick:V=>m.value=o.name},null,8,["text","onClick"]))]),t("td",null,[t("code",Y,[(l(!0),u(x,null,N(o.keys,(V,C)=>(l(),u(x,{key:C},[t("span",null,k(V),1),C<o.keys.length-1?(l(),u("span",Z," . ")):B("",!0)],64))),128))])]),t("td",ee,[s(y,{"font-mono":"",text:o.method||"=",class:E(o.method?"":"saturate-0")},null,8,["text","class"])]),t("td",te,[s(P,{code:String(o.value),lang:"ts","grammar-context-code":"let a = ","ws-normal":"","break-all":"",py1:"",lines:!1,inline:!0},null,8,["code"])])]))),128))])])],64)}}}),ne={key:0,p6:""},le={key:1},ve=h({__name:"debug",setup(_){const i=W();return(c,a)=>{const r=T;return $(i)?(l(),u("div",le,[s(r,{icon:"carbon-container-image-push-pull",text:"Module Mutation Records",description:"Records of module mutations to nuxt options"},{default:d(()=>[s(oe,{"module-mutation-records":$(i).moduleMutationRecords||[]},null,8,["module-mutation-records"])]),_:1})])):(l(),u("div",ne,a[0]||(a[0]=[t("div",null,"No Debug Countext Found",-1),t("div",null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)])))}}});export{ve as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o}from"./
|
|
1
|
+
import{b as o}from"./kvwmbylm.js";import{O as t,a0 as s,P as r,S as a}from"./vendor/json-editor-vue-huf8dypo.js";import"./vendor/unocss-e7oqigho.js";import"./vendor/shiki-jv02kgzv.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{q as i,u,O as d,a0 as f,W as l,S as o,a8 as p,P as c,a7 as a}from"./vendor/json-editor-vue-huf8dypo.js";const m={"ml-1":"","text-xs":"",op50:""},g=i({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(n){const t=n;function s(e){return t.color?e?(e=e*t.factor,e<.5?"text-gray:50":e>1e3?"text-red-400":e>500?"text-orange-400":e>200?"text-yellow-400":""):"text-gray-400":""}const r=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(e,x)=>(f(),d("div",{class:l(s(e.duration))},[o(e.$slots,"before"),p(" "+a(r.value[0]),1),c("span",m,a(r.value[1]),1),o(e.$slots,"after")],2))}});export{g as _};
|