@nuxt/devtools 3.2.3 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/chunks/module-main.mjs +264 -140
- package/dist/chunks/timeline.mjs +0 -1
- package/dist/chunks/vscode.mjs +14 -41
- package/dist/chunks/vue-devtools.mjs +0 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-cpzbm3dn.js +1 -0
- package/dist/client/_nuxt/analyze-build-e7v5vkef.js +1 -0
- package/dist/client/_nuxt/{assets-fjp0hrmh.js → assets-b5c187l4.js} +2 -2
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/25fc8778-785e-4df1-8047-b131fc1cd4b2.json +1 -0
- package/dist/client/_nuxt/{client-lh91kcpv.js → client-im47u3kz.js} +1 -1
- package/dist/client/_nuxt/code-diff-idsu3m0z.js +8 -0
- package/dist/client/_nuxt/{code-snippets-ho13b87l.js → code-snippets-k81hoi4s.js} +1 -1
- package/dist/client/_nuxt/components-bmictfph.js +1 -0
- package/dist/client/_nuxt/composable-item-cza22cup.js +1 -0
- package/dist/client/_nuxt/composables-b2ccklz4.js +1 -0
- package/dist/client/_nuxt/constants-ih922r91.js +1 -0
- package/dist/client/_nuxt/copkoh3j.js +4 -0
- package/dist/client/_nuxt/custom-_name_-gqm5kr56.js +1 -0
- package/dist/client/_nuxt/{data-schema-button-ke4komn6.js → data-schema-button-b308wyi0.js} +1 -1
- package/dist/client/_nuxt/data-schema-drawer-lr34uwsh.js +2 -0
- package/dist/client/_nuxt/debug-kgc8fptp.js +1 -0
- package/dist/client/_nuxt/{default-bunv5fnq.js → default-jvhm51ri.js} +1 -1
- package/dist/client/_nuxt/dev-auth-ojiqold5.js +1 -0
- package/dist/client/_nuxt/{duration-display-20xlusue.js → duration-display-f7ucshmo.js} +1 -1
- package/dist/client/_nuxt/entry.css-me26coxn.css +1 -0
- package/dist/client/_nuxt/error-404-nggtc73s.js +1 -0
- package/dist/client/_nuxt/error-404.css-j1aav08u.css +1 -0
- package/dist/client/_nuxt/error-500-dym2gzqx.js +1 -0
- package/dist/client/_nuxt/error-500.css-eu9fz4va.css +1 -0
- package/dist/client/_nuxt/{error-isnb18yz.js → error-fqinfa1x.js} +2 -2
- package/dist/client/_nuxt/{filepath-item-fnp9jxof.js → filepath-item-e1s52fbh.js} +1 -1
- package/dist/client/_nuxt/full-et0weok9.js +1 -0
- package/dist/client/_nuxt/{help-fab-oc1qudll.js → help-fab-hz6r2oxa.js} +1 -1
- package/dist/client/_nuxt/hooks-i7nsduqp.js +1 -0
- package/dist/client/_nuxt/imports-9o2qs53q.js +1 -0
- package/dist/client/_nuxt/{launch-page-kf0w74wk.js → launch-page-hpkkqhit.js} +1 -1
- package/dist/client/_nuxt/mitt.es-fjx0h8xe.js +1 -0
- package/dist/client/_nuxt/modules-jok0opuq.js +1 -0
- package/dist/client/_nuxt/nbadge-m66xoquo.js +1 -0
- package/dist/client/_nuxt/{nbutton-oi1rfqiz.js → nbutton-gygn07c2.js} +1 -1
- package/dist/client/_nuxt/ncard-mqcl8pso.js +1 -0
- package/dist/client/_nuxt/ncheckbox-c0r45qtu.js +1 -0
- package/dist/client/_nuxt/{ncode-block-coc4sua0.js → ncode-block-figzf35k.js} +1 -1
- package/dist/client/_nuxt/ndrawer-bgqyrlmt.js +1 -0
- package/dist/client/_nuxt/ndropdown-cip8lboe.js +1 -0
- package/dist/client/_nuxt/{nicon-m5br9nvg.js → nicon-m1crov2l.js} +1 -1
- package/dist/client/_nuxt/{nicon-title-e35pdr21.js → nicon-title-tqdvw0w0.js} +1 -1
- package/dist/client/_nuxt/{nlink-dmk2d6qc.js → nlink-od4lllbl.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown-nct1w6kn.js → nmarkdown-hw0hmqw7.js} +1 -1
- package/dist/client/_nuxt/{nnavbar-n3j7iul1.js → nnavbar-lpozm5fj.js} +1 -1
- package/dist/client/_nuxt/none-bdxkqeml.js +1 -0
- package/dist/client/_nuxt/npanel-grids-dd23ifsw.js +1 -0
- package/dist/client/_nuxt/nsection-block-lqrohs9v.js +1 -0
- package/dist/client/_nuxt/nselect-gczoit0g.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-bsw5fg3d.js +1 -0
- package/dist/client/_nuxt/{nswitch-b36trghq.js → nswitch-ke379yjx.js} +1 -1
- package/dist/client/_nuxt/ntext-input-cygthohl.js +1 -0
- package/dist/client/_nuxt/ntip-ke63ovgc.js +1 -0
- package/dist/client/_nuxt/nuxt-link-bumooa9d.js +1 -0
- package/dist/client/_nuxt/nuxt-otp6bp04.js +1 -0
- package/dist/client/_nuxt/{open-graph-m7wd1sxi.js → open-graph-lumhcitx.js} +2 -2
- package/dist/client/_nuxt/overview-c1ufrox9.js +1 -0
- package/dist/client/_nuxt/pages-cf1hvns3.js +1 -0
- package/dist/client/_nuxt/pages-lgihsvbt.js +1 -0
- package/dist/client/_nuxt/payload-fvgw4hh9.js +1 -0
- package/dist/client/_nuxt/pinia-lmrgyjxw.js +1 -0
- package/dist/client/_nuxt/plugins-ccaip8nh.js +1 -0
- package/dist/client/_nuxt/ready-dadbdj5i.js +1 -0
- package/dist/client/_nuxt/render-tree-corj3giw.js +1 -0
- package/dist/client/_nuxt/rpc-ez4fzlum.js +1 -0
- package/dist/client/_nuxt/runtime-configs-im0uu24n.js +1 -0
- package/dist/client/_nuxt/server-discovery-ffkkczqi.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-lspeoiem.js +1 -0
- package/dist/client/_nuxt/server-routes-dhvqrowz.js +7 -0
- package/dist/client/_nuxt/server-tasks-mr9ezn8q.js +1 -0
- package/dist/client/_nuxt/settings-issronwn.js +1 -0
- package/dist/client/_nuxt/{splitpanes.es-ceqv8417.js → splitpanes.es-bxyirks2.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list-m1sv2uvd.js → stacktrace-list-hiui24c3.js} +1 -1
- package/dist/client/_nuxt/state-components-fbls8ka7.js +1 -0
- package/dist/client/_nuxt/state-editor-c7e04uj2.js +1 -0
- package/dist/client/_nuxt/state-modules-inqbwd7z.js +1 -0
- package/dist/client/_nuxt/{state-routes-m6gv5n9v.js → state-routes-jln33b1m.js} +1 -1
- package/dist/client/_nuxt/state-tabs-etl5jr30.js +1 -0
- package/dist/client/_nuxt/storage-husj5pg6.js +1 -0
- package/dist/client/_nuxt/storage-options-cth3coln.js +1 -0
- package/dist/client/_nuxt/telemetry-eqv6a0hn.js +1 -0
- package/dist/client/_nuxt/terminals-kitd8oja.js +1 -0
- package/dist/client/_nuxt/timeline-gr4tcvcz.js +31 -0
- package/dist/client/_nuxt/unocss-runtime-cpug61u1.js +1 -0
- package/dist/client/_nuxt/utils-nbkl6byi.js +2 -0
- package/dist/client/_nuxt/vendor/{json-editor-vue-hkofgjf7.js → json-editor-vue-eojr4v24.js} +3 -3
- package/dist/client/_nuxt/vendor/{markdown-it-bcxn77q6.js → markdown-it-ckeo8pwp.js} +1 -1
- package/dist/client/_nuxt/vendor/{shiki-niqic03h.js → shiki-lqo1hg2n.js} +3 -3
- package/dist/client/_nuxt/vendor/{unocss-bj3ln324.js → unocss-k727ub0h.js} +1 -1
- package/dist/client/_nuxt/virtual-files-ky9cc4av.js +1 -0
- package/dist/client/_nuxt/vue-devtools-dunhx2nz.js +4 -0
- package/dist/client/_nuxt/{vue-router-dxks01bs.js → vue-router-jbnxw7nb.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/dirs.d.mts +1 -2
- package/dist/dirs.mjs +1 -21
- package/dist/module.d.mts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -5
- package/dist/runtime/plugins/devtools.client.js +1 -1
- package/dist/runtime/plugins/view/client.js +22 -72
- package/dist/runtime/plugins/view/state.d.ts +0 -1
- package/dist/runtime/plugins/view/state.js +0 -2
- package/dist/shared/devtools.COlX0Gls.mjs +114 -0
- package/dist/shared/{devtools.C1a10l_c.d.mts → devtools.LsRDzDTD.d.mts} +0 -12
- package/dist/types.d.mts +1 -1
- package/dist/webcomponents/index.d.mts +1 -3
- package/dist/webcomponents/index.mjs +38 -1185
- package/package.json +24 -32
- package/cli.mjs +0 -2
- package/dist/client/_nuxt/__blank-gayjf0ih.js +0 -1
- package/dist/client/_nuxt/analyze-build-bnq2cil8.js +0 -1
- package/dist/client/_nuxt/builds/meta/f343c68e-9061-4942-a0df-50170dc001bd.json +0 -1
- package/dist/client/_nuxt/client-s5g5n0ac.js +0 -2
- package/dist/client/_nuxt/code-diff-cb7twqkt.js +0 -8
- package/dist/client/_nuxt/components-peth8amc.js +0 -1
- package/dist/client/_nuxt/composable-item-b09pj4ca.js +0 -1
- package/dist/client/_nuxt/composables-cwesk2q8.js +0 -1
- package/dist/client/_nuxt/constants-lof1c7kz.js +0 -1
- package/dist/client/_nuxt/custom-_name_-lfwzilnd.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-dqe6w00i.js +0 -2
- package/dist/client/_nuxt/debug-itzra6gt.js +0 -1
- package/dist/client/_nuxt/dev-auth-j4vxv6a1.js +0 -1
- package/dist/client/_nuxt/entry.css-ckq2wff8.css +0 -1
- package/dist/client/_nuxt/error-404-c73bftho.js +0 -1
- package/dist/client/_nuxt/error-404.css-pazrj6fo.css +0 -1
- package/dist/client/_nuxt/error-500-75llnfh8.js +0 -1
- package/dist/client/_nuxt/error-500.css-hlldh6hu.css +0 -1
- package/dist/client/_nuxt/full-h8pokapo.js +0 -1
- package/dist/client/_nuxt/head-c2jgvqd9.js +0 -1
- package/dist/client/_nuxt/hooks-i5p6cuw0.js +0 -1
- package/dist/client/_nuxt/imports-ia8eldh8.js +0 -1
- package/dist/client/_nuxt/l471sqq0.js +0 -4
- package/dist/client/_nuxt/modules-obwfskfp.js +0 -1
- package/dist/client/_nuxt/nbadge-hpznun17.js +0 -1
- package/dist/client/_nuxt/ncard-ech06vlh.js +0 -1
- package/dist/client/_nuxt/ncheckbox-k9nxqa1w.js +0 -1
- package/dist/client/_nuxt/ndrawer-ijwn9421.js +0 -1
- package/dist/client/_nuxt/ndropdown-moy416uy.js +0 -1
- package/dist/client/_nuxt/none-bs12srzp.js +0 -1
- package/dist/client/_nuxt/npanel-grids-bl37sfq7.js +0 -1
- package/dist/client/_nuxt/nsection-block-l0c6dpg8.js +0 -1
- package/dist/client/_nuxt/nselect-kgjpj17v.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-if6er1us.js +0 -1
- package/dist/client/_nuxt/ntext-input-ngomk0u2.js +0 -1
- package/dist/client/_nuxt/nuxt-bfozs29x.js +0 -1
- package/dist/client/_nuxt/nuxt-link-mev16ngd.js +0 -1
- package/dist/client/_nuxt/overview-dbrpdvvy.js +0 -1
- package/dist/client/_nuxt/pages-gnfgydad.js +0 -1
- package/dist/client/_nuxt/pages-izgjpbm4.js +0 -1
- package/dist/client/_nuxt/payload-hc17espa.js +0 -1
- package/dist/client/_nuxt/pinia-ns87k5yi.js +0 -1
- package/dist/client/_nuxt/plugins-mswypwe4.js +0 -1
- package/dist/client/_nuxt/ready-szdlhgcr.js +0 -1
- package/dist/client/_nuxt/render-tree-hec27xi7.js +0 -1
- package/dist/client/_nuxt/runtime-configs-chx5ggf0.js +0 -1
- package/dist/client/_nuxt/server-discovery-cjcj8emm.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-lqwnul2k.js +0 -1
- package/dist/client/_nuxt/server-routes-e0uqj8di.js +0 -7
- package/dist/client/_nuxt/server-tasks-izz5mcrk.js +0 -1
- package/dist/client/_nuxt/settings-dhxjcakv.js +0 -1
- package/dist/client/_nuxt/state-components-mnfvrbtw.js +0 -1
- package/dist/client/_nuxt/state-dkywakbf.js +0 -1
- package/dist/client/_nuxt/state-editor-epijodsw.js +0 -1
- package/dist/client/_nuxt/state-modules-ehax0fup.js +0 -1
- package/dist/client/_nuxt/state-tabs-mo8r9nzk.js +0 -1
- package/dist/client/_nuxt/storage-hdyfvofj.js +0 -1
- package/dist/client/_nuxt/storage-options-owy2vf04.js +0 -1
- package/dist/client/_nuxt/telemetry-bagjjni2.js +0 -1
- package/dist/client/_nuxt/terminals-hem69799.js +0 -1
- package/dist/client/_nuxt/timeline-luryae8h.js +0 -31
- package/dist/client/_nuxt/unocss-runtime-jcr8lucj.js +0 -1
- package/dist/client/_nuxt/virtual-files-o2l5arel.js +0 -1
- package/dist/client/_nuxt/vue-devtools-na2nb82m.js +0 -3
- package/dist/client/_nuxt/vue-virtual-scroller.esm-d0igfpwe.js +0 -2
- package/dist/shared/devtools.DuFZOCNN.mjs +0 -122
- /package/dist/client/_nuxt/{_plugin-vue_export-helper-dp8rxgcg.js → _plugin-vue_export-helper-n58akrbk.js} +0 -0
- /package/dist/client/_nuxt/vendor/{quicktype-core-f8dnflnv.js → quicktype-core-k4qx3809.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,At as t,Ct as n,D as r,E as i,Et as a,F as o,H as s,J as c,K as l,L as u,M as d,Mt as f,Ot as p,V as m,Wt as h,bt as g,ct as _,gt as v,jt as y,m as b,p as x,v as S,vt as C,xt as w}from"./vendor/json-editor-vue-hkofgjf7.js";import{s as T}from"./ready-szdlhgcr.js";import{c as ee,i as E,l as te}from"./nuxt-bfozs29x.js";import{c as ne,j as re,o as ie,r as ae,u as D}from"./client-s5g5n0ac.js";var oe={trailing:!0};function O(e,t=25,n={}){if(n={...oe,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,c=(t,r)=>(o=se(e,t,r),o.finally(()=>{if(o=null,n.trailing&&s&&!i){let e=c(t,s);return s=null,e}}),o),l=function(...e){return n.trailing&&(s=e),o||new Promise(o=>{let l=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;let t=n.leading?r:c(this,e);s=null;for(let e of a)e(t);a=[]},t),l?(r=c(this,e),o(r)):a.push(o)})},u=e=>{e&&(clearTimeout(e),i=null)};return l.isPending=()=>!!i,l.cancel=()=>{u(i),a=[],s=null},l.flush=()=>{if(u(i),!s||o)return;let e=s;return s=null,c(this,e)},l}async function se(e,t,n){return await e.apply(t,n)}function k(e){return typeof e==`string`?`'${e}'`:new ce().serialize(e)}var ce=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 le(e,t){return e===t||k(e)===k(t)}var ue=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],de=[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],fe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,A=[],pe=class{_data=new j;_hash=new j([...ue]);_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)A[n]=e[t+n]|0;else{let e=A[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=A[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;A[n]=t+A[n-7]+i+A[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+de[n]+A[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=j.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 j(t,i)}},j=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(fe.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 me(e){return new pe().finalize(e).toBase64()}function M(e){return me(k(e))}i({name:`ServerPlaceholder`,render(){return S(`div`)}});const N=Symbol.for(`nuxt:client-only`);var he=i({name:`ClientOnly`,inheritAttrs:!1,props:[`fallback`,`placeholder`,`placeholderTag`,`fallbackTag`],setup(t,{slots:n,attrs:i}){let o=a(!1);m(()=>{o.value=!0});let s=r();return s&&(s._nuxtClientOnly=!0),l(N,!0),()=>{if(o.value){let e=n.default?.();return e&&e.length===1?[x(e[0],i)]:e}let r=n.fallback||n.placeholder;if(r)return e(r);let a=t.fallback||t.placeholder||``;return S(t.fallbackTag||t.placeholderTag||`span`,i,a)}}});function P(...e){let n=typeof e[e.length-1]==`string`?e.pop():void 0;I(e[0],e[1])&&e.unshift(n);let[i,a,o={}]=e,l=!1,f=b(()=>t(i));if(typeof f.value!=`string`)throw TypeError(`[nuxt] [useAsyncData] key must be a string.`);if(typeof a!=`function`)throw TypeError(`[nuxt] [useAsyncData] handler must be a function.`);let p=E();o.server??=!0,o.default??=ge,o.getCachedData??=B,o.lazy??=!1,o.immediate??=!0,o.deep??=ee.deep,o.dedupe??=`cancel`,o._functionName,p._asyncData[f.value];function m(){let e={cause:`initial`,dedupe:o.dedupe};return p._asyncData[f.value]?._init||(e.cachedData=o.getCachedData(f.value,p,{cause:`initial`}),p._asyncData[f.value]=z(p,f.value,a,o,e.cachedData)),()=>p._asyncData[f.value].execute(e)}let h=m(),y=p._asyncData[f.value];y._deps++;let x=o.server!==!1&&p.payload.serverRendered;{let e=function(e){let t=p._asyncData[e];t?._deps&&(t._deps--,t._deps===0&&t?._off())},t=r();if(t&&x&&o.immediate&&!t.sp&&(t.sp=[]),t&&!t._nuxtOnBeforeMountCbs){t._nuxtOnBeforeMountCbs=[];let e=t._nuxtOnBeforeMountCbs;u(()=>{e.forEach(e=>{e()}),e.splice(0,e.length)}),s(()=>e.splice(0,e.length))}let n=t&&(t._nuxtClientOnly||d(N,!1));x&&p.isHydrating&&(y.error.value||y.data.value!==void 0)?y.status.value=y.error.value?`error`:`success`:t&&(!n&&p.payload.serverRendered&&p.isHydrating||o.lazy)&&o.immediate?t._nuxtOnBeforeMountCbs.push(h):o.immediate&&y.status.value!==`success`&&h();let i=v(),m=_(f,(t,n)=>{if((t||n)&&t!==n){l=!0;let r=p._asyncData[n]?.data.value!==void 0,i=p._asyncDataPromises[n]!==void 0,s={cause:`initial`,dedupe:o.dedupe};if(!p._asyncData[t]?._init){let e;n&&r?e=p._asyncData[n].data.value:(e=o.getCachedData(t,p,{cause:`initial`}),s.cachedData=e),p._asyncData[t]=z(p,t,a,o,e)}p._asyncData[t]._deps++,n&&e(n),(o.immediate||r||i)&&p._asyncData[t].execute(s),c(()=>{l=!1})}},{flush:`sync`}),b=o.watch?_(o.watch,()=>{l||(p._asyncData[f.value]?._execute.isPending()&&c(()=>{p._asyncData[f.value]?._execute.flush()}),p._asyncData[f.value]?._execute({cause:`watch`,dedupe:o.dedupe}))}):()=>{};i&&g(()=>{m(),b(),e(f.value)})}let S={data:F(()=>p._asyncData[f.value]?.data),pending:F(()=>p._asyncData[f.value]?.pending),status:F(()=>p._asyncData[f.value]?.status),error:F(()=>p._asyncData[f.value]?.error),refresh:(...e)=>p._asyncData[f.value]?._init?p._asyncData[f.value].execute(...e):m()(),execute:(...e)=>S.refresh(...e),clear:()=>{let e=p._asyncData[f.value];if(e?._abortController)try{e._abortController.abort(new DOMException(`AsyncData aborted by user.`,`AbortError`))}finally{e._abortController=void 0}L(p,f.value)}},C=Promise.resolve(p._asyncDataPromises[f.value]).then(()=>S);return Object.assign(C,S),C}function F(e){return b({get(){return e()?.value},set(t){let n=e();n&&(n.value=t)}})}function I(e,t){return!(typeof e==`string`||typeof e==`object`&&e||typeof e==`function`&&typeof t==`function`)}function L(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=f(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value=`idle`),t in e._asyncDataPromises&&(e._asyncDataPromises[t]=void 0)}function R(e,t){let n={};for(let r of t)n[r]=e[r];return n}function z(e,t,r,i,s){e.payload._errors[t]??=void 0;let c=i.getCachedData!==B,l=r,u=i.deep?n:a,d=s!==void 0,m=e.hook(`app:data:refresh`,async e=>{(!e||e.includes(t))&&await h.execute({cause:`refresh:hook`})}),h={data:u(d?s:i.default()),pending:b(()=>h.status.value===`pending`),error:p(e.payload._errors,t),status:a(`idle`),execute:(...n)=>{let[r,a=void 0]=n,o=r&&a===void 0&&typeof r==`object`?r:{};if(e._asyncDataPromises[t]&&(o.dedupe??i.dedupe)===`defer`)return e._asyncDataPromises[t];{let n=`cachedData`in o?o.cachedData:i.getCachedData(t,e,{cause:o.cause??`refresh:manual`});if(n!==void 0)return e.payload.data[t]=h.data.value=n,h.error.value=void 0,h.status.value=`success`,Promise.resolve(n)}h._abortController&&h._abortController.abort(new DOMException(`AsyncData request cancelled by deduplication`,`AbortError`)),h._abortController=new AbortController,h.status.value=`pending`;let s=new AbortController,c=new Promise((t,n)=>{try{let r=o.timeout??i.timeout,a=_e([h._abortController?.signal,o?.signal],s.signal,r);if(a.aborted){let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`));return}return a.addEventListener(`abort`,()=>{let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`))},{once:!0,signal:s.signal}),Promise.resolve(l(e,{signal:a})).then(t,n)}catch(e){n(e)}}).then(async n=>{let r=n;i.transform&&(r=await i.transform(n)),i.pick&&(r=R(r,i.pick)),e.payload.data[t]=r,h.data.value=r,h.error.value=void 0,h.status.value=`success`}).catch(n=>{if(e._asyncDataPromises[t]&&e._asyncDataPromises[t]!==c||h._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<`u`&&n instanceof DOMException&&n.name===`AbortError`)return h.status.value=`idle`,e._asyncDataPromises[t];h.error.value=T(n),h.data.value=f(i.default()),h.status.value=`error`}).finally(()=>{s.abort(),delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=c,e._asyncDataPromises[t]},_execute:O((...e)=>h.execute(...e),0,{leading:!0}),_default:i.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{m(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),c||o(()=>{e._asyncData[t]?._init||(L(e,t),h.execute=()=>Promise.resolve())})}};return h}var ge=()=>void 0,B=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!==`refresh:manual`&&n.cause!==`refresh:hook`)return t.static.data[e]};function _e(e,t,n){let r=e.filter(e=>!!e);if(typeof n==`number`&&n>=0){let e=AbortSignal.timeout?.(n);e&&r.push(e)}if(AbortSignal.any)return AbortSignal.any(r);let i=new AbortController;for(let e of r)if(e.aborted){let t=e.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(t)}catch{i.abort()}return i.signal}let a=()=>{let e=r.find(e=>e.aborted)?.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(e)}catch{i.abort()}};for(let e of r)e.addEventListener?.(`abort`,a,{once:!0,signal:t});return i.signal}function ve(e,n,r){let[i={},a]=typeof n==`string`?[{},n]:[n,r],o=b(()=>t(e)),s=b(()=>t(i.key)||`$f`+M([a,typeof o.value==`string`?o.value:``,...ye(i)]));if(!i.baseURL&&typeof o.value==`string`&&o.value[0]===`/`&&o.value[1]===`/`)throw Error(`[nuxt] [useFetch] the request URL must not start with "//".`);let{server:c,lazy:l,default:u,transform:d,pick:f,watch:p,immediate:m,getCachedData:h,deep:g,dedupe:_,timeout:v,...y}=i,x=w({...te,...y,cache:typeof i.cache==`boolean`?void 0:i.cache}),S={server:c,lazy:l,default:u,transform:d,pick:f,immediate:m,getCachedData:h,deep:g,dedupe:_,timeout:v,watch:p===!1?[]:[...p||[],x]};return P(p===!1?s.value:s,(e,{signal:t})=>(i.$fetch||globalThis.$fetch)(o.value,{signal:t,...x}),S)}function ye(e){let n=[t(e.method)?.toUpperCase()||`GET`,t(e.baseURL)];for(let r of[e.query||e.params]){let e=t(r);if(!e)continue;let i={};for(let[n,r]of Object.entries(e))i[t(n)]=t(r);n.push(i)}if(e.body){let r=t(e.body);if(!r)n.push(M(r));else if(r instanceof ArrayBuffer)n.push(M(Object.fromEntries([...new Uint8Array(r).entries()].map(([e,t])=>[e,t.toString()]))));else if(r instanceof FormData){let e={};for(let t of r.entries()){let[n,r]=t;e[n]=r instanceof File?r.name:r}n.push(M(e))}else if(h(r))n.push(M(w(r)));else try{n.push(M(r))}catch{console.warn(`[useFetch] Failed to hash body`,r)}}return n}function be(e,t,n){return Math.min(n,Math.max(t,e))}var xe=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Se(e=16,t=xe){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function V(e,t,n=!1){return t.reduce((t,r)=>(r in e&&(!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}var Ce=/^[A-Za-z]:\//;function we(e=``){return e&&e.replace(/\\/g,`/`).replace(Ce,e=>e.toUpperCase())}var Te=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,H=/^\/([A-Za-z]:)?$/;function Ee(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var U=function(...e){e=e.map(e=>we(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Ee();!i||i.length===0||(t=`${i}/${t}`,n=W(i))}return t=De(t,!n),n&&!W(t)?`/${t}`:t.length>0?t:`.`};function De(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var W=function(e){return Te.test(e)},Oe=function(e,t){let n=U(e).replace(H,`$1`).split(`/`),r=U(t).replace(H,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},ke=/[/\\]node_modules[/\\]/,Ae=/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/,G=/\\/g,K=/.*\/node_modules\/(.*)$/;function je(e){return!!e.match(ke)||q(e)}function q(e){return e[0]===`#`||!!e.match(Ae)}function J(e){if(q(e))return e;let t=e.replace(G,`/`).match(K)?.[1];if(t)return t.startsWith(`@`)?t.split(`/`).slice(0,2).join(`/`):t.split(`/`)[0]}function Me(e){let t=e.match(K)?.[1];if(t)return t}function Ne(e){if(e)return[`nuxt`,`#app`,`#head`,`vue`].includes(e)}function Pe(e,t){if(e=e.replace(G,`/`),q(e))return{moduleName:e,path:e};let n=J(e),r=Me(e);if(n&&r)return{moduleName:n,path:r};try{let n=Oe(t,e);return!n.startsWith(`./`)&&!n.startsWith(`../`)&&(n=`./${n}`),n.startsWith(`./.nuxt/`)&&(n=`#build${n.slice(7)}`),{path:n}}catch{return{path:e}}}function Y(e,t,n){let r=E(),i=r.payload.unique=r.payload.unique||{};return i[e]||(i[e]=P(e,t,n)),i[e].data}function Fe(){return typeof navigator<`u`&&navigator.platform.toLowerCase().includes(`mac`)}var X={get:`n-green`,post:`n-blue`,put:`n-orange`,delete:`n-red`,patch:`n-purple`,head:`n-teal`,default:`n-gray`};function Ie(e){return X[e.toLowerCase()]||X.default}function Le(e,t){let n={};for(let[r,i]of Object.entries(t))for(let t of i){let i=e.find(e=>e.tag===t.tag&&(t.name?e.name===t.name:!0))?.value;if(i){n[r]=i;break}}return{url:window.location.host,...n}}function Re(e){return e=Number(e),Number.isNaN(e)||e<0?`-`:e<1?`<1ms`:e<1e3?`${e}ms`:e<1e3*60?`${(e/1e3).toFixed(2)}s`:`${(e/1e3/60).toFixed(2)}min`}function ze(e,t){return ne(e,()=>re(e,t,{listenToStorageChanges:!1}))}function Be(e,t){return{component:e,dependencies:t?.find(t=>t.id===e.filePath)?.deps?.map(e=>t?.find(t=>t.id===e)?.id).filter(Boolean),dependents:t?.filter(t=>t.deps.includes(e.filePath)).map(e=>e.id)}}function Ve(e,t,n=`${t}s`){return`${e} ${e<=1?t:n}`}function He(){let e=ae(),t=E();t.hooks.callHookParallel(`app:data:refresh`,Object.keys(t.payload.data)),y(e),e.value.revision.value+=1}function Ue(){location.reload()}function We(e){let t=[];return JSON.stringify(e,(e,n)=>{if(typeof n==`function`)return n.toString();if(C(n)&&(n=n.value),typeof n==`object`&&n){if(e===`devServer`)return;let r=t.indexOf(n);if(r>=0)return`<Circular #${r}>`;t.push(n)}return n})}function Ge(){return $().value?.future.compatibilityVersion}function Z(){return Y(`getServerPages`,()=>D.getServerPages())}function Ke(){return Y(`getServerRoutes`,()=>D.getServerRoutes())}function qe(){return Y(`getServerTasks`,()=>D.getServerTasks())}function Je(){return Y(`getServerHooks`,()=>D.getServerHooks())}function Ye(){return Y(`getServerLayouts`,()=>D.getServerLayouts())}function Q(){return Y(`getAutoImports`,()=>D.getAutoImports())}function Xe(){return Y(`getStaticAssets`,()=>D.getStaticAssets())}function $(){return Y(`getServerConfig`,()=>D.getServerConfig())}function Ze(){return Y(`getServerDebugContext`,()=>D.getServerDebugContext())}function Qe(){return Y(`getServerRuntimeConfig`,()=>D.getServerRuntimeConfig())}function $e(){return Y(`getModuleOptions`,()=>D.getModuleOptions())}function et(){return Y(`getServerApp`,()=>D.getServerApp())}function tt(){return Y(`getCustomTabs`,()=>D.getCustomTabs())}function nt(){return Y(`getTerminals`,()=>D.getTerminals())}function rt(){return Y(`getAnalyzeBuildInfo`,()=>D.getAnalyzeBuildInfo())}function it(){let{data:e}=ve(`/_vfs.json`,{key:`vfs-list`,baseURL:`/`,responseType:`json`},`$2gLbxsrny1`);return e}function at(){let e=Z(),t=ie();return b(()=>(t.value?.getRoutes()||[]).map(e=>V(e,[`path`,`name`,`meta`,`props`,`children`])).map(t=>({...e.value?.find(e=>e.name&&e.name===t.name),...t})))}export{Ue as A,le as B,Le as C,Pe as D,We as E,V as F,Se as I,P as L,Ge as M,ze as N,Ve as O,be as P,he as R,Ie as S,je as T,O as V,it as _,at as a,Fe as b,$ as c,Z as d,Ke as f,nt as g,Xe as h,Ye as i,Y as j,He as k,Ze as l,qe as m,Q as n,$e as o,Qe as p,tt as r,et as s,rt as t,Je as u,Re as v,Ne as w,J as x,Be as y,M as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$t as e,E as t,Et as n,F as r,Mt as i,P as a,Q as o,Qt as s,V as c,W as l,X as u,_ as d,c as f,ct as p,ft as m,g as h,h as g,k as _,t as v,tn as y,v as b,w as x}from"./vendor/json-editor-vue-hkofgjf7.js";import{P as S,t as C}from"./client-s5g5n0ac.js";import{t as w}from"./nbutton-oi1rfqiz.js";import{t as T}from"./data-schema-button-ke4komn6.js";var E=[`open`],D={flex:`~ gap2`,"select-none":``,"items-center":``,px4:``},O={key:0,class:`bg-red:10 px5 py3 text-red`},k=t({__name:`StateEditor`,props:{name:{},open:{type:Boolean},revision:{},state:{},readonly:{type:Boolean}},emits:[`update:open`],setup(t,{emit:k}){let A=t,j=S(A,`open`,k,{passive:!0}),M=C(),N=n(),P=n();function F(e){return[`number`,`bigint`,`string`,`boolean`].includes(typeof e)}function I(){P.value=void 0;try{N.value=F(A.state)?A.state:JSON.parse(JSON.stringify(A.state||{}))}catch(e){console.error(e),P.value=e}}c(()=>{I(),p(()=>[A.revision,A.state],([e,t])=>{F(t)?N.value=A.state:L(t,A.state)},{deep:!0})});function L(e,t){for(let n in e)Array.isArray(e[n])?t[n]=e[n].slice():typeof e[n]==`object`&&e[n]!==null?L(e[n],t[n]):t[n]=e[n]}async function R(){(void 0)?.pause(),I(),await r(),(void 0)?.resume()}return(n,r)=>{let c=w,p=T,S=o(`tooltip`);return l(),b(`div`,{class:`state-editor-details`,open:t.name?i(j):!0},[g(`div`,D,[t.name?(l(),b(`button`,{key:0,flex:`~`,"cursor-pointer":``,"items-center":``,class:s(i(j)?``:`op50`),onClick:r[0]||=e=>j.value=!i(j)},[g(`div`,{"i-carbon-chevron-right":``,transition:``,class:s(i(j)?`rotate-90 op0`:``)},null,2),g(`code`,{px3:``,py1:``,"font-mono":``,class:s(i(j)?`bg-[#8881] rounded-t`:`rounded hover:bg-active`)},y(t.name),3)],2)):d(``,!0),u(n.$slots,`actions`,e(_({isOpen:i(j),name:t.name,state:t.state}))),i(j)?(l(),b(f,{key:1},[m(x(c,{title:`Refresh View`,icon:`carbon-renew`,border:!1,onClick:R},null,512),[[S,`Refresh View`,void 0,{bottom:!0}]]),N.value&&!P.value?(l(),h(p,{key:0,getter:()=>({name:t.name,input:JSON.stringify(N.value)})},null,8,[`getter`])):d(``,!0)],64)):d(``,!0)]),i(j)||!t.name?(l(),b(f,{key:0},[P.value?(l(),b(`div`,O,` Error: `+y(P.value),1)):(l(),h(i(v),a({key:1,modelValue:N.value,"onUpdate:modelValue":r[1]||=e=>N.value=e},n.$attrs,{class:[`json-editor-vue`,[i(M)===`dark`?`jse-theme-dark`:``,(t.name,``)]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":A.readonly,indentation:2,"tab-size":2}),null,16,[`modelValue`,`class`,`read-only`]))],64)):d(``,!0)],8,E)}}}),A=Object.assign(k,{__name:`StateEditor`});export{A as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,Mt as r,W as i,X as a,_ as o,c as s,dt as c,g as l,h as u,m as d,tn as f,v as p,w as m}from"./vendor/json-editor-vue-hkofgjf7.js";import{g as h}from"./ready-szdlhgcr.js";import{D as g,T as _,c as v,j as y,x as b}from"./state-dkywakbf.js";import{_ as x,c as S}from"./client-s5g5n0ac.js";import{d as C}from"./dev-auth-j4vxv6a1.js";import{t as w}from"./nbutton-oi1rfqiz.js";import{r as T}from"./state-routes-m6gv5n9v.js";import{t as E}from"./telemetry-bagjjni2.js";import{O as D,f as O,p as k}from"#entry";import{t as A}from"./ncode-block-coc4sua0.js";import{t as j}from"./ncheckbox-k9nxqa1w.js";import{t as M}from"./nbadge-hpznun17.js";var N={key:0},P={p4:``,flex:`~ col gap-1`},F={class:`text-lg font-medium leading-6`},I={flex:`~ gap-3`,mt2:``,"justify-end":``},L=n({__name:`NpmVersionCheck`,props:{packageName:{},options:{},showVersion:{type:Boolean,default:!0}},setup(n){let d=n,g=h(),{info:_,update:v,state:y,processId:b,restart:S}=D(d.packageName,d.options),L=t(!0),R=t(!0),z=C(),B=x(),V=T();async function H(){let e=await v(async e=>B.start(e));E(`npm:update`,{packageName:d.packageName,oldVersion:_.value?.current}),e&&R.value&&z.value.push({id:e,message:`${d.packageName} has been updated. Do you want to restart the Nuxt server now?`}),e&&L.value&&(V.value=e,g.push(`/modules/terminals`))}return(t,h)=>{let g=M,v=A,x=j,C=k,T=w,E=O;return i(),p(s,null,[a(t.$slots,`default`,{id:r(b),info:r(_),update:H,state:r(y),restart:r(S)},()=>[r(_)&&n.showVersion?(i(),p(`code`,N,f(`v${r(_).current}`),1)):o(``,!0),r(_)?.latest?(i(),p(s,{key:1},[r(_).needsUpdate?(i(),p(`button`,{key:0,onClick:h[0]||=e=>H()},[m(g,{n:`green`,title:`updates available`,textContent:`updates available`})])):(i(),l(g,{key:1,n:`gray`,title:`latest`,textContent:`latest`}))],64)):o(``,!0)]),m(r(B),null,{default:c(({resolve:t,args:n})=>[m(E,{"model-value":!0,onClose:e=>t(!1)},{default:c(()=>[u(`div`,P,[u(`h3`,F,` Update `+f(d.packageName)+`? `,1),h[8]||=u(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),m(v,{code:n[0],lang:`bash`,my3:``,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),m(x,{modelValue:L.value,"onUpdate:modelValue":h[1]||=e=>L.value=e,n:`primary`},{default:c(()=>[...h[3]||=[e(` Navigate to terminal `,-1)]]),_:1},8,[`modelValue`]),m(x,{modelValue:R.value,"onUpdate:modelValue":h[2]||=e=>R.value=e,n:`primary`},{default:c(()=>[...h[4]||=[e(` Restart Nuxt server after update `,-1)]]),_:1},8,[`modelValue`]),u(`div`,I,[m(C,{n:`sm amber`,"flex-auto":``,icon:`i-carbon-data-backup`},{default:c(()=>[...h[5]||=[e(` Please make sure to backup your project first. `,-1)]]),_:1}),m(T,{onClick:e=>t(!1)},{default:c(()=>[...h[6]||=[e(` Cancel `,-1)]]),_:1},8,[`onClick`]),m(T,{n:`solid primary`,onClick:e=>t(!0)},{default:c(()=>[...h[7]||=[e(` Update `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1})],64)}}}),R=Object.assign(L,{__name:`NpmVersionCheck`}),z=[`pages`,`meta`,`components`,`imports`,`nuxt-config-schema`,`@nuxt/devtools`,`@nuxt/telemetry`];function B(){return y(`getModulesList`,async()=>(await $fetch(`https://api.nuxt.com/modules?version=3`)).modules.filter(e=>!z.includes(e.npm)&&e.compatibility.nuxt.includes(`>=3`)))}function V(){return S(`installed-modules`,()=>{let e=v(),t=B();return d(()=>(e.value?._installedModules||[]).map(n=>{if(!n.entryPath)return;let r=!!(n.entryPath&&_(n.entryPath)),i=n.meta?.name?n.meta?.name:n.entryPath?r?b(n.entryPath):e.value?.rootDir?g(n.entryPath,e.value?.rootDir).path:void 0:void 0;return{name:i,isPackageModule:r,isUninstallable:!!e.value?.modules?.includes(i),info:t.value?.find(e=>e.npm===i)||t.value?.find(e=>e.name===i),...n}}).filter(e=>e&&(!e.name||!z.includes(e.name))))})}export{B as n,R as r,V as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{At as e,Mt as t,m as n}from"./vendor/json-editor-vue-hkofgjf7.js";import{g as r}from"./ready-szdlhgcr.js";import{F as i,d as a,r as o}from"./state-dkywakbf.js";import{o as s}from"./client-s5g5n0ac.js";import{t as c}from"./storage-options-owy2vf04.js";function l(){let e=o(),t=c(`ui`),i=r(),a=n(()=>[...i.getRoutes().filter(e=>e.path.startsWith(`/modules/`)&&e.meta.title&&!e.meta.wip).filter(e=>!e.meta.experimental||e.meta.experimental&&t.showExperimentalFeatures.value).sort((e,t)=>(e.meta.order||100)-(t.meta.order||100)).map(e=>({name:e.name,path:e.path,...e.meta})),...(e.value||[]).filter(e=>e.name.startsWith(`builtin-`))]),s=n(()=>(e.value||[]).filter(e=>!e.name.startsWith(`builtin-`)));return n(()=>[...a.value,...s.value])}function u(){return{pinned:[],app:[],"vue-devtools":[],analyze:[],server:[],modules:[],documentation:[],advanced:[]}}function d(e){let{pinnedTabs:r}=c(`ui`);return n(()=>{let n=u();for(let i of t(e)){let e=i.category||`app`;r.value.includes(i.name)&&(e=`pinned`),n[e]?n[e].push(i):console.warn(`Unknown tab category: ${e}`)}for(let e of Object.keys(n))n[e].length===0&&delete n[e];return n.pinned?.length&&n.pinned.sort((e,t)=>r.value.indexOf(e.name)-r.value.indexOf(t.name)),Object.entries(n)})}function f(){let t=l(),r=c(`ui`),i=Object.keys(u()),a=t.value.map(e=>e?.show?.());return n(()=>t.value.filter((t,n)=>{let i=t,o=r.pinnedTabs.value.includes(i.name);return!(o&&r.hiddenTabCategories.value.includes(`pinned`)||a[n]&&!e(a[n])||r.hiddenTabs.value.includes(i.name)||r.hiddenTabCategories.value.includes(t.category||`app`)&&!o)}).sort((e,t)=>i.indexOf(e.category||`app`)-i.indexOf(t.category||`app`)))}function p(){let e=s(),t=a();return n(()=>(e.value?.getRoutes()||[]).map(e=>i(e,[`path`,`name`,`meta`,`props`,`children`])).map(e=>({...t.value?.find(t=>t.name&&t.name===e.name),...e})))}export{f as i,p as n,l as r,d as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,H as r,Mt as i,P as ee,Qt as a,W as o,Y as s,_ as c,c as l,ct as u,dt as d,ft as te,g as f,h as p,lt as m,m as h,t as ne,tn as g,ut as _,v,vt as re,w as y}from"./vendor/json-editor-vue-hkofgjf7.js";import{A as b,O as ie,g as x,j as ae}from"./ready-szdlhgcr.js";import{i as S}from"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{L as C,N as w}from"./state-dkywakbf.js";import{D as oe,t as se,u as T}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import{n as E}from"./dev-auth-j4vxv6a1.js";import"./nuxt-link-mev16ngd.js";import{t as ce}from"./nicon-m5br9nvg.js";import{t as D}from"./nbutton-oi1rfqiz.js";import{t as le}from"./ncard-ech06vlh.js";import"./state-routes-m6gv5n9v.js";import"./telemetry-bagjjni2.js";import{t as ue}from"./npanel-grids-bl37sfq7.js";import{t as de}from"./ntext-input-ngomk0u2.js";import{a as O,c as fe}from"#entry";import{t as pe}from"./nselect-kgjpj17v.js";import{t as k}from"./composables-cwesk2q8.js";import{t as me}from"./nlink-dmk2d6qc.js";import{t as A}from"./filepath-item-fnp9jxof.js";var j={class:`h-[48px] flex items-center justify-between gap1 px-3`},M={class:`w-full text-sm`},N=[`value`],P=[`onClick`],F={key:0,"h-full":``,"of-hidden":``,flex:`~ col`},I={border:`b base`,class:`h-[49px] flex flex-none items-center justify-between px-4 text-sm`},L={class:`flex items-center gap-4`},R={key:1},z=[`onKeyup`],he={key:0,op50:``},ge={key:1},_e={"font-bold":``},ve={"text-sm":``},B=n({__name:`StorageDetails`,async setup(n){let O,k,B=se(),V=S(),H=x(),U=t(``),W=t(``),G=w(`storage:current`,``),K=t(),q=w(`storage:file:state`,``),{data:J}=([O,k]=_(()=>C(`storageMounts`,()=>T.getStorageMounts())),O=await O,k(),O),{data:Y,refresh:X}=([O,k]=_(async()=>C(`storageKeys`,async()=>G.value?await T.getStorageKeys(G.value):[])),O=await O,k(),O);r(V.hook(`storage:key:update`,async(e,t)=>{if(!(!G.value||e.split(`:`)[0]!==G.value)&&(await X(),q.value===e)){if(t===`remove`)return H.replace({query:{storage:G.value}});await Q(q.value)}})),u(G,()=>{X(),q.value=``}),m(async()=>{if(!q.value){K.value=null;return}Q(q.value)}),oe(`keydown`,e=>{e.key===`s`&&(e.ctrlKey||e.metaKey)&&($(),e.preventDefault())});function Z(e){return e.replace(`${G.value}:`,``)}let ye=h(()=>Y.value?Y.value.filter(e=>e.includes(U.value)):[]);async function Q(e){let t=await T.getStorageItem(await E(),e);K.value={key:e,updatedKey:Z(e),editingKey:!1,content:t,updatedContent:t}}async function be(){if(!W.value||!G.value)return;let e=`${G.value}:${W.value}`;Y.value?.includes(e)||await T.setStorageItem(await E(),e,``),H.replace({query:{storage:G.value,key:e}}),W.value=``}async function $(){K.value&&(await T.setStorageItem(await E(),K.value.key,K.value.updatedContent),await Q(K.value.key))}async function xe(){!K.value||!G.value||(await T.removeStorageItem(await E(),K.value.key),K.value=null)}async function Se(){if(!K.value||!G.value)return;let e=`${G.value}:${K.value.updatedKey}`,t=await E();await T.setStorageItem(t,e,K.value.updatedContent),await T.removeStorageItem(t,K.value.key),H.replace({query:{storage:G.value,key:e}})}return(t,n)=>{let r=D,u=pe,m=de,h=ce,_=me,x=le,S=ue,C=fe,w=A;return i(G)?(o(),f(C,{key:0,"storage-key":`tab-storage`},{left:d(()=>[p(`div`,j,[y(r,{icon:`carbon-chevron-left`,"ml--1":``,border:!1,onClick:n[0]||=e=>G.value=``}),p(`div`,M,[y(u,{modelValue:i(G),"onUpdate:modelValue":n[1]||=e=>re(G)?G.value=e:null,n:`primary`,icon:`carbon-data-base`},{default:d(()=>[(o(!0),v(l,null,s(i(J),(e,t)=>(o(),v(`option`,{key:t,value:t},g(t),9,N))),128))]),_:1},8,[`modelValue`])])]),y(m,{modelValue:U.value,"onUpdate:modelValue":n[2]||=e=>U.value=e,icon:`carbon-search`,placeholder:`Search...`,n:`primary sm`,border:`y x-none base! rounded-0`,class:`w-full py2 ring-0!`},null,8,[`modelValue`]),(o(!0),v(l,null,s(ye.value,e=>(o(),v(l,{key:e},[p(`button`,{block:``,"w-full":``,truncate:``,px2:``,py1:``,"text-start":``,"text-sm":``,"font-mono":``,class:a(e===K.value?.key?`text-primary n-bg-active`:`text-secondary hover:n-bg-hover`),onClick:t=>q.value=e},g(Z(e)),11,P),n[8]||=p(`div`,{"x-divider":``},null,-1)],64))),128)),y(m,{modelValue:W.value,"onUpdate:modelValue":n[3]||=e=>W.value=e,icon:`carbon-add`,placeholder:`key`,n:`sm`,border:`t-none x-none base! rounded-0`,class:`w-full py2 font-mono ring-0!`,onKeyup:b(be,[`enter`])},null,8,[`modelValue`])]),right:d(()=>[K.value?.key?(o(),v(`div`,F,[p(`div`,I,[p(`div`,L,[K.value.editingKey?(o(),f(m,{key:0,modelValue:K.value.updatedKey,"onUpdate:modelValue":n[4]||=e=>K.value.updatedKey=e,onKeyup:b(Se,[`enter`])},null,8,[`modelValue`])):(o(),v(`code`,R,[e(g(Z(K.value.key))+` `,1),y(h,{icon:`carbon-edit`,class:`cursor-pointer op50 hover:op100`,onClick:n[5]||=e=>K.value.editingKey=!0})])),K.value.editingKey?c(``,!0):(o(),f(r,{key:2,n:`green xs`,disabled:K.value.content===K.value.updatedContent,class:a({"border-green":K.value.content!==K.value.updatedContent}),onClick:$},{default:d(()=>[...n[9]||=[e(` Save `,-1)]]),_:1},8,[`disabled`,`class`]))]),p(`div`,null,[y(r,{n:`red xs`,onClick:xe},{default:d(()=>[...n[10]||=[e(` Delete `,-1)]]),_:1})])]),typeof K.value.content==`object`?(o(),f(i(ne),ee({key:0,modelValue:K.value.updatedContent,"onUpdate:modelValue":n[6]||=e=>K.value.updatedContent=e,class:[[i(B)===`dark`?`jse-theme-dark`:`light`],`json-editor-vue h-full of-auto text-sm outline-none`]},t.$attrs,{mode:`text`,"navigation-bar":!1,indentation:2,"tab-size":2}),null,16,[`modelValue`,`class`])):te((o(),v(`textarea`,{key:1,"onUpdate:modelValue":n[7]||=e=>K.value.updatedContent=e,placeholder:`Item value...`,class:`h-full of-auto p-4 text-sm font-mono outline-none`,onKeyup:b(ae($,[`ctrl`]),[`enter`])},null,40,z)),[[ie,K.value.updatedContent]])])):(o(),f(S,{key:1},{default:d(()=>[y(x,{px6:``,py4:``},{default:d(()=>[n[12]||=e(` Select one key to start.`,-1),n[13]||=p(`br`,null,null,-1),n[14]||=e(`Learn more about `,-1),y(_,{href:`https://nitro.unjs.io/guide/storage`,n:`orange`,target:`_blank`},{default:d(()=>[...n[11]||=[e(` Nitro storage `,-1)]]),_:1})]),_:1})]),_:1}))]),_:1})):(o(),f(S,{key:1},{default:d(()=>[Object.keys(i(J)).length?(o(),v(`p`,he,` Select one storage to start: `)):(o(),v(`p`,ge,[n[16]||=e(` No custom storage defined in `,-1),n[17]||=p(`code`,null,`nitro.storage`,-1),n[18]||=e(`.`,-1),n[19]||=p(`br`,null,null,-1),n[20]||=e(` Learn more about `,-1),y(_,{href:`https://nitro.unjs.io/guide/storage`,n:`orange`,target:`_blank`},{default:d(()=>[...n[15]||=[e(` Nitro storage `,-1)]]),_:1})])),(o(!0),v(l,null,s(i(J),(e,t)=>(o(),f(x,{key:t,"min-w-80":``,"cursor-pointer":``,"p-4":``,"text-left":``,hover:`border-green`,onClick:e=>G.value=t},{default:d(()=>[p(`span`,_e,g(t),1),n[21]||=p(`br`,null,null,-1),p(`span`,ve,g(e.driver)+` driver`,1),n[22]||=p(`br`,null,null,-1),e.base?(o(),f(w,{key:0,"text-xs":``,filepath:e.base},null,8,[`filepath`])):c(``,!0)]),_:2},1032,[`onClick`]))),128))]),_:1}))}}}),V=Object.assign(B,{__name:`StorageDetails`}),H=n({__name:`storage`,setup(e){return k({icon:`carbon-data-base`,title:`Storage`,layout:`full`,category:`server`}),(e,t)=>{let n=V,r=O;return o(),f(r,null,{default:d(()=>[y(n)]),_:1})}}});export{H as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{kt as e,xt as t}from"./vendor/json-editor-vue-hkofgjf7.js";import{U as n,m as r,u as i}from"./client-s5g5n0ac.js";var a=new Map;function o(o){if(a.has(o))return a.get(o);let s=t({...r[o]}),c=e(s);return a.set(o,c),i.getOptions(o).then(e=>{Object.assign(s,e),n(s,async e=>{i.updateOptions(o,e)},{deep:!0,flush:`post`,debounce:500,maxWait:1e3})}),c}function s(e){return o(e)}export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as e}from"./client-s5g5n0ac.js";import{t}from"./storage-options-owy2vf04.js";import{o as n}from"./dev-auth-j4vxv6a1.js";const r=t(`behavior`).telemetry;function i(t,i,a=!1){r.value!==!1&&e.telemetryEvent({event:t,browser:n.browser.name,browserVersion:n.browser.version,os:n.os.name,osVersion:n.os.version,deviceType:n.device.type,inPopup:!!window.__NUXT_DEVTOOLS_IS_POPUP__,...i},a)}export{r as n,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,Mt as r,Qt as i,V as a,W as o,Y as s,_ as c,c as l,dt as u,g as d,h as f,lt as p,m,tn as h,v as g,w as _}from"./vendor/json-editor-vue-hkofgjf7.js";import{j as v}from"./ready-szdlhgcr.js";import{i as y}from"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{g as b}from"./state-dkywakbf.js";import{D as x,u as S}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import{n as C}from"./dev-auth-j4vxv6a1.js";import"./nuxt-link-mev16ngd.js";import{t as w}from"./nicon-m5br9nvg.js";import{t as T}from"./nbutton-oi1rfqiz.js";import"./ncard-ech06vlh.js";import{r as E}from"./state-routes-m6gv5n9v.js";import"./npanel-grids-bl37sfq7.js";import"./ntext-input-ngomk0u2.js";import{a as D}from"#entry";import{t as O}from"./composables-cwesk2q8.js";import{n as k,t as A}from"./vendor/xterm-ed0pys2e.js";var j={border:`t base`,flex:`~ gap-2`,"items-center":``,p2:``},M={"text-sm":``,op50:``},N=n({__name:`TerminalView`,props:{id:{}},setup(e){let n=e,r=t(),i=y(),s=t(),u;a(async()=>{u=new A({convertEol:!0,cols:80,screenReaderMode:!0});let e=new k;u.loadAddon(e),u.open(r.value),e.fit(),x(window,`resize`,()=>{e.fit()}),s.value=await S.getTerminalDetail(await C(),n.id),s.value?.buffer&&u.write(s.value.buffer),i.hook(`devtools:terminal:data`,({id:e,data:t})=>{e===n.id&&u.write(t)})});async function p(){S.runTerminalAction(await C(),n.id,`clear`),u?.clear()}async function m(){S.runTerminalAction(await C(),n.id,`restart`)}async function v(){S.runTerminalAction(await C(),n.id,`terminate`)}return(e,t)=>{let n=T;return o(),g(l,null,[f(`div`,{ref_key:`container`,ref:r,"h-full":``,"w-full":``,"of-auto":``,"bg-black":``},null,512),f(`div`,j,[_(n,{title:`Clear`,icon:`i-carbon-clean`,border:!1,onClick:t[0]||=e=>p()}),s.value?.restartable?(o(),d(n,{key:0,title:`Restart`,icon:`carbon-renew`,border:!1,onClick:t[1]||=e=>m()})):c(``,!0),s.value?.terminatable?(o(),d(n,{key:1,title:`Terminate`,icon:`carbon-delete`,border:!1,onClick:t[2]||=e=>v()})):c(``,!0),f(`span`,M,h(s.value?.description),1)])],64)}}}),P=Object.assign(N,{__name:`TerminalView`}),F={key:0,"h-full":``,"w-full":``,"of-hidden":``,grid:`~ rows-[max-content_1fr_max-content]`},I={flex:`~`,border:`b base`,"n-navbar-glass":``,"flex-1":``,"items-center":``},L=[`onClick`],R={key:1,p10:``},z={key:1,"h-full":``,flex:``,"items-center":``,"justify-center":``},B=n({__name:`TerminalPage`,setup(t){let n=b(),a=E(),u=m(()=>n.value?.find(e=>e.id===a.value));async function _(e){S.runTerminalAction(await C(),e,`remove`)}return p(()=>{!a.value&&n.value?.length&&(a.value=n.value[0].id)}),(t,p)=>{let m=w,y=T,b=P;return r(n)?.length?(o(),g(`div`,F,[f(`div`,I,[(o(!0),g(l,null,s(r(n),e=>(o(),g(`button`,{key:e.id,border:`r base`,flex:`~ gap-2`,"items-center":``,px3:``,py2:``,class:i(e.id===u.value?.id?`bg-active`:``),onClick:t=>a.value=e.id},[e.icon?(o(),d(m,{key:0,icon:e.icon},null,8,[`icon`])):c(``,!0),f(`span`,{class:i(e.id===u.value?.id?``:`op50`)},h(e.name)+h(e.isTerminated?` (terminated)`:``),3),e.isTerminated?(o(),d(y,{key:1,icon:`carbon-close`,"mx--2":``,border:!1,onClick:v(t=>_(e.id),[`stop`])},null,8,[`onClick`])):c(``,!0)],10,L))),128))]),u.value?(o(),d(b,{id:u.value.id,key:u.value.id},null,8,[`id`])):(o(),g(`div`,R,[p[0]||=e(` Terminal `,-1),f(`code`,null,h(r(a)),1),p[1]||=e(` not found `,-1)]))])):(o(),g(`div`,z,[...p[2]||=[f(`em`,{op50:``},`No terminal attached`,-1)]]))}}}),V=Object.assign(B,{__name:`TerminalPage`}),H=n({__name:`terminals`,setup(e){return O({icon:`carbon-terminal`,title:`Terminals`,layout:`full`,show(){let e=b();return()=>!!e.value?.length},badge(){let e=b();return()=>e.value?.filter(e=>!e.isTerminated).length}}),(e,t)=>{let n=V,r=D;return o(),d(r,null,{default:u(()=>[_(n)]),_:1})}}});export{H as default};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,F as r,Mt as i,P as a,Qt as o,W as s,Y as c,Z as l,_ as u,c as d,ct as f,dt as p,en as m,g as h,h as g,m as _,t as v,tn as y,v as b,w as x}from"./vendor/json-editor-vue-hkofgjf7.js";import"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{P as S,c as C,n as w,o as T}from"./state-dkywakbf.js";import{D as E,N as D,_ as O,r as k,t as A,u as j}from"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import{c as M}from"./dev-auth-j4vxv6a1.js";import"./nuxt-link-mev16ngd.js";import{t as N}from"./_plugin-vue_export-helper-dp8rxgcg.js";import"./nicon-m5br9nvg.js";import{t as P}from"./nbutton-oi1rfqiz.js";import"./ncard-ech06vlh.js";import"./state-routes-m6gv5n9v.js";import"./telemetry-bagjjni2.js";import{t as F}from"./npanel-grids-bl37sfq7.js";import{d as ee,f as te,u as I}from"#entry";import"./client-lh91kcpv.js";import"./ncode-block-coc4sua0.js";import{t as L}from"./ndrawer-ijwn9421.js";import{t as R}from"./composables-cwesk2q8.js";import{t as z}from"./nlink-dmk2d6qc.js";import"./filepath-item-fnp9jxof.js";import{t as B}from"./help-fab-oc1qudll.js";import{t as V}from"./nbadge-hpznun17.js";import"./nmarkdown-nct1w6kn.js";import{t as H}from"./launch-page-kf0w74wk.js";import{t as U}from"./color-b9xoe9j2.js";import{t as W}from"./stacktrace-list-m1sv2uvd.js";import{t as G}from"./duration-display-20xlusue.js";import{t as K}from"./composable-item-b09pj4ca.js";import{t as q}from"./code-diff-cb7twqkt.js";var J=n({__name:`TimelineItemFunction`,props:{item:{}},setup(e){let t=e,n=/_op_/,r=_(()=>U(t.item.name,50,60,`_op_`)),i=_(()=>r.value.replace(n,`1`)),a=_(()=>U(t.item.name,50,40)),o=_(()=>r.value.replace(n,`0.2`));return(t,n)=>(s(),b(`button`,{class:`group`,style:m({color:i.value,borderLeft:`2px solid ${i.value}`}),relative:``,"bg-base":``,"text-sm":``,transition:``,"hover:z-1000":``},[g(`div`,{style:m({backgroundColor:o.value}),absolute:``,"bottom-0":``,"left--1px":``,"top-0":``,"w-full":``,"text-sm":``,"transition-all":``,"duration-300":``},null,4),g(`div`,{style:m({color:a.value,"--c":i.value}),border:`r-2 t-2 y-2 transparent`,"min-w-max":``,px1:``,"text-left":``,"group-hover":`border-$c`},y(e.item.name),5)],4))}}),Y=Object.assign(J,{__name:`TimelineItemFunction`}),X={relative:``,"h-full":``},Z={absolute:``,"left-2":``,"top-2.3em":``,"text-xs":``,op50:``},Q=n({__name:`TimelineSegment`,props:{segment:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,a=D(()=>n.segment.start,{updateInterval:1e3,showSecond:!0,controls:!1,messages:{justNow:``,past:e=>e,future:e=>e,invalid:`-`,second:e=>e?`${e}s`:``,minute:e=>`${e}m`,hour:e=>`${e}h`,week:e=>`${e}w`,day:e=>`${e}d`,month:e=>`${e}mo`,year:e=>`${e}y`}});return(t,n)=>{let o=Y;return s(),b(`div`,X,[g(`button`,{absolute:``,"left-0":``,"right-0":``,"top-0":``,"bg-green:5":``,px2:``,py1:``,"text-left":``,"text-xs":``,"text-green6":``,"font-mono":``,onClick:n[0]||=t=>e.segment.route?r(`select`,e.segment.route):void 0},y(e.segment.route?.event.to),1),g(`div`,Z,y(i(a))+` ago `,1),g(`div`,null,[(s(!0),b(d,null,c(e.segment.functions,(e,t)=>(s(),h(o,{key:t,item:e.event,style:m({position:`absolute`,minWidth:`${e.relativeWidth*100}%`,maxWidth:`${e.relativeWidth*100}%`,top:`${4+e.layer*1.6}em`,left:`${e.relativeStart*100}%`}),onClick:t=>r(`select`,e)},null,8,[`item`,`style`,`onClick`]))),128))])])}}}),ne=Object.assign(Q,{__name:`TimelineSegment`}),re=3e3,ie=50;function ae(e){let t=[],n={start:0,end:0,events:[],functions:[],duration:0};for(let r of e){let e=r.end||r.start;(r.start-n.end>re||r.type===`route`)&&(n={start:r.start,end:e,events:[],functions:[],duration:0},t.push(n)),n.events.push(r),n.end=e+ie}return t.forEach((e,n)=>{let r=e.end-e.start,i=[];e.duration=r,e.previousGap=n>0?e.start-t[n-1].end:0,e.events.forEach(t=>{let n=t.end||t.start,a=0;t.type!==`route`&&(a=i.findIndex(e=>e<=t.start),a===-1?(a=i.length,i.push(n+1e3)):i[a]=n+1e3);let o={event:t,segment:e,relativeStart:(t.start-e.start)/r,relativeWidth:(n-t.start)/r,layer:a};t.type===`function`?e.functions.push(o):e.route=o})}),t}var oe={relative:``},se={key:0,border:`x base`,"h-full":``,"flex-inline":``,"bg-true-gray-1":``,py15:``,"text-xs":``,"write-vertical-left":``,op50:``,"dark:bg-true-gray-9":``},ce=n({__name:`TimelineTable`,props:{data:{}},emits:[`select`],setup(e,{emit:n}){let a=e,l=n,p=t(),h=t(),v=t(),y=t(),C=t(!0),w=t(1.5),T=_(()=>ae(a.data.events)),D=_(()=>(a.data.events.length,p.value?.scrollWidth||window.innerWidth));function O(){y.value&&(y.value.style.width=`${D.value}px`)}function k(){C.value&&p.value&&(p.value.scrollTo({left:p.value.scrollWidth-p.value.clientWidth,behavior:`smooth`}),v.value.scrollTo({left:p.value.scrollWidth-p.value.clientWidth,behavior:`smooth`}))}return f(()=>a.data.events.length,async()=>{await r(),O(),k()},{flush:`post`}),E(p,`scroll`,()=>{v.value.scrollLeft!==p.value.scrollLeft&&(O(),v.value.scrollLeft=p.value.scrollLeft,C.value=p.value.scrollLeft>=p.value.scrollWidth-p.value.clientWidth)}),E(v,`scroll`,()=>{v.value.scrollLeft!==p.value.scrollLeft&&(O(),p.value.scrollLeft=v.value.scrollLeft)}),E(p,`wheel`,e=>{e.altKey?(w.value=S(w.value+e.deltaY/200,.5,3),O()):p.value.scrollLeft+=e.deltaY}),(e,t)=>{let n=G,r=ne;return s(),b(d,null,[g(`div`,oe,[g(`div`,{ref_key:`minimap`,ref:h,border:`t b base`,relative:``,"h-50px":``,"ws-nowrap":``,"border-base":``},[(s(!0),b(d,null,c(T.value,(t,n)=>(s(),b(`div`,{key:n,relative:``,"h-full":``,"flex-inline":``,style:m({width:`${Math.max(100,t.duration/10)/D.value*100}%`})},[(s(!0),b(d,null,c(t.functions,(t,n)=>(s(),b(`div`,{key:n,"h-3px":``,rounded:``,style:m({width:`max(${t.relativeWidth*100}%, 10px)`,position:`absolute`,top:`${t.layer*4}px`,left:`${t.relativeStart*100}%`,backgroundColor:(`getHslColorFromStringHash`in e?e.getHslColorFromStringHash:i(U))(t.event.name,50,60)})},null,4))),128)),t.route?(s(),b(`div`,{key:0,absolute:``,"top-0":``,"h-full":``,"w-px":``,"border-l":``,"border-green6":``,op10:``,style:m({left:`${t.route.relativeStart*100}%`})},null,4)):u(``,!0)],4))),128))],512),g(`div`,{ref_key:`minimapScroller`,ref:v,class:`timeline-scroller`,absolute:``,"inset-0":``,"h-full":``,"w-full":``,"of-x-scroll":``},[g(`div`,{ref_key:`minimapScrollerInner`,ref:y,"h-1px":``},null,512)],512)]),g(`div`,{ref_key:`scroller`,ref:p,relative:``,"h-full":``,"w-full":``,"of-x-scroll":``,"of-y-hidden":``,"ws-nowrap":``,"n-panel-grids":``},[(s(!0),b(d,null,c(T.value,(e,i)=>(s(),b(d,{key:i},[e.previousGap&&e.previousGap>=200?(s(),b(`div`,se,[x(n,{op50:``,duration:e.previousGap,color:!1},null,8,[`duration`])])):u(``,!0),x(r,{"flex-inline":``,"of-x-hidden":``,"bg-base":``,"hover:of-x-visible":``,class:o(i===T.value.length-1?`border-r border-base`:``),segment:e,style:m({width:`${Math.max(50,e.duration/10)*w.value}px`}),onSelect:t[0]||=e=>l(`select`,e)},null,8,[`class`,`segment`,`style`])],64))),128))],512)],64)}}}),le=Object.assign(N(ce,[[`__scopeId`,`data-v-da163089`]]),{__name:`TimelineTable`}),ue={border:`t base`,flex:`~ col`,"h-full":``,"of-y-auto":``,"text-sm":``},de=[`onClick`],fe={flex:`~`,"ml--1":``,"font-mono":``},pe={key:0,mr2:``,op30:``},me={op75:``},he={flex:`~ col items-start`},ge={"text-xs":``,"font-mono":``,op30:``},_e={"text-green":``,"font-bold":``,"font-mono":``},ve=n({__name:`TimelineList`,props:{data:{}},emits:[`select`],setup(e,{emit:t}){let n=t;return(t,r)=>{let a=G;return s(),b(`div`,ue,[(s(!0),b(d,null,c(e.data.events,(e,o)=>(s(),b(`button`,{key:o,border:`b base`,px3:``,py2:``,flex:`~ items-center gap-2`,hover:`bg-active`,onClick:t=>n(`select`,e)},[e.type===`function`?(s(),b(d,{key:0},[r[2]||=g(`div`,{"i-carbon-function":``,op50:``},null,-1),g(`div`,{"font-mono":``,style:m({color:e.type===`function`?(`getHslColorFromStringHash`in t?t.getHslColorFromStringHash:i(U))(e.name,50,60):``})},y(e.name),5),g(`div`,fe,[r[0]||=g(`div`,{op30:``},` ( `,-1),(s(!0),b(d,null,c(e.args,(e,t)=>(s(),b(d,{key:t},[t?(s(),b(`div`,pe,` , `)):u(``,!0),g(`div`,me,y(e===null?`null`:e===void 0?`undefined`:typeof e==`function`?`[function]`:Array.isArray(e)?`[Array]`:typeof e==`object`?`[object]`:JSON.stringify(e)),1)],64))),128)),r[1]||=g(`div`,{op30:``},` ) `,-1)])],64)):(s(),b(d,{key:1},[r[3]||=g(`div`,{"mr-1":``,"h-7":``,"w-7":``,flex:``,"rounded-lg":``,"bg-primary:5":``,p1:``,"text-green6":``},[g(`div`,{"i-carbon-direction-rotary-right":``,ma:``,"text-lg":``})],-1),g(`div`,he,[g(`div`,ge,y(e.from),1),g(`div`,_e,y(e.to),1)])],64)),r[4]||=g(`div`,{"flex-auto":``},null,-1),e.end?(s(),h(a,{key:2,duration:e.end-e.start,color:e.type===`function`},null,8,[`duration`,`color`])):u(``,!0)],8,de))),128)),r[5]||=g(`div`,{"min-h-100":``},null,-1)])}}}),ye=Object.assign(ve,{__name:`TimelineList`}),be={key:0,"text-blue":``},xe={key:1,"text-purple":``},Se={key:2,"text-green":``},Ce={key:3,"text-gray":``},we={key:4,"text-gray":``},Te={key:5,"text-gray":``},Ee={key:0,"bg-red:10":``,px2:``,py1:``,"text-red":``},De={key:1},Oe={p2:``,"text-sm":``,border:`t base`},ke=n({__name:`TimelineArgumentView`,props:{value:{}},setup(r){let c=r,d=t(),f=t();function m(){try{d.value=JSON.parse(JSON.stringify(c.value))}catch(e){console.error(e),f.value=e}}let _=n({emits:[`setup`],setup(e,{emit:t}){return t(`setup`),()=>null}}),S=A(),C=I();return(t,n)=>{let c=P,w=l(`VMenu`);return typeof r.value==`string`?(s(),b(`div`,be,y(JSON.stringify(r.value)),1)):typeof r.value==`number`?(s(),b(`div`,xe,y(r.value),1)):typeof r.value==`boolean`?(s(),b(`div`,Se,y(r.value),1)):r.value===void 0?(s(),b(`div`,Ce,` undefined `)):typeof r.value==`function`?(s(),b(`div`,we,` [Function`+y(r.value.name?`: ${r.value.name}`:``)+`] `,1)):r.value===null?(s(),b(`div`,Te,` null `)):(s(),h(w,{key:6,placement:`top`},{popper:p(()=>[x(i(_),{onSetup:m}),f.value?(s(),b(`div`,Ee,` Failed to display object: `+y(f.value),1)):d.value?(s(),b(`div`,De,[x(i(v),a({"model-value":d.value},t.$attrs,{class:[`json-editor-vue`,[i(S)===`dark`?`jse-theme-dark`:``]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":!0,indentation:2,"tab-size":2}),null,16,[`model-value`,`class`]),g(`div`,Oe,[x(c,{title:`Copy to clipboard`,icon:`carbon-copy`,onClick:n[0]||=e=>i(C)(JSON.stringify(d.value,null,2),`timeline-argument`)},{default:p(()=>[...n[1]||=[e(` Copy `,-1)]]),_:1})])])):u(``,!0)]),default:p(()=>[g(`span`,{"rounded-sm":``,px1:``,"py0.5":``,"text-sm":``,class:o([Array.isArray(r.value)?`text-amber bg-amber:10`:`text-orange bg-orange:10`])},y(Array.isArray(r.value)?`[Array(${r.value.length})]`:`[Object]`),3)]),_:1}))}}}),Ae=Object.assign(ke,{__name:`TimelineArgumentView`}),je={key:0,"p-4":``,flex:`~ col gap-2`,"text-base":``},Me={"mx--1":``},Ne={flex:`~ gap-1`,"font-mono":``},Pe={key:1},Fe={key:0,op30:``},Ie={flex:`~ gap-1`,"text-sm":``},Le={class:`text-sm text-gray-400`},Re=n({__name:`TimelineDetailsFunction`,props:{record:{}},setup(e){let t=e,n=D(()=>t.record.start,{showSecond:!0}),r=w(),a=_(()=>r.value?.metadata),o=_(()=>r.value?.imports.find(e=>e.as===t.record.name));return(t,r)=>{let l=V,f=K,p=Ae,m=G,_=W;return e.record?(s(),b(`div`,je,[g(`div`,Me,[x(l,{n:`yellow`,textContent:`Function call`})]),g(`div`,Ne,[o.value?(s(),h(f,{key:0,item:o.value,metadata:a.value,counter:!1,classes:`px2 py1`,"mx--2":``},null,8,[`item`,`metadata`])):(s(),b(`span`,Pe,y(e.record.name),1)),r[0]||=g(`span`,{ml1:``,op30:``},`(`,-1),(s(!0),b(d,null,c(e.record.args,(e,t)=>(s(),b(d,{key:t},[t?(s(),b(`span`,Fe,`, `)):u(``,!0),x(p,{value:e},null,8,[`value`])],64))),128)),r[1]||=g(`span`,{op30:``},`)`,-1)]),g(`div`,Ie,[e.record.end?(s(),h(m,{key:0,duration:e.record.end-e.record.start},null,8,[`duration`])):u(``,!0),r[2]||=g(`span`,{mx1:``,op50:``},`·`,-1),g(`div`,Le,y(i(n)),1)]),e.record.stacktrace?(s(),h(_,{key:0,stacktrace:e.record.stacktrace,class:`text-xs text-gray-400`},null,8,[`stacktrace`])):u(``,!0)])):u(``,!0)}}}),ze=Object.assign(Re,{__name:`TimelineDetailsFunction`}),Be={key:0,"p-4":``,flex:`~ col gap-2`},Ve={"mx--1":``},He={flex:`~ gap-1 items-center`,"font-mono":``},Ue={op50:``},We={flex:`~ gap-1`,"text-sm":``},Ge={class:`text-sm text-gray-400`},Ke=n({__name:`TimelineDetailsRoute`,props:{record:{}},setup(e){let t=e,n=D(()=>t.record.start,{showSecond:!0});return(t,r)=>{let a=V,o=G;return e.record?(s(),b(`div`,Be,[g(`div`,Ve,[x(a,{n:`green`,textContent:`Route Change`})]),g(`div`,He,[g(`span`,Ue,y(e.record.from),1),r[0]||=g(`span`,{"i-carbon-arrow-right":``,op50:``},null,-1),g(`span`,null,y(e.record.to),1)]),g(`div`,We,[e.record.end?(s(),h(o,{key:0,duration:e.record.end-e.record.start},null,8,[`duration`])):u(``,!0),r[1]||=g(`span`,{mx1:``,op50:``},`·`,-1),g(`div`,Ge,y(i(n)),1)])])):u(``,!0)}}}),qe=Object.assign(Ke,{__name:`TimelineDetailsRoute`}),Je={key:0,"h-screen":``,"of-hidden":``},$={"h-screen":``,"w-full":``,flex:``,"flex-col":``},Ye={"h-10":``,flex:`~ gap-2 items-center justify-end`,p2:``,px3:``},Xe={"text-sm":``},Ze={"min-h-50":``,px3:``,py2:``},Qe=n({__name:`TimelineView`,setup(n){let r=k(),i=t(`table`),a=t(),c=_(()=>r.value?.metrics.clientTimeline());function d(){c.value&&(c.value.events=[])}function f(){i.value=i.value===`table`?`list`:`table`}return(t,n)=>{let r=l(`VTooltip`),m=P,_=le,v=ye,S=ze,C=qe,w=L;return c.value?(s(),b(`div`,Je,[g(`div`,$,[g(`div`,Ye,[x(r,{flex:``},{popper:p(()=>[g(`div`,Xe,y(c.value.options.enabled?`Recording...`:`Paused`),1)]),default:p(()=>[g(`div`,{"text-lg":``,class:o(c.value.options.enabled?`i-carbon-radio-button-checked text-primary animate-pulse`:`i-carbon-pause-outline op30`)},null,2)]),_:1}),c.value.options.enabled?(s(),h(m,{key:1,size:`small`,ml1:``,"text-sm":``,n:`orange`,icon:`i-carbon-stop`,onClick:n[1]||=e=>c.value.options.enabled=!1},{default:p(()=>[...n[6]||=[e(` Stop Tracking `,-1)]]),_:1})):(s(),h(m,{key:0,size:`small`,ml1:``,"text-sm":``,n:`primary`,icon:`i-carbon-play`,onClick:n[0]||=e=>c.value.options.enabled=!0},{default:p(()=>[...n[5]||=[e(` Start Tracking `,-1)]]),_:1})),n[7]||=g(`div`,{"flex-auto":``},null,-1),x(m,{icon:i.value===`table`?`i-carbon-roadmap`:`i-carbon-list`,class:`ml-2`,title:`Toggle View`,border:!1,onClick:f},null,8,[`icon`]),x(m,{icon:`i-carbon-trash-can`,"hover-text-red":``,class:`ml-2`,border:!1,onClick:d})]),i.value===`table`?(s(),h(_,{key:0,data:{...c.value},onSelect:n[2]||=e=>a.value=e.event},null,8,[`data`])):(s(),h(v,{key:1,data:{...c.value},onSelect:n[3]||=e=>a.value=e},null,8,[`data`]))]),x(w,{"model-value":!!a.value,"auto-close":``,transition:`bottom`,left:`#nuxt-devtools-side-nav`,onClose:n[4]||=e=>a.value=void 0},{default:p(()=>[g(`div`,Ze,[a.value?.type===`function`?(s(),h(S,{key:0,record:a.value},null,8,[`record`])):a.value?.type===`route`?(s(),h(C,{key:1,record:a.value},null,8,[`record`])):u(``,!0)])]),_:1},8,[`model-value`])])):u(``,!0)}}}),$e=Object.assign(Qe,{__name:`TimelineView`}),et={},tt={class:`markdown-body`};function nt(t,n){return s(),b(`div`,tt,[...n[0]||=[g(`template`,null,[g(`div`,{class:`markdown-body`},[g(`h1`,null,`Timeline`),g(`blockquote`,{"text-orange":``,"bg-orange:10":``,py1:``},` This is an experimental feature `),g(`p`,null,`Timeline tracks your route navigations and functions calls in your Nuxt application. It can be used to debug performance issues and to understand how your application works.`),g(`h2`,null,`Function calls`),g(`p`,null,[e(`Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through `),g(`code`,{"v-pre":``},`import {} from '#imports'`),e(`.`)]),g(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"background-color":`#ffffff`,"--shiki-dark-bg":`#121212`,color:`#393a34`,"--shiki-dark":`#dbd7caee`},tabindex:`0`},[g(`code`,{"v-pre":``},[g(`span`,{class:`line`},[g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`<`),g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},`script`),g(`span`,{style:{color:`#B07D48`,"--shiki-dark":`#BD976A`}},` setup`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`>`)]),e(`
|
|
2
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` {`),g(`span`,{style:{color:`#B07D48`,"--shiki-dark":`#BD976A`}},` useRoute`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` }`),g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),g(`span`,{style:{color:`#B56959`,"--shiki-dark":`#C98A7D`}},`#app/composables/router`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),e(`
|
|
3
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` {`),g(`span`,{style:{color:`#B07D48`,"--shiki-dark":`#BD976A`}},` useNuxtApp`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` }`),g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),g(`span`,{style:{color:`#B56959`,"--shiki-dark":`#C98A7D`}},`#imports`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),e(`
|
|
4
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` {`),g(`span`,{style:{color:`#B07D48`,"--shiki-dark":`#BD976A`}},` useMouse`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` }`),g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),g(`span`,{style:{color:`#B56959`,"--shiki-dark":`#C98A7D`}},`@vueuse/core`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),e(`
|
|
5
|
-
`),g(`span`,{class:`line`}),e(`
|
|
6
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#AB5959`,"--shiki-dark":`#CB7676`}},`const`),g(`span`,{style:{color:`#B07D48`,"--shiki-dark":`#BD976A`}},` route`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` =`),g(`span`,{style:{color:`#59873A`,"--shiki-dark":`#80A665`}},` useRoute`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`()`),g(`span`,{style:{color:`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // tracked`)]),e(`
|
|
7
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#AB5959`,"--shiki-dark":`#CB7676`}},`const`),g(`span`,{style:{color:`#B07D48`,"--shiki-dark":`#BD976A`}},` app`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` =`),g(`span`,{style:{color:`#59873A`,"--shiki-dark":`#80A665`}},` useNuxtApp`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`()`),g(`span`,{style:{color:`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // tracked`)]),e(`
|
|
8
|
-
`),g(`span`,{class:`line`}),e(`
|
|
9
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#A0ADA0`,"--shiki-dark":`#758575DD`}},`// NOT tracked because it's directly imported`)]),e(`
|
|
10
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#AB5959`,"--shiki-dark":`#CB7676`}},`const`),g(`span`,{style:{color:`#B07D48`,"--shiki-dark":`#BD976A`}},` mouse`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` =`),g(`span`,{style:{color:`#59873A`,"--shiki-dark":`#80A665`}},` useMouse`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`()`)]),e(`
|
|
11
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`</`),g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},`script`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`>`)]),e(`
|
|
12
|
-
`),g(`span`,{class:`line`})])]),g(`p`,null,[e(`By default, it tracks Nuxt provided composables as well as user defined functions. You can include/exclude functions by using the `),g(`code`,{"v-pre":``},`include`),e(` and `),g(`code`,{"v-pre":``},`exclude`),e(` options in the `),g(`code`,{"v-pre":``},`nuxt.config.js`),e(` file.`)]),g(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"background-color":`#ffffff`,"--shiki-dark-bg":`#121212`,color:`#393a34`,"--shiki-dark":`#dbd7caee`},tabindex:`0`},[g(`code`,{"v-pre":``},[g(`span`,{class:`line`},[g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),g(`span`,{style:{color:`#59873A`,"--shiki-dark":`#80A665`}},` defineNuxtConfig`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`({`)]),e(`
|
|
13
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#998418`,"--shiki-dark":`#B8A965`}},` devtools`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`:`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` {`)]),e(`
|
|
14
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#998418`,"--shiki-dark":`#B8A965`}},` timeline`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`:`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` {`)]),e(`
|
|
15
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#998418`,"--shiki-dark":`#B8A965`}},` functions`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`:`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` {`)]),e(`
|
|
16
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#998418`,"--shiki-dark":`#B8A965`}},` include`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`:`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` [`)]),e(`
|
|
17
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#A0ADA0`,"--shiki-dark":`#758575DD`}}," // track `useMouse`")]),e(`
|
|
18
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),g(`span`,{style:{color:`#B56959`,"--shiki-dark":`#C98A7D`}},`useMouse`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`,`)]),e(`
|
|
19
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#A0ADA0`,"--shiki-dark":`#758575DD`}}," // track all functions starting with `use`")]),e(`
|
|
20
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},` /`),g(`span`,{style:{color:`#1E754F`,"--shiki-dark":`#4D9375`}},`^`),g(`span`,{style:{color:`#AB5E3F`,"--shiki-dark":`#C4704F`}},`use`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`[`),g(`span`,{style:{color:`#A65E2B`,"--shiki-dark":`#C99076`}},`A-Z`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`]`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},`/`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`,`)]),e(`
|
|
21
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // track all functions from @vueuse/core`)]),e(`
|
|
22
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#B07D48`,"--shiki-dark":`#BD976A`}},` entry`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` =>`),g(`span`,{style:{color:`#B07D48`,"--shiki-dark":`#BD976A`}},` entry`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`.`),g(`span`,{style:{color:`#B07D48`,"--shiki-dark":`#BD976A`}},`from`),g(`span`,{style:{color:`#AB5959`,"--shiki-dark":`#CB7676`}},` ===`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),g(`span`,{style:{color:`#B56959`,"--shiki-dark":`#C98A7D`}},`@vueuse/core`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`,`)]),e(`
|
|
23
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` ],`)]),e(`
|
|
24
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#998418`,"--shiki-dark":`#B8A965`}},` exclude`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`:`),g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` [`)]),e(`
|
|
25
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),g(`span`,{style:{color:`#B56959`,"--shiki-dark":`#C98A7D`}},`useRouter`),g(`span`,{style:{color:`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),e(`
|
|
26
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` ]`)]),e(`
|
|
27
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` }`)]),e(`
|
|
28
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` }`)]),e(`
|
|
29
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},` }`)]),e(`
|
|
30
|
-
`),g(`span`,{class:`line`},[g(`span`,{style:{color:`#999999`,"--shiki-dark":`#666666`}},`})`)]),e(`
|
|
31
|
-
`),g(`span`,{class:`line`})])])])],-1)]])}var rt=N(et,[[`render`,nt]]),it={flex:`~ col gap-2`,"w-150":``,p4:``,border:`t base`},at={op50:``},ot={flex:`~ gap-3`,mt2:``,"justify-end":``},st=n({__name:`timeline`,setup(t){R({icon:`i-carbon-roadmap`,title:`Timeline`,category:`analyze`});let n=T(),r=C(),a=O(),o=ee();async function c(){try{let[e,t]=await j.enableTimeline(!0);if(!await a.start(e,t))return;await j.enableTimeline(!1)}catch{M({message:`Failed to enable timeline automatically. Check the terminal for more details.`,icon:`i-carbon-warning`,classes:`text-red`})}}return(t,l)=>{let u=$e,f=H,m=F,_=z,v=q,y=P,S=te,C=rt,w=B;return s(),b(d,null,[i(n)?.timeline?.enabled?(s(),h(u,{key:0})):(s(),b(d,{key:1},[x(m,null,{default:p(()=>[x(f,{icon:`i-carbon-roadmap`,name:`feature-timeline`,title:`Timeline`,description:`Timeline enables the inspection of when composable being executed and the route changes.`,actions:[{label:`Enable`}],onAction:c})]),_:1}),x(i(a),null,{default:p(({resolve:t,args:n})=>[x(S,{"model-value":!0,onClose:e=>t(!1)},{default:p(()=>[g(`div`,it,[l[5]||=g(`h2`,{"text-xl":``},[g(`span`,{capitalize:``},`Enable Timeline?`)],-1),g(`p`,at,[l[1]||=e(` Your `,-1),x(_,{role:`button`,n:`primary`,underline:``,onClick:l[0]||=e=>i(o)(i(r)?._nuxtConfigFile),textContent:`Nuxt config`}),l[2]||=e(` will be updated as: `,-1)]),x(v,{from:n[0],to:n[1],"max-h-80":``,"of-auto":``,py2:``,border:`~ base rounded`,lang:`ts`},null,8,[`from`,`to`]),l[6]||=g(`p`,null,[g(`span`,{op50:``},`Then Nuxt will `),g(`span`,{"text-orange":``},`restart automatically`),e(`. `)],-1),g(`div`,ot,[x(y,{onClick:e=>t(!1)},{default:p(()=>[...l[3]||=[e(` Cancel `,-1)]]),_:1},8,[`onClick`]),x(y,{n:`solid primary`,capitalize:``,onClick:e=>t(!0)},{default:p(()=>[...l[4]||=[e(` Enable `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1})],64)),x(w,null,{default:p(()=>[x(C)]),_:1})],64)}}});export{st as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor/json-editor-vue-hkofgjf7.js";import{n as e,t}from"./vendor/unocss-bj3ln324.js";t({defaults:{presets:[e({prefix:[`i-`,``],collections:{},cdn:`https://esm.sh/`,scale:1.2,extraProperties:{display:`inline-block`,"vertical-align":`middle`}})]},bypassDefined:!0});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,E as t,Qt as n,W as r,Y as i,c as a,dt as o,g as s,h as c,lt as l,m as u,tn as d,v as f,w as p}from"./vendor/json-editor-vue-hkofgjf7.js";import"./ready-szdlhgcr.js";import"./nuxt-bfozs29x.js";import"./head-c2jgvqd9.js";import{_ as m}from"./state-dkywakbf.js";import"./client-s5g5n0ac.js";import"./vendor/shiki-niqic03h.js";import"./storage-options-owy2vf04.js";import"./nuxt-link-mev16ngd.js";import{t as h}from"./_plugin-vue_export-helper-dp8rxgcg.js";import"./nicon-m5br9nvg.js";import"./nbutton-oi1rfqiz.js";import{t as g}from"./ncard-ech06vlh.js";import{i as _}from"./state-routes-m6gv5n9v.js";import{t as v}from"./npanel-grids-bl37sfq7.js";import"./ntext-input-ngomk0u2.js";import{c as y,s as b}from"#entry";import"./client-lh91kcpv.js";import{t as x}from"./ncode-block-coc4sua0.js";import{t as S}from"./composables-cwesk2q8.js";import{t as C}from"./help-fab-oc1qudll.js";import{t as w}from"./nnavbar-n3j7iul1.js";var T={},E={class:`markdown-body`};function D(e,t){return r(),f(`div`,E,[...t[0]||=[c(`template`,null,[c(`div`,{class:`markdown-body`},[c(`h1`,null,`Virtual Files`),c(`p`,null,`Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.`)])],-1)]])}var O=h(T,[[`render`,D]]),k=[`onClick`],A={key:0,"h-full":``,"of-hidden":``,flex:`~ col`},j={border:`b base`,"flex-none":``,px4:``,py2:``,"text-sm":``,op75:``},M=t({__name:`virtual-files`,setup(t){S({icon:`i-carbon-border-none`,title:`Virtual Files`,layout:`full`,category:`advanced`});let h=e(``),T=m(),E=_(),D=e();l(()=>{if(!E.value)return;let e=`/_vfs.json/${encodeURIComponent(E.value)}`;fetch(e,{headers:{accept:`application/json`}}).then(e=>e.json()).then(e=>D.value=e.current)});function M(e){if(T.value?.rootDir)return e.startsWith(T.value?.rootDir)?e.slice(T.value.rootDir.length):e}let N=u(()=>T.value?T.value.entries.filter(e=>!e.id.startsWith(`${T.value?.rootDir||``}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),P=u(()=>new b(N.value,{keys:[`id`,`path`]})),F=u(()=>h.value?P.value.search(h.value).map(e=>e.item):N.value);return(e,t)=>{let l=w,u=x,m=g,_=v,b=y,S=O,T=C;return r(),f(a,null,[p(b,{class:`virtual-files`,"storage-key":`tab-virtual-files`},{left:o(()=>[p(l,{search:h.value,"onUpdate:search":t[0]||=e=>h.value=e,"no-padding":``,p3:``},null,8,[`search`]),(r(!0),f(a,null,i(F.value,e=>(r(),f(a,{key:e.id},[c(`button`,{block:``,"w-full":``,"select-none":``,truncate:``,px2:``,py1:``,"text-start":``,"text-sm":``,"font-mono":``,class:n(e.id===D.value?.id?`text-primary n-bg-active`:`text-secondary hover:n-bg-hover`),onClick:t=>E.value=e.id},d(M(e.id)),11,k),t[1]||=c(`div`,{"x-divider":``},null,-1)],64))),128))]),right:o(()=>[D.value?.content?(r(),f(`div`,A,[c(`div`,j,[c(`code`,null,d(D.value.id),1)]),p(u,{"h-full":``,"of-auto":``,"text-sm":``,code:D.value.content,lang:`typescript`},null,8,[`code`])])):(r(),s(_,{key:1},{default:o(()=>[p(m,{px6:``,py2:``},{default:o(()=>[...t[2]||=[c(`span`,{op75:``},`Select a file to start`,-1)]]),_:1})]),_:1}))]),_:1}),p(T,null,{default:o(()=>[p(S)]),_:1})],64)}}});export{M as default};
|