@nuxt/devtools-nightly 3.1.1-29404851.4bbdfca → 3.1.1-29462902.5c4a0b0
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/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-k6zhzq98.js +1 -0
- package/dist/client/_nuxt/analyze-build-jcrqknm7.js +1 -0
- package/dist/client/_nuxt/assets-jci46na9.js +6 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/6c475c27-2710-410b-baf2-788ee88c8b1a.json +1 -0
- package/dist/client/_nuxt/bw1dti8j.js +4 -0
- package/dist/client/_nuxt/client-mfzdkims.js +1 -0
- package/dist/client/_nuxt/code-diff-i6z1a6i4.js +8 -0
- package/dist/client/_nuxt/code-snippets-fcz7bknh.js +1 -0
- package/dist/client/_nuxt/color-k274hmrf.js +1 -0
- package/dist/client/_nuxt/components-djykukp0.js +1 -0
- package/dist/client/_nuxt/composable-item-c3g9ucyq.js +1 -0
- package/dist/client/_nuxt/composables-g8w9dpc0.js +1 -0
- package/dist/client/_nuxt/constants-opnqtuov.js +1 -0
- package/dist/client/_nuxt/custom-_name_-irzzyq8u.js +1 -0
- package/dist/client/_nuxt/data-schema-button-kjb29284.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-gvivwibu.js +2 -0
- package/dist/client/_nuxt/debug-l8gntzhk.js +1 -0
- package/dist/client/_nuxt/default-op67zexq.js +1 -0
- package/dist/client/_nuxt/dist-k9rc0n5t.js +1 -0
- package/dist/client/_nuxt/dist-opw9eswr.js +1 -0
- package/dist/client/_nuxt/duration-display-da99ahrl.js +1 -0
- package/dist/client/_nuxt/entry.css-l3c1lp8x.css +1 -0
- package/dist/client/_nuxt/error-404-f5klrf9c.js +1 -0
- package/dist/client/_nuxt/error-404.css-o9fsfvte.css +1 -0
- package/dist/client/_nuxt/error-500-d3lhx7te.js +1 -0
- package/dist/client/_nuxt/error-500.css-lncq9rwv.css +1 -0
- package/dist/client/_nuxt/error-b8lr6jno.js +9 -0
- package/dist/client/_nuxt/filepath-item-jelkqn52.js +1 -0
- package/dist/client/_nuxt/full-m1gws1dv.js +1 -0
- package/dist/client/_nuxt/help-fab-hsmyadfc.js +1 -0
- package/dist/client/_nuxt/hooks-bka44r2r.js +1 -0
- package/dist/client/_nuxt/imports-mdwzjyhm.js +1 -0
- package/dist/client/_nuxt/launch-page-bo5il4u2.js +1 -0
- package/dist/client/_nuxt/modules-nqq0afu4.js +1 -0
- package/dist/client/_nuxt/nbadge-be0uvjcc.js +1 -0
- package/dist/client/_nuxt/ncheckbox-btor8x5f.js +1 -0
- package/dist/client/_nuxt/ncode-block-kdtjcgup.js +2 -0
- package/dist/client/_nuxt/ncode-block.css-o2ixs97j.css +1 -0
- package/dist/client/_nuxt/ndrawer-f422gy3v.js +1 -0
- package/dist/client/_nuxt/ndropdown-jin6fbhg.js +1 -0
- package/dist/client/_nuxt/nicon-title-otd5t7iw.js +1 -0
- package/dist/client/_nuxt/nlink-ltyie96b.js +1 -0
- package/dist/client/_nuxt/nmarkdown-bofr01ux.js +1 -0
- package/dist/client/_nuxt/nnavbar-h40011d7.js +1 -0
- package/dist/client/_nuxt/none-b13ud8xm.js +1 -0
- package/dist/client/_nuxt/nsection-block-cx50x3ui.js +1 -0
- package/dist/client/_nuxt/nselect-fx5o97au.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-gqdvhqhx.js +1 -0
- package/dist/client/_nuxt/nswitch-jfsnhnbt.js +1 -0
- package/dist/client/_nuxt/open-graph-ehm1xv33.js +3 -0
- package/dist/client/_nuxt/open-graph.css-dk03m1qz.css +1 -0
- package/dist/client/_nuxt/overview-igybsiq2.js +1 -0
- package/dist/client/_nuxt/pages-b1exx202.js +1 -0
- package/dist/client/_nuxt/pages-j7dughxm.js +1 -0
- package/dist/client/_nuxt/payload-gd07c00g.js +1 -0
- package/dist/client/_nuxt/pinia-gbqepyja.js +1 -0
- package/dist/client/_nuxt/plugins-fiqmijps.js +1 -0
- package/dist/client/_nuxt/render-tree-etmpt7ih.js +1 -0
- package/dist/client/_nuxt/rolldown-runtime-fitqecur.js +1 -0
- package/dist/client/_nuxt/runtime-configs-jsmy47du.js +1 -0
- package/dist/client/_nuxt/server-discovery-ebpnno5n.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-pdleptai.js +1 -0
- package/dist/client/_nuxt/server-routes-omr0dbib.js +7 -0
- package/dist/client/_nuxt/server-tasks-emjzqs0y.js +1 -0
- package/dist/client/_nuxt/settings-llsxt83l.js +1 -0
- package/dist/client/_nuxt/stacktrace-list-elhhkrir.js +1 -0
- package/dist/client/_nuxt/state-components-eaxfnxiz.js +1 -0
- package/dist/client/_nuxt/state-editor-n5y4kvsb.js +1 -0
- package/dist/client/_nuxt/state-modules-mrgxz57s.js +1 -0
- package/dist/client/_nuxt/storage-holv8e8w.js +1 -0
- package/dist/client/_nuxt/terminals-b2fih42q.js +1 -0
- package/dist/client/_nuxt/timeline-lv9eybpb.js +31 -0
- package/dist/client/_nuxt/timeline.css-m03aec2q.css +1 -0
- package/dist/client/_nuxt/unocss-runtime-dzbmg03v.js +1 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-ml09by3o.js +3869 -0
- package/dist/client/_nuxt/vendor/json-editor-vue.css-lkbe0qhh.css +1 -0
- package/dist/client/_nuxt/vendor/markdown-it-keluk3d3.js +14 -0
- package/dist/client/_nuxt/vendor/quicktype-core-cwd4x027.js +929 -0
- package/dist/client/_nuxt/vendor/shiki-01pv02w7.js +152 -0
- package/dist/client/_nuxt/vendor/unocss-fsdvaf0h.js +3 -0
- package/dist/client/_nuxt/vendor/unocss.css-3gd0e2sv.css +1 -0
- package/dist/client/_nuxt/vendor/vis-ouq45gnp.js +26 -0
- package/dist/client/_nuxt/vendor/xterm-cvosq9c2.js +36 -0
- package/dist/client/_nuxt/vendor/xterm.css-iojkbpwx.css +1 -0
- package/dist/client/_nuxt/virtual-files-owejwl2p.js +1 -0
- package/dist/client/_nuxt/virtual-files.css-l97kh4kx.css +1 -0
- package/dist/client/_nuxt/vue-devtools-j49ii2m7.js +3 -0
- package/dist/client/_nuxt/vue-virtual-scroller.esm-oox0igtv.js +2 -0
- package/dist/client/discovery/index.html +3 -3
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/function-metrics-helpers.js +1 -1
- package/dist/webcomponents/index.mjs +397 -395
- package/package.json +33 -33
- package/dist/client/_nuxt/__blank-lxstpk89.js +0 -1
- package/dist/client/_nuxt/analyze-build-ld9zydqz.js +0 -1
- package/dist/client/_nuxt/assets-b4nq46c6.js +0 -16
- package/dist/client/_nuxt/builds/meta/80c07fc4-dd63-46cf-8615-791c11a8cd6d.json +0 -1
- package/dist/client/_nuxt/client-c6aoxv2l.js +0 -1
- package/dist/client/_nuxt/code-diff-li4lnfub.js +0 -8
- package/dist/client/_nuxt/code-snippets-gyl3bqgb.js +0 -1
- package/dist/client/_nuxt/color-mt9xuhgy.js +0 -1
- package/dist/client/_nuxt/components-h1e7a05n.js +0 -1
- package/dist/client/_nuxt/composable-item-gqqnydns.js +0 -1
- package/dist/client/_nuxt/constants-b32h69zq.js +0 -1
- package/dist/client/_nuxt/custom-_name_-nz911udu.js +0 -1
- package/dist/client/_nuxt/data-schema-button-euw6cc96.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-ituotm78.js +0 -2
- package/dist/client/_nuxt/debug-pa6fp41a.js +0 -1
- package/dist/client/_nuxt/default-h2avz4vm.js +0 -1
- package/dist/client/_nuxt/detblamc.js +0 -5
- package/dist/client/_nuxt/duration-display-f44008lc.js +0 -1
- package/dist/client/_nuxt/entry.css-isd0m9wk.css +0 -1
- package/dist/client/_nuxt/error-404-gjte2279.js +0 -1
- package/dist/client/_nuxt/error-404.css-fede2tas.css +0 -1
- package/dist/client/_nuxt/error-500-bi9972ec.js +0 -1
- package/dist/client/_nuxt/error-500.css-m89l6mhd.css +0 -1
- package/dist/client/_nuxt/error-cv2sq74j.js +0 -9
- package/dist/client/_nuxt/filepath-item-f2iy8phl.js +0 -1
- package/dist/client/_nuxt/full-jx9nmllz.js +0 -1
- package/dist/client/_nuxt/help-fab-izt1nioe.js +0 -1
- package/dist/client/_nuxt/hooks-lbx1vti7.js +0 -1
- package/dist/client/_nuxt/imports-bj355rl7.js +0 -1
- package/dist/client/_nuxt/index-j95fw8zr.js +0 -1
- package/dist/client/_nuxt/index-jc4yj4to.js +0 -1
- package/dist/client/_nuxt/launch-page-gkflizue.js +0 -1
- package/dist/client/_nuxt/modules-fft43nho.js +0 -1
- package/dist/client/_nuxt/nbadge-dv1e6eny.js +0 -1
- package/dist/client/_nuxt/ncheckbox-dg5nbt1d.js +0 -1
- package/dist/client/_nuxt/ncode-block-esxkr86l.js +0 -2
- package/dist/client/_nuxt/ncode-block.css-lvdc77tw.css +0 -1
- package/dist/client/_nuxt/ndrawer-j5h6fmbh.js +0 -1
- package/dist/client/_nuxt/ndropdown-gskb7sy5.js +0 -1
- package/dist/client/_nuxt/nicon-title-n11g9rad.js +0 -1
- package/dist/client/_nuxt/nlink-cmgg7q58.js +0 -1
- package/dist/client/_nuxt/nmarkdown-pb9g5o14.js +0 -1
- package/dist/client/_nuxt/nnavbar-eqdsa2v0.js +0 -1
- package/dist/client/_nuxt/none-dc7ztwm7.js +0 -1
- package/dist/client/_nuxt/nsection-block-owu5vx1c.js +0 -1
- package/dist/client/_nuxt/nselect-h7b4tp2d.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-b4x1017q.js +0 -1
- package/dist/client/_nuxt/nswitch-ikgdy16r.js +0 -1
- package/dist/client/_nuxt/open-graph-dxecn0or.js +0 -3
- package/dist/client/_nuxt/open-graph.css-me89qec1.css +0 -1
- package/dist/client/_nuxt/overview-buzsu6r5.js +0 -1
- package/dist/client/_nuxt/pages-gcxbcwey.js +0 -1
- package/dist/client/_nuxt/payload-kfckbr17.js +0 -1
- package/dist/client/_nuxt/pinia-n9hn8l5t.js +0 -1
- package/dist/client/_nuxt/plugins-ba6gkr5q.js +0 -1
- package/dist/client/_nuxt/render-tree-ibqqcfq3.js +0 -1
- package/dist/client/_nuxt/runtime-configs-cs6szovw.js +0 -1
- package/dist/client/_nuxt/server-discovery-d71ifv8y.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-ewvvpkab.js +0 -1
- package/dist/client/_nuxt/server-routes-nfdqer0z.js +0 -9
- package/dist/client/_nuxt/server-tasks-cz5pdbq6.js +0 -1
- package/dist/client/_nuxt/settings-n3uw9wos.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-hxyb5x3b.js +0 -1
- package/dist/client/_nuxt/state-components-jdafqa4i.js +0 -1
- package/dist/client/_nuxt/state-editor-baqu4p5i.js +0 -1
- package/dist/client/_nuxt/state-modules-kxdkrymq.js +0 -1
- package/dist/client/_nuxt/storage-hjoakplq.js +0 -1
- package/dist/client/_nuxt/terminals-k1y9pocq.js +0 -1
- package/dist/client/_nuxt/timeline-jsqf45u3.js +0 -31
- package/dist/client/_nuxt/timeline.css-otdwftpy.css +0 -1
- package/dist/client/_nuxt/unocss-runtime-e4jesdoo.js +0 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-ho2zu772.js +0 -3867
- package/dist/client/_nuxt/vendor/json-editor-vue.css-f8ezrn37.css +0 -1
- package/dist/client/_nuxt/vendor/markdown-it-fvu08dbs.js +0 -16
- package/dist/client/_nuxt/vendor/quicktype-core-jsgpnknz.js +0 -955
- package/dist/client/_nuxt/vendor/shiki-g7cm1eew.js +0 -152
- package/dist/client/_nuxt/vendor/unocss-b6xarsb2.js +0 -3
- package/dist/client/_nuxt/vendor/unocss.css-c5u30s53.css +0 -1
- package/dist/client/_nuxt/vendor/vis-lxvjz9wh.js +0 -26
- package/dist/client/_nuxt/vendor/xterm-nmc0lagr.js +0 -9
- package/dist/client/_nuxt/vendor/xterm.css-g1ekxkss.css +0 -1
- package/dist/client/_nuxt/virtual-files-bh5xq2f0.js +0 -1
- package/dist/client/_nuxt/virtual-files.css-gqpg2wnb.css +0 -1
- package/dist/client/_nuxt/vue-devtools-eqo8l0nw.js +0 -2
- package/dist/client/_nuxt/vue-virtual-scroller.esm-c1c6kquq.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Dt as e,Mt as t}from"./vendor/json-editor-vue-ml09by3o.js";var n,r=[];function i(e){if(r.push(e),!(typeof window>`u`))return window.__NUXT_DEVTOOLS__&&r.forEach(e=>e(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,`__NUXT_DEVTOOLS__`,{set(e){e&&r.forEach(t=>t(e))},get(){return n.value},configurable:!0}),()=>{r.splice(r.indexOf(e),1)}}function a(){n||(n=e(),i(a));function r(){n&&t(n)}function a(e){n.value=e,e.host&&e.host.hooks.hook(`host:update:reactivity`,r)}return n}const o=a();export{o as t};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{D as e,G as t,H as n,_ as r,h as i,wt as a}from"./vendor/json-editor-vue-ml09by3o.js";import{gn as o}from"#entry";import{t as s}from"./ncode-block-kdtjcgup.js";var c=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends c{};function l(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function u(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function d(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function f(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function p(e,t){return d(e,t,``)}function m(e,t){return f(e,t,``)}function h(e,t){return t.slice(0,g(e,t))}function g(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function _(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function v(e){let t=e.match(/^\s*/);return t?t[0]:``}var y=`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}`,b=RegExp(`[${y}]+|\\s+|[^${y}]`,`ug`);new class extends c{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=Array.from(r.segment(e),e=>e.segment)}else n=e.match(b)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&x(n,i,r,e),n=e,r=null,i=null)}),(r||i)&&x(n,i,r,null),e}};function x(e,t,n,r){if(t&&n){let i=v(t.value),a=_(t.value),o=v(n.value),s=_(n.value);if(e){let r=l(i,o);e.value=f(e.value,o,r),t.value=p(t.value,r),n.value=p(n.value,r)}if(r){let e=u(a,s);r.value=d(r.value,s,e),t.value=m(t.value,e),n.value=m(n.value,e)}}else if(n){if(e){let e=v(n.value);n.value=n.value.substring(e.length)}if(r){let e=v(r.value);r.value=r.value.substring(e.length)}}else if(e&&r){let n=v(r.value),i=v(t.value),a=_(t.value),o=l(n,i);t.value=p(t.value,o);let s=u(p(n,o),a);t.value=m(t.value,s),r.value=d(r.value,n,s),e.value=f(e.value,n,n.slice(0,n.length-s.length))}else if(r){let e=v(r.value),n=h(_(t.value),e);t.value=m(t.value,n)}else if(e){let n=h(_(e.value),v(t.value));t.value=p(t.value,n)}}new class extends c{tokenize(e){let t=RegExp(`(\\r?\\n)|[${y}]+|[^\\S\\n\\r]+|[^${y}]`,`ug`);return e.match(t)||[]}};const S=new class extends c{constructor(){super(...arguments),this.tokenize=w}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
2
|
+
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
3
|
+
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
4
|
+
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
5
|
+
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function C(e,t,n){return S.diff(e,t,n)}function w(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
6
|
+
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function T(e){return e==`.`||e==`!`||e==`?`}new class extends c{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(T(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends c{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends c{constructor(){super(...arguments),this.tokenize=w}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(E(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function E(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=E(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=E(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends c{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var D=e({__name:`CodeDiff`,props:{from:{},to:{},lang:{}},setup(e){let c=e;function l(e,t){let n=C(e.trim(),t.trim()),r=[],i=[],a=[];for(let e of n){let t=e.value.trimEnd().split(`
|
|
7
|
+
`);for(let n of t)e.added?(r.push(a.length),a.push(n)):(e.removed&&i.push(a.length),a.push(n))}return{added:r,removed:i,result:a.join(`
|
|
8
|
+
`)}}let u=i(()=>l(c.from,c.to));function d(e){let t=0;return e.replace(/class="shiki/,`class="shiki diff`).replace(/class="line"/g,e=>(t++,u.value.added.includes(t-1)?`class="line line-added"`:u.value.removed.includes(t-1)?`class="line line-removed"`:e))}let f=a();n(p);function p(){let e=o(f);e&&e.querySelector(`.line-added,.line-removed`)?.scrollIntoView()}return(n,i)=>{let a=s;return t(),r(a,{ref_key:`elRef`,ref:f,code:u.value.result,lang:e.lang,"transform-rendered":d,onLoaded:p},null,8,[`code`,`lang`])}}}),O=Object.assign(D,{__name:`CodeDiff`});export{O as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,D as t,Dt as n,G as r,Nt as i,T as a,X as o,_ as s,ft as c,g as l,h as u,l as d,nn as f,ut as p,v as m,w as h,y as g}from"./vendor/json-editor-vue-ml09by3o.js";import{_,k as v}from"#entry";import{t as y}from"./ncode-block-kdtjcgup.js";var b={key:0,relative:``,"n-code-block":``},x={flex:`~ wrap`,"w-full":``},S=[`onClick`],C={flex:`~ gap-2`,px3:``,pb3:``,n:`sm primary`},w=t({__name:`CodeSnippets`,props:{codeSnippets:{},eventType:{}},setup(t){let w=t,T=n(w.codeSnippets[0]),E=_(),D=u(()=>T.value?.lang||`text`);return p(()=>{w.codeSnippets.includes(T.value)||(T.value=w.codeSnippets[0])}),(n,u)=>{let p=y,_=v;return t.codeSnippets.length?(r(),g(`div`,b,[l(`div`,x,[(r(!0),g(d,null,o(t.codeSnippets,(t,n)=>(r(),g(`button`,{key:n,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:e(t===T.value?``:`border-b`),onClick:e=>T.value=t},[l(`div`,{class:e(t===T.value?``:`op30`),"font-mono":``},f(t.name),3)],10,S))),128)),u[1]||=l(`div`,{border:`b base`,"flex-auto":``},null,-1)]),T.value?(r(),g(d,{key:0},[a(p,{code:T.value.code,lang:D.value,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`,`lang`]),l(`div`,C,[a(_,{icon:`carbon-copy`,onClick:u[0]||=e=>i(E)(T.value.code,t.eventType||`code-snippet-${T.value.name}`)},{default:c(()=>[...u[2]||=[h(` Copy `,-1)]]),_:1}),T.value?.docs?(r(),s(_,{key:0,to:T.value.docs,target:`_blank`,icon:`carbon-catalog`},{default:c(()=>[...u[3]||=[h(` Docs `,-1)]]),_:1},8,[`to`])):m(``,!0)])],64)):m(``,!0)])):m(``,!0)}}}),T=Object.assign(w,{__name:`CodeSnippets`});export{T as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t=65,n=50,r=1){let i=0;for(let t=0;t<e.length;t++)i=e.charCodeAt(t)+((i<<5)-i);return`hsla(${i%360}, ${t}%, ${n}%, ${r})`}export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,$t as t,D as n,Dt as r,F as i,G as a,H as o,Nt as s,Q as c,T as l,X as u,Z as d,_ as f,et as p,ft as m,g as h,h as g,l as _,lt as v,nn as y,pt as b,v as x,w as S,wt as C,y as w,yt as T}from"./vendor/json-editor-vue-ml09by3o.js";import"./vendor/shiki-01pv02w7.js";import{$t as E,Dt as ee,E as D,Ft as O,Lt as k,N as A,Vt as j,_ as M,_t as N,bt as P,j as F,k as I,kn as te,s as L,tn as R,wt as ne}from"#entry";import{t as re}from"./ndrawer-f422gy3v.js";import{t as z}from"./composables-g8w9dpc0.js";import{t as B}from"./ncheckbox-btor8x5f.js";import{t as V}from"./filepath-item-jelkqn52.js";import{t as H}from"./help-fab-hsmyadfc.js";import{t as U}from"./nnavbar-h40011d7.js";import{t as W}from"./nicon-title-otd5t7iw.js";import{t as G}from"./nsection-block-cx50x3ui.js";import{n as K}from"./constants-opnqtuov.js";import{n as q}from"./dist-k9rc0n5t.js";import{t as J}from"./nbadge-be0uvjcc.js";import{n as Y,t as X}from"./vendor/vis-ouq45gnp.js";import{t as ie}from"./nselect-tabs-gqdvhqhx.js";import{n as ae,t as oe}from"./state-components-eaxfnxiz.js";var se={},ce={class:`markdown-body`};function le(e,t){return a(),w(`div`,ce,[...t[0]||=[h(`template`,null,[h(`div`,{class:`markdown-body`},[h(`h1`,null,`Components`),h(`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.`),h(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),h(`p`,null,[h(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var ue=A(se,[[`render`,le]]),de={"text-sm":``,"font-mono":``},fe=n({__name:`ComponentName`,props:{component:{}},setup(e){let t=e,n=g(()=>t.component.pascalName||q(t.component.name||t.component.__name||t.component.kebabName||``));return(e,t)=>(a(),w(`code`,de,[t[0]||=h(`span`,{mr1:``,op20:``},`<`,-1),S(y(n.value),1),t[1]||=h(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),Z=Object.assign(fe,{__name:`ComponentName`}),pe={flex:`~ col gap1`,"items-start":``,"of-hidden":``},Q={flex:`~ gap2 items-center`,px3:``},me={px3:``,pb2:``},he={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ge={"text-sm":``},_e={"text-primary":``},ve={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},ye={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},be={"text-sm":``},xe={"text-primary":``},Se={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},Ce=n({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=g(()=>t.component.pascalName||q(t.component.name||t.component.__name||t.component.kebabName||``)),r=g(()=>t.component.filePath||t.component.file||t.component.__file||``),i=M();return(t,o)=>{let c=Z,p=I,g=J,v=V;return a(),w(`div`,pe,[h(`div`,Q,[l(c,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(a(),f(p,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:m(()=>[...o[1]||=[S(` Docs `,-1)]]),_:1},8,[`to`])):x(``,!0),l(p,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:o[0]||=e=>s(i)(`<${n.value}></${n.value}>`,`component-name`)},{default:m(()=>[...o[2]||=[S(` Copy `,-1)]]),_:1}),e.component.global?(a(),f(g,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):x(``,!0)]),h(`div`,me,[r.value?(a(),f(v,{key:0,filepath:r.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):x(``,!0)]),e.dependents?(a(),w(`div`,he,[h(`div`,ge,[h(`strong`,_e,y(e.dependents.length),1),o[3]||=h(`span`,{op50:``},` references`,-1)]),e.dependents.length?(a(),w(`div`,ve,[(a(!0),w(_,null,u(e.dependents,e=>(a(),f(v,{key:e,filepath:e},null,8,[`filepath`]))),128))])):x(``,!0)])):x(``,!0),e.dependencies?(a(),w(`div`,ye,[h(`div`,be,[h(`strong`,xe,y(e.dependencies.length),1),o[4]||=h(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(a(),w(`div`,Se,[(a(!0),w(_,null,u(e.dependencies,e=>(a(),f(v,{key:e,filepath:e},null,8,[`filepath`]))),128))])):x(``,!0)])):x(``,!0),d(t.$slots,`default`)])}}}),$=Object.assign(Ce,{__name:`ComponentDetails`}),we={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},Te={relative:``,"h-full":``,"w-full":``},Ee={key:0,py4:``,pt3:``,flex:`~ col`},De={border:`t base`,p4:``},Oe=n({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(e){let t=e,n=C(),i=C(),c=E(),u=r(),f=ee(),p=ne(),y=P(),{componentsGraphShowNodeModules:b,componentsGraphShowGlobalComponents:O,componentsGraphShowPages:k,componentsGraphShowLayouts:A,componentsGraphShowWorkspace:j}=N(`ui`),M=C(),F=C(``),L=te(F,300),R=g(()=>{let e=t.relationships||[];if(M.value){let t=new Set;function n(r){!r||t.has(r)||(t.add(r),r.deps.forEach(t=>{n(e.find(e=>e.id===t))}))}return n(M.value),Array.from(t)}return e}),z=g(()=>{let e=R.value.map(e=>{let n=t.components.find(t=>t.filePath===e.id),r=f.value?.find(t=>t.file===e.id),i=y.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:n?n.global?`global`:`user`:i?`layout`:r?`page`:`unknown`;if(!b.value&&a===`lib`||!k.value&&a===`page`||!A.value&&a===`layout`||!j.value&&a===`user`&&p.value&&!e.id.startsWith(p.value.rootDir)||!O.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=L.value&&!e.id.toLowerCase().includes(L.value.toLowerCase());return{id:e.id,label:G(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:c.value===`dark`?`white`:`black`},color:s?`#8885`:M.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:n,page:r,layout:i,relationship:e}}}).filter(e=>!!e),n=R.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new Y(e),edges:n}}),V=g(()=>u.value?.component?(t.relationships?.find(e=>e.id===u.value?.component?.filePath)?.deps)?.map(e=>t.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),H=g(()=>u.value?.component?(t.relationships?.filter(e=>e.deps.includes(u.value.component.filePath)))?.map(e=>t.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);o(()=>{let e=new X(n.value,z.value,{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.on(`click`,e=>{let t=e.nodes?.[0];u.value=z.value.nodes.get(t).extra}),v(z,()=>{e.setData(z.value)})});function W(){u.value=void 0}function G(e){let n=t.components.find(t=>t.filePath===e);return n?n.pascalName:e.replace(/.*\/components\//,``).replace(/\.vue$/,``).replace(/\/index$/,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function K(){M.value=u.value?.relationship,u.value=void 0}return(e,t)=>{let r=B,o=U,c=D,f=$,p=I,g=re;return a(),w(_,null,[l(o,{ref_key:`navbar`,ref:i,search:F.value,"onUpdate:search":t[6]||=e=>F.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:m(()=>[h(`div`,we,[l(r,{modelValue:s(k),"onUpdate:modelValue":t[0]||=e=>T(k)?k.value=e:null,n:`primary sm`},{default:m(()=>[...t[8]||=[h(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),l(r,{modelValue:s(A),"onUpdate:modelValue":t[1]||=e=>T(A)?A.value=e:null,n:`primary sm`},{default:m(()=>[...t[9]||=[h(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),l(r,{modelValue:s(j),"onUpdate:modelValue":t[2]||=e=>T(j)?j.value=e:null,n:`primary sm`},{default:m(()=>[...t[10]||=[h(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),l(r,{modelValue:s(b),"onUpdate:modelValue":t[3]||=e=>T(b)?b.value=e:null,n:`primary sm`},{default:m(()=>[...t[11]||=[h(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),l(r,{modelValue:s(O),"onUpdate:modelValue":t[4]||=e=>T(O)?O.value=e:null,n:`primary sm`},{default:m(()=>[...t[12]||=[h(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),M.value?(a(),w(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:t[5]||=e=>M.value=void 0},[...t[13]||=[S(` Clear filter `,-1),h(`div`,{"i-carbon-close":``},null,-1)]])):x(``,!0),t[14]||=h(`div`,{"flex-auto":``},null,-1),d(e.$slots,`default`)]),_:3},8,[`search`]),h(`div`,Te,[h(`div`,{ref_key:`container`,ref:n,"h-full":``,"w-full":``},null,512),l(c,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:m(()=>[...t[15]||=[h(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[h(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),h(`div`,{op50:``},` Component `),h(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),h(`div`,{op50:``},` Global Component `),h(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),h(`div`,{op50:``},` Page `),h(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[h(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),h(`div`,{op50:``},` Layout `),h(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),h(`div`,{op50:``},` Library Component `),h(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),h(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),l(g,{"model-value":!!(u.value&&u.value.component),top:i.value,border:`t l base`,"w-80":``,onClose:W},{default:m(()=>[u.value&&u.value.component?(a(),w(`div`,Ee,[l(f,{component:u.value.component,dependencies:V.value,dependents:H.value},null,8,[`component`,`dependencies`,`dependents`]),h(`div`,De,[l(p,{n:`primary solid`,onClick:t[7]||=e=>K()},{default:m(()=>[...t[16]||=[S(` Filter to this component `,-1)]]),_:1})])])):x(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),ke=Object.assign(Oe,{__name:`ComponentsGraph`}),Ae={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},je={key:0,"ml--1":``,"text-primary":``},Me=n({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=g(()=>n.component.filePath||n.component.file||n.component.__file||``);return(n,i)=>{let o=Z,s=$,u=c(`VDropdown`),p=J,g=V;return a(),w(`div`,Ae,[l(u,null,{popper:m(()=>[l(s,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:m(()=>[h(`button`,{"hover:text-primary":``,class:t(e.dependents&&e.dependents.length===0?`op50`:``)},[l(o,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(a(),w(`sup`,je,` x`+y(e.dependents?.length),1)):x(``,!0),e.component.global?(a(),f(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):x(``,!0),d(n.$slots,`default`),r.value?(a(),f(g,{key:2,filepath:r.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):x(``,!0)])}}}),Ne=Object.assign(Me,{__name:`ComponentItem`}),Pe={flex:`~ gap-2 items-center`},Fe={pl4:``},Ie=n({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let t=e,n=C(``),r=C(`all`),o=g(()=>{let e=t.components.map(e=>O(e,t.relationships));return r.value===`using`?e.filter(e=>e.dependents?.length):r.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),c={ClientOnly:`https://nuxt.com/docs/api/components/client-only`,DevOnly:`https://nuxt.com/docs/api/components/dev-only`,NuxtClientFallback:`https://nuxt.com/docs/api/components/nuxt-client-fallback`,NuxtPicture:`https://nuxt.com/docs/api/components/nuxt-picture`,NuxtRouteAnnouncer:`https://nuxt.com/docs/api/components/nuxt-route-announcer`,NuxtTime:`https://nuxt.com/docs/api/components/nuxt-time`,NuxtPage:`https://nuxt.com/docs/api/components/nuxt-page`,NuxtLayout:`https://nuxt.com/docs/api/components/nuxt-layout`,NuxtLink:`https://nuxt.com/docs/api/components/nuxt-link`,NuxtLoadingIndicator:`https://nuxt.com/docs/api/components/nuxt-loading-indicator`,NuxtErrorBoundary:`https://nuxt.com/docs/api/components/nuxt-error-boundary`,NuxtWelcome:`https://nuxt.com/docs/api/components/nuxt-welcome`,NuxtIsland:`https://nuxt.com/docs/api/components/nuxt-island`,NuxtImg:`https://nuxt.com/docs/api/components/nuxt-img`},p=g(()=>new L(o.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),v=g(()=>{let e=[],t=new Map,r=[],i=[],a={user:0,lib:0,builtin:0,runtime:0};return(n.value?p.value.search(n.value).map(e=>e.item):o.value).forEach(n=>{let o=n.component;if(o.filePath&&j(o.filePath)){let e=k(o.filePath);if(!e)return;e===`nuxt`?(o.meta??={},o.meta.docs??=c?.[o.pascalName],r.push(n),a.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(n),a.lib++)}else o.global&&!o.filePath?(i.push(n),a.runtime++):(e.push(n),a.user++)}),{count:a,user:e,builtin:r,lib:t,runtime:i}});return(e,t)=>{let o=F,c=ie,p=U,g=Ne,y=G,b=W;return a(),w(_,null,[l(p,{search:n.value,"onUpdate:search":t[1]||=e=>n.value=e,pb3:``},{actions:m(()=>[d(e.$slots,`default`)]),default:m(()=>[h(`div`,Pe,[l(o,{icon:`carbon-filter`,op50:``}),l(c,{modelValue:r.value,"onUpdate:modelValue":t[0]||=e=>r.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`])])]),_:3},8,[`search`]),v.value.user.length?(a(),f(y,{key:0,icon:`carbon-nominal`,text:`User components`,open:v.value.user.length<=s(50),description:`Total components: ${v.value.count.user}`},{default:m(()=>[(a(!0),w(_,null,u(v.value.user,e=>(a(),f(g,i({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):x(``,!0),v.value.runtime.length?(a(),f(y,{key:1,icon:`carbon-load-balancer-global`,open:v.value.runtime.length<=s(50),text:`Runtime components`,description:`Total components: ${v.value.count.runtime}`},{default:m(()=>[(a(!0),w(_,null,u(v.value.runtime,e=>(a(),f(g,i({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):x(``,!0),v.value.builtin.length?(a(),f(y,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${v.value.count.builtin}`},{default:m(()=>[(a(!0),w(_,null,u(v.value.builtin,e=>(a(),f(g,i({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):x(``,!0),v.value.lib.size?(a(),f(y,{key:3,open:v.value.count.lib<=s(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${v.value.count.lib} components from ${v.value.lib.size} packages`},{default:m(()=>[(a(!0),w(_,null,u(v.value.lib.entries(),([e,t])=>(a(),w(`div`,{key:e,"ml-2":``},[l(b,{text:`${e} (${t.length})`,py1:``,op50:``},null,8,[`text`]),h(`div`,Fe,[(a(!0),w(_,null,u(t,e=>(a(),f(g,i({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):x(``,!0)],64)}}}),Le=Object.assign(Ie,{__name:`ComponentsList`}),Re={relative:``,"h-full":``,"of-auto":``},ze={"flex-none":``,flex:`~ gap3`},Be=n({__name:`components`,setup(t){let n=R(),r=oe(),i=ae(),{componentsView:o}=N(`ui`);function c(){n.value?.inspector?.enable()}function u(){o.value=o.value===`list`?`graph`:`list`}return(t,d)=>{let g=I,v=ue,y=H,S=e(`tooltip`);return a(),w(_,null,[h(`div`,Re,[(a(),f(p(s(o)===`list`?Le:ke),{components:s(r),relationships:s(i)},{default:m(()=>[h(`div`,ze,[b(l(g,{"text-lg":``,border:!1,icon:s(o)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:u},null,8,[`icon`]),[[S,`Toggle View`,void 0,{"bottom-end":!0}]]),s(n)?.inspector?.isAvailable?b((a(),f(g,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:c},null,512)),[[S,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):x(``,!0)])]),_:1},8,[`components`,`relationships`]))]),l(y,null,{default:m(()=>[l(v)]),_:1})],64)}}});export{Be as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,D as t,G as n,Nt as r,Q as i,T as a,X as o,_ as s,ft as c,g as l,h as u,l as d,nn as f,v as p,w as m,y as h}from"./vendor/json-editor-vue-ml09by3o.js";import{_ as g,j as _,k as v,v as y}from"#entry";import{t as b}from"./filepath-item-jelkqn52.js";import{t as x}from"./constants-opnqtuov.js";import{t as S}from"./dist-k9rc0n5t.js";import{t as C}from"./nmarkdown-bofr01ux.js";var w={rounded:``,"font-mono":``},T={key:0,"text-primary":``},E={key:0},D={title:`Vue Directive`},O={"max-w-100":``},k={px4:``,py3:``,"text-sm":``},A={flex:`~ gap2`,n:`primary xs`},j={border:`t base`,"max-h-60":``,"of-auto":``,px4:``,py3:``},M={"text-sm":``},N={"text-primary":``},P={flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},F={key:1,"text-sm":``,op50:``},I=t({__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(t){let I=t,L=g(),R=y(),z=u(()=>I.item.as||I.item.name),B=u(()=>{let e=z.value;return I.isDirective&&(e[0]!==`v`&&(e=`v${e}`),e=S(e)),e}),V=u(()=>I.metadata?.injectionUsage?.[z.value]?.count||0),H=u(()=>(I.metadata?.injectionUsage?.[z.value]?.moduleIds||[]).filter(e=>!e.endsWith(`?macro=true`))),U=u(()=>I.item.meta?.docsUrl?I.item.meta.docsUrl:[`nuxt`,`#app`,`nuxt3`].includes(I.item.from)?x.nuxt[I.item.name]:I.item.from===`vue`?x.vue[I.item.name]:null);return(u,g)=>{let y=_,x=C,S=v,W=b,G=i(`VDropdown`);return n(),s(G,{disabled:!I.metadata},{popper:c(()=>[l(`div`,O,[l(`div`,k,[t.item.meta?.description?(n(),s(x,{key:0,tag:`div`,pb3:``,"text-sm":``,markdown:t.item.meta.description},null,8,[`markdown`])):p(``,!0),l(`div`,A,[a(S,{icon:`carbon-copy`,onClick:g[0]||=e=>r(L)(B.value,`imports-name`)},{default:c(()=>[...g[2]||=[m(` Copy `,-1)]]),_:1}),t.filepath?(n(),s(S,{key:0,icon:`carbon-code`,onClick:g[1]||=e=>t.filepath&&r(R)(t.filepath)},{default:c(()=>[...g[3]||=[m(` Source `,-1)]]),_:1})):p(``,!0),U.value?(n(),s(S,{key:1,icon:`carbon-catalog`,to:U.value,target:`_blank`},{default:c(()=>[...g[4]||=[m(` Docs `,-1)]]),_:1},8,[`to`])):p(``,!0)])]),l(`div`,j,[V.value?(n(),h(d,{key:0},[l(`div`,M,[g[5]||=l(`span`,{op50:``},`It has been referenced `,-1),l(`strong`,N,f(V.value),1),g[6]||=l(`span`,{op50:``},` times by:`,-1)]),l(`div`,P,[(n(!0),h(d,null,o(H.value,e=>(n(),s(W,{key:e,filepath:e},null,8,[`filepath`]))),128))])],64)):(n(),h(`div`,F,` Not in use via auto import. `))])])]),default:c(()=>[l(`button`,{"hover:text-primary":``,class:e([t.metadata&&!V.value?`op30 hover:op100`:``,t.classes])},[l(`code`,w,[m(f(z.value)+` `,1),V.value&&t.counter?(n(),h(`sup`,T,`x`+f(V.value),1)):p(``,!0)]),t.isDirective?(n(),h(`sup`,E,[l(`abbr`,D,[a(y,{icon:`tabler:hexagon-letter-d`})])])):p(``,!0)],2)]),_:1},8,[`disabled`])}}}),L=Object.assign(I,{__name:`ComposableItem`});export{L as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=e=>{};export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=50,t={nuxt:{useAppConfig:`https://nuxt.com/docs/api/composables/use-app-config`,useAsyncData:`https://nuxt.com/docs/api/composables/use-async-data`,useCookie:`https://nuxt.com/docs/api/composables/use-cookie`,useError:`https://nuxt.com/docs/api/composables/use-error`,useFetch:`https://nuxt.com/docs/api/composables/use-fetch`,useHead:`https://nuxt.com/docs/api/composables/use-head`,useHeadSafe:`https://nuxt.com/docs/api/composables/use-head-safe`,useLazyAsyncData:`https://nuxt.com/docs/api/composables/use-lazy-async-data`,useLazyFetch:`https://nuxt.com/docs/api/composables/use-lazy-fetch`,useNuxtApp:`https://nuxt.com/docs/api/composables/use-nuxt-app`,useRoute:`https://nuxt.com/docs/api/composables/use-route`,useRouter:`https://nuxt.com/docs/api/composables/use-router`,useRuntimeConfig:`https://nuxt.com/docs/api/composables/use-runtime-config`,useState:`https://nuxt.com/docs/api/composables/use-state`,$fetch:`https://nuxt.com/docs/api/utils/dollarfetch`,abortNavigation:`https://nuxt.com/docs/api/utils/abort-navigation`,createError:`https://nuxt.com/docs/api/utils/create-error`,defineNuxtComponent:`https://nuxt.com/docs/api/utils/define-nuxt-component`,definePageMeta:`https://nuxt.com/docs/api/utils/define-page-meta`,navigateTo:`https://nuxt.com/docs/api/utils/navigate-to#navigateto`,onBeforeRouteLeave:`https://nuxt.com/docs/api/utils/on-before-route-leave`,onBeforeRouteUpdate:`https://nuxt.com/docs/api/utils/on-before-route-update`,updateAppConfig:`https://nuxt.com/docs/api/utils/update-app-config`},vue:{ref:`https://vuejs.org/api/reactivity-core.html#ref`,computed:`https://vuejs.org/api/reactivity-core.html#computed`,reactive:`https://vuejs.org/api/reactivity-core.html#reactive`,watch:`https://vuejs.org/api/reactivity-core.html#watch`,watchEffect:`https://vuejs.org/api/reactivity-core.html#watcheffect`,watchPostEffect:`https://vuejs.org/api/reactivity-core.html#watchposteffect`,watchSyncEffect:`https://vuejs.org/api/reactivity-core.html#watchsynceffect`,onMounted:`https://vuejs.org/api/composition-api-lifecycle.html#onmounted`,onUnmounted:`https://vuejs.org/api/composition-api-lifecycle.html#onunmounted`,onActivated:`https://vuejs.org/api/composition-api-lifecycle.html#onactivated`,onDeactivated:`https://vuejs.org/api/composition-api-lifecycle.html#ondeactivated`,onBeforeMount:`https://vuejs.org/api/composition-api-lifecycle.html#onbeforemount`,onBeforeUnmount:`https://vuejs.org/api/composition-api-lifecycle.html#onbeforeunmount`,onUpdated:`https://vuejs.org/api/composition-api-lifecycle.html#onupdated`,onBeforeUpdate:`https://vuejs.org/api/composition-api-lifecycle.html#onbeforeupdate`,nextTick:`https://vuejs.org/api/general.html#nexttick`}},n={snippet:`i-carbon-code`,headers:`i-carbon-html-reference`,cookies:`i-carbon-cookie`,params:`i-carbon-text-selection`,query:`i-carbon-help`,body:`i-carbon-document`};export{e as n,n as r,t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,G as t,H as n,I as r,Nt as i,St as a,T as o,U as s,_ as c,et as l,ft as u,g as d,h as f,nn as p,ut as m,w as h,wt as g,y as _}from"./vendor/json-editor-vue-ml09by3o.js";import"./vendor/shiki-01pv02w7.js";import{$t as v,E as y,Mn as b,Nn as x,a as S,an as C,f as w,ft as T,h as E,pt as D,sn as O,vn as k}from"#entry";import"./client-mfzdkims.js";import{t as A}from"./composables-g8w9dpc0.js";import"./nmarkdown-bofr01ux.js";import{t as j}from"./launch-page-bo5il4u2.js";var M=new Map,N=e({__name:`IframeView`,props:{tab:{}},setup(e){let i=e,o=v(),c=g(),l=f(()=>i.tab.name),u=g(),d=a(k(c));n(()=>{let e=i.tab.view,t=e.persistent!==!1,n=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(M.get(l.value)&&t)u.value=M.get(l.value),u.value.style.visibility=`visible`;else{u.value=document.createElement(`iframe`),u.value.setAttribute(`allow`,n.join(`; `)),u.value.setAttribute(`aria-label`,`Nuxt Devtools`),t&&M.set(l.value,u.value),u.value.src=e.src;try{u.value.style.opacity=`0.01`,u.value.onload=()=>{y(),p(),u.value.style.opacity=`1`}}catch{u.value.style.opacity=`1`}document.body.appendChild(u.value),r(b)}setTimeout(p,100)}),m(b),m(p),m(y),s(()=>{u.value&&(u.value.style.visibility=`hidden`)});function p(){if(!(!u.value||!u.value.contentWindow))try{let e=u.value.contentWindow.document.querySelector(`html`);e?.classList.toggle(`dark`,o.value===`dark`),e?.classList.toggle(`light`,o.value===`dark`),new MutationObserver(()=>{o.value=u.value?.contentWindow?.document.querySelector(`html`)?.classList.contains(`dark`)?`dark`:`light`}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let h=C();function y(){if(!(!u.value||!u.value.contentWindow))try{u.value.contentWindow.__NUXT_DEVTOOLS__=h.value}catch{}}function b(){u.value&&Object.assign(u.value.style,{position:`fixed`,left:`${d.left}px`,top:`${d.top}px`,width:`${d.width}px`,height:`${d.height}px`,outline:`none`})}return(e,n)=>(t(),_(`div`,{ref_key:`anchor`,ref:c,"h-full":``,"w-full":``},null,512))}}),P=Object.assign(N,{__name:`IframeView`}),F={flex:`~ col gap2`,mxa:``,"items-center":``},I={"text-xl":``},L={"text-rose":``},R=e({__name:`custom-[name]`,props:{name:{}},setup(e){let r=e,a=b(),s=x(),m=f(()=>r.name??a.params.name),g=E(),_=f(()=>g.value.find(e=>e.name===m.value));return n(()=>{_.value?_.value.requireAuth&&!T.value&&D():setTimeout(()=>{_.value||s.push(`/modules/overview`)},2e3)}),(e,n)=>{let r=w,a=S,s=P,f=j,g=y;return _.value?_.value.requireAuth&&!i(T)?(t(),c(a,{key:1})):_.value.view.type===`iframe`?(t(),c(s,{key:2,tab:_.value},null,8,[`tab`])):_.value.view.type===`vnode`?(t(),c(l(_.value.view.vnode),{key:3})):_.value.view.type===`launch`?(t(),c(f,{key:4,name:`custom-${_.value.name}`,icon:_.value.view.icon||_.value.icon,title:_.value.view.title||_.value.title,description:_.value.view.description,actions:_.value.view.actions,onAction:n[0]||=e=>i(O).customTabAction(_.value.name,e)},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(t(),c(r,{key:5},{default:u(()=>[o(g,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:u(()=>[h(` Unknown tab type `+p(_.value.view),1)]),_:1})]),_:1})):(t(),c(r,{key:0},{default:u(()=>[d(`div`,F,[n[3]||=d(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),d(`p`,I,[n[1]||=h(` Tab `,-1),d(`code`,L,p(m.value),1),n[2]||=h(` not found `,-1)]),n[4]||=d(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),n[5]||=d(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{R as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,D as t,G as n,_ as r,pt as i}from"./vendor/json-editor-vue-ml09by3o.js";import{k as a,r as o}from"#entry";var s=t({__name:`DataSchemaButton`,props:{getter:{type:Function}},setup(t){let s=o();return(o,c)=>{let l=a,u=e(`tooltip`);return i((n(),r(l,{title:`Generate Data Schema`,icon:`carbon:container-services`,border:!1,onClick:c[0]||=e=>s.value=t.getter()},null,512)),[[u,`Generate Data Schema`]])}}}),c=Object.assign(s,{__name:`DataSchemaButton`});export{c as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{D as e,G as t,Nt as n,T as r,X as i,_ as a,f as o,ft as s,g as c,h as l,l as u,lt as d,nn as f,v as p,wt as m,y as h}from"./vendor/json-editor-vue-ml09by3o.js";import"./vendor/shiki-01pv02w7.js";import{_ as g,k as _,r as v,un as y}from"#entry";import{t as b}from"./nselect-fx5o97au.js";import{t as x}from"./nswitch-jfsnhnbt.js";import{t as S}from"./ndropdown-jin6fbhg.js";import"./client-mfzdkims.js";import{t as C}from"./ncode-block-kdtjcgup.js";import{t as w}from"./ndrawer-f422gy3v.js";import{n as T,t as E}from"./vendor/quicktype-core-cwd4x027.js";var D=E(),O=T(),k={border:`b base`,flex:`~ items-center gap-2`,sticky:``,"left-0":``,"right-0":``,"top-0":``,"z-1":``,"bg-base":``,p3:``},A={key:0,flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--2":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-lime:30":``,"text-8px":``},j={flex:`~ col`,"w-100":``,"of-auto":``,py2:``},M={"text-xs":``,capitalize:``,op75:``},N=e({__name:`DataSchemaDrawer`,setup(e){let T=v(),E=m(0),N=m(`TypeScript`),P=l(()=>O.all.find(e=>e.displayName===N.value)),F=m(P.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)),I=y(async()=>{if(E.value,!T.value)return``;let e=(0,D.jsonInputForTargetLanguage)(N.value);await e.addSource({name:T.value.name??`Data`,samples:[T.value.input]});let t=new D.InputData;return t.addInput(e),(await(0,D.quicktype)({inputData:t,lang:N.value,rendererOptions:F.value?.reduce((e,t)=>(e[t.name]=t.defaultValue,e),{})})).lines.join(`
|
|
2
|
+
`)}),L=l(()=>{let e=N.value.toLocaleLowerCase();return e.startsWith(`javascript`)?`javascript`:e.startsWith(`json`)?`json`:e.startsWith(`typescript`)?`typescript`:e});d(F,()=>{E.value++},{deep:!0}),d(N,()=>{F.value=P.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)});let R=g();function z(){R(I.value||``)}return(e,l)=>{let d=b,m=_,g=x,v=S,y=C,E=w;return P.value?(t(),a(o,{key:0,to:`body`},[r(E,{"model-value":!!n(T)?.input,"auto-close":``,"max-w-screen":``,"w-2xl":``,"n-code-block":``,onClose:l[2]||=e=>T.value=null},{default:s(()=>[c(`div`,k,[l[3]||=c(`p`,{"mr-2":``},` Schema `,-1),r(d,{modelValue:N.value,"onUpdate:modelValue":l[0]||=e=>N.value=e,n:`xs primary`},{default:s(()=>[(t(!0),h(u,null,i(n(O.all),e=>(t(),h(`option`,{key:e.displayName},f(e.displayName),1))),128))]),_:1},8,[`modelValue`]),F.value?.length?(t(),a(v,{key:0,n:`sm lime`},{trigger:s(({click:e})=>[r(m,{icon:`carbon-settings`,"h-full":``,onClick:t=>e()},null,8,[`onClick`]),F.value?(t(),h(`span`,A,f(F.value.length),1)):p(``,!0)]),default:s(()=>[c(`div`,j,[(t(!0),h(u,null,i(F.value,(e,n)=>(t(),a(g,{key:e.name,modelValue:F.value[n].defaultValue,"onUpdate:modelValue":e=>F.value[n].defaultValue=e,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:s(()=>[c(`span`,M,f(e.description),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):p(``,!0),l[4]||=c(`div`,{"flex-auto":``},null,-1),r(m,{icon:`carbon-copy`,"mr-6":``,"h-full":``,onClick:l[1]||=e=>z()})]),n(I)?(t(),a(y,{key:0,lang:L.value,code:n(I)},null,8,[`lang`,`code`])):p(``,!0)]),_:1},8,[`model-value`])])):p(``,!0)}}}),P=Object.assign(N,{__name:`DataSchemaDrawer`});export{P as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,D as t,G as n,Nt as r,T as i,X as a,Z as o,_ as s,ft as c,g as l,h as u,l as d,nn as f,tn as p,v as m,w as h,wt as g,y as _}from"./vendor/json-editor-vue-ml09by3o.js";import"./vendor/shiki-01pv02w7.js";import{Tt as v,k as y}from"#entry";import"./client-mfzdkims.js";import{t as b}from"./ncode-block-kdtjcgup.js";import{t as x}from"./composables-g8w9dpc0.js";import{t as S}from"./ncheckbox-btor8x5f.js";import{t as C}from"./filepath-item-jelkqn52.js";import"./nicon-title-otd5t7iw.js";import{t as w}from"./nsection-block-cx50x3ui.js";import{t as T}from"./nbadge-be0uvjcc.js";import{t as E}from"./color-k274hmrf.js";var D=t({__name:`NBadgeHashed`,props:{text:{}},setup(e){let t=e,r=u(()=>({color:E(t.text,50,60),background:E(t.text,50,60,.05)}));return(t,i)=>(n(),s(T,{style:p(r.value)},{default:c(()=>[h(f(e.text),1),o(t.$slots,`default`)]),_:3},8,[`style`]))}}),O=Object.assign(D,{__name:`NBadgeHashed`}),k={flex:`~ gap-2 col`,mb4:``},A={flex:`~ gap-3 items-center`},j={key:0,flex:`~ gap-1`,"items-center":``,p1:``,border:`~ base rounded`},M={"max-w-full":``,"of-auto":``},N={"text-center":``,op50:``},P={flex:`~`,px4:``},F={key:0,op50:``},I={px2:``,"text-center":``},L={"of-auto":``},R=t({__name:`DebugModuleMutationRecords`,props:{moduleMutationRecords:{}},setup(t){let r=t;function o(e){return e.startsWith(`/`)||e.match(/^[a-z]:[\\/]/i)}let p=g(!1),h=g(!1),v=g(!1),x=g(!1),w=g(!1),T=g(``),E=u(()=>{let e=r.moduleMutationRecords;return p.value||(e=e.filter(e=>!e.name.startsWith(`nuxt:`)&&e.name!==`@nuxt/devtools`)),h.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.templates`)),v.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.transpile`)),x.value||(e=e.filter(e=>e.keys.join(`.`)!==`plugins`)),w.value||(e=e.filter(e=>e.method||e.value!==`[]`&&e.value!==`{}`)),T.value&&(e=e.filter(e=>e.name===T.value)),e});return(r,u)=>{let g=S,D=O,R=y,z=C,B=b;return n(),_(d,null,[l(`div`,k,[l(`div`,A,[i(g,{modelValue:p.value,"onUpdate:modelValue":u[0]||=e=>p.value=e,n:`primary`},{default:c(()=>[...u[6]||=[l(`span`,{"ws-nowrap":``,op75:``},`Builtin Modules`,-1)]]),_:1},8,[`modelValue`]),i(g,{modelValue:h.value,"onUpdate:modelValue":u[1]||=e=>h.value=e,n:`primary`},{default:c(()=>[...u[7]||=[l(`span`,{"ws-nowrap":``,op75:``},`Templates`,-1)]]),_:1},8,[`modelValue`]),i(g,{modelValue:v.value,"onUpdate:modelValue":u[2]||=e=>v.value=e,n:`primary`},{default:c(()=>[...u[8]||=[l(`span`,{"ws-nowrap":``,op75:``},`Transpile`,-1)]]),_:1},8,[`modelValue`]),i(g,{modelValue:x.value,"onUpdate:modelValue":u[3]||=e=>x.value=e,n:`primary`},{default:c(()=>[...u[9]||=[l(`span`,{"ws-nowrap":``,op75:``},`Plugins`,-1)]]),_:1},8,[`modelValue`]),i(g,{modelValue:w.value,"onUpdate:modelValue":u[4]||=e=>w.value=e,n:`primary`},{default:c(()=>[...u[10]||=[l(`span`,{"ws-nowrap":``,op75:``},`Empty Initial`,-1)]]),_:1},8,[`modelValue`]),T.value?(n(),_(`div`,j,[i(D,{"font-mono":``,text:T.value},null,8,[`text`]),i(R,{icon:`carbon-close`,border:!1,onClick:u[5]||=e=>T.value=``})])):m(``,!0)])]),l(`table`,M,[u[11]||=l(`thead`,{border:`b base`},[l(`tr`,null,[l(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Index `),l(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Module `),l(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Key Path `),l(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Method `),l(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Value `)])],-1),l(`tbody`,null,[(n(!0),_(d,null,a(E.value,r=>(n(),_(`tr`,{key:t.moduleMutationRecords.indexOf(r),border:`b dashed transparent hover:base`},[l(`td`,N,[l(`div`,null,f(t.moduleMutationRecords.indexOf(r)+1),1)]),l(`td`,null,[r.name&&o(r.name)?(n(),s(z,{key:0,filepath:r.name},null,8,[`filepath`])):(n(),s(D,{key:1,role:`button`,"font-mono":``,text:r.name,onClick:e=>T.value=r.name},null,8,[`text`,`onClick`]))]),l(`td`,null,[l(`code`,P,[(n(!0),_(d,null,a(r.keys,(e,t)=>(n(),_(d,{key:t},[l(`span`,null,f(e),1),t<r.keys.length-1?(n(),_(`span`,F,` . `)):m(``,!0)],64))),128))])]),l(`td`,I,[i(D,{"font-mono":``,text:r.method||`=`,class:e(r.method?``:`saturate-0`)},null,8,[`text`,`class`])]),l(`td`,L,[i(B,{code:String(r.value),lang:`ts`,"grammar-context-code":`let a = `,"ws-normal":``,"break-all":``,py1:``,lines:!1,inline:!0},null,8,[`code`])])]))),128))])])],64)}}}),z=Object.assign(R,{__name:`DebugModuleMutationRecords`}),B={key:0,p6:``},V={key:1},H=t({__name:`debug`,setup(e){let t=v();return(e,a)=>{let o=w;return r(t)?(n(),_(`div`,V,[i(o,{icon:`carbon-container-image-push-pull`,text:`Module Mutation Records`,description:`Records of module mutations to nuxt options`},{default:c(()=>[i(z,{"module-mutation-records":r(t).moduleMutationRecords||[]},null,8,[`module-mutation-records`])]),_:1})])):(n(),_(`div`,B,[...a[0]||=[l(`div`,null,`No Debug Context Found`,-1),l(`div`,null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)]]))}}});export{H as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as e,Z as t,g as n,y as r}from"./vendor/json-editor-vue-ml09by3o.js";import{N as i}from"#entry";var a={},o={"h-full":``,"of-auto":``,"n-panel-grids":``},s={"h-full":``,"bg-base":``};function c(i,a){return e(),r(`div`,o,[n(`div`,s,[t(i.$slots,`default`)])])}var l=i(a,[[`render`,c]]);export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=/\d/,t=[`-`,`_`,`/`,`.`];function n(t=``){if(!e.test(t))return t!==t.toLowerCase()}function r(e,r){let i=r??t,a=[];if(!e||typeof e!=`string`)return a;let o=``,s,c;for(let t of e){let e=i.includes(t);if(e===!0){a.push(o),o=``,s=void 0;continue}let r=n(t);if(c===!1){if(s===!1&&r===!0){a.push(o),o=t,s=r;continue}if(s===!0&&r===!1&&o.length>1){let e=o.at(-1);a.push(o.slice(0,Math.max(0,o.length-1))),o=e+t,s=r;continue}}o+=t,s=r,c=e}return a.push(o),a}function i(e){return e?e[0].toUpperCase()+e.slice(1):``}function a(e,t){return e?(Array.isArray(e)?e:r(e)).map(e=>i(t?.normalize?e.toLowerCase():e)).join(``):``}function o(e,t){return e?(Array.isArray(e)?e:r(e)).map(e=>e.toLowerCase()).join(t??`-`):``}export{a as n,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bn as e,Gn as t,Hn as n,Rn as r,Un as i,Vn as a,Wn as o,zn as s}from"#entry";export{r as $fetch};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,D as t,G as n,Z as r,g as i,h as a,nn as o,w as s,y as c}from"./vendor/json-editor-vue-ml09by3o.js";var l={"ml-1":``,"text-xs":``,op50:``},u=t({__name:`DurationDisplay`,props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(t){let u=t;function d(e){return u.color?e?(e*=u.factor,e<.5?`text-gray:50`:e>1e3?`text-red-400`:e>500?`text-orange-400`:e>200?`text-yellow-400`:``):`text-gray-400`:``}let f=a(()=>!u.duration||u.duration<1?[`<1`,`ms`]:u.duration<1e3?[u.duration.toFixed(0),`ms`]:u.duration<1e3*60?[(u.duration/1e3).toFixed(1),`s`]:[(u.duration/1e3/60).toFixed(1),`min`]);return(a,u)=>(n(),c(`div`,{class:e(d(t.duration))},[r(a.$slots,`before`),s(` `+o(f.value[0]),1),i(`span`,l,o(f.value[1]),1),r(a.$slots,`after`)],2))}}),d=Object.assign(u,{__name:`DurationDisplay`});export{d as t};
|