@nuxt/devtools 3.2.2 → 3.2.4
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 +142 -53
- package/dist/chunks/plugin-metrics.mjs +4 -2
- package/dist/chunks/timeline.mjs +2 -1
- package/dist/chunks/vite-inspect.mjs +7 -4
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-cpzbm3dn.js +1 -0
- package/dist/client/_nuxt/analyze-build-isc8qyt9.js +1 -0
- package/dist/client/_nuxt/assets-k3ya1y6b.js +6 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/c954ff6d-891d-44ef-873b-bed085186c32.json +1 -0
- package/dist/client/_nuxt/{client-lfu9nb62.js → client-im47u3kz.js} +1 -1
- package/dist/client/_nuxt/client-nwyjxodt.js +2 -0
- package/dist/client/_nuxt/{code-diff-otsxuk81.js → code-diff-hjtd937u.js} +3 -3
- package/dist/client/_nuxt/{code-snippets-c0ulfayj.js → code-snippets-cptms1t1.js} +1 -1
- package/dist/client/_nuxt/components-h8jl0r8x.js +1 -0
- package/dist/client/_nuxt/composable-item-m56sdpbk.js +1 -0
- package/dist/client/_nuxt/composables-b2ccklz4.js +1 -0
- package/dist/client/_nuxt/constants-mq2c9hze.js +1 -0
- package/dist/client/_nuxt/custom-_name_-oczf7kge.js +1 -0
- package/dist/client/_nuxt/d479ufk9.js +4 -0
- package/dist/client/_nuxt/{data-schema-button-fk6ozqve.js → data-schema-button-n0xmsouw.js} +1 -1
- package/dist/client/_nuxt/data-schema-drawer-le08obah.js +2 -0
- package/dist/client/_nuxt/debug-hbdh85ek.js +1 -0
- package/dist/client/_nuxt/{default-n9xykcpp.js → default-jvhm51ri.js} +1 -1
- package/dist/client/_nuxt/dev-auth-he0eye7r.js +1 -0
- package/dist/client/_nuxt/{dist-jq34z2yz.js → dist-duc3zu0y.js} +1 -1
- package/dist/client/_nuxt/{duration-display-k6iuyk4f.js → duration-display-h5sffkps.js} +1 -1
- package/dist/client/_nuxt/{entry.css-gx482m17.css → entry.css-hn1q325i.css} +1 -1
- package/dist/client/_nuxt/error-404-mzw240fb.js +1 -0
- package/dist/client/_nuxt/error-404.css-b4qk08da.css +1 -0
- package/dist/client/_nuxt/error-500-l89qfgc9.js +1 -0
- package/dist/client/_nuxt/error-500.css-awwhwbzo.css +1 -0
- package/dist/client/_nuxt/error-owd7hxtu.js +9 -0
- package/dist/client/_nuxt/{filepath-item-e4nchqwg.js → filepath-item-h3i1tz3s.js} +1 -1
- package/dist/client/_nuxt/full-et0weok9.js +1 -0
- package/dist/client/_nuxt/{help-fab-hk76lwiw.js → help-fab-oeo4c53s.js} +1 -1
- package/dist/client/_nuxt/hooks-lapcgs2a.js +1 -0
- package/dist/client/_nuxt/imports-lb64tt5j.js +1 -0
- package/dist/client/_nuxt/{launch-page-k1lwfnm2.js → launch-page-h3hu9uqw.js} +1 -1
- package/dist/client/_nuxt/mitt.es-ey5n86su.js +1 -0
- package/dist/client/_nuxt/modules-isjfof47.js +1 -0
- package/dist/client/_nuxt/nbadge-f1bvtlf5.js +1 -0
- package/dist/client/_nuxt/{nbutton-m0kqfedx.js → nbutton-gygn07c2.js} +1 -1
- package/dist/client/_nuxt/ncard-ludmyw2u.js +1 -0
- package/dist/client/_nuxt/{ncheckbox-knbe2cxv.js → ncheckbox-ep01n5y1.js} +1 -1
- package/dist/client/_nuxt/{ncode-block-o9sq6td7.js → ncode-block-figzf35k.js} +1 -1
- package/dist/client/_nuxt/{ndrawer-ufyhcx08.js → ndrawer-hos2o4rf.js} +1 -1
- package/dist/client/_nuxt/{ndropdown-lkmzobqs.js → ndropdown-knvt4ccq.js} +1 -1
- package/dist/client/_nuxt/{nicon-j0r9gdjm.js → nicon-m1crov2l.js} +1 -1
- package/dist/client/_nuxt/{nicon-title-ggx25xp9.js → nicon-title-kbrt9te7.js} +1 -1
- package/dist/client/_nuxt/{nlink-hz4zwb3c.js → nlink-od4lllbl.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown-nsbirjtv.js → nmarkdown-ciogo2e3.js} +1 -1
- package/dist/client/_nuxt/{nnavbar-b0i34u17.js → nnavbar-n7gfocyu.js} +1 -1
- package/dist/client/_nuxt/none-bdxkqeml.js +1 -0
- package/dist/client/_nuxt/npanel-grids-onrho735.js +1 -0
- package/dist/client/_nuxt/{nsection-block-dzbgwc4z.js → nsection-block-ibsk9arc.js} +1 -1
- package/dist/client/_nuxt/{nselect-ne66fzrs.js → nselect-gyaplrph.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs-jgvac6a8.js → nselect-tabs-fslk8qg5.js} +1 -1
- package/dist/client/_nuxt/{nswitch-abl34kow.js → nswitch-ke379yjx.js} +1 -1
- package/dist/client/_nuxt/{ntext-input-ozkk5xro.js → ntext-input-e8iut2en.js} +1 -1
- package/dist/client/_nuxt/nuxt-link-bumooa9d.js +1 -0
- package/dist/client/_nuxt/nuxt-otp6bp04.js +1 -0
- package/dist/client/_nuxt/open-graph-iihpwnih.js +3 -0
- package/dist/client/_nuxt/overview-hir7dg5h.js +1 -0
- package/dist/client/_nuxt/pages-etzxihfh.js +1 -0
- package/dist/client/_nuxt/pages-okkqwdpu.js +1 -0
- package/dist/client/_nuxt/payload-hmxfri1t.js +1 -0
- package/dist/client/_nuxt/pinia-bfcvuvfi.js +1 -0
- package/dist/client/_nuxt/plugins-ehtddhxd.js +1 -0
- package/dist/client/_nuxt/ready-dadbdj5i.js +1 -0
- package/dist/client/_nuxt/render-tree-ke02si46.js +1 -0
- package/dist/client/_nuxt/runtime-configs-ft5vi88d.js +1 -0
- package/dist/client/_nuxt/server-discovery-k9u6ss6f.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-fhqv0c7q.js +1 -0
- package/dist/client/_nuxt/server-routes-dy0m6wq4.js +7 -0
- package/dist/client/_nuxt/server-tasks-naz2m1n0.js +1 -0
- package/dist/client/_nuxt/settings-io1tvmdq.js +1 -0
- package/dist/client/_nuxt/{splitpanes.es-gcrxxdgy.js → splitpanes.es-gcsn48te.js} +1 -1
- package/dist/client/_nuxt/stacktrace-list-ir6dwfsw.js +1 -0
- package/dist/client/_nuxt/state-components-ii0yssci.js +1 -0
- package/dist/client/_nuxt/{state-editor-egz1k0a8.js → state-editor-m7poh4fc.js} +1 -1
- package/dist/client/_nuxt/{state-modules-dyb3mv6i.js → state-modules-m990wfjb.js} +1 -1
- package/dist/client/_nuxt/{state-routes-ovtjymzc.js → state-routes-jownks2o.js} +1 -1
- package/dist/client/_nuxt/{state-tabs-jkd7jbwg.js → state-tabs-mtxv3h6t.js} +1 -1
- package/dist/client/_nuxt/storage-nebfhfwp.js +1 -0
- package/dist/client/_nuxt/storage-options-nzog3hhp.js +1 -0
- package/dist/client/_nuxt/telemetry-c77tnag3.js +1 -0
- package/dist/client/_nuxt/terminals-j3f24tml.js +1 -0
- package/dist/client/_nuxt/timeline-cg7nhorz.js +31 -0
- package/dist/client/_nuxt/unocss-runtime-g9wlule9.js +1 -0
- package/dist/client/_nuxt/utils-jupbrzo6.js +1 -0
- package/dist/client/_nuxt/vendor/{json-editor-vue-jlmu1vk1.js → json-editor-vue-eojr4v24.js} +5 -5
- package/dist/client/_nuxt/vendor/{markdown-it-ocmvh7ju.js → markdown-it-ckeo8pwp.js} +1 -1
- package/dist/client/_nuxt/vendor/shiki-lqo1hg2n.js +153 -0
- package/dist/client/_nuxt/vendor/unocss-k727ub0h.js +3 -0
- package/dist/client/_nuxt/vendor/unocss.css-3gd0e2sv.css +1 -0
- package/dist/client/_nuxt/vendor/{vis-p9fufs7k.js → vis-gf06uk37.js} +1 -1
- package/dist/client/_nuxt/virtual-files-bkiu19oo.js +1 -0
- package/dist/client/_nuxt/vue-devtools-fdei7bct.js +4 -0
- package/dist/client/_nuxt/{vue-router-fwt4i0j8.js → vue-router-jbnxw7nb.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/dirs.mjs +2 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/view/client.js +2 -1
- package/dist/shared/devtools.CT6XRG-F.mjs +122 -0
- package/dist/webcomponents/index.mjs +36 -32
- package/package.json +34 -34
- package/dist/client/_nuxt/__blank-jnbqrgps.js +0 -1
- package/dist/client/_nuxt/analyze-build-c3vdx12p.js +0 -1
- package/dist/client/_nuxt/assets-myudvi12.js +0 -6
- package/dist/client/_nuxt/builds/meta/e62b39f7-ec98-459c-8392-819e51e75af5.json +0 -1
- package/dist/client/_nuxt/client-ea5fdhj9.js +0 -2
- package/dist/client/_nuxt/components-dwnwjv62.js +0 -1
- package/dist/client/_nuxt/composable-item-jjp1tvft.js +0 -1
- package/dist/client/_nuxt/composables-k2ak4j8d.js +0 -1
- package/dist/client/_nuxt/constants-ihoovckn.js +0 -1
- package/dist/client/_nuxt/custom-_name_-k9wxhx5t.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-mi3x7oeb.js +0 -2
- package/dist/client/_nuxt/debug-jzrj2rrq.js +0 -1
- package/dist/client/_nuxt/dev-auth-jrf61eu0.js +0 -1
- package/dist/client/_nuxt/drhywpwy.js +0 -4
- package/dist/client/_nuxt/error-404-b375yxaj.js +0 -1
- package/dist/client/_nuxt/error-404.css-k620a6z0.css +0 -1
- package/dist/client/_nuxt/error-500-marpmos8.js +0 -1
- package/dist/client/_nuxt/error-500.css-j1xt9kl6.css +0 -1
- package/dist/client/_nuxt/error-f0x29wdg.js +0 -9
- package/dist/client/_nuxt/full-ix5b85yu.js +0 -1
- package/dist/client/_nuxt/head-k6pu038r.js +0 -1
- package/dist/client/_nuxt/hooks-oamlzps1.js +0 -1
- package/dist/client/_nuxt/imports-rq4f924m.js +0 -1
- package/dist/client/_nuxt/modules-fev9bjof.js +0 -1
- package/dist/client/_nuxt/nbadge-h59v1exj.js +0 -1
- package/dist/client/_nuxt/ncard-qqqgbjy9.js +0 -1
- package/dist/client/_nuxt/none-bfunqbwh.js +0 -1
- package/dist/client/_nuxt/npanel-grids-m4ogaoh1.js +0 -1
- package/dist/client/_nuxt/nuxt-h34yfo3l.js +0 -1
- package/dist/client/_nuxt/nuxt-link-lrojf3ui.js +0 -1
- package/dist/client/_nuxt/open-graph-jokpmi3z.js +0 -3
- package/dist/client/_nuxt/overview-gfox82io.js +0 -1
- package/dist/client/_nuxt/pages-heq5sr3n.js +0 -1
- package/dist/client/_nuxt/pages-nev63916.js +0 -1
- package/dist/client/_nuxt/payload-cwkdgfbg.js +0 -1
- package/dist/client/_nuxt/pinia-cmp1aao2.js +0 -1
- package/dist/client/_nuxt/plugins-h6nd4bpq.js +0 -1
- package/dist/client/_nuxt/ready-mmkdpbhg.js +0 -1
- package/dist/client/_nuxt/render-tree-c25vnw9j.js +0 -1
- package/dist/client/_nuxt/runtime-configs-oyvmfkja.js +0 -1
- package/dist/client/_nuxt/server-discovery-k4kknv5h.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-heqgxrjl.js +0 -1
- package/dist/client/_nuxt/server-routes-bgud29n1.js +0 -7
- package/dist/client/_nuxt/server-tasks-kx1cj481.js +0 -1
- package/dist/client/_nuxt/settings-iudhxqb4.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-ivp3f076.js +0 -1
- package/dist/client/_nuxt/state-b65zn1p8.js +0 -1
- package/dist/client/_nuxt/state-components-gdb1hu1j.js +0 -1
- package/dist/client/_nuxt/storage-noqjkcnn.js +0 -1
- package/dist/client/_nuxt/storage-options-os0x8zby.js +0 -1
- package/dist/client/_nuxt/telemetry-pccqt90w.js +0 -1
- package/dist/client/_nuxt/terminals-jwh8xdao.js +0 -1
- package/dist/client/_nuxt/timeline-nj0c9ow3.js +0 -31
- package/dist/client/_nuxt/unocss-runtime-mfhoy4ux.js +0 -1
- package/dist/client/_nuxt/vendor/shiki-jnavg768.js +0 -152
- package/dist/client/_nuxt/vendor/unocss-o75ihzkt.js +0 -3
- package/dist/client/_nuxt/virtual-files-nyi1q55e.js +0 -1
- package/dist/client/_nuxt/vue-devtools-b8p76ncm.js +0 -3
- package/dist/client/_nuxt/vue-virtual-scroller.esm-hq850jog.js +0 -2
- package/dist/shared/devtools.DuFZOCNN.mjs +0 -122
- /package/dist/client/_nuxt/{_plugin-vue_export-helper-myijwyyb.js → _plugin-vue_export-helper-n58akrbk.js} +0 -0
- /package/dist/client/_nuxt/{color-m9fh6h3t.js → color-l56csnpd.js} +0 -0
- /package/dist/client/_nuxt/{dist-h291wass.js → dist-mnod32r1.js} +0 -0
- /package/dist/client/_nuxt/{dist-9xqq72tk.js → dist-og16nf4d.js} +0 -0
- /package/dist/client/_nuxt/vendor/{quicktype-core-jebn1o7i.js → quicktype-core-k4qx3809.js} +0 -0
- /package/dist/client/_nuxt/vendor/{xterm-du7kv949.js → xterm-k45lhqgb.js} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$ as e,$t as t,A as n,F as r,G as i,P as a,Q as o,Qt as s,W as c,X as l,Y as u,Z as d,_ as f,c as p,dt as m,en as h,ft as g,g as _,k as v,nt as y,pt as b,q as x,v as S,w as C,wt as w,yt as T}from"./vendor/json-editor-vue-jlmu1vk1.js";function ee(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var E;function D(){D.init||(D.init=!0,E=ee()!==-1)}var O={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){D(),r(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,E&&this.$el.appendChild(e),e.data=`about:blank`,E||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&&(!E&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},k=b(`data-v-b329ee4c`);x(`data-v-b329ee4c`);var A={class:`resize-observer`,tabindex:`-1`};i(),O.render=k((e,t,n,r,i,a)=>(c(),_(`div`,A))),O.__scopeId=`data-v-b329ee4c`,O.__file=`src/components/ResizeObserver.vue`;function j(e){"@babel/helpers - typeof";return j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},j(e)}function te(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}function N(e){return P(e)||re(e)||ie(e)||I()}function P(e){if(Array.isArray(e))return F(e)}function re(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function ie(e,t){if(e){if(typeof e==`string`)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}}function F(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function I(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(e){return typeof e==`function`?{callback:e}:e}function oe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=function(o){if(a=[...arguments].slice(1),!(r&&o===i)){var s=n.leading;typeof s==`function`&&(s=s(o,i)),(!r||o!==i)&&s&&e.apply(void 0,[o].concat(N(a))),i=o,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[o].concat(N(a))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function L(e,t){if(e===t)return!0;if(j(e)===`object`){for(var n in e)if(!L(e[n],t[n]))return!1;return!0}return!1}var se=function(){function e(t,n,r){te(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return ne(e,[{key:`createObserver`,value:function(e,t){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=ae(e),this.callback=function(e,t){n.options.callback(e,t),e&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var i=(this.options.throttleOptions||{}).leading;this.callback=oe(this.callback,this.options.throttle,{leading:function(e){return i===`both`||i===`visible`&&e||i===`hidden`&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(e){var t=e[0];if(e.length>1){var r=e.find(function(e){return e.isIntersecting});r&&(t=r)}if(n.callback){var i=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(i===n.oldResult)return;n.oldResult=i,n.callback(i,t)}},this.options.intersection),r(function(){n.observer&&n.observer.observe(n.el)})}}},{key:`destroyObserver`,value:function(){this.observer&&=(this.observer.disconnect(),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 R(e,t,n){var r=t.value;r&&(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`):e._vue_visibilityState=new se(e,r,n))}function z(e,t,n){var r=t.value,i=t.oldValue;if(!L(r,i)){var a=e._vue_visibilityState;if(!r){B(e);return}a?a.createObserver(r,n):R(e,{value:r},n)}}function B(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var V={beforeMount:R,updated:z,unmounted:B};function H(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get(`*`)||[]).slice().map(function(e){e(t,n)})}}}var U={itemsLimit:1e3},W=/(auto|scroll)/;function G(e,t){return e.parentNode===null?t:G(e.parentNode,t.concat([e]))}var K=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},ce=function(e){return K(e,`overflow`)+K(e,`overflow-y`)+K(e,`overflow-x`)},le=function(e){return W.test(ce(e))};function q(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=G(e.parentNode,[]),n=0;n<t.length;n+=1)if(le(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function J(e){"@babel/helpers - typeof";return J=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},J(e)}var Y={items:{type:Array,required:!0},keyField:{type:String,default:`id`},direction:{type:String,default:`vertical`,validator:function(e){return[`vertical`,`horizontal`].includes(e)}},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`}};function X(){return this.items.length&&J(this.items[0])!==`object`}var Z=!1;if(typeof window<`u`){Z=!1;try{var ue=Object.defineProperty({},`passive`,{get:function(){Z=!0}});window.addEventListener(`test`,null,ue)}catch{}}var de=0,Q={name:`RecycleScroller`,components:{ResizeObserver:O},directives:{ObserveVisibility:V},props:{...Y,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){let e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize,i=1e4,a=0,o;for(let s=0,c=t.length;s<c;s++)o=t[s][n]||r,o<i&&(i=o),a+=o,e[s]={accumulator:a,size:o};return this.$_computedMinItemSize=i,e}return[]},simpleArray:X,itemIndexByKey(){let{keyField:e,items:t}=this,n={};for(let r=0,i=t.length;r<i;r++)n[t[r][e]]=r;return n}},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(){let e=this.$_lastUpdateScrollPosition;typeof e==`number`&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,r,i){let a=w({item:n,position:0,nr:T({id:de++,index:t,used:!0,key:r,type:i})});return e.push(a),a},unuseView(e,t=!1){let n=this.$_unusedViews,r=e.nr.type,i=n.get(r);i||(i=[],n.set(r,i)),i.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;let e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;let{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},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){let n=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,o=this.typeField,s=this.simpleArray?null:this.keyField,c=this.items,l=c.length,u=this.sizes,d=this.$_views,f=this.$_unusedViews,p=this.pool,m=this.itemIndexByKey,h,g,_,v,y;if(!l)h=g=v=y=_=0;else if(this.$_prerender)h=v=0,g=y=Math.min(this.prerender,c.length),_=null;else{let e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),n===null&&t<a||t<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=e.start;let i=this.buffer;e.start-=i,e.end+=i;let o=0;if(this.$refs.before&&(o=this.$refs.before.scrollHeight,e.start-=o),this.$refs.after){let t=this.$refs.after.scrollHeight;e.end+=t}if(n===null){let t,n=0,r=l-1,i=~~(l/2),a;do a=i,t=u[i].accumulator,t<e.start?n=i:i<l-1&&u[i+1].accumulator>e.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),h=i,_=u[l-1].accumulator,g=i;g<l&&u[g].accumulator<e.end;g++);for(g===-1?g=c.length-1:(g++,g>l&&(g=l)),v=h;v<l&&o+u[v].accumulator<e.start;v++);for(y=v;y<l&&o+u[y].accumulator<e.end;y++);}else{h=~~(e.start/n*r);let t=h%r;h-=t,g=Math.ceil(e.end/n*r),v=Math.max(0,Math.floor((e.start-o)/n*r)),y=Math.floor((e.end-o)/n*r),h<0&&(h=0),g>l&&(g=l),v<0&&(v=0),y>l&&(y=l),_=Math.ceil(l/r)*n}}g-h>U.itemsLimit&&this.itemsLimitError(),this.totalSize=_;let b,x=h<=this.$_endIndex&&g>=this.$_startIndex;if(x)for(let t=0,n=p.length;t<n;t++)b=p[t],b.nr.used&&(e&&(b.nr.index=m[b.item[s]]),(b.nr.index==null||b.nr.index<h||b.nr.index>=g)&&this.unuseView(b));let S=x?null:new Map,C,w,T;for(let e=h;e<g;e++){C=c[e];let t=s?C[s]:C;if(t==null)throw Error(`Key is ${t} on item (keyField is '${s}')`);if(b=d.get(t),!n&&!u[e].size){b&&this.unuseView(b);continue}w=C[o];let a=f.get(w),l=!1;if(!b)x?b=a&&a.length?a.pop():this.addView(p,e,C,t,w):(T=S.get(w)||0,(!a||T>=a.length)&&(b=this.addView(p,e,C,t,w),this.unuseView(b,!0),a=f.get(w)),b=a[T],S.set(w,T+1)),d.delete(b.nr.key),b.nr.used=!0,b.nr.index=e,b.nr.key=t,b.nr.type=w,d.set(t,b),l=!0;else if(!b.nr.used&&(b.nr.used=!0,l=!0,a)){let e=a.indexOf(b);e!==-1&&a.splice(e,1)}b.item=C,l&&(e===c.length-1&&this.$emit(`scroll-end`),e===0&&this.$emit(`scroll-start`)),n===null?(b.position=u[e-1].accumulator,b.offset=0):(b.position=Math.floor(e/r)*n,b.offset=e%r*i)}return this.$_startIndex=h,this.$_endIndex=g,this.emitUpdate&&this.$emit(`update`,h,g,v,y),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=q(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){let{$el:e,direction:t}=this,n=t===`vertical`,r;if(this.pageMode){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=-(n?t.top:t.left),o=n?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),r={start:a,end:a+o}}else r=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener(`scroll`,this.handleScroll,Z?{passive:!0}:!1),this.listenerTarget.addEventListener(`resize`,this.handleResize)},removeListeners(){this.listenerTarget&&=(this.listenerTarget.removeEventListener(`scroll`,this.handleScroll),this.listenerTarget.removeEventListener(`resize`,this.handleResize),null)},scrollToItem(e){let t,n=this.gridItems||1;t=this.itemSize===null?e>0?this.sizes[e-1].accumulator:0:Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){let t=this.direction===`vertical`?{scroll:`scrollTop`,start:`top`}:{scroll:`scrollLeft`,start:`left`},n,r,i;if(this.pageMode){let a=q(this.$el),o=a.tagName===`HTML`?0:a[t.scroll],s=a.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-s[t.start];n=a,r=t.scroll,i=e+o+c}else n=this.$el,r=t.scroll,i=e;n[r]=i},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.`)}),Error(`Rendered items limit reached`)},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}},fe={key:0,ref:`before`,class:`vue-recycle-scroller__slot`},pe={key:1,ref:`after`,class:`vue-recycle-scroller__slot`};function me(t,n,r,i,v,b){let x=d(`ResizeObserver`),w=o(`observe-visibility`);return g((c(),S(`div`,{class:s([`vue-recycle-scroller`,{ready:v.ready,"page-mode":r.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:n[0]||=(...e)=>b.handleScroll&&b.handleScroll(...e)},[t.$slots.before?(c(),S(`div`,fe,[l(t.$slots,`before`)],512)):f(`v-if`,!0),(c(),_(e(r.listTag),{ref:`wrapper`,style:h({[t.direction===`vertical`?`minHeight`:`minWidth`]:v.totalSize+`px`}),class:s([`vue-recycle-scroller__item-wrapper`,r.listClass])},{default:m(()=>[(c(!0),S(p,null,u(v.pool,n=>(c(),_(e(r.itemTag),a({key:n.nr.id,style:v.ready?{transform:`translate${t.direction===`vertical`?`Y`:`X`}(${n.position}px) translate${t.direction===`vertical`?`X`:`Y`}(${n.offset}px)`,width:r.gridItems?`${t.direction===`vertical`&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${t.direction===`horizontal`&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:[`vue-recycle-scroller__item-view`,[r.itemClass,{hover:!r.skipHover&&v.hoverKey===n.nr.key}]]},y(r.skipHover?{}:{mouseenter:()=>{v.hoverKey=n.nr.key},mouseleave:()=>{v.hoverKey=null}})),{default:m(()=>[l(t.$slots,`default`,{item:n.item,index:n.nr.index,active:n.nr.used})]),_:2},1040,[`style`,`class`]))),128)),l(t.$slots,`empty`)]),_:3},8,[`style`,`class`])),t.$slots.after?(c(),S(`div`,pe,[l(t.$slots,`after`)],512)):f(`v-if`,!0),C(x,{onNotify:b.handleResize},null,8,[`onNotify`])],34)),[[w,b.handleVisibilityChange]])}Q.render=me,Q.__file=`src/components/RecycleScroller.vue`;var $={name:`DynamicScroller`,components:{RecycleScroller:Q},provide(){return typeof ResizeObserver<`u`&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(let t of e)if(t.target&&t.target.$_vs_onResize){let e,n;if(t.borderBoxSize){let r=t.borderBoxSize[0];e=r.inlineSize,n=r.blockSize}else e=t.contentRect.width,n=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,e,n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...Y,minItemSize:{type:[Number,String],required:!0}},emits:[`resize`,`visible`],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:X,itemsWithSize(){let e=[],{items:t,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,a=t.length;for(let o=0;o<a;o++){let a=t[o],s=r?o:a[n],c=i[s];c===void 0&&!this.$_undefinedMap[s]&&(c=0),e.push({item:a,id:s,size:c})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){let n=this.$el.scrollTop,r=0,i=0,a=Math.min(e.length,t.length);for(let o=0;o<a&&!(r>=n);o++)r+=t[o].size||this.minItemSize,i+=e[o].size||this.minItemSize;let o=i-r;o!==0&&(this.$el.scrollTop+=o)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=H()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit(`resize`)},onScrollerVisible(){this.$_events.emit(`vscroll:update`,{force:!1}),this.$emit(`visible`)},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit(`vscroll:update`,{force:!0})},scrollToItem(e){let t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){let n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;let e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;let t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function he(e,n,r,i,o,s){let u=d(`RecycleScroller`);return c(),_(u,a({ref:`scroller`,items:s.itemsWithSize,"min-item-size":r.minItemSize,direction:e.direction,"key-field":`id`,"list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:s.onScrollerResize,onVisible:s.onScrollerVisible}),{default:m(({item:n,index:r,active:i})=>[l(e.$slots,`default`,t(v({item:n.item,index:r,active:i,itemWithSize:n})))]),before:m(()=>[l(e.$slots,`before`)]),after:m(()=>[l(e.$slots,`after`)]),empty:m(()=>[l(e.$slots,`empty`)]),_:3},16,[`items`,`min-item-size`,`direction`,`list-tag`,`item-tag`,`onResize`,`onVisible`])}$.render=he,$.__file=`src/components/DynamicScroller.vue`;var ge={name:`DynamicScrollerItem`,inject:[`vscrollData`,`vscrollParent`,`vscrollResizeObserver`],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:`div`}},emits:[`resize`],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:`updateWatchData`,id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){let n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(let e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on(`vscroll:update`,this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off(`vscroll:update`,this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch(`item`,()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&=(this.$_watchData(),null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){let e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applyWidthHeight(e,t)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){let n=~~(this.vscrollParent.direction===`vertical`?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit(`resize`,this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||=(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,!0))},unobserveSize(){this.vscrollResizeObserver&&(this.$_sizeObserved&&=(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,!1))},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return n(this.tag,this.$slots.default())}};ge.__file=`src/components/DynamicScrollerItem.vue`;export{Q as t};
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { defineNuxtModule } from '@nuxt/kit';
|
|
2
|
-
import { isGlobalInstall } from '../dirs.mjs';
|
|
3
|
-
|
|
4
|
-
const r=Object.create(null),i=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?r:globalThis),o=new Proxy(r,{get(e,s){return i()[s]??r[s]},has(e,s){const E=i();return s in E||s in r},set(e,s,E){const B=i(true);return B[s]=E,true},deleteProperty(e,s){if(!s)return false;const E=i(true);return delete E[s],true},ownKeys(){const e=i(true);return Object.keys(e)}}),t=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",f=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:true}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:true}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:true}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:false}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:false}],["VERCEL","VERCEL_ENV",{ci:false}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:false}],["CODESANDBOX","CODESANDBOX_HOST",{ci:false}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:true}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:true}]];function b(){if(globalThis.process?.env)for(const e of f){const s=e[1]||e[0];if(globalThis.process?.env[s])return {name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:false}:{name:"",ci:false}}const l=b(),p=l.name;function n(e){return e?e!=="false":false}const I=globalThis.process?.platform||"",T=n(o.CI)||l.ci!==false,R=n(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);n(o.DEBUG);const a=t==="test"||n(o.TEST);n(o.MINIMAL)||T||a||!R;const A=/^win/i.test(I);!n(o.NO_COLOR)&&(n(o.FORCE_COLOR)||(R||A)&&o.TERM!=="dumb"||T);const C=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(C?.split(".")[0])||null;const W=globalThis.process||Object.create(null),_={versions:{}};new Proxy(W,{get(e,s){if(s==="env")return o;if(s in e)return e[s];if(s in _)return _[s]}});const O=globalThis.process?.release?.name==="node",c=!!globalThis.Bun||!!globalThis.process?.versions?.bun,D=!!globalThis.Deno,L=!!globalThis.fastly,S=!!globalThis.Netlify,u=!!globalThis.EdgeRuntime,N=globalThis.navigator?.userAgent==="Cloudflare-Workers",F=[[S,"netlify"],[u,"edge-light"],[N,"workerd"],[L,"fastly"],[D,"deno"],[c,"bun"],[O,"node"]];function G(){const e=F.find(s=>s[0]);if(e)return {name:e[1]}}const P=G();P?.name||"";
|
|
5
|
-
|
|
6
|
-
const WS_EVENT_NAME = "nuxt:devtools:rpc";
|
|
7
|
-
const isSandboxed = p === "stackblitz" || p === "codesandbox";
|
|
8
|
-
const defaultOptions = {
|
|
9
|
-
enabled: void 0,
|
|
10
|
-
// determine multiple conditions
|
|
11
|
-
componentInspector: true,
|
|
12
|
-
viteInspect: true,
|
|
13
|
-
vscode: {
|
|
14
|
-
enabled: true,
|
|
15
|
-
startOnBoot: false,
|
|
16
|
-
port: 3080,
|
|
17
|
-
reuseExistingServer: true
|
|
18
|
-
},
|
|
19
|
-
disableAuthorization: isSandboxed
|
|
20
|
-
};
|
|
21
|
-
const defaultTabOptions = {
|
|
22
|
-
behavior: {
|
|
23
|
-
telemetry: null,
|
|
24
|
-
openInEditor: void 0
|
|
25
|
-
},
|
|
26
|
-
ui: {
|
|
27
|
-
componentsView: "list",
|
|
28
|
-
componentsGraphShowNodeModules: false,
|
|
29
|
-
componentsGraphShowGlobalComponents: true,
|
|
30
|
-
componentsGraphShowPages: false,
|
|
31
|
-
componentsGraphShowLayouts: false,
|
|
32
|
-
componentsGraphShowWorkspace: true,
|
|
33
|
-
interactionCloseOnOutsideClick: false,
|
|
34
|
-
showExperimentalFeatures: false,
|
|
35
|
-
showHelpButtons: true,
|
|
36
|
-
showPanel: true,
|
|
37
|
-
scale: 1,
|
|
38
|
-
minimizePanelInactive: 5e3,
|
|
39
|
-
hiddenTabs: [],
|
|
40
|
-
pinnedTabs: [],
|
|
41
|
-
hiddenTabCategories: [],
|
|
42
|
-
sidebarExpanded: false,
|
|
43
|
-
sidebarScrollable: false
|
|
44
|
-
},
|
|
45
|
-
serverRoutes: {
|
|
46
|
-
selectedRoute: null,
|
|
47
|
-
view: "tree",
|
|
48
|
-
inputDefaults: {
|
|
49
|
-
query: [],
|
|
50
|
-
body: [],
|
|
51
|
-
headers: []
|
|
52
|
-
},
|
|
53
|
-
sendFrom: "app"
|
|
54
|
-
},
|
|
55
|
-
serverTasks: {
|
|
56
|
-
enabled: false,
|
|
57
|
-
selectedTask: null,
|
|
58
|
-
view: "list",
|
|
59
|
-
inputDefaults: {
|
|
60
|
-
query: [],
|
|
61
|
-
body: [],
|
|
62
|
-
headers: [{ active: true, key: "Content-Type", value: "application/json", type: "string" }]
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
assets: {
|
|
66
|
-
view: "grid"
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
const defaultAllowedExtensions = [
|
|
70
|
-
"png",
|
|
71
|
-
"jpg",
|
|
72
|
-
"jpeg",
|
|
73
|
-
"gif",
|
|
74
|
-
"svg",
|
|
75
|
-
"webp",
|
|
76
|
-
"ico",
|
|
77
|
-
"mp4",
|
|
78
|
-
"ogg",
|
|
79
|
-
"mp3",
|
|
80
|
-
"wav",
|
|
81
|
-
"mov",
|
|
82
|
-
"mkv",
|
|
83
|
-
"mpg",
|
|
84
|
-
"txt",
|
|
85
|
-
"ttf",
|
|
86
|
-
"woff",
|
|
87
|
-
"woff2",
|
|
88
|
-
"eot",
|
|
89
|
-
"json",
|
|
90
|
-
"js",
|
|
91
|
-
"jsx",
|
|
92
|
-
"ts",
|
|
93
|
-
"tsx",
|
|
94
|
-
"md",
|
|
95
|
-
"mdx",
|
|
96
|
-
"vue",
|
|
97
|
-
"webm"
|
|
98
|
-
];
|
|
99
|
-
|
|
100
|
-
const module$1 = defineNuxtModule({
|
|
101
|
-
meta: {
|
|
102
|
-
name: "@nuxt/devtools",
|
|
103
|
-
configKey: "devtools"
|
|
104
|
-
},
|
|
105
|
-
defaults: defaultOptions,
|
|
106
|
-
setup(options, nuxt) {
|
|
107
|
-
if (process.env.VITEST || process.env.TEST)
|
|
108
|
-
return;
|
|
109
|
-
if (typeof options === "boolean")
|
|
110
|
-
options = { enabled: options };
|
|
111
|
-
if (options.enabled === false)
|
|
112
|
-
return;
|
|
113
|
-
if (isGlobalInstall()) {
|
|
114
|
-
const globalOptions = nuxt.options.devtoolsGlobal || {};
|
|
115
|
-
if (options.enabled !== true && !globalOptions.projects?.includes(nuxt.options.rootDir))
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
return import('../chunks/module-main.mjs').then(function (n) { return n.m; }).then(({ enableModule }) => enableModule(options, nuxt));
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
export { WS_EVENT_NAME as W, defaultTabOptions as a, defaultAllowedExtensions as d, module$1 as m };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|