@nuxt/devtools 4.0.0-alpha.7 → 4.0.0-alpha.9
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 +2 -2
- package/dist/chunks/analyze-build.mjs +32 -0
- package/dist/chunks/code-server.mjs +75 -0
- package/dist/chunks/module-main.mjs +633 -304
- package/dist/chunks/timeline.mjs +2 -2
- package/dist/chunks/vite-inspect.mjs +75 -39
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-e7n6afwb.js +1 -0
- package/dist/client/_nuxt/analyze-build-hl5kov9g.js +1 -0
- package/dist/client/_nuxt/assets-mhs93a2v.js +6 -0
- package/dist/client/_nuxt/{auth-required-panel-gwrodxrm.js → auth-required-panel-fp6njgq4.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/f408df35-fbed-4f67-b31a-84e2dcf7d5f4.json +1 -0
- package/dist/client/_nuxt/{client-jwk7bkap.js → client-e4xweo15.js} +1 -1
- package/dist/client/_nuxt/client-ox3ztino.js +2 -0
- package/dist/client/_nuxt/code-diff-g3koa3wx.js +8 -0
- package/dist/client/_nuxt/code-snippets-jiqnd4op.js +1 -0
- package/dist/client/_nuxt/components-jjqi3963.js +1 -0
- package/dist/client/_nuxt/composable-item-nslyhu40.js +1 -0
- package/dist/client/_nuxt/composables-jsh6xr6n.js +1 -0
- package/dist/client/_nuxt/custom-_name_-nby2wkqs.js +1 -0
- package/dist/client/_nuxt/data-schema-button-n858k5no.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-nd5v2dc8.js +2 -0
- package/dist/client/_nuxt/debug-iqz97avh.js +1 -0
- package/dist/client/_nuxt/{default-ibmlv6hu.js → default-kms351ji.js} +1 -1
- package/dist/client/_nuxt/dist-cwkxp5t4.js +1 -0
- package/dist/client/_nuxt/dist-das2ggjj.js +1 -0
- package/dist/client/_nuxt/dist-hhnji3pn.js +1 -0
- package/dist/client/_nuxt/{duration-display-cfe3xsok.js → duration-display-kvy6t3q5.js} +1 -1
- package/dist/client/_nuxt/entry.css-hsdbnv92.css +1 -0
- package/dist/client/_nuxt/error-404-m7lxn6po.js +1 -0
- package/dist/client/_nuxt/error-404.css-kodsrozu.css +1 -0
- package/dist/client/_nuxt/error-500-fa1284ej.js +1 -0
- package/dist/client/_nuxt/error-500.css-mq6ubyvk.css +1 -0
- package/dist/client/_nuxt/error-dnpxky1s.js +9 -0
- package/dist/client/_nuxt/{filepath-item-calgslzq.js → filepath-item-elq07qqm.js} +1 -1
- package/dist/client/_nuxt/full-muovlha1.js +1 -0
- package/dist/client/_nuxt/{help-fab-ietvwhig.js → help-fab-mk77l527.js} +1 -1
- package/dist/client/_nuxt/hooks-fuegc0zi.js +1 -0
- package/dist/client/_nuxt/imports-dxp64giy.js +1 -0
- package/dist/client/_nuxt/launch-page-ldhzltru.js +1 -0
- package/dist/client/_nuxt/mbruyqke.js +4 -0
- package/dist/client/_nuxt/modules-ip395o4i.js +1 -0
- package/dist/client/_nuxt/nbadge-odjar6lb.js +1 -0
- package/dist/client/_nuxt/ncheckbox-ecu968cz.js +1 -0
- package/dist/client/_nuxt/ncode-block-ivymjiov.js +2 -0
- package/dist/client/_nuxt/ndrawer-fbwc78mp.js +1 -0
- package/dist/client/_nuxt/ndropdown-j9whus4q.js +1 -0
- package/dist/client/_nuxt/{nicon-title-f3ho3hah.js → nicon-title-lthyup78.js} +1 -1
- package/dist/client/_nuxt/{nlink-endeyoly.js → nlink-iv6gnrhx.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown-iw4stzqp.js → nmarkdown-mbwbivxu.js} +1 -1
- package/dist/client/_nuxt/{nnavbar-n8fcnalx.js → nnavbar-ivws4py6.js} +1 -1
- package/dist/client/_nuxt/none-f6zkixpn.js +1 -0
- package/dist/client/_nuxt/npanel-grids-jzjbt8z8.js +1 -0
- package/dist/client/_nuxt/nsection-block-xwt9b4fq.js +1 -0
- package/dist/client/_nuxt/nselect-efk0r1bm.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-o18hum8e.js +1 -0
- package/dist/client/_nuxt/nsplit-pane-nl6gqw3a.js +1 -0
- package/dist/client/_nuxt/nsplit-pane.css-o64elxn9.css +1 -0
- package/dist/client/_nuxt/{ntip-m8x8y44j.js → ntip-e476flgx.js} +1 -1
- package/dist/client/_nuxt/nuxt-ck1m833g.js +2 -0
- package/dist/client/_nuxt/open-graph-fevqc4qw.js +3 -0
- package/dist/client/_nuxt/overview-mov3ns5a.js +1 -0
- package/dist/client/_nuxt/pages-hl3ggxo7.js +1 -0
- package/dist/client/_nuxt/payload-i1xm1c2a.js +1 -0
- package/dist/client/_nuxt/pinia-j5ib0mm9.js +1 -0
- package/dist/client/_nuxt/plugins-dmozf1ud.js +1 -0
- package/dist/client/_nuxt/ready-mci0xx49.js +1 -0
- package/dist/client/_nuxt/render-tree-ht6m4wvr.js +1 -0
- package/dist/client/_nuxt/runtime-configs-lwkz00jf.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-oyv7niet.js +1 -0
- package/dist/client/_nuxt/server-routes-e2av60g4.js +7 -0
- package/dist/client/_nuxt/server-tasks-jdi82ndh.js +1 -0
- package/dist/client/_nuxt/settings-nqvn74vj.js +1 -0
- package/dist/client/_nuxt/splitpanes.esm-e6jbjw2k.js +1 -0
- package/dist/client/_nuxt/stacktrace-list-bw2f6i1o.js +1 -0
- package/dist/client/_nuxt/state-components-frowf3zr.js +1 -0
- package/dist/client/_nuxt/state-editor-dnnm0b1r.js +1 -0
- package/dist/client/_nuxt/state-modules-b9ourhpx.js +1 -0
- package/dist/client/_nuxt/storage-dtuxyb3g.js +1 -0
- package/dist/client/_nuxt/storage-options-o7q1mchx.js +1 -0
- package/dist/client/_nuxt/timeline-dtcyzchh.js +31 -0
- package/dist/client/_nuxt/{unocss-runtime-kfral2d7.js → unocss-runtime-l66gafm5.js} +1 -1
- package/dist/client/_nuxt/utils-d9q1xry0.js +1 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-l1ffxhko.js +3861 -0
- package/dist/client/_nuxt/vendor/{markdown-it-gg8o3tmh.js → markdown-it-cx0uvu2o.js} +1 -1
- package/dist/client/_nuxt/vendor/{quicktype-core-ozubcbyl.js → quicktype-core-otmjigaj.js} +65 -65
- package/dist/client/_nuxt/vendor/shiki-mgsi4s2l.js +153 -0
- package/dist/client/_nuxt/vendor/unocss-b56v4bpd.js +3 -0
- package/dist/client/_nuxt/virtual-files-odf1l0xb.js +1 -0
- package/dist/client/_nuxt/vue-devtools-bho31pmk.js +4 -0
- package/dist/client/_nuxt/vue-router-d5qsebus.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/view/client.js +20 -3
- package/dist/shared/devtools.CCWq4fFE.mjs +113 -0
- package/dist/types.d.mts +1 -5
- package/dist/webcomponents/index.mjs +1 -1
- package/package.json +45 -52
- package/.discoveryrc.cjs +0 -13
- package/dist/chunks/vscode.mjs +0 -170
- package/dist/client/_nuxt/__blank-ekrx7eve.js +0 -1
- package/dist/client/_nuxt/analyze-build-gtjxxh9s.js +0 -1
- package/dist/client/_nuxt/assets-fxuoynew.js +0 -6
- package/dist/client/_nuxt/builds/meta/23fee0aa-9df9-4da8-b519-ce0799e7da4e.json +0 -1
- package/dist/client/_nuxt/code-diff-d1bf4mlz.js +0 -8
- package/dist/client/_nuxt/code-snippets-nodldh90.js +0 -1
- package/dist/client/_nuxt/components-ibu6c1zd.js +0 -1
- package/dist/client/_nuxt/composable-item-lb3qexrh.js +0 -1
- package/dist/client/_nuxt/custom-_name_-dt22ybu3.js +0 -1
- package/dist/client/_nuxt/data-schema-button-m4wb470q.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-5ccj6aug.js +0 -2
- package/dist/client/_nuxt/debug-nxl66qh3.js +0 -1
- package/dist/client/_nuxt/dist-nsuzcp77.js +0 -1
- package/dist/client/_nuxt/entry.css-m21ytcnz.css +0 -1
- package/dist/client/_nuxt/error-404-izmgsqlm.js +0 -1
- package/dist/client/_nuxt/error-404.css-l9jcssuy.css +0 -1
- package/dist/client/_nuxt/error-500-fejd4grh.js +0 -1
- package/dist/client/_nuxt/error-500.css-he4ew8b1.css +0 -1
- package/dist/client/_nuxt/error-mm873c55.js +0 -9
- package/dist/client/_nuxt/full-pesi6bu3.js +0 -1
- package/dist/client/_nuxt/hooks-mqgelnks.js +0 -1
- package/dist/client/_nuxt/imports-bofdhcsr.js +0 -1
- package/dist/client/_nuxt/launch-page-i8mgxym7.js +0 -1
- package/dist/client/_nuxt/modules-b6uha2ss.js +0 -1
- package/dist/client/_nuxt/nbadge-ft1i3ddy.js +0 -1
- package/dist/client/_nuxt/ncheckbox-gl62y715.js +0 -1
- package/dist/client/_nuxt/ncode-block-ksrq5ppu.js +0 -2
- package/dist/client/_nuxt/ndrawer-evv584t1.js +0 -1
- package/dist/client/_nuxt/ndropdown-dqqc8bnq.js +0 -1
- package/dist/client/_nuxt/none-gr24yqiq.js +0 -1
- package/dist/client/_nuxt/nsection-block-n5u7wj9x.js +0 -1
- package/dist/client/_nuxt/nselect-kdzalcm2.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-e440xayq.js +0 -1
- package/dist/client/_nuxt/nswitch-pdw73751.js +0 -1
- package/dist/client/_nuxt/nuxt-kphganvs.js +0 -1
- package/dist/client/_nuxt/o7y7c26x.js +0 -4
- package/dist/client/_nuxt/open-graph-mtq8qyx5.js +0 -3
- package/dist/client/_nuxt/overview-idjgy9u4.js +0 -1
- package/dist/client/_nuxt/pages-g3tcvbsn.js +0 -1
- package/dist/client/_nuxt/pages-lk0hxlsc.js +0 -1
- package/dist/client/_nuxt/payload-ovd8emqe.js +0 -1
- package/dist/client/_nuxt/pinia-e6em75yg.js +0 -1
- package/dist/client/_nuxt/plugins-ojph2z4c.js +0 -1
- package/dist/client/_nuxt/ready-b5u27bv4.js +0 -1
- package/dist/client/_nuxt/render-tree-iwtso0n9.js +0 -1
- package/dist/client/_nuxt/rpc-ewzip6fb.js +0 -4
- package/dist/client/_nuxt/runtime-configs-gyhmrfcz.js +0 -1
- package/dist/client/_nuxt/server-discovery-cfu428ir.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-hhxdu10p.js +0 -1
- package/dist/client/_nuxt/server-routes-efc7olve.js +0 -7
- package/dist/client/_nuxt/server-tasks-o59rfww6.js +0 -1
- package/dist/client/_nuxt/settings-c6tbo50r.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-c5b46nul.js +0 -1
- package/dist/client/_nuxt/state-components-eaw2evd3.js +0 -1
- package/dist/client/_nuxt/state-editor-jm35t8p1.js +0 -1
- package/dist/client/_nuxt/state-modules-oox7nhib.js +0 -1
- package/dist/client/_nuxt/storage-fdd2zc94.js +0 -1
- package/dist/client/_nuxt/storage-options-ho965h55.js +0 -1
- package/dist/client/_nuxt/terminals-b8awmi75.js +0 -1
- package/dist/client/_nuxt/terminals.css-mejv43xm.css +0 -1
- package/dist/client/_nuxt/timeline-nsh72kov.js +0 -31
- package/dist/client/_nuxt/utils-hgmynvjd.js +0 -2
- package/dist/client/_nuxt/vendor/json-editor-vue-mkw4apmc.js +0 -3869
- package/dist/client/_nuxt/vendor/shiki-c7z35hpo.js +0 -293
- package/dist/client/_nuxt/vendor/unocss-lkro8gbr.js +0 -3
- package/dist/client/_nuxt/vendor/xterm-eb5atty5.js +0 -36
- package/dist/client/_nuxt/vendor/xterm.css-j9zpjwmg.css +0 -1
- package/dist/client/_nuxt/virtual-files-met9zkti.js +0 -1
- package/dist/client/_nuxt/vue-devtools-bl144b70.js +0 -4
- package/dist/client/_nuxt/vue-router-cnnrtyb0.js +0 -1
- package/dist/client/discovery/index.html +0 -611
- package/dist/shared/devtools.nEotcg1R.mjs +0 -113
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,S as t,T as n,Tt as r,W as i,Y as a,Zt as o,_ as s,ct as c,en as l,g as u,h as d,jt as f,m as p,p as m,s as h,ut as g}from"./vendor/json-editor-vue-l1ffxhko.js";import{b as _,n as v}from"#entry";import{t as y}from"./ncode-block-ivymjiov.js";function b(e){return typeof e==`string`?`'${e}'`:new x().serialize(e)}var x=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function S(e,t){return e===t||b(e)===b(t)}var C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],w=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],T=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,E=[],D=class{_data=new O;_hash=new O([...C]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)E[n]=e[t+n]|0;else{let e=E[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=E[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;E[n]=t+E[n-7]+i+E[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+w[n]+E[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=O.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new O(t,i)}},O=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(T.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function k(e){return new D().finalize(e).toBase64()}function A(e){return k(b(e))}var j={key:0,relative:``,"n-code-block":``},M={flex:`~ wrap`,"w-full":``},N=[`onClick`],P={flex:`~ gap-2`,px3:``,pb3:``,n:`sm primary`},F=Object.assign(n({__name:`CodeSnippets`,props:{codeSnippets:{},eventType:{}},setup(n){let b=n,x=r(b.codeSnippets[0]),S=v(),C=m(()=>x.value?.lang||`text`);return c(()=>{b.codeSnippets.includes(x.value)||(x.value=b.codeSnippets[0])}),(r,c)=>{let m=y,v=_;return n.codeSnippets.length?(i(),s(`div`,j,[p(`div`,M,[(i(!0),s(h,null,a(n.codeSnippets,(e,t)=>(i(),s(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:o(e===x.value?``:`border-b`),onClick:t=>x.value=e},[p(`div`,{class:o(e===x.value?``:`op30`),"font-mono":``},l(e.name),3)],10,N))),128)),c[1]||=p(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?(i(),s(h,{key:0},[e(m,{code:x.value.code,lang:C.value,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`,`lang`]),p(`div`,P,[e(v,{icon:`carbon-copy`,onClick:c[0]||=e=>f(S)(x.value.code,n.eventType||`code-snippet-${x.value.name}`)},{default:g(()=>[...c[2]||=[t(` Copy `,-1)]]),_:1}),x.value?.docs?(i(),d(v,{key:0,to:x.value.docs,target:`_blank`,icon:`carbon-catalog`},{default:g(()=>[...c[3]||=[t(` Docs `,-1)]]),_:1},8,[`to`])):u(``,!0)])],64)):u(``,!0)])):u(``,!0)}}}),{__name:`CodeSnippets`});export{A as n,S as r,F as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,C as t,P as n,Q as r,S as i,St as a,T as o,Tt as s,V as c,W as l,X as u,Y as d,Z as f,Zt as p,_ as m,_t as h,dt as g,en as _,g as v,h as y,jt as b,m as x,p as S,s as C,st as ee,ut as w}from"./vendor/json-editor-vue-l1ffxhko.js";import{C as te,E as ne,c as T,i as E,n as D,y as O}from"./utils-d9q1xry0.js";import{U as k,r as A,t as re}from"./client-ox3ztino.js";import{t as j}from"./storage-options-o7q1mchx.js";import{t as M}from"./_plugin-vue_export-helper-d9irwgla.js";import{_ as N,b as P,n as F,w as I,y as ie}from"#entry";import{t as L}from"./ndrawer-fbwc78mp.js";import{t as R}from"./composables-ioamscf4.js";import{t as z}from"./filepath-item-elq07qqm.js";import{t as B}from"./ncheckbox-ecu968cz.js";import{t as V}from"./help-fab-mk77l527.js";import{t as H}from"./nnavbar-ivws4py6.js";import{t as U}from"./nicon-title-lthyup78.js";import{t as W}from"./nsection-block-xwt9b4fq.js";import{n as G}from"./dist-das2ggjj.js";import{t as K}from"./nbadge-odjar6lb.js";import{n as q,t as J}from"./vendor/vis-izx2wksk.js";import{t as Y}from"./nselect-tabs-o18hum8e.js";import{n as X,t as ae}from"./state-components-frowf3zr.js";var oe={},se={class:`markdown-body`};function ce(e,t){return l(),m(`div`,se,[...t[0]||=[x(`template`,null,[x(`div`,{class:`markdown-body`},[x(`h1`,null,`Components`),x(`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.`),x(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),x(`p`,null,[x(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var le=M(oe,[[`render`,ce]]),Z={"text-sm":``,"font-mono":``},Q=Object.assign(o({__name:`ComponentName`,props:{component:{}},setup(e){let t=e,n=S(()=>t.component.pascalName||G(t.component.name||t.component.__name||t.component.kebabName||``));return(e,t)=>(l(),m(`code`,Z,[t[0]||=x(`span`,{mr1:``,op20:``},`<`,-1),i(_(n.value),1),t[1]||=x(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),{__name:`ComponentName`}),ue={flex:`~ col gap1`,"items-start":``,"of-hidden":``},de={flex:`~ gap2 items-center`,px3:``},fe={px3:``,pb2:``},pe={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},me={"text-sm":``},he={"text-primary":``},ge={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},_e={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ve={"text-sm":``},ye={"text-primary":``},be={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},$=Object.assign(o({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=S(()=>n.component.pascalName||G(n.component.name||n.component.__name||n.component.kebabName||``)),a=S(()=>n.component.filePath||n.component.file||n.component.__file||``),o=F();return(n,s)=>{let c=Q,f=P,p=K,h=z;return l(),m(`div`,ue,[x(`div`,de,[t(c,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(l(),y(f,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:w(()=>[...s[1]||=[i(` Docs `,-1)]]),_:1},8,[`to`])):v(``,!0),t(f,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:s[0]||=e=>b(o)(`<${r.value}></${r.value}>`,`component-name`)},{default:w(()=>[...s[2]||=[i(` Copy `,-1)]]),_:1}),e.component.global?(l(),y(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):v(``,!0)]),x(`div`,fe,[a.value?(l(),y(h,{key:0,filepath:a.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):v(``,!0)]),e.dependents?(l(),m(`div`,pe,[x(`div`,me,[x(`strong`,he,_(e.dependents.length),1),s[3]||=x(`span`,{op50:``},` references`,-1)]),e.dependents.length?(l(),m(`div`,ge,[(l(!0),m(C,null,d(e.dependents,e=>(l(),y(h,{key:e,filepath:e},null,8,[`filepath`]))),128))])):v(``,!0)])):v(``,!0),e.dependencies?(l(),m(`div`,_e,[x(`div`,ve,[x(`strong`,ye,_(e.dependencies.length),1),s[4]||=x(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(l(),m(`div`,be,[(l(!0),m(C,null,d(e.dependencies,e=>(l(),y(h,{key:e,filepath:e},null,8,[`filepath`]))),128))])):v(``,!0)])):v(``,!0),u(n.$slots,`default`)])}}}),{__name:`ComponentDetails`}),xe={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},Se={relative:``,"h-full":``,"w-full":``},Ce={key:0,py4:``,pt3:``,flex:`~ col`},we={border:`t base`,p4:``},Te=Object.assign(o({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(e){let n=e,r=a(),o=a(),d=re(),f=s(),p=ne(),g=te(),_=O(),{componentsGraphShowNodeModules:y,componentsGraphShowGlobalComponents:T,componentsGraphShowPages:E,componentsGraphShowLayouts:D,componentsGraphShowWorkspace:A}=j(`ui`),M=a(),N=a(``),F=k(N,300),I=S(()=>{let e=n.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),[...t]}return e}),R=S(()=>{let e=I.value.map(e=>{let t=n.components.find(t=>t.filePath===e.id),r=p.value?.find(t=>t.file===e.id),i=_.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:i?`layout`:r?`page`:`unknown`;if(!y.value&&a===`lib`||!E.value&&a===`page`||!D.value&&a===`layout`||!A.value&&a===`user`&&g.value&&!e.id.startsWith(g.value.rootDir)||!T.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=F.value&&!e.id.toLowerCase().includes(F.value.toLowerCase());return{id:e.id,label:Y(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:d.value===`dark`?`white`:`black`},color:s?`#8885`:M.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:r,layout:i,relationship:e}}}).filter(e=>!!e),t=I.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new q(e),edges:t}}),z=S(()=>f.value?.component?(n.relationships?.find(e=>e.id===f.value?.component?.filePath)?.deps)?.map(e=>n.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),V=S(()=>f.value?.component?(n.relationships?.filter(e=>e.deps.includes(f.value.component.filePath)))?.map(e=>n.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);c(()=>{let e=new J(r.value,R.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];f.value=R.value.nodes.get(t).extra}),ee(R,()=>{e.setData(R.value)})});function U(){f.value=void 0}let W=/.*\/components\//,G=/\.vue$/,K=/\/index$/;function Y(e){let t=n.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(K,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){M.value=f.value?.relationship,f.value=void 0}return(e,n)=>{let a=B,s=H,c=ie,d=$,p=P,g=L;return l(),m(C,null,[t(s,{ref_key:`navbar`,ref:o,search:N.value,"onUpdate:search":n[6]||=e=>N.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:w(()=>[x(`div`,xe,[t(a,{modelValue:b(E),"onUpdate:modelValue":n[0]||=e=>h(E)?E.value=e:null,n:`primary sm`},{default:w(()=>[...n[8]||=[x(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),t(a,{modelValue:b(D),"onUpdate:modelValue":n[1]||=e=>h(D)?D.value=e:null,n:`primary sm`},{default:w(()=>[...n[9]||=[x(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),t(a,{modelValue:b(A),"onUpdate:modelValue":n[2]||=e=>h(A)?A.value=e:null,n:`primary sm`},{default:w(()=>[...n[10]||=[x(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),t(a,{modelValue:b(y),"onUpdate:modelValue":n[3]||=e=>h(y)?y.value=e:null,n:`primary sm`},{default:w(()=>[...n[11]||=[x(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),t(a,{modelValue:b(T),"onUpdate:modelValue":n[4]||=e=>h(T)?T.value=e:null,n:`primary sm`},{default:w(()=>[...n[12]||=[x(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),M.value?(l(),m(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:n[5]||=e=>M.value=void 0},[...n[13]||=[i(` Clear filter `,-1),x(`div`,{"i-carbon-close":``},null,-1)]])):v(``,!0),n[14]||=x(`div`,{"flex-auto":``},null,-1),u(e.$slots,`default`)]),_:3},8,[`search`]),x(`div`,Se,[x(`div`,{ref_key:`container`,ref:r,"h-full":``,"w-full":``},null,512),t(c,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:w(()=>[...n[15]||=[x(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),x(`div`,{op50:``},` Component `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),x(`div`,{op50:``},` Global Component `),x(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),x(`div`,{op50:``},` Page `),x(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[x(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),x(`div`,{op50:``},` Layout `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),x(`div`,{op50:``},` Library Component `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),x(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),t(g,{"model-value":!!(f.value&&f.value.component),top:o.value,border:`t l base`,"w-80":``,onClose:U},{default:w(()=>[f.value&&f.value.component?(l(),m(`div`,Ce,[t(d,{component:f.value.component,dependencies:z.value,dependents:V.value},null,8,[`component`,`dependencies`,`dependents`]),x(`div`,we,[t(p,{n:`primary solid`,onClick:n[7]||=e=>X()},{default:w(()=>[...n[16]||=[i(` Filter to this component `,-1)]]),_:1})])])):v(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),{__name:`ComponentsGraph`}),Ee={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},De={key:0,"ml--1":``,"text-primary":``},Oe=Object.assign(o({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=S(()=>n.component.filePath||n.component.file||n.component.__file||``);return(n,i)=>{let a=Q,o=$,s=f(`VDropdown`),c=K,d=z;return l(),m(`div`,Ee,[t(s,null,{popper:w(()=>[t(o,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:w(()=>[x(`button`,{"hover:text-primary":``,class:p(e.dependents&&e.dependents.length===0?`op50`:``)},[t(a,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(l(),m(`sup`,De,` x`+_(e.dependents?.length),1)):v(``,!0),e.component.global?(l(),y(c,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):v(``,!0),u(n.$slots,`default`),r.value?(l(),y(d,{key:2,filepath:r.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):v(``,!0)])}}}),{__name:`ComponentItem`}),ke={flex:`~ gap-2 items-center`},Ae={pl4:``},je=Object.assign(o({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let r=e,i=a(``),o=a(`all`),s=S(()=>{let e=r.components.map(e=>D(e,r.relationships));return o.value===`using`?e.filter(e=>e.dependents?.length):o.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`},f=S(()=>new N(s.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),p=S(()=>{let e=[],t=new Map,n=[],r=[],a={user:0,lib:0,builtin:0,runtime:0};return(i.value?f.value.search(i.value).map(e=>e.item):s.value).forEach(i=>{let o=i.component;if(o.filePath&&T(o.filePath)){let e=E(o.filePath);if(!e)return;e===`nuxt`?(o.meta??={},o.meta.docs??=c?.[o.pascalName],n.push(i),a.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(i),a.lib++)}else o.global&&!o.filePath?(r.push(i),a.runtime++):(e.push(i),a.user++)}),{count:a,user:e,builtin:n,lib:t,runtime:r}});return(e,r)=>{let a=I,s=Y,c=H,f=Oe,h=W,g=U;return l(),m(C,null,[t(c,{search:i.value,"onUpdate:search":r[1]||=e=>i.value=e,pb3:``},{actions:w(()=>[u(e.$slots,`default`)]),default:w(()=>[x(`div`,ke,[t(a,{icon:`carbon-filter`,op50:``}),t(s,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.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`]),p.value.user.length?(l(),y(h,{key:0,icon:`carbon-nominal`,text:`User components`,open:p.value.user.length<=b(50),description:`Total components: ${p.value.count.user}`},{default:w(()=>[(l(!0),m(C,null,d(p.value.user,e=>(l(),y(f,n({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):v(``,!0),p.value.runtime.length?(l(),y(h,{key:1,icon:`carbon-load-balancer-global`,open:p.value.runtime.length<=b(50),text:`Runtime components`,description:`Total components: ${p.value.count.runtime}`},{default:w(()=>[(l(!0),m(C,null,d(p.value.runtime,e=>(l(),y(f,n({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):v(``,!0),p.value.builtin.length?(l(),y(h,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${p.value.count.builtin}`},{default:w(()=>[(l(!0),m(C,null,d(p.value.builtin,e=>(l(),y(f,n({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):v(``,!0),p.value.lib.size?(l(),y(h,{key:3,open:p.value.count.lib<=b(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:w(()=>[(l(!0),m(C,null,d(p.value.lib.entries(),([e,r])=>(l(),m(`div`,{key:e,"ml-2":``},[t(g,{text:`${e} (${r.length})`,py1:``,op50:``},null,8,[`text`]),x(`div`,Ae,[(l(!0),m(C,null,d(r,e=>(l(),y(f,n({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):v(``,!0)],64)}}}),{__name:`ComponentsList`}),Me={relative:``,"h-full":``,"of-auto":``},Ne={"flex-none":``,flex:`~ gap3`},Pe=o({__name:`components`,setup(n){R({icon:`i-carbon-assembly-cluster`,title:`Components`,order:2});let i=A(),a=ae(),o=X(),{componentsView:s}=j(`ui`);function c(){i.value?.inspector?.enable()}function u(){s.value=s.value===`list`?`graph`:`list`}return(n,d)=>{let f=P,p=le,h=V,_=r(`tooltip`);return l(),m(C,null,[x(`div`,Me,[(l(),y(e(b(s)===`list`?je:Te),{components:b(a),relationships:b(o)},{default:w(()=>[x(`div`,Ne,[g(t(f,{"text-lg":``,border:!1,icon:b(s)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:u},null,8,[`icon`]),[[_,`Toggle View`,void 0,{"bottom-end":!0}]]),b(i)?.inspector?.isAvailable?g((l(),y(f,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:c},null,512)),[[_,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):v(``,!0)])]),_:1},8,[`components`,`relationships`]))]),t(h,null,{default:w(()=>[t(p)]),_:1})],64)}}});export{Pe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,S as t,T as n,W as r,Y as i,Z as a,Zt as o,_ as s,en as c,g as l,h as u,jt as d,m as f,p,s as m,ut as h}from"./vendor/json-editor-vue-l1ffxhko.js";import{b as g,n as _,r as v,w as y}from"#entry";import{t as b}from"./filepath-item-elq07qqm.js";import{t as x}from"./constants-g2z8m4rs.js";import{t as S}from"./dist-das2ggjj.js";import{t as C}from"./nmarkdown-mbwbivxu.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=Object.assign(n({__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){let I=n,L=_(),R=v(),z=p(()=>I.item.as||I.item.name),B=p(()=>{let e=z.value;return I.isDirective&&(e[0]!==`v`&&(e=`v${e}`),e=S(e)),e}),V=p(()=>I.metadata?.injectionsUsageMap?.get(z.value)?.count||0),H=p(()=>(I.metadata?.injectionsUsageMap?.get(z.value)?.moduleIds||[]).filter(e=>!e.endsWith(`?macro=true`))),U=p(()=>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(p,_)=>{let v=y,x=C,S=g,W=b,G=a(`VDropdown`);return r(),u(G,{disabled:!I.metadata},{popper:h(()=>[f(`div`,O,[f(`div`,k,[n.item.meta?.description?(r(),u(x,{key:0,tag:`div`,pb3:``,"text-sm":``,markdown:n.item.meta.description},null,8,[`markdown`])):l(``,!0),f(`div`,A,[e(S,{icon:`carbon-copy`,onClick:_[0]||=e=>d(L)(B.value,`imports-name`)},{default:h(()=>[..._[2]||=[t(` Copy `,-1)]]),_:1}),n.filepath?(r(),u(S,{key:0,icon:`carbon-code`,onClick:_[1]||=e=>n.filepath&&d(R)(n.filepath)},{default:h(()=>[..._[3]||=[t(` Source `,-1)]]),_:1})):l(``,!0),U.value?(r(),u(S,{key:1,icon:`carbon-catalog`,to:U.value,target:`_blank`},{default:h(()=>[..._[4]||=[t(` Docs `,-1)]]),_:1},8,[`to`])):l(``,!0)])]),f(`div`,j,[V.value?(r(),s(m,{key:0},[f(`div`,M,[_[5]||=f(`span`,{op50:``},`It has been referenced `,-1),f(`strong`,N,c(V.value),1),_[6]||=f(`span`,{op50:``},` times by:`,-1)]),f(`div`,P,[(r(!0),s(m,null,i(H.value,e=>(r(),u(W,{key:e,filepath:e},null,8,[`filepath`]))),128))])],64)):(r(),s(`div`,F,` Not in use via auto import. `))])])]),default:h(()=>[f(`button`,{"hover:text-primary":``,class:o([n.metadata&&!V.value?`op30 hover:op100`:``,n.classes])},[f(`code`,w,[t(c(z.value)+` `,1),V.value&&n.counter?(r(),s(`sup`,T,`x`+c(V.value),1)):l(``,!0)]),n.isDirective?(r(),s(`sup`,E,[f(`abbr`,D,[e(v,{icon:`tabler:hexagon-letter-d`})])])):l(``,!0)],2)]),_:1},8,[`disabled`])}}}),{__name:`ComposableItem`});export{I as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,h as t,i as n,v as r,x as i}from"./nuxt-ck1m833g.js";import{A as a,E as o,I as s,R as c,St as l,_t as u,ct as d,ht as f,j as p,kt as m,z as h}from"./vendor/json-editor-vue-l1ffxhko.js";var g=i({docsBase:e,reporters:r}),_=new Set([`link`,`style`,`script`,`noscript`]),v=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),y=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),b=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),x=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),S=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),C=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),w=new Set([`theme-color`,`google-site-verification`,`og`,`article`,`book`,`profile`,`twitter`,`author`]),T={critical:-8,high:-1,low:2};function E(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function D(e){let n=new t;for(let t in e||{})n.hook(t,e[t]);return n}function O(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}var k=/^(?:viewport|description|keywords|robots)$/,A=[`name`,`property`,`http-equiv`];function j(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.indexOf(`:`,t+1);return w.has(e.slice(t+1,n===-1?e.length:n))}function M(e){let{props:t,tag:n,key:r}=e;if(x.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of A){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!k.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:v.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function N(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return t;let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function P(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=P(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=E(n),a=i?void 0:P(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var F=/[\s"'<>/=\x00-\x1F\x7F]/;function I(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e)if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function L(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=y.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(E(r))continue;let i=r.startsWith(`data-`),a=n&&!S.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||F.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=I(r,s);else if(S.has(r))if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=t.type=n,e[r]=JSON.stringify(s))}else e[r]=s;else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function R(e,t){let n=L({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&_.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)){let e=[];for(let t of n.props.content)e.push({...n,props:{...n.props,content:t}});return e}return n}function z(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function B(e,t){if(!e)return[];typeof e==`function`&&(e=e());let n;t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),e=P(e,n);let r=[];for(let t in e){let n=e[t];if(n!==void 0)if(Array.isArray(n))for(let e of n)z(r,R(t,e));else z(r,R(t,n))}return r}var ee=/</g,V=/<\/script/g,H=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,U=()=>100;function W(e){for(let t in e)return!1;return!0}var G=/^tags:|:render/;function K(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function q(e){for(let t=0;t<e.length;t++){let n=e[t],r={...n.props};r.class instanceof Set&&(r.class=new Set(r.class)),r.style instanceof Map&&(r.style=new Map(r.style)),e[t]={...n,props:r}}}function J(e,t){let n=e.tags,r=0;for(let t of e.tagMap.values())if(Array.isArray(t))for(let e of t)n[r++]=e;else n[r++]=t;n.length=r,t&&n.sort(H)}function Y(e){let t=!1;for(let n of e.tags.sort(H)){let r=n._d||N(n);if(!r)continue;let i=e.tagMap.get(r);if(!i){e.tagMap.set(r,n);continue}if((n.tagDuplicateStrategy||(C.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&j(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w<i._w)&&e.tagMap.set(r,n)}return t}function X(e,t){let n=e.tagMap.get(`title`),r=e.tagMap.get(`titleTemplate`);if(t._title=n?.textContent,!r)return;let i=r.textContent;if(t._titleTemplate=i,!i)return;let a=typeof i==`function`?i(n?.textContent):i;typeof a==`string`&&!t.plugins.has(`template-params`)&&(a=a.replace(`%s`,n?.textContent||``)),n?a===null?e.tagMap.delete(`title`):e.tagMap.set(`title`,{...n,textContent:a}):e.tagMap.set(`titleTemplate`,{...r,tag:`title`,textContent:a})}function Z(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(!(!b.has(i)||W(a)&&!r&&!n.textContent)&&!(i===`meta`&&!a.content&&!a[`http-equiv`]&&!a.charset)){if(i===`script`&&(r||n.textContent)){let e=String(a.type),t=e.endsWith(`json`)||e===`importmap`||e===`speculationrules`,i=e=>t?(typeof e==`string`?e:JSON.stringify(e)).replace(ee,`\\u003C`):typeof e==`string`?e.replace(V,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&=i(n.textContent),n._d=M(n)}e[t++]=n}}return e.length=t,e}function Q(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??U,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};K(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&O(e,`entries:resolve`,{entries:a,...r})),K(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a)if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||W(t.options)))a=t._precomputedTags;else{if(a=B(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!W(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};O(e,`entries:normalize`,n),a=n.tags}for(let e=0;e<a.length;e++){let r=a[e];r._w=n(r),r._p=(t._i<<10)+e,r._d=M(r),r._d||(r._h=N(r))}t._tags=a}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&G.test(e)){q(r.tags);break}let o=Y(r);return X(r,e),J(r,o),O(e,`tags:beforeResolve`,r),O(e,`tags:resolve`,r),O(e,`tags:afterResolve`,r),Z(r.tags)}var $=`usehead`;function te(){if(a()){let e=p($);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function ne(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide($,e)}}.install}var re=Object.assign((e,t)=>u(t)?m(t):t,{_static:!0});function ie(e,t={}){let n=t.head||te();return n.ssr?n.push(e||{},t):ae(n,e,t)}function ae(e,t,n={}){let r=f();if(r&&!r.active)return{patch(){},dispose(){},_i:-1};let i=l(!1);if(n.onRendered&&r){let e=n.onRendered;n={...n,onRendered:t=>r.run(()=>e(t))}}let a;return d(()=>{let r=i.value?{}:P(t,re);a?a.patch(r):a=e.push(r,n)}),o()&&(c(()=>{a.dispose()}),h(()=>{i.value=!0}),s(()=>{i.value=!1})),a}function oe(e){let t=e||n();return t.ssrContext?.head||t.runWithContext(()=>{if(a()){let e=p(`usehead`);if(!e)throw g.NUXT_E6001();return e}})}function se(e,t={}){return ie(e,{head:t.head||oe(t.nuxt),...t})}export{j as a,O as c,T as d,N as i,D as l,ne as n,L as o,M as r,Q as s,se as t,y as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,C as t,F as n,H as r,S as i,St as a,T as o,V as s,W as c,_ as l,bt as u,ct as d,en as f,h as p,jt as m,m as h,p as g,ut as _}from"./vendor/json-editor-vue-l1ffxhko.js";import{b as v,y}from"./ready-mci0xx49.js";import{D as b,p as x,s as S,t as C}from"./client-ox3ztino.js";import{g as w,o as T,s as E,y as D}from"#entry";import{t as O}from"./composables-ioamscf4.js";import{t as k}from"./npanel-grids-jzjbt8z8.js";import{t as A}from"./auth-required-panel-fp6njgq4.js";import{t as j}from"./launch-page-ldhzltru.js";var M=new Map,N=Object.assign(o({__name:`IframeView`,props:{tab:{}},setup(e){let t=e,i=C(),o=a(),f=g(()=>t.tab.name),p=a(),m=u(b(o));s(()=>{let e=t.tab.view,r=e.persistent!==!1,i=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(M.get(f.value)&&r)p.value=M.get(f.value),p.value.style.visibility=`visible`;else{p.value=document.createElement(`iframe`),p.value.setAttribute(`allow`,i.join(`; `)),p.value.setAttribute(`aria-label`,`Nuxt Devtools`),r&&M.set(f.value,p.value),p.value.src=e.src;try{p.value.style.opacity=`0.01`,p.value.onload=()=>{v(),h(),p.value.style.opacity=`1`}}catch{p.value.style.opacity=`1`}document.body.appendChild(p.value),n(y)}setTimeout(h,100)}),d(y),d(h),d(v),r(()=>{p.value&&(p.value.style.visibility=`hidden`)});function h(){if(!(!p.value||!p.value.contentWindow))try{let e=p.value.contentWindow.document.querySelector(`html`);e?.classList.toggle(`dark`,i.value===`dark`),e?.classList.toggle(`light`,i.value===`dark`),new MutationObserver(()=>{i.value=p.value?.contentWindow?.document.querySelector(`html`)?.classList.contains(`dark`)?`dark`:`light`}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let _=S();function v(){if(!(!p.value||!p.value.contentWindow))try{p.value.contentWindow.__NUXT_DEVTOOLS__=_.value}catch{}}function y(){p.value&&Object.assign(p.value.style,{position:`fixed`,left:`${m.left}px`,top:`${m.top}px`,width:`${m.width}px`,height:`${m.height}px`,outline:`none`})}return(e,t)=>(c(),l(`div`,{ref_key:`anchor`,ref:o,"h-full":``,"w-full":``},null,512))}}),{__name:`IframeView`}),P={flex:`~ col gap2`,mxa:``,"items-center":``},F={"text-xl":``},I={"text-rose":``},L=o({__name:`custom-[name]`,props:{name:{}},setup(n){let r=n;O({layout:`full`});let a=y(),o=v(),l=g(()=>r.name??a.params.name),u=w(),d=g(()=>u.value.find(e=>e.name===l.value));return s(()=>{d.value?d.value.requireAuth&&!T.value&&E():setTimeout(()=>{d.value||o.push(`/modules/overview`)},2e3)}),(n,r)=>{let a=k,o=A,s=N,u=j,g=D;return d.value?d.value.requireAuth&&!m(T)?(c(),p(o,{key:1})):d.value.view.type===`iframe`?(c(),p(s,{key:2,tab:d.value},null,8,[`tab`])):d.value.view.type===`vnode`?(c(),p(e(d.value.view.vnode),{key:3})):d.value.view.type===`launch`?(c(),p(u,{key:4,name:`custom-${d.value.name}`,icon:d.value.view.icon||d.value.icon,title:d.value.view.title||d.value.title,description:d.value.view.description,actions:d.value.view.actions,onAction:r[0]||=e=>m(x).customTabAction(d.value.name,e)},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(c(),p(a,{key:5},{default:_(()=>[t(g,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:_(()=>[i(` Unknown tab type `+f(d.value.view),1)]),_:1})]),_:1})):(c(),p(a,{key:0},{default:_(()=>[h(`div`,P,[r[3]||=h(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),h(`p`,F,[r[1]||=i(` Tab `,-1),h(`code`,I,f(l.value),1),r[2]||=i(` not found `,-1)]),r[4]||=h(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),r[5]||=h(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Q as e,T as t,W as n,dt as r,h as i}from"./vendor/json-editor-vue-l1ffxhko.js";import{b as a,t as o}from"#entry";var s=Object.assign(t({__name:`DataSchemaButton`,props:{getter:{type:Function}},setup(t){let s=o();return(o,c)=>{let l=a,u=e(`tooltip`);return r((n(),i(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`]])}}}),{__name:`DataSchemaButton`});export{s as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as e,N as t,St as n,T as r,W as i,X as a,Y as o,_ as s,dt as c,en as l,g as u,h as d,it as f,jt as p,m,p as h,s as g,st as _,u as v,ut as y}from"./vendor/json-editor-vue-l1ffxhko.js";import{L as b,j as x}from"./ready-mci0xx49.js";import{v as S}from"./client-ox3ztino.js";import{b as C,n as w,t as T}from"#entry";import{t as E}from"./nselect-efk0r1bm.js";import{t as D}from"./ndropdown-j9whus4q.js";import{t as O}from"./ncode-block-ivymjiov.js";import{t as k}from"./ndrawer-fbwc78mp.js";import{n as A,t as j}from"./vendor/quicktype-core-otmjigaj.js";var M=[`checked`,`disabled`],N=[`disabled`],P=Object.assign(r({__name:`NSwitch`,props:t({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=f(e,`modelValue`);return(n,r)=>(i(),s(`label`,{class:`n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled`,checked:t.value||null,disabled:e.disabled||null},[c(m(`input`,{"onUpdate:modelValue":r[0]||=e=>t.value=e,type:`checkbox`,class:`peer absolute op0`,disabled:e.disabled,onKeypress:r[1]||=b(e=>t.value=!t.value,[`enter`])},null,40,N),[[x,t.value]]),r[2]||=m(`div`,{class:`n-switch-slider n-transition n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base`},[m(`div`,{class:`n-switch-thumb n-transition n-checked:n-switch-thumb-checked`})],-1),a(n.$slots,`default`)],8,M))}}),{__name:`NSwitch`}),F=j(),I=A(),L={border:`b base`,flex:`~ items-center gap-2`,sticky:``,"left-0":``,"right-0":``,"top-0":``,"z-1":``,"bg-base":``,p3:``},R={key:0,flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--2":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-lime:30":``,"text-8px":``},z={flex:`~ col`,"w-100":``,"of-auto":``,py2:``},B={"text-xs":``,capitalize:``,op75:``},V=Object.assign(r({__name:`DataSchemaDrawer`,setup(t){let r=T(),a=n(0),c=n(`TypeScript`),f=h(()=>I.all.find(e=>e.displayName===c.value)),b=n(f.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)),x=S(async()=>{if(a.value,!r.value)return``;let e=(0,F.jsonInputForTargetLanguage)(c.value);await e.addSource({name:r.value.name??`Data`,samples:[r.value.input]});let t=new F.InputData;return t.addInput(e),(await(0,F.quicktype)({inputData:t,lang:c.value,rendererOptions:b.value?.reduce((e,t)=>(e[t.name]=t.defaultValue,e),{})})).lines.join(`
|
|
2
|
+
`)}),A=h(()=>{let e=c.value.toLocaleLowerCase();return e.startsWith(`javascript`)?`javascript`:e.startsWith(`json`)?`json`:e.startsWith(`typescript`)?`typescript`:e});_(b,()=>{a.value++},{deep:!0}),_(c,()=>{b.value=f.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)});let j=w();function M(){j(x.value||``)}return(t,n)=>{let a=E,h=C,_=P,S=D,w=O,T=k;return f.value?(i(),d(v,{key:0,to:`body`},[e(T,{"model-value":!!p(r)?.input,"auto-close":``,"max-w-screen":``,"w-2xl":``,"n-code-block":``,onClose:n[2]||=e=>r.value=null},{default:y(()=>[m(`div`,L,[n[3]||=m(`p`,{"mr-2":``},` Schema `,-1),e(a,{modelValue:c.value,"onUpdate:modelValue":n[0]||=e=>c.value=e,n:`xs primary`},{default:y(()=>[(i(!0),s(g,null,o(p(I.all),e=>(i(),s(`option`,{key:e.displayName},l(e.displayName),1))),128))]),_:1},8,[`modelValue`]),b.value?.length?(i(),d(S,{key:0,n:`sm lime`},{trigger:y(({click:t})=>[e(h,{icon:`carbon-settings`,"h-full":``,onClick:e=>t()},null,8,[`onClick`]),b.value?(i(),s(`span`,R,l(b.value.length),1)):u(``,!0)]),default:y(()=>[m(`div`,z,[(i(!0),s(g,null,o(b.value,(e,t)=>(i(),d(_,{key:e.name,modelValue:b.value[t].defaultValue,"onUpdate:modelValue":e=>b.value[t].defaultValue=e,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:y(()=>[m(`span`,B,l(e.description),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):u(``,!0),n[4]||=m(`div`,{"flex-auto":``},null,-1),e(h,{icon:`carbon-copy`,"mr-6":``,"h-full":``,onClick:n[1]||=e=>M()})]),p(x)?(i(),d(w,{key:0,lang:A.value,code:p(x)},null,8,[`lang`,`code`])):u(``,!0)]),_:1},8,[`model-value`])])):u(``,!0)}}}),{__name:`DataSchemaDrawer`});export{V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,C as t,S as n,St as r,T as i,W as a,X as o,Y as s,Zt as c,_ as l,en as u,g as d,h as f,jt as p,m,p as h,s as g,ut as _}from"./vendor/json-editor-vue-l1ffxhko.js";import{w as v}from"./utils-d9q1xry0.js";import{b as y}from"#entry";import{t as b}from"./ncode-block-ivymjiov.js";import{t as x}from"./composables-ioamscf4.js";import{t as S}from"./filepath-item-elq07qqm.js";import{t as C}from"./ncheckbox-ecu968cz.js";import{t as w}from"./nsection-block-xwt9b4fq.js";import{t as T}from"./nbadge-odjar6lb.js";import{t as E}from"./color-abaog8vc.js";var D=Object.assign(i({__name:`NBadgeHashed`,props:{text:{}},setup(t){let r=t,i=h(()=>({color:E(r.text,50,60),background:E(r.text,50,60,.05)}));return(r,s)=>(a(),f(T,{style:e(i.value)},{default:_(()=>[n(u(t.text),1),o(r.$slots,`default`)]),_:3},8,[`style`]))}}),{__name:`NBadgeHashed`}),O={flex:`~ gap-2 col`,mb4:``},k={flex:`~ gap-3 items-center`},A={key:0,flex:`~ gap-1`,"items-center":``,p1:``,border:`~ base rounded`},j={"max-w-full":``,"of-auto":``},M={"text-center":``,op50:``},N={flex:`~`,px4:``},P={key:0,op50:``},F={px2:``,"text-center":``},I={"of-auto":``},L=Object.assign(i({__name:`DebugModuleMutationRecords`,props:{moduleMutationRecords:{}},setup(e){let n=e,i=/^[a-z]:[\\/]/i;function o(e){return e.startsWith(`/`)||e.match(i)}let p=r(!1),v=r(!1),x=r(!1),w=r(!1),T=r(!1),E=r(``),L=h(()=>{let e=n.moduleMutationRecords;return p.value||(e=e.filter(e=>!e.name.startsWith(`nuxt:`)&&e.name!==`@nuxt/devtools`)),v.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.templates`)),x.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.transpile`)),w.value||(e=e.filter(e=>e.keys.join(`.`)!==`plugins`)),T.value||(e=e.filter(e=>e.method||e.value!==`[]`&&e.value!==`{}`)),E.value&&(e=e.filter(e=>e.name===E.value)),e});return(n,r)=>{let i=C,h=D,R=y,z=S,B=b;return a(),l(g,null,[m(`div`,O,[m(`div`,k,[t(i,{modelValue:p.value,"onUpdate:modelValue":r[0]||=e=>p.value=e,n:`primary`},{default:_(()=>[...r[6]||=[m(`span`,{"ws-nowrap":``,op75:``},`Builtin Modules`,-1)]]),_:1},8,[`modelValue`]),t(i,{modelValue:v.value,"onUpdate:modelValue":r[1]||=e=>v.value=e,n:`primary`},{default:_(()=>[...r[7]||=[m(`span`,{"ws-nowrap":``,op75:``},`Templates`,-1)]]),_:1},8,[`modelValue`]),t(i,{modelValue:x.value,"onUpdate:modelValue":r[2]||=e=>x.value=e,n:`primary`},{default:_(()=>[...r[8]||=[m(`span`,{"ws-nowrap":``,op75:``},`Transpile`,-1)]]),_:1},8,[`modelValue`]),t(i,{modelValue:w.value,"onUpdate:modelValue":r[3]||=e=>w.value=e,n:`primary`},{default:_(()=>[...r[9]||=[m(`span`,{"ws-nowrap":``,op75:``},`Plugins`,-1)]]),_:1},8,[`modelValue`]),t(i,{modelValue:T.value,"onUpdate:modelValue":r[4]||=e=>T.value=e,n:`primary`},{default:_(()=>[...r[10]||=[m(`span`,{"ws-nowrap":``,op75:``},`Empty Initial`,-1)]]),_:1},8,[`modelValue`]),E.value?(a(),l(`div`,A,[t(h,{"font-mono":``,text:E.value},null,8,[`text`]),t(R,{icon:`carbon-close`,border:!1,onClick:r[5]||=e=>E.value=``})])):d(``,!0)])]),m(`table`,j,[r[11]||=m(`thead`,{border:`b base`},[m(`tr`,null,[m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Index `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Module `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Key Path `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Method `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Value `)])],-1),m(`tbody`,null,[(a(!0),l(g,null,s(L.value,n=>(a(),l(`tr`,{key:e.moduleMutationRecords.indexOf(n),border:`b dashed transparent hover:base`},[m(`td`,M,[m(`div`,null,u(e.moduleMutationRecords.indexOf(n)+1),1)]),m(`td`,null,[n.name&&o(n.name)?(a(),f(z,{key:0,filepath:n.name},null,8,[`filepath`])):(a(),f(h,{key:1,role:`button`,"font-mono":``,text:n.name,onClick:e=>E.value=n.name},null,8,[`text`,`onClick`]))]),m(`td`,null,[m(`code`,N,[(a(!0),l(g,null,s(n.keys,(e,t)=>(a(),l(g,{key:t},[m(`span`,null,u(e),1),t<n.keys.length-1?(a(),l(`span`,P,` . `)):d(``,!0)],64))),128))])]),m(`td`,F,[t(h,{"font-mono":``,text:n.method||`=`,class:c(n.method?``:`saturate-0`)},null,8,[`text`,`class`])]),m(`td`,I,[t(B,{code:String(n.value),lang:`ts`,"grammar-context-code":`let a = `,"ws-normal":``,"break-all":``,py1:``,lines:!1,inline:!0},null,8,[`code`])])]))),128))])])],64)}}}),{__name:`DebugModuleMutationRecords`}),R={key:0,p6:``},z={key:1},B=i({__name:`debug`,setup(e){x({icon:`i-carbon-debug`,title:`Debug`,category:`advanced`});let n=v();return(e,r)=>{let i=w;return p(n)?(a(),l(`div`,z,[t(i,{icon:`carbon-container-image-push-pull`,text:`Module Mutation Records`,description:`Records of module mutations to nuxt options`},{default:_(()=>[t(L,{"module-mutation-records":p(n).moduleMutationRecords||[]},null,8,[`module-mutation-records`])]),_:1})])):(a(),l(`div`,R,[...r[0]||=[m(`div`,null,`No Debug Context Found`,-1),m(`div`,null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)]]))}}});export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{W as e,X as t,_ as n,m as r}from"./vendor/json-editor-vue-l1ffxhko.js";import{t as i}from"./_plugin-vue_export-helper-d9irwgla.js";var a={},o={"h-full":``,"of-auto":``,"n-panel-grids":``},s={"h-full":``,"bg-base":``};function c(i,a){return e(),n(`div`,o,[r(`div`,s,[t(i.$slots,`default`)])])}var l=i(a,[[`render`,c]]);export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
String.fromCharCode;var e=/#/g,t=/&/g,n=/\//g,r=/=/g,i=/\?/g,a=/\+/g,o=/%5e/gi,s=/%60/gi,c=/%7c/gi,l=/%20/gi,u=/%2f/gi,d=/%252f/gi;function f(e){return encodeURI(``+e).replace(c,`|`)}function p(r){return f(typeof r==`string`?r:JSON.stringify(r)).replace(a,`%2B`).replace(l,`+`).replace(e,`%23`).replace(t,`%26`).replace(s,"`").replace(o,`^`).replace(n,`%2F`)}function m(e){return p(e).replace(r,`%3D`)}function h(n){return f(n).replace(e,`%23`).replace(i,`%3F`).replace(d,`%2F`).replace(t,`%26`).replace(a,`%2B`)}function g(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function _(e){return g(e.replace(u,`%252F`))}function v(e){return g(e.replace(a,` `))}function y(e){return g(e.replace(a,` `))}function b(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=v(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=y(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function x(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${m(e)}=${p(t)}`).join(`&`):`${m(e)}=${p(t)}`:m(e)}function S(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>x(t,e[t])).filter(Boolean).join(`&`)}var C=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,w=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,T=/^([/\\]\s*){2,}[^/\\]/,E=/^[\s\0]*(blob|data|javascript|vbscript):$/i,D=/\/$|\/\?|\/#/,O=/^\.?\//;function k(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?C.test(e):w.test(e)||(t.acceptRelative?T.test(e):!1)}function A(e){return!!e&&E.test(e)}function j(e=``,t){return t?D.test(e):e.endsWith(`/`)}function M(e=``,t){if(!t)return(j(e)?e.slice(0,-1):e)||`/`;if(!j(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function N(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(j(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function P(e,t){if(L(t)||k(e))return e;let n=M(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return z(n,e)}function F(e,t){if(L(t))return e;let n=M(t);if(!e.startsWith(n))return e;let r=e[n.length];return r&&r!==`/`&&r!==`?`?e:`/`+e.slice(n.length).replace(/^\/+/,``)}function I(e,t){let n=W(e);return n.search=S({...b(n.search),...t}),K(n)}function L(e){return!e||e===`/`}function R(e){return e&&e!==`/`}function z(e,...t){let n=e||``;for(let e of t.filter(e=>R(e)))if(n){let t=e.replace(O,``);n=N(n)+t}else n=e;return n}function B(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&k(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function V(e,t){let n=e.match(w);return n||=e.match(/^\/{2,}/),n?t+e.slice(n[0].length):t+e}function H(e,t){return g(M(e))===g(M(t))}var U=Symbol.for(`ufo:protocolRelative`);function W(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!k(e,{acceptRelative:!0}))return t?W(t+e):G(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=G(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[U]:!r}}function G(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function K(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[U]?(e.protocol||``)+`//`:``)+i+a+t+n+r}var q=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,J=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Y=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function X(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){Z(e);return}return t}function Z(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Q(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!Y.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(q.test(e)||J.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,X)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}export{H as a,z as c,P as d,V as f,M as g,F as h,k as i,b as l,N as m,_ as n,A as o,I as p,h as r,B as s,Q as t,W as u};
|
|
@@ -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{r as e}from"./rolldown-runtime-imbltlrc.js";import{d as t,p as n,t as r}from"./dist-cwkxp5t4.js";var i=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function a(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,a=new i(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(a,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(a,t,{get(){return e.response&&e.response[n]}});return a}var o=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function s(e=`GET`){return o.has(e.toUpperCase())}function c(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var l=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),u=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function d(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return u.test(t)?`json`:t===`text/event-stream`?`stream`:l.has(t)||t.startsWith(`text/`)?`text`:`blob`}function f(e,t,n,r){let i=p(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function p(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function m(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}var h=new Set([408,409,425,429,500,502,503,504]),g=new Set([101,204,205,304]);function _(e={}){let{fetch:i=globalThis.fetch,Headers:o=globalThis.Headers,AbortController:l=globalThis.AbortController}=e;async function u(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:+!s(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):h.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),p(e.request,{...e.options,retry:t-1})}}let n=a(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,p),n}let p=async function(a,p={}){let h={request:a,options:f(a,p,e.defaults,o),response:void 0,error:void 0};if(h.options.method&&(h.options.method=h.options.method.toUpperCase()),h.options.onRequest&&(await m(h,h.options.onRequest),h.options.headers instanceof o||(h.options.headers=new o(h.options.headers||{}))),typeof h.request==`string`&&(h.options.baseURL&&(h.request=t(h.request,h.options.baseURL)),h.options.query&&(h.request=n(h.request,h.options.query),delete h.options.query),`query`in h.options&&delete h.options.query,`params`in h.options&&delete h.options.params),h.options.body&&s(h.options.method))if(c(h.options.body)){let e=h.options.headers.get(`content-type`);typeof h.options.body!=`string`&&(h.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(h.options.body).toString():JSON.stringify(h.options.body)),e||h.options.headers.set(`content-type`,`application/json`),h.options.headers.has(`accept`)||h.options.headers.set(`accept`,`application/json`)}else (`pipeTo`in h.options.body&&typeof h.options.body.pipeTo==`function`||typeof h.options.body.pipe==`function`)&&(`duplex`in h.options||(h.options.duplex=`half`));let _;if(!h.options.signal&&h.options.timeout){let e=new l;_=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},h.options.timeout),h.options.signal=e.signal}try{h.response=await i(h.request,h.options)}catch(e){return h.error=e,h.options.onRequestError&&await m(h,h.options.onRequestError),await u(h)}finally{_&&clearTimeout(_)}if((h.response.body||h.response._bodyInit)&&!g.has(h.response.status)&&h.options.method!==`HEAD`){let e=(h.options.parseResponse?`json`:h.options.responseType)||d(h.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await h.response.text(),t=h.options.parseResponse||r;h.response._data=t(e);break}case`stream`:h.response._data=h.response.body||h.response._bodyInit;break;default:h.response._data=await h.response[e]()}}return h.options.onResponse&&await m(h,h.options.onResponse),!h.options.ignoreResponseError&&h.response.status>=400&&h.response.status<600?(h.options.onResponseError&&await m(h,h.options.onResponseError),await u(h)):h.response},v=async function(e,t){return(await p(e,t))._data};return v.raw=p,v.native=(...e)=>i(...e),v.create=(t={},n={})=>_({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),v}var v=e({$fetch:()=>w,AbortController:()=>S,Headers:()=>x,createFetch:()=>_,fetch:()=>b,ofetch:()=>C}),y=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})(),b=y.fetch?(...e)=>y.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),x=y.Headers,S=y.AbortController,C=_({fetch:b,Headers:x,AbortController:S}),w=C;export{v as n,w as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e,T as t,
|
|
1
|
+
import{S as e,T as t,W as n,X as r,Zt as i,_ as a,en as o,m as s,p as c}from"./vendor/json-editor-vue-l1ffxhko.js";var l={"ml-1":``,"text-xs":``,op50:``},u=Object.assign(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=c(()=>!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(c,u)=>(n(),a(`div`,{class:i(d(t.duration))},[r(c.$slots,`before`),e(` `+o(f.value[0]),1),s(`span`,l,o(f.value[1]),1),r(c.$slots,`after`)],2))}}),{__name:`DurationDisplay`});export{u as t};
|