@nuxt/devtools-nightly 2.0.0-beta.4-28972036.a28ca5b → 2.0.0-beta.7-28979078.dd9a91a

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 (135) hide show
  1. package/dist/chunks/module-main.mjs +82 -43
  2. package/dist/chunks/vscode.mjs +3 -3
  3. package/dist/chunks/vue-devtools.mjs +5 -17
  4. package/dist/client/200.html +24 -15
  5. package/dist/client/404.html +24 -15
  6. package/dist/client/_nuxt/__blank-i73w98ot.js +1 -0
  7. package/dist/client/_nuxt/analyze-build-osypvinl.js +1 -0
  8. package/dist/client/_nuxt/assets-kabfym3l.js +16 -0
  9. package/dist/client/_nuxt/builds/latest.json +1 -1
  10. package/dist/client/_nuxt/builds/meta/c09c67b3-1799-4690-9b4b-e93e60520f9c.json +1 -0
  11. package/dist/client/_nuxt/{client-bvu6p7m4.js → client-kpmlv67d.js} +1 -1
  12. package/dist/client/_nuxt/{code-diff.vue-mke5i5ht.js → code-diff.vue-j7k3a6r3.js} +3 -3
  13. package/dist/client/_nuxt/code-snippets.vue-o376xgrr.js +1 -0
  14. package/dist/client/_nuxt/components-j500sapl.js +1 -0
  15. package/dist/client/_nuxt/composable-item.vue-ne7y5jza.js +1 -0
  16. package/dist/client/_nuxt/custom-_name_-g0vgtf0l.js +1 -0
  17. package/dist/client/_nuxt/data-schema-button.vue-nqa7vss8.js +1 -0
  18. package/dist/client/_nuxt/data-schema-drawer-mr2wbyy1.js +2 -0
  19. package/dist/client/_nuxt/default-dscxupqw.js +1 -0
  20. package/dist/client/_nuxt/duration-display.vue-dzttyi5n.js +1 -0
  21. package/dist/client/_nuxt/{entry.css-egk2z7qr.css → entry.css-gcfkqtar.css} +1 -1
  22. package/dist/client/_nuxt/{error-404-donj9nx3.js → error-404-eg5womw1.js} +1 -1
  23. package/dist/client/_nuxt/error-404.css-fwe7gpvk.css +1 -0
  24. package/dist/client/_nuxt/{error-500-guu8hu4a.js → error-500-ins5mmhy.js} +1 -1
  25. package/dist/client/_nuxt/error-500.css-djemplc9.css +1 -0
  26. package/dist/client/_nuxt/{error-h4c4ee89.js → error-bgufcoup.js} +5 -5
  27. package/dist/client/_nuxt/filepath-item.vue-ipkw48nj.js +1 -0
  28. package/dist/client/_nuxt/full-nrro384i.js +1 -0
  29. package/dist/client/_nuxt/{help-fab.vue-kjnf5h3g.js → help-fab.vue-p3sb2h0t.js} +1 -1
  30. package/dist/client/_nuxt/hooks-i4vk7gi5.js +1 -0
  31. package/dist/client/_nuxt/imports-k7recz0n.js +1 -0
  32. package/dist/client/_nuxt/index-jorw6bxa.js +1 -0
  33. package/dist/client/_nuxt/index-kaszxz8x.js +2 -0
  34. package/dist/client/_nuxt/launch-page.vue-gca7uxfe.js +1 -0
  35. package/dist/client/_nuxt/modules-m680c0mj.js +1 -0
  36. package/dist/client/_nuxt/nbadge-lmur87ty.js +1 -0
  37. package/dist/client/_nuxt/ncheckbox.vue-feskyxd0.js +1 -0
  38. package/dist/client/_nuxt/ncode-block.vue-dt6krs6h.js +2 -0
  39. package/dist/client/_nuxt/ndrawer.vue-b09njjbc.js +1 -0
  40. package/dist/client/_nuxt/ndropdown.vue-j9ga9cm2.js +1 -0
  41. package/dist/client/_nuxt/nicon-title.vue-hzhi6u0u.js +1 -0
  42. package/dist/client/_nuxt/nlink.vue-n6hbz6nn.js +1 -0
  43. package/dist/client/_nuxt/nmarkdown.vue-jpbjhala.js +1 -0
  44. package/dist/client/_nuxt/nnavbar.vue-fsgszvqg.js +1 -0
  45. package/dist/client/_nuxt/none-eo3diko6.js +1 -0
  46. package/dist/client/_nuxt/nsection-block-iefigwly.js +1 -0
  47. package/dist/client/_nuxt/nselect-tabs.vue-lh4in903.js +1 -0
  48. package/dist/client/_nuxt/nselect.vue-7oki02k8.js +1 -0
  49. package/dist/client/_nuxt/nswitch.vue-iu20lc9i.js +1 -0
  50. package/dist/client/_nuxt/{open-graph-lnevntcs.js → open-graph-gj21w2an.js} +2 -2
  51. package/dist/client/_nuxt/ork67mdr.js +17 -0
  52. package/dist/client/_nuxt/{overview-lggw2g8n.js → overview-m1kjwsk2.js} +1 -1
  53. package/dist/client/_nuxt/pages-haifvw2e.js +1 -0
  54. package/dist/client/_nuxt/payload-ig1oqqar.js +1 -0
  55. package/dist/client/_nuxt/pinia-kied7w5j.js +1 -0
  56. package/dist/client/_nuxt/plugins-hmadqzxz.js +1 -0
  57. package/dist/client/_nuxt/render-tree-hu59echi.js +1 -0
  58. package/dist/client/_nuxt/runtime-configs-ievg11jo.js +1 -0
  59. package/dist/client/_nuxt/server-discovery-fydvq0gt.js +1 -0
  60. package/dist/client/_nuxt/server-route-inputs.vue-n7a1uel1.js +1 -0
  61. package/dist/client/_nuxt/server-routes-dpgoyzw9.js +9 -0
  62. package/dist/client/_nuxt/server-tasks-ab1nq458.js +1 -0
  63. package/dist/client/_nuxt/settings-lt1pi5fu.js +1 -0
  64. package/dist/client/_nuxt/stacktrace-list.vue-nd6leugh.js +1 -0
  65. package/dist/client/_nuxt/{state-components-fb7dlw2d.js → state-components-h1pv8gv7.js} +1 -1
  66. package/dist/client/_nuxt/state-editor.vue-fofa87a8.js +1 -0
  67. package/dist/client/_nuxt/{state-modules-h8uf7h8d.js → state-modules-cgbrs35c.js} +1 -1
  68. package/dist/client/_nuxt/storage-oi52w3em.js +1 -0
  69. package/dist/client/_nuxt/terminals-g9pq9aij.js +1 -0
  70. package/dist/client/_nuxt/timeline-c4zyui8l.js +31 -0
  71. package/dist/client/_nuxt/{unocss-runtime-abddx8lv.js → unocss-runtime-cb61k1ql.js} +1 -1
  72. package/dist/client/_nuxt/vendor/{json-editor-vue-hrh84odz.js → json-editor-vue-kcahofzr.js} +4 -4
  73. package/dist/client/_nuxt/vendor/quicktype-core-lnbp3n5r.js +1006 -0
  74. package/dist/client/_nuxt/vendor/{shiki-nyzr6cds.js → shiki-ja073547.js} +151 -18
  75. package/dist/client/_nuxt/vendor/{unocss-cbkcukyd.js → unocss-mstcul8h.js} +1 -1
  76. package/dist/client/_nuxt/virtual-files-f10idtc4.js +1 -0
  77. package/dist/client/_nuxt/{vue-virtual-scroller.esm-btin7frf.js → vue-virtual-scroller.esm-ryb7s73q.js} +2 -2
  78. package/dist/client/index.html +24 -15
  79. package/dist/module.json +1 -1
  80. package/dist/runtime/vue-devtools-client.d.ts +2 -0
  81. package/dist/runtime/vue-devtools-client.js +8 -0
  82. package/package.json +17 -17
  83. package/dist/client/_nuxt/__blank-ohgur088.js +0 -1
  84. package/dist/client/_nuxt/analyze-build-k4mk9yun.js +0 -1
  85. package/dist/client/_nuxt/assets-l2ksml1j.js +0 -16
  86. package/dist/client/_nuxt/b02f8h4y.js +0 -17
  87. package/dist/client/_nuxt/builds/meta/0b18b2cb-e292-49a5-84bc-8034f148e947.json +0 -1
  88. package/dist/client/_nuxt/code-snippets.vue-kz39ylf7.js +0 -1
  89. package/dist/client/_nuxt/components-5jpwg4jr.js +0 -1
  90. package/dist/client/_nuxt/composable-item.vue-krvb1hx6.js +0 -1
  91. package/dist/client/_nuxt/custom-_name_-e39sqimm.js +0 -1
  92. package/dist/client/_nuxt/default-okvqvker.js +0 -1
  93. package/dist/client/_nuxt/duration-display.vue-onla0yr8.js +0 -1
  94. package/dist/client/_nuxt/error-404.css-hipm8rzk.css +0 -1
  95. package/dist/client/_nuxt/error-500.css-ncq7dpos.css +0 -1
  96. package/dist/client/_nuxt/filepath-item.vue-f3958elb.js +0 -1
  97. package/dist/client/_nuxt/full-p3k4lso2.js +0 -1
  98. package/dist/client/_nuxt/hooks-m100lq90.js +0 -1
  99. package/dist/client/_nuxt/imports-lgznszn5.js +0 -1
  100. package/dist/client/_nuxt/index-jwebz8s6.js +0 -2
  101. package/dist/client/_nuxt/index-og3vi7fw.js +0 -1
  102. package/dist/client/_nuxt/launch-page.vue-fzp5jez3.js +0 -1
  103. package/dist/client/_nuxt/modules-gzb89d9p.js +0 -1
  104. package/dist/client/_nuxt/nbadge-le6qglrd.js +0 -1
  105. package/dist/client/_nuxt/ncheckbox.vue-mnhptb1i.js +0 -1
  106. package/dist/client/_nuxt/ncode-block.vue-bazndqbc.js +0 -2
  107. package/dist/client/_nuxt/ndrawer.vue-xvdipzno.js +0 -1
  108. package/dist/client/_nuxt/ndropdown.vue-nlyuq8dr.js +0 -1
  109. package/dist/client/_nuxt/nicon-title.vue-evdbm4ef.js +0 -1
  110. package/dist/client/_nuxt/nlink.vue-l5e2nrsl.js +0 -1
  111. package/dist/client/_nuxt/nmarkdown.vue-ffthu1ys.js +0 -1
  112. package/dist/client/_nuxt/nnavbar.vue-med0h49f.js +0 -1
  113. package/dist/client/_nuxt/none-d4srol4h.js +0 -1
  114. package/dist/client/_nuxt/nsection-block-mwhk66gw.js +0 -1
  115. package/dist/client/_nuxt/nselect-tabs.vue-lw6b1oce.js +0 -1
  116. package/dist/client/_nuxt/nselect.vue-cpd2bgtt.js +0 -1
  117. package/dist/client/_nuxt/pages-cmfmwr2p.js +0 -1
  118. package/dist/client/_nuxt/payload-cxg8buvj.js +0 -1
  119. package/dist/client/_nuxt/pinia-nc122g2e.js +0 -1
  120. package/dist/client/_nuxt/plugins-emvg7eig.js +0 -1
  121. package/dist/client/_nuxt/render-tree-k13q5r2i.js +0 -1
  122. package/dist/client/_nuxt/runtime-configs-joak20f6.js +0 -1
  123. package/dist/client/_nuxt/server-discovery-gfxffs3t.js +0 -1
  124. package/dist/client/_nuxt/server-route-inputs.vue-cci8vi7h.js +0 -1
  125. package/dist/client/_nuxt/server-routes-mxv29exp.js +0 -9
  126. package/dist/client/_nuxt/server-tasks-i6n4zfmj.js +0 -1
  127. package/dist/client/_nuxt/settings-hb6178w8.js +0 -1
  128. package/dist/client/_nuxt/stacktrace-list.vue-mbkojt56.js +0 -1
  129. package/dist/client/_nuxt/state-editor.vue-n8pkn9an.js +0 -1
  130. package/dist/client/_nuxt/storage-dbjnpbvw.js +0 -1
  131. package/dist/client/_nuxt/terminals-m00yl3x9.js +0 -1
  132. package/dist/client/_nuxt/timeline-m1v5ujmi.js +0 -31
  133. package/dist/client/_nuxt/virtual-files-mvbbim6p.js +0 -1
  134. package/dist/runtime/vue-devtools/overlay.d.ts +0 -1
  135. package/dist/runtime/vue-devtools/overlay.js +0 -8
