@nuxt/devtools 0.0.0 → 0.1.0
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/LICENSE +21 -0
- package/README.md +242 -0
- package/cli.mjs +1 -2
- package/dist/chunks/index.mjs +47749 -0
- package/dist/chunks/module-main.mjs +8424 -0
- package/dist/chunks/vite-inspect.mjs +49 -0
- package/dist/chunks/vscode.mjs +40137 -0
- package/dist/chunks/vue-inspector.mjs +14 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.mjs +66 -0
- package/dist/client/200.html +7 -0
- package/dist/client/404.html +7 -0
- package/dist/client/__inspecting/index.html +7 -0
- package/dist/client/_nuxt/Badge.23dc2d8f.js +1 -0
- package/dist/client/_nuxt/ComponentItem.f7b53cb0.js +1 -0
- package/dist/client/_nuxt/ComponentItem.vue.d48d83d8.js +1 -0
- package/dist/client/_nuxt/ComponentsGraph.94420499.js +1 -0
- package/dist/client/_nuxt/ComponentsGraph.vue.687b60ce.js +1 -0
- package/dist/client/_nuxt/ComponentsList.27e171d0.js +1 -0
- package/dist/client/_nuxt/ComponentsList.vue.24e7149d.js +1 -0
- package/dist/client/_nuxt/ComposableItem.a0f590b3.js +1 -0
- package/dist/client/_nuxt/ComposableItem.vue.645a2668.js +1 -0
- package/dist/client/_nuxt/ComposableTree.08cf808f.js +1 -0
- package/dist/client/_nuxt/ComposableTree.vue.a160c715.js +1 -0
- package/dist/client/_nuxt/CurrentRoute.4a32c426.js +1 -0
- package/dist/client/_nuxt/Drawer.6d261f16.js +1 -0
- package/dist/client/_nuxt/Drawer.vue.4d7d190a.js +1 -0
- package/dist/client/_nuxt/DrawerItem.0c4e93e1.js +1 -0
- package/dist/client/_nuxt/DrawerItem.vue.30f032f8.js +1 -0
- package/dist/client/_nuxt/FileIcon.4f6c385a.js +1 -0
- package/dist/client/_nuxt/FileIcon.vue.e650fe14.js +1 -0
- package/dist/client/_nuxt/FilepathItem.6f861b0b.js +1 -0
- package/dist/client/_nuxt/FilepathItem.vue.fcbe3a7a.js +1 -0
- package/dist/client/_nuxt/HooksTable.e9c5c41d.js +1 -0
- package/dist/client/_nuxt/HooksTable.vue.93af23f8.js +1 -0
- package/dist/client/_nuxt/IconTitle.576c2413.js +1 -0
- package/dist/client/_nuxt/IconTitle.vue.909d2a6b.js +1 -0
- package/dist/client/_nuxt/IframeView.d58e614f.js +1 -0
- package/dist/client/_nuxt/IframeView.vue.46f9c325.js +1 -0
- package/dist/client/_nuxt/LaunchPage.7f56830a.js +1 -0
- package/dist/client/_nuxt/LaunchPage.vue.29133098.js +1 -0
- package/dist/client/_nuxt/ModuleItem.9523008d.js +1 -0
- package/dist/client/_nuxt/ModuleItem.vue.07190cb3.js +1 -0
- package/dist/client/_nuxt/ModuleTreeNode.040f6e05.js +1 -0
- package/dist/client/_nuxt/NButton.d5a0d397.js +1 -0
- package/dist/client/_nuxt/NButton.vue.3df758c5.js +1 -0
- package/dist/client/_nuxt/NCard.47038127.js +1 -0
- package/dist/client/_nuxt/NCheckbox.ec4f225e.js +1 -0
- package/dist/client/_nuxt/NCheckbox.vue.25b386b6.js +1 -0
- package/dist/client/_nuxt/NDarkToggle.46f06112.js +1 -0
- package/dist/client/_nuxt/NDarkToggle.vue.c227b1bd.js +1 -0
- package/dist/client/_nuxt/NDialog.09638209.js +7 -0
- package/dist/client/_nuxt/NDropdown.d94508d4.js +1 -0
- package/dist/client/_nuxt/NIcon.e9d8d4d5.js +1 -0
- package/dist/client/_nuxt/NIcon.vue.2481694f.js +1 -0
- package/dist/client/_nuxt/NLink.34fc60fd.js +1 -0
- package/dist/client/_nuxt/NLink.vue.17c2cd3a.js +1 -0
- package/dist/client/_nuxt/NRadio.a5c0205d.js +1 -0
- package/dist/client/_nuxt/NSwitch.4c2c96d6.js +1 -0
- package/dist/client/_nuxt/NSwitch.vue.36ec57ea.js +1 -0
- package/dist/client/_nuxt/NTextInput.3c1a9b08.js +1 -0
- package/dist/client/_nuxt/NTextInput.vue.2d3f9e19.js +1 -0
- package/dist/client/_nuxt/NTip.ff4fea4e.js +1 -0
- package/dist/client/_nuxt/Notification.f594eb13.js +1 -0
- package/dist/client/_nuxt/Notification.vue.b0304237.js +1 -0
- package/dist/client/_nuxt/NuxtContentLogo.1ca13565.js +1 -0
- package/dist/client/_nuxt/NuxtExampleLayout.904da69e.js +1 -0
- package/dist/client/_nuxt/NuxtLogo.acbeec62.js +1 -0
- package/dist/client/_nuxt/PluginItem.78f70695.js +1 -0
- package/dist/client/_nuxt/PluginItem.vue.a18a8580.js +1 -0
- package/dist/client/_nuxt/RoutePathItem.77ebd238.js +1 -0
- package/dist/client/_nuxt/RoutePathItem.vue.a16a2a5a.js +1 -0
- package/dist/client/_nuxt/RoutesTable.3a51b11e.js +1 -0
- package/dist/client/_nuxt/RoutesTable.vue.66423aa5.js +1 -0
- package/dist/client/_nuxt/SectionBlock.6bf10c9f.js +1 -0
- package/dist/client/_nuxt/SectionBlock.a75bb023.css +1 -0
- package/dist/client/_nuxt/Settings.ceefb680.js +1 -0
- package/dist/client/_nuxt/Settings.vue.6d6be237.js +1 -0
- package/dist/client/_nuxt/StateEditor.b25ca4bb.js +1 -0
- package/dist/client/_nuxt/StateEditor.f3649b84.css +1 -0
- package/dist/client/_nuxt/StateEditor.vue.4c95ce8f.js +135 -0
- package/dist/client/_nuxt/StateEditor.vue.94361847.js +1 -0
- package/dist/client/_nuxt/StateGroup.03356999.js +1 -0
- package/dist/client/_nuxt/StateGroup.vue.2dd6ea33.js +1 -0
- package/dist/client/_nuxt/TabIcon.0eec1314.js +1 -0
- package/dist/client/_nuxt/TabIcon.vue.8a3fdf6c.js +1 -0
- package/dist/client/_nuxt/UnoIcon.58399ac9.js +1 -0
- package/dist/client/_nuxt/__inspecting.06a43aaf.js +1 -0
- package/dist/client/_nuxt/_plugin-vue_export-helper.c27b6911.js +1 -0
- package/dist/client/_nuxt/app.config.a09258b3.js +1 -0
- package/dist/client/_nuxt/asyncData.0d07d609.js +1 -0
- package/dist/client/_nuxt/client-only.57dcb5bd.js +4 -0
- package/dist/client/_nuxt/client.ef9805ed.js +1 -0
- package/dist/client/_nuxt/color-mode-options.00c15dd1.js +1 -0
- package/dist/client/_nuxt/component.vue3.70214810.js +1 -0
- package/dist/client/_nuxt/components.238910b6.js +1 -0
- package/dist/client/_nuxt/components.bcdd3ff8.js +1 -0
- package/dist/client/_nuxt/components.client.73756aea.js +113 -0
- package/dist/client/_nuxt/composables.3d6ee8a2.js +1 -0
- package/dist/client/_nuxt/composables.7fd231ea.js +1 -0
- package/dist/client/_nuxt/context.dc73232e.js +1 -0
- package/dist/client/_nuxt/custom-_name_.3a92fd5f.js +1 -0
- package/dist/client/_nuxt/default.d86039a2.js +1 -0
- package/dist/client/_nuxt/dev-only.fb81821a.js +1 -0
- package/dist/client/_nuxt/editor.9a00fe97.js +1 -0
- package/dist/client/_nuxt/entry.1076cab0.js +1 -0
- package/dist/client/_nuxt/entry.53569115.css +1 -0
- package/dist/client/_nuxt/error-404.1469f10f.css +1 -0
- package/dist/client/_nuxt/error-404.f7be8ae4.js +1 -0
- package/dist/client/_nuxt/error-500.31030cf5.js +1 -0
- package/dist/client/_nuxt/error-500.92b94fae.css +1 -0
- package/dist/client/_nuxt/error-component.916ef420.js +3 -0
- package/dist/client/_nuxt/error.10b092f1.js +1 -0
- package/dist/client/_nuxt/fuse.esm.88e2763d.js +1 -0
- package/dist/client/_nuxt/hooks.03df1882.js +1 -0
- package/dist/client/_nuxt/icons.7b11eba5.js +1 -0
- package/dist/client/_nuxt/icons.d5925320.js +1 -0
- package/dist/client/_nuxt/icons.eca62571.js +1 -0
- package/dist/client/_nuxt/imports.0ab9b18e.js +1 -0
- package/dist/client/_nuxt/index.6cafd97e.js +1 -0
- package/dist/client/_nuxt/index.7c6751e3.js +1 -0
- package/dist/client/_nuxt/index.96e42b53.js +1 -0
- package/dist/client/_nuxt/index.a6656ecb.js +17 -0
- package/dist/client/_nuxt/index.adfbbcc3.js +1 -0
- package/dist/client/_nuxt/layout.50e89109.js +1 -0
- package/dist/client/_nuxt/layouts.22623cd4.js +1 -0
- package/dist/client/_nuxt/middleware.8875601d.js +1 -0
- package/dist/client/_nuxt/modules.4e9ddad7.js +1 -0
- package/dist/client/_nuxt/none.1c37aed4.js +1 -0
- package/dist/client/_nuxt/nuxt-error-boundary.fc4d7c25.js +1 -0
- package/dist/client/_nuxt/nuxt-link.724f8a66.js +1 -0
- package/dist/client/_nuxt/nuxt-loading-indicator.494ea32c.js +1 -0
- package/dist/client/_nuxt/overview.dca34e56.js +1 -0
- package/dist/client/_nuxt/page.8df04ed4.js +1 -0
- package/dist/client/_nuxt/pages.bdf1c147.js +1 -0
- package/dist/client/_nuxt/payload.8cf95895.js +1 -0
- package/dist/client/_nuxt/plugins.bb7d1e18.js +1 -0
- package/dist/client/_nuxt/rpc.65a41b65.js +1 -0
- package/dist/client/_nuxt/runtime-configs.e1c67255.js +1 -0
- package/dist/client/_nuxt/runtime-core.esm-bundler.5019e930.js +1 -0
- package/dist/client/_nuxt/runtime-dom.esm-bundler.b0076367.js +1 -0
- package/dist/client/_nuxt/server-placeholder.735ae8e9.js +1 -0
- package/dist/client/_nuxt/server-routes.ff745565.js +1 -0
- package/dist/client/_nuxt/state.5364a68a.js +1 -0
- package/dist/client/_nuxt/state.68f6a8e0.js +1 -0
- package/dist/client/_nuxt/storage.82519452.js +1 -0
- package/dist/client/_nuxt/unocss-runtime.cde2ffdd.js +2 -0
- package/dist/client/_nuxt/utils.3921fcc0.js +5 -0
- package/dist/client/_nuxt/utils.c2a3506b.js +1 -0
- package/dist/client/_nuxt/virtual-files.8b6129f7.js +9 -0
- package/dist/client/_nuxt/virtual-files.a8748389.css +1 -0
- package/dist/client/_nuxt/welcome.432c9232.js +1 -0
- package/dist/client/_nuxt/welcome.db724adb.css +1 -0
- package/dist/client/index.html +7 -0
- package/dist/client/modules/components/index.html +7 -0
- package/dist/client/modules/hooks/index.html +7 -0
- package/dist/client/modules/imports/index.html +7 -0
- package/dist/client/modules/layouts/index.html +7 -0
- package/dist/client/modules/middleware/index.html +7 -0
- package/dist/client/modules/modules/index.html +7 -0
- package/dist/client/modules/overview/index.html +7 -0
- package/dist/client/modules/pages/index.html +7 -0
- package/dist/client/modules/payload/index.html +7 -0
- package/dist/client/modules/plugins/index.html +7 -0
- package/dist/client/modules/runtime-configs/index.html +7 -0
- package/dist/client/modules/server-routes/index.html +7 -0
- package/dist/client/modules/virtual-files/index.html +7 -0
- package/dist/client/nuxt.svg +3 -0
- package/dist/dirs.d.ts +6 -0
- package/dist/dirs.mjs +9 -0
- package/dist/iframe-client.d.ts +13 -0
- package/dist/iframe-client.mjs +30 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.ts +33 -0
- package/dist/module.json +5 -0
- package/dist/module.mjs +6 -0
- package/dist/runtime/plugins/devtools.client.d.ts +2 -0
- package/dist/runtime/plugins/devtools.client.mjs +36 -0
- package/dist/runtime/plugins/view/Container.vue +95 -0
- package/dist/runtime/plugins/view/Frame.vue +270 -0
- package/dist/runtime/plugins/view/state.d.ts +10 -0
- package/dist/runtime/plugins/view/state.mjs +30 -0
- package/dist/runtime/plugins/view/utils.d.ts +4 -0
- package/dist/runtime/plugins/view/utils.mjs +39 -0
- package/dist/runtime/shared/hooks.d.ts +3 -0
- package/dist/runtime/shared/hooks.mjs +32 -0
- package/dist/shared/devtools.34d9e53a.mjs +68 -0
- package/dist/shared/devtools.7127abb3.mjs +4 -0
- package/dist/shared/devtools.8467d016.mjs +1504 -0
- package/dist/shared/devtools.861712a3.mjs +337 -0
- package/dist/types.d.ts +313 -0
- package/dist/types.mjs +1 -0
- package/iframe-client.d.ts +1 -0
- package/package.json +104 -2
- package/types.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function I(e){return Array.isArray?Array.isArray(e):et(e)==="[object Array]"}const at=1/0;function lt(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-at?"-0":t}function ut(e){return e==null?"":lt(e)}function _(e){return typeof e=="string"}function q(e){return typeof e=="number"}function ft(e){return e===!0||e===!1||dt(e)&&et(e)=="[object Boolean]"}function tt(e){return typeof e=="object"}function dt(e){return tt(e)&&e!==null}function M(e){return e!=null}function j(e){return!e.trim().length}function et(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const gt="Incorrect 'index' type",pt=e=>`Invalid value for key ${e}`,Mt=e=>`Pattern length exceeds max of ${e}.`,mt=e=>`Missing ${e} property in key`,xt=e=>`Property 'weight' in key '${e}' must be a positive integer`,U=Object.prototype.hasOwnProperty;class Et{constructor(t){this._keys=[],this._keyMap={};let s=0;t.forEach(n=>{let r=st(n);s+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,s+=r.weight}),this._keys.forEach(n=>{n.weight/=s})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function st(e){let t=null,s=null,n=null,r=1,i=null;if(_(e)||I(e))n=e,t=Q(e),s=K(e);else{if(!U.call(e,"name"))throw new Error(mt("name"));const c=e.name;if(n=c,U.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(xt(c));t=Q(c),s=K(c),i=e.getFn}return{path:t,id:s,weight:r,src:n,getFn:i}}function Q(e){return I(e)?e:e.split(".")}function K(e){return I(e)?e.join("."):e}function _t(e,t){let s=[],n=!1;const r=(i,c,o)=>{if(M(i))if(!c[o])s.push(i);else{let h=c[o];const a=i[h];if(!M(a))return;if(o===c.length-1&&(_(a)||q(a)||ft(a)))s.push(ut(a));else if(I(a)){n=!0;for(let l=0,f=a.length;l<f;l+=1)r(a[l],c,o+1)}else c.length&&r(a,c,o+1)}};return r(e,_(t)?t.split("."):t,0),n?s:s[0]}const yt={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},It={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},St={location:0,threshold:.6,distance:100},At={useExtendedSearch:!1,getFn:_t,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var u={...It,...yt,...St,...At};const wt=/[^ ]+/g;function Lt(e=1,t=3){const s=new Map,n=Math.pow(10,t);return{get(r){const i=r.match(wt).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*e),o=parseFloat(Math.round(c*n)/n);return s.set(i,o),o},clear(){s.clear()}}}class V{constructor({getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){this.norm=Lt(s,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,_(this.docs[0])?this.docs.forEach((t,s)=>{this._addString(t,s)}):this.docs.forEach((t,s)=>{this._addObject(t,s)}),this.norm.clear())}add(t){const s=this.size();_(t)?this._addString(t,s):this._addObject(t,s)}removeAt(t){this.records.splice(t,1);for(let s=t,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(t,s){return t[this._keysMap[s]]}size(){return this.records.length}_addString(t,s){if(!M(t)||j(t))return;let n={v:t,i:s,n:this.norm.get(t)};this.records.push(n)}_addObject(t,s){let n={i:s,$:{}};this.keys.forEach((r,i)=>{let c=r.getFn?r.getFn(t):this.getFn(t,r.path);if(M(c)){if(I(c)){let o=[];const h=[{nestedArrIndex:-1,value:c}];for(;h.length;){const{nestedArrIndex:a,value:l}=h.pop();if(M(l))if(_(l)&&!j(l)){let f={v:l,i:a,n:this.norm.get(l)};o.push(f)}else I(l)&&l.forEach((f,d)=>{h.push({nestedArrIndex:d,value:f})})}n.$[i]=o}else if(_(c)&&!j(c)){let o={v:c,n:this.norm.get(c)};n.$[i]=o}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function nt(e,t,{getFn:s=u.getFn,fieldNormWeight:n=u.fieldNormWeight}={}){const r=new V({getFn:s,fieldNormWeight:n});return r.setKeys(e.map(st)),r.setSources(t),r.create(),r}function Rt(e,{getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){const{keys:n,records:r}=e,i=new V({getFn:t,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(r),i}function v(e,{errors:t=0,currentLocation:s=0,expectedLocation:n=0,distance:r=u.distance,ignoreLocation:i=u.ignoreLocation}={}){const c=t/e.length;if(i)return c;const o=Math.abs(n-s);return r?c+o/r:o?1:c}function bt(e=[],t=u.minMatchCharLength){let s=[],n=-1,r=-1,i=0;for(let c=e.length;i<c;i+=1){let o=e[i];o&&n===-1?n=i:!o&&n!==-1&&(r=i-1,r-n+1>=t&&s.push([n,r]),n=-1)}return e[i-1]&&i-n>=t&&s.push([n,i-1]),s}const b=32;function Nt(e,t,s,{location:n=u.location,distance:r=u.distance,threshold:i=u.threshold,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,includeMatches:h=u.includeMatches,ignoreLocation:a=u.ignoreLocation}={}){if(t.length>b)throw new Error(Mt(b));const l=t.length,f=e.length,d=Math.max(0,Math.min(n,f));let g=i,p=d;const m=o>1||h,L=m?Array(f):[];let y;for(;(y=e.indexOf(t,p))>-1;){let x=v(t,{currentLocation:y,expectedLocation:d,distance:r,ignoreLocation:a});if(g=Math.min(x,g),p=y+l,m){let S=0;for(;S<l;)L[y+S]=1,S+=1}}p=-1;let N=[],R=1,k=l+f;const ht=1<<l-1;for(let x=0;x<l;x+=1){let S=0,A=k;for(;S<A;)v(t,{errors:x,currentLocation:d+A,expectedLocation:d,distance:r,ignoreLocation:a})<=g?S=A:k=A,A=Math.floor((k-S)/2+S);k=A;let Y=Math.max(1,d-A+1),P=c?f:Math.min(d+A,f)+l,O=Array(P+2);O[P+1]=(1<<x)-1;for(let E=P;E>=Y;E-=1){let C=E-1,G=s[e.charAt(C)];if(m&&(L[C]=+!!G),O[E]=(O[E+1]<<1|1)&G,x&&(O[E]|=(N[E+1]|N[E])<<1|1|N[E+1]),O[E]&ht&&(R=v(t,{errors:x,currentLocation:C,expectedLocation:d,distance:r,ignoreLocation:a}),R<=g)){if(g=R,p=C,p<=d)break;Y=Math.max(1,2*d-p)}}if(v(t,{errors:x+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:a})>g)break;N=O}const T={isMatch:p>=0,score:Math.max(.001,R)};if(m){const x=bt(L,o);x.length?h&&(T.indices=x):T.isMatch=!1}return T}function Ot(e){let t={};for(let s=0,n=e.length;s<n;s+=1){const r=e.charAt(s);t[r]=(t[r]||0)|1<<n-s-1}return t}class rt{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:h=u.isCaseSensitive,ignoreLocation:a=u.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:h,ignoreLocation:a},this.pattern=h?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:Ot(d),startIndex:g})},f=this.pattern.length;if(f>b){let d=0;const g=f%b,p=f-g;for(;d<p;)l(this.pattern.substr(d,b),d),d+=b;if(g){const m=f-b;l(this.pattern.substr(m),m)}}else l(this.pattern,0)}searchIn(t){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(t=t.toLowerCase()),this.pattern===t){let p={isMatch:!0,score:0};return n&&(p.indices=[[0,t.length-1]]),p}const{location:r,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:h,ignoreLocation:a}=this.options;let l=[],f=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:m,startIndex:L})=>{const{isMatch:y,score:N,indices:R}=Nt(t,p,m,{location:r+L,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:h,includeMatches:n,ignoreLocation:a});y&&(d=!0),f+=N,y&&R&&(l=[...l,...R])});let g={isMatch:d,score:d?f/this.chunks.length:1};return d&&n&&(g.indices=l),g}}class w{constructor(t){this.pattern=t}static isMultiMatch(t){return X(t,this.multiRegex)}static isSingleMatch(t){return X(t,this.singleRegex)}search(){}}function X(e,t){const s=e.match(t);return s?s[1]:null}class $t extends w{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const s=t===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class kt extends w{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Ct extends w{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const s=t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class vt extends w{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const s=!t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Ft extends w{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const s=t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Tt extends w{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const s=!t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class it extends w{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:h=u.isCaseSensitive,ignoreLocation:a=u.ignoreLocation}={}){super(t),this._bitapSearch=new rt(t,{location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:h,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class ct extends w{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let s=0,n;const r=[],i=this.pattern.length;for(;(n=t.indexOf(this.pattern,s))>-1;)s=n+i,r.push([n,s-1]);const c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}const D=[$t,ct,Ct,vt,Tt,Ft,kt,it],J=D.length,Pt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,jt="|";function Kt(e,t={}){return e.split(jt).map(s=>{let n=s.trim().split(Pt).filter(i=>i&&!!i.trim()),r=[];for(let i=0,c=n.length;i<c;i+=1){const o=n[i];let h=!1,a=-1;for(;!h&&++a<J;){const l=D[a];let f=l.isMultiMatch(o);f&&(r.push(new l(f,t)),h=!0)}if(!h)for(a=-1;++a<J;){const l=D[a];let f=l.isSingleMatch(o);if(f){r.push(new l(f,t));break}}}return r})}const Dt=new Set([it.type,ct.type]);class Wt{constructor(t,{isCaseSensitive:s=u.isCaseSensitive,includeMatches:n=u.includeMatches,minMatchCharLength:r=u.minMatchCharLength,ignoreLocation:i=u.ignoreLocation,findAllMatches:c=u.findAllMatches,location:o=u.location,threshold:h=u.threshold,distance:a=u.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:r,findAllMatches:c,ignoreLocation:i,location:o,threshold:h,distance:a},this.pattern=s?t:t.toLowerCase(),this.query=Kt(this.pattern,this.options)}static condition(t,s){return s.useExtendedSearch}searchIn(t){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let i=0,c=[],o=0;for(let h=0,a=s.length;h<a;h+=1){const l=s[h];c.length=0,i=0;for(let f=0,d=l.length;f<d;f+=1){const g=l[f],{isMatch:p,indices:m,score:L}=g.search(t);if(p){if(i+=1,o+=L,n){const y=g.constructor.type;Dt.has(y)?c=[...c,...m]:c.push(m)}}else{o=0,i=0,c.length=0;break}}if(i){let f={isMatch:!0,score:o/i};return n&&(f.indices=c),f}}return{isMatch:!1,score:1}}}const W=[];function Bt(...e){W.push(...e)}function B(e,t){for(let s=0,n=W.length;s<n;s+=1){let r=W[s];if(r.condition(e,t))return new r(e,t)}return new rt(e,t)}const F={AND:"$and",OR:"$or"},z={PATH:"$path",PATTERN:"$val"},H=e=>!!(e[F.AND]||e[F.OR]),zt=e=>!!e[z.PATH],Ht=e=>!I(e)&&tt(e)&&!H(e),Z=e=>({[F.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ot(e,t,{auto:s=!0}={}){const n=r=>{let i=Object.keys(r);const c=zt(r);if(!c&&i.length>1&&!H(r))return n(Z(r));if(Ht(r)){const h=c?r[z.PATH]:i[0],a=c?r[z.PATTERN]:r[h];if(!_(a))throw new Error(pt(h));const l={keyId:K(h),pattern:a};return s&&(l.searcher=B(a,t)),l}let o={children:[],operator:i[0]};return i.forEach(h=>{const a=r[h];I(a)&&a.forEach(l=>{o.children.push(n(l))})}),o};return H(e)||(e=Z(e)),n(e)}function Vt(e,{ignoreFieldNorm:t=u.ignoreFieldNorm}){e.forEach(s=>{let n=1;s.matches.forEach(({key:r,norm:i,score:c})=>{const o=r?r.weight:null;n*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(t?1:i))}),s.score=n})}function Yt(e,t){const s=e.matches;t.matches=[],M(s)&&s.forEach(n=>{if(!M(n.indices)||!n.indices.length)return;const{indices:r,value:i}=n;let c={indices:r,value:i};n.key&&(c.key=n.key.src),n.idx>-1&&(c.refIndex=n.idx),t.matches.push(c)})}function Gt(e,t){t.score=e.score}function Ut(e,t,{includeMatches:s=u.includeMatches,includeScore:n=u.includeScore}={}){const r=[];return s&&r.push(Yt),n&&r.push(Gt),e.map(i=>{const{idx:c}=i,o={item:t[c],refIndex:c};return r.length&&r.forEach(h=>{h(i,o)}),o})}class ${constructor(t,s={},n){this.options={...u,...s},this.options.useExtendedSearch,this._keyStore=new Et(this.options.keys),this.setCollection(t,n)}setCollection(t,s){if(this._docs=t,s&&!(s instanceof V))throw new Error(gt);this._myIndex=s||nt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){M(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const s=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,r-=1,s.push(i))}return s}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:s=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let h=_(t)?_(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Vt(h,{ignoreFieldNorm:o}),i&&h.sort(c),q(s)&&s>-1&&(h=h.slice(0,s)),Ut(h,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(t){const s=B(t,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:i,i:c,n:o})=>{if(!M(i))return;const{isMatch:h,score:a,indices:l}=s.searchIn(i);h&&r.push({item:i,idx:c,matches:[{score:a,value:i,norm:o,indices:l}]})}),r}_searchLogical(t){const s=ot(t,this.options),n=(o,h,a)=>{if(!o.children){const{keyId:f,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(h,f),searcher:d});return g&&g.length?[{idx:a,item:h,matches:g}]:[]}const l=[];for(let f=0,d=o.children.length;f<d;f+=1){const g=o.children[f],p=n(g,h,a);if(p.length)l.push(...p);else if(o.operator===F.AND)return[]}return l},r=this._myIndex.records,i={},c=[];return r.forEach(({$:o,i:h})=>{if(M(o)){let a=n(s,o,h);a.length&&(i[h]||(i[h]={idx:h,item:o,matches:[]},c.push(i[h])),a.forEach(({matches:l})=>{i[h].matches.push(...l)}))}}),c}_searchObjectList(t){const s=B(t,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:c,i:o})=>{if(!M(c))return;let h=[];n.forEach((a,l)=>{h.push(...this._findMatches({key:a,value:c[l],searcher:s}))}),h.length&&i.push({idx:o,item:c,matches:h})}),i}_findMatches({key:t,value:s,searcher:n}){if(!M(s))return[];let r=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!M(i))return;const{isMatch:h,score:a,indices:l}=n.searchIn(i);h&&r.push({score:a,key:t,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:h,indices:a}=n.searchIn(i);o&&r.push({score:h,key:t,value:i,norm:c,indices:a})}return r}}$.version="6.6.2";$.createIndex=nt;$.parseIndex=Rt;$.config=u;$.parseQuery=ot;Bt(Wt);export{$ as F};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as m}from"./HooksTable.vue.93af23f8.js";import p from"./SectionBlock.6bf10c9f.js";import{f as l}from"./state.68f6a8e0.js";import{u as d}from"./client.ef9805ed.js";import{h as k,c as _,l as u,u as o,k as f,D as s,B as h,E as e,j as c}from"./runtime-core.esm-bundler.5019e930.js";import"./NIcon.vue.2481694f.js";import"./IconTitle.vue.909d2a6b.js";/* empty css */import"./_plugin-vue_export-helper.c27b6911.js";import"./utils.c2a3506b.js";import"./nuxt-link.724f8a66.js";import"./asyncData.0d07d609.js";import"./error.10b092f1.js";import"./app.config.a09258b3.js";import"./rpc.65a41b65.js";import"./index.6cafd97e.js";import"./state.5364a68a.js";const A=k({__name:"hooks",setup(g){const i=l(),a=d(),t=_(()=>a.value?.getHooksMetrics());return(H,x)=>{const n=m,r=p;return c(),u("div",null,[o(t)?.length?(c(),f(r,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${o(t).length}`,padding:!1},{default:s(()=>[e(n,{hooks:o(t)},null,8,["hooks"])]),_:1},8,["description"])):h("",!0),e(r,{icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${o(i).length}`,padding:!1},{default:s(()=>[e(n,{hooks:o(i)},null,8,["hooks"])]),_:1},8,["description"])])}}});export{A as default};
|