@nuxt/devtools-nightly 2.3.2-29076815.a873199 → 2.3.2-29076820.0e07e8e

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.
Files changed (109) hide show
  1. package/dist/chunks/module-main.mjs +4 -2
  2. package/dist/client/200.html +22 -22
  3. package/dist/client/404.html +22 -22
  4. package/dist/client/_nuxt/__blank-catci4by.js +1 -0
  5. package/dist/client/_nuxt/{analyze-build-eh88jp9h.js → analyze-build-h9xds81i.js} +1 -1
  6. package/dist/client/_nuxt/{assets-gmtng6l6.js → assets-os5dfcnm.js} +3 -3
  7. package/dist/client/_nuxt/builds/latest.json +1 -1
  8. package/dist/client/_nuxt/builds/meta/ab95b1cd-481d-4fee-8338-7bec4daa666c.json +1 -0
  9. package/dist/client/_nuxt/{client-bqg1k5yt.js → client-jvnhv8ra.js} +1 -1
  10. package/dist/client/_nuxt/{code-diff.vue-buhgkcn1.js → code-diff.vue-fherii9f.js} +2 -2
  11. package/dist/client/_nuxt/{code-snippets.vue-c2qehp6m.js → code-snippets.vue-f64up3zn.js} +1 -1
  12. package/dist/client/_nuxt/{components-fuyz0qkj.js → components-hdp0aj28.js} +1 -1
  13. package/dist/client/_nuxt/composable-item.vue-ixq17xe9.js +1 -0
  14. package/dist/client/_nuxt/custom-_name_-jg1vaxcu.js +1 -0
  15. package/dist/client/_nuxt/{data-schema-button.vue-fwxrv7x1.js → data-schema-button.vue-d4rq7jrd.js} +1 -1
  16. package/dist/client/_nuxt/data-schema-drawer-fbeuhfe4.js +2 -0
  17. package/dist/client/_nuxt/{debug-ec2y7308.js → debug-evm0b3kz.js} +1 -1
  18. package/dist/client/_nuxt/{default-kkw32tz5.js → default-ku621t35.js} +1 -1
  19. package/dist/client/_nuxt/duration-display.vue-hy8s2ai6.js +1 -0
  20. package/dist/client/_nuxt/error-404-b4epchlj.js +1 -0
  21. package/dist/client/_nuxt/error-404.css-itl1ee4a.css +1 -0
  22. package/dist/client/_nuxt/error-500-izubbev3.js +1 -0
  23. package/dist/client/_nuxt/error-500.css-biq96mi6.css +1 -0
  24. package/dist/client/_nuxt/{error-dhl74i8e.js → error-b488dwjj.js} +3 -3
  25. package/dist/client/_nuxt/{filepath-item.vue-dhjvbmak.js → filepath-item.vue-kqostyo6.js} +1 -1
  26. package/dist/client/_nuxt/full-kd96zsa7.js +1 -0
  27. package/dist/client/_nuxt/hdb1kn1k.js +15 -0
  28. package/dist/client/_nuxt/{help-fab.vue-k9dgnqs9.js → help-fab.vue-bhaef1jy.js} +1 -1
  29. package/dist/client/_nuxt/hooks-d6mzrxq9.js +1 -0
  30. package/dist/client/_nuxt/{imports-lldeqgdh.js → imports-ny7bp8qt.js} +1 -1
  31. package/dist/client/_nuxt/{index-ecvh63d2.js → index-i8dh2odd.js} +1 -1
  32. package/dist/client/_nuxt/{launch-page.vue-ly8wg6qx.js → launch-page.vue-cw89bsgi.js} +1 -1
  33. package/dist/client/_nuxt/{modules-pcqjpjes.js → modules-nfm95y0u.js} +1 -1
  34. package/dist/client/_nuxt/nbadge-fsr3pimg.js +1 -0
  35. package/dist/client/_nuxt/ncheckbox.vue-bobndnzw.js +1 -0
  36. package/dist/client/_nuxt/{ncode-block.vue-h2q9yyre.js → ncode-block.vue-8qivpy1q.js} +1 -1
  37. package/dist/client/_nuxt/{ndrawer.vue-hy3weod1.js → ndrawer.vue-mnpu4gig.js} +1 -1
  38. package/dist/client/_nuxt/{ndropdown.vue-f9irja81.js → ndropdown.vue-h3ztziwi.js} +1 -1
  39. package/dist/client/_nuxt/{nicon-title.vue-oyhtd7jm.js → nicon-title.vue-m2ftlsrz.js} +1 -1
  40. package/dist/client/_nuxt/{nlink.vue-kw0dg8qe.js → nlink.vue-ihepkhj1.js} +1 -1
  41. package/dist/client/_nuxt/nmarkdown.vue-hrdikzmp.js +1 -0
  42. package/dist/client/_nuxt/nnavbar.vue-fi4alifs.js +1 -0
  43. package/dist/client/_nuxt/none-l0vzfy1z.js +1 -0
  44. package/dist/client/_nuxt/{nsection-block-o6e0gew7.js → nsection-block-o6jekcxg.js} +1 -1
  45. package/dist/client/_nuxt/nselect-tabs.vue-o79yqqvi.js +1 -0
  46. package/dist/client/_nuxt/{nselect.vue-bm3fwbn0.js → nselect.vue-o8zp31tf.js} +1 -1
  47. package/dist/client/_nuxt/{nswitch.vue-fl7pkx4a.js → nswitch.vue-n63sh5rf.js} +1 -1
  48. package/dist/client/_nuxt/{open-graph-j9sonkua.js → open-graph-e3fbaof6.js} +2 -2
  49. package/dist/client/_nuxt/{overview-chwsshtk.js → overview-dzenqwy0.js} +1 -1
  50. package/dist/client/_nuxt/{pages-ls34ar7k.js → pages-lut50znk.js} +1 -1
  51. package/dist/client/_nuxt/{payload-ihymrlnc.js → payload-flzauk8e.js} +1 -1
  52. package/dist/client/_nuxt/pinia-h3vag0kc.js +1 -0
  53. package/dist/client/_nuxt/plugins-y6tt75kj.js +1 -0
  54. package/dist/client/_nuxt/render-tree-b5xwh05s.js +1 -0
  55. package/dist/client/_nuxt/{runtime-configs-gq802ays.js → runtime-configs-hob1ne1n.js} +1 -1
  56. package/dist/client/_nuxt/{server-discovery-iggf5q8n.js → server-discovery-ke0snlcv.js} +1 -1
  57. package/dist/client/_nuxt/{server-route-inputs.vue-nb9ikq9z.js → server-route-inputs.vue-ngkl7l9h.js} +1 -1
  58. package/dist/client/_nuxt/server-routes-lw8jxv7f.js +9 -0
  59. package/dist/client/_nuxt/server-tasks-ob8xajwv.js +1 -0
  60. package/dist/client/_nuxt/{settings-k79ppszq.js → settings-i1ijxaqh.js} +1 -1
  61. package/dist/client/_nuxt/stacktrace-list.vue-ggrtrtrd.js +1 -0
  62. package/dist/client/_nuxt/{state-components-ih9flzyx.js → state-components-bflrz0cb.js} +1 -1
  63. package/dist/client/_nuxt/{state-editor.vue-em7fq5xs.js → state-editor.vue-pe395jz0.js} +1 -1
  64. package/dist/client/_nuxt/{state-modules-i1nv7evk.js → state-modules-jcbkj1f2.js} +1 -1
  65. package/dist/client/_nuxt/{storage-k0ubqadg.js → storage-j4flhzw6.js} +1 -1
  66. package/dist/client/_nuxt/terminals-oserr5og.js +1 -0
  67. package/dist/client/_nuxt/timeline-jh5jljqq.js +31 -0
  68. package/dist/client/_nuxt/{unocss-runtime-bag0aauk.js → unocss-runtime-kct8zzpi.js} +1 -1
  69. package/dist/client/_nuxt/vendor/json-editor-vue-exjsfanq.js +3872 -0
  70. package/dist/client/_nuxt/vendor/{quicktype-core-klbd9u2j.js → quicktype-core-d6crrn92.js} +1 -1
  71. package/dist/client/_nuxt/vendor/{shiki-jv02kgzv.js → shiki-hjrnbayr.js} +14 -14
  72. package/dist/client/_nuxt/vendor/unocss-n30bmhn8.js +2 -0
  73. package/dist/client/_nuxt/virtual-files-k04mw4u6.js +1 -0
  74. package/dist/client/_nuxt/vue-devtools-jt2hmg20.js +2 -0
  75. package/dist/client/_nuxt/{vue-virtual-scroller.esm-bjuzk3oj.js → vue-virtual-scroller.esm-iodr444e.js} +2 -2
  76. package/dist/client/index.html +22 -22
  77. package/dist/module.json +1 -1
  78. package/package.json +19 -19
  79. package/dist/client/_nuxt/__blank-mlfs714t.js +0 -1
  80. package/dist/client/_nuxt/builds/meta/cb7853f0-97e3-4461-9500-3410fbff9c5c.json +0 -1
  81. package/dist/client/_nuxt/composable-item.vue-b6mzxoba.js +0 -1
  82. package/dist/client/_nuxt/custom-_name_-nfwyawwv.js +0 -1
  83. package/dist/client/_nuxt/data-schema-drawer-ohh76w1v.js +0 -2
  84. package/dist/client/_nuxt/duration-display.vue-lb5nc1xj.js +0 -1
  85. package/dist/client/_nuxt/error-404-jms6b2op.js +0 -1
  86. package/dist/client/_nuxt/error-404.css-lr4x8rvs.css +0 -1
  87. package/dist/client/_nuxt/error-500-ky27dyto.js +0 -1
  88. package/dist/client/_nuxt/error-500.css-k7guqst3.css +0 -1
  89. package/dist/client/_nuxt/full-wym03uuz.js +0 -1
  90. package/dist/client/_nuxt/hooks-fr4s6rkf.js +0 -1
  91. package/dist/client/_nuxt/nbadge-o5kc9sv8.js +0 -1
  92. package/dist/client/_nuxt/ncheckbox.vue-kwe3k58j.js +0 -1
  93. package/dist/client/_nuxt/nmarkdown.vue-io3ubke7.js +0 -1
  94. package/dist/client/_nuxt/nnavbar.vue-cuxn5zlw.js +0 -1
  95. package/dist/client/_nuxt/none-fj4hb5hg.js +0 -1
  96. package/dist/client/_nuxt/nselect-tabs.vue-nszv941o.js +0 -1
  97. package/dist/client/_nuxt/ocdy9hhm.js +0 -15
  98. package/dist/client/_nuxt/pinia-noimss7s.js +0 -1
  99. package/dist/client/_nuxt/plugins-o8kqyy5x.js +0 -1
  100. package/dist/client/_nuxt/render-tree-dg1igwyx.js +0 -1
  101. package/dist/client/_nuxt/server-routes-kq0mbsko.js +0 -9
  102. package/dist/client/_nuxt/server-tasks-fyfiwcfc.js +0 -1
  103. package/dist/client/_nuxt/stacktrace-list.vue-dgji7gu0.js +0 -1
  104. package/dist/client/_nuxt/terminals-38i35l3o.js +0 -1
  105. package/dist/client/_nuxt/timeline-fg5ui3xs.js +0 -31
  106. package/dist/client/_nuxt/vendor/json-editor-vue-huf8dypo.js +0 -3846
  107. package/dist/client/_nuxt/vendor/unocss-e7oqigho.js +0 -2
  108. package/dist/client/_nuxt/virtual-files-moo8mlys.js +0 -1
  109. package/dist/client/_nuxt/vue-devtools-c8myfb0e.js +0 -2