@@ -1,31 +0,0 @@
1
- import{a4 as M,L as O,A as j,bg as Y,_ as U,Q as K,J as X,f as z,a6 as Z,b as q,bh as Q,I as ee,k as se,K as ne,d as te,r as G,D as oe,y as ae}from"./b02f8h4y.js";import{_ as W}from"./duration-display.vue-onla0yr8.js";import{l as B,m as w,R as o,U as i,V as t,Y as T,a6 as m,u as g,F as y,ac as E,N as h,c as C,d as le,n as re,X as x,a1 as u,Z as R,S as P,a0 as v,av as ie,a2 as pe,a7 as F,ah as ce}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as H}from"./nbadge-le6qglrd.js";import{_ as de}from"./composable-item.vue-krvb1hx6.js";import{_ as ue}from"./stacktrace-list.vue-mbkojt56.js";import{_ as me}from"./ndrawer.vue-xvdipzno.js";import{_ as ke}from"./launch-page.vue-fzp5jez3.js";import{_ as fe}from"./nlink.vue-l5e2nrsl.js";import{_ as ye}from"./code-diff.vue-mke5i5ht.js";import{_ as he}from"./help-fab.vue-kjnf5h3g.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nmarkdown.vue-ffthu1ys.js";import"./client-bvu6p7m4.js";import"./filepath-item.vue-f3958elb.js";import"./constants-b32h69zq.js";import"./ncode-block.vue-bazndqbc.js";const ve=B({__name:"TimelineItemFunction",props:{item:{}},setup(f){const d=f,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)=>(o(),i("button",{class:"group",style:T({color:n.value,borderLeft:`2px solid ${n.value}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[t("div",{style:T({backgroundColor:l.value}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),t("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(f,{emit:d}){const p=f,n=d,e=O(()=>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=ve;return o(),i("div",_e,[t("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),t("div",be,m(g(e))+" ago ",1),t("div",null,[(o(!0),i(y,null,E(l.segment.functions,(s,c)=>(o(),h(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(f){const d=[];let p={start:0,end:0,events:[],functions:[],duration:0};for(const n of f){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(f,{emit:d}){const p=f,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"}),j(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)}),j(a,"scroll",()=>{a.value.scrollLeft!==e.value.scrollLeft&&(A(),e.value.scrollLeft=a.value.scrollLeft)}),j(e,"wheel",_=>{_.altKey?(c.value=Y(c.value+_.deltaY/200,.5,3),A()):e.value.scrollLeft+=_.deltaY}),(_,L)=>{const $=W,V=ge;return o(),i(y,null,[t("div",$e,[t("div",{ref_key:"minimap",ref:l,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(o(!0),i(y,null,E(k.value,(b,N)=>(o(),i("div",{key:N,relative:"","h-full":"","flex-inline":"",style:T({width:`${Math.max(100,b.duration/10)/D.value*100}%`})},[(o(!0),i(y,null,E(b.functions,(I,J)=>(o(),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:("getHashColorFromString"in _?_.getHashColorFromString:g(M))(I.event.name,50,60)})},null,4))),128)),b.route?(o(),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),t("div",{ref_key:"minimapScroller",ref:a,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[t("div",{ref_key:"minimapScrollerInner",ref:r,"h-1px":""},null,512)],512)]),t("div",{ref_key:"scroller",ref:e,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(o(!0),i(y,null,E(k.value,(b,N)=>(o(),i(y,{key:N},[b.previousGap&&b.previousGap>=200?(o(),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:R(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=U(Be,[["__scopeId","data-v-18afc15e"]]),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(f,{emit:d}){const p=d;return(n,e)=>{const l=W;return o(),i("div",Te,[(o(!0),i(y,null,E(n.data.events,(a,r)=>(o(),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"?(o(),i(y,{key:0},[e[2]||(e[2]=t("div",{"i-carbon-function":"",op50:""},null,-1)),t("div",{"font-mono":"",style:T({color:a.type==="function"?("getHashColorFromString"in n?n.getHashColorFromString:g(M))(a.name,50,60):""})},m(a.name),5),t("div",Ne,[e[0]||(e[0]=t("div",{op30:""}," ( ",-1)),(o(!0),i(y,null,E(a.args,(s,c)=>(o(),i(y,{key:c},[c?(o(),i("div",Fe," , ")):x("",!0),t("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]=t("div",{op30:""}," ) ",-1))])],64)):(o(),i(y,{key:1},[e[3]||(e[3]=t("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[t("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1)),t("div",Le,[t("div",Ie,m(a.from),1),t("div",Ve,m(a.to),1)])],64)),e[4]||(e[4]=t("div",{"flex-auto":""},null,-1)),a.end?(o(),h(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]=t("div",{"min-h-100":""},null,-1))])}}}),We={key:0,"text-blue":""},je={key:1,"text-purple":""},Oe={key:2,"text-green":""},ze={key:3,"text-gray":""},Re={key:4,"text-gray":""},Ge={key:5,"text-gray":""},Pe={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},He={key:1},Je={p2:"","text-sm":"",border:"t base"},Ye=B({__name:"TimelineArgumentView",props:{value:{}},setup(f){const d=f,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=K(),r=X();return(s,c)=>{const k=z,D=P("VMenu");return typeof s.value=="string"?(o(),i("div",We,m(JSON.stringify(s.value)),1)):typeof s.value=="number"?(o(),i("div",je,m(s.value),1)):typeof s.value=="boolean"?(o(),i("div",Oe,m(s.value),1)):typeof s.value>"u"?(o(),i("div",ze," undefined ")):typeof s.value=="function"?(o(),i("div",Re," [Function"+m(s.value.name?`: ${s.value.name}`:"")+"] ",1)):s.value===null?(o(),i("div",Ge," null ")):(o(),h(D,{key:6,placement:"top"},{popper:v(()=>[u(g(l),{onSetup:e}),n.value?(o(),i("div",Pe," Failed to display object: "+m(n.value),1)):p.value?(o(),i("div",He,[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"]),t("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:v(()=>c[1]||(c[1]=[F(" Copy ")])),_:1})])])):x("",!0)]),default:v(()=>[t("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:R([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}))}}}),Ue={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},Ke={"mx--1":""},Xe={flex:"~ gap-1","font-mono":""},Ze={key:1},qe={key:0,op30:""},Qe={flex:"~ gap-1","text-sm":""},es={class:"text-sm text-gray-400"},ss=B({__name:"TimelineDetailsFunction",props:{record:{}},setup(f){const d=f,p=O(()=>d.record.start,{showSecond:!0}),n=Z(),e=w(()=>n.value?.metadata),l=w(()=>n.value?.imports.find(a=>a.as===d.record.name));return(a,r)=>{const s=H,c=de,k=Ye,D=W,A=ue;return a.record?(o(),i("div",Ue,[t("div",Ke,[u(s,{n:"yellow",textContent:"Function call"})]),t("div",Xe,[l.value?(o(),h(c,{key:0,item:l.value,metadata:e.value,counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(o(),i("span",Ze,m(a.record.name),1)),r[0]||(r[0]=t("span",{ml1:"",op30:""},"(",-1)),(o(!0),i(y,null,E(a.record.args,(S,_)=>(o(),i(y,{key:_},[_?(o(),i("span",qe,", ")):x("",!0),u(k,{value:S},null,8,["value"])],64))),128)),r[1]||(r[1]=t("span",{op30:""},")",-1))]),t("div",Qe,[a.record.end?(o(),h(D,{key:0,duration:a.record.end-a.record.start},null,8,["duration"])):x("",!0),r[2]||(r[2]=t("span",{mx1:"",op50:""},"·",-1)),t("div",es,m(g(p)),1)]),a.record.stacktrace?(o(),h(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"},ts={"mx--1":""},os={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(f){const d=f,p=O(()=>d.record.start,{showSecond:!0});return(n,e)=>{const l=H,a=W;return n.record?(o(),i("div",ns,[t("div",ts,[u(l,{n:"green",textContent:"Route Change"})]),t("div",os,[t("span",as,m(n.record.from),1),e[0]||(e[0]=t("span",{"i-carbon-arrow-right":"",op50:""},null,-1)),t("span",null,m(n.record.to),1)]),t("div",ls,[n.record.end?(o(),h(a,{key:0,duration:n.record.end-n.record.start},null,8,["duration"])):x("",!0),e[1]||(e[1]=t("span",{mx1:"",op50:""},"·",-1)),t("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(f){const d=q(),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?(o(),i("div",ps,[t("div",cs,[t("div",ds,[u(c,{flex:""},{popper:v(()=>[t("div",us,m(e.value.options.enabled?"Recording...":"Paused"),1)]),default:v(()=>[t("div",{"text-lg":"",class:R(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?(o(),h(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:v(()=>s[6]||(s[6]=[F(" Stop Tracking ")])),_:1})):(o(),h(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:v(()=>s[5]||(s[5]=[F(" Start Tracking ")])),_:1})),s[7]||(s[7]=t("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"?(o(),h(D,{key:0,data:{...e.value},onSelect:s[2]||(s[2]=$=>n.value=$.event)},null,8,["data"])):(o(),h(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:v(()=>[t("div",ms,[n.value?.type==="function"?(o(),h(S,{key:0,record:n.value},null,8,["record"])):n.value?.type==="route"?(o(),h(_,{key:1,record:n.value},null,8,["record"])):x("",!0)])]),_:1},8,["model-value"])])):x("",!0)}}}),fs={class:"markdown-body"},ys={__name:"timeline",setup(f,{expose:d}){return d({frontmatter:{}}),(n,e)=>(o(),i("div",fs,e[0]||(e[0]=[t("h1",null,"Timeline",-1),t("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)])))}},hs={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},vs={op50:""},_s={flex:"~ gap-3",mt2:"","justify-end":""},Ws=B({__name:"timeline",setup(f){const d=Q(),p=ee(),n=se(),e=ne();async function l(){try{const[a,r]=await G.enableTimeline(!0);if(!await n.start(a,r))return;await G.enableTimeline(!1)}catch{oe({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=te,D=fe,A=ye,S=z,_=ae,L=ys,$=he;return o(),i(y,null,[g(d)?.timeline?.enabled?(o(),h(s,{key:0})):(o(),i(y,{key:1},[u(k,null,{default:v(()=>[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:v(({resolve:V,args:b})=>[u(_,{"model-value":!0,onClose:N=>V(!1)},{default:v(()=>[t("div",hs,[r[5]||(r[5]=t("h2",{"text-xl":""},[t("span",{capitalize:""},"Enable Timeline?")],-1)),t("p",vs,[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]=t("p",null,[t("span",{op50:""},"Then Nuxt will "),t("span",{"text-orange":""},"restart automatically"),F(". ")],-1)),t("div",_s,[u(S,{onClick:N=>V(!1)},{default:v(()=>r[3]||(r[3]=[F(" Cancel ")])),_:2},1032,["onClick"]),u(S,{n:"solid primary",capitalize:"",onClick:N=>V(!0)},{default:v(()=>r[4]||(r[4]=[F(" Enable ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)),u($,null,{default:v(()=>[u(L)]),_:1})],64)}}});export{Ws as default};
@@ -1 +0,0 @@
1
- import{_ as w}from"./nnavbar.vue-med0h49f.js";import{_ as D}from"./ncode-block.vue-bazndqbc.js";import{bl as B,bm as S,N as U,q as j,U as P,d as E}from"./b02f8h4y.js";import{R as i,U as c,V as a,l as I,c as f,w as R,m as d,a1 as l,a0 as u,F as _,ac as W,a6 as v,Z as q,N as z}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as G}from"./help-fab.vue-kjnf5h3g.js";import"./client-bvu6p7m4.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const H={class:"markdown-body"},L={__name:"virtual-files",setup(h,{expose:r}){return r({frontmatter:{}}),(p,o)=>(i(),c("div",H,o[0]||(o[0]=[a("h1",null,"Virtual Files",-1),a("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1)])))}},Z=["onClick"],A={key:0,"h-full":"","of-hidden":"",flex:"~ col"},J={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},oe=I({__name:"virtual-files",setup(h){const r=f(""),n=B(),p=S(),o=f();R(()=>{if(!p.value)return;const e=`/_vfs.json/${encodeURIComponent(p.value)}`;fetch(e,{headers:{accept:"application/json"}}).then(t=>t.json()).then(t=>o.value=t.current)});function x(e){if(n.value?.rootDir)return e.startsWith(n.value?.rootDir)?e.slice(n.value.rootDir.length):e}const m=d(()=>n.value?n.value.entries.filter(e=>!e.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),b=d(()=>new U(m.value,{keys:["id","path"]})),k=d(()=>r.value?b.value.search(r.value).map(e=>e.item):m.value);return(e,t)=>{const y=w,g=D,C=P,N=E,F=j,$=L,V=G;return i(),c(_,null,[l(F,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:u(()=>[l(y,{search:r.value,"onUpdate:search":t[0]||(t[0]=s=>r.value=s),"no-padding":"",p3:""},null,8,["search"]),(i(!0),c(_,null,W(k.value,s=>(i(),c(_,{key:s.id},[a("button",{block:"","w-full":"","select-none":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:q(s.id===o.value?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:K=>p.value=s.id},v(x(s.id)),11,Z),t[1]||(t[1]=a("div",{"x-divider":""},null,-1))],64))),128))]),right:u(()=>[o.value?.content?(i(),c("div",A,[a("div",J,[a("code",null,v(o.value.id),1)]),l(g,{"h-full":"","of-auto":"","text-sm":"",code:o.value.content,lang:"typescript"},null,8,["code"])])):(i(),z(N,{key:1},{default:u(()=>[l(C,{px6:"",py2:""},{default:u(()=>t[2]||(t[2]=[a("span",{op75:""},"Select a file to start",-1)])),_:1})]),_:1}))]),_:1}),l(V,null,{default:u(()=>[l($)]),_:1})],64)}}});export{oe as default};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import { functions } from '@vue/devtools-core'
2
- import { createRpcServer, devtools } from '@vue/devtools-kit'
3
-
4
- devtools.init()
5
-
6
- createRpcServer(functions, {
7
- preset: 'iframe',
8
- })