@nuxt/devtools 3.1.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chunks/module-main.mjs +8 -5
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-may67yna.js +1 -0
- package/dist/client/_nuxt/analyze-build-ezjae6pi.js +1 -0
- package/dist/client/_nuxt/assets-cctzmb3x.js +6 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/2a5ea934-38f3-42f9-8ddd-b2d868a945a1.json +1 -0
- package/dist/client/_nuxt/client-cbmkjf3j.js +1 -0
- package/dist/client/_nuxt/code-diff-dj5abiya.js +8 -0
- package/dist/client/_nuxt/code-snippets-cgl6wpax.js +1 -0
- package/dist/client/_nuxt/color-k274hmrf.js +1 -0
- package/dist/client/_nuxt/components-gbus3qqv.js +1 -0
- package/dist/client/_nuxt/composable-item-gs2iudn4.js +1 -0
- package/dist/client/_nuxt/composables-g8w9dpc0.js +1 -0
- package/dist/client/_nuxt/constants-i6giw94a.js +1 -0
- package/dist/client/_nuxt/custom-_name_-m936a9yu.js +1 -0
- package/dist/client/_nuxt/data-schema-button-j6fxaw99.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-it2972mk.js +2 -0
- package/dist/client/_nuxt/debug-i1rscwhu.js +1 -0
- package/dist/client/_nuxt/default-fb125qds.js +1 -0
- package/dist/client/_nuxt/dist-joij2tdx.js +1 -0
- package/dist/client/_nuxt/dist-k9rc0n5t.js +1 -0
- package/dist/client/_nuxt/duration-display-dhj2ifr1.js +1 -0
- package/dist/client/_nuxt/entry.css-gx482m17.css +1 -0
- package/dist/client/_nuxt/error-404-m8kh5nuw.js +1 -0
- package/dist/client/_nuxt/error-404.css-hvuilq4i.css +1 -0
- package/dist/client/_nuxt/error-500-h85n6r14.js +1 -0
- package/dist/client/_nuxt/error-500.css-jc8udnlk.css +1 -0
- package/dist/client/_nuxt/error-l968gtru.js +9 -0
- package/dist/client/_nuxt/filepath-item-osqp88cx.js +1 -0
- package/dist/client/_nuxt/full-odhn7e61.js +1 -0
- package/dist/client/_nuxt/help-fab-bhtk9hzf.js +1 -0
- package/dist/client/_nuxt/hooks-hkx6shiy.js +1 -0
- package/dist/client/_nuxt/imports-nbrcx3j5.js +1 -0
- package/dist/client/_nuxt/launch-page-fyevedb0.js +1 -0
- package/dist/client/_nuxt/lwjah63g.js +4 -0
- package/dist/client/_nuxt/modules-kh9xciqf.js +1 -0
- package/dist/client/_nuxt/nbadge-ijsj8fjy.js +1 -0
- package/dist/client/_nuxt/ncheckbox-f4a8016e.js +1 -0
- package/dist/client/_nuxt/ncode-block-j2hcqwrp.js +2 -0
- package/dist/client/_nuxt/ncode-block.css-o2ixs97j.css +1 -0
- package/dist/client/_nuxt/ndrawer-lh0r2gbb.js +1 -0
- package/dist/client/_nuxt/ndropdown-ef0253xr.js +1 -0
- package/dist/client/_nuxt/nicon-title-hrj2h1mn.js +1 -0
- package/dist/client/_nuxt/nlink-bsck6xne.js +1 -0
- package/dist/client/_nuxt/nmarkdown-ftmgc061.js +1 -0
- package/dist/client/_nuxt/nnavbar-fdsyxwr6.js +1 -0
- package/dist/client/_nuxt/none-kpcjhluv.js +1 -0
- package/dist/client/_nuxt/nsection-block-kp1wt3o4.js +1 -0
- package/dist/client/_nuxt/nselect-cmll6q59.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-dueuo8rw.js +1 -0
- package/dist/client/_nuxt/nswitch-gqy4bgn3.js +1 -0
- package/dist/client/_nuxt/open-graph-ol89f0bf.js +3 -0
- package/dist/client/_nuxt/open-graph.css-dk03m1qz.css +1 -0
- package/dist/client/_nuxt/overview-lxyqhn33.js +1 -0
- package/dist/client/_nuxt/pages-bbrpp8du.js +1 -0
- package/dist/client/_nuxt/pages-cry23sym.js +1 -0
- package/dist/client/_nuxt/payload-bhrm3gbm.js +1 -0
- package/dist/client/_nuxt/pinia-bcnuwvzr.js +1 -0
- package/dist/client/_nuxt/plugins-k9rqnu6h.js +1 -0
- package/dist/client/_nuxt/render-tree-fd08tpf3.js +1 -0
- package/dist/client/_nuxt/rolldown-runtime-oipoa1or.js +1 -0
- package/dist/client/_nuxt/runtime-configs-kagn8z75.js +1 -0
- package/dist/client/_nuxt/server-discovery-ja6p66g6.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-b6nweyxn.js +1 -0
- package/dist/client/_nuxt/server-routes-dtwlhsgf.js +7 -0
- package/dist/client/_nuxt/server-tasks-lboebplp.js +1 -0
- package/dist/client/_nuxt/settings-joqzffm3.js +1 -0
- package/dist/client/_nuxt/stacktrace-list-mphoqupg.js +1 -0
- package/dist/client/_nuxt/state-components-b5shg9ni.js +1 -0
- package/dist/client/_nuxt/state-editor-gc0bkewv.js +1 -0
- package/dist/client/_nuxt/state-modules-e2s3wq2g.js +1 -0
- package/dist/client/_nuxt/storage-m3jg7c3a.js +1 -0
- package/dist/client/_nuxt/terminals-hsjdjxac.js +1 -0
- package/dist/client/_nuxt/timeline-nn4tvvo6.js +31 -0
- package/dist/client/_nuxt/timeline.css-m03aec2q.css +1 -0
- package/dist/client/_nuxt/unocss-runtime-cyizum7d.js +1 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-ddj4xtqm.js +3869 -0
- package/dist/client/_nuxt/vendor/json-editor-vue.css-lkbe0qhh.css +1 -0
- package/dist/client/_nuxt/vendor/markdown-it-ew3lvn5m.js +14 -0
- package/dist/client/_nuxt/vendor/quicktype-core-f78dz8oi.js +929 -0
- package/dist/client/_nuxt/vendor/shiki-kunkft64.js +152 -0
- package/dist/client/_nuxt/vendor/unocss-f9yt86gg.js +3 -0
- package/dist/client/_nuxt/vendor/vis-ccj7spt3.js +26 -0
- package/dist/client/_nuxt/vendor/xterm-b39oya8c.js +36 -0
- package/dist/client/_nuxt/vendor/xterm.css-jqmddlol.css +1 -0
- package/dist/client/_nuxt/virtual-files-ds4udxjo.js +1 -0
- package/dist/client/_nuxt/virtual-files.css-l97kh4kx.css +1 -0
- package/dist/client/_nuxt/vue-devtools-hovopvyk.js +3 -0
- package/dist/client/_nuxt/vue-virtual-scroller.esm-il5noocm.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 +706 -405
- package/package.json +45 -46
- package/dist/client/_nuxt/__blank-lxstpk89.js +0 -1
- package/dist/client/_nuxt/analyze-build-kavepk5h.js +0 -1
- package/dist/client/_nuxt/assets-lbkq1tqr.js +0 -16
- package/dist/client/_nuxt/b2u55qmz.js +0 -5
- package/dist/client/_nuxt/builds/meta/06025e11-48ac-46e3-8f59-eb3ab8bfd4b9.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-n5suoqli.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_-kmemebv7.js +0 -1
- package/dist/client/_nuxt/data-schema-button-euw6cc96.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-gabow5oi.js +0 -2
- package/dist/client/_nuxt/debug-dfr4605f.js +0 -1
- package/dist/client/_nuxt/default-gnt8qqkx.js +0 -1
- 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-k9s93f0g.js +0 -1
- package/dist/client/_nuxt/error-404.css-fede2tas.css +0 -1
- package/dist/client/_nuxt/error-500-f6vgodgv.js +0 -1
- package/dist/client/_nuxt/error-500.css-m89l6mhd.css +0 -1
- package/dist/client/_nuxt/error-n483ebsa.js +0 -9
- package/dist/client/_nuxt/filepath-item-f2iy8phl.js +0 -1
- package/dist/client/_nuxt/full-dkkamqwi.js +0 -1
- package/dist/client/_nuxt/help-fab-izt1nioe.js +0 -1
- package/dist/client/_nuxt/hooks-lehfx0wr.js +0 -1
- package/dist/client/_nuxt/imports-hdwwo21k.js +0 -1
- package/dist/client/_nuxt/index-cyu9c9kn.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-htbuqp0w.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-fj7wo34y.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-fa6g70np.js +0 -3
- package/dist/client/_nuxt/open-graph.css-me89qec1.css +0 -1
- package/dist/client/_nuxt/overview-c0tmze6n.js +0 -1
- package/dist/client/_nuxt/pages-gv3j1axz.js +0 -1
- package/dist/client/_nuxt/payload-ht4ljhot.js +0 -1
- package/dist/client/_nuxt/pinia-o8sdd1q0.js +0 -1
- package/dist/client/_nuxt/plugins-j03zk4nt.js +0 -1
- package/dist/client/_nuxt/render-tree-dulpfo6t.js +0 -1
- package/dist/client/_nuxt/runtime-configs-ct1bawfd.js +0 -1
- package/dist/client/_nuxt/server-discovery-oj5uubbh.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-ewvvpkab.js +0 -1
- package/dist/client/_nuxt/server-routes-d95zd0vp.js +0 -9
- package/dist/client/_nuxt/server-tasks-my595b5f.js +0 -1
- package/dist/client/_nuxt/settings-tj46uptc.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-cx4pelsr.js +0 -1
- package/dist/client/_nuxt/terminals-caz1fzd6.js +0 -1
- package/dist/client/_nuxt/timeline-mumljjvf.js +0 -31
- package/dist/client/_nuxt/timeline.css-otdwftpy.css +0 -1
- package/dist/client/_nuxt/unocss-runtime-b6rpi9xs.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-d7th42z7.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-h4b74qh3.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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"06025e11-48ac-46e3-8f59-eb3ab8bfd4b9","timestamp":1764061096151,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as f,O as r}from"./vendor/json-editor-vue-ho2zu772.js";let e;const n=[];function s(i){if(n.push(i),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&n.forEach(o=>o(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(o){o&&n.forEach(t=>t(o))},get(){return e.value},configurable:!0}),()=>{n.splice(n.indexOf(i),1)}}function u(){e||(e=f(),s(o));function i(){e&&r(e)}function o(t){e.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",i)}return e}const c=u();export{c as d};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{_ as k}from"./ncode-block-esxkr86l.js";import{ao as E}from"#entry";import{p as I,q as T,k as j,D as y,W as q,X as M}from"./vendor/json-editor-vue-ho2zu772.js";class W{diff(e,t,n={}){let o;typeof n=="function"?(o=n,n={}):"callback"in n&&(o=n.callback);const d=this.castInput(e,n),u=this.castInput(t,n),l=this.removeEmpty(this.tokenize(d,n)),s=this.removeEmpty(this.tokenize(u,n));return this.diffWithOptionsObj(l,s,n,o)}diffWithOptionsObj(e,t,n,o){var d;const u=c=>{if(c=this.postProcess(c,n),o){setTimeout(function(){o(c)},0);return}else return c},l=t.length,s=e.length;let r=1,i=l+s;n.maxEditLength!=null&&(i=Math.min(i,n.maxEditLength));const p=(d=n.timeout)!==null&&d!==void 0?d:1/0,f=Date.now()+p,a=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(a[0],t,e,0,n);if(a[0].oldPos+1>=s&&h+1>=l)return u(this.buildValues(a[0].lastComponent,t,e));let g=-1/0,_=1/0;const w=()=>{for(let c=Math.max(g,-r);c<=Math.min(_,r);c+=2){let C;const P=a[c-1],v=a[c+1];P&&(a[c-1]=void 0);let x=!1;if(v){const D=v.oldPos-c;x=v&&0<=D&&D<l}const L=P&&P.oldPos+1<s;if(!x&&!L){a[c]=void 0;continue}if(!L||x&&P.oldPos<v.oldPos?C=this.addToPath(v,!0,!1,0,n):C=this.addToPath(P,!1,!0,1,n),h=this.extractCommon(C,t,e,c,n),C.oldPos+1>=s&&h+1>=l)return u(this.buildValues(C.lastComponent,t,e))||!0;a[c]=C,C.oldPos+1>=s&&(_=Math.min(_,c-1)),h+1>=l&&(g=Math.max(g,c+1))}r++};if(o)(function c(){setTimeout(function(){if(r>i||Date.now()>f)return o(void 0);w()||c()},0)})();else for(;r<=i&&Date.now()<=f;){const c=w();if(c)return c}}addToPath(e,t,n,o,d){const u=e.lastComponent;return u&&!d.oneChangePerToken&&u.added===t&&u.removed===n?{oldPos:e.oldPos+o,lastComponent:{count:u.count+1,added:t,removed:n,previousComponent:u.previousComponent}}:{oldPos:e.oldPos+o,lastComponent:{count:1,added:t,removed:n,previousComponent:u}}}extractCommon(e,t,n,o,d){const u=t.length,l=n.length;let s=e.oldPos,r=s-o,i=0;for(;r+1<u&&s+1<l&&this.equals(n[s+1],t[r+1],d);)r++,s++,i++,d.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return i&&!d.oneChangePerToken&&(e.lastComponent={count:i,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,r}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const 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){const o=[];let d;for(;e;)o.push(e),d=e.previousComponent,delete e.previousComponent,e=d;o.reverse();const u=o.length;let l=0,s=0,r=0;for(;l<u;l++){const i=o[l];if(i.removed)i.value=this.join(n.slice(r,r+i.count)),r+=i.count;else{if(!i.added&&this.useLongestToken){let p=t.slice(s,s+i.count);p=p.map(function(f,a){const h=n[r+a];return h.length>f.length?h:f}),i.value=this.join(p)}else i.value=this.join(t.slice(s,s+i.count));s+=i.count,i.added||(r+=i.count)}}return o}}class z extends W{constructor(){super(...arguments),this.tokenize=V}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)}}const A=new z;function O(m,e,t){return A.diff(m,e,t)}function V(m,e){e.stripTrailingCr&&(m=m.replace(/\r\n/g,`
|
|
6
|
-
`));const t=[],n=m.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let o=0;o<n.length;o++){const d=n[o];o%2&&!e.newlineIsToken?t[t.length-1]+=d:t.push(d)}return t}const b=I({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(m){const e=m;function t(l,s){const r=O(l.trim(),s.trim()),i=[],p=[],f=[];for(const a of r){const h=a.value.trimEnd().split(`
|
|
7
|
-
`);for(const g of h)a.added?(i.push(f.length),f.push(g)):(a.removed&&p.push(f.length),f.push(g))}return{added:i,removed:p,result:f.join(`
|
|
8
|
-
`)}}const n=T(()=>t(e.from,e.to));function o(l){let s=0;return l.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,r=>(s++,n.value.added.includes(s-1)?'class="line line-added"':n.value.removed.includes(s-1)?'class="line line-removed"':r))}const d=j();y(u);function u(){const l=E(d);l&&l.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(l,s)=>{const r=k;return M(),q(r,{ref_key:"elRef",ref:d,code:n.value.result,lang:m.lang,"transform-rendered":o,onLoaded:u},null,8,["code","lang"])}}}),S=Object.assign(b,{__name:"CodeDiff"});export{S as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as k}from"./ncode-block-esxkr86l.js";import{a as x,_ as y}from"#entry";import{p as C,n as S,q as w,w as B,J as s,a3 as p,X as n,a2 as l,F as d,ag as N,a6 as i,aa as V,a0 as u,W as T,u as $,Z as m,ab as v}from"./vendor/json-editor-vue-ho2zu772.js";const h={key:0,relative:"","n-code-block":""},D={flex:"~ wrap","w-full":""},E=["onClick"],F={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},L=C({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(a){const c=a,e=S(c.codeSnippets[0]),_=x(),f=w(()=>e.value?.lang||"text");return B(()=>{c.codeSnippets.includes(e.value)||(e.value=c.codeSnippets[0])}),(j,o)=>{const b=k,r=y;return a.codeSnippets.length?(n(),s("div",h,[l("div",D,[(n(!0),s(d,null,N(a.codeSnippets,(t,g)=>(n(),s("button",{key:g,px4:"",py2:"",border:"r base",hover:"bg-active",class:i(t===e.value?"":"border-b"),onClick:q=>e.value=t},[l("div",{class:i(t===e.value?"":"op30"),"font-mono":""},V(t.name),3)],10,E))),128)),o[1]||(o[1]=l("div",{border:"b base","flex-auto":""},null,-1))]),e.value?(n(),s(d,{key:0},[u(b,{code:e.value.code,lang:f.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),l("div",F,[u(r,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>$(_)(e.value.code,a.eventType||`code-snippet-${e.value.name}`))},{default:m(()=>[...o[2]||(o[2]=[v(" Copy ",-1)])]),_:1}),e.value?.docs?(n(),T(r,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:m(()=>[...o[3]||(o[3]=[v(" Docs ",-1)])]),_:1},8,["to"])):p("",!0)])],64)):p("",!0)])):p("",!0)}}}),R=Object.assign(L,{__name:"CodeSnippets"});export{R as _};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as pe,a as ue,_ as X,a4 as re,aq as ce,A as me,B as de,g as J,ar as fe,n as ve,as as _e,S as he,Y as xe,W as be,I as ge,f as ye}from"#entry";import{J as r,X as t,a2 as n,p as F,q as P,ab as j,aa as W,a3 as b,$ as E,a0 as u,W as x,Z as m,u as V,F as B,ag as M,k as U,n as we,D as Ce,x as ke,j as R,Y as Ne,a6 as $e,a1 as z,ai as Ve,ac as Y,af as De}from"./vendor/json-editor-vue-ho2zu772.js";import{_ as Pe}from"./help-fab-izt1nioe.js";import{_ as Se}from"./ncheckbox-dg5nbt1d.js";import{_ as Z}from"./nnavbar-eqdsa2v0.js";import{p as K}from"./index-jc4yj4to.js";import{_ as Q}from"./nbadge-dv1e6eny.js";import{_ as ee}from"./filepath-item-f2iy8phl.js";import{_ as Le}from"./ndrawer-j5h6fmbh.js";import{D as Be,N as Ie}from"./vendor/vis-lxvjz9wh.js";import{_ as Te}from"./nselect-tabs-b4x1017q.js";import{_ as Me}from"./nsection-block-owu5vx1c.js";import{_ as Ge}from"./nicon-title-n11g9rad.js";import{D as H}from"./constants-b32h69zq.js";import{u as Ue,a as Fe}from"./state-components-jdafqa4i.js";import"./vendor/shiki-g7cm1eew.js";import"./vendor/unocss-d7th42z7.js";const Oe={},Ae={class:"markdown-body"};function Re(s,l){return t(),r("div",Ae,[...l[0]||(l[0]=[n("template",null,[n("div",{class:"markdown-body"},[n("h1",null,"Components"),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."),n("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them."),n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")])])],-1)])])}const je=pe(Oe,[["render",Re]]),ze={"text-sm":"","font-mono":""},We=F({__name:"ComponentName",props:{component:{}},setup(s){const l=s,_=P(()=>l.component.pascalName||K(l.component.name||l.component.__name||l.component.kebabName||""));return(w,h)=>(t(),r("code",ze,[h[0]||(h[0]=n("span",{mr1:"",op20:""},"<",-1)),j(W(_.value),1),h[1]||(h[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),ne=Object.assign(We,{__name:"ComponentName"}),Ee={flex:"~ col gap1","items-start":"","of-hidden":""},qe={flex:"~ gap2 items-center",px3:""},He={px3:"",pb2:""},Xe={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Ye={"text-sm":""},Je={"text-primary":""},Ze={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Ke={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Qe={"text-sm":""},en={"text-primary":""},nn={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},tn=F({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(s){const l=s,_=P(()=>l.component.pascalName||K(l.component.name||l.component.__name||l.component.kebabName||"")),w=P(()=>l.component.filePath||l.component.file||l.component.__file||""),h=ue();return(c,f)=>{const i=ne,g=X,a=Q,C=ee;return t(),r("div",Ee,[n("div",qe,[u(i,{component:s.component},null,8,["component"]),s.component.meta?.docs&&typeof s.component.meta.docs=="string"?(t(),x(g,{key:0,title:"Open docs","flex-none":"",n:"xs",to:s.component.meta.docs,target:"_blank",icon:"carbon-catalog"},{default:m(()=>[...f[1]||(f[1]=[j(" Docs ",-1)])]),_:1},8,["to"])):b("",!0),u(g,{title:"Copy name","flex-none":"",n:"xs",icon:"carbon-copy",onClick:f[0]||(f[0]=v=>V(h)(`<${_.value}></${_.value}>`,"component-name"))},{default:m(()=>[...f[2]||(f[2]=[j(" Copy ",-1)])]),_:1}),s.component.global?(t(),x(a,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):b("",!0)]),n("div",He,[w.value?(t(),x(C,{key:0,filepath:w.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):b("",!0)]),s.dependents?(t(),r("div",Xe,[n("div",Ye,[n("strong",Je,W(s.dependents.length),1),f[3]||(f[3]=n("span",{op50:""}," references",-1))]),s.dependents.length?(t(),r("div",Ze,[(t(!0),r(B,null,M(s.dependents,v=>(t(),x(C,{key:v,filepath:v},null,8,["filepath"]))),128))])):b("",!0)])):b("",!0),s.dependencies?(t(),r("div",Ke,[n("div",Qe,[n("strong",en,W(s.dependencies.length),1),f[4]||(f[4]=n("span",{op50:""}," dependencies",-1))]),s.dependencies.length?(t(),r("div",nn,[(t(!0),r(B,null,M(s.dependencies,v=>(t(),x(C,{key:v,filepath:v},null,8,["filepath"]))),128))])):b("",!0)])):b("",!0),E(c.$slots,"default")])}}}),te=Object.assign(tn,{__name:"ComponentDetails"}),on={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},sn={relative:"","h-full":"","w-full":""},ln={key:0,py4:"",pt3:"",flex:"~ col"},an={border:"t base",p4:""},pn=F({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(s){const l=s,_=U(),w=U(),h=re(),c=we(),f=ce(),i=me(),g=de(),{componentsGraphShowNodeModules:a,componentsGraphShowGlobalComponents:C,componentsGraphShowPages:v,componentsGraphShowLayouts:k,componentsGraphShowWorkspace:S}=J("ui"),d=U(),N=U(""),p=fe(N,300),O=P(()=>{const D=l.relationships||[];if(d.value){let e=function($){!$||o.has($)||(o.add($),$.deps.forEach(I=>{e(D.find(G=>G.id===I))}))};const o=new Set;return e(d.value),Array.from(o)}return D}),T=P(()=>{const D=O.value.map(o=>{const $=l.components.find(A=>A.filePath===o.id),I=f.value?.find(A=>A.file===o.id),G=g.value?.find(A=>A.file===o.id),L=o.id.includes("/node_modules/")?"lib":$?$.global?"global":"user":G?"layout":I?"page":"unknown";if(!a.value&&L==="lib"||!v.value&&L==="page"||!k.value&&L==="layout"||!S.value&&L==="user"&&i.value&&!o.id.startsWith(i.value.rootDir)||!C.value&&L==="global")return null;const q=L==="layout"?"hexagon":L==="page"?"square":"dot",y=p.value&&!o.id.toLowerCase().includes(p.value.toLowerCase());return{id:o.id,label:ae(o.id),group:L,shape:q,size:15+Math.min(o.deps.length/2,8),font:{color:y?"#8885":h.value==="dark"?"white":"black"},color:y?"#8885":d.value?.id===o.id?"#82c742":void 0,extra:{id:o.id,component:$,page:I,layout:G,relationship:o}}}).filter(o=>!!o),e=O.value.flatMap(o=>o.deps.map($=>({from:o.id,to:$,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new Be(D),edges:e}}),oe=P(()=>c.value?.component?l.relationships?.find(e=>e.id===c.value?.component?.filePath)?.deps?.map(e=>l.relationships?.find(o=>o.id===e)?.id).filter(Boolean):[]),se=P(()=>c.value?.component?l.relationships?.filter(e=>e.deps.includes(c.value.component.filePath))?.map(e=>l.relationships?.find(o=>o.id===e.id)?.id).filter(Boolean):[]);Ce(()=>{const D={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 Ie(_.value,T.value,D);e.on("click",o=>{const $=o.nodes?.[0],I=T.value.nodes.get($).extra;c.value=I}),ke(T,()=>{e.setData(T.value)})});function le(){c.value=void 0}function ae(D){const e=l.components.find(o=>o.filePath===D);return e?e.pascalName:D.replace(/.*\/components\//,"").replace(/\.vue$/,"").replace(/\/index$/,"").split("/").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join("")}function ie(){d.value=c.value?.relationship,c.value=void 0}return(D,e)=>{const o=Se,$=Z,I=ve,G=te,L=X,q=Le;return t(),r(B,null,[u($,{ref_key:"navbar",ref:w,search:N.value,"onUpdate:search":e[6]||(e[6]=y=>N.value=y),absolute:"","left-0":"","right-0":"","top-0":""},{actions:m(()=>[n("div",on,[u(o,{modelValue:V(v),"onUpdate:modelValue":e[0]||(e[0]=y=>R(v)?v.value=y:null),n:"primary sm"},{default:m(()=>[...e[8]||(e[8]=[n("span",{op75:""},"Show pages",-1)])]),_:1},8,["modelValue"]),u(o,{modelValue:V(k),"onUpdate:modelValue":e[1]||(e[1]=y=>R(k)?k.value=y:null),n:"primary sm"},{default:m(()=>[...e[9]||(e[9]=[n("span",{op75:""},"Show layouts",-1)])]),_:1},8,["modelValue"]),u(o,{modelValue:V(S),"onUpdate:modelValue":e[2]||(e[2]=y=>R(S)?S.value=y:null),n:"primary sm"},{default:m(()=>[...e[10]||(e[10]=[n("span",{op75:""},"Show workspace",-1)])]),_:1},8,["modelValue"]),u(o,{modelValue:V(a),"onUpdate:modelValue":e[3]||(e[3]=y=>R(a)?a.value=y:null),n:"primary sm"},{default:m(()=>[...e[11]||(e[11]=[n("span",{op75:""},"Show node_modules",-1)])]),_:1},8,["modelValue"]),u(o,{modelValue:V(C),"onUpdate:modelValue":e[4]||(e[4]=y=>R(C)?C.value=y:null),n:"primary sm"},{default:m(()=>[...e[12]||(e[12]=[n("span",{op75:""},"Show global components",-1)])]),_:1},8,["modelValue"])]),d.value?(t(),r("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]=y=>d.value=void 0)},[...e[13]||(e[13]=[j(" Clear filter ",-1),n("div",{"i-carbon-close":""},null,-1)])])):b("",!0),e[14]||(e[14]=n("div",{"flex-auto":""},null,-1)),E(D.$slots,"default")]),_:3},8,["search"]),n("div",sn,[n("div",{ref_key:"container",ref:_,"h-full":"","w-full":""},null,512),u(I,{absolute:"","bottom-3":"","left-3":"","border-0":"","n-glass-effect":"",p2:"",px3:"","text-sm":""},{default:m(()=>[...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":!!(c.value&&c.value.component),top:w.value,border:"t l base","w-80":"",onClose:le},{default:m(()=>[c.value&&c.value.component?(t(),r("div",ln,[u(G,{component:c.value.component,dependencies:oe.value,dependents:se.value},null,8,["component","dependencies","dependents"]),n("div",an,[u(L,{n:"primary solid",onClick:e[7]||(e[7]=y=>ie())},{default:m(()=>[...e[16]||(e[16]=[j(" Filter to this component ",-1)])]),_:1})])])):b("",!0)]),_:1},8,["model-value","top"])])],64)}}}),un=Object.assign(pn,{__name:"ComponentsGraph"}),rn={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},cn={key:0,"ml--1":"","text-primary":""},mn=F({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(s){const l=s,_=P(()=>l.component.filePath||l.component.file||l.component.__file||"");return(w,h)=>{const c=ne,f=te,i=Ne("VDropdown"),g=Q,a=ee;return t(),r("div",rn,[u(i,null,{popper:m(()=>[u(f,{component:s.component,dependencies:s.dependencies,dependents:s.dependents,"w-100":"",pt3:""},null,8,["component","dependencies","dependents"])]),default:m(()=>[n("button",{"hover:text-primary":"",class:$e(s.dependents&&s.dependents.length===0?"op50":"")},[u(c,{component:s.component},null,8,["component"])],2)]),_:1}),s.dependents?.length?(t(),r("sup",cn," x"+W(s.dependents?.length),1)):b("",!0),s.component.global?(t(),x(g,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):b("",!0),E(w.$slots,"default"),_.value?(t(),x(a,{key:2,filepath:_.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):b("",!0)])}}}),dn=Object.assign(mn,{__name:"ComponentItem"}),fn={flex:"~ gap-2 items-center"},vn={pl4:""},_n=F({__name:"ComponentsList",props:{components:{},relationships:{}},setup(s){const l=s,_=U(""),w=U("all"),h=P(()=>{const g=l.components.map(a=>_e(a,l.relationships));return w.value==="using"?g.filter(a=>a.dependents?.length):w.value==="not-used"?g.filter(a=>!a.dependents?.length):g}),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"},f=P(()=>new he(h.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),i=P(()=>{const g=[],a=new Map,C=[],v=[],k={user:0,lib:0,builtin:0,runtime:0};return(_.value?f.value.search(_.value).map(d=>d.item):h.value).forEach(d=>{const N=d.component;if(N.filePath&&xe(N.filePath)){const p=be(N.filePath);if(!p)return;p==="nuxt"?(N.meta??={},N.meta.docs??=c?.[N.pascalName],C.push(d),k.builtin++):(a.has(p)||a.set(p,[]),a.get(p).push(d),k.lib++)}else N.global&&!N.filePath?(v.push(d),k.runtime++):(g.push(d),k.user++)}),{count:k,user:g,builtin:C,lib:a,runtime:v}});return(g,a)=>{const C=ge,v=Te,k=Z,S=dn,d=Me,N=Ge;return t(),r(B,null,[u(k,{search:_.value,"onUpdate:search":a[1]||(a[1]=p=>_.value=p),pb3:""},{actions:m(()=>[E(g.$slots,"default")]),default:m(()=>[n("div",fn,[u(C,{icon:"carbon-filter",op50:""}),u(v,{modelValue:w.value,"onUpdate:modelValue":a[0]||(a[0]=p=>w.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"]),i.value.user.length?(t(),x(d,{key:0,icon:"carbon-nominal",text:"User components",open:i.value.user.length<=V(H),description:`Total components: ${i.value.count.user}`},{default:m(()=>[(t(!0),r(B,null,M(i.value.user,p=>(t(),x(S,z({key:p.component.filePath},{ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):b("",!0),i.value.runtime.length?(t(),x(d,{key:1,icon:"carbon-load-balancer-global",open:i.value.runtime.length<=V(H),text:"Runtime components",description:`Total components: ${i.value.count.runtime}`},{default:m(()=>[(t(!0),r(B,null,M(i.value.runtime,p=>(t(),x(S,z({key:p.component.filePath},{ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):b("",!0),i.value.builtin.length?(t(),x(d,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${i.value.count.builtin}`},{default:m(()=>[(t(!0),r(B,null,M(i.value.builtin,p=>(t(),x(S,z({key:p.component.filePath},{ref_for:!0},p),null,16))),128))]),_:1},8,["description"])):b("",!0),i.value.lib.size?(t(),x(d,{key:3,open:i.value.count.lib<=V(H),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${i.value.count.lib} components from ${i.value.lib.size} packages`},{default:m(()=>[(t(!0),r(B,null,M(i.value.lib.entries(),([p,O])=>(t(),r("div",{key:p,"ml-2":""},[u(N,{text:`${p} (${O.length})`,py1:"",op50:""},null,8,["text"]),n("div",vn,[(t(!0),r(B,null,M(O,T=>(t(),x(S,z({key:T.component.filePath},{ref_for:!0},T),null,16))),128))])]))),128))]),_:1},8,["open","description"])):b("",!0)],64)}}}),hn=Object.assign(_n,{__name:"ComponentsList"}),xn={relative:"","h-full":"","of-auto":""},bn={"flex-none":"",flex:"~ gap3"},Un=F({__name:"components",setup(s){const l=ye(),_=Ue(),w=Fe(),{componentsView:h}=J("ui");function c(){l.value?.inspector?.enable()}function f(){h.value=h.value==="list"?"graph":"list"}return(i,g)=>{const a=X,C=je,v=Pe,k=Ve("tooltip");return t(),r(B,null,[n("div",xn,[(t(),x(De(V(h)==="list"?hn:un),{components:V(_),relationships:V(w)},{default:m(()=>[n("div",bn,[Y(u(a,{"text-lg":"",border:!1,icon:V(h)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:f},null,8,["icon"]),[[k,"Toggle View",void 0,{"bottom-end":!0}]]),V(l)?.inspector?.isAvailable?Y((t(),x(a,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:c},null,512)),[[k,"Inspect Vue components",void 0,{"bottom-end":!0}]]):b("",!0)])]),_:1},8,["components","relationships"]))]),u(v,null,{default:m(()=>[u(C)]),_:1})],64)}}});export{Un as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as U,w as $,I as j,_ as E}from"#entry";import{_ as F}from"./nmarkdown-pb9g5o14.js";import{_ as O}from"./filepath-item-f2iy8phl.js";import{k as S}from"./index-jc4yj4to.js";import{C as y}from"./constants-b32h69zq.js";import{p as W,q as r,Y as q,W as m,X as a,Z as u,a2 as o,a6 as z,J as l,a3 as d,ab as _,aa as v,a0 as b,u as k,F as g,ag as J}from"./vendor/json-editor-vue-ho2zu772.js";const L={rounded:"","font-mono":""},M={key:0,"text-primary":""},T={key:0},X={title:"Vue Directive"},Y={"max-w-100":""},Z={px4:"",py3:"","text-sm":""},A={flex:"~ gap2",n:"primary xs"},G={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},H={"text-sm":""},K={"text-primary":""},P={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Q={key:1,"text-sm":"",op50:""},R=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(n){const t=n,C=U(),h=$(),c=r(()=>t.item.as||t.item.name),D=r(()=>{let s=c.value;return t.isDirective&&(s[0]!=="v"&&(s=`v${s}`),s=S(s)),s}),i=r(()=>t.metadata?.injectionUsage?.[c.value]?.count||0),I=r(()=>(t.metadata?.injectionUsage?.[c.value]?.moduleIds||[]).filter(s=>!s.endsWith("?macro=true"))),x=r(()=>t.item.meta?.docsUrl?t.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(t.item.from)?y.nuxt[t.item.name]:t.item.from==="vue"?y.vue[t.item.name]:null);return(s,e)=>{const N=j,w=F,f=E,B=O,V=q("VDropdown");return a(),m(V,{disabled:!t.metadata},{popper:u(()=>[o("div",Y,[o("div",Z,[n.item.meta?.description?(a(),m(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:n.item.meta.description},null,8,["markdown"])):d("",!0),o("div",A,[b(f,{icon:"carbon-copy",onClick:e[0]||(e[0]=p=>k(C)(D.value,"imports-name"))},{default:u(()=>[...e[2]||(e[2]=[_(" Copy ",-1)])]),_:1}),n.filepath?(a(),m(f,{key:0,icon:"carbon-code",onClick:e[1]||(e[1]=p=>n.filepath&&k(h)(n.filepath))},{default:u(()=>[...e[3]||(e[3]=[_(" Source ",-1)])]),_:1})):d("",!0),x.value?(a(),m(f,{key:1,icon:"carbon-catalog",to:x.value,target:"_blank"},{default:u(()=>[...e[4]||(e[4]=[_(" Docs ",-1)])]),_:1},8,["to"])):d("",!0)])]),o("div",G,[i.value?(a(),l(g,{key:0},[o("div",H,[e[5]||(e[5]=o("span",{op50:""},"It has been referenced ",-1)),o("strong",K,v(i.value),1),e[6]||(e[6]=o("span",{op50:""}," times by:",-1))]),o("div",P,[(a(!0),l(g,null,J(I.value,p=>(a(),m(B,{key:p,filepath:p},null,8,["filepath"]))),128))])],64)):(a(),l("div",Q," Not in use via auto import. "))])])]),default:u(()=>[o("button",{"hover:text-primary":"",class:z([n.metadata&&!i.value?"op30 hover:op100":"",n.classes])},[o("code",L,[_(v(c.value)+" ",1),i.value&&n.counter?(a(),l("sup",M,"x"+v(i.value),1)):d("",!0)]),n.isDirective?(a(),l("sup",T,[o("abbr",X,[b(N,{icon:"tabler:hexagon-letter-d"})])])):d("",!0)],2)]),_:1},8,["disabled"])}}}),ie=Object.assign(R,{__name:"ComposableItem"});export{ie as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t=50,e={nuxt:{useAppConfig:"https://nuxt.com/docs/api/composables/use-app-config",useAsyncData:"https://nuxt.com/docs/api/composables/use-async-data",useCookie:"https://nuxt.com/docs/api/composables/use-cookie",useError:"https://nuxt.com/docs/api/composables/use-error",useFetch:"https://nuxt.com/docs/api/composables/use-fetch",useHead:"https://nuxt.com/docs/api/composables/use-head",useHeadSafe:"https://nuxt.com/docs/api/composables/use-head-safe",useLazyAsyncData:"https://nuxt.com/docs/api/composables/use-lazy-async-data",useLazyFetch:"https://nuxt.com/docs/api/composables/use-lazy-fetch",useNuxtApp:"https://nuxt.com/docs/api/composables/use-nuxt-app",useRoute:"https://nuxt.com/docs/api/composables/use-route",useRouter:"https://nuxt.com/docs/api/composables/use-router",useRuntimeConfig:"https://nuxt.com/docs/api/composables/use-runtime-config",useState:"https://nuxt.com/docs/api/composables/use-state",$fetch:"https://nuxt.com/docs/api/utils/dollarfetch",abortNavigation:"https://nuxt.com/docs/api/utils/abort-navigation",createError:"https://nuxt.com/docs/api/utils/create-error",defineNuxtComponent:"https://nuxt.com/docs/api/utils/define-nuxt-component",definePageMeta:"https://nuxt.com/docs/api/utils/define-page-meta",navigateTo:"https://nuxt.com/docs/api/utils/navigate-to#navigateto",onBeforeRouteLeave:"https://nuxt.com/docs/api/utils/on-before-route-leave",onBeforeRouteUpdate:"https://nuxt.com/docs/api/utils/on-before-route-update",updateAppConfig:"https://nuxt.com/docs/api/utils/update-app-config"},vue:{ref:"https://vuejs.org/api/reactivity-core.html#ref",computed:"https://vuejs.org/api/reactivity-core.html#computed",reactive:"https://vuejs.org/api/reactivity-core.html#reactive",watch:"https://vuejs.org/api/reactivity-core.html#watch",watchEffect:"https://vuejs.org/api/reactivity-core.html#watcheffect",watchPostEffect:"https://vuejs.org/api/reactivity-core.html#watchposteffect",watchSyncEffect:"https://vuejs.org/api/reactivity-core.html#watchsynceffect",onMounted:"https://vuejs.org/api/composition-api-lifecycle.html#onmounted",onUnmounted:"https://vuejs.org/api/composition-api-lifecycle.html#onunmounted",onActivated:"https://vuejs.org/api/composition-api-lifecycle.html#onactivated",onDeactivated:"https://vuejs.org/api/composition-api-lifecycle.html#ondeactivated",onBeforeMount:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforemount",onBeforeUnmount:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforeunmount",onUpdated:"https://vuejs.org/api/composition-api-lifecycle.html#onupdated",onBeforeUpdate:"https://vuejs.org/api/composition-api-lifecycle.html#onbeforeupdate",nextTick:"https://vuejs.org/api/general.html#nexttick"}},o={snippet:"i-carbon-code",headers:"i-carbon-html-reference",cookies:"i-carbon-cookie",params:"i-carbon-text-selection",query:"i-carbon-help",body:"i-carbon-document"};export{e as C,t as D,o as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as $,bc as j,bd as N,be as V,a6 as B,l as D,ag as k,bf as E,i as I,aa as W,r as L,n as O}from"#entry";import{p as q,k as C,q as x,r as P,D as M,z as R,w as b,M as S,J as U,X as o,W as u,Z as w,a2 as r,ab as y,aa as A,u as T,af as F,a0 as X}from"./vendor/json-editor-vue-ho2zu772.js";import{_ as z}from"./launch-page-gkflizue.js";import"./vendor/shiki-g7cm1eew.js";import"./vendor/unocss-d7th42z7.js";import"./nmarkdown-pb9g5o14.js";import"./client-c6aoxv2l.js";const h=new Map,G=q({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=$(),p=C(),s=x(()=>m.tab.name),e=C(),t=P(j(p));M(()=>{const n=m.tab.view,l=n.persistent!==!1,_=["clipboard-write","clipboard-read",...n.permissions||[]];if(h.get(s.value)&&l)e.value=h.get(s.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",_.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&h.set(s.value,e.value),e.value.src=n.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),i(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),R(d)}setTimeout(i,100)}),b(d),b(i),b(v),S(()=>{e.value&&(e.value.style.visibility="hidden")});function i(){if(!(!e.value||!e.value.contentWindow))try{const n=e.value.contentWindow.document.querySelector("html");n?.classList.toggle("dark",c.value==="dark"),n?.classList.toggle("light",c.value==="dark"),new MutationObserver(()=>{c.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(n,{attributes:!0,attributeFilter:["class"]})}catch{}}const a=N();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function d(){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(n,l)=>(o(),U("div",{ref_key:"anchor",ref:p,"h-full":"","w-full":""},null,512))}}),J=Object.assign(G,{__name:"IframeView"}),Z={flex:"~ col gap2",mxa:"","items-center":""},H={"text-xl":""},K={"text-rose":""},se=q({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=V(),p=B(),s=x(()=>m.name??c.params.name),e=D(),t=x(()=>e.value.find(i=>i.name===s.value));return M(()=>{t.value?t.value.requireAuth&&!k.value&&E():setTimeout(()=>{t.value||p.push("/modules/overview")},2e3)}),(i,a)=>{const v=I,d=W,n=J,l=z,_=O;return t.value?t.value.requireAuth&&!T(k)?(o(),u(d,{key:1})):t.value.view.type==="iframe"?(o(),u(n,{key:2,tab:t.value},null,8,["tab"])):t.value.view.type==="vnode"?(o(),u(F(t.value.view.vnode),{key:3})):t.value.view.type==="launch"?(o(),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"])):(o(),u(v,{key:5},{default:w(()=>[X(_,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:w(()=>[y(" Unknown tab type "+A(t.value.view),1)]),_:1})]),_:1})):(o(),u(v,{key:0},{default:w(()=>[r("div",Z,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",H,[a[1]||(a[1]=y(" Tab ",-1)),r("code",K,A(s.value),1),a[2]||(a[2]=y(" not found ",-1))]),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{se as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as c,_ as r}from"#entry";import{p as s,ai as i,ac as _,W as p,X as m}from"./vendor/json-editor-vue-ho2zu772.js";const u=s({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(e){const n=c();return(l,t)=>{const o=r,a=i("tooltip");return _((m(),p(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:t[0]||(t[0]=v=>n.value=e.getter())},null,512)),[[a,"Generate Data Schema"]])}}}),h=Object.assign(u,{__name:"DataSchemaButton"});export{h as _};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as E}from"./nselect-h7b4tp2d.js";import{u as F,c as U,a as $,_ as q}from"#entry";import{_ as z}from"./nswitch-ikgdy16r.js";import{_ as J}from"./ndropdown-gskb7sy5.js";import{_ as O}from"./ncode-block-esxkr86l.js";import{_ as X}from"./ndrawer-j5h6fmbh.js";import{A as h,d as x}from"./vendor/quicktype-core-jsgpnknz.js";import{p as Z,k,q as D,x as N,W as c,a3 as m,X as n,a0 as d,Z as r,a2 as p,J as _,F as C,ag as S,u as f,aa as b,ae as G}from"./vendor/json-editor-vue-ho2zu772.js";import"./vendor/shiki-g7cm1eew.js";import"./vendor/unocss-d7th42z7.js";import"./client-c6aoxv2l.js";const H={border:"b base",flex:"~ items-center gap-2",sticky:"","left-0":"","right-0":"","top-0":"","z-1":"","bg-base":"",p3:""},K={key:0,flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--2":"","h-4":"","w-4":"","rounded-full":"","bg-lime:30":"","text-8px":""},M={flex:"~ col","w-100":"","of-auto":"",py2:""},P={"text-xs":"",capitalize:"",op75:""},Q=Z({__name:"DataSchemaDrawer",setup(R){const s=F(),w=k(0),l=k("TypeScript"),v=D(()=>h.all.find(e=>e.displayName===l.value)),o=k(v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")),y=U(async()=>{if(w.value,!s.value)return"";const e=x.jsonInputForTargetLanguage(l.value);await e.addSource({name:s.value.name??"Data",samples:[s.value.input]});const t=new x.InputData;return t.addInput(e),(await x.quicktype({inputData:t,lang:l.value,rendererOptions:o.value?.reduce((u,i)=>(u[i.name]=i.defaultValue,u),{})})).lines.join(`
|
|
2
|
-
`)}),j=D(()=>{const e=l.value.toLocaleLowerCase();return e.startsWith("javascript")?"javascript":e.startsWith("json")?"json":e.startsWith("typescript")?"typescript":e});N(o,()=>{w.value++},{deep:!0}),N(l,()=>{o.value=v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")});const B=$();function L(){B(y.value||"")}return(e,t)=>{const V=E,u=q,i=z,I=J,T=O,W=X;return v.value?(n(),c(G,{key:0,to:"body"},[d(W,{"model-value":!!f(s)?.input,"auto-close":"","max-w-screen":"","w-2xl":"","n-code-block":"",onClose:t[2]||(t[2]=a=>s.value=null)},{default:r(()=>[p("div",H,[t[3]||(t[3]=p("p",{"mr-2":""}," Schema ",-1)),d(V,{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value=a),n:"xs primary"},{default:r(()=>[(n(!0),_(C,null,S(f(h.all),a=>(n(),_("option",{key:a.displayName},b(a.displayName),1))),128))]),_:1},8,["modelValue"]),o.value?.length?(n(),c(I,{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(),_("span",K,b(o.value.length),1)):m("",!0)]),default:r(()=>[p("div",M,[(n(!0),_(C,null,S(o.value,(a,g)=>(n(),c(i,{key:a.name,modelValue:o.value[g].defaultValue,"onUpdate:modelValue":A=>o.value[g].defaultValue=A,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:r(()=>[p("span",P,b(a.description),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):m("",!0),t[4]||(t[4]=p("div",{"flex-auto":""},null,-1)),d(u,{icon:"carbon-copy","mr-6":"","h-full":"",onClick:t[1]||(t[1]=a=>L())})]),f(y)?(n(),c(T,{key:0,lang:j.value,code:f(y)},null,8,["lang","code"])):m("",!0)]),_:1},8,["model-value"])])):m("",!0)}}}),ie=Object.assign(Q,{__name:"DataSchemaDrawer"});export{ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as H}from"./nsection-block-owu5vx1c.js";import{_ as T}from"./ncheckbox-dg5nbt1d.js";import{g as B}from"./color-mt9xuhgy.js";import{_ as U}from"./nbadge-dv1e6eny.js";import{p as h,q as $,W as y,X as l,Z as m,ab as I,$ as O,aa as k,a4 as P,k as _,J as u,F as x,a2 as t,a0 as a,a3 as C,ag as N,a6 as z,u as R}from"./vendor/json-editor-vue-ho2zu772.js";import{_ as E,p as W}from"#entry";import{_ as q}from"./filepath-item-f2iy8phl.js";import{_ as J}from"./ncode-block-esxkr86l.js";import"./nicon-title-n11g9rad.js";import"./vendor/shiki-g7cm1eew.js";import"./vendor/unocss-d7th42z7.js";import"./client-c6aoxv2l.js";const K=h({__name:"NBadgeHashed",props:{text:{}},setup(i){const d=i,c=$(()=>{const s=B(d.text,50,60),r=B(d.text,50,60,.05);return{color:s,background:r}});return(s,r)=>(l(),y(U,{style:P(c.value)},{default:m(()=>[I(k(i.text),1),O(s.$slots,"default")]),_:3},8,["style"]))}}),L=Object.assign(K,{__name:"NBadgeHashed"}),X={flex:"~ gap-2 col",mb4:""},Z={flex:"~ gap-3 items-center"},A={key:0,flex:"~ gap-1","items-center":"",p1:"",border:"~ base rounded"},G={"max-w-full":"","of-auto":""},Q={"text-center":"",op50:""},Y={flex:"~",px4:""},ee={key:0,op50:""},te={px2:"","text-center":""},oe={"of-auto":""},ne=h({__name:"DebugModuleMutationRecords",props:{moduleMutationRecords:{}},setup(i){const d=i;function c(n){return n.startsWith("/")||n.match(/^[a-z]:[\\/]/i)}const s=_(!1),r=_(!1),v=_(!1),b=_(!1),g=_(!1),p=_(""),S=$(()=>{let n=d.moduleMutationRecords;return s.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")),g.value||(n=n.filter(e=>e.method||e.value!=="[]"&&e.value!=="{}")),p.value&&(n=n.filter(e=>e.name===p.value)),n});return(n,e)=>{const f=T,w=L,D=E,F=q,j=J;return l(),u(x,null,[t("div",X,[t("div",Z,[a(f,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=o=>s.value=o),n:"primary"},{default:m(()=>[...e[6]||(e[6]=[t("span",{"ws-nowrap":"",op75:""},"Builtin Modules",-1)])]),_:1},8,["modelValue"]),a(f,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=o=>r.value=o),n:"primary"},{default:m(()=>[...e[7]||(e[7]=[t("span",{"ws-nowrap":"",op75:""},"Templates",-1)])]),_:1},8,["modelValue"]),a(f,{modelValue:v.value,"onUpdate:modelValue":e[2]||(e[2]=o=>v.value=o),n:"primary"},{default:m(()=>[...e[8]||(e[8]=[t("span",{"ws-nowrap":"",op75:""},"Transpile",-1)])]),_:1},8,["modelValue"]),a(f,{modelValue:b.value,"onUpdate:modelValue":e[3]||(e[3]=o=>b.value=o),n:"primary"},{default:m(()=>[...e[9]||(e[9]=[t("span",{"ws-nowrap":"",op75:""},"Plugins",-1)])]),_:1},8,["modelValue"]),a(f,{modelValue:g.value,"onUpdate:modelValue":e[4]||(e[4]=o=>g.value=o),n:"primary"},{default:m(()=>[...e[10]||(e[10]=[t("span",{"ws-nowrap":"",op75:""},"Empty Initial",-1)])]),_:1},8,["modelValue"]),p.value?(l(),u("div",A,[a(w,{"font-mono":"",text:p.value},null,8,["text"]),a(D,{icon:"carbon-close",border:!1,onClick:e[5]||(e[5]=o=>p.value="")})])):C("",!0)])]),t("table",G,[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:i.moduleMutationRecords.indexOf(o),border:"b dashed transparent hover:base"},[t("td",Q,[t("div",null,k(i.moduleMutationRecords.indexOf(o)+1),1)]),t("td",null,[o.name&&c(o.name)?(l(),y(F,{key:0,filepath:o.name},null,8,["filepath"])):(l(),y(w,{key:1,role:"button","font-mono":"",text:o.name,onClick:V=>p.value=o.name},null,8,["text","onClick"]))]),t("td",null,[t("code",Y,[(l(!0),u(x,null,N(o.keys,(V,M)=>(l(),u(x,{key:M},[t("span",null,k(V),1),M<o.keys.length-1?(l(),u("span",ee," . ")):C("",!0)],64))),128))])]),t("td",te,[a(w,{"font-mono":"",text:o.method||"=",class:z(o.method?"":"saturate-0")},null,8,["text","class"])]),t("td",oe,[a(j,{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)}}}),le=Object.assign(ne,{__name:"DebugModuleMutationRecords"}),ae={key:0,p6:""},se={key:1},ge=h({__name:"debug",setup(i){const d=W();return(c,s)=>{const r=H;return R(d)?(l(),u("div",se,[a(r,{icon:"carbon-container-image-push-pull",text:"Module Mutation Records",description:"Records of module mutations to nuxt options"},{default:m(()=>[a(le,{"module-mutation-records":R(d).moduleMutationRecords||[]},null,8,["module-mutation-records"])]),_:1})])):(l(),u("div",ae,[...s[0]||(s[0]=[t("div",null,"No Debug Context Found",-1),t("div",null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)])]))}}});export{ge as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as o}from"#entry";import{J as t,X as s,a2 as r,$ as a}from"./vendor/json-editor-vue-ho2zu772.js";import"./vendor/shiki-g7cm1eew.js";import"./vendor/unocss-d7th42z7.js";const n={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,f){return s(),t("div",c,[r("div",l,[a(e.$slots,"default")])])}const u=o(n,[["render",d]]);export{u as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as i,q as u,J as d,X as f,a6 as l,$ as a,ab as c,a2 as p,aa as n}from"./vendor/json-editor-vue-ho2zu772.js";const m={"ml-1":"","text-xs":"",op50:""},x=i({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(r){const e=r;function s(t){return e.color?t?(t=t*e.factor,t<.5?"text-gray:50":t>1e3?"text-red-400":t>500?"text-orange-400":t>200?"text-yellow-400":""):"text-gray-400":""}const o=u(()=>!e.duration||e.duration<1?["<1","ms"]:e.duration<1e3?[e.duration.toFixed(0),"ms"]:e.duration<1e3*60?[(e.duration/1e3).toFixed(1),"s"]:[(e.duration/1e3/60).toFixed(1),"min"]);return(t,_)=>(f(),d("div",{class:l(s(r.duration))},[a(t.$slots,"before"),c(" "+n(o.value[0]),1),p("span",m,n(o.value[1]),1),a(t.$slots,"after")],2))}}),D=Object.assign(x,{__name:"DurationDisplay"});export{D as _};
|