@nuxt/devtools 1.6.0 → 1.6.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 +11 -11
- package/dist/client/404.html +11 -11
- package/dist/client/_nuxt/__blank-9iu4tv0f.js +1 -0
- package/dist/client/_nuxt/{analyze-build-bc01194s.js → analyze-build-nqeql2rs.js} +1 -1
- package/dist/client/_nuxt/{assets-gg6tjz6t.js → assets-jvf69cxf.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/ab41567e-1b8e-4e48-840c-591dd62a1246.json +1 -0
- package/dist/client/_nuxt/{client-klf75x38.js → client-dgt05ivb.js} +1 -1
- package/dist/client/_nuxt/{code-diff.vue-bbo8eegp.js → code-diff.vue-i05ynbel.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-bs8dkort.js → code-snippets.vue-17pri79b.js} +1 -1
- package/dist/client/_nuxt/components-d1yojeh6.js +1 -0
- package/dist/client/_nuxt/components-tree-gcdwuwyn.js +1 -0
- package/dist/client/_nuxt/{composable-item.vue-c5sp1o62.js → composable-item.vue-ihurs8kc.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_-ecwrjze9.js → custom-_name_-ik277266.js} +1 -1
- package/dist/client/_nuxt/{default-gmsazh48.js → default-c97elafe.js} +1 -1
- package/dist/client/_nuxt/{duration-display.vue-h3qa2740.js → duration-display.vue-n7a3864v.js} +1 -1
- package/dist/client/_nuxt/entry.css-kzp9yj98.css +1 -0
- package/dist/client/_nuxt/{error-404-h4fqrpm0.js → error-404-chhw212o.js} +1 -1
- package/dist/client/_nuxt/{error-500-kqeq0g89.js → error-500-oi6j6wh4.js} +1 -1
- package/dist/client/_nuxt/{error-obpt6k3h.js → error-kcw3c5n2.js} +1 -1
- package/dist/client/_nuxt/{filepath-item.vue-n7veglgp.js → filepath-item.vue-jp3k05dh.js} +1 -1
- package/dist/client/_nuxt/full-j1e8c0fm.js +1 -0
- package/dist/client/_nuxt/{help-fab.vue-fdt1wizc.js → help-fab.vue-kqlhhn29.js} +1 -1
- package/dist/client/_nuxt/{hooks-efkra01q.js → hooks-bbeec6rm.js} +1 -1
- package/dist/client/_nuxt/{imports-ttyvta35.js → imports-cadcbs1b.js} +1 -1
- package/dist/client/_nuxt/index-f7gtpn4a.js +2 -0
- package/dist/client/_nuxt/{index-jig07ory.js → index-h6urifqi.js} +1 -1
- package/dist/client/_nuxt/{launch-page.vue-sa4rwdv5.js → launch-page.vue-opmg26gw.js} +1 -1
- package/dist/client/_nuxt/{modules-clzspzzh.js → modules-dckgmu9u.js} +1 -1
- package/dist/client/_nuxt/nbadge-ggvrch1r.js +1 -0
- package/dist/client/_nuxt/{ncheckbox.vue-h2ndpucy.js → ncheckbox.vue-ir8t2t9x.js} +1 -1
- package/dist/client/_nuxt/{ncode-block.vue-bfbbo3c9.js → ncode-block.vue-d334f2dp.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-of9w84z3.js → ndrawer.vue-fdnlfvql.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-fg6r3yd7.js → ndropdown.vue-haoov59z.js} +1 -1
- package/dist/client/_nuxt/{nicon-title.vue-g9trlv29.js → nicon-title.vue-ef3vf9hr.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-jt5fxemk.js → nlink.vue-eq8gk3iz.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown.vue-nnge8mex.js → nmarkdown.vue-bwv440ol.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-lvh4ek84.js → nnavbar.vue-jap952ju.js} +1 -1
- package/dist/client/_nuxt/none-oo3u4xub.js +1 -0
- package/dist/client/_nuxt/{nsection-block-oxvuqj5d.js → nsection-block-hjiyf44n.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs.vue-jbavzq5x.js → nselect-tabs.vue-ctgj28x2.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-bpqzr4w7.js → nselect.vue-kb4ychx8.js} +1 -1
- package/dist/client/_nuxt/nxp3p1l5.js +16 -0
- package/dist/client/_nuxt/{open-graph-m7tynilx.js → open-graph-fwcucpwr.js} +1 -1
- package/dist/client/_nuxt/{overview-c0efrbe7.js → overview-du74wcc9.js} +1 -1
- package/dist/client/_nuxt/{pages-ehpry05k.js → pages-m3ksw3nx.js} +1 -1
- package/dist/client/_nuxt/{payload-h6m4z8q8.js → payload-np4rk8uw.js} +1 -1
- package/dist/client/_nuxt/pinia-n87t5bm8.js +1 -0
- package/dist/client/_nuxt/{plugins-kw7bkrlj.js → plugins-jcz0d5g6.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs-ikmw9eyd.js → runtime-configs-h7di7gvu.js} +1 -1
- package/dist/client/_nuxt/{server-route-inputs.vue-mdebn387.js → server-route-inputs.vue-hs0k8usl.js} +1 -1
- package/dist/client/_nuxt/{server-routes-ni30gkww.js → server-routes-chengpen.js} +2 -2
- package/dist/client/_nuxt/{server-tasks-kyepxd0d.js → server-tasks-il5b1l64.js} +1 -1
- package/dist/client/_nuxt/{settings-hpl0aq9k.js → settings-k964fibj.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list.vue-o3y775xx.js → stacktrace-list.vue-n51hjl65.js} +1 -1
- package/dist/client/_nuxt/{state-components-gjywkn4p.js → state-components-j9dsopcn.js} +1 -1
- package/dist/client/_nuxt/{state-editor.vue-i1wc6lzu.js → state-editor.vue-eev8247c.js} +1 -1
- package/dist/client/_nuxt/{state-modules-cg77e2k8.js → state-modules-jx57qxz7.js} +1 -1
- package/dist/client/_nuxt/{storage-fk7l5l70.js → storage-c7x4faia.js} +1 -1
- package/dist/client/_nuxt/{terminals-osgm1ufi.js → terminals-lb2z98e5.js} +1 -1
- package/dist/client/_nuxt/{timeline-o0jhmda4.js → timeline-bpt56wqz.js} +1 -1
- package/dist/client/_nuxt/vendor/{json-editor-vue-mdfcgt41.js → json-editor-vue-f126ciji.js} +1 -1
- package/dist/client/_nuxt/vendor/shiki-hhqxa887.js +161 -0
- package/dist/client/_nuxt/{virtual-files-lddzeigf.js → virtual-files-o77aoqwj.js} +1 -1
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-k82i9hy2.js → vue-virtual-scroller.esm-dbbmx9wu.js} +1 -1
- package/dist/client/index.html +11 -11
- package/dist/module.json +1 -1
- package/package.json +7 -7
- package/dist/client/_nuxt/__blank-c3ogaker.js +0 -1
- package/dist/client/_nuxt/builds/meta/dbd07eab-7668-4aa4-b9a0-35fc744ce950.json +0 -1
- package/dist/client/_nuxt/components-esse2omz.js +0 -1
- package/dist/client/_nuxt/components-tree-5is5wtsc.js +0 -1
- package/dist/client/_nuxt/d8ykqm74.js +0 -16
- package/dist/client/_nuxt/entry.css-bgn3dvs3.css +0 -1
- package/dist/client/_nuxt/full-dim3uzh3.js +0 -1
- package/dist/client/_nuxt/index-l7vmcxxc.js +0 -2
- package/dist/client/_nuxt/nbadge-ntuzwfj6.js +0 -1
- package/dist/client/_nuxt/none-c68tef68.js +0 -1
- package/dist/client/_nuxt/pinia-dwfgs7y1.js +0 -1
- package/dist/client/_nuxt/vendor/shiki-fpe2sz4h.js +0 -87
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as V}from"./nnavbar.vue-
|
|
1
|
+
import{_ as V}from"./nnavbar.vue-jap952ju.js";import{_ as D}from"./ncode-block.vue-d334f2dp.js";import{be as S,bf as B,M as j,p as P,W as U,c as W}from"./nxp3p1l5.js";import{Q as i,S as c,U as a,k as E,b as m,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-f126ciji.js";import{_ as L}from"./help-fab.vue-kqlhhn29.js";import"./client-dgt05ivb.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-hhqxa887.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=m(""),n=S(),p=B(),o=m();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 f=_(()=>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(f.value,{keys:["id","path"]})),k=_(()=>r.value?b.value.search(r.value).map(e=>e.item):f.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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{M as re,N as ne,n as Q,Q as $,O as L,P as oe,au as le,s as ae,R as ue,af as ce,a8 as de,S as M,V as A,W,$ as K,F as fe,ab as he,a7 as q,a1 as me,av as pe,X as ye,Y,a0 as ve}from"./vendor/json-editor-vue-
|
|
1
|
+
import{M as re,N as ne,n as Q,Q as $,O as L,P as oe,au as le,s as ae,R as ue,af as ce,a8 as de,S as M,V as A,W,$ as K,F as fe,ab as he,a7 as q,a1 as me,av as pe,X as ye,Y,a0 as ve}from"./vendor/json-editor-vue-f126ciji.js";function be(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var i=e.indexOf("Trident/");if(i>0){var s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let R;function H(){H.init||(H.init=!0,R=be()!==-1)}var E={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){H(),Q(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",R&&this.$el.appendChild(e),e.data="about:blank",R||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!R&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ge=oe();re("data-v-b329ee4c");const Se={class:"resize-observer",tabindex:"-1"};ne();const ze=ge((e,t,i,s,r,a)=>($(),L("div",Se)));E.render=ze;E.__scopeId="data-v-b329ee4c";E.__file="src/components/ResizeObserver.vue";function C(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(t){return typeof t}:C=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(e)}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function Ie(e,t,i){return t&&we(e.prototype,t),e}function X(e){return $e(e)||Te(e)||Oe(e)||Ve()}function $e(e){if(Array.isArray(e))return N(e)}function Te(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Oe(e,t){if(e){if(typeof e=="string")return N(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return N(e,t)}}function N(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function Ve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function ke(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,r,a,u=function(n){for(var d=arguments.length,p=new Array(d>1?d-1:0),S=1;S<d;S++)p[S-1]=arguments[S];if(a=p,!(s&&n===r)){var w=i.leading;typeof w=="function"&&(w=w(n,r)),(!s||n!==r)&&w&&e.apply(void 0,[n].concat(X(a))),r=n,clearTimeout(s),s=setTimeout(function(){e.apply(void 0,[n].concat(X(a))),s=0},t)}};return u._clear=function(){clearTimeout(s),s=null},u}function J(e,t){if(e===t)return!0;if(C(e)==="object"){for(var i in e)if(!J(e[i],t[i]))return!1;return!0}return!1}var Me=function(){function e(t,i,s){_e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(i,s)}return Ie(e,[{key:"createObserver",value:function(i,s){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=xe(i),this.callback=function(c,n){r.options.callback(c,n),c&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var a=this.options.throttleOptions||{},u=a.leading;this.callback=ke(this.callback,this.options.throttle,{leading:function(n){return u==="both"||u==="visible"&&n||u==="hidden"&&!n}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(c){var n=c[0];if(c.length>1){var d=c.find(function(S){return S.isIntersecting});d&&(n=d)}if(r.callback){var p=n.isIntersecting&&n.intersectionRatio>=r.threshold;if(p===r.oldResult)return;r.oldResult=p,r.callback(p,n)}},this.options.intersection),Q(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function Z(e,t,i){var s=t.value;if(s)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new Me(e,s,i);e._vue_visibilityState=r}}function Ae(e,t,i){var s=t.value,r=t.oldValue;if(!J(s,r)){var a=e._vue_visibilityState;if(!s){ee(e);return}a?a.createObserver(s,i):Z(e,{value:s},i)}}function ee(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Re={beforeMount:Z,updated:Ae,unmounted:ee},Ce={itemsLimit:1e3},Ee=/(auto|scroll)/;function te(e,t){return e.parentNode===null?t:te(e.parentNode,t.concat([e]))}var P=function(t,i){return getComputedStyle(t,null).getPropertyValue(i)},Pe=function(t){return P(t,"overflow")+P(t,"overflow-y")+P(t,"overflow-x")},Le=function(t){return Ee.test(Pe(t))};function G(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=te(e.parentNode,[]),i=0;i<t.length;i+=1)if(Le(t[i]))return t[i];return document.scrollingElement||document.documentElement}}function j(e){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(e)}var He={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function Ne(){return this.items.length&&j(this.items[0])!=="object"}var B=!1;if(typeof window<"u"){B=!1;try{var je=Object.defineProperty({},"passive",{get:function(){B=!0}});window.addEventListener("test",null,je)}catch{}}let Be=0;var ie={name:"RecycleScroller",components:{ResizeObserver:E},directives:{ObserveVisibility:Re},props:{...He,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,i=this.sizeField,s=this.minItemSize;let r=1e4,a=0,u;for(let c=0,n=t.length;c<n;c++)u=t[c][i]||s,u<r&&(r=u),a+=u,e[c]={accumulator:a,size:u};return this.$_computedMinItemSize=r,e}return[]},simpleArray:Ne,itemIndexByKey(){const{keyField:e,items:t}=this,i={};for(let s=0,r=t.length;s<r;s++)i[t[s][e]]=s;return i}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,i,s,r){const a=le({id:Be++,index:t,used:!0,key:s,type:r}),u=ae({item:i,position:0,nr:a});return e.push(u),u},unuseView(e,t=!1){const i=this.$_unusedViews,s=e.nr.type;let r=i.get(s);r||(r=[],i.set(s,r)),r.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:i}=this.updateVisibleItems(!1,!0);i||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const i=this.itemSize,s=this.gridItems||1,r=this.itemSecondarySize||i,a=this.$_computedMinItemSize,u=this.typeField,c=this.simpleArray?null:this.keyField,n=this.items,d=n.length,p=this.sizes,S=this.$_views,w=this.$_unusedViews,V=this.pool,se=this.itemIndexByKey;let y,f,T,g,z;if(!d)y=f=g=z=T=0;else if(this.$_prerender)y=g=0,f=z=Math.min(this.prerender,n.length),T=null;else{const o=this.getScroll();if(t){let m=o.start-this.$_lastUpdateScrollPosition;if(m<0&&(m=-m),i===null&&m<a||m<i)return{continuous:!0}}this.$_lastUpdateScrollPosition=o.start;const v=this.buffer;o.start-=v,o.end+=v;let h=0;if(this.$refs.before&&(h=this.$refs.before.scrollHeight,o.start-=h),this.$refs.after){const m=this.$refs.after.scrollHeight;o.end+=m}if(i===null){let m,O=0,F=d-1,b=~~(d/2),U;do U=b,m=p[b].accumulator,m<o.start?O=b:b<d-1&&p[b+1].accumulator>o.start&&(F=b),b=~~((O+F)/2);while(b!==U);for(b<0&&(b=0),y=b,T=p[d-1].accumulator,f=b;f<d&&p[f].accumulator<o.end;f++);for(f===-1?f=n.length-1:(f++,f>d&&(f=d)),g=y;g<d&&h+p[g].accumulator<o.start;g++);for(z=g;z<d&&h+p[z].accumulator<o.end;z++);}else{y=~~(o.start/i*s);const m=y%s;y-=m,f=Math.ceil(o.end/i*s),g=Math.max(0,Math.floor((o.start-h)/i*s)),z=Math.floor((o.end-h)/i*s),y<0&&(y=0),f>d&&(f=d),g<0&&(g=0),z>d&&(z=d),T=Math.ceil(d/s)*i}}f-y>Ce.itemsLimit&&this.itemsLimitError(),this.totalSize=T;let l;const x=y<=this.$_endIndex&&f>=this.$_startIndex;if(x)for(let o=0,v=V.length;o<v;o++)l=V[o],l.nr.used&&(e&&(l.nr.index=se[l.item[c]]),(l.nr.index==null||l.nr.index<y||l.nr.index>=f)&&this.unuseView(l));const D=x?null:new Map;let I,_,k;for(let o=y;o<f;o++){I=n[o];const v=c?I[c]:I;if(v==null)throw new Error(`Key is ${v} on item (keyField is '${c}')`);if(l=S.get(v),!i&&!p[o].size){l&&this.unuseView(l);continue}_=I[u];let h=w.get(_),m=!1;if(!l)x?h&&h.length?l=h.pop():l=this.addView(V,o,I,v,_):(k=D.get(_)||0,(!h||k>=h.length)&&(l=this.addView(V,o,I,v,_),this.unuseView(l,!0),h=w.get(_)),l=h[k],D.set(_,k+1)),S.delete(l.nr.key),l.nr.used=!0,l.nr.index=o,l.nr.key=v,l.nr.type=_,S.set(v,l),m=!0;else if(!l.nr.used&&(l.nr.used=!0,m=!0,h)){const O=h.indexOf(l);O!==-1&&h.splice(O,1)}l.item=I,m&&(o===n.length-1&&this.$emit("scroll-end"),o===0&&this.$emit("scroll-start")),i===null?(l.position=p[o-1].accumulator,l.offset=0):(l.position=Math.floor(o/s)*i,l.offset=o%s*r)}return this.$_startIndex=y,this.$_endIndex=f,this.emitUpdate&&this.$emit("update",y,f,g,z),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=G(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,i=t==="vertical";let s;if(this.pageMode){const r=e.getBoundingClientRect(),a=i?r.height:r.width;let u=-(i?r.top:r.left),c=i?window.innerHeight:window.innerWidth;u<0&&(c+=u,u=0),u+c>a&&(c=a-u),s={start:u,end:u+c}}else i?s={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:s={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return s},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,B?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const i=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/i)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let i,s,r;if(this.pageMode){const a=G(this.$el),u=a.tagName==="HTML"?0:a[t.scroll],c=a.getBoundingClientRect(),d=this.$el.getBoundingClientRect()[t.start]-c[t.start];i=a,s=t.scroll,r=e+u+d}else i=this.$el,s=t.scroll,r=e;i[s]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const De={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Fe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Ue(e,t,i,s,r,a){const u=ue("ResizeObserver"),c=ce("observe-visibility");return de(($(),M("div",{class:Y(["vue-recycle-scroller",{ready:r.ready,"page-mode":i.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...n)=>a.handleScroll&&a.handleScroll(...n))},[e.$slots.before?($(),M("div",De,[A(e.$slots,"before")],512)):W("v-if",!0),($(),L(q(i.listTag),{ref:"wrapper",style:ye({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:Y(["vue-recycle-scroller__item-wrapper",i.listClass])},{default:K(()=>[($(!0),M(fe,null,he(r.pool,n=>($(),L(q(i.itemTag),me({key:n.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${n.position}px) translate${e.direction==="vertical"?"X":"Y"}(${n.offset}px)`,width:i.gridItems?`${e.direction==="vertical"&&i.itemSecondarySize||i.itemSize}px`:void 0,height:i.gridItems?`${e.direction==="horizontal"&&i.itemSecondarySize||i.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[i.itemClass,{hover:!i.skipHover&&r.hoverKey===n.nr.key}]]},pe(i.skipHover?{}:{mouseenter:()=>{r.hoverKey=n.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:K(()=>[A(e.$slots,"default",{item:n.item,index:n.nr.index,active:n.nr.used})]),_:2},1040,["style","class"]))),128)),A(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?($(),M("div",Fe,[A(e.$slots,"after")],512)):W("v-if",!0),ve(u,{onNotify:a.handleResize},null,8,["onNotify"])],34)),[[c,a.handleVisibilityChange]])}ie.render=Ue;ie.__file="src/components/RecycleScroller.vue";export{ie as s};
|
package/dist/client/index.html
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
<!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-
|
|
3
|
+
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-kzp9yj98.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/
|
|
7
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nxp3p1l5.js">
|
|
7
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-f126ciji.js">
|
|
8
8
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-mnpxkox6.js">
|
|
9
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-
|
|
9
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-hhqxa887.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-c97elafe.js">
|
|
12
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-j1e8c0fm.js">
|
|
13
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-oo3u4xub.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-chhw212o.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:{
|
|
18
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-oi6j6wh4.js">
|
|
19
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/nxp3p1l5.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},1732110456496,false]</script>
|
|
20
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"ab41567e-1b8e-4e48-840c-591dd62a1246",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.6.
|
|
4
|
+
"version": "1.6.1",
|
|
5
5
|
"description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devtools.nuxt.com",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@antfu/utils": "^0.7.10",
|
|
36
36
|
"@nuxt/kit": "^3.13.2",
|
|
37
|
-
"@vue/devtools-core": "7.
|
|
38
|
-
"@vue/devtools-kit": "7.
|
|
37
|
+
"@vue/devtools-core": "7.6.4",
|
|
38
|
+
"@vue/devtools-kit": "7.6.4",
|
|
39
39
|
"birpc": "^0.2.17",
|
|
40
40
|
"consola": "^3.2.3",
|
|
41
41
|
"cronstrue": "^2.50.0",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"vite-plugin-vue-inspector": "5.1.3",
|
|
68
68
|
"which": "^3.0.1",
|
|
69
69
|
"ws": "^8.18.0",
|
|
70
|
-
"@nuxt/devtools-
|
|
71
|
-
"@nuxt/devtools-
|
|
70
|
+
"@nuxt/devtools-kit": "1.6.1",
|
|
71
|
+
"@nuxt/devtools-wizard": "1.6.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@iconify-json/bxl": "^1.2.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@unocss/preset-uno": "^0.62.4",
|
|
88
88
|
"@unocss/runtime": "^0.62.4",
|
|
89
89
|
"@vitest/ui": "^2.1.1",
|
|
90
|
-
"@vue/devtools-applet": "7.
|
|
90
|
+
"@vue/devtools-applet": "7.6.4",
|
|
91
91
|
"@vueuse/nuxt": "^11.1.0",
|
|
92
92
|
"@xterm/addon-fit": "^0.10.0",
|
|
93
93
|
"@xterm/xterm": "^5.5.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"vis-network": "^9.1.9",
|
|
113
113
|
"vue-tsc": "^2.1.6",
|
|
114
114
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
115
|
-
"@nuxt/devtools": "1.6.
|
|
115
|
+
"@nuxt/devtools": "1.6.1"
|
|
116
116
|
},
|
|
117
117
|
"scripts": {
|
|
118
118
|
"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":"dbd07eab-7668-4aa4-b9a0-35fc744ce950","timestamp":1728707075747,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as ie,e as X,S as pe,T as re,H as ue,U as de,b as Z,V as ce,W as me,X as fe,M as ve,Y as _e,Z as he,D as be,Q as ge}from"./d8ykqm74.js";import{Q as t,S as _,U as n,k as I,l as S,a6 as Q,a5 as W,a0 as v,u as N,O as x,W as k,F as T,ab as M,V as H,b as L,B as ye,c as we,$ as b,A,R as xe,Y as ke,a1 as z,af as Ce,a7 as $e,a8 as q}from"./vendor/json-editor-vue-mdfcgt41.js";import{_ as Ne}from"./help-fab.vue-fdt1wizc.js";import{_ as Ve}from"./ncheckbox.vue-h2ndpucy.js";import{_ as J}from"./nnavbar.vue-lvh4ek84.js";import{_ as K}from"./nbadge-ntuzwfj6.js";import{_ as ee}from"./filepath-item.vue-n7veglgp.js";import{_ as Se}from"./ndrawer.vue-of9w84z3.js";import{N as Pe}from"./vendor/vis-cum19y28.js";import{_ as De}from"./nselect-tabs.vue-jbavzq5x.js";import{_ as Te}from"./nsection-block-oxvuqj5d.js";import{_ as Ue}from"./nicon-title.vue-g9trlv29.js";import{D as j}from"./constants-b32h69zq.js";import{u as Be,a as Me}from"./state-components-gjywkn4p.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-fpe2sz4h.js";const Le={class:"markdown-body"},Ie={__name:"components",setup(r,{expose:s}){return s({frontmatter:{}}),(a,i)=>(t(),_("div",Le,i[0]||(i[0]=[n("h1",null,"Components",-1),n("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.",-1),n("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},Re=Ie,Fe=/\d/,Ge=["-","_","/","."];function Ae(r=""){if(!Fe.test(r))return r!==r.toLowerCase()}function Ee(r,s){const c=Ge,a=[];if(!r||typeof r!="string")return a;let i="",o,p;for(const m of r){const u=c.includes(m);if(u===!0){a.push(i),i="",o=void 0;continue}const f=Ae(m);if(p===!1){if(o===!1&&f===!0){a.push(i),i=m,o=f;continue}if(o===!0&&f===!1&&i.length>1){const g=i.at(-1);a.push(i.slice(0,Math.max(0,i.length-1))),i=g+m,o=f;continue}}i+=m,o=f,p=u}return a.push(i),a}function ze(r){return r?r[0].toUpperCase()+r.slice(1):""}function ne(r,s){return r?(Array.isArray(r)?r:Ee(r)).map(c=>ze(c)).join(""):""}const We={"text-sm":"","font-mono":""},oe=I({__name:"ComponentName",props:{component:{}},setup(r){const s=r,c=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||""));return(a,i)=>(t(),_("code",We,[i[0]||(i[0]=n("span",{mr1:"",op20:""},"<",-1)),Q(W(c.value),1),i[1]||(i[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),He={flex:"~ col gap1","items-start":"","of-hidden":""},Oe={flex:"~ gap2",px3:""},je={px3:"",pb2:""},Qe={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Xe={"text-sm":""},Ye={"text-primary":""},qe={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Ze={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Je={"text-sm":""},Ke={"text-primary":""},en={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},te=I({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,c=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||"")),a=S(()=>s.component.filePath||s.component.file||s.component.__file||""),i=ie();return(o,p)=>{const m=oe,u=X,f=K,g=ee;return t(),_("div",He,[n("div",Oe,[v(m,{component:o.component},null,8,["component"]),v(u,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:p[0]||(p[0]=h=>N(i)(`<${c.value}></${c.value}>`,"component-name"))}),o.component.global?(t(),x(f,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0)]),n("div",je,[a.value?(t(),x(g,{key:0,filepath:a.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)]),o.dependents?(t(),_("div",Qe,[n("div",Xe,[n("strong",Ye,W(o.dependents.length),1),p[1]||(p[1]=n("span",{op50:""}," references",-1))]),o.dependents.length?(t(),_("div",qe,[(t(!0),_(T,null,M(o.dependents,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),o.dependencies?(t(),_("div",Ze,[n("div",Je,[n("strong",Ke,W(o.dependencies.length),1),p[2]||(p[2]=n("span",{op50:""}," dependencies",-1))]),o.dependencies.length?(t(),_("div",en,[(t(!0),_(T,null,M(o.dependencies,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),H(o.$slots,"default")])}}}),nn={flex:"~ gap-4 wrap","w-full":""},on={relative:"","h-full":"","w-full":""},tn={key:0,py4:"",pt4:"",flex:"~ col"},sn={border:"t base",p4:""},ln=I({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(r){const s=r,c=L(),a=L(),i=pe(),o=L(),p=re(),m=ue(),u=de(),{componentsGraphShowNodeModules:f,componentsGraphShowGlobalComponents:g,componentsGraphShowPages:h,componentsGraphShowLayouts:V,componentsGraphShowWorkspace:y}=Z("ui"),C=L(),d=L(""),R=ce(d,300),F=S(()=>{const P=s.relationships||[];if(C.value){let e=function($){!$||l.has($)||(l.add($),$.deps.forEach(U=>{e(P.find(B=>B.id===U))}))};const l=new Set;return e(C.value),Array.from(l)}return P}),E=S(()=>{const P=F.value.map(l=>{const $=s.components.find(G=>G.filePath===l.id),U=p.value?.find(G=>G.file===l.id),B=u.value?.find(G=>G.file===l.id),O=l.id.replace(/\?.*$/,"").replace(/#.*$/,""),D=l.id.includes("/node_modules/")?"lib":$?$.global?"global":"user":B?"layout":U?"page":"unknown";if(!f.value&&D==="lib"||!h.value&&D==="page"||!V.value&&D==="layout"||!y.value&&D==="user"&&m.value&&!l.id.startsWith(m.value.rootDir)||!g.value&&D==="global")return null;const w=D==="layout"?"hexagon":D==="page"?"square":"dot",Y=R.value&&!l.id.toLowerCase().includes(R.value.toLowerCase());return{id:l.id,label:O.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:D,shape:w,size:15+Math.min(l.deps.length/2,8),font:{color:Y?"#8885":i.value==="dark"?"white":"black"},color:Y?"#8885":C.value?.id===l.id?"#82c742":void 0,extra:{id:l.id,component:$,page:U,layout:B,relationship:l}}}).filter(l=>!!l),e=F.value.flatMap(l=>l.deps.map($=>({from:l.id,to:$,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:P,edges:e}}),se=S(()=>o.value?.component?s.relationships?.find(e=>e.id===o.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(l=>l.id===e)?.id).filter(Boolean):[]),le=S(()=>o.value?.component?s.relationships?.filter(e=>e.deps.includes(o.value.component.filePath))?.map(e=>s.relationships?.find(l=>l.id===e.id)?.id).filter(Boolean):[]);ye(()=>{const P={nodes:{shape:"dot",size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:"#42b883"},unknown:{color:"#b86542"},lib:{color:"#b4b842"},page:{color:"#42b2b8"},layout:{color:"#4256b8"}}},e=new Pe(c.value,E.value,P);e.on("click",l=>{const $=l.nodes?.[0],U=E.value.nodes?.find(B=>B.id===$)?.extra;U&&(o.value=U)}),we(E,()=>{e.setData(E.value)})});function ae(){C.value=o.value?.relationship,o.value=void 0}return(P,e)=>{const l=Ve,$=J,U=me,B=te,O=X,D=Se;return t(),_(T,null,[v($,{ref_key:"navbar",ref:a,search:d.value,"onUpdate:search":e[6]||(e[6]=w=>d.value=w),absolute:"","left-0":"","right-0":"","top-0":""},{actions:b(()=>[n("div",nn,[v(l,{modelValue:N(h),"onUpdate:modelValue":e[0]||(e[0]=w=>A(h)?h.value=w:null),n:"primary sm"},{default:b(()=>e[9]||(e[9]=[n("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(V),"onUpdate:modelValue":e[1]||(e[1]=w=>A(V)?V.value=w:null),n:"primary sm"},{default:b(()=>e[10]||(e[10]=[n("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(y),"onUpdate:modelValue":e[2]||(e[2]=w=>A(y)?y.value=w:null),n:"primary sm"},{default:b(()=>e[11]||(e[11]=[n("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(f),"onUpdate:modelValue":e[3]||(e[3]=w=>A(f)?f.value=w:null),n:"primary sm"},{default:b(()=>e[12]||(e[12]=[n("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(g),"onUpdate:modelValue":e[4]||(e[4]=w=>A(g)?g.value=w:null),n:"primary sm"},{default:b(()=>e[13]||(e[13]=[n("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),C.value?(t(),_("button",{key:0,flex:"~ gap-1","flex-none":"","items-center":"","rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:e[5]||(e[5]=w=>C.value=void 0)},e[14]||(e[14]=[Q(" Clear filter "),n("div",{"i-carbon-close":""},null,-1)]))):k("",!0),e[15]||(e[15]=n("div",{"flex-auto":""},null,-1)),H(P.$slots,"default")]),_:3},8,["search"]),n("div",on,[n("div",{ref_key:"container",ref:c,"h-full":"","w-full":""},null,512),v(U,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:b(()=>e[16]||(e[16]=[n("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),n("div",{op50:""}," Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),n("div",{op50:""}," Global Component "),n("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),n("div",{op50:""}," Page "),n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[n("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),n("div",{op50:""}," Layout "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),n("div",{op50:""}," Library Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),n("div",{op50:""}," Unknown ")],-1)])),_:1}),v(D,{"model-value":!!(o.value&&o.value.component),top:a.value,border:"t l base","w-80":"",onClose:e[8]||(e[8]=w=>o.value=void 0)},{default:b(()=>[o.value&&o.value.component?(t(),_("div",tn,[v(B,{component:o.value.component,dependencies:se.value,dependents:le.value},null,8,["component","dependencies","dependents"]),n("div",sn,[v(O,{n:"primary solid",onClick:e[7]||(e[7]=w=>ae())},{default:b(()=>e[17]||(e[17]=[Q(" Filter to this component ")])),_:1})])])):k("",!0)]),_:1},8,["model-value","top"])])],64)}}}),an={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},pn={key:0,"ml--1":"","text-primary":""},rn=I({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,c=S(()=>s.component.filePath||s.component.file||s.component.__file||"");return(a,i)=>{const o=oe,p=te,m=xe("VDropdown"),u=K,f=ee;return t(),_("div",an,[v(m,null,{popper:b(()=>[v(p,{component:a.component,dependencies:a.dependencies,dependents:a.dependents,"w-100":"",pt4:""},null,8,["component","dependencies","dependents"])]),default:b(()=>[n("button",{"hover:text-primary":"",class:ke(a.dependents&&a.dependents.length===0?"op50":"")},[v(o,{component:a.component},null,8,["component"])],2)]),_:1}),a.dependents?.length?(t(),_("sup",pn," x"+W(a.dependents?.length),1)):k("",!0),a.component.global?(t(),x(u,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0),H(a.$slots,"default"),c.value?(t(),x(f,{key:2,filepath:c.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)])}}}),un={flex:"~ gap-2 items-center"},dn={pl4:""},cn=I({__name:"ComponentsList",props:{components:{},relationships:{}},setup(r){const s=r,c=L(""),a=L("all"),i=S(()=>{const m=s.components.map(u=>fe(u,s.relationships));return a.value==="using"?m.filter(u=>u.dependents?.length):a.value==="not-used"?m.filter(u=>!u.dependents?.length):m}),o=S(()=>new ve(i.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),p=S(()=>{const m=[],u=new Map,f=[],g=[],h={user:0,lib:0,builtin:0,runtime:0};return(c.value?o.value.search(c.value).map(y=>y.item):i.value).forEach(y=>{const C=y.component;if(C.filePath&&_e(C.filePath)){const d=he(C.filePath);if(!d)return;d==="nuxt"?(f.push(y),h.builtin++):(u.has(d)||u.set(d,[]),u.get(d).push(y),h.lib++)}else C.global&&!C.filePath?(g.push(y),h.runtime++):(m.push(y),h.user++)}),{count:h,user:m,builtin:f,lib:u,runtime:g}});return(m,u)=>{const f=be,g=De,h=J,V=rn,y=Te,C=Ue;return t(),_(T,null,[v(h,{search:c.value,"onUpdate:search":u[1]||(u[1]=d=>c.value=d),pb3:""},{actions:b(()=>[H(m.$slots,"default")]),default:b(()=>[n("div",un,[v(f,{icon:"carbon-filter",op50:""}),v(g,{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=d=>a.value=d),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),p.value.user.length?(t(),x(y,{key:0,icon:"carbon-nominal",text:"User components",open:p.value.user.length<=N(j),description:`Total components: ${p.value.count.user}`},{default:b(()=>[(t(!0),_(T,null,M(p.value.user,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.runtime.length?(t(),x(y,{key:1,icon:"carbon-load-balancer-global",open:p.value.runtime.length<=N(j),text:"Runtime components",description:`Total components: ${p.value.count.runtime}`},{default:b(()=>[(t(!0),_(T,null,M(p.value.runtime,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.builtin.length?(t(),x(y,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${p.value.count.builtin}`},{default:b(()=>[(t(!0),_(T,null,M(p.value.builtin,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["description"])):k("",!0),p.value.lib.size?(t(),x(y,{key:3,open:p.value.count.lib<=N(j),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:b(()=>[(t(!0),_(T,null,M(p.value.lib.entries(),([d,R])=>(t(),_("div",{key:d,"ml-2":""},[v(C,{text:`${d} (${R.length})`,py1:"",op50:""},null,8,["text"]),n("div",dn,[(t(!0),_(T,null,M(R,F=>(t(),x(V,z({key:F.component.filePath,ref_for:!0},F),null,16))),128))])]))),128))]),_:1},8,["open","description"])):k("",!0)],64)}}}),mn={relative:"","h-full":"","of-auto":""},fn={"flex-none":"",flex:"~ gap3"},Tn=I({__name:"components",setup(r){const s=ge(),c=Be(),a=Me(),{componentsView:i}=Z("ui");function o(){s.value?.inspector?.instance&&s.value.inspector.enable()}function p(){i.value=i.value==="list"?"graph":"list"}return(m,u)=>{const f=X,g=Re,h=Ne,V=Ce("tooltip");return t(),_(T,null,[n("div",mn,[(t(),x($e(N(i)==="list"?cn:ln),{components:N(c),relationships:N(a)},{default:b(()=>[n("div",fn,[q(v(f,{"text-lg":"",border:!1,icon:N(i)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:p},null,8,["icon"]),[[V,"Toggle View",void 0,{"bottom-end":!0}]]),N(s)?.inspector?.instance?q((t(),x(f,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:o},null,512)),[[V,"Inspect Vue components",void 0,{"bottom-end":!0}]]):k("",!0)])]),_:1},8,["components","relationships"]))]),v(h,null,{default:b(()=>[v(g)]),_:1})],64)}}});export{Tn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as u,Q as c,J as d,R as f}from"./d8ykqm74.js";import{n as _}from"./index-l7vmcxxc.js";import{k as v,S as k,u as e,O as a,$ as C,Q as o,a6 as E}from"./vendor/json-editor-vue-mdfcgt41.js";import"./vendor/unocss-mnpxkox6.js";import"./vendor/shiki-fpe2sz4h.js";import"./vue-virtual-scroller.esm-k82i9hy2.js";const I={class:"h-full w-full"},y=v({__name:"components-tree",setup(O){const{connected:l}=u(),t=c(),p=d();function s(r){r?t.value.devtools.open():t.value.devtools.close()}return(r,n)=>{const i=f;return o(),k("div",I,[e(l)?(o(),a(e(_),{key:0,onOnInspectComponentStart:n[0]||(n[0]=m=>s(!1)),onOnInspectComponentEnd:n[1]||(n[1]=m=>s(!0)),onOpenInEditor:e(p)},null,8,["onOpenInEditor"])):(o(),a(i,{key:1},{default:C(()=>n[2]||(n[2]=[E(" Connecting.... ")])),_:1}))])}}});export{y as default};
|