@@ -0,0 +1 @@
1
+ import{a5 as E,H as B,r as f,E as p,_ as $,ap as V,Z as F,I,aa as P}from"./hdb1kn1k.js";import{x as R,a as D}from"./vendor/xterm-dbpzgj7s.js";import{p as y,k as g,E as M,P as d,a1 as t,F as A,Q as c,a3 as N,S as m,R as v,a8 as _,q as j,w as q,u as w,ae as z,a9 as C,X as h,aj as L,a2 as S}from"./vendor/json-editor-vue-exjsfanq.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";const H={border:"t base",flex:"~ gap-2","items-center":"",p2:""},Q={"text-sm":"",op50:""},X=y({__name:"TerminalView",props:{id:{}},setup(b){const n=b,r=g(),i=E(),o=g();let a;M(async()=>{a=new R.Terminal({convertEol:!0,cols:80,screenReaderMode:!0});const u=new D.FitAddon;a.loadAddon(u),a.open(r.value),u.fit(),B(window,"resize",()=>{u.fit()}),o.value=await f.getTerminalDetail(await p(),n.id),o.value?.buffer&&a.write(o.value.buffer),i.hook("devtools:terminal:data",({id:e,data:l})=>{e===n.id&&a.write(l)})});async function s(){f.runTerminalAction(await p(),n.id,"clear"),a?.clear()}async function k(){f.runTerminalAction(await p(),n.id,"restart")}async function x(){f.runTerminalAction(await p(),n.id,"terminate")}return(u,e)=>{const l=$;return t(),d(A,null,[c("div",{ref_key:"container",ref:r,"h-full":"","w-full":"","of-auto":"","bg-black":""},null,512),c("div",H,[N(l,{title:"Clear",icon:"i-carbon-clean",border:!1,onClick:e[0]||(e[0]=T=>s())}),o.value?.restartable?(t(),m(l,{key:0,title:"Restart",icon:"carbon-renew",border:!1,onClick:e[1]||(e[1]=T=>k())})):v("",!0),o.value?.terminatable?(t(),m(l,{key:1,title:"Terminate",icon:"carbon-delete",border:!1,onClick:e[2]||(e[2]=T=>x())})):v("",!0),c("span",Q,_(o.value?.description),1)])],64)}}}),Z={key:0,"h-full":"","w-full":"","of-hidden":"",grid:"~ rows-[max-content_1fr_max-content]"},G={flex:"~",border:"b base","flex-1":"","items-center":"","n-navbar-glass":""},J=["onClick"],K={key:1,p10:""},O={key:1,"h-full":"",flex:"","items-center":"","justify-center":""},U=y({__name:"TerminalPage",setup(b){const n=V(),r=F(),i=j(()=>n.value?.find(a=>a.id===r.value));async function o(a){f.runTerminalAction(await p(),a,"remove")}return q(()=>{!r.value&&n.value?.length&&(r.value=n.value[0].id)}),(a,s)=>{const k=I,x=$,u=X;return w(n)?.length?(t(),d("div",Z,[c("div",G,[(t(!0),d(A,null,z(w(n),e=>(t(),d("button",{key:e.id,border:"r base",flex:"~ gap-2","items-center":"",px3:"",py2:"",class:h(e.id===i.value?.id?"bg-active":""),onClick:l=>r.value=e.id},[e.icon?(t(),m(k,{key:0,icon:e.icon},null,8,["icon"])):v("",!0),c("span",{class:h(e.id===i.value?.id?"":"op50")},_(e.name)+_(e.isTerminated?" (terminated)":""),3),e.isTerminated?(t(),m(x,{key:1,icon:"carbon-close","mx--2":"",border:!1,onClick:L(l=>o(e.id),["stop"])},null,8,["onClick"])):v("",!0)],10,J))),128))]),i.value?(t(),m(u,{id:i.value.id,key:i.value.id},null,8,["id"])):(t(),d("div",K,[s[0]||(s[0]=C(" Terminal ")),c("code",null,_(w(r)),1),s[1]||(s[1]=C(" not found "))]))])):(t(),d("div",O,s[2]||(s[2]=[c("em",{op50:""},"No terminal attached",-1)])))}}}),ae=y({__name:"terminals",setup(b){return(n,r)=>{const i=U,o=P;return t(),m(o,null,{default:S(()=>[N(i)]),_:1})}}});export{ae as default};
@@ -0,0 +1,31 @@
1
+ import{P as j,H,am as Y,b as q,a4 as Q,a as U,_ as z,V as X,f as K,an as Z,A as ee,aj as se,w as ne,i as oe,Q as te,r as R,J as ae}from"./hdb1kn1k.js";import{_ as W}from"./duration-display.vue-hy8s2ai6.js";import{g as M}from"./color-mt9xuhgy.js";import{p as B,q as w,P as i,a1 as t,V as T,Q as o,a8 as m,u as g,F as f,ae as E,S as v,k as C,x as le,z as re,R as x,a3 as u,X as O,Y as P,a2 as h,at as ie,a4 as pe,a9 as F,ak as ce}from"./vendor/json-editor-vue-exjsfanq.js";import{_ as G}from"./nbadge-fsr3pimg.js";import{_ as de}from"./composable-item.vue-ixq17xe9.js";import{_ as ue}from"./stacktrace-list.vue-ggrtrtrd.js";import{_ as me}from"./ndrawer.vue-mnpu4gig.js";import{_ as ke}from"./launch-page.vue-cw89bsgi.js";import{_ as ye}from"./nlink.vue-ihepkhj1.js";import{_ as fe}from"./code-diff.vue-fherii9f.js";import{_ as ve}from"./help-fab.vue-bhaef1jy.js";import"./vendor/unocss-n30bmhn8.js";import"./vendor/shiki-hjrnbayr.js";import"./nmarkdown.vue-hrdikzmp.js";import"./client-jvnhv8ra.js";import"./filepath-item.vue-kqostyo6.js";import"./index-jc4yj4to.js";import"./constants-b32h69zq.js";import"./ncode-block.vue-8qivpy1q.js";const he=B({__name:"TimelineItemFunction",props:{item:{}},setup(y){const d=y,p=w(()=>M(d.item.name,50,60,"_op_")),n=w(()=>p.value.replace(/_op_/,"1")),e=w(()=>M(d.item.name,50,40)),l=w(()=>p.value.replace(/_op_/,"0.2"));return(a,r)=>(t(),i("button",{class:"group",style:T({color:n.value,borderLeft:`2px solid ${n.value}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[o("div",{style:T({backgroundColor:l.value}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),o("div",{style:T({color:e.value,"--c":n.value}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},m(a.item.name),5)],4))}}),_e={relative:"","h-full":""},be={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},ge=B({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(y,{emit:d}){const p=y,n=d,e=j(()=>p.segment.start,{updateInterval:1e3,showSecond:!0,controls:!1,messages:{justNow:"",past:l=>l,future:l=>l,invalid:"-",second:l=>l?`${l}s`:"",minute:l=>`${l}m`,hour:l=>`${l}h`,week:l=>`${l}w`,day:l=>`${l}d`,month:l=>`${l}mo`,year:l=>`${l}y`}});return(l,a)=>{const r=he;return t(),i("div",_e,[o("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","text-green6":"","font-mono":"",onClick:a[0]||(a[0]=s=>l.segment.route?n("select",l.segment.route):void 0)},m(l.segment.route?.event.to),1),o("div",be,m(g(e))+" ago ",1),o("div",null,[(t(!0),i(f,null,E(l.segment.functions,(s,c)=>(t(),v(r,{key:c,item:s.event,style:T({position:"absolute",minWidth:`${s.relativeWidth*100}%`,maxWidth:`${s.relativeWidth*100}%`,top:`${4+s.layer*1.6}em`,left:`${s.relativeStart*100}%`}),onClick:k=>n("select",s)},null,8,["item","style","onClick"]))),128))])])}}}),xe=3e3,De=50;function Ae(y){const d=[];let p={start:0,end:0,events:[],functions:[],duration:0};for(const n of y){const e=n.end||n.start;(n.start-p.end>xe||n.type==="route")&&(p={start:n.start,end:e,events:[],functions:[],duration:0},d.push(p)),p.events.push(n),p.end=e+De}return d.forEach((n,e)=>{const l=n.end-n.start,a=[];n.duration=l,n.previousGap=e>0?n.start-d[e-1].end:0,n.events.forEach(r=>{const s=r.end||r.start;let c=0;r.type!=="route"&&(c=a.findIndex(D=>D<=r.start),c===-1?(c=a.length,a.push(s+1e3)):a[c]=s+1e3);const k={event:r,segment:n,relativeStart:(r.start-n.start)/l,relativeWidth:(s-r.start)/l,layer:c};r.type==="function"?n.functions.push(k):n.route=k})}),d}const $e={relative:""},Ce={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":""},Be=B({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(y,{emit:d}){const p=y,n=d,e=C(),l=C(),a=C(),r=C(),s=C(!0),c=C(1.5),k=w(()=>Ae(p.data.events)),D=w(()=>(p.data.events.length,e.value?.scrollWidth||window.innerWidth));function A(){r.value&&(r.value.style.width=`${D.value}px`)}function S(){s.value&&e.value&&(e.value.scrollTo({left:e.value.scrollWidth-e.value.clientWidth,behavior:"smooth"}),a.value.scrollTo({left:e.value.scrollWidth-e.value.clientWidth,behavior:"smooth"}))}return le(()=>p.data.events.length,async()=>{await re(),A(),S()},{flush:"post"}),H(e,"scroll",()=>{a.value.scrollLeft!==e.value.scrollLeft&&(A(),a.value.scrollLeft=e.value.scrollLeft,s.value=e.value.scrollLeft>=e.value.scrollWidth-e.value.clientWidth)}),H(a,"scroll",()=>{a.value.scrollLeft!==e.value.scrollLeft&&(A(),e.value.scrollLeft=a.value.scrollLeft)}),H(e,"wheel",_=>{_.altKey?(c.value=Y(c.value+_.deltaY/200,.5,3),A()):e.value.scrollLeft+=_.deltaY}),(_,L)=>{const $=W,V=ge;return t(),i(f,null,[o("div",$e,[o("div",{ref_key:"minimap",ref:l,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(t(!0),i(f,null,E(k.value,(b,N)=>(t(),i("div",{key:N,relative:"","h-full":"","flex-inline":"",style:T({width:`${Math.max(100,b.duration/10)/D.value*100}%`})},[(t(!0),i(f,null,E(b.functions,(I,J)=>(t(),i("div",{key:J,"h-3px":"",rounded:"",style:T({width:`max(${I.relativeWidth*100}%, 10px)`,position:"absolute",top:`${I.layer*4}px`,left:`${I.relativeStart*100}%`,backgroundColor:("getHslColorFromStringHash"in _?_.getHslColorFromStringHash:g(M))(I.event.name,50,60)})},null,4))),128)),b.route?(t(),i("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:T({left:`${b.route.relativeStart*100}%`})},null,4)):x("",!0)],4))),128))],512),o("div",{ref_key:"minimapScroller",ref:a,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[o("div",{ref_key:"minimapScrollerInner",ref:r,"h-1px":""},null,512)],512)]),o("div",{ref_key:"scroller",ref:e,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(t(!0),i(f,null,E(k.value,(b,N)=>(t(),i(f,{key:N},[b.previousGap&&b.previousGap>=200?(t(),i("div",Ce,[u($,{op50:"",duration:b.previousGap,color:!1},null,8,["duration"])])):x("",!0),u(V,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:O(N===k.value.length-1?"border-r border-base":""),segment:b,style:T({width:`${Math.max(50,b.duration/10)*c.value}px`}),onSelect:L[0]||(L[0]=I=>n("select",I))},null,8,["class","segment","style"])],64))),128))],512)],64)}}}),we=q(Be,[["__scopeId","data-v-a2053141"]]),Te={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Se=["onClick"],Ne={flex:"~","ml--1":"","font-mono":""},Fe={key:0,mr2:"",op30:""},Ee={op75:""},Le={flex:"~ col items-start"},Ie={"text-xs":"","font-mono":"",op30:""},Ve={"text-green":"","font-bold":"","font-mono":""},Me=B({__name:"TimelineList",props:{data:{}},emits:["select"],setup(y,{emit:d}){const p=d;return(n,e)=>{const l=W;return t(),i("div",Te,[(t(!0),i(f,null,E(n.data.events,(a,r)=>(t(),i("button",{key:r,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:s=>p("select",a)},[a.type==="function"?(t(),i(f,{key:0},[e[2]||(e[2]=o("div",{"i-carbon-function":"",op50:""},null,-1)),o("div",{"font-mono":"",style:T({color:a.type==="function"?("getHslColorFromStringHash"in n?n.getHslColorFromStringHash:g(M))(a.name,50,60):""})},m(a.name),5),o("div",Ne,[e[0]||(e[0]=o("div",{op30:""}," ( ",-1)),(t(!0),i(f,null,E(a.args,(s,c)=>(t(),i(f,{key:c},[c?(t(),i("div",Fe," , ")):x("",!0),o("div",Ee,m(s===null?"null":s===void 0?"undefined":typeof s=="function"?"[function]":Array.isArray(s)?"[Array]":typeof s=="object"?"[object]":JSON.stringify(s)),1)],64))),128)),e[1]||(e[1]=o("div",{op30:""}," ) ",-1))])],64)):(t(),i(f,{key:1},[e[3]||(e[3]=o("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[o("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1)),o("div",Le,[o("div",Ie,m(a.from),1),o("div",Ve,m(a.to),1)])],64)),e[4]||(e[4]=o("div",{"flex-auto":""},null,-1)),a.end?(t(),v(l,{key:2,duration:a.end-a.start,color:a.type==="function"},null,8,["duration","color"])):x("",!0)],8,Se))),128)),e[5]||(e[5]=o("div",{"min-h-100":""},null,-1))])}}}),We={key:0,"text-blue":""},He={key:1,"text-purple":""},je={key:2,"text-green":""},ze={key:3,"text-gray":""},Oe={key:4,"text-gray":""},Re={key:5,"text-gray":""},Pe={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Ge={key:1},Je={p2:"","text-sm":"",border:"t base"},Ye=B({__name:"TimelineArgumentView",props:{value:{}},setup(y){const d=y,p=C(),n=C();function e(){try{p.value=JSON.parse(JSON.stringify(d.value))}catch(s){console.error(s),n.value=s}}const l=B({emits:["setup"],setup(s,{emit:c}){return c("setup"),()=>null}}),a=Q(),r=U();return(s,c)=>{const k=z,D=P("VMenu");return typeof s.value=="string"?(t(),i("div",We,m(JSON.stringify(s.value)),1)):typeof s.value=="number"?(t(),i("div",He,m(s.value),1)):typeof s.value=="boolean"?(t(),i("div",je,m(s.value),1)):typeof s.value>"u"?(t(),i("div",ze," undefined ")):typeof s.value=="function"?(t(),i("div",Oe," [Function"+m(s.value.name?`: ${s.value.name}`:"")+"] ",1)):s.value===null?(t(),i("div",Re," null ")):(t(),v(D,{key:6,placement:"top"},{popper:h(()=>[u(g(l),{onSetup:e}),n.value?(t(),i("div",Pe," Failed to display object: "+m(n.value),1)):p.value?(t(),i("div",Ge,[u(g(ie),pe({"model-value":p.value},s.$attrs,{class:["json-editor-vue",[g(a)==="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"]),o("div",Je,[u(k,{title:"Copy to clipboard",icon:"carbon-copy",onClick:c[0]||(c[0]=A=>g(r)(JSON.stringify(p.value,null,2),"timeline-argument"))},{default:h(()=>c[1]||(c[1]=[F(" Copy ")])),_:1})])])):x("",!0)]),default:h(()=>[o("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:O([Array.isArray(s.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},m(Array.isArray(s.value)?`[Array(${s.value.length})]`:"[Object]"),3)]),_:1}))}}}),qe={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},Qe={"mx--1":""},Ue={flex:"~ gap-1","font-mono":""},Xe={key:1},Ke={key:0,op30:""},Ze={flex:"~ gap-1","text-sm":""},es={class:"text-sm text-gray-400"},ss=B({__name:"TimelineDetailsFunction",props:{record:{}},setup(y){const d=y,p=j(()=>d.record.start,{showSecond:!0}),n=X(),e=w(()=>n.value?.metadata),l=w(()=>n.value?.imports.find(a=>a.as===d.record.name));return(a,r)=>{const s=G,c=de,k=Ye,D=W,A=ue;return a.record?(t(),i("div",qe,[o("div",Qe,[u(s,{n:"yellow",textContent:"Function call"})]),o("div",Ue,[l.value?(t(),v(c,{key:0,item:l.value,metadata:e.value,counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(t(),i("span",Xe,m(a.record.name),1)),r[0]||(r[0]=o("span",{ml1:"",op30:""},"(",-1)),(t(!0),i(f,null,E(a.record.args,(S,_)=>(t(),i(f,{key:_},[_?(t(),i("span",Ke,", ")):x("",!0),u(k,{value:S},null,8,["value"])],64))),128)),r[1]||(r[1]=o("span",{op30:""},")",-1))]),o("div",Ze,[a.record.end?(t(),v(D,{key:0,duration:a.record.end-a.record.start},null,8,["duration"])):x("",!0),r[2]||(r[2]=o("span",{mx1:"",op50:""},"·",-1)),o("div",es,m(g(p)),1)]),a.record.stacktrace?(t(),v(A,{key:0,stacktrace:a.record.stacktrace,class:"text-xs text-gray-400"},null,8,["stacktrace"])):x("",!0)])):x("",!0)}}}),ns={key:0,"p-4":"",flex:"~ col gap-2"},os={"mx--1":""},ts={flex:"~ gap-1 items-center","font-mono":""},as={op50:""},ls={flex:"~ gap-1","text-sm":""},rs={class:"text-sm text-gray-400"},is=B({__name:"TimelineDetailsRoute",props:{record:{}},setup(y){const d=y,p=j(()=>d.record.start,{showSecond:!0});return(n,e)=>{const l=G,a=W;return n.record?(t(),i("div",ns,[o("div",os,[u(l,{n:"green",textContent:"Route Change"})]),o("div",ts,[o("span",as,m(n.record.from),1),e[0]||(e[0]=o("span",{"i-carbon-arrow-right":"",op50:""},null,-1)),o("span",null,m(n.record.to),1)]),o("div",ls,[n.record.end?(t(),v(a,{key:0,duration:n.record.end-n.record.start},null,8,["duration"])):x("",!0),e[1]||(e[1]=o("span",{mx1:"",op50:""},"·",-1)),o("div",rs,m(g(p)),1)])])):x("",!0)}}}),ps={key:0,"h-screen":"","of-hidden":""},cs={"h-screen":"","w-full":"",flex:"","flex-col":""},ds={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},us={"text-sm":""},ms={"min-h-50":"",px3:"",py2:""},ks=B({__name:"TimelineView",setup(y){const d=K(),p=C("table"),n=C(),e=w(()=>d.value?.metrics.clientTimeline());function l(){e.value&&(e.value.events=[])}function a(){p.value=p.value==="table"?"list":"table"}return(r,s)=>{const c=P("VTooltip"),k=z,D=we,A=Me,S=ss,_=is,L=me;return e.value?(t(),i("div",ps,[o("div",cs,[o("div",ds,[u(c,{flex:""},{popper:h(()=>[o("div",us,m(e.value.options.enabled?"Recording...":"Paused"),1)]),default:h(()=>[o("div",{"text-lg":"",class:O(e.value.options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),e.value.options.enabled?(t(),v(k,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:s[1]||(s[1]=$=>e.value.options.enabled=!1)},{default:h(()=>s[6]||(s[6]=[F(" Stop Tracking ")])),_:1})):(t(),v(k,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:s[0]||(s[0]=$=>e.value.options.enabled=!0)},{default:h(()=>s[5]||(s[5]=[F(" Start Tracking ")])),_:1})),s[7]||(s[7]=o("div",{"flex-auto":""},null,-1)),u(k,{icon:p.value==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",border:!1,onClick:a},null,8,["icon"]),u(k,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",border:!1,onClick:l})]),p.value==="table"?(t(),v(D,{key:0,data:{...e.value},onSelect:s[2]||(s[2]=$=>n.value=$.event)},null,8,["data"])):(t(),v(A,{key:1,data:{...e.value},onSelect:s[3]||(s[3]=$=>n.value=$)},null,8,["data"]))]),u(L,{"model-value":!!n.value,"auto-close":"",transition:"bottom",left:"#nuxt-devtools-side-nav",onClose:s[4]||(s[4]=$=>n.value=void 0)},{default:h(()=>[o("div",ms,[n.value?.type==="function"?(t(),v(S,{key:0,record:n.value},null,8,["record"])):n.value?.type==="route"?(t(),v(_,{key:1,record:n.value},null,8,["record"])):x("",!0)])]),_:1},8,["model-value"])])):x("",!0)}}}),ys={class:"markdown-body"},fs={__name:"timeline",setup(y,{expose:d}){return d({frontmatter:{}}),(n,e)=>(t(),i("div",ys,e[0]||(e[0]=[o("h1",null,"Timeline",-1),o("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ",-1),ce(`<p>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.</p><h2>Function calls</h2><p>Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through <code>import {} from &#39;#imports&#39;</code>.</p><pre class="shiki shiki-themes vitesse-light vitesse-dark" style="background-color:#ffffff;--shiki-dark-bg:#121212;color:#393a34;--shiki-dark:#dbd7caee;" tabindex="0"><code><span class="line"><span style="color:#999999;--shiki-dark:#666666;">&lt;</span><span style="color:#1E754F;--shiki-dark:#4D9375;">script</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> setup</span><span style="color:#999999;--shiki-dark:#666666;">&gt;</span></span>
2
+ <span class="line"><span style="color:#1E754F;--shiki-dark:#4D9375;">import</span><span style="color:#999999;--shiki-dark:#666666;"> {</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> useRoute</span><span style="color:#999999;--shiki-dark:#666666;"> }</span><span style="color:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="color:#B56959;--shiki-dark:#C98A7D;">#app/composables/router</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span></span>
3
+ <span class="line"><span style="color:#1E754F;--shiki-dark:#4D9375;">import</span><span style="color:#999999;--shiki-dark:#666666;"> {</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> useNuxtApp</span><span style="color:#999999;--shiki-dark:#666666;"> }</span><span style="color:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="color:#B56959;--shiki-dark:#C98A7D;">#imports</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span></span>
4
+ <span class="line"><span style="color:#1E754F;--shiki-dark:#4D9375;">import</span><span style="color:#999999;--shiki-dark:#666666;"> {</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> useMouse</span><span style="color:#999999;--shiki-dark:#666666;"> }</span><span style="color:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="color:#B56959;--shiki-dark:#C98A7D;">@vueuse/core</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span></span>
5
+ <span class="line"></span>
6
+ <span class="line"><span style="color:#AB5959;--shiki-dark:#CB7676;">const</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> route</span><span style="color:#999999;--shiki-dark:#666666;"> =</span><span style="color:#59873A;--shiki-dark:#80A665;"> useRoute</span><span style="color:#999999;--shiki-dark:#666666;">()</span><span style="color:#A0ADA0;--shiki-dark:#758575DD;"> // tracked</span></span>
7
+ <span class="line"><span style="color:#AB5959;--shiki-dark:#CB7676;">const</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> app</span><span style="color:#999999;--shiki-dark:#666666;"> =</span><span style="color:#59873A;--shiki-dark:#80A665;"> useNuxtApp</span><span style="color:#999999;--shiki-dark:#666666;">()</span><span style="color:#A0ADA0;--shiki-dark:#758575DD;"> // tracked</span></span>
8
+ <span class="line"></span>
9
+ <span class="line"><span style="color:#A0ADA0;--shiki-dark:#758575DD;">// NOT tracked because it&#39;s directly imported</span></span>
10
+ <span class="line"><span style="color:#AB5959;--shiki-dark:#CB7676;">const</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> mouse</span><span style="color:#999999;--shiki-dark:#666666;"> =</span><span style="color:#59873A;--shiki-dark:#80A665;"> useMouse</span><span style="color:#999999;--shiki-dark:#666666;">()</span></span>
11
+ <span class="line"><span style="color:#999999;--shiki-dark:#666666;">&lt;/</span><span style="color:#1E754F;--shiki-dark:#4D9375;">script</span><span style="color:#999999;--shiki-dark:#666666;">&gt;</span></span>
12
+ <span class="line"></span></code></pre><p>By default, it tracks Nuxt provided composables as well as user defined functions. You can include/exclude functions by using the <code>include</code> and <code>exclude</code> options in the <code>nuxt.config.js</code> file.</p><pre class="shiki shiki-themes vitesse-light vitesse-dark" style="background-color:#ffffff;--shiki-dark-bg:#121212;color:#393a34;--shiki-dark:#dbd7caee;" tabindex="0"><code><span class="line"><span style="color:#1E754F;--shiki-dark:#4D9375;">export</span><span style="color:#1E754F;--shiki-dark:#4D9375;"> default</span><span style="color:#59873A;--shiki-dark:#80A665;"> defineNuxtConfig</span><span style="color:#999999;--shiki-dark:#666666;">({</span></span>
13
+ <span class="line"><span style="color:#998418;--shiki-dark:#B8A965;"> devtools</span><span style="color:#999999;--shiki-dark:#666666;">:</span><span style="color:#999999;--shiki-dark:#666666;"> {</span></span>
14
+ <span class="line"><span style="color:#998418;--shiki-dark:#B8A965;"> timeline</span><span style="color:#999999;--shiki-dark:#666666;">:</span><span style="color:#999999;--shiki-dark:#666666;"> {</span></span>
15
+ <span class="line"><span style="color:#998418;--shiki-dark:#B8A965;"> functions</span><span style="color:#999999;--shiki-dark:#666666;">:</span><span style="color:#999999;--shiki-dark:#666666;"> {</span></span>
16
+ <span class="line"><span style="color:#998418;--shiki-dark:#B8A965;"> include</span><span style="color:#999999;--shiki-dark:#666666;">:</span><span style="color:#999999;--shiki-dark:#666666;"> [</span></span>
17
+ <span class="line"><span style="color:#A0ADA0;--shiki-dark:#758575DD;"> // track \`useMouse\`</span></span>
18
+ <span class="line"><span style="color:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="color:#B56959;--shiki-dark:#C98A7D;">useMouse</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="color:#999999;--shiki-dark:#666666;">,</span></span>
19
+ <span class="line"><span style="color:#A0ADA0;--shiki-dark:#758575DD;"> // track all functions starting with \`use\`</span></span>
20
+ <span class="line"><span style="color:#B5695977;--shiki-dark:#C98A7D77;"> /</span><span style="color:#1E754F;--shiki-dark:#4D9375;">^</span><span style="color:#AB5E3F;--shiki-dark:#C4704F;">use</span><span style="color:#999999;--shiki-dark:#666666;">[</span><span style="color:#A65E2B;--shiki-dark:#C99076;">A-Z</span><span style="color:#999999;--shiki-dark:#666666;">]</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;">/</span><span style="color:#999999;--shiki-dark:#666666;">,</span></span>
21
+ <span class="line"><span style="color:#A0ADA0;--shiki-dark:#758575DD;"> // track all functions from @vueuse/core</span></span>
22
+ <span class="line"><span style="color:#B07D48;--shiki-dark:#BD976A;"> entry</span><span style="color:#999999;--shiki-dark:#666666;"> =&gt;</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> entry</span><span style="color:#999999;--shiki-dark:#666666;">.</span><span style="color:#B07D48;--shiki-dark:#BD976A;">from</span><span style="color:#AB5959;--shiki-dark:#CB7676;"> ===</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="color:#B56959;--shiki-dark:#C98A7D;">@vueuse/core</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="color:#999999;--shiki-dark:#666666;">,</span></span>
23
+ <span class="line"><span style="color:#999999;--shiki-dark:#666666;"> ],</span></span>
24
+ <span class="line"><span style="color:#998418;--shiki-dark:#B8A965;"> exclude</span><span style="color:#999999;--shiki-dark:#666666;">:</span><span style="color:#999999;--shiki-dark:#666666;"> [</span></span>
25
+ <span class="line"><span style="color:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="color:#B56959;--shiki-dark:#C98A7D;">useRouter</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span></span>
26
+ <span class="line"><span style="color:#999999;--shiki-dark:#666666;"> ]</span></span>
27
+ <span class="line"><span style="color:#999999;--shiki-dark:#666666;"> }</span></span>
28
+ <span class="line"><span style="color:#999999;--shiki-dark:#666666;"> }</span></span>
29
+ <span class="line"><span style="color:#999999;--shiki-dark:#666666;"> }</span></span>
30
+ <span class="line"><span style="color:#999999;--shiki-dark:#666666;">})</span></span>
31
+ <span class="line"></span></code></pre>`,6)])))}},vs={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},hs={op50:""},_s={flex:"~ gap-3",mt2:"","justify-end":""},js=B({__name:"timeline",setup(y){const d=Z(),p=ee(),n=se(),e=ne();async function l(){try{const[a,r]=await R.enableTimeline(!0);if(!await n.start(a,r))return;await R.enableTimeline(!1)}catch{ae({message:"Failed to enable timeline automatically. Check the terminal for more details.",icon:"i-carbon-warning",classes:"text-red"})}}return(a,r)=>{const s=ks,c=ke,k=oe,D=ye,A=fe,S=z,_=te,L=fs,$=ve;return t(),i(f,null,[g(d)?.timeline?.enabled?(t(),v(s,{key:0})):(t(),i(f,{key:1},[u(k,null,{default:h(()=>[u(c,{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:l})]),_:1}),u(g(n),null,{default:h(({resolve:V,args:b})=>[u(_,{"model-value":!0,onClose:N=>V(!1)},{default:h(()=>[o("div",vs,[r[5]||(r[5]=o("h2",{"text-xl":""},[o("span",{capitalize:""},"Enable Timeline?")],-1)),o("p",hs,[r[1]||(r[1]=F(" Your ")),u(D,{role:"button",n:"primary",underline:"",onClick:r[0]||(r[0]=N=>g(e)(g(p)?._nuxtConfigFile)),textContent:"Nuxt config"}),r[2]||(r[2]=F(" will be updated as: "))]),u(A,{from:b[0],to:b[1],"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),r[6]||(r[6]=o("p",null,[o("span",{op50:""},"Then Nuxt will "),o("span",{"text-orange":""},"restart automatically"),F(". ")],-1)),o("div",_s,[u(S,{onClick:N=>V(!1)},{default:h(()=>r[3]||(r[3]=[F(" Cancel ")])),_:2},1032,["onClick"]),u(S,{n:"solid primary",capitalize:"",onClick:N=>V(!0)},{default:h(()=>r[4]||(r[4]=[F(" Enable ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)),u($,null,{default:h(()=>[u(L)]),_:1})],64)}}});export{js as default};
@@ -1 +1 @@
1
- import{k as e,l as s}from"./vendor/unocss-e7oqigho.js";import"./vendor/json-editor-vue-huf8dypo.js";e({defaults:{presets:[s({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
1
+ import{k as e,l as s}from"./vendor/unocss-n30bmhn8.js";import"./vendor/json-editor-vue-exjsfanq.js";e({defaults:{presets:[s({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});