@nuxt/devtools 3.3.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +47 -10
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-o2muls23.js +1 -0
- package/dist/client/_nuxt/{analyze-build-ndbr1zwt.js → analyze-build-kjyk398o.js} +1 -1
- package/dist/client/_nuxt/assets-ecwtrmuk.js +6 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/04180599-af74-454c-91e0-3d5527eae2fc.json +1 -0
- package/dist/client/_nuxt/{client-d56h4dc4.js → client-eh4ejzq8.js} +1 -1
- package/dist/client/_nuxt/{code-diff-gh0ro4cb.js → code-diff-el8puwy4.js} +1 -1
- package/dist/client/_nuxt/{code-snippets-m9271riq.js → code-snippets-i5i2u9zz.js} +1 -1
- package/dist/client/_nuxt/{components-iry12ufh.js → components-iwfpkbz3.js} +1 -1
- package/dist/client/_nuxt/{composable-item-m3m39yy8.js → composable-item-e8kv7080.js} +1 -1
- package/dist/client/_nuxt/custom-_name_-ft6dg0e3.js +1 -0
- package/dist/client/_nuxt/{data-schema-button-hha0wi47.js → data-schema-button-hx1dia1u.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-mvrnpqdm.js → data-schema-drawer-iw791a0n.js} +1 -1
- package/dist/client/_nuxt/{debug-emfpm2zp.js → debug-f1y4ok7e.js} +1 -1
- package/dist/client/_nuxt/{default-dv40aud6.js → default-i5dr248x.js} +1 -1
- package/dist/client/_nuxt/{duration-display-g4enq0h7.js → duration-display-ce789vbq.js} +1 -1
- package/dist/client/_nuxt/{error-404-jybbe03f.js → error-404-hwu9ougr.js} +1 -1
- package/dist/client/_nuxt/error-404.css-cwq14vxz.css +1 -0
- package/dist/client/_nuxt/{error-500-onq7ss3q.js → error-500-gbqjpcce.js} +1 -1
- package/dist/client/_nuxt/error-500.css-hftlqubg.css +1 -0
- package/dist/client/_nuxt/{error-nnemr5rw.js → error-g08v33x2.js} +1 -1
- package/dist/client/_nuxt/{filepath-item-hz9dqk37.js → filepath-item-cfknf7u4.js} +1 -1
- package/dist/client/_nuxt/full-fv9atfrx.js +1 -0
- package/dist/client/_nuxt/{help-fab-oij4kl08.js → help-fab-kzusjvzh.js} +1 -1
- package/dist/client/_nuxt/{hooks-mm4wkhji.js → hooks-m7w83qkt.js} +1 -1
- package/dist/client/_nuxt/{imports-ih50w3iv.js → imports-m5e06d1m.js} +1 -1
- package/dist/client/_nuxt/{launch-page-bpr4mhu5.js → launch-page-k1jy2olz.js} +1 -1
- package/dist/client/_nuxt/{modules-hshgq2d9.js → modules-ocni0pmc.js} +1 -1
- package/dist/client/_nuxt/nbadge-dq091bml.js +1 -0
- package/dist/client/_nuxt/{ncheckbox-mc98noss.js → ncheckbox-oaojay1f.js} +1 -1
- package/dist/client/_nuxt/{ncode-block-mvjvaye5.js → ncode-block-jmq04laj.js} +1 -1
- package/dist/client/_nuxt/{ndrawer-mfwl47cs.js → ndrawer-iq9tsfcb.js} +1 -1
- package/dist/client/_nuxt/{ndropdown-l4kx50eu.js → ndropdown-bzq1eo9l.js} +1 -1
- package/dist/client/_nuxt/{nicon-title-dciaco6o.js → nicon-title-kclz18f2.js} +1 -1
- package/dist/client/_nuxt/{nlink-n14t4xmt.js → nlink-oovljifl.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown-fnnmuq60.js → nmarkdown-mnforar7.js} +1 -1
- package/dist/client/_nuxt/{nnavbar-bwuaevkz.js → nnavbar-dy6zssbb.js} +1 -1
- package/dist/client/_nuxt/none-hmdczuga.js +1 -0
- package/dist/client/_nuxt/{nsection-block-na7dtpi3.js → nsection-block-mm2ln8au.js} +1 -1
- package/dist/client/_nuxt/{nselect-o9ezbf9h.js → nselect-cvj6vn8t.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs-h2jrpp6v.js → nselect-tabs-bnxyj6c3.js} +1 -1
- package/dist/client/_nuxt/{nswitch-j5ndrsa4.js → nswitch-nii7reuz.js} +1 -1
- package/dist/client/_nuxt/{open-graph-i2tbvdoe.js → open-graph-e5ujlf0w.js} +1 -1
- package/dist/client/_nuxt/{overview-bbsxnnle.js → overview-k1lqhpdx.js} +1 -1
- package/dist/client/_nuxt/owz5kq17.js +4 -0
- package/dist/client/_nuxt/{pages-hi877nlf.js → pages-e8109ruk.js} +1 -1
- package/dist/client/_nuxt/{pages-j6q5h70o.js → pages-ja4oy9os.js} +1 -1
- package/dist/client/_nuxt/{payload-fhnthlp2.js → payload-evlvpptz.js} +1 -1
- package/dist/client/_nuxt/{pinia-h746a499.js → pinia-eb8q0lb7.js} +1 -1
- package/dist/client/_nuxt/{plugins-ozt4gxp5.js → plugins-n65vqkm5.js} +1 -1
- package/dist/client/_nuxt/{render-tree-ntf97xvm.js → render-tree-lcd73hdy.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-k0yp3zpx.js → runtime-configs-novpfnwf.js} +1 -1
- package/dist/client/_nuxt/{server-discovery-giorkvmy.js → server-discovery-e129227e.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs-jeqq7e8y.js → server-route-inputs-jyu03h3d.js} +1 -1
- package/dist/client/_nuxt/{server-routes-ebfdakke.js → server-routes-cuzpq3e6.js} +1 -1
- package/dist/client/_nuxt/{server-tasks-otdic2qc.js → server-tasks-k13zuqrk.js} +1 -1
- package/dist/client/_nuxt/{settings-cm4nn6s2.js → settings-e3yeoaaw.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list-outaanb2.js → stacktrace-list-n2oy2o29.js} +1 -1
- package/dist/client/_nuxt/{state-components-bi9epr0v.js → state-components-kbt6b53p.js} +1 -1
- package/dist/client/_nuxt/{state-editor-uoql44oq.js → state-editor-d3ywfwuf.js} +1 -1
- package/dist/client/_nuxt/{state-modules-cbgrygie.js → state-modules-g1xroclg.js} +1 -1
- package/dist/client/_nuxt/{storage-bs8swo7k.js → storage-bsevx2m8.js} +1 -1
- package/dist/client/_nuxt/{terminals-bk86ug8r.js → terminals-om2sdbvh.js} +1 -1
- package/dist/client/_nuxt/timeline-fl3dqhun.js +31 -0
- package/dist/client/_nuxt/{unocss-runtime-l6tkrfnt.js → unocss-runtime-hldtyz3c.js} +1 -1
- package/dist/client/_nuxt/vendor/{json-editor-vue-g94ysn44.js → json-editor-vue-k2rpz34q.js} +63 -63
- package/dist/client/_nuxt/vendor/{unocss-ix37k1vj.js → unocss-c4v2jnrn.js} +1 -1
- package/dist/client/_nuxt/{virtual-files-abzkda2j.js → virtual-files-irp1xg65.js} +1 -1
- package/dist/client/_nuxt/{vue-devtools-e7301kz1.js → vue-devtools-ixjb5uzw.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/package.json +5 -5
- package/dist/client/_nuxt/__blank-3fn4vtge.js +0 -1
- package/dist/client/_nuxt/assets-dqfzy0hw.js +0 -6
- package/dist/client/_nuxt/builds/meta/bfa29bcc-58d6-4376-85c9-764240642351.json +0 -1
- package/dist/client/_nuxt/custom-_name_-owx1vzws.js +0 -1
- package/dist/client/_nuxt/error-404.css-ip9v33hj.css +0 -1
- package/dist/client/_nuxt/error-500.css-hhe2fh34.css +0 -1
- package/dist/client/_nuxt/full-pn9pgtl7.js +0 -1
- package/dist/client/_nuxt/h38cvs9r.js +0 -4
- package/dist/client/_nuxt/nbadge-f7rzhjkq.js +0 -1
- package/dist/client/_nuxt/none-eri9psdj.js +0 -1
- package/dist/client/_nuxt/timeline-g2ip7lzl.js +0 -31
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{W as e,X as t,v as n}from"./vendor/json-editor-vue-g94ysn44.js";import{t as r}from"./_plugin-vue_export-helper-e0bby96w.js";var i={},a={class:`n-badge`};function o(r,i){return e(),n(`span`,a,[t(r.$slots,`default`)])}var s=Object.assign(r(i,[[`render`,o]]),{__name:`NBadge`});export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{W as e,X as t,v as n}from"./vendor/json-editor-vue-g94ysn44.js";import{t as r}from"./_plugin-vue_export-helper-e0bby96w.js";var i={},a={relative:``,"w-full":``};function o(r,i){return e(),n(`div`,a,[t(r.$slots,`default`)])}var s=r(i,[[`render`,o]]);export{s 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-g94ysn44.js";import{t as S}from"./_plugin-vue_export-helper-e0bby96w.js";import{Bt as C,Ct as w,Et as T,Jt as E,T as D,_ as O,ct as k,dt as A,f as j,k as M,nn as N,on as P,pt as ee,v as te,wt as F,zt as I}from"#entry";import{t as L}from"./ndrawer-mfwl47cs.js";import"./composables-dhks1pao.js";import{t as R}from"./nlink-n14t4xmt.js";import{t as z}from"./help-fab-oij4kl08.js";import{t as B}from"./nbadge-f7rzhjkq.js";import{t as V}from"./launch-page-bpr4mhu5.js";import{t as H}from"./color-nuuzg844.js";import{t as U}from"./stacktrace-list-outaanb2.js";import{t as W}from"./duration-display-g4enq0h7.js";import{t as G}from"./composable-item-m3m39yy8.js";import{t as K}from"./code-diff-gh0ro4cb.js";var q=Object.assign(n({__name:`TimelineItemFunction`,props:{item:{}},setup(e){let t=e,n=/_op_/,r=_(()=>H(t.item.name,50,60,`_op_`)),i=_(()=>r.value.replace(n,`1`)),a=_(()=>H(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))}}),{__name:`TimelineItemFunction`}),J={relative:``,"h-full":``},Y={absolute:``,"left-2":``,"top-2.3em":``,"text-xs":``,op50:``},X=Object.assign(n({__name:`TimelineSegment`,props:{segment:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,a=P(()=>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=q;return s(),b(`div`,J,[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`,Y,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))])])}}}),{__name:`TimelineSegment`}),Z=3e3,Q=50;function ne(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>Z||r.type===`route`)&&(n={start:r.start,end:e,events:[],functions:[],duration:0},t.push(n)),n.events.push(r),n.end=e+Q}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 re={relative:``},ie={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":``},ae=Object.assign(S(n({__name:`TimelineTable`,props:{data:{}},emits:[`select`],setup(e,{emit:n}){let a=e,l=n,p=t(),h=t(),v=t(),y=t(),S=t(!0),C=t(1.5),T=_(()=>ne(a.data.events)),E=_(()=>(a.data.events.length,p.value?.scrollWidth||window.innerWidth));function D(){y.value&&(y.value.style.width=`${E.value}px`)}function O(){S.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(),D(),O()},{flush:`post`}),N(p,`scroll`,()=>{v.value.scrollLeft!==p.value.scrollLeft&&(D(),v.value.scrollLeft=p.value.scrollLeft,S.value=p.value.scrollLeft>=p.value.scrollWidth-p.value.clientWidth)}),N(v,`scroll`,()=>{v.value.scrollLeft!==p.value.scrollLeft&&(D(),p.value.scrollLeft=v.value.scrollLeft)}),N(p,`wheel`,e=>{e.altKey?(C.value=w(C.value+e.deltaY/200,.5,3),D()):p.value.scrollLeft+=e.deltaY}),(e,t)=>{let n=W,r=X;return s(),b(d,null,[g(`div`,re,[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)/E.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(H))(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`,ie,[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)*C.value}px`}),onSelect:t[0]||=e=>l(`select`,e)},null,8,[`class`,`segment`,`style`])],64))),128))],512)],64)}}}),[[`__scopeId`,`data-v-da163089`]]),{__name:`TimelineTable`}),oe={border:`t base`,flex:`~ col`,"h-full":``,"of-y-auto":``,"text-sm":``},se=[`onClick`],ce={flex:`~`,"ml--1":``,"font-mono":``},le={key:0,mr2:``,op30:``},ue={op75:``},de={flex:`~ col items-start`},fe={"text-xs":``,"font-mono":``,op30:``},pe={"text-green":``,"font-bold":``,"font-mono":``},me=Object.assign(n({__name:`TimelineList`,props:{data:{}},emits:[`select`],setup(e,{emit:t}){let n=t;return(t,r)=>{let a=W;return s(),b(`div`,oe,[(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(H))(e.name,50,60):``})},y(e.name),5),g(`div`,ce,[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`,le,` , `)):u(``,!0),g(`div`,ue,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`,de,[g(`div`,fe,y(e.from),1),g(`div`,pe,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,se))),128)),r[5]||=g(`div`,{"min-h-100":``},null,-1)])}}}),{__name:`TimelineList`}),he={key:0,"text-blue":``},ge={key:1,"text-purple":``},_e={key:2,"text-green":``},ve={key:3,"text-gray":``},ye={key:4,"text-gray":``},be={key:5,"text-gray":``},xe={key:0,"bg-red:10":``,px2:``,py1:``,"text-red":``},Se={key:1},Ce={p2:``,"text-sm":``,border:`t base`},we=Object.assign(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=F(),C=O();return(t,n)=>{let c=M,w=l(`VMenu`);return typeof r.value==`string`?(s(),b(`div`,he,y(JSON.stringify(r.value)),1)):typeof r.value==`number`?(s(),b(`div`,ge,y(r.value),1)):typeof r.value==`boolean`?(s(),b(`div`,_e,y(r.value),1)):r.value===void 0?(s(),b(`div`,ve,` undefined `)):typeof r.value==`function`?(s(),b(`div`,ye,` [Function`+y(r.value.name?`: ${r.value.name}`:``)+`] `,1)):r.value===null?(s(),b(`div`,be,` null `)):(s(),h(w,{key:6,placement:`top`},{popper:p(()=>[x(i(_),{onSetup:m}),f.value?(s(),b(`div`,xe,` Failed to display object: `+y(f.value),1)):d.value?(s(),b(`div`,Se,[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`,Ce,[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}))}}}),{__name:`TimelineArgumentView`}),Te={key:0,"p-4":``,flex:`~ col gap-2`,"text-base":``},Ee={"mx--1":``},De={flex:`~ gap-1`,"font-mono":``},Oe={key:1},ke={key:0,op30:``},Ae={flex:`~ gap-1`,"text-sm":``},je={class:`text-sm text-gray-400`},Me=Object.assign(n({__name:`TimelineDetailsFunction`,props:{record:{}},setup(e){let t=e,n=P(()=>t.record.start,{showSecond:!0}),r=k(),a=_(()=>r.value?.metadata),o=_(()=>r.value?.imports.find(e=>e.as===t.record.name));return(t,r)=>{let l=B,f=G,p=we,m=W,_=U;return e.record?(s(),b(`div`,Te,[g(`div`,Ee,[x(l,{n:`yellow`,textContent:`Function call`})]),g(`div`,De,[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`,Oe,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`,ke,`, `)):u(``,!0),x(p,{value:e},null,8,[`value`])],64))),128)),r[1]||=g(`span`,{op30:``},`)`,-1)]),g(`div`,Ae,[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`,je,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)}}}),{__name:`TimelineDetailsFunction`}),Ne={key:0,"p-4":``,flex:`~ col gap-2`},Pe={"mx--1":``},Fe={flex:`~ gap-1 items-center`,"font-mono":``},Ie={op50:``},Le={flex:`~ gap-1`,"text-sm":``},Re={class:`text-sm text-gray-400`},ze=Object.assign(n({__name:`TimelineDetailsRoute`,props:{record:{}},setup(e){let t=e,n=P(()=>t.record.start,{showSecond:!0});return(t,r)=>{let a=B,o=W;return e.record?(s(),b(`div`,Ne,[g(`div`,Pe,[x(a,{n:`green`,textContent:`Route Change`})]),g(`div`,Fe,[g(`span`,Ie,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`,Le,[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`,Re,y(i(n)),1)])])):u(``,!0)}}}),{__name:`TimelineDetailsRoute`}),Be={key:0,"h-screen":``,"of-hidden":``},Ve={"h-screen":``,"w-full":``,flex:``,"flex-col":``},$={"h-10":``,flex:`~ gap-2 items-center justify-end`,p2:``,px3:``},He={"text-sm":``},Ue={"min-h-50":``,px3:``,py2:``},We=Object.assign(n({__name:`TimelineView`,setup(n){let r=T(),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=M,_=ae,v=me,S=Me,C=ze,w=L;return c.value?(s(),b(`div`,Be,[g(`div`,Ve,[g(`div`,$,[x(r,{flex:``},{popper:p(()=>[g(`div`,He,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`,Ue,[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)}}}),{__name:`TimelineView`}),Ge={},Ke={class:`markdown-body`};function qe(t,n){return s(),b(`div`,Ke,[...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`}},` 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(`
|
|
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`}},` 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(`
|
|
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`}},` 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(`
|
|
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 Je=S(Ge,[[`render`,qe]]),Ye={flex:`~ col gap-2`,"w-150":``,p4:``,border:`t base`},Xe={op50:``},Ze={flex:`~ gap-3`,mt2:``,"justify-end":``},Qe=n({__name:`timeline`,setup(t){let n=A(),r=ee(),a=E(),o=te();async function c(){try{let[e,t]=await C.enableTimeline(!0);if(!await a.start(e,t))return;await C.enableTimeline(!1)}catch{I({message:`Failed to enable timeline automatically. Check the terminal for more details.`,icon:`i-carbon-warning`,classes:`text-red`})}}return(t,l)=>{let u=We,f=V,m=j,_=R,v=K,y=M,S=D,C=Je,w=z;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`,Ye,[l[5]||=g(`h2`,{"text-xl":``},[g(`span`,{capitalize:``},`Enable Timeline?`)],-1),g(`p`,Xe,[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`,Ze,[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{Qe as default};
|