@nuxt/devtools-nightly 2.2.1-29030669.2ceb77f → 2.3.1-29040642.11812ab
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 +34 -25
- package/dist/client/200.html +21 -21
- package/dist/client/404.html +21 -21
- package/dist/client/_nuxt/__blank-mlfs714t.js +1 -0
- package/dist/client/_nuxt/analyze-build-dv9r0d1b.js +1 -0
- package/dist/client/_nuxt/{assets-m94lo078.js → assets-3w0459cw.js} +3 -3
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/2e7e3987-b11b-40ac-9f1a-072b1d89965e.json +1 -0
- package/dist/client/_nuxt/{client-depgvswg.js → client-bqg1k5yt.js} +1 -1
- package/dist/client/_nuxt/{code-diff.vue-if95s6cx.js → code-diff.vue-i7yt6w47.js} +1 -1
- package/dist/client/_nuxt/{code-snippets.vue-g1z6t6ph.js → code-snippets.vue-oseer9zx.js} +1 -1
- package/dist/client/_nuxt/components-hohrzi9t.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-cgchgcux.js +1 -0
- package/dist/client/_nuxt/custom-_name_-lwfm7tjp.js +1 -0
- package/dist/client/_nuxt/{data-schema-button.vue-i4fzm9gi.js → data-schema-button.vue-cm7gk6k0.js} +1 -1
- package/dist/client/_nuxt/{data-schema-drawer-n0f4bbfs.js → data-schema-drawer-c86h6i2v.js} +1 -1
- package/dist/client/_nuxt/debug-cyxrrxhf.js +1 -0
- package/dist/client/_nuxt/{default-oa59b4v4.js → default-gjgn12b2.js} +1 -1
- package/dist/client/_nuxt/{duration-display.vue-nwmxglh9.js → duration-display.vue-lb5nc1xj.js} +1 -1
- package/dist/client/_nuxt/{error-404-dhj8ytnf.js → error-404-nn0ujhkn.js} +1 -1
- package/dist/client/_nuxt/error-404.css-k9d8ozcm.css +1 -0
- package/dist/client/_nuxt/{error-500-cp408l7m.js → error-500-pucjh8pc.js} +1 -1
- package/dist/client/_nuxt/error-500.css-kolntf6l.css +1 -0
- package/dist/client/_nuxt/{error-mj8npnmo.js → error-eorofk01.js} +3 -3
- package/dist/client/_nuxt/{filepath-item.vue-cwwy1j4l.js → filepath-item.vue-e3wwadg0.js} +1 -1
- package/dist/client/_nuxt/full-gjwfbbvq.js +1 -0
- package/dist/client/_nuxt/{help-fab.vue-hs0g1jg5.js → help-fab.vue-cxy1ny4n.js} +1 -1
- package/dist/client/_nuxt/hooks-km5s2btj.js +1 -0
- package/dist/client/_nuxt/imports-b9y2ak8k.js +1 -0
- package/dist/client/_nuxt/{index-i2pm157q.js → index-ih4ttkye.js} +1 -1
- package/dist/client/_nuxt/launch-page.vue-miii172i.js +1 -0
- package/dist/client/_nuxt/m1ll0psm.js +15 -0
- package/dist/client/_nuxt/modules-mm9tjeyw.js +1 -0
- package/dist/client/_nuxt/nbadge-ggcz0h11.js +1 -0
- package/dist/client/_nuxt/{ncheckbox.vue-k6rmu4zz.js → ncheckbox.vue-djxw4457.js} +1 -1
- package/dist/client/_nuxt/{ncode-block.vue-b8i8bs30.js → ncode-block.vue-h2q9yyre.js} +1 -1
- package/dist/client/_nuxt/{ndrawer.vue-gpclutec.js → ndrawer.vue-ov1p2obh.js} +1 -1
- package/dist/client/_nuxt/{ndropdown.vue-g1sjeecu.js → ndropdown.vue-mrou3dnx.js} +1 -1
- package/dist/client/_nuxt/{nicon-title.vue-j53icbz7.js → nicon-title.vue-oyhtd7jm.js} +1 -1
- package/dist/client/_nuxt/{nlink.vue-ityt6kq7.js → nlink.vue-cus89sl4.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown.vue-du6y1w8i.js → nmarkdown.vue-io3ubke7.js} +1 -1
- package/dist/client/_nuxt/{nnavbar.vue-f401hj3c.js → nnavbar.vue-fkkq6pzn.js} +1 -1
- package/dist/client/_nuxt/none-jkmxxr2k.js +1 -0
- package/dist/client/_nuxt/nsection-block-dxv8lwb5.js +1 -0
- package/dist/client/_nuxt/{nselect-tabs.vue-sovv20f2.js → nselect-tabs.vue-o5du8k3o.js} +1 -1
- package/dist/client/_nuxt/{nselect.vue-cnpqu3r1.js → nselect.vue-nkqtor17.js} +1 -1
- package/dist/client/_nuxt/{nswitch.vue-b6shko7o.js → nswitch.vue-fl7pkx4a.js} +1 -1
- package/dist/client/_nuxt/{open-graph-dfidrxlg.js → open-graph-n6iuvelr.js} +2 -2
- package/dist/client/_nuxt/{overview-pemcoqmf.js → overview-nyen7pg8.js} +1 -1
- package/dist/client/_nuxt/pages-io9103sa.js +1 -0
- package/dist/client/_nuxt/{payload-fun3ydl6.js → payload-fjhgfg55.js} +1 -1
- package/dist/client/_nuxt/pinia-kgp506e2.js +1 -0
- package/dist/client/_nuxt/plugins-nx6o31b0.js +1 -0
- package/dist/client/_nuxt/render-tree-ep7rjpjg.js +1 -0
- package/dist/client/_nuxt/{runtime-configs-l21b6sjg.js → runtime-configs-jcw4as0f.js} +1 -1
- package/dist/client/_nuxt/server-discovery-2gj0n0ng.js +1 -0
- package/dist/client/_nuxt/{server-route-inputs.vue-kbrw0lb8.js → server-route-inputs.vue-fgjio5jy.js} +1 -1
- package/dist/client/_nuxt/server-routes-jmxfmzz5.js +9 -0
- package/dist/client/_nuxt/server-tasks-ezhhxjeq.js +1 -0
- package/dist/client/_nuxt/settings-bby9ihrj.js +1 -0
- package/dist/client/_nuxt/{stacktrace-list.vue-paf4mhsu.js → stacktrace-list.vue-n6tsky8y.js} +1 -1
- package/dist/client/_nuxt/{state-components-jaa3uwnt.js → state-components-e2j2v00u.js} +1 -1
- package/dist/client/_nuxt/state-editor.vue-eqeewbl3.js +1 -0
- package/dist/client/_nuxt/state-modules-gnpsrl70.js +1 -0
- package/dist/client/_nuxt/storage-ndm65qmn.js +1 -0
- package/dist/client/_nuxt/{terminals-c8yi8izt.js → terminals-gbnnzftg.js} +1 -1
- package/dist/client/_nuxt/timeline-ewfhqk3p.js +31 -0
- package/dist/client/_nuxt/{unocss-runtime-ovsm21fl.js → unocss-runtime-bag0aauk.js} +1 -1
- package/dist/client/_nuxt/vendor/{json-editor-vue-j95m40pi.js → json-editor-vue-huf8dypo.js} +25 -25
- package/dist/client/_nuxt/vendor/{quicktype-core-eilmqyuc.js → quicktype-core-klbd9u2j.js} +1 -1
- package/dist/client/_nuxt/vendor/{unocss-k3376dad.js → unocss-e7oqigho.js} +2 -2
- package/dist/client/_nuxt/virtual-files-o632qsmi.js +1 -0
- package/dist/client/_nuxt/vue-devtools-euicp7jh.js +2 -0
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-hp3a40lw.js → vue-virtual-scroller.esm-bjuzk3oj.js} +1 -1
- package/dist/client/index.html +21 -21
- package/dist/module.json +1 -1
- package/package.json +12 -12
- package/dist/client/_nuxt/__blank-gnbkcaj6.js +0 -1
- package/dist/client/_nuxt/analyze-build-c4txfjbi.js +0 -1
- package/dist/client/_nuxt/builds/meta/d9b6aa5b-5746-457b-832e-a01b082089a8.json +0 -1
- package/dist/client/_nuxt/components-ggmbzwry.js +0 -1
- package/dist/client/_nuxt/composable-item.vue-gy6f0noz.js +0 -1
- package/dist/client/_nuxt/custom-_name_-gf5yw2ey.js +0 -1
- package/dist/client/_nuxt/debug-k9j8016g.js +0 -1
- package/dist/client/_nuxt/error-404.css-gqth5ww7.css +0 -1
- package/dist/client/_nuxt/error-500.css-n3cvcfas.css +0 -1
- package/dist/client/_nuxt/full-ntrl35v2.js +0 -1
- package/dist/client/_nuxt/hooks-dh1fnv9l.js +0 -1
- package/dist/client/_nuxt/imports-lxxiw93v.js +0 -1
- package/dist/client/_nuxt/launch-page.vue-g6019vok.js +0 -1
- package/dist/client/_nuxt/modules-ka0yuhle.js +0 -1
- package/dist/client/_nuxt/n72b0hrv.js +0 -15
- package/dist/client/_nuxt/nbadge-vd71u3ck.js +0 -1
- package/dist/client/_nuxt/none-i94vazhr.js +0 -1
- package/dist/client/_nuxt/nsection-block-jqk2eteu.js +0 -1
- package/dist/client/_nuxt/pages-mljfbw5m.js +0 -1
- package/dist/client/_nuxt/pinia-lotcxz8n.js +0 -1
- package/dist/client/_nuxt/plugins-ygbwdn2q.js +0 -1
- package/dist/client/_nuxt/render-tree-idy9fnmv.js +0 -1
- package/dist/client/_nuxt/server-discovery-jbr42l7z.js +0 -1
- package/dist/client/_nuxt/server-routes-b61qvgi0.js +0 -9
- package/dist/client/_nuxt/server-tasks-djbu6a9q.js +0 -1
- package/dist/client/_nuxt/settings-b9o9ffdp.js +0 -1
- package/dist/client/_nuxt/state-editor.vue-c1gabeuk.js +0 -1
- package/dist/client/_nuxt/state-modules-lcdzhh4h.js +0 -1
- package/dist/client/_nuxt/storage-fjsa0jkb.js +0 -1
- package/dist/client/_nuxt/timeline-ebzkdmd0.js +0 -31
- package/dist/client/_nuxt/virtual-files-h7nurhjf.js +0 -1
- package/dist/client/_nuxt/vue-devtools-mizf666d.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as Q,Y as re,Z as ne,$ as oe,R as P,a0 as $,
|
|
1
|
+
import{p as Q,Y as re,Z as ne,$ as oe,R as P,a0 as $,ax as le,s as ae,X as ue,af as ce,a9 as de,O as M,Q as W,a2 as fe,S as A,a1 as K,F as he,ad as me,ac as q,a3 as pe,ay as ye,W as Y,U as ve}from"./vendor/json-editor-vue-huf8dypo.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)=>($(),P("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 Z(e,t){if(e===t)return!0;if(C(e)==="object"){for(var i in e)if(!Z(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 J(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(!Z(s,r)){var a=e._vue_visibilityState;if(!s){ee(e);return}a?a.createObserver(s,i):J(e,{value:s},i)}}function ee(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Re={beforeMount:J,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 L=function(t,i){return getComputedStyle(t,null).getPropertyValue(i)},Le=function(t){return L(t,"overflow")+L(t,"overflow-y")+L(t,"overflow-x")},Pe=function(t){return Ee.test(Le(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(Pe(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),($(),P(q(i.listTag),{ref:"wrapper",style:ve({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:Y(["vue-recycle-scroller__item-wrapper",i.listClass])},{default:K(()=>[($(!0),M(he,null,me(r.pool,n=>($(),P(q(i.itemTag),pe({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}]]},ye(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),fe(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
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-n6hiodwz.css" crossorigin>
|
|
4
4
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css" crossorigin>
|
|
5
5
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-mhvipxpl.css" crossorigin>
|
|
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-
|
|
8
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/m1ll0psm.js">
|
|
7
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-huf8dypo.js">
|
|
8
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-e7oqigho.js">
|
|
9
9
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-jv02kgzv.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-gjgn12b2.js">
|
|
12
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-gjwfbbvq.js">
|
|
13
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-jkmxxr2k.js">
|
|
14
14
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-lvdc77tw.css">
|
|
15
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-
|
|
16
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-
|
|
17
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-
|
|
18
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-
|
|
19
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-
|
|
20
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-
|
|
22
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-
|
|
23
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-
|
|
24
|
-
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-
|
|
25
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-
|
|
26
|
-
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-
|
|
28
|
-
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
29
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"
|
|
15
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-c86h6i2v.js">
|
|
16
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-nkqtor17.js">
|
|
17
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-fl7pkx4a.js">
|
|
18
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-mrou3dnx.js">
|
|
19
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-h2q9yyre.js">
|
|
20
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-bqg1k5yt.js">
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-ov1p2obh.js">
|
|
22
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-klbd9u2j.js">
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-bag0aauk.js">
|
|
24
|
+
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-k9d8ozcm.css">
|
|
25
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-nn0ujhkn.js">
|
|
26
|
+
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-kolntf6l.css">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-pucjh8pc.js">
|
|
28
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/m1ll0psm.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},1742438555432,false]</script>
|
|
29
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"2e7e3987-b11b-40ac-9f1a-072b1d89965e",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-nightly",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.1-29040642.11812ab",
|
|
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",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"vite": ">=6.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@2.
|
|
36
|
-
"@nuxt/devtools-wizard": "npm:@nuxt/devtools-wizard-nightly@2.
|
|
37
|
-
"@nuxt/kit": "^3.16.
|
|
35
|
+
"@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@2.3.1-29040642.11812ab",
|
|
36
|
+
"@nuxt/devtools-wizard": "npm:@nuxt/devtools-wizard-nightly@2.3.1-29040642.11812ab",
|
|
37
|
+
"@nuxt/kit": "^3.16.1",
|
|
38
38
|
"@vue/devtools-core": "^7.7.2",
|
|
39
39
|
"@vue/devtools-kit": "^7.7.2",
|
|
40
40
|
"birpc": "^2.2.0",
|
|
41
|
-
"consola": "^3.4.
|
|
41
|
+
"consola": "^3.4.2",
|
|
42
42
|
"destr": "^2.0.3",
|
|
43
43
|
"error-stack-parser-es": "^1.0.5",
|
|
44
|
-
"execa": "^
|
|
44
|
+
"execa": "^8.0.1",
|
|
45
45
|
"fast-npm-meta": "^0.3.1",
|
|
46
46
|
"get-port-please": "^3.1.2",
|
|
47
47
|
"hookable": "^5.5.3",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"@iconify-json/carbon": "^1.2.8",
|
|
74
74
|
"@iconify-json/logos": "^1.2.4",
|
|
75
75
|
"@iconify-json/ri": "^1.2.5",
|
|
76
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
76
|
+
"@iconify-json/simple-icons": "^1.2.29",
|
|
77
77
|
"@iconify-json/tabler": "^1.2.17",
|
|
78
|
-
"@nuxt/devtools": "npm:@nuxt/devtools-nightly@2.
|
|
78
|
+
"@nuxt/devtools": "npm:@nuxt/devtools-nightly@2.3.1-29040642.11812ab",
|
|
79
79
|
"@nuxt/test-utils": "^3.17.2",
|
|
80
80
|
"@parcel/watcher": "^2.5.1",
|
|
81
81
|
"@types/markdown-it-link-attributes": "^3.0.5",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@unocss/preset-icons": "^66.0.0",
|
|
85
85
|
"@unocss/preset-uno": "^66.0.0",
|
|
86
86
|
"@unocss/runtime": "^66.0.0",
|
|
87
|
-
"@vitest/ui": "^3.0.
|
|
87
|
+
"@vitest/ui": "^3.0.9",
|
|
88
88
|
"@vue/devtools-applet": "^7.7.2",
|
|
89
89
|
"@vueuse/nuxt": "^13.0.0",
|
|
90
90
|
"@xterm/addon-fit": "^0.10.0",
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"markdown-it": "^14.1.0",
|
|
97
97
|
"markdown-it-link-attributes": "^4.0.1",
|
|
98
98
|
"my-ua-parser": "^2.0.4",
|
|
99
|
-
"nitropack": "^2.11.
|
|
100
|
-
"nuxt": "^3.16.
|
|
99
|
+
"nitropack": "^2.11.7",
|
|
100
|
+
"nuxt": "^3.16.1",
|
|
101
101
|
"ofetch": "^1.4.1",
|
|
102
102
|
"quicktype-core": "22.0.0",
|
|
103
103
|
"scule": "^1.3.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"unimport": "^4.1.2",
|
|
109
109
|
"unocss": "^66.0.0",
|
|
110
110
|
"unplugin-vue-markdown": "^28.3.1",
|
|
111
|
-
"vanilla-jsoneditor": "^3.1.
|
|
111
|
+
"vanilla-jsoneditor": "^3.1.1",
|
|
112
112
|
"vis-data": "^7.1.9",
|
|
113
113
|
"vis-network": "^9.1.9",
|
|
114
114
|
"vue-tsc": "^2.2.8",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as e,O as n,a0 as t}from"./vendor/json-editor-vue-j95m40pi.js";const a={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(c){return(o,s)=>(t(),n("div",a))}});export{r as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as J,l as P,_ as R,r as S,m as j,n as X,o as h,p as ee,q as ne,s as te,v as le,i as ie,w as k,x as oe,y as re,z as ue,A as se,B as ae}from"./n72b0hrv.js";import{_ as de}from"./filepath-item.vue-cwwy1j4l.js";import{q as L,u as V,k as F,O as u,a0 as i,P as e,Q as g,F as p,ad as U,a2 as d,a7 as v,v as x,a1 as a,a8 as f,a9 as D,aa as I,W as E,R as B}from"./vendor/json-editor-vue-j95m40pi.js";import{_ as me}from"./ncode-block.vue-b8i8bs30.js";import{_ as pe}from"./ncheckbox.vue-k6rmu4zz.js";import{_ as ve}from"./help-fab.vue-hs0g1jg5.js";import"./vendor/unocss-k3376dad.js";import"./vendor/shiki-jv02kgzv.js";import"./client-depgvswg.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ye={flex:"~ wrap","w-full":""},ce=["onClick"],xe={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},be={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge="/__nuxt_devtools__/client",_e=L({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(N){const y=N,w=`${J().app.baseURL.replace(ge,"/")}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),c=V(()=>{const l=[{name:"Overview",id:"overview"}];return y.current.features.bundleClient&&l.push({name:"Client Bundle",id:"bundle-client"}),y.current.features.bundleNitro&&l.push({name:"Nitro Bundle",id:"bundle-nitro"}),y.current.features.viteInspect&&l.push({name:"Vite Inspect",id:"vite-inspect"}),l}),o=F(c.value[0]);function z(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}function m(l){return l<1024?`${l}B`:l<1024*1024?`${(l/1024).toFixed(1)}KB`:l<1024*1024*1024?`${(l/1024/1024).toFixed(1)}MB`:`${(l/1024/1024/1024).toFixed(1)}GB`}async function T(l){return S.clearAnalyzeBuilds(await j(),[l])}return(l,n)=>{const A=de,C=R;return i(),u("div",fe,[e("div",ye,[(i(!0),u(p,null,U(c.value,(r,t)=>(i(),u("button",{key:t,px4:"",py2:"",border:"r base",hover:"bg-active",class:E(r.id===o.value?.id?"":"border-b"),onClick:$=>o.value=r},[e("div",{class:E(r.id===o.value?.id?"":"op30")},v(r.name),3)],10,ce))),128)),n[1]||(n[1]=e("div",{border:"b base","flex-auto":""},null,-1))]),o.value?.id==="overview"?(i(),u("div",xe,[n[15]||(n[15]=e("div",{"flex-auto":""},null,-1)),e("div",be,[n[10]||(n[10]=e("div",{"i-carbon-commit":"","text-xl":""},null,-1)),e("div",null,[n[2]||(n[2]=e("div",{"text-sm":"",op50:""}," Name ",-1)),e("div",null,v(l.current.name),1)]),n[11]||(n[11]=e("div",{"i-carbon-time":"","text-xl":""},null,-1)),e("div",null,[n[3]||(n[3]=e("div",{"text-sm":"",op50:""}," Build duration ",-1)),e("div",null,v(z(l.current)),1)]),l.current.size?.clientBundle?(i(),u(p,{key:0},[n[5]||(n[5]=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1)),e("div",null,[n[4]||(n[4]=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1)),e("div",null,v(m(l.current.size.clientBundle)),1)])],64)):g("",!0),l.current.size?.nitroBundle?(i(),u(p,{key:1},[n[7]||(n[7]=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1)),e("div",null,[n[6]||(n[6]=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1)),e("div",null,v(m(l.current.size.nitroBundle)),1)])],64)):g("",!0),n[12]||(n[12]=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1)),e("div",null,[n[8]||(n[8]=e("div",{"text-sm":"",op50:""}," Built ",-1)),e("div",null,v(x(P)(new Date(l.current.endTime))),1)]),n[13]||(n[13]=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1)),e("div",null,[n[9]||(n[9]=e("div",{"text-sm":"",op50:""}," Report Path ",-1)),d(A,{filepath:l.current.analyzeDir},null,8,["filepath"])])]),n[16]||(n[16]=e("div",{"flex-auto":""},null,-1)),d(C,{n:"rose",icon:"carbon-delete",onClick:n[0]||(n[0]=r=>T(l.current.name))},{default:a(()=>n[14]||(n[14]=[f(" Delete this report ")])),_:1})])):g("",!0),n._lazyshow1||o.value?.id==="bundle-client"?(n._lazyshow1=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value?.id==="bundle-client"]])],64)):g("v-show-if",!0),n._lazyshow2||o.value?.id==="bundle-nitro"?(n._lazyshow2=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value?.id==="bundle-nitro"]])],64)):g("v-show-if",!0),n._lazyshow3||o.value?.id==="vite-inspect"?(n._lazyshow3=!0,i(),u(p,null,[D(e("iframe",{src:`${x(w)}${l.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value?.id==="vite-inspect"]])],64)):g("v-show-if",!0)])}}}),we={class:"markdown-body"},ze={__name:"analyze-build",setup(N,{expose:y}){return y({frontmatter:{}}),(w,c)=>(i(),u("div",we,c[0]||(c[0]=[e("h1",null,"Build Analyze",-1),e("p",null,[f("DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command "),e("code",null,"nuxt build --analyze"),f(" and present the output data directly in DevTools for easy browsing and comparing.")],-1)])))}},$e={flex:"~ col"},Be=["onClick"],Ce={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},ke={flex:"~ items-center justify-center wrap",p4:""},Ne={flex:"~ col gap-1","w-250":"",p4:""},Te={flex:"~ gap-3",mt2:"","justify-end":""},je=L({__name:"analyze-build",setup(N){const y=X(),_=h(),w=ee(),c=ne("analyze-build:slug",""),o=V(()=>_.value?.builds.find(r=>r.slug===c.value)??_.value?.builds[0]),z=F(!1),m=F(""),T=V(()=>_.value?.builds.some(r=>r.name===m.value.trim()));async function l(){m.value=await S.generateAnalyzeBuildName(),await y.start()&&(ae("analyze-build:start"),k.value={name:m.value,processId:await S.startAnalyzeBuild(await j(),m.value)},z.value&&C())}const n=te();function A(r){return`${((r.endTime-r.startTime)/1e3).toFixed(1)}s`}function C(){k.value?.processId&&(n.value=k.value.processId,w.push("/modules/terminals"))}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:l}]),(r,t)=>{const $=R,G=_e,O=ie,q=oe,W=ue,H=se,K=me,M=pe,Q=re,Y=ze,Z=ve;return i(),u(p,null,[d(q,{"left-size":30},{left:a(()=>[e("div",$e,[(i(!0),u(p,null,U(x(_)?.builds,s=>(i(),u(p,{key:s.slug},[e("button",{flex:"~ col gap1","hover:bg-active":"",p3:"",class:E(s.slug===o.value?.slug?"text-primary bg-active":""),onClick:b=>c.value=s.slug},[e("code",null,v(s.name),1),e("div",Ce,[t[4]||(t[4]=e("div",{"i-carbon-time":""},null,-1)),e("span",null,v(A(s)),1),t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("span",null,v(x(P)(new Date(s.endTime))),1)])],10,Be),t[6]||(t[6]=e("div",{"x-divider":""},null,-1))],64))),128)),e("div",ke,[x(k)?(i(),B($,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:t[1]||(t[1]=s=>C())},{default:a(()=>t[8]||(t[8]=[f(" Building... ")])),_:1})):(i(),B($,{key:0,n:"primary",icon:"carbon-edge-node",onClick:t[0]||(t[0]=s=>l())},{default:a(()=>t[7]||(t[7]=[f(" Start a new build ")])),_:1}))])])]),right:a(()=>[o.value?(i(),B(G,{key:0,current:o.value},null,8,["current"])):(i(),B(O,{key:1}))]),_:1}),d(x(y),null,{default:a(({resolve:s})=>[d(Q,{"model-value":!0,onClose:b=>s(!1)},{default:a(()=>[e("div",Ne,[t[13]||(t[13]=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1)),t[14]||(t[14]=e("p",{op50:""}," Enter the name of the build: ",-1)),d(W,{modelValue:m.value,"onUpdate:modelValue":t[2]||(t[2]=b=>m.value=b),placeholder:"Build name"},null,8,["modelValue"]),T.value?(i(),B(H,{key:0,"n-orange":""},{default:a(()=>t[9]||(t[9]=[f(" A build with the same name already exists, continue would overrides the previous build result. ")])),_:1})):g("",!0),t[15]||(t[15]=e("div",{my3:"","x-divider":""},null,-1)),t[16]||(t[16]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),d(K,{code:`npx nuxi analyze --no-serve --name=${m.value}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),d(M,{modelValue:z.value,"onUpdate:modelValue":t[3]||(t[3]=b=>z.value=b),mt2:"",n:"primary"},{default:a(()=>t[10]||(t[10]=[f(" Navigate to terminal ")])),_:1},8,["modelValue"]),e("div",Te,[d($,{onClick:b=>s(!1)},{default:a(()=>t[11]||(t[11]=[f(" Cancel ")])),_:2},1032,["onClick"]),d($,{n:"solid primary",onClick:b=>s(!0)},{default:a(()=>t[12]||(t[12]=[f(" Start ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),d(Z,null,{default:a(()=>[d(Y)]),_:1})],64)}}});export{je as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"d9b6aa5b-5746-457b-832e-a01b082089a8","timestamp":1741840166846,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as pe,_ as q,R as re,S as ue,K as me,T as de,g as Q,U as ce,V as fe,W as ve,O as _e,X as he,Y as be,E as ge,f as ye}from"./n72b0hrv.js";import{O as m,a0 as t,P as o,q as I,u as D,a8 as X,a7 as W,Q as w,S as O,a2 as u,R as y,v as $,F as T,ad as L,k as U,n as we,D as xe,y as ke,a1 as f,j as z,X as Ce,W as $e,a3 as E,af as Ne,a9 as K,ac as Ve}from"./vendor/json-editor-vue-j95m40pi.js";import{_ as Pe}from"./help-fab.vue-hs0g1jg5.js";import{_ as De}from"./ncheckbox.vue-k6rmu4zz.js";import{_ as Y}from"./nnavbar.vue-f401hj3c.js";import{p as J}from"./index-jc4yj4to.js";import{_ as Z}from"./nbadge-vd71u3ck.js";import{_ as ee}from"./filepath-item.vue-cwwy1j4l.js";import{_ as Se}from"./ndrawer.vue-gpclutec.js";import{D as Te,N as Be}from"./vendor/vis-fth2qiu5.js";import{_ as Le}from"./nselect-tabs.vue-sovv20f2.js";import{_ as Me}from"./nsection-block-jqk2eteu.js";import{_ as Ue}from"./nicon-title.vue-j53icbz7.js";import{D as H}from"./constants-b32h69zq.js";import{u as Ie,a as Fe}from"./state-components-jaa3uwnt.js";import"./vendor/unocss-k3376dad.js";import"./vendor/shiki-jv02kgzv.js";const Ge={class:"markdown-body"},Re={__name:"components",setup(P,{expose:s}){return s({frontmatter:{}}),(i,c)=>(t(),m("div",Ge,c[0]||(c[0]=[o("h1",null,"Components",-1),o("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),o("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},ze={"text-sm":"","font-mono":""},oe=I({__name:"ComponentName",props:{component:{}},setup(P){const s=P,v=D(()=>s.component.pascalName||J(s.component.name||s.component.__name||s.component.kebabName||""));return(i,c)=>(t(),m("code",ze,[c[0]||(c[0]=o("span",{mr1:"",op20:""},"<",-1)),X(W(v.value),1),c[1]||(c[1]=o("span",{ml1:"",op20:""},"/>",-1))]))}}),Ae={flex:"~ col gap1","items-start":"","of-hidden":""},Ee={flex:"~ gap2",px3:""},We={px3:"",pb2:""},Oe={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},je={"text-sm":""},He={"text-primary":""},Xe={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},qe={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Ke={"text-sm":""},Qe={"text-primary":""},Ye={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},ne=I({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(P){const s=P,v=D(()=>s.component.pascalName||J(s.component.name||s.component.__name||s.component.kebabName||"")),i=D(()=>s.component.filePath||s.component.file||s.component.__file||""),c=pe();return(l,a)=>{const h=oe,r=q,b=Z,x=ee;return t(),m("div",Ae,[o("div",Ee,[u(h,{component:l.component},null,8,["component"]),u(r,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:a[0]||(a[0]=d=>$(c)(`<${v.value}></${v.value}>`,"component-name"))}),l.component.global?(t(),y(b,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0)]),o("div",We,[i.value?(t(),y(x,{key:0,filepath:i.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)]),l.dependents?(t(),m("div",Oe,[o("div",je,[o("strong",He,W(l.dependents.length),1),a[1]||(a[1]=o("span",{op50:""}," references",-1))]),l.dependents.length?(t(),m("div",Xe,[(t(!0),m(T,null,L(l.dependents,d=>(t(),y(x,{key:d,filepath:d},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),l.dependencies?(t(),m("div",qe,[o("div",Ke,[o("strong",Qe,W(l.dependencies.length),1),a[2]||(a[2]=o("span",{op50:""}," dependencies",-1))]),l.dependencies.length?(t(),m("div",Ye,[(t(!0),m(T,null,L(l.dependencies,d=>(t(),y(x,{key:d,filepath:d},null,8,["filepath"]))),128))])):w("",!0)])):w("",!0),O(l.$slots,"default")])}}}),Je={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},Ze={relative:"","h-full":"","w-full":""},eo={key:0,py4:"",pt4:"",flex:"~ col"},oo={border:"t base",p4:""},no=I({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(P){const s=P,v=U(),i=U(),c=re(),l=we(),a=ue(),h=me(),r=de(),{componentsGraphShowNodeModules:b,componentsGraphShowGlobalComponents:x,componentsGraphShowPages:d,componentsGraphShowLayouts:N,componentsGraphShowWorkspace:_}=Q("ui"),k=U(),p=U(""),F=ce(p,300),G=D(()=>{const V=s.relationships||[];if(k.value){let e=function(C){!C||n.has(C)||(n.add(C),C.deps.forEach(B=>{e(V.find(M=>M.id===B))}))};const n=new Set;return e(k.value),Array.from(n)}return V}),A=D(()=>{const V=G.value.map(n=>{const C=s.components.find(R=>R.filePath===n.id),B=a.value?.find(R=>R.file===n.id),M=r.value?.find(R=>R.file===n.id),S=n.id.includes("/node_modules/")?"lib":C?C.global?"global":"user":M?"layout":B?"page":"unknown";if(!b.value&&S==="lib"||!d.value&&S==="page"||!N.value&&S==="layout"||!_.value&&S==="user"&&h.value&&!n.id.startsWith(h.value.rootDir)||!x.value&&S==="global")return null;const j=S==="layout"?"hexagon":S==="page"?"square":"dot",g=F.value&&!n.id.toLowerCase().includes(F.value.toLowerCase());return{id:n.id,label:ae(n.id),group:S,shape:j,size:15+Math.min(n.deps.length/2,8),font:{color:g?"#8885":c.value==="dark"?"white":"black"},color:g?"#8885":k.value?.id===n.id?"#82c742":void 0,extra:{id:n.id,component:C,page:B,layout:M,relationship:n}}}).filter(n=>!!n),e=G.value.flatMap(n=>n.deps.map(C=>({from:n.id,to:C,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new Te(V),edges:e}}),te=D(()=>l.value?.component?s.relationships?.find(e=>e.id===l.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(n=>n.id===e)?.id).filter(Boolean):[]),se=D(()=>l.value?.component?s.relationships?.filter(e=>e.deps.includes(l.value.component.filePath))?.map(e=>s.relationships?.find(n=>n.id===e.id)?.id).filter(Boolean):[]);xe(()=>{const V={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 Be(v.value,A.value,V);e.on("click",n=>{const C=n.nodes?.[0],B=A.value.nodes.get(C).extra;l.value=B}),ke(A,()=>{e.setData(A.value)})});function le(){l.value=void 0}function ae(V){const e=s.components.find(n=>n.filePath===V);return e?e.pascalName:V.replace(/.*\/components\//,"").replace(/\.vue$/,"").replace(/\/index$/,"").split("/").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ie(){k.value=l.value?.relationship,l.value=void 0}return(V,e)=>{const n=De,C=Y,B=fe,M=ne,S=q,j=Se;return t(),m(T,null,[u(C,{ref_key:"navbar",ref:i,search:p.value,"onUpdate:search":e[6]||(e[6]=g=>p.value=g),absolute:"","left-0":"","right-0":"","top-0":""},{actions:f(()=>[o("div",Je,[u(n,{modelValue:$(d),"onUpdate:modelValue":e[0]||(e[0]=g=>z(d)?d.value=g:null),n:"primary sm"},{default:f(()=>e[8]||(e[8]=[o("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(N),"onUpdate:modelValue":e[1]||(e[1]=g=>z(N)?N.value=g:null),n:"primary sm"},{default:f(()=>e[9]||(e[9]=[o("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(_),"onUpdate:modelValue":e[2]||(e[2]=g=>z(_)?_.value=g:null),n:"primary sm"},{default:f(()=>e[10]||(e[10]=[o("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(b),"onUpdate:modelValue":e[3]||(e[3]=g=>z(b)?b.value=g:null),n:"primary sm"},{default:f(()=>e[11]||(e[11]=[o("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),u(n,{modelValue:$(x),"onUpdate:modelValue":e[4]||(e[4]=g=>z(x)?x.value=g:null),n:"primary sm"},{default:f(()=>e[12]||(e[12]=[o("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),k.value?(t(),m("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]=g=>k.value=void 0)},e[13]||(e[13]=[X(" Clear filter "),o("div",{"i-carbon-close":""},null,-1)]))):w("",!0),e[14]||(e[14]=o("div",{"flex-auto":""},null,-1)),O(V.$slots,"default")]),_:3},8,["search"]),o("div",Ze,[o("div",{ref_key:"container",ref:v,"h-full":"","w-full":""},null,512),u(B,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:f(()=>e[15]||(e[15]=[o("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),o("div",{op50:""}," Component "),o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),o("div",{op50:""}," Global Component "),o("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),o("div",{op50:""}," Page "),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[o("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),o("div",{op50:""}," Layout "),o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),o("div",{op50:""}," Library Component "),o("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),o("div",{op50:""}," Unknown ")],-1)])),_:1}),u(j,{"model-value":!!(l.value&&l.value.component),top:i.value,border:"t l base","w-80":"",onClose:le},{default:f(()=>[l.value&&l.value.component?(t(),m("div",eo,[u(M,{component:l.value.component,dependencies:te.value,dependents:se.value},null,8,["component","dependencies","dependents"]),o("div",oo,[u(S,{n:"primary solid",onClick:e[7]||(e[7]=g=>ie())},{default:f(()=>e[16]||(e[16]=[X(" Filter to this component ")])),_:1})])])):w("",!0)]),_:1},8,["model-value","top"])])],64)}}}),to={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},so={key:0,"ml--1":"","text-primary":""},lo=I({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(P){const s=P,v=D(()=>s.component.filePath||s.component.file||s.component.__file||"");return(i,c)=>{const l=oe,a=ne,h=Ce("VDropdown"),r=Z,b=ee;return t(),m("div",to,[u(h,null,{popper:f(()=>[u(a,{component:i.component,dependencies:i.dependencies,dependents:i.dependents,"w-100":"",pt4:""},null,8,["component","dependencies","dependents"])]),default:f(()=>[o("button",{"hover:text-primary":"",class:$e(i.dependents&&i.dependents.length===0?"op50":"")},[u(l,{component:i.component},null,8,["component"])],2)]),_:1}),i.dependents?.length?(t(),m("sup",so," x"+W(i.dependents?.length),1)):w("",!0),i.component.global?(t(),y(r,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0),O(i.$slots,"default"),v.value?(t(),y(b,{key:2,filepath:v.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)])}}}),ao={flex:"~ gap-2 items-center"},io={pl4:""},po=I({__name:"ComponentsList",props:{components:{},relationships:{}},setup(P){const s=P,v=U(""),i=U("all"),c=D(()=>{const h=s.components.map(r=>ve(r,s.relationships));return i.value==="using"?h.filter(r=>r.dependents?.length):i.value==="not-used"?h.filter(r=>!r.dependents?.length):h}),l=D(()=>new _e(c.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),a=D(()=>{const h=[],r=new Map,b=[],x=[],d={user:0,lib:0,builtin:0,runtime:0};return(v.value?l.value.search(v.value).map(_=>_.item):c.value).forEach(_=>{const k=_.component;if(k.filePath&&he(k.filePath)){const p=be(k.filePath);if(!p)return;p==="nuxt"?(b.push(_),d.builtin++):(r.has(p)||r.set(p,[]),r.get(p).push(_),d.lib++)}else k.global&&!k.filePath?(x.push(_),d.runtime++):(h.push(_),d.user++)}),{count:d,user:h,builtin:b,lib:r,runtime:x}});return(h,r)=>{const b=ge,x=Le,d=Y,N=lo,_=Me,k=Ue;return t(),m(T,null,[u(d,{search:v.value,"onUpdate:search":r[1]||(r[1]=p=>v.value=p),pb3:""},{actions:f(()=>[O(h.$slots,"default")]),default:f(()=>[o("div",ao,[u(b,{icon:"carbon-filter",op50:""}),u(x,{modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=p=>i.value=p),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),a.value.user.length?(t(),y(_,{key:0,icon:"carbon-nominal",text:"User components",open:a.value.user.length<=$(H),description:`Total components: ${a.value.count.user}`},{default:f(()=>[(t(!0),m(T,null,L(a.value.user,p=>(t(),y(N,E({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):w("",!0),a.value.runtime.length?(t(),y(_,{key:1,icon:"carbon-load-balancer-global",open:a.value.runtime.length<=$(H),text:"Runtime components",description:`Total components: ${a.value.count.runtime}`},{default:f(()=>[(t(!0),m(T,null,L(a.value.runtime,p=>(t(),y(N,E({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):w("",!0),a.value.builtin.length?(t(),y(_,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${a.value.count.builtin}`},{default:f(()=>[(t(!0),m(T,null,L(a.value.builtin,p=>(t(),y(N,E({key:p.component.filePath,ref_for:!0},p),null,16))),128))]),_:1},8,["description"])):w("",!0),a.value.lib.size?(t(),y(_,{key:3,open:a.value.count.lib<=$(H),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${a.value.count.lib} components from ${a.value.lib.size} packages`},{default:f(()=>[(t(!0),m(T,null,L(a.value.lib.entries(),([p,F])=>(t(),m("div",{key:p,"ml-2":""},[u(k,{text:`${p} (${F.length})`,py1:"",op50:""},null,8,["text"]),o("div",io,[(t(!0),m(T,null,L(F,G=>(t(),y(N,E({key:G.component.filePath,ref_for:!0},G),null,16))),128))])]))),128))]),_:1},8,["open","description"])):w("",!0)],64)}}}),ro={relative:"","h-full":"","of-auto":""},uo={"flex-none":"",flex:"~ gap3"},Do=I({__name:"components",setup(P){const s=ye(),v=Ie(),i=Fe(),{componentsView:c}=Q("ui");function l(){s.value?.inspector?.enable()}function a(){c.value=c.value==="list"?"graph":"list"}return(h,r)=>{const b=q,x=Re,d=Pe,N=Ne("tooltip");return t(),m(T,null,[o("div",ro,[(t(),y(Ve($(c)==="list"?po:no),{components:$(v),relationships:$(i)},{default:f(()=>[o("div",uo,[K(u(b,{"text-lg":"",border:!1,icon:$(c)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:a},null,8,["icon"]),[[N,"Toggle View",void 0,{"bottom-end":!0}]]),$(s)?.inspector?.isAvailable?K((t(),y(b,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:l},null,512)),[[N,"Inspect Vue components",void 0,{"bottom-end":!0}]]):w("",!0)])]),_:1},8,["components","relationships"]))]),u(d,null,{default:f(()=>[u(x)]),_:1})],64)}}});export{Do as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as $,L as U,E,_ as F}from"./n72b0hrv.js";import{_ as j}from"./nmarkdown.vue-du6y1w8i.js";import{_ as L}from"./filepath-item.vue-cwwy1j4l.js";import{k as O}from"./index-jc4yj4to.js";import{C as y}from"./constants-b32h69zq.js";import{q as S,u as r,X as W,R as i,a0 as s,a1 as m,P as a,W as q,O as p,Q as l,a8 as c,a7 as v,a2 as b,v as k,F as x,ad as z}from"./vendor/json-editor-vue-j95m40pi.js";const M={rounded:"","font-mono":""},P={key:0,"text-primary":""},Q={key:0},R={title:"Vue Directive"},T={"max-w-100":""},X={px4:"",py3:"","text-sm":""},A={flex:"~ gap2",n:"primary xs"},G={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},H={"text-sm":""},J={"text-primary":""},K={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Y={key:1,"text-sm":"",op50:""},ne=S({__name:"ComposableItem",props:{item:{},isDirective:{type:Boolean,default:!1},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(g){const o=g,C=$(),h=U(),u=r(()=>o.item.as||o.item.name),D=r(()=>{let e=u.value;return o.isDirective&&(e[0]!=="v"&&(e=`v${e}`),e=O(e)),e}),n=r(()=>o.metadata?.injectionUsage?.[u.value]?.count||0),N=r(()=>(o.metadata?.injectionUsage?.[u.value]?.moduleIds||[]).filter(e=>!e.endsWith("?macro=true"))),_=r(()=>o.item.meta?.docsUrl?o.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(o.item.from)?y.nuxt[o.item.name]:o.item.from==="vue"?y.vue[o.item.name]:null);return(e,t)=>{const w=E,B=j,f=F,I=L,V=W("VDropdown");return s(),i(V,{disabled:!o.metadata},{popper:m(()=>[a("div",T,[a("div",X,[e.item.meta?.description?(s(),i(B,{key:0,tag:"div",pb3:"","text-sm":"",markdown:e.item.meta.description},null,8,["markdown"])):l("",!0),a("div",A,[b(f,{icon:"carbon-copy",onClick:t[0]||(t[0]=d=>k(C)(D.value,"imports-name"))},{default:m(()=>t[2]||(t[2]=[c(" Copy ")])),_:1}),e.filepath?(s(),i(f,{key:0,icon:"carbon-code",onClick:t[1]||(t[1]=d=>e.filepath&&k(h)(e.filepath))},{default:m(()=>t[3]||(t[3]=[c(" Source ")])),_:1})):l("",!0),_.value?(s(),i(f,{key:1,icon:"carbon-catalog",to:_.value,target:"_blank"},{default:m(()=>t[4]||(t[4]=[c(" Docs ")])),_:1},8,["to"])):l("",!0)])]),a("div",G,[n.value?(s(),p(x,{key:0},[a("div",H,[t[5]||(t[5]=a("span",{op50:""},"It has been referenced ",-1)),a("strong",J,v(n.value),1),t[6]||(t[6]=a("span",{op50:""}," times by:",-1))]),a("div",K,[(s(!0),p(x,null,z(N.value,d=>(s(),i(I,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),p("div",Y," Not in use via auto import. "))])])]),default:m(()=>[a("button",{"hover:text-primary":"",class:q([e.metadata&&!n.value?"op30 hover:op100":"",e.classes])},[a("code",M,[c(v(u.value)+" ",1),n.value&&e.counter?(s(),p("sup",P,"x"+v(n.value),1)):l("",!0)]),e.isDirective?(s(),p("sup",Q,[a("abbr",R,[b(w,{icon:"tabler:hexagon-letter-d"})])])):l("",!0)],2)]),_:1},8,["disabled"])}}});export{ne as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{R as M,Z as N,$ as V,a0 as j,p as B,a1 as D,a2 as k,a3 as E,i as P,a4 as R,r as I,V as L}from"./n72b0hrv.js";import{q as $,k as C,u as x,r as O,D as q,p as W,w as b,H as S,O as U,a0 as n,R as u,a1 as y,P as r,a8 as w,a7 as A,v as T,ac as F,a2 as G}from"./vendor/json-editor-vue-j95m40pi.js";import{_ as H}from"./launch-page.vue-g6019vok.js";import"./vendor/unocss-k3376dad.js";import"./vendor/shiki-jv02kgzv.js";import"./nmarkdown.vue-du6y1w8i.js";import"./client-depgvswg.js";const h=new Map,X=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=M(),p=C(),i=x(()=>m.tab.name),e=C(),t=O(N(p));q(()=>{const o=m.tab.view,l=o.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(i.value)&&l)e.value=h.get(i.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",_.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&h.set(i.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),s(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),W(d)}setTimeout(s,100)}),b(d),b(s),b(v),S(()=>{e.value&&(e.value.style.visibility="hidden")});function s(){if(!(!e.value||!e.value.contentWindow))try{const o=e.value.contentWindow.document.querySelector("html");o?.classList.toggle("dark",c.value==="dark"),o?.classList.toggle("light",c.value==="dark"),new MutationObserver(()=>{c.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(o,{attributes:!0,attributeFilter:["class"]})}catch{}}const a=V();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function d(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(o,l)=>(n(),U("div",{ref_key:"anchor",ref:p,"h-full":"","w-full":""},null,512))}}),Z={flex:"~ col gap2",mxa:"","items-center":""},z={"text-xl":""},J={"text-rose":""},ne=$({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=j(),p=B(),i=x(()=>m.name??c.params.name),e=D(),t=x(()=>e.value.find(s=>s.name===i.value));return q(()=>{t.value?t.value.requireAuth&&!k.value&&E():setTimeout(()=>{t.value||p.push("/modules/overview")},2e3)}),(s,a)=>{const v=P,d=R,o=X,l=H,_=L;return t.value?t.value.requireAuth&&!T(k)?(n(),u(d,{key:1})):t.value.view.type==="iframe"?(n(),u(o,{key:2,tab:t.value},null,8,["tab"])):t.value.view.type==="vnode"?(n(),u(F(t.value.view.vnode),{key:3})):t.value.view.type==="launch"?(n(),u(l,{key:4,name:`custom-${t.value.name}`,icon:t.value.view.icon||t.value.icon,title:t.value.view.title||t.value.title,description:t.value.view.description,actions:t.value.view.actions,onAction:a[0]||(a[0]=g=>T(I).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[G(_,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+A(t.value.view),1)]),_:1})]),_:1})):(n(),u(v,{key:0},{default:y(()=>[r("div",Z,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",z,[a[1]||(a[1]=w(" Tab ")),r("code",J,A(i.value),1),a[2]||(a[2]=w(" not found "))]),a[4]||(a[4]=r("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1)),a[5]||(a[5]=r("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]),_:1}))}}});export{ne as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as T}from"./nsection-block-jqk2eteu.js";import{_ as D}from"./ncheckbox.vue-k6rmu4zz.js";import{g as M}from"./color-mt9xuhgy.js";import{_ as H}from"./nbadge-vd71u3ck.js";import{q as h,u as R,R as g,a0 as l,a1 as d,a8 as I,S as j,a7 as k,U as z,k as p,O as u,F as x,P as t,a2 as s,Q as B,ad as N,W as E,v as $}from"./vendor/json-editor-vue-j95m40pi.js";import{_ as O,a5 as W}from"./n72b0hrv.js";import{_ as q}from"./filepath-item.vue-cwwy1j4l.js";import{_ as K}from"./ncode-block.vue-b8i8bs30.js";import"./nicon-title.vue-j53icbz7.js";import"./vendor/unocss-k3376dad.js";import"./vendor/shiki-jv02kgzv.js";import"./client-depgvswg.js";const L=h({__name:"NBadgeHashed",props:{text:{}},setup(_){const i=_,c=R(()=>{const a=M(i.text,50,60),r=M(i.text,50,60,.05);return{color:a,background:r}});return(a,r)=>(l(),g(H,{style:z(c.value)},{default:d(()=>[I(k(a.text),1),j(a.$slots,"default")]),_:3},8,["style"]))}}),Q={flex:"~ gap-2 col",mb4:""},A={flex:"~ gap-3 items-center"},G={key:0,flex:"~ gap-1","items-center":"",p1:"",border:"~ base rounded"},J={"max-w-full":"","of-auto":""},X={"text-center":"",op50:""},Y={flex:"~",px4:""},Z={key:0,op50:""},ee={px2:"","text-center":""},te={"of-auto":""},oe=h({__name:"DebugModuleMutationRecords",props:{moduleMutationRecords:{}},setup(_){const i=_;function c(n){return n.startsWith("/")||n.match(/^[a-z]:[\\/]/i)}const a=p(!1),r=p(!1),v=p(!1),b=p(!1),w=p(!1),m=p(""),S=R(()=>{let n=i.moduleMutationRecords;return a.value||(n=n.filter(e=>!e.name.startsWith("nuxt:")&&e.name!=="@nuxt/devtools")),r.value||(n=n.filter(e=>e.keys.join(".")!=="build.templates")),v.value||(n=n.filter(e=>e.keys.join(".")!=="build.transpile")),b.value||(n=n.filter(e=>e.keys.join(".")!=="plugins")),w.value||(n=n.filter(e=>e.method||e.value!=="[]"&&e.value!=="{}")),m.value&&(n=n.filter(e=>e.name===m.value)),n});return(n,e)=>{const f=D,y=L,F=O,U=q,P=K;return l(),u(x,null,[t("div",Q,[t("div",A,[s(f,{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=o=>a.value=o),n:"primary"},{default:d(()=>e[6]||(e[6]=[t("span",{"ws-nowrap":"",op75:""},"Builtin Modules",-1)])),_:1},8,["modelValue"]),s(f,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=o=>r.value=o),n:"primary"},{default:d(()=>e[7]||(e[7]=[t("span",{"ws-nowrap":"",op75:""},"Templates",-1)])),_:1},8,["modelValue"]),s(f,{modelValue:v.value,"onUpdate:modelValue":e[2]||(e[2]=o=>v.value=o),n:"primary"},{default:d(()=>e[8]||(e[8]=[t("span",{"ws-nowrap":"",op75:""},"Transpile",-1)])),_:1},8,["modelValue"]),s(f,{modelValue:b.value,"onUpdate:modelValue":e[3]||(e[3]=o=>b.value=o),n:"primary"},{default:d(()=>e[9]||(e[9]=[t("span",{"ws-nowrap":"",op75:""},"Plugins",-1)])),_:1},8,["modelValue"]),s(f,{modelValue:w.value,"onUpdate:modelValue":e[4]||(e[4]=o=>w.value=o),n:"primary"},{default:d(()=>e[10]||(e[10]=[t("span",{"ws-nowrap":"",op75:""},"Empty Initial",-1)])),_:1},8,["modelValue"]),m.value?(l(),u("div",G,[s(y,{"font-mono":"",text:m.value},null,8,["text"]),s(F,{icon:"carbon-close",border:!1,onClick:e[5]||(e[5]=o=>m.value="")})])):B("",!0)])]),t("table",J,[e[11]||(e[11]=t("thead",{border:"b base"},[t("tr",null,[t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Index "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Module "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Key Path "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Method "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Value ")])],-1)),t("tbody",null,[(l(!0),u(x,null,N(S.value,o=>(l(),u("tr",{key:n.moduleMutationRecords.indexOf(o),border:"b dashed transparent hover:base"},[t("td",X,[t("div",null,k(n.moduleMutationRecords.indexOf(o)+1),1)]),t("td",null,[o.name&&c(o.name)?(l(),g(U,{key:0,filepath:o.name},null,8,["filepath"])):(l(),g(y,{key:1,role:"button","font-mono":"",text:o.name,onClick:V=>m.value=o.name},null,8,["text","onClick"]))]),t("td",null,[t("code",Y,[(l(!0),u(x,null,N(o.keys,(V,C)=>(l(),u(x,{key:C},[t("span",null,k(V),1),C<o.keys.length-1?(l(),u("span",Z," . ")):B("",!0)],64))),128))])]),t("td",ee,[s(y,{"font-mono":"",text:o.method||"=",class:E(o.method?"":"saturate-0")},null,8,["text","class"])]),t("td",te,[s(P,{code:String(o.value),lang:"ts","grammar-context-code":"let a = ","ws-normal":"","break-all":"",py1:"",lines:!1,inline:!0},null,8,["code"])])]))),128))])])],64)}}}),ne={key:0,p6:""},le={key:1},ve=h({__name:"debug",setup(_){const i=W();return(c,a)=>{const r=T;return $(i)?(l(),u("div",le,[s(r,{icon:"carbon-container-image-push-pull",text:"Module Mutation Records",description:"Records of module mutations to nuxt options"},{default:d(()=>[s(oe,{"module-mutation-records":$(i).moduleMutationRecords||[]},null,8,["module-mutation-records"])]),_:1})])):(l(),u("div",ne,a[0]||(a[0]=[t("div",null,"No Debug Countext Found",-1),t("div",null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)])))}}});export{ve as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-ad94c1fd]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-ad94c1fd]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-ad94c1fd]{background-color:#ffffff4d}.gradient-border[data-v-ad94c1fd]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-ad94c1fd]{background-color:#1414144d}.gradient-border[data-v-ad94c1fd]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-ad94c1fd]:before{background-size:400% auto;border-radius:.5rem;content:"";inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-ad94c1fd]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-ad94c1fd]{position:fixed}.left-0[data-v-ad94c1fd]{left:0}.right-0[data-v-ad94c1fd]{right:0}.z-10[data-v-ad94c1fd]{z-index:10}.z-20[data-v-ad94c1fd]{z-index:20}.grid[data-v-ad94c1fd]{display:grid}.mb-16[data-v-ad94c1fd]{margin-bottom:4rem}.mb-8[data-v-ad94c1fd]{margin-bottom:2rem}.max-w-520px[data-v-ad94c1fd]{max-width:520px}.min-h-screen[data-v-ad94c1fd]{min-height:100vh}.w-full[data-v-ad94c1fd]{width:100%}.flex[data-v-ad94c1fd]{display:flex}.cursor-pointer[data-v-ad94c1fd]{cursor:pointer}.place-content-center[data-v-ad94c1fd]{place-content:center}.items-center[data-v-ad94c1fd]{align-items:center}.justify-center[data-v-ad94c1fd]{justify-content:center}.overflow-hidden[data-v-ad94c1fd]{overflow:hidden}.bg-white[data-v-ad94c1fd]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-ad94c1fd]{padding-left:1rem;padding-right:1rem}.px-8[data-v-ad94c1fd]{padding-left:2rem;padding-right:2rem}.py-2[data-v-ad94c1fd]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-ad94c1fd]{text-align:center}.text-8xl[data-v-ad94c1fd]{font-size:6rem;line-height:1}.text-xl[data-v-ad94c1fd]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-ad94c1fd]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-ad94c1fd]{font-weight:300}.font-medium[data-v-ad94c1fd]{font-weight:500}.leading-tight[data-v-ad94c1fd]{line-height:1.25}.font-sans[data-v-ad94c1fd]{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}.antialiased[data-v-ad94c1fd]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-ad94c1fd]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-ad94c1fd]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-ad94c1fd]{padding-left:0;padding-right:0}.sm\:px-6[data-v-ad94c1fd]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-ad94c1fd]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-ad94c1fd]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-ad94c1fd]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-f2deb708]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-f2deb708]{position:fixed}.-bottom-1\/2[data-v-f2deb708]{bottom:-50%}.left-0[data-v-f2deb708]{left:0}.right-0[data-v-f2deb708]{right:0}.grid[data-v-f2deb708]{display:grid}.mb-16[data-v-f2deb708]{margin-bottom:4rem}.mb-8[data-v-f2deb708]{margin-bottom:2rem}.h-1\/2[data-v-f2deb708]{height:50%}.max-w-520px[data-v-f2deb708]{max-width:520px}.min-h-screen[data-v-f2deb708]{min-height:100vh}.place-content-center[data-v-f2deb708]{place-content:center}.overflow-hidden[data-v-f2deb708]{overflow:hidden}.bg-white[data-v-f2deb708]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-f2deb708]{padding-left:2rem;padding-right:2rem}.text-center[data-v-f2deb708]{text-align:center}.text-8xl[data-v-f2deb708]{font-size:6rem;line-height:1}.text-xl[data-v-f2deb708]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-f2deb708]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-f2deb708]{font-weight:300}.font-medium[data-v-f2deb708]{font-weight:500}.leading-tight[data-v-f2deb708]{line-height:1.25}.font-sans[data-v-f2deb708]{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}.antialiased[data-v-f2deb708]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-f2deb708]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-f2deb708]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-f2deb708]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-f2deb708]{font-size:2.25rem;line-height:2.5rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as t}from"./n72b0hrv.js";import{O as e,a0 as r,S as s}from"./vendor/json-editor-vue-j95m40pi.js";import"./vendor/unocss-k3376dad.js";import"./vendor/shiki-jv02kgzv.js";const a={},c={"h-full":"","of-auto":""};function n(o,f){return r(),e("div",c,[s(o.$slots,"default")])}const d=t(a,[["render",n]]);export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as S}from"./duration-display.vue-nwmxglh9.js";import{g as T}from"./color-mt9xuhgy.js";import{q as $,k as H,u as w,O as h,a0 as u,P as o,a8 as l,W as p,F as y,ad as F,a7 as m,U as B,v as k,a2 as _,R as C,Q as N,a1 as f}from"./vendor/json-editor-vue-j95m40pi.js";import{_ as P}from"./nsection-block-jqk2eteu.js";import{_ as V}from"./help-fab.vue-hs0g1jg5.js";import{a6 as D,f as O}from"./n72b0hrv.js";import"./nicon-title.vue-j53icbz7.js";import"./vendor/unocss-k3376dad.js";import"./vendor/shiki-jv02kgzv.js";const E={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},R={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},U={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},Y={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},q={"text-sm":""},Q={"ws-nowrap":""},W={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-right":"","text-sm":""},M=$({__name:"HooksTable",props:{hooks:{}},setup(x){const a=x,r=H("duration"),n=H("asc"),d={duration:(e,t)=>(t.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},g=w(()=>a.hooks.map(e=>e.start).sort((e,t)=>e-t)),b=w(()=>{const e=d[r.value],t=[...a.hooks].sort(e);return n.value==="desc"&&t.reverse(),t});function c(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function v(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function i(e){r.value===e?n.value=n.value==="asc"?"desc":"asc":r.value=e}return(e,t)=>{const I=S;return u(),h("table",E,[o("thead",j,[o("tr",null,[o("th",L,[o("button",{onClick:t[0]||(t[0]=s=>i("start"))},[t[5]||(t[5]=l(" Order ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="start"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[1]||(t[1]=s=>i("name"))},[t[6]||(t[6]=l(" Hook name ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="name"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[2]||(t[2]=s=>i("listener"))},[t[7]||(t[7]=l(" Listeners ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="listener"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",R,[o("button",{onClick:t[3]||(t[3]=s=>i("executions"))},[t[8]||(t[8]=l(" Executions ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="executions"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",U,[o("button",{onClick:t[4]||(t[4]=s=>i("duration"))},[t[9]||(t[9]=l(" Duration ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="duration"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(u(!0),h(y,null,F(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",Y,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:B({color:("getHslColorFromStringHash"in e?e.getHslColorFromStringHash:k(T))(c(s.name))})},[o("code",q,m(c(s.name)),1)],4),o("td",Q,[o("code",W,m(v(s.name)),1)]),o("td",G,m(s.listeners),1),o("td",J,m(s.executions.length+1),1),o("td",K,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),X={class:"markdown-body"},Z={__name:"hooks",setup(x,{expose:a}){return a({frontmatter:{}}),(n,d)=>(u(),h("div",X,d[0]||(d[0]=[o("h1",null,"Hooks",-1),o("p",null,[l("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")],-1)])))}},ut=$({__name:"hooks",setup(x){const a=D(),r=O(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=M,c=P,v=Z,i=V;return u(),h(y,null,[o("div",null,[n.value?.length?(u(),C(c,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n.value.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:n.value},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),k(a)?.length?(u(),C(c,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${k(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:k(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{ut as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a7 as T,Y as A,a8 as U,K as P,O as j,X as O,E as X}from"./n72b0hrv.js";import{_ as Y}from"./nselect-tabs.vue-sovv20f2.js";import{_ as q}from"./nnavbar.vue-f401hj3c.js";import{_ as z}from"./filepath-item.vue-cwwy1j4l.js";import{_ as K}from"./composable-item.vue-gy6f0noz.js";import{q as C,O as u,a0 as a,F as k,ad as M,a2 as c,P as i,R as w,Q as x,v as f,u as _,a7 as Q,k as B,a1 as $}from"./vendor/json-editor-vue-j95m40pi.js";import{_ as R}from"./nsection-block-jqk2eteu.js";import{_ as G}from"./help-fab.vue-hs0g1jg5.js";import{D as V}from"./constants-b32h69zq.js";import"./vendor/unocss-k3376dad.js";import"./vendor/shiki-jv02kgzv.js";import"./nmarkdown.vue-du6y1w8i.js";import"./client-depgvswg.js";import"./index-jc4yj4to.js";import"./nicon-title.vue-j53icbz7.js";const J={flex:"~ wrap gap2",p2:"",pl4:""},W=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=z,e=K;return a(),u("div",null,[(a(!0),u(k,null,M(r.map.entries(),([l,m])=>(a(),u("div",{key:l},[c(o,{filepath:l,op50:"","hover:underline":""},null,8,["filepath"]),i("div",J,[(a(!0),u(k,null,M(m,g=>(a(),w(e,{key:g.as,item:g,metadata:r.metadata,"is-directive":g.meta?.vueDirective===!0,filepath:l.match(/^[\w@]/)?void 0:l},null,8,["item","metadata","is-directive","filepath"]))),128))])]))),128))])}}}),Z={key:0,flex:"~ col gap-2 items-start"},ee=C({__name:"HelpImportsDirs",setup(D){const r=T();return(v,o)=>{const e=z;return f(r)?.dirs?(a(),u("div",Z,[(a(!0),u(k,null,M(f(r).dirs,l=>(a(),w(e,{key:l,filepath:l,"text-primary":""},null,8,["filepath"]))),128))])):x("",!0)}}}),te={flex:"~ gap-2 wrap",mb6:""},oe=C({__name:"HelpImportsModules",setup(D){const r=T(),v=_(()=>[...new Set(r.value?.imports.map(o=>A(o.from)).filter(o=>!!o&&!U(o)))]);return(o,e)=>(a(),u("div",te,[(a(!0),u(k,null,M(v.value,l=>(a(),u("code",{key:l,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},Q(l),1))),128))]))}}),se={class:"markdown-body"},ae={__name:"imports",setup(D,{expose:r}){return r({frontmatter:{}}),(o,e)=>{const l=ee,m=oe;return a(),u("div",se,[e[0]||(e[0]=i("h1",null,"Auto imports",-1)),e[1]||(e[1]=i("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1)),e[2]||(e[2]=i("hr",null,null,-1)),e[3]||(e[3]=i("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),c(l),e[4]||(e[4]=i("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),c(m),e[5]||(e[5]=i("hr",null,null,-1)),e[6]||(e[6]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)),e[7]||(e[7]=i("h2",null,"Directives",-1)),e[8]||(e[8]=i("p",null,"Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1)),e[9]||(e[9]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/directory-structure/directives",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},le={key:0,relative:"","h-full":"","of-auto":""},re={key:0,flex:"~ gap-2 items-center lt-sm:col lt-sm:items-start"},$e=C({__name:"imports",setup(D){const r=P(),v=B("all"),o=B("all"),e=B(""),l=T(),m=_(()=>l.value?.metadata),g=_(()=>l.value?.imports.filter(d=>d.as||d.name).sort((d,n)=>(d.as||d.name).localeCompare(n.as||n.name))||[]),F=_(()=>new j(g.value,{keys:["from","as","name"]})),s=_(()=>{const d=new Map,n=new Map,I=new Map;let p=e.value?F.value.search(e.value).map(t=>t.item):g.value;const N=o.value;N==="composables"?p=p.filter(t=>t.meta?.vueDirective!==!0):N==="directives"&&(p=p.filter(t=>t.meta?.vueDirective===!0)),v.value==="using"&&m.value?p=p.filter(t=>(t.as||t.name)in m.value.injectionUsage):v.value==="not-used"&&m.value&&(p=p.filter(t=>!((t.as||t.name)in m.value.injectionUsage)));const h={user:0,lib:0,builtin:0};return p.forEach(t=>{const b=O(t.from)?U(A(t.from))?I:n:d;b.has(t.from)||b.set(t.from,[]),b.get(t.from).push(t),h[b===d?"user":b===n?"lib":"builtin"]++}),{user:d,lib:n,builtin:I,count:h}}),S=_(()=>o.value==="directives"?`${s.value.count.user} directives from ${s.value.user.size} modules`:`${s.value.count.user} composables from ${s.value.user.size} modules`),E=_(()=>o.value==="directives"?`${s.value.count.builtin} directives`:`${s.value.count.builtin} composables`),H=_(()=>o.value==="directives"?`${s.value.count.lib} directives from ${s.value.lib.size} packages`:`${s.value.count.lib} composables from ${s.value.lib.size} packages`);return(d,n)=>{const I=X,p=Y,N=q,h=W,t=R,b=ae,L=G;return a(),u(k,null,[f(r)?(a(),u("div",le,[c(N,{search:e.value,"onUpdate:search":n[2]||(n[2]=y=>e.value=y),pb3:""},{default:$(()=>[m.value?(a(),u("div",re,[c(I,{icon:"carbon-filter",op50:""}),c(p,{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=y=>v.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"]),c(p,{modelValue:o.value,"onUpdate:modelValue":n[1]||(n[1]=y=>o.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Composables",value:"composables"},{label:"Directives",value:"directives"}]},null,8,["modelValue"])])):x("",!0)]),_:1},8,["search"]),s.value.user.size?(a(),w(t,{key:0,open:s.value.count.user<=f(V),icon:o.value==="directives"?"tabler:hexagon-letter-d":"carbon-function",text:`User ${o.value==="directives"?"directives":"composables"}`,description:S.value},{default:$(()=>[c(h,{map:s.value.user,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","icon","text","description"])):x("",!0),s.value.builtin.size?(a(),w(t,{key:1,open:s.value.count.builtin<=f(V),icon:"simple-icons-nuxtdotjs",text:`Built-in ${o.value==="directives"?"directives":"composables"}`,description:E.value},{default:$(()=>[c(h,{map:s.value.builtin,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0),s.value.lib.size?(a(),w(t,{key:2,open:s.value.count.lib<=f(V),icon:"carbon-3d-mpr-toggle",text:`${o.value==="directives"?"Directives":"Composables"} from libraries`,description:H.value},{default:$(()=>[c(h,{map:s.value.lib,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0)])):x("",!0),c(L,null,{default:$(()=>[c(b)]),_:1})],64)}}});export{$e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as w,V as y,bj as B,_ as C,E as V,B as P}from"./n72b0hrv.js";import{_ as $}from"./nmarkdown.vue-du6y1w8i.js";import{q as v,R as a,a0 as n,a1 as o,a2 as c,P as i,Q as m,a7 as _,O as E,F,ad as I,a3 as L,a8 as T}from"./vendor/json-editor-vue-j95m40pi.js";const j={"text-xl":""},q={flex:"~ gap2 wrap"},Q=v({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(l,{emit:p}){const d=l,u=p;function f(e,s){P("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const g=B,k=$,b=V,h=C,N=y,x=w;return n(),a(x,null,{default:o(()=>[c(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[c(g,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",j,_(e.title),1),e.description?(n(),a(k,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):m("",!0),i("div",q,[(n(!0),E(F,null,I(e.actions,(t,r)=>(n(),a(h,L({key:r,n:"solid primary",disabled:t.pending,to:t.src,target:t.src?"_blank":void 0,ref_for:!0},t.attrs,{onClick:D=>f(t,r)}),{default:o(()=>[t.pending?(n(),a(b,{key:0,icon:"carbon-circle-dash","animate-spin":""})):m("",!0),T(" "+_(t.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{Q as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as oe}from"./filepath-item.vue-cwwy1j4l.js";import{L as G,V as H,e as U,E as K,s as Q,_ as O,r as q,m as E,B as ne,a9 as R,aa as W,O as se,K as le,y as ae,A as ie,v as re}from"./n72b0hrv.js";import{_ as ue,u as V,a as de}from"./state-modules-lcdzhh4h.js";import{_ as me}from"./duration-display.vue-nwmxglh9.js";import{q as P,u as M,R as $,a0 as o,a1 as r,P as e,S as T,O as p,Q as v,a8 as k,a7 as g,v as j,W as L,a2 as s,F as B,ad as A,ak as pe,k as D,L as Y}from"./vendor/json-editor-vue-j95m40pi.js";import{_ as ce}from"./nsection-block-jqk2eteu.js";import{_ as _e}from"./nicon-title.vue-j53icbz7.js";import{_ as J}from"./ndropdown.vue-g1sjeecu.js";import{_ as fe}from"./ncheckbox.vue-k6rmu4zz.js";import{_ as ve}from"./nnavbar.vue-f401hj3c.js";import{_ as ge}from"./nbadge-vd71u3ck.js";import{s as xe}from"./vue-virtual-scroller.esm-hp3a40lw.js";import{_ as be}from"./ncode-block.vue-b8i8bs30.js";import{_ as ke}from"./nlink.vue-ityt6kq7.js";import{_ as he}from"./code-diff.vue-if95s6cx.js";import{_ as ye}from"./help-fab.vue-hs0g1jg5.js";import"./vendor/unocss-k3376dad.js";import"./vendor/shiki-jv02kgzv.js";import"./client-depgvswg.js";const $e={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},we={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},Ce={key:2},Ie={key:1,flex:"~ gap-2",title:"Documentation"},Me={key:2,flex:"~ gap-2"},Ne={key:0,flex:"~ gap-4 items-center"},Be={flex:"~ gap-2 items-center",op50:""},je={flex:"~ gap-2 items-center",op50:""},Pe={key:1},De={flex:"~ col","items-end":""},Ae={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Te=["src","alt"],Le={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Oe=["src"],Se={flex:"","justify-end":""},ze="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Ue="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",Ve="https://github.com/",Fe="https://www.npmjs.com/package/",F=P({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const f=N,i=M(()=>({...f.mod?.meta,...f.mod,...f.info})),x=G();return(m,t)=>{const l=U,u=K,h=me,w=H;return o(),$(w,{p4:"",flex:"~ gap2"},{default:r(()=>[e("div",$e,[T(m.$slots,"main",{},()=>[e("div",we,[m.mod.isPackageModule?(o(),$(l,{key:0,to:Fe+(i.value.npm||i.value.name),target:"_blank",hover:"underline text-primary"},{default:r(()=>[k(g(i.value.name),1)]),_:1},8,["to"])):m.mod.entryPath?(o(),p("button",{key:1,role:"button",hover:"underline text-primary",onClick:t[0]||(t[0]=c=>j(x)(m.mod.entryPath))},g(i.value.name),1)):(o(),p("span",Ce,g(i.value.name),1)),T(m.$slots,"badge")]),i.value.description?(o(),p("div",{key:0,class:L(m.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},g(i.value.description),3)):v("",!0),t[3]||(t[3]=e("div",{"flex-auto":""},null,-1)),i.value.website?(o(),p("div",Ie,[t[1]||(t[1]=e("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):v("",!0),i.value.github?(o(),p("div",Me,[t[2]||(t[2]=e("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):v("",!0)]),T(m.$slots,"items"),i.value.stats?(o(),p("div",Ne,[e("div",Be,[s(u,{icon:"carbon-star","text-lg":""}),e("span",null,g(i.value.stats.stars),1)]),e("div",je,[s(u,{icon:"carbon-download","text-lg":""}),e("span",null,g(i.value.stats.downloads),1)])])):v("",!0),m.mod.timings?.setup?(o(),p("div",Pe,[s(h,{title:"Module Setup Time",flex:"~ items-center",duration:m.mod.timings.setup*1e3,factor:.5},{before:r(()=>[s(u,{icon:"carbon-time",mr2:"","text-lg":"",op50:""})]),_:1},8,["duration"])])):v("",!0)]),e("div",De,[i.value.icon||m.mod.isPackageModule?(o(),p("div",Ae,[i.value.icon?(o(),p("img",{key:0,src:ze+i.value.icon,alt:m.mod.name,ma:""},null,8,Te)):v("",!0),t[4]||(t[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):v("",!0),i.value.maintainers?.length&&m.maintainers?(o(),p("div",Le,[(o(!0),p(B,null,A(i.value.maintainers,c=>(o(),$(l,{key:c.name,target:"_blank",to:Ve+c.github,title:c.name},{default:r(()=>[e("img",{src:Ue+c.github,"h-6":"","w-6":"","rounded-full":""},null,8,Oe)]),_:2},1032,["to","title"]))),128))])):v("",!0),m.$slots.actions?(o(),p(B,{key:2},[t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("div",Se,[T(m.$slots,"actions")])],64)):v("",!0)])]),_:3})}}}),qe={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ee={key:1,"mx--2":""},Ye=["onClick"],Ge={key:2,"mx--2":""},He=["onClick"],Ke={op50:""},Qe={"text-green":""},Re={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},We={"text-sm":"",op50:""},Je=P({__name:"ModuleItem",props:{mod:{}},setup(N){const f=N,i=M(()=>f.mod.info),x=M(()=>({...f.mod?.meta,...f.mod,...i.value})),m=Q();return(t,l)=>{const u=oe,h=U,w=ue,c=F;return o(),$(c,{mod:t.mod,info:i.value},{items:r(()=>[t.mod.entryPath?(o(),p("div",qe,[l[0]||(l[0]=e("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1)),s(u,{filepath:t.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):v("",!0),x.value.npm?(o(),$(w,{key:x.value.npm,"package-name":x.value.npm,options:{dev:!0}},{default:r(({info:d,update:C,state:b,id:a,restart:n})=>[b==="running"?(o(),$(h,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:a?"/modules/terminals":void 0,onClick:y=>a?m.value=a:void 0},{default:r(()=>l[1]||(l[1]=[e("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])),_:2},1032,["to","onClick"])):b==="updated"?(o(),p("div",Ee,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:n},l[2]||(l[2]=[e("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)]),8,Ye)])):d?.needsUpdate?(o(),p("div",Ge,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:y=>C()},[l[3]||(l[3]=e("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),e("code",Ke,"v"+g(d.current),1),l[4]||(l[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Qe,"v"+g(d.latest),1)],8,He)])):d?.latest?(o(),p("div",Re,[l[5]||(l[5]=e("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),e("code",We,"v"+g(d.current),1)])):v("",!0)]),_:1},8,["package-name"])):v("",!0)]),_:1},8,["mod","info"])}}}),Xe=P({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:f}){const i=N,x=f,m=V(),t=M(()=>m.value.find(c=>c.name===i.item.npm)),l=M(()=>t.value&&t.value.isPackageModule),u=M(()=>t.value&&t.value.isPackageModule&&t.value.isUninstallable);async function h(c,d){const C=d==="install"?q.installNuxtModule:q.uninstallNuxtModule,b=await C(await E(),c.npm,!0);ne(`modules:${d}`,{moduleName:c.npm}),b.commands&&await R.start(c,b,d)&&(W.value.push({name:c.npm,info:c,processId:b.processId}),x("start"),await C(await E(),c.npm,!1))}const w={};return(c,d)=>{const C=ge,b=O,a=J,n=F;return o(),$(n,{mod:w,role:l.value?"":"button",info:c.item,mb2:"","h-full":"",class:L(l.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:d[1]||(d[1]=y=>l.value?null:h(c.item,"install"))},pe({_:2},[l.value?{name:"badge",fn:r(()=>[s(C,{n:"green",textContent:"Installed"}),u.value?(o(),$(a,{key:0,n:"sm green"},{trigger:r(({click:y})=>[s(b,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:_=>y()},null,8,["onClick"])]),default:r(()=>[s(b,{icon:"carbon-trash-can",n:"red",onClick:d[0]||(d[0]=y=>h(c.item,"uninstall"))},{default:r(()=>d[2]||(d[2]=[k(" Uninstall ")])),_:1})]),_:1})):v("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),Ze={"h-full":"",flex:"~ col gap-4"},et={flex:"~ items-center"},tt={flex:"~ col","w-30":"","of-auto":""},ot={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},nt={flex:"~ items-center gap-2"},st={flex:"~ gap1","text-sm":"",op50:""},lt={key:0},at={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},it=P({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:f}){const i=f,x=de(),m=V(),t=["downloads","stars","updated","created"],l=D(!1),u=D(t[0]),h=D(!0),w={downloads:(a,n)=>a.stats.downloads-n.stats.downloads,stars:(a,n)=>a.stats.stars-n.stats.stars,created:(a,n)=>a.stats.createdAt-n.stats.createdAt,updated:(a,n)=>a.stats.publishedAt-n.stats.publishedAt},c=M(()=>x.value?.toSorted((a,n)=>w[u.value](a,n)*(l.value?1:-1))),d=D(""),C=M(()=>new se(x.value||[],{keys:["name","description","npm","category"],sortFn:(a,n)=>{const y=x.value?.[a.idx],_=x.value?.[n.idx];return y&&_?w[u.value](y,_)*(l.value?1:-1):a.score-n.score},threshold:.2})),b=M(()=>{let a=c.value;return h.value&&(a=(a||[]).filter(n=>!m.value.some(y=>y.name===n.name))),d.value?C.value.search(d.value).map(n=>n.item).filter(n=>a?.includes(n)):a});return(a,n)=>{const y=_e,_=O,S=K,X=J,Z=fe,ee=ve,te=Xe;return o(),p("div",Ze,[s(y,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),s(ee,{search:d.value,"onUpdate:search":n[2]||(n[2]=I=>d.value=I),"no-padding":"","px-6":"","pb-3":"","pt-2":""},{actions:r(()=>[s(X,{direction:"end",n:"sm primary"},{trigger:r(({click:I})=>[e("div",et,[s(_,{icon:l.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:n[0]||(n[0]=z=>l.value=!l.value)},null,8,["icon"]),s(_,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:z=>I()},{default:r(()=>[k(g(u.value)+" ",1),s(S,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:r(()=>[e("div",tt,[(o(),p(B,null,A(t,I=>s(_,{key:I,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:z=>u.value=I},{default:r(()=>[e("span",ot,[k(g(I)+" ",1),u.value===I?(o(),$(S,{key:0,icon:"carbon:checkmark"})):v("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),default:r(()=>[e("div",nt,[s(Z,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=I=>h.value=I),n:"primary md"},{default:r(()=>n[4]||(n[4]=[e("span",{op75:""},"Exclude installed modules",-1)])),_:1},8,["modelValue"]),e("div",st,[d.value||h.value?(o(),p("span",lt,g(b.value?.length)+" matched · ",1)):v("",!0),e("span",null,g(j(x)?.length)+" modules in total",1)])])]),_:1},8,["search"]),e("div",at,[s(j(xe),{class:"scroller",items:b.value,"item-size":200,"key-field":"name"},{default:r(({item:I})=>[s(te,{item:I,onStart:n[3]||(n[3]=z=>i("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),rt={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ut={capitalize:""},dt={op50:""},mt={flex:"~ gap-3",mt2:"","justify-end":""},pt=P({__name:"ModuleActionDialog",setup(N){const f=le(),i=G(),x={};return(m,t)=>{const l=F,u=be,h=ke,w=he,c=ie,d=O,C=ae;return o(),$(j(R),null,{default:r(({resolve:b,args:a})=>[s(C,{"model-value":!0,onClose:n=>b(!1)},{default:r(()=>[s(l,{mod:x,info:a[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",rt,[e("h2",{"text-xl":"",class:L(a[2]==="install"?"text-primary":"text-red")},[e("span",ut,g(a[2]),1),t[1]||(t[1]=k()),e("code",null,g(a[0].name),1),t[2]||(t[2]=k("? "))],2),t[7]||(t[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(u,{code:a[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",dt,[t[3]||(t[3]=k(" Then your ")),s(h,{role:"button",n:"primary",underline:"",onClick:t[0]||(t[0]=n=>j(i)(j(f)?._nuxtConfigFile)),textContent:"Nuxt config"}),t[4]||(t[4]=k(" will be updated as: "))]),s(w,{from:a[1].configOriginal,to:a[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),t[8]||(t[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),k(". ")],-1)),e("div",mt,[s(c,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:r(()=>t[5]||(t[5]=[k(" Please make sure to backup your project first. ")])),_:1}),s(d,{onClick:n=>b(!1)},{default:r(()=>t[6]||(t[6]=[k(" Cancel ")])),_:2},1032,["onClick"]),s(d,{n:"solid",capitalize:"",class:L(a[2]==="install"?"n-primary":"n-red"),onClick:n=>b(!0)},{default:r(()=>[k(g(a[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),ct={class:"markdown-body"},_t={__name:"modules",setup(N,{expose:f}){return f({frontmatter:{}}),(x,m)=>(o(),p("div",ct,m[0]||(m[0]=[e("h1",null,"Modules",-1),e("p",null,[k("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),e("code",null,"nuxt.config"),k(".")],-1),e("p",null,[k("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),k(" or install them directly inside the DevTools.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},ft={"h-full":"","w-full":"","of-auto":""},vt={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},gt=["src","alt"],xt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},bt={op75:""},kt={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},ht="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Ft=P({__name:"modules",setup(N){const f=D(!1),i=V(),x=Q(),m=M(()=>i.value.filter(l=>l.isPackageModule)),t=M(()=>i.value.filter(l=>!l.isPackageModule));return re(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{f.value=!0}}]),(l,u)=>{const h=Je,w=H,c=U,d=ce,C=O,b=it,a=pt,n=_t,y=ye;return o(),p(B,null,[e("div",ft,[s(d,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${m.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(m.value,_=>(o(),$(h,{key:_.name,mod:_},null,8,["mod"]))),128)),(o(!0),p(B,null,A("processInstallingModules"in l?l.processInstallingModules:j(W),_=>(o(),$(c,{key:_.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:S=>x.value=_.processId},{default:r(()=>[s(w,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:r(()=>[e("div",vt,[e("img",{src:ht+_.info.icon,alt:_.info.name,ma:""},null,8,gt),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",xt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",bt,"Installing "+g(_.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(w,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:u[0]||(u[0]=_=>f.value=!0)},{default:r(()=>u[6]||(u[6]=[e("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),e("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1)])),_:1})]),_:1},8,["description"]),t.value.length?(o(),$(d,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${t.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(t.value,_=>(o(),p(B,{key:_.meta?.name||_.entryPath},[_.meta?.name||_.entryPath?(o(),$(h,{key:0,mod:_},null,8,["mod"])):v("",!0)],64))),128))]),_:1},8,["description"])):v("",!0),s(Y,{name:"fade-in"},{default:r(()=>[f.value?(o(),p("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=_=>f.value=!1)})):v("",!0)]),_:1}),s(Y,{name:"slide-in"},{default:r(()=>[f.value?(o(),p("div",kt,[s(C,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=_=>f.value=!1)}),s(b,{onClose:u[3]||(u[3]=_=>f.value=!1)})])):v("",!0)]),_:1}),s(a)]),s(y,null,{default:r(()=>[s(n)]),_:1})],64)}}});export{Ft as default};
|