@vitejs/devtools-vite 0.0.0-alpha.17 → 0.0.0-alpha.18
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/index.d.mts +81 -63
- package/dist/index.mjs +10723 -156
- package/dist/nitro.json +1 -1
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/{BBFR_Uo5.js → 7Xmy2J8w.js} +1 -1
- package/dist/public/_nuxt/{Ivdx0lA9.js → B3PvEETZ.js} +1 -1
- package/dist/public/_nuxt/{RlFrOrwQ.js → B9OSaO_y.js} +1 -1
- package/dist/public/_nuxt/{sTN5Ot43.js → BC_PfwI9.js} +1 -1
- package/dist/public/_nuxt/{BVY1sWiJ.js → BKyQoL6o.js} +1 -1
- package/dist/public/_nuxt/{CI-Sc-2P.js → BMA1s1VI.js} +1 -1
- package/dist/public/_nuxt/{B661rCRY.js → BUo-D9gX.js} +3 -3
- package/dist/public/_nuxt/{D7fGBzoc.js → BZWmKTD9.js} +1 -1
- package/dist/public/_nuxt/{CrP3spb8.js → BZtNaBML.js} +1 -1
- package/dist/public/_nuxt/{D-NARtgK.js → Bexkoyc0.js} +1 -1
- package/dist/public/_nuxt/{f1KvgLIQ.js → BmVkH5Zk.js} +1 -1
- package/dist/public/_nuxt/{DdkDM4fj.js → Brb1aI-2.js} +1 -1
- package/dist/public/_nuxt/{BiQ0ZhR_.js → C2OwekHB.js} +1 -1
- package/dist/public/_nuxt/{Bl_zhAit.js → C3jmS5U3.js} +1 -1
- package/dist/public/_nuxt/{CoLW5wV8.js → C6Dt55Q_.js} +1 -1
- package/dist/public/_nuxt/{C_cs-58z.js → CEjOBQvu.js} +1 -1
- package/dist/public/_nuxt/{DHD8rbcK.js → CPoVdMeM.js} +1 -1
- package/dist/public/_nuxt/{BYCB-Hif.js → CbwMXojR.js} +1 -1
- package/dist/public/_nuxt/{Cv1sf0OD.js → CiEs9bP4.js} +1 -1
- package/dist/public/_nuxt/{7pdU4mzw.js → Cs8a9RWb.js} +1 -1
- package/dist/public/_nuxt/{mbqImpEE.js → CuCopH82.js} +1 -1
- package/dist/public/_nuxt/{DQDcWwzr.js → Cuw21ZGH.js} +1 -1
- package/dist/public/_nuxt/D4hayKlJ.js +1 -0
- package/dist/public/_nuxt/{VMul6hew.js → D4jWsLoz.js} +1 -1
- package/dist/public/_nuxt/DC_Jmw0F.js +1 -0
- package/dist/public/_nuxt/{CHrIIE6Z.js → DIDN4Ni9.js} +1 -1
- package/dist/public/_nuxt/{BdsP-Cx2.js → DMWw7fde.js} +1 -1
- package/dist/public/_nuxt/DPbvd5Yn.js +1 -0
- package/dist/public/_nuxt/{BB7zYkKg.js → DYWgomYl.js} +1 -1
- package/dist/public/_nuxt/{BwrSljRH.js → HdutzUjM.js} +1 -1
- package/dist/public/_nuxt/{vlGwL1DD.js → IRC0Jirb.js} +1 -1
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/2a08e48f-ceea-4c2d-9171-63b36d85d409.json +1 -0
- package/dist/public/_nuxt/ebWyu6T_.js +33 -0
- package/dist/public/_nuxt/{entry.C1YP59mZ.css → entry.CsYdxLia.css} +1 -1
- package/dist/public/_nuxt/error-404.l69urhXw.css +1 -0
- package/dist/public/_nuxt/error-500.C1nOm2YL.css +1 -0
- package/dist/public/_nuxt/{BO4TB9gH.js → qjx43ao6.js} +1 -1
- package/dist/public/_nuxt/{Dd9_UU0g.js → w-XmH5Bg.js} +1 -1
- package/dist/public/_nuxt/{zcv9DqOS.js → xNC6DpAO.js} +1 -1
- package/dist/public/index.html +1 -1
- package/package.json +7 -7
- package/dist/public/_nuxt/BsfPzBLD.js +0 -33
- package/dist/public/_nuxt/CHXCO5ia.js +0 -1
- package/dist/public/_nuxt/DAv0Rzal.js +0 -1
- package/dist/public/_nuxt/builds/meta/f71a649b-f47c-44eb-9005-86c44268b9bf.json +0 -1
- package/dist/public/_nuxt/error-404.Brb8RtBp.css +0 -1
- package/dist/public/_nuxt/error-500.BscIrM8z.css +0 -1
- package/dist/public/_nuxt/falkWS6X.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.grid[data-v-6799eb39]{display:grid}.mb-2[data-v-6799eb39]{margin-bottom:.5rem}.mb-4[data-v-6799eb39]{margin-bottom:1rem}.max-w-520px[data-v-6799eb39]{max-width:520px}.min-h-screen[data-v-6799eb39]{min-height:100vh}.w-full[data-v-6799eb39]{width:100%}.flex[data-v-6799eb39]{display:flex}.place-content-center[data-v-6799eb39]{place-content:center}.items-center[data-v-6799eb39]{align-items:center}.justify-center[data-v-6799eb39]{justify-content:center}.overflow-hidden[data-v-6799eb39]{overflow:hidden}.bg-white[data-v-6799eb39]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-6799eb39]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-6799eb39]{text-align:center}.text-\[80px\][data-v-6799eb39]{font-size:80px}.text-2xl[data-v-6799eb39]{font-size:1.5rem;line-height:2rem}.text-sm[data-v-6799eb39]{font-size:.875rem;line-height:1.25rem}.text-\[\#020420\][data-v-6799eb39]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-6799eb39]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.hover\:text-\[\#00DC82\][data-v-6799eb39]:hover{--un-text-opacity:1;color:rgb(0 220 130/var(--un-text-opacity))}.font-medium[data-v-6799eb39]{font-weight:500}.font-semibold[data-v-6799eb39]{font-weight:600}.leading-none[data-v-6799eb39]{line-height:1}.tracking-wide[data-v-6799eb39]{letter-spacing:.025em}.font-sans[data-v-6799eb39]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-6799eb39]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.underline[data-v-6799eb39]{text-decoration-line:underline}.underline-offset-3[data-v-6799eb39]{text-underline-offset:3px}.antialiased[data-v-6799eb39]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-6799eb39]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-6799eb39]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-6799eb39]{font-size:110px}.sm\:text-3xl[data-v-6799eb39]{font-size:1.875rem;line-height:2.25rem}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.grid[data-v-ba000b8a]{display:grid}.mb-2[data-v-ba000b8a]{margin-bottom:.5rem}.mb-4[data-v-ba000b8a]{margin-bottom:1rem}.max-w-520px[data-v-ba000b8a]{max-width:520px}.min-h-screen[data-v-ba000b8a]{min-height:100vh}.place-content-center[data-v-ba000b8a]{place-content:center}.overflow-hidden[data-v-ba000b8a]{overflow:hidden}.bg-white[data-v-ba000b8a]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2[data-v-ba000b8a]{padding-left:.5rem;padding-right:.5rem}.text-center[data-v-ba000b8a]{text-align:center}.text-\[80px\][data-v-ba000b8a]{font-size:80px}.text-2xl[data-v-ba000b8a]{font-size:1.5rem;line-height:2rem}.text-\[\#020420\][data-v-ba000b8a]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\[\#64748B\][data-v-ba000b8a]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold[data-v-ba000b8a]{font-weight:600}.leading-none[data-v-ba000b8a]{line-height:1}.tracking-wide[data-v-ba000b8a]{letter-spacing:.025em}.font-sans[data-v-ba000b8a]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums[data-v-ba000b8a]{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased[data-v-ba000b8a]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-\[\#020420\][data-v-ba000b8a]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\:text-white[data-v-ba000b8a]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:text-\[110px\][data-v-ba000b8a]{font-size:110px}.sm\:text-3xl[data-v-ba000b8a]{font-size:1.875rem;line-height:2.25rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Tt as e,Vt as t,en as n,it as r,lt as i,mt as a,ot as o,pt as s,st as c,ut as l}from"./
|
|
1
|
+
import{Tt as e,Vt as t,en as n,it as r,lt as i,mt as a,ot as o,pt as s,st as c,ut as l}from"./BUo-D9gX.js";import{n as u}from"./DQtLZa7C.js";import{t as d}from"./Cs8a9RWb.js";import{r as f}from"./IRC0Jirb.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=a({__name:`BuildMetrics`,props:{metrics:{}},setup(a){let h=a,g=o(()=>{let e=h.metrics,t=e?.resolve_ids.reduce((e,t)=>(e+=t.duration,e),0),n=e?.loads?.reduce((e,t)=>(e+=t.duration,e),0),r=e?.transforms.reduce((e,t)=>(e+=t.duration,e),0);return{resolveIds:t,loads:n,transforms:r,total:t+n+r}}),_=o(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=o(()=>{let e=h.metrics?.transforms.filter(e=>e.transformed_code_size);return e?.[e.length-1]?.transformed_code_size});return(a,o)=>{let h=d,y=f;return e(),l(`div`,p,[s(h,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${n(u)(g.value.resolveIds,!0)}`},{default:t(()=>[...o[0]||=[c(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(h,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${n(u)(g.value.loads,!0)}`},{default:t(()=>[...o[1]||=[c(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),s(h,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${n(u)(g.value.transforms,!0)}`},{default:t(()=>[...o[2]||=[c(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),o[6]||=c(`span`,{op40:``},`|`,-1),s(h,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${n(u)(g.value.total,!0)}`},{default:t(()=>[...o[3]||=[c(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(e(),l(r,{key:0},[o[5]||=c(`span`,{op40:``},`|`,-1),c(`div`,m,[s(y,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),o[4]||=c(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),s(y,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):i(``,!0)])}}}),g=Object.assign(h,{__name:`ModulesBuildMetrics`});export{g as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,B as t,Ct as n,G as r,H as i,I as a,J as o,Jt as s,K as c,L as l,Q as u,R as d,St as f,U as p,X as m,Xt as h,Y as g,Z as _,_t as v,jt as y,mt as b,ot as x,q as S,z as C}from"./
|
|
1
|
+
import{$ as e,B as t,Ct as n,G as r,H as i,I as a,J as o,Jt as s,K as c,L as l,Q as u,R as d,St as f,U as p,X as m,Xt as h,Y as g,Z as _,_t as v,jt as y,mt as b,ot as x,q as S,z as C}from"./BUo-D9gX.js";var w=(...e)=>e.find(e=>e!==void 0);function T(e){let t=e.componentName||`NuxtLink`;function o(e){return typeof e==`string`&&e.startsWith(`#`)}function u(t,n,r){let i=r??e.trailingSlash;if(!t||i!==`append`&&i!==`remove`)return t;if(typeof t==`string`)return D(t,i);let a=`path`in t&&t.path!==void 0?t.path:n(t).path;return{...t,name:void 0,path:D(a,i)}}function T(t){let n=r(),a=S(),s=x(()=>!!t.target&&t.target!==`_self`),c=x(()=>{let e=t.to||t.href||``;return typeof e==`string`&&g(e,{acceptRelative:!0})}),l=y(`RouterLink`),d=l&&typeof l!=`string`?l.useLink:void 0,f=x(()=>{if(t.external)return!0;let e=t.to||t.href||``;return typeof e==`object`?!1:e===``||c.value}),h=x(()=>{let e=t.to||t.href||``;return f.value?e:u(e,n.resolve,t.trailingSlash)}),_=f.value?void 0:d?.({...t,to:h}),v=x(()=>{let r=t.trailingSlash??e.trailingSlash;if(!h.value||c.value||o(h.value))return h.value;if(f.value){let e=typeof h.value==`object`&&`path`in h.value?p(h.value):h.value;return D(typeof e==`object`?n.resolve(e).href:e,r)}return typeof h.value==`object`?n.resolve(h.value)?.href??null:D(m(a.app.baseURL,h.value),r)});return{to:h,hasTarget:s,isAbsoluteUrl:c,isExternal:f,href:v,isActive:_?.isActive??x(()=>h.value===n.currentRoute.value.path),isExactActive:_?.isExactActive??x(()=>h.value===n.currentRoute.value.path),route:_?.route??x(()=>n.resolve(h.value)),async navigate(e){await i(v.value,{replace:t.replace,external:f.value||s.value})}}}return b({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:T,setup(t,{slots:i}){let u=r(),{to:m,href:g,navigate:b,isExternal:x,hasTarget:S,isAbsoluteUrl:E}=T(t),D=h(!1),k=s(null),j=e=>{k.value=t.custom?e?.$el?.nextElementSibling:e?.$el};function M(n){return!D.value&&(typeof t.prefetchOn==`string`?t.prefetchOn===n:t.prefetchOn?.[n]??e.prefetchOn?.[n])&&(t.prefetch??e.prefetch)!==!1&&t.noPrefetch!==!0&&t.target!==`_blank`&&!A()}async function N(e=c()){if(D.value)return;D.value=!0;let t=typeof m.value==`string`?m.value:x.value?p(m.value):u.resolve(m.value).fullPath,n=x.value?new URL(t,window.location.href).href:t;await Promise.all([e.hooks.callHook(`link:prefetch`,n).catch(()=>{}),!x.value&&!S.value&&a(m.value,u).catch(()=>{})])}if(M(`visibility`)){let e=c(),t,r=null;n(()=>{let n=O();l(()=>{t=C(()=>{k?.value?.tagName&&(r=n.observe(k.value,async()=>{r?.(),r=null,await N(e)}))})})}),f(()=>{t&&d(t),r?.(),r=null})}return()=>{if(!x.value&&!S.value&&!o(m.value)){let n={ref:j,to:m.value,activeClass:t.activeClass||e.activeClass,exactActiveClass:t.exactActiveClass||e.exactActiveClass,replace:t.replace,ariaCurrentValue:t.ariaCurrentValue,custom:t.custom};return t.custom||(M(`interaction`)&&(n.onPointerenter=N.bind(null,void 0),n.onFocus=N.bind(null,void 0)),D.value&&(n.class=t.prefetchedClass||e.prefetchedClass),n.rel=t.rel||void 0),v(y(`RouterLink`),n,i.default)}let n=t.target||null,r=w(t.noRel?``:t.rel,e.externalRelAttribute,E.value||S.value?`noopener noreferrer`:``)||null;return t.custom?i.default?i.default({href:g.value,navigate:b,prefetch:N,get route(){if(!g.value)return;let e=new URL(g.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return _(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:g.value}},rel:r,target:n,isExternal:x.value||S.value,isActive:!1,isExactActive:!1}):null:v(`a`,{ref:k,href:g.value||null,rel:r,target:n,onClick:e=>{if(!(x.value||S.value))return e.preventDefault(),t.replace?u.replace(g.value):u.push(g.value)}},i.default?.())}}})}var E=T(o);function D(t,n){let r=n===`append`?u:e;return g(t)&&!t.startsWith(`http`)?t:r(t,!0)}function O(){let e=c();if(e._observer)return e._observer;let t=null,n=new Map;return e._observer={observe:(e,r)=>(t||=new IntersectionObserver(e=>{for(let t of e){let e=n.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),n.set(e,r),t.observe(e),()=>{n.delete(e),t?.unobserve(e),n.size===0&&(t?.disconnect(),t=null)})}}var k=/2g/;function A(){let e=navigator.connection;return!!(e&&(e.saveData||k.test(e.effectiveType)))}export{E as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as e,Jt as t,Tt as n,Vt as r,W as i,_ as a,ct as o,en as s,ft as c,g as l,in as u,it as d,kt as f,lt as p,mt as m,ot as h,pt as g,st as _,tn as v,ut as y,xt as b}from"./
|
|
1
|
+
import{G as e,Jt as t,Tt as n,Vt as r,W as i,_ as a,ct as o,en as s,ft as c,g as l,in as u,it as d,kt as f,lt as p,mt as m,ot as h,pt as g,st as _,tn as v,ut as y,xt as b}from"./BUo-D9gX.js";import"./w-XmH5Bg.js";import{i as x}from"./DQtLZa7C.js";import{a as S,s as C}from"./Cuw21ZGH.js";import"./B9OSaO_y.js";import{t as w}from"./BmVkH5Zk.js";import"./DnpfwSMy.js";import{t as T}from"./B3PvEETZ.js";import"./Cs8a9RWb.js";import{t as E}from"./IRC0Jirb.js";import{t as D}from"./qjx43ao6.js";import{t as O}from"./BC_PfwI9.js";import{t as k}from"./C2OwekHB.js";import{t as A}from"./BKyQoL6o.js";import{t as j}from"./C6Dt55Q_.js";import{t as M}from"./D4hayKlJ.js";import{t as ee}from"./CEQkJ3Wx.js";import{t as N}from"./CEjOBQvu.js";import{n as P,t as F}from"./DJHNY-5T.js";var I={flex:`~ col gap-2`,p4:``},L={flex:``,pb2:``},R=m({__name:`FlatList`,props:{session:{},modules:{}},setup(e){return(t,i)=>{let a=w,o=j;return n(),y(`div`,I,[g(o,{items:e.modules,"key-prop":`id`},{default:r(({item:t})=>[_(`div`,L,[g(a,{id:t.id,session:e.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},null,8,[`id`,`session`])])]),_:1},8,[`items`])])}}}),z=Object.assign(R,{__name:`ModulesFlatList`}),B={flex:`~ col gap-2`,p4:``},V={flex:``,pb2:``},H={flex:`~ gap-1 wrap`,"text-xs":``},U={flex:`~ auto text-xs wrap`},W={key:0,flex:`~ items-center`},G={key:0,op20:``},K={flex:`~ none gap-1 wrap justify-end`},q=m({__name:`DetailedList`,props:{session:{},modules:{}},setup(e){let t=e,i=h(()=>{let e=new Map;for(let n of t.modules){let t=n.buildMetrics?.transforms.filter(e=>e.source_code_size!==e.transformed_code_size).filter(e=>e.transformed_code_size);e.set(n.id,t)}return e});return(t,a)=>{let s=k,c=D,l=w,u=j;return n(),y(`div`,B,[g(u,{items:e.modules,"key-prop":`id`},{default:r(({item:t})=>[_(`div`,V,[g(l,{id:t.id,session:e.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},{detail:r(()=>[_(`div`,H,[_(`ul`,U,[(n(!0),y(d,null,f(i.value.get(t.id),(e,r)=>(n(),y(d,{key:r},[e.source_code_size!==e.transformed_code_size&&e.transformed_code_size?(n(),y(`li`,W,[g(s,{name:e.plugin_name,class:`font-mono ws-nowrap op-50`},null,8,[`name`]),r===i.value.get(t.id).length-1?p(``,!0):(n(),y(`span`,G,`|`))])):p(``,!0)],64))),128))]),a[0]||=_(`div`,{flex:`~ auto gap-1`,"of-hidden":``},null,-1),_(`div`,K,[_(`span`,null,[t.buildMetrics?(n(),o(c,{key:0,metrics:t.buildMetrics},null,8,[`metrics`])):p(``,!0)])])])]),_:2},1032,[`id`,`session`])])]),_:1},8,[`items`])])}}}),J=Object.assign(q,{__name:`ModulesDetailedList`}),Y=[`d`,`stroke-dasharray`],X=m({__name:`Graph`,props:{modules:{},session:{}},setup(e){let t=e,i=h(()=>t.modules);return O({modules:i,spacing:{width:400,height:55,linkOffset:20,margin:800,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:n,spacing:r,tree:a,hierarchy:o,collapsedNodes:c,container:l,modulesMap:u,nodes:d,links:f,nodesMap:p,linksMap:m,width:g,height:_,childToParentMap:v,focusOn:y}=e,x=h(()=>i.value.filter(e=>e.importers.length===0));return(e=!0)=>{g.value=window.innerWidth,_.value=window.innerHeight;let i=new Set,h=o({module:{id:`~root`}},e=>e.module.id===`~root`?(x.value.forEach(e=>{i.add(e),t.value&&v.set(e.id,`~root`)}),x.value.map(e=>({module:e,expanded:!c.has(e.id),hasChildren:!1}))):c.has(e.module.id)?[]:e.module.imports.map(n=>{let r=u.value.get(n.module_id);if(r&&!i.has(r)&&!(v.has(r.id)&&v.get(r.id)!==e.module.id))return i.add(r),t.value&&v.set(r.id,e.module.id),{module:r,import:n,expanded:!c.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,a().nodeSize([s(r.height),s(r.width)+s(r.gap)])(h);let S=h.descendants();for(let e of S)[e.x,e.y]=[e.y-s(r.width),e.x],e.data.module.imports&&(e.data.hasChildren=e.data.module.imports?.filter(t=>v.get(t.module_id)===e.data.module.id).length>0);let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<s(r.margin))for(let e of S)e.x+=Math.abs(C)+s(r.margin);if(w<s(r.margin))for(let e of S)e.y+=Math.abs(w)+s(r.margin);d.value=S,p.clear();for(let e of S)p.set(e.data.module.id,e);let T=h.links().filter(e=>e.source.data.module.id!==`~root`).map(e=>({...e,import:e.source.data.import,id:`${e.source.data.module.id}|${e.target.data.module.id}`}));m.clear();for(let e of T)m.set(e.id,e);f.value=T,b(()=>{g.value=l.value.scrollWidth/n.value+s(r.margin),_.value=l.value.scrollHeight/n.value+s(r.margin);let t=x.value?.[0]?.id;e&&t&&b(()=>{y(t,!1)})})}}}),(t,a)=>{let s=w,c=N;return n(),o(c,{session:e.session,modules:i.value},{default:r(({node:t,nodesRefMap:n})=>[g(s,{id:t.data.module.id,ref:e=>n.set(t.data.module.id,e?.$el),link:!0,session:e.session,minimal:!0,flex:`1`},null,8,[`id`,`session`])]),link:r(({link:e,d:t,linkClass:n})=>[_(`path`,{d:t,class:v(n),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,Y)]),_:1},8,[`session`,`modules`])}}}),Z=Object.assign(X,{__name:`ModulesGraph`}),Q={"of-auto":``,"max-h-screen":``,"pt-45":``,relative:``},te={flex:`~ col gap-2`,p4:``},ne=m({__name:`Folder`,props:{session:{},modules:{}},setup(e){let t=e,r=h(()=>{if(!t.session.modulesList.length)return{workspace:{children:{},items:[]},nodeModules:{children:{},items:[]},virtual:{children:{},items:[]}};let e=[],n=[],r=[];return t.modules.map(e=>({full:e.id,path:e.path})).forEach(i=>{i.full.startsWith(t.session.meta.cwd)?(i.path.startsWith(`../`)||(i.path=i.full.slice(t.session.meta.cwd.length+1)),e.push(i)):i.full.includes(`node_modules`)?n.push({full:i.full,path:i.full}):i.full.startsWith(`virtual:`)&&r.push(i)}),{workspace:x(e,`Project Root`),nodeModules:x(n,`Node Modules`),virtual:x(r,`Virtual Modules`)}});return(e,t)=>{let i=M;return n(),y(`div`,Q,[_(`div`,te,[Object.keys(r.value.workspace.children).length?(n(),o(i,{key:0,node:r.value.workspace,p:`l3`,icon:`i-catppuccin:folder-dist icon-catppuccin`,"icon-open":`i-catppuccin:folder-dist-open icon-catppuccin`,link:!0},null,8,[`node`])):p(``,!0),Object.keys(r.value.nodeModules.children).length?(n(),y(d,{key:1},[t[0]||=_(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),g(i,{node:r.value.nodeModules,p:`l3`,icon:`i-catppuccin:folder-node icon-catppuccin`,"icon-open":`i-catppuccin:folder-node-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):p(``,!0),Object.keys(r.value.virtual.children).length?(n(),y(d,{key:2},[t[1]||=_(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),g(i,{node:r.value.virtual,p:`l3`,icon:`i-catppuccin:folder-components icon-catppuccin`,"icon-open":`i-catppuccin:folder-components-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):p(``,!0)])])}}}),re=Object.assign(ne,{__name:`ModulesFolder`}),ie={relative:``,"max-h-screen":``,"of-hidden":``},ae={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},oe={flex:`~ gap-2 items-center`,p2:``,border:`t base`},$=[`onClick`],se={key:0,"of-auto":``,"h-screen":``,"pt-45":``},ce={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},le={op50:``},ue={key:1,"of-auto":``,"h-screen":``,"pt-45":``},de={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},fe={op50:``},pe=m({__name:`index`,props:{session:{}},setup(p){let m=p,b=i(),x=e(),w=t({search:b.query.search||``,selected:b.query.file_types?P(b.query.file_types):null,node_modules:b.query.node_modules?P(b.query.node_modules):null}),D=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`}];a(w.value,e=>{let t={...b.query,search:e.search||void 0,file_types:e.selected||void 0,node_modules:e.node_modules||void 0};x.replace({query:F(t)})},{debounce:500});let O=h(()=>m.session.modulesList.map(e=>({mod:e,path:T(e.id,m.session.meta.cwd),type:C(e.id)}))),k=h(()=>S.filter(e=>O.value.some(t=>e.match.test(t.mod.id)))),j=h(()=>{let e=O.value;return w.value.selected&&(e=e.filter(e=>{let t=C(e.mod.id);return w.value.selected.includes(t.name)})),w.value.node_modules&&(e=e.filter(e=>e.path.moduleName&&w.value.node_modules.includes(e.path.moduleName))),e.map(e=>({...e.mod,path:e.path.path}))}),M=l(()=>j.value,()=>new ee(j.value,{includeScore:!0,keys:[`id`],ignoreLocation:!0,threshold:.4})),N=h(()=>w.value.search?M.value.search(w.value.search).map(e=>e.item):j.value);function I(e){b.query.module&&x.replace({query:{...b.query,module:void 0}}),E.value.moduleGraphViewType=e}return(e,t)=>{let i=A,a=z,l=J,m=Z,h=re;return n(),y(`div`,ie,[_(`div`,ae,[g(i,{modelValue:w.value,"onUpdate:modelValue":t[0]||=e=>w.value=e,rules:k.value},{default:r(()=>[_(`div`,oe,[t[1]||=_(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(n(),y(d,null,f(D,e=>_(`button`,{key:e.value,"btn-action":``,class:v(s(E).moduleGraphViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>I(e.value)},[_(`div`,{class:v(e.icon)},null,2),c(` `+u(e.label),1)],10,$)),64))])]),_:1},8,[`modelValue`,`rules`])]),s(E).moduleGraphViewType===`list`?(n(),y(`div`,se,[g(a,{session:p.session,modules:N.value},null,8,[`session`,`modules`]),_(`div`,ce,[_(`span`,le,u(N.value.length)+` of `+u(p.session.modulesList.length),1)])])):s(E).moduleGraphViewType===`detailed-list`?(n(),y(`div`,ue,[g(l,{session:p.session,modules:N.value},null,8,[`session`,`modules`]),_(`div`,de,[_(`span`,fe,u(N.value.length)+` of `+u(p.session.modulesList.length),1)])])):s(E).moduleGraphViewType===`graph`?(n(),o(m,{key:2,session:p.session,modules:N.value},null,8,[`session`,`modules`])):(n(),o(h,{key:3,session:p.session,modules:N.value},null,8,[`session`,`modules`]))])}}});export{pe as default};
|
package/dist/public/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vite DevTools</title><link rel="stylesheet" href="/.devtools-vite/_nuxt/entry.
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vite DevTools</title><link rel="stylesheet" href="/.devtools-vite/_nuxt/entry.CsYdxLia.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-vite/_nuxt/BUo-D9gX.js"><meta name="description" content="DevTools for Vite"><meta property="og:title" content="Vite DevTools"><meta property="og:description" content="DevTools for Vite"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script type="module" src="/.devtools-vite/_nuxt/BUo-D9gX.js" crossorigin></script><script id="unhead:payload" type="application/json">{"title":"Vite DevTools"}</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},1763512938523,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-vite/",buildId:"2a08e48f-ceea-4c2d-9171-63b36d85d409",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/devtools-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-alpha.
|
|
4
|
+
"version": "0.0.0-alpha.18",
|
|
5
5
|
"description": "DevTools for Vite (work in progress)",
|
|
6
6
|
"author": "VoidZero Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@floating-ui/dom": "^1.7.4",
|
|
33
|
-
"@pnpm/read-project-manifest": "^1001.
|
|
34
|
-
"@rolldown/debug": "^1.0.0-beta.
|
|
33
|
+
"@pnpm/read-project-manifest": "^1001.2.0",
|
|
34
|
+
"@rolldown/debug": "^1.0.0-beta.50",
|
|
35
35
|
"ansis": "^4.2.0",
|
|
36
36
|
"birpc": "^2.8.0",
|
|
37
37
|
"cac": "^6.7.14",
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
"split2": "^4.2.0",
|
|
50
50
|
"structured-clone-es": "^1.0.0",
|
|
51
51
|
"tinyglobby": "^0.2.15",
|
|
52
|
-
"unconfig": "^7.4.
|
|
52
|
+
"unconfig": "^7.4.1",
|
|
53
53
|
"unstorage": "^1.17.2",
|
|
54
54
|
"vue-virtual-scroller": "^2.0.0-beta.8",
|
|
55
55
|
"ws": "^8.18.3",
|
|
56
|
-
"@vitejs/devtools-
|
|
57
|
-
"@vitejs/devtools-
|
|
56
|
+
"@vitejs/devtools-rpc": "0.0.0-alpha.18",
|
|
57
|
+
"@vitejs/devtools-kit": "0.0.0-alpha.18"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/codemirror": "^5.60.17",
|
|
61
61
|
"@types/diff": "^8.0.0",
|
|
62
62
|
"@types/split2": "^4.2.3",
|
|
63
63
|
"@types/stream-json": "^1.7.8",
|
|
64
|
-
"@unocss/nuxt": "^66.5.
|
|
64
|
+
"@unocss/nuxt": "^66.5.6",
|
|
65
65
|
"@vueuse/components": "^14.0.0",
|
|
66
66
|
"@vueuse/nuxt": "^14.0.0",
|
|
67
67
|
"@vueuse/router": "^14.0.0",
|