@nuxt/devtools 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +1 -1
- package/dist/client/200.html +8 -8
- package/dist/client/404.html +8 -8
- package/dist/client/_nuxt/__blank-ho4amkbo.js +1 -0
- package/dist/client/_nuxt/{analyze-build-ea1eck8p.js → analyze-build-cdqqqirn.js} +1 -1
- package/dist/client/_nuxt/{assets-n3kfhorl.js → assets-gr2bjlk1.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/99ac6b65-839f-4dab-9c11-759a1509e3bf.json +1 -0
- package/dist/client/_nuxt/{code-diff.vue-3ei6zne1.js → code-diff.vue-bw0ide58.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-jr6ih8m7.js → code-snippets.vue-m8d4zz58.js} +1 -1
- package/dist/client/_nuxt/{components-c38lzacq.js → components-oxhvj1ov.js} +1 -1
- package/dist/client/_nuxt/{components-tree-ihs546mg.js → components-tree-ed0z07in.js} +1 -1
- package/dist/client/_nuxt/{composable-item.vue-fyg5hnt4.js → composable-item.vue-hb6xcfj7.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_-eeczuiaf.js → custom-_name_-gqu7vbz4.js} +1 -1
- package/dist/client/_nuxt/{default-iofn16rr.js → default-jhyqf6kc.js} +1 -1
- package/dist/client/_nuxt/{error-404-m1rb28qo.js → error-404-e7oew4nr.js} +1 -1
- package/dist/client/_nuxt/{error-500-diual75d.js → error-500-g6yrkaek.js} +1 -1
- package/dist/client/_nuxt/{error-j0kod4j7.js → error-kqorjls4.js} +1 -1
- package/dist/client/_nuxt/{filepath-item.vue-gspuql6t.js → filepath-item.vue-dx2h1i9n.js} +1 -1
- package/dist/client/_nuxt/fm9jupb1.js +16 -0
- package/dist/client/_nuxt/{full-gbkjzbjn.js → full-murxybmz.js} +1 -1
- package/dist/client/_nuxt/{help-fab.vue-hr5z89ai.js → help-fab.vue-crgr5bip.js} +1 -1
- package/dist/client/_nuxt/{hooks-bmqjn5uk.js → hooks-7dy4bdig.js} +1 -1
- package/dist/client/_nuxt/{imports-bpqh8uz0.js → imports-iajkha8n.js} +1 -1
- package/dist/client/_nuxt/{index-kk8qg4i0.js → index-b96i27om.js} +1 -1
- package/dist/client/_nuxt/{index-i6v3sxsq.js → index-nw09rrob.js} +1 -1
- package/dist/client/_nuxt/{launch-page.vue-o72v57lt.js → launch-page.vue-d1verc8u.js} +1 -1
- package/dist/client/_nuxt/{modules-hfiy1oig.js → modules-peak225e.js} +1 -1
- package/dist/client/_nuxt/{nbadge-nscxg0ea.js → nbadge-gs58euic.js} +1 -1
- package/dist/client/_nuxt/{ncheckbox.vue-e9ud9j5x.js → ncheckbox.vue-lcng4tp3.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-mplxtid5.js → ndrawer.vue-n0jo71pp.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-e87kxadx.js → ndropdown.vue-l48zufyg.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-eiz3iwjv.js → nlink.vue-grxar87b.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-g8533enj.js → nnavbar.vue-ncwj4zjw.js} +1 -1
- package/dist/client/_nuxt/{none-e5nk9q3m.js → none-grn7kg3n.js} +1 -1
- package/dist/client/_nuxt/{nsection-block-mvrkafth.js → nsection-block-lj9jr5lq.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs.vue-fwkap4uo.js → nselect-tabs.vue-hf6vcf5w.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-fw7xtqj5.js → nselect.vue-fu3yp2s3.js} +1 -1
- package/dist/client/_nuxt/{open-graph-mg0wvem5.js → open-graph-n1d09rxe.js} +1 -1
- package/dist/client/_nuxt/{overview-dwng171y.js → overview-cjpjmhqv.js} +1 -1
- package/dist/client/_nuxt/{pages-dw5vn1ay.js → pages-bosbcml3.js} +1 -1
- package/dist/client/_nuxt/{payload-n5bpui5g.js → payload-b9mwwvi8.js} +1 -1
- package/dist/client/_nuxt/{pinia-hflvu3wk.js → pinia-io97mkj5.js} +1 -1
- package/dist/client/_nuxt/{plugins-is0jalvz.js → plugins-mkpz93oz.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-j2weq3a8.js → runtime-configs-in7facqi.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-f12vix3z.js → server-route-inputs.vue-diwdds2s.js} +1 -1
- package/dist/client/_nuxt/{server-routes-fukasdvq.js → server-routes-eozbg2ko.js} +1 -1
- package/dist/client/_nuxt/{server-tasks-k1h90jj9.js → server-tasks-enz00tr5.js} +1 -1
- package/dist/client/_nuxt/{settings-bwoka9ty.js → settings-e42sb40z.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list.vue-ctsox658.js → stacktrace-list.vue-gv8cnf42.js} +1 -1
- package/dist/client/_nuxt/{state-components-3qxyvdiu.js → state-components-jr16pryk.js} +1 -1
- package/dist/client/_nuxt/{state-editor.vue-mh0eij72.js → state-editor.vue-nway0kx6.js} +1 -1
- package/dist/client/_nuxt/{state-modules-fxsj7vyw.js → state-modules-k69l57jh.js} +1 -1
- package/dist/client/_nuxt/{storage-i7qr12jo.js → storage-gr8o9ir6.js} +1 -1
- package/dist/client/_nuxt/{terminals-elxq15i6.js → terminals-nora4jiw.js} +1 -1
- package/dist/client/_nuxt/{timeline-o2dlglei.js → timeline-k1m04t71.js} +1 -1
- package/dist/client/_nuxt/{virtual-files-j88ybqgt.js → virtual-files-d3sqyioj.js} +1 -1
- package/dist/client/index.html +8 -8
- package/dist/module.json +1 -1
- package/package.json +4 -4
- package/dist/client/_nuxt/__blank-c3ogaker.js +0 -1
- package/dist/client/_nuxt/builds/meta/9a9f67ed-5b9a-4514-bf49-62859c510bf6.json +0 -1
- package/dist/client/_nuxt/l4ouzdbv.js +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as J}from"./nicon-title.vue-g9trlv29.js";import{k as F,Q as r,S as b,a8 as X,ay as ee,u as o,U as l,A as f,Z as le,V as ne,w as L,a0 as t,F as k,ab as h,$ as s,O as M,a5 as _,Y as j,W as P,a6 as B}from"./vendor/json-editor-vue-mdfcgt41.js";import{y as te,b as oe,Q as ae,bj as se,a2 as ie,r as ue,e as de,W as re,t as I,bf as pe,bk as me}from"./
|
|
1
|
+
import{_ as J}from"./nicon-title.vue-g9trlv29.js";import{k as F,Q as r,S as b,a8 as X,ay as ee,u as o,U as l,A as f,Z as le,V as ne,w as L,a0 as t,F as k,ab as h,$ as s,O as M,a5 as _,Y as j,W as P,a6 as B}from"./vendor/json-editor-vue-mdfcgt41.js";import{y as te,b as oe,Q as ae,bj as se,a2 as ie,r as ue,e as de,W as re,t as I,bf as pe,bk as me}from"./fm9jupb1.js";import{_ as fe}from"./nselect.vue-fu3yp2s3.js";import{_ as ve}from"./ncheckbox.vue-lcng4tp3.js";import{_ as be}from"./nlink.vue-grxar87b.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-fpe2sz4h.js";const ce=["checked","disabled"],ge=["disabled"],xe=F({__name:"NSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(z,{emit:g}){const d=te(z,"modelValue",g,{passive:!0});return(p,a)=>(r(),b("label",{class:"n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled",checked:o(d)||null,disabled:p.disabled||null},[X(l("input",{"onUpdate:modelValue":a[0]||(a[0]=v=>f(d)?d.value=v:null),type:"checkbox",class:"peer absolute op0",disabled:p.disabled,onKeypress:a[1]||(a[1]=le(v=>d.value=!o(d),["enter"]))},null,40,ge),[[ee,o(d)]]),a[2]||(a[2]=l("div",{class:"n-switch-slider n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},[l("div",{class:"n-checked:n-switch-thumb-checked n-switch-thumb n-transition"})],-1)),ne(p.$slots,"default")],8,ce))}}),ye={px8:"",py6:""},ke={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},Ve={flex:"~ col gap-2"},we={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},_e={capitalize:"",op75:""},Ce={flex:"~ col gap-2"},Se=["value"],Te=["value"],$e={flex:"~ gap-2"},Ne={flex:"~ gap-2"},Ee=F({__name:"settings",setup(z){const{interactionCloseOnOutsideClick:g,showPanel:C,showHelpButtons:S,scale:d,hiddenTabs:p,pinnedTabs:a,hiddenTabCategories:v,minimizePanelInactive:T,sidebarExpanded:$,sidebarScrollable:D}=oe("ui"),V=ae(),R=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],W=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],H=se(ie());function K(i,e){e?p.value=p.value.filter(m=>m!==i):p.value.push(i)}function Q(i,e){e?v.value=v.value.filter(m=>m!==i):v.value.push(i)}function Y(i){a.value.includes(i)?a.value=a.value.filter(e=>e!==i):a.value.push(i)}function A(i,e){const m=a.value.indexOf(i);if(m===-1)return;const x=m+e;if(x<0||x>=a.value.length)return;const w=[...a.value];w.splice(m,1),w.splice(x,0,i),a.value=w}async function Z(){confirm("Are you sure you to reset all local settings & state? The app will reload.")&&(Object.keys(localStorage).forEach(i=>{i.startsWith("nuxt-devtools-")&&localStorage.removeItem(i)}),await ue.clearOptions(),V.value?.app?.reload?.(),window.location.reload())}return L(()=>{V.value&&(V.value.app.frameState.value.closeOnOutsideClick=g.value)}),L(()=>{V.value&&(V.value.app.frameState.value.minimizePanelInactive=T.value)}),(i,e)=>{const m=J,x=xe,w=pe,c=de,N=re,q=me,E=fe,y=ve,G=be;return r(),b("div",ye,[t(m,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),l("div",ke,[l("div",Ve,[e[10]||(e[10]=l("h3",{"text-lg":""}," Tabs ",-1)),(r(!0),b(k,null,h(o(H),([n,U])=>(r(),b(k,{key:n},[U.length?(r(),M(N,{key:0,p3:"",flex:"~ col gap-1",class:j(o(v).includes(n)?"op50 grayscale":"")},{default:s(()=>[t(x,{flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-lime":"","model-value":!o(v).includes(n),"onUpdate:modelValue":u=>Q(n,u)},{default:s(()=>[l("div",we,[l("span",_e,_(n),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e[9]||(e[9]=l("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),(r(!0),b(k,null,h(U,u=>(r(),M(x,{key:u.name,flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-primary":"","model-value":!o(p).includes(u.name),"onUpdate:modelValue":O=>K(u.name,O)},{default:s(()=>[l("div",{flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"",class:j(o(p).includes(u.name)?"op25":"")},[t(w,{"text-xl":"",icon:u.icon,title:u.title},null,8,["icon","title"]),l("span",null,_(u.title),1),e[8]||(e[8]=l("div",{"flex-auto":""},null,-1)),o(a).includes(u.name)?(r(),b(k,{key:0},[t(c,{icon:"i-carbon-caret-up",disabled:o(a).indexOf(u.name)===0,border:!1,onClick:O=>A(u.name,-1)},null,8,["disabled","onClick"]),t(c,{icon:"i-carbon-caret-down",disabled:o(a).indexOf(u.name)===o(a).length-1,border:!1,onClick:O=>A(u.name,1)},null,8,["disabled","onClick"])],64)):P("",!0),t(c,{icon:o(a).includes(u.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op50",border:!1,onClick:O=>Y(u.name)},null,8,["icon","onClick"])],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):P("",!0)],64))),128))]),l("div",Ce,[e[27]||(e[27]=l("h3",{"text-lg":""}," Appearance ",-1)),t(N,{p4:"",flex:"~ col gap-2"},{default:s(()=>[l("div",null,[t(q,null,{default:s(({toggle:n,isDark:U})=>[t(c,{n:"primary",onClick:n},{default:s(()=>[e[11]||(e[11]=l("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),B(" "+_(U.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),e[14]||(e[14]=l("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),e[15]||(e[15]=l("p",null,"UI Scale",-1)),t(E,{modelValue:o(d),"onUpdate:modelValue":e[0]||(e[0]=n=>f(d)?d.value=n:null),n:"primary"},{default:s(()=>[(r(),b(k,null,h(R,n=>l("option",{key:n[0],value:n[1]},_(n[0]),9,Se)),64))]),_:1},8,["modelValue"]),e[16]||(e[16]=l("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),t(y,{modelValue:o($),"onUpdate:modelValue":e[1]||(e[1]=n=>f($)?$.value=n:null),"n-primary":""},{default:s(()=>e[12]||(e[12]=[l("span",null," Expand Sidebar ",-1)])),_:1},8,["modelValue"]),t(y,{modelValue:o(D),"onUpdate:modelValue":e[2]||(e[2]=n=>f(D)?D.value=n:null),disabled:o($),"n-primary":""},{default:s(()=>e[13]||(e[13]=[l("span",null," Scrollable Sidebar ",-1)])),_:1},8,["modelValue","disabled"])]),_:1}),e[28]||(e[28]=l("h3",{mt2:"","text-lg":""}," Features ",-1)),t(N,{p4:"",flex:"~ col gap-2"},{default:s(()=>[t(y,{modelValue:o(g),"onUpdate:modelValue":e[3]||(e[3]=n=>f(g)?g.value=n:null),"n-primary":""},{default:s(()=>e[17]||(e[17]=[l("span",null,"Close DevTools when clicking outside",-1)])),_:1},8,["modelValue"]),t(y,{modelValue:o(S),"onUpdate:modelValue":e[4]||(e[4]=n=>f(S)?S.value=n:null),"n-primary":""},{default:s(()=>e[18]||(e[18]=[l("span",null,"Show help buttons",-1)])),_:1},8,["modelValue"]),t(y,{modelValue:o(C),"onUpdate:modelValue":e[5]||(e[5]=n=>f(C)?C.value=n:null),"n-primary":""},{default:s(()=>e[19]||(e[19]=[l("span",null,"Always show the floating panel",-1)])),_:1},8,["modelValue"]),e[20]||(e[20]=l("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),e[21]||(e[21]=l("p",null,"Minimize floating panel on inactive",-1)),t(E,{modelValue:o(T),"onUpdate:modelValue":e[6]||(e[6]=n=>f(T)?T.value=n:null),modelModifiers:{number:!0},"n-primary":""},{default:s(()=>[(r(),b(k,null,h(W,n=>l("option",{key:n[0],value:n[1]},_(n[0]),9,Te)),64))]),_:1},8,["modelValue"])]),_:1}),e[29]||(e[29]=l("h3",{mt2:"","text-lg":""}," Feedback ",-1)),t(N,{p4:"",flex:"~ col gap-2"},{default:s(()=>[t(y,{modelValue:o(I),"onUpdate:modelValue":e[7]||(e[7]=n=>f(I)?I.value=n:null),"n-primary":""},{default:s(()=>[e[22]||(e[22]=l("span",null,"Send anonymous statistics, help us improving DevTools",-1)),t(G,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op50:"",textContent:"Learn more"})]),_:1},8,["modelValue"]),e[25]||(e[25]=l("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),l("div",$e,[t(c,{n:"blue",to:"https://github.com/nuxt/devtools/discussions/29",target:"_blank"},{default:s(()=>e[23]||(e[23]=[l("div",{"i-carbon-data-enrichment":""},null,-1),B(" Ideas & Suggestions ")])),_:1}),t(c,{n:"orange",to:"https://github.com/nuxt/devtools/issues",target:"_blank"},{default:s(()=>e[24]||(e[24]=[l("div",{"i-carbon-debug":""},null,-1),B(" Bug Reports ")])),_:1})])]),_:1}),e[30]||(e[30]=l("h3",{mt2:"","text-lg":""}," Debug ",-1)),l("div",Ne,[t(c,{n:"orange",onClick:Z},{default:s(()=>e[26]||(e[26]=[l("div",{"i-carbon-breaking-change":""},null,-1),B(" Reset Local Settings & State ")])),_:1})])])])])}}});export{Ee as default};
|
package/dist/client/_nuxt/{stacktrace-list.vue-ctsox658.js → stacktrace-list.vue-gv8cnf42.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as m}from"./filepath-item.vue-
|
|
1
|
+
import{_ as m}from"./filepath-item.vue-dx2h1i9n.js";import{H as p}from"./fm9jupb1.js";import{k as f,S as r,F as s,ab as _,Q as n,U as o,a5 as h,O as d,W as k}from"./vendor/json-editor-vue-mdfcgt41.js";const g={mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},x={"text-right":""},N={"ws-nowrap":""},B=f({__name:"StacktraceList",props:{stacktrace:{}},setup($){const i=p();function c(a){try{let t=new URL(a).pathname;return t.startsWith("/_nuxt/")&&(t=t.slice(6)),t.startsWith("/@id/virtual:nuxt:")?`#build/${t.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):t.includes("/@fs/")?`/${t.split("/@fs/")[1]}`:(i.value?.rootDir||"")+t}catch{return a}}return(a,t)=>{const l=m;return n(),r("div",g,[(n(!0),r(s,null,_(a.stacktrace,(e,u)=>(n(),r(s,{key:u},[o("div",x,h(e.functionName||"(anonymous)"),1),o("div",N,[e.fileName?(n(),d(l,{key:0,filepath:`${c(e.fileName)}:${e.lineNumber}:${e.columnNumber}`,subpath:""},null,8,["filepath"])):k("",!0)])],64))),128))])}}});export{B as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Q as m,at as o,r as n}from"./
|
|
1
|
+
import{Q as m,at as o,r as n}from"./fm9jupb1.js";import{l as s}from"./vendor/json-editor-vue-mdfcgt41.js";function u(){const p=m(),a=o("getComponents",()=>n.getComponents()),l=s(()=>Object.entries(p.value?.nuxt?.vueApp._context.components||{}).map(([e])=>({pascalName:e,global:!0})).filter(e=>!/^Lazy[A-Z]/.test(e.pascalName)).filter(e=>!(a.value||[]).find(t=>t.pascalName===e.pascalName)));return s(()=>[...l.value,...a.value||[]].sort((e,t)=>e.pascalName.localeCompare(t.pascalName)))}function i(){return o("getComponentsRelationships",()=>n.getComponentsRelationships())}export{i as a,u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as S,S as C,e as _}from"./
|
|
1
|
+
import{y as S,S as C,e as _}from"./fm9jupb1.js";import{k as N,j as b,B as O,c as j,af as M,Q as i,S as p,U as d,Y as u,u as a,a5 as k,W as m,V as R,a2 as $,a3 as z,a8 as D,O as g,F as E,a1 as P,aw as A,n as F}from"./vendor/json-editor-vue-mdfcgt41.js";const J=["open"],U={flex:"~ gap2","select-none":"","items-center":"",px4:""},x={key:0,class:"bg-red:10 px5 py3 text-red"},Y=N({__name:"StateEditor",props:{name:{},open:{type:Boolean},revision:{},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(h,{emit:V}){const t=h,s=S(t,"open",V,{passive:!0}),w=C(),l=b(),c=b();function f(){c.value=void 0;try{t.state?l.value=JSON.parse(JSON.stringify(t.state||{})):(typeof t.state=="number"||typeof t.state!="string")&&(l.value=t.state)}catch(e){console.error(e),c.value=e}}O(()=>{f(),j(()=>[t.revision,t.state],e=>{typeof e!="number"&&typeof e!="string"?v(e,t.state):l.value=t.state},{deep:!0})});function v(e,r){const n=e[1];for(const o in n)Array.isArray(n[o])?r[o]=n[o].slice():typeof n[o]=="object"&&n[o]!==null?v(n[o],r[o]):r[o]=n[o]}async function B(){f(),await F()}return(e,r)=>{const n=_,o=M("tooltip");return i(),p("div",{class:"state-editor-details",open:e.name?a(s):!0},[d("div",U,[e.name?(i(),p("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:u(a(s)?"":"op50"),onClick:r[0]||(r[0]=y=>s.value=!a(s))},[d("div",{"i-carbon-chevron-right":"",transition:"",class:u(a(s)?"rotate-90 op0":"")},null,2),d("code",{px3:"",py1:"","font-mono":"",class:u(a(s)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},k(e.name),3)],2)):m("",!0),R(e.$slots,"actions",$(z({isOpen:a(s),name:e.name,state:e.state}))),a(s)?D((i(),g(n,{key:1,title:"Refresh View",icon:"carbon-renew",border:!1,onClick:B},null,512)),[[o,"Refresh View",void 0,{bottom:!0}]]):m("",!0)]),a(s)||!e.name?(i(),p(E,{key:0},[c.value?(i(),p("div",x," Error: "+k(c.value),1)):(i(),g(a(A),P({key:1,modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=y=>l.value=y)},e.$attrs,{class:["json-editor-vue",[a(w)==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":t.readonly,indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"]))],64)):m("",!0)],8,J)}}});export{Y as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as j}from"./nbadge-
|
|
1
|
+
import{_ as j}from"./nbadge-gs58euic.js";import{_ as F}from"./ncode-block.vue-bfbbo3c9.js";import{_ as L}from"./ncheckbox.vue-lcng4tp3.js";import{l as W,au as q,av as A,j as E,n as G,q as H,w as O,e as Q,x as Y,aw as Z,H as z,Y as J,Z as K,ax as X,at as ee}from"./fm9jupb1.js";import{k as te,b as P,Q as p,S as v,V as ae,u as o,a5 as $,W as w,F as B,a0 as s,O as ne,$ as u,U as _,a6 as c,l as oe}from"./vendor/json-editor-vue-mdfcgt41.js";const se={key:0},le={p4:"",flex:"~ col gap-1"},re={class:"text-lg font-medium leading-6"},ue={flex:"~ gap-3",mt2:"","justify-end":""},ve=te({__name:"NpmVersionCheck",props:{packageName:{},options:{},showVersion:{type:Boolean,default:!0}},setup(l){const a=l,t=W(),{info:n,update:i,state:g,processId:y,restart:m}=q(a.packageName,a.options),k=P(!0),N=P(!0),U=A(),x=E(),D=G();async function C(){const r=await i(async e=>x.start(e));H("npm:update",{packageName:a.packageName,oldVersion:n.value?.current}),r&&N.value&&U.value.push({id:r,message:`${a.packageName} has been updated. Do you want to restart the Nuxt server now?`}),r&&k.value&&(D.value=r,t.push("/modules/terminals"))}return(r,e)=>{const b=j,S=F,h=L,T=O,V=Q,I=Y;return p(),v(B,null,[ae(r.$slots,"default",{id:o(y),info:o(n),update:C,state:o(g),restart:o(m)},()=>[o(n)&&r.showVersion?(p(),v("code",se,$(`v${o(n).current}`),1)):w("",!0),o(n)?.latest?(p(),v(B,{key:1},[o(n).needsUpdate?(p(),v("button",{key:0,onClick:e[0]||(e[0]=f=>C())},[s(b,{n:"green",title:"updates available",textContent:"updates available"})])):(p(),ne(b,{key:1,n:"gray",title:"latest",textContent:"latest"}))],64)):w("",!0)]),s(o(x),null,{default:u(({resolve:f,args:R})=>[s(I,{"model-value":!0,onClose:d=>f(!1)},{default:u(()=>[_("div",le,[_("h3",re," Update "+$(a.packageName)+"? ",1),e[8]||(e[8]=_("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(S,{code:R[0],lang:"bash",my3:"",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),s(h,{modelValue:k.value,"onUpdate:modelValue":e[1]||(e[1]=d=>k.value=d),n:"primary"},{default:u(()=>e[3]||(e[3]=[c(" Navigate to terminal ")])),_:1},8,["modelValue"]),s(h,{modelValue:N.value,"onUpdate:modelValue":e[2]||(e[2]=d=>N.value=d),n:"primary"},{default:u(()=>e[4]||(e[4]=[c(" Restart Nuxt server after update ")])),_:1},8,["modelValue"]),_("div",ue,[s(T,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:u(()=>e[5]||(e[5]=[c(" Please make sure to backup your project first. ")])),_:1}),s(V,{onClick:d=>f(!1)},{default:u(()=>e[6]||(e[6]=[c(" Cancel ")])),_:2},1032,["onClick"]),s(V,{n:"solid primary",onClick:d=>f(!0)},{default:u(()=>e[7]||(e[7]=[c(" Update ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)}}}),M=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"];function ie(){return ee("getModulesList",async()=>(await $fetch("https://api.nuxt.com/modules?version=3")).modules.filter(a=>!M.includes(a.npm)&&a.compatibility.nuxt.includes(">=3")))}function _e(){return Z("installed-modules",()=>{const l=z(),a=ie();return oe(()=>(l.value?._installedModules||[]).map(t=>{if(!t.entryPath)return;const n=!!(t.entryPath&&J(t.entryPath)),i=t.meta?.name?t.meta?.name:t.entryPath?n?K(t.entryPath):l.value?.rootDir?X(t.entryPath,l.value?.rootDir).path:void 0:void 0,g=!!l.value?.modules?.includes(i),y=a.value?.find(m=>m.npm===i)||a.value?.find(m=>m.name===i);return{name:i,isPackageModule:n,isUninstallable:g,info:y,...t}}).filter(t=>t&&(!t.name||!M.includes(t.name))))})}export{ve as _,ie as a,_e as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as ne,b9 as ae,l as oe,m as T,z as se,r as f,h as k,ba as z,e as le,v as re,D as ue,W as ie,c as de,p as me,a5 as pe}from"./
|
|
1
|
+
import{S as ne,b9 as ae,l as oe,m as T,z as se,r as f,h as k,ba as z,e as le,v as re,D as ue,W as ie,c as de,p as me,a5 as pe}from"./fm9jupb1.js";import{_ as ve}from"./nselect.vue-fu3yp2s3.js";import{_ as fe}from"./nlink.vue-grxar87b.js";import{_ as ce}from"./filepath-item.vue-dx2h1i9n.js";import{k as W,b as U,ax as E,y as ye,c as ge,w as _e,l as ke,u as c,Q as s,O as p,$ as r,U as l,a0 as d,A as be,S as u,F as x,ab as A,a5 as b,Y as F,Z as M,a6 as i,W as R,aw as xe,a1 as we,a8 as Ce,ah as Se,am as Ke}from"./vendor/json-editor-vue-mdfcgt41.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-fpe2sz4h.js";const Ve={class:"h-[48px] flex items-center justify-between gap1 px-3"},$e={class:"w-full text-sm"},Ne=["value"],Ie=["onClick"],he={key:0,"h-full":"","of-hidden":"",flex:"~ col"},De={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},je={class:"flex items-center gap-4"},Ue={key:1},Ae=["onKeyup"],Me={key:0,op50:""},Be={key:1},Le={"font-bold":""},qe={"text-sm":""},Pe=W({__name:"StorageDetails",async setup(O){let m,g;const w=ne(),C=ae(),S=oe(),K=U(""),_=U(""),o=T("storage:current",""),t=U(),y=T("storage:file:state",""),{data:V}=([m,g]=E(()=>z("storageMounts",()=>f.getStorageMounts())),m=await m,g(),m),{data:$,refresh:B}=([m,g]=E(async()=>z("storageKeys",async()=>o.value?await f.getStorageKeys(o.value):[])),m=await m,g(),m),G=C.hook("storage:key:update",async(n,e)=>{if(!(!o.value||n.split(":")[0]!==o.value)&&(await B(),y.value===n)){if(e==="remove")return S.replace({query:{storage:o.value}});await I(y.value)}});ye(G),ge(o,()=>{B(),y.value=""}),_e(async()=>{if(!y.value){t.value=null;return}I(y.value)}),se("keydown",n=>{n.key==="s"&&(n.ctrlKey||n.metaKey)&&(h(),n.preventDefault())});function N(n){return n.replace(`${o.value}:`,"")}const Q=ke(()=>$.value?$.value.filter(n=>n.includes(K.value)):[]);async function I(n){const e=await f.getStorageItem(await k(),n);t.value={key:n,updatedKey:N(n),editingKey:!1,content:e,updatedContent:e}}async function Y(){if(!_.value||!o.value)return;const n=`${o.value}:${_.value}`;$.value?.includes(n)||await f.setStorageItem(await k(),n,""),S.replace({query:{storage:o.value,key:n}}),_.value=""}async function h(){t.value&&(await f.setStorageItem(await k(),t.value.key,t.value.updatedContent),await I(t.value.key))}async function Z(){!t.value||!o.value||(await f.removeStorageItem(await k(),t.value.key),t.value=null)}async function H(){if(!t.value||!o.value)return;const n=`${o.value}:${t.value.updatedKey}`,e=await k();await f.setStorageItem(e,n,t.value.updatedContent),await f.removeStorageItem(e,t.value.key),S.replace({query:{storage:o.value,key:n}})}return(n,e)=>{const D=le,J=ve,j=re,X=ue,L=fe,q=ie,P=de,ee=me,te=ce;return c(o)?(s(),p(ee,{key:0,"storage-key":"tab-storage"},{left:r(()=>[l("div",Ve,[d(D,{icon:"carbon-chevron-left","ml--1":"",border:!1,onClick:e[0]||(e[0]=a=>o.value="")}),l("div",$e,[d(J,{modelValue:c(o),"onUpdate:modelValue":e[1]||(e[1]=a=>be(o)?o.value=a:null),n:"primary",icon:"carbon-data-base"},{default:r(()=>[(s(!0),u(x,null,A(c(V),(a,v)=>(s(),u("option",{key:v,value:v},b(v),9,Ne))),128))]),_:1},8,["modelValue"])])]),d(j,{modelValue:K.value,"onUpdate:modelValue":e[2]||(e[2]=a=>K.value=a),icon:"carbon-search",placeholder:"Search...",n:"primary sm",border:"y x-none base! rounded-0",class:"w-full py2 ring-0!"},null,8,["modelValue"]),(s(!0),u(x,null,A(Q.value,a=>(s(),u(x,{key:a},[l("button",{block:"","w-full":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:F(a===t.value?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:v=>y.value=a},b(N(a)),11,Ie),e[8]||(e[8]=l("div",{"x-divider":""},null,-1))],64))),128)),d(j,{modelValue:_.value,"onUpdate:modelValue":e[3]||(e[3]=a=>_.value=a),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:M(Y,["enter"])},null,8,["modelValue"])]),right:r(()=>[t.value?.key?(s(),u("div",he,[l("div",De,[l("div",je,[t.value.editingKey?(s(),p(j,{key:0,modelValue:t.value.updatedKey,"onUpdate:modelValue":e[4]||(e[4]=a=>t.value.updatedKey=a),onKeyup:M(H,["enter"])},null,8,["modelValue"])):(s(),u("code",Ue,[i(b(N(t.value.key))+" ",1),d(X,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:e[5]||(e[5]=a=>t.value.editingKey=!0)})])),t.value.editingKey?R("",!0):(s(),p(D,{key:2,n:"green xs",disabled:t.value.content===t.value.updatedContent,class:F({"border-green":t.value.content!==t.value.updatedContent}),onClick:h},{default:r(()=>e[9]||(e[9]=[i(" Save ")])),_:1},8,["disabled","class"]))]),l("div",null,[d(D,{n:"red xs",onClick:Z},{default:r(()=>e[10]||(e[10]=[i(" Delete ")])),_:1})])]),typeof t.value.content=="object"?(s(),p(c(xe),we({key:0,modelValue:t.value.updatedContent,"onUpdate:modelValue":e[6]||(e[6]=a=>t.value.updatedContent=a),class:[[c(w)==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},n.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):Ce((s(),u("textarea",{key:1,"onUpdate:modelValue":e[7]||(e[7]=a=>t.value.updatedContent=a),placeholder:"Item value...",class:"h-full of-auto p-4 text-sm font-mono outline-none",onKeyup:M(Se(h,["ctrl"]),["enter"])},null,40,Ae)),[[Ke,t.value.updatedContent]])])):(s(),p(P,{key:1},{default:r(()=>[d(q,{px6:"",py4:""},{default:r(()=>[e[12]||(e[12]=i(" Select one key to start.")),e[13]||(e[13]=l("br",null,null,-1)),e[14]||(e[14]=i("Learn more about ")),d(L,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:r(()=>e[11]||(e[11]=[i(" Nitro storage ")])),_:1})]),_:1})]),_:1}))]),_:1})):(s(),p(P,{key:1},{default:r(()=>[Object.keys(c(V)).length?(s(),u("p",Me," Select one storage to start: ")):(s(),u("p",Be,[e[16]||(e[16]=i(" No custom storage defined in ")),e[17]||(e[17]=l("code",null,"nitro.storage",-1)),e[18]||(e[18]=i(".")),e[19]||(e[19]=l("br",null,null,-1)),e[20]||(e[20]=i(" Learn more about ")),d(L,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:r(()=>e[15]||(e[15]=[i(" Nitro storage ")])),_:1})])),(s(!0),u(x,null,A(c(V),(a,v)=>(s(),p(q,{key:v,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:Te=>o.value=v},{default:r(()=>[l("span",Le,b(v),1),e[21]||(e[21]=l("br",null,null,-1)),l("span",qe,b(a.driver)+" driver",1),e[22]||(e[22]=l("br",null,null,-1)),a.base?(s(),p(te,{key:0,"text-xs":"",filepath:a.base},null,8,["filepath"])):R("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}}),Qe=W({__name:"storage",setup(O){return(m,g)=>{const w=Pe,C=pe;return s(),p(C,null,{default:r(()=>[d(w)]),_:1})}}});export{Qe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b9 as B,z as E,r as f,h as p,e as $,bb as V,n as D,D as F,a5 as z}from"./
|
|
1
|
+
import{b9 as B,z as E,r as f,h as p,e as $,bb as V,n as D,D as F,a5 as z}from"./fm9jupb1.js";import{x as I,a as M}from"./vendor/xterm-h0ftnevm.js";import{k as y,b as g,B as P,Q as t,S as d,U as c,a0 as A,O as m,W as v,a5 as _,F as N,l as R,w as L,u as x,ab as S,Y as h,ah as j,a6 as C,$ as q}from"./vendor/json-editor-vue-mdfcgt41.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-fpe2sz4h.js";const O={border:"t base",flex:"~ gap-2","items-center":"",p2:""},Q={"text-sm":"",op50:""},U=y({__name:"TerminalView",props:{id:{}},setup(b){const n=b,i=g(),r=B(),o=g();let a;P(async()=>{a=new I.Terminal({convertEol:!0,cols:80,screenReaderMode:!0});const u=new M.FitAddon;a.loadAddon(u),a.open(i.value),u.fit(),E(window,"resize",()=>{u.fit()}),o.value=await f.getTerminalDetail(await p(),n.id),o.value?.buffer&&a.write(o.value.buffer),r.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 w(){f.runTerminalAction(await p(),n.id,"terminate")}return(u,e)=>{const l=$;return t(),d(N,null,[c("div",{ref_key:"container",ref:i,"h-full":"","w-full":"","of-auto":"","bg-black":""},null,512),c("div",O,[A(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=>w())})):v("",!0),c("span",Q,_(o.value?.description),1)])],64)}}}),W={key:0,"h-full":"","w-full":"","of-hidden":"",grid:"~ rows-[max-content_1fr_max-content]"},Y={flex:"~",border:"b base","flex-1":"","items-center":"","n-navbar-glass":""},G=["onClick"],H={key:1,p10:""},J={key:1,"h-full":"",flex:"","items-center":"","justify-center":""},K=y({__name:"TerminalPage",setup(b){const n=V(),i=D(),r=R(()=>n.value?.find(a=>a.id===i.value));async function o(a){f.runTerminalAction(await p(),a,"remove")}return L(()=>{!i.value&&n.value?.length&&(i.value=n.value[0].id)}),(a,s)=>{const k=F,w=$,u=U;return x(n)?.length?(t(),d("div",W,[c("div",Y,[(t(!0),d(N,null,S(x(n),e=>(t(),d("button",{key:e.id,border:"r base",flex:"~ gap-2","items-center":"",px3:"",py2:"",class:h(e.id===r.value?.id?"bg-active":""),onClick:l=>i.value=e.id},[e.icon?(t(),m(k,{key:0,icon:e.icon},null,8,["icon"])):v("",!0),c("span",{class:h(e.id===r.value?.id?"":"op50")},_(e.name)+_(e.isTerminated?" (terminated)":""),3),e.isTerminated?(t(),m(w,{key:1,icon:"carbon-close","mx--2":"",border:!1,onClick:j(l=>o(e.id),["stop"])},null,8,["onClick"])):v("",!0)],10,G))),128))]),r.value?(t(),m(u,{id:r.value.id,key:r.value.id},null,8,["id"])):(t(),d("div",H,[s[0]||(s[0]=C(" Terminal ")),c("code",null,_(x(i)),1),s[1]||(s[1]=C(" not found "))]))])):(t(),d("div",J,s[2]||(s[2]=[c("em",{op50:""},"No terminal attached",-1)])))}}}),ae=y({__name:"terminals",setup(b){return(n,i)=>{const r=K,o=z;return t(),m(o,null,{default:q(()=>[A(r)]),_:1})}}});export{ae as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a6 as M,K as O,z as j,bc as Y,_ as U,S as K,I as Q,e as z,a8 as X,Q as q,bd as Z,H as ee,j as se,J as ne,c as oe,r as G,C as te,x as ae}from"./l4ouzdbv.js";import{_ as V}from"./duration-display.vue-h3qa2740.js";import{k as B,l as w,Q as t,S as i,U as o,X as T,a5 as m,u as g,F as f,ab as E,O as v,b as C,c as le,n as re,W as x,a0 as u,Y as R,R as H,$ as h,aw as ie,a1 as pe,a6 as F,ai as ce}from"./vendor/json-editor-vue-mdfcgt41.js";import{_ as P}from"./nbadge-nscxg0ea.js";import{_ as de}from"./composable-item.vue-fyg5hnt4.js";import{_ as ue}from"./stacktrace-list.vue-ctsox658.js";import{_ as me}from"./ndrawer.vue-mplxtid5.js";import{_ as ke}from"./launch-page.vue-o72v57lt.js";import{_ as ye}from"./nlink.vue-eiz3iwjv.js";import{_ as fe}from"./code-diff.vue-3ei6zne1.js";import{_ as ve}from"./help-fab.vue-hr5z89ai.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-fpe2sz4h.js";import"./nmarkdown.vue-nnge8mex.js";import"./client-klf75x38.js";import"./filepath-item.vue-gspuql6t.js";import"./constants-b32h69zq.js";import"./ncode-block.vue-bfbbo3c9.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=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=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"}),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}),(_,I)=>{const $=V,W=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,(L,J)=>(t(),i("div",{key:J,"h-3px":"",rounded:"",style:T({width:`max(${L.relativeWidth*100}%, 10px)`,position:"absolute",top:`${L.layer*4}px`,left:`${L.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in _?_.getHashColorFromString:g(M))(L.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(W,{"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:I[0]||(I[0]=L=>n("select",L))},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:""},Ie={flex:"~ col items-start"},Le={"text-xs":"","font-mono":"",op30:""},We={"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=V;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"?("getHashColorFromString"in n?n.getHashColorFromString: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",Ie,[o("div",Le,m(a.from),1),o("div",We,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))])}}}),Ve={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":""},He={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Pe={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=K(),r=Q();return(s,c)=>{const k=z,D=H("VMenu");return typeof s.value=="string"?(t(),i("div",Ve,m(JSON.stringify(s.value)),1)):typeof s.value=="number"?(t(),i("div",je,m(s.value),1)):typeof s.value=="boolean"?(t(),i("div",Oe,m(s.value),1)):typeof s.value>"u"?(t(),i("div",ze," undefined ")):typeof s.value=="function"?(t(),i("div",Re," [Function"+m(s.value.name?`: ${s.value.name}`:"")+"] ",1)):s.value===null?(t(),i("div",Ge," null ")):(t(),v(D,{key:6,placement:"top"},{popper:h(()=>[u(g(l),{onSetup:e}),n.value?(t(),i("div",He," Failed to display object: "+m(n.value),1)):p.value?(t(),i("div",Pe,[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: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":""},Qe={flex:"~ gap-1","font-mono":""},Xe={key:1},qe={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=O(()=>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=P,c=de,k=Ye,D=V,A=ue;return a.record?(t(),i("div",Ue,[o("div",Ke,[u(s,{n:"yellow",textContent:"Function call"})]),o("div",Qe,[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",qe,", ")):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=O(()=>d.record.start,{showSecond:!0});return(n,e)=>{const l=P,a=V;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=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=H("VTooltip"),k=z,D=we,A=Me,S=ss,_=is,I=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: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?(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(I,{"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 '#imports'</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;"><</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;">></span></span>
|
|
1
|
+
import{a6 as M,K as O,z as j,bc as Y,_ as U,S as K,I as Q,e as z,a8 as X,Q as q,bd as Z,H as ee,j as se,J as ne,c as oe,r as G,C as te,x as ae}from"./fm9jupb1.js";import{_ as V}from"./duration-display.vue-h3qa2740.js";import{k as B,l as w,Q as t,S as i,U as o,X as T,a5 as m,u as g,F as f,ab as E,O as v,b as C,c as le,n as re,W as x,a0 as u,Y as R,R as H,$ as h,aw as ie,a1 as pe,a6 as F,ai as ce}from"./vendor/json-editor-vue-mdfcgt41.js";import{_ as P}from"./nbadge-gs58euic.js";import{_ as de}from"./composable-item.vue-hb6xcfj7.js";import{_ as ue}from"./stacktrace-list.vue-gv8cnf42.js";import{_ as me}from"./ndrawer.vue-n0jo71pp.js";import{_ as ke}from"./launch-page.vue-d1verc8u.js";import{_ as ye}from"./nlink.vue-grxar87b.js";import{_ as fe}from"./code-diff.vue-bw0ide58.js";import{_ as ve}from"./help-fab.vue-crgr5bip.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-fpe2sz4h.js";import"./nmarkdown.vue-nnge8mex.js";import"./client-klf75x38.js";import"./filepath-item.vue-dx2h1i9n.js";import"./constants-b32h69zq.js";import"./ncode-block.vue-bfbbo3c9.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=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=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"}),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}),(_,I)=>{const $=V,W=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,(L,J)=>(t(),i("div",{key:J,"h-3px":"",rounded:"",style:T({width:`max(${L.relativeWidth*100}%, 10px)`,position:"absolute",top:`${L.layer*4}px`,left:`${L.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in _?_.getHashColorFromString:g(M))(L.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(W,{"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:I[0]||(I[0]=L=>n("select",L))},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:""},Ie={flex:"~ col items-start"},Le={"text-xs":"","font-mono":"",op30:""},We={"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=V;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"?("getHashColorFromString"in n?n.getHashColorFromString: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",Ie,[o("div",Le,m(a.from),1),o("div",We,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))])}}}),Ve={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":""},He={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Pe={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=K(),r=Q();return(s,c)=>{const k=z,D=H("VMenu");return typeof s.value=="string"?(t(),i("div",Ve,m(JSON.stringify(s.value)),1)):typeof s.value=="number"?(t(),i("div",je,m(s.value),1)):typeof s.value=="boolean"?(t(),i("div",Oe,m(s.value),1)):typeof s.value>"u"?(t(),i("div",ze," undefined ")):typeof s.value=="function"?(t(),i("div",Re," [Function"+m(s.value.name?`: ${s.value.name}`:"")+"] ",1)):s.value===null?(t(),i("div",Ge," null ")):(t(),v(D,{key:6,placement:"top"},{popper:h(()=>[u(g(l),{onSetup:e}),n.value?(t(),i("div",He," Failed to display object: "+m(n.value),1)):p.value?(t(),i("div",Pe,[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: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":""},Qe={flex:"~ gap-1","font-mono":""},Xe={key:1},qe={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=O(()=>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=P,c=de,k=Ye,D=V,A=ue;return a.record?(t(),i("div",Ue,[o("div",Ke,[u(s,{n:"yellow",textContent:"Function call"})]),o("div",Qe,[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",qe,", ")):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=O(()=>d.record.start,{showSecond:!0});return(n,e)=>{const l=P,a=V;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=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=H("VTooltip"),k=z,D=we,A=Me,S=ss,_=is,I=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: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?(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(I,{"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 '#imports'</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;"><</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;">></span></span>
|
|
2
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;"> '</span><span style="color:#B56959;--shiki-dark:#C98A7D;">#app/composables/router</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;">'</span></span>
|
|
3
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;"> '</span><span style="color:#B56959;--shiki-dark:#C98A7D;">#imports</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;">'</span></span>
|
|
4
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;"> '</span><span style="color:#B56959;--shiki-dark:#C98A7D;">@vueuse/core</span><span style="color:#B5695977;--shiki-dark:#C98A7D77;">'</span></span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as V}from"./nnavbar.vue-
|
|
1
|
+
import{_ as V}from"./nnavbar.vue-ncwj4zjw.js";import{_ as D}from"./ncode-block.vue-bfbbo3c9.js";import{bh as S,bi as B,M as j,p as P,W as U,c as W}from"./fm9jupb1.js";import{Q as i,S as c,U as a,k as E,b as f,w as I,l as _,a0 as l,$ as u,F as d,ab as z,a5 as v,Y as G,O as H}from"./vendor/json-editor-vue-mdfcgt41.js";import{_ as L}from"./help-fab.vue-crgr5bip.js";import"./client-klf75x38.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-fpe2sz4h.js";const M={class:"markdown-body"},O={__name:"virtual-files",setup(h,{expose:r}){return r({frontmatter:{}}),(p,o)=>(i(),c("div",M,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)])))}},Q=O,R=["onClick"],Y={key:0,"h-full":"","of-hidden":"",flex:"~ col"},q={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},ne=E({__name:"virtual-files",setup(h){const r=f(""),n=S(),p=B(),o=f();I(()=>{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=_(()=>n.value?n.value.entries.filter(e=>!e.id.startsWith(`${n.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),b=_(()=>new j(m.value,{keys:["id","path"]})),k=_(()=>r.value?b.value.search(r.value).map(e=>e.item):m.value);return(e,t)=>{const y=V,g=D,C=U,$=W,F=P,N=Q,w=L;return i(),c(d,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(d,null,z(k.value,s=>(i(),c(d,{key:s.id},[a("button",{block:"","w-full":"","select-none":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:G(s.id===o.value?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:A=>p.value=s.id},v(x(s.id)),11,R),t[1]||(t[1]=a("div",{"x-divider":""},null,-1))],64))),128))]),right:u(()=>[o.value?.content?(i(),c("div",Y,[a("div",q,[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(),H($,{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(w,null,{default:u(()=>[l(N)]),_:1})],64)}}});export{ne as default};
|
package/dist/client/index.html
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-bgn3dvs3.css">
|
|
4
4
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-o0jf01nd.css">
|
|
5
5
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-na153c8v.css">
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/fm9jupb1.js">
|
|
7
7
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-mdfcgt41.js">
|
|
8
8
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-mnpxkox6.js">
|
|
9
9
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-fpe2sz4h.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-fvu08dbs.js">
|
|
11
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-
|
|
12
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-
|
|
13
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-
|
|
11
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-jhyqf6kc.js">
|
|
12
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-murxybmz.js">
|
|
13
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-grn7kg3n.js">
|
|
14
14
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-ks657l4w.js">
|
|
15
15
|
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-l9hojrit.css">
|
|
16
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-
|
|
16
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-e7oew4nr.js">
|
|
17
17
|
<link rel="prefetch" as="style" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-jiufalsw.css">
|
|
18
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-
|
|
19
|
-
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
20
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"
|
|
18
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-g6yrkaek.js">
|
|
19
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/fm9jupb1.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1727123793147,false]</script>
|
|
20
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"99ac6b65-839f-4dab-9c11-759a1509e3bf",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://devtools.nuxt.com",
|
|
7
7
|
"repository": {
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"vite-plugin-vue-inspector": "^5.2.0",
|
|
69
69
|
"which": "^3.0.1",
|
|
70
70
|
"ws": "^8.18.0",
|
|
71
|
-
"@nuxt/devtools-kit": "1.5.
|
|
72
|
-
"@nuxt/devtools-wizard": "1.5.
|
|
71
|
+
"@nuxt/devtools-kit": "1.5.1",
|
|
72
|
+
"@nuxt/devtools-wizard": "1.5.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@iconify-json/bxl": "^1.2.0",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"vis-network": "^9.1.9",
|
|
114
114
|
"vue-tsc": "^2.1.6",
|
|
115
115
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
116
|
-
"@nuxt/devtools": "1.5.
|
|
116
|
+
"@nuxt/devtools": "1.5.1"
|
|
117
117
|
},
|
|
118
118
|
"scripts": {
|
|
119
119
|
"build": "pnpm dev:prepare && pnpm build:module && pnpm build:client && esno scripts/prepare.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as e,S as n,Q as t}from"./vendor/json-editor-vue-mdfcgt41.js";const c={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(o){return(s,_)=>(t(),n("div",c))}});export{r as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"9a9f67ed-5b9a-4514-bf49-62859c510bf6","timestamp":1726840825962,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|