diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a4dde3..99a7f2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [0.5.1](https://github.com/socketio/socket.io-admin-ui/compare/0.5.0...0.5.1) (2022-10-07) + + +### Bug Fixes + +* **server:** handle late HTTP server binding ([b21b649](https://github.com/socketio/socket.io-admin-ui/commit/b21b649ea246eec87af121ffe676c876b001de05)) +* **server:** properly track events with acknowledgement ([6d58a75](https://github.com/socketio/socket.io-admin-ui/commit/6d58a755b4d692970d3f2066903a4d503f334f0a)) + + + # [0.5.0](https://github.com/socketio/socket.io-admin-ui/compare/0.4.0...0.5.0) (2022-09-19) diff --git a/package.json b/package.json index 59f503b..648c81d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@socket.io/admin-ui", - "version": "0.5.0", + "version": "0.5.1", "description": "Admin UI for Socket.IO", "files": [ "dist/", diff --git a/ui/dist/index.html b/ui/dist/index.html index bc16e82..6cf5789 100644 --- a/ui/dist/index.html +++ b/ui/dist/index.html @@ -1 +1 @@ -
{{ serverUrl }}
\n {{ serverUrl }}
\n {{ namespace.name }}
\n {{ socket.nsp }}
\n {{ JSON.stringify(socket.data, null, 2) }}
\n {{ value }}
\n \n\n \n {{ nsp }}
\n {{ item.eventName }}
\n \n \n {{ $t(\"events.reason\") }}{{ $t(\"separator\")\n }}{{ value }}
\n \n \n {{ $t(\"events.room\") }}{{ $t(\"separator\") }}{{ value }}
\n \n \n {{ value }}\n \n \n\n \n {{ item.args }}
\n {{ serverUrl }}
\n {{ serverUrl }}
\n {{ namespace.name }}
\n {{ socket.nsp }}
\n {{ JSON.stringify(socket.data, null, 2) }}
\n {{ value }}
\n \n\n \n {{ nsp }}
\n {{ item.eventName }}
\n \n \n {{ $t(\"events.reason\") }}{{ $t(\"separator\")\n }}{{ value }}
\n \n \n {{ $t(\"events.room\") }}{{ $t(\"separator\") }}{{ value }}
\n \n \n {{ value }}\n \n \n\n \n {{ item.args }}
\n 0&&t.stroke()}}function Ee(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.xi&&0===t?0:t+e;return{min:o(n,-Math.abs(s)),max:o(r,s)}}function Qe(t,e){return Object.assign(Object.create(t),e)}function Je(t,e=[""],i=t,n,r=(()=>t[0])){M(n)||(n=gi("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:r,override:r=>Je([r,...t],e,i,n)};return new Proxy(s,{deleteProperty(e,i){return delete e[i],delete e._keys,delete t[0][i],!0},get(i,n){return ri(i,n,()=>pi(n,e,t,i))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return mi(t).includes(e)},ownKeys(t){return mi(t)},set(t,e,i){const n=t._storage||(t._storage=r());return t[e]=n[e]=i,delete t._keys,!0}})}function ti(t,e,i,n){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:ei(t,n),setContext:e=>ti(t,e,i,n),override:r=>ti(t.override(r),e,i,n)};return new Proxy(r,{deleteProperty(e,i){return delete e[i],delete t[i],!0},get(t,e,i){return ri(t,e,()=>si(t,e,i))},getOwnPropertyDescriptor(e,i){return e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,i){return Reflect.has(t,i)},ownKeys(){return Reflect.ownKeys(t)},set(e,i,n){return t[i]=n,delete e[i],!0}})}function ei(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:i,indexable:n,isScriptable:T(i)?i:()=>i,isIndexable:T(n)?n:()=>n}}const ii=(t,e)=>t?t+C(e):e,ni=(t,e)=>a(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function ri(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function si(t,e,i){const{_proxy:n,_context:r,_subProxy:s,_descriptors:a}=t;let c=n[e];return T(c)&&a.isScriptable(e)&&(c=oi(e,c,t,i)),o(c)&&c.length&&(c=ai(e,c,t,a.isIndexable)),ni(e,c)&&(c=ti(c,r,s&&s[e],a)),c}function oi(t,e,i,n){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),e=e(s,o||n),a.delete(t),ni(t,e)&&(e=ui(r._scopes,r,t,e)),e}function ai(t,e,i,n){const{_proxy:r,_context:s,_subProxy:o,_descriptors:c}=i;if(M(s.index)&&n(t))e=e[s.index%e.length];else if(a(e[0])){const i=e,n=r._scopes.filter(t=>t!==i);e=[];for(const a of i){const i=ui(n,r,t,a);e.push(ti(i,s,o&&o[t],c))}}return e}function ci(t,e,i){return T(t)?t(e,i):t}const li=(t,e)=>!0===t?e:"string"===typeof t?O(e,t):void 0;function hi(t,e,i,n,r){for(const s of e){const e=li(i,s);if(e){t.add(e);const s=ci(e._fallback,i,r);if(M(s)&&s!==i&&s!==n)return s}else if(!1===e&&M(n)&&i!==n)return null}return!1}function ui(t,e,i,n){const r=e._rootScopes,s=ci(e._fallback,i,n),o=[...t,...r],a=new Set;a.add(n);let c=di(a,o,i,s||i,n);return null!==c&&((!M(s)||s===i||(c=di(a,o,s,c,n),null!==c))&&Je(Array.from(a),[""],r,s,()=>fi(e,i,n)))}function di(t,e,i,n,r){while(i)i=hi(t,e,i,n,r);return i}function fi(t,e,i){const n=t._getTarget();e in n||(n[e]={});const r=n[e];return o(r)&&a(i)?i:r}function pi(t,e,i,n){let r;for(const s of e)if(r=gi(ii(s,t),i),M(r))return ni(t,r)?ui(i,n,t,r):r}function gi(t,e){for(const i of e){if(!i)continue;const e=i[t];if(M(e))return e}}function mi(t){let e=t._keys;return e||(e=t._keys=vi(t._scopes)),e}function vi(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}function bi(t,e,i,n){const{iScale:r}=t,{key:s="r"}=this._parsing,o=new Array(n);let a,c,l,h;for(a=0,c=n;at-e))}return t._cache.$bar}function Yn(t){const e=t.iScale,i=qn(e,t.type);let n,r,s,o,a=e._length;const c=()=>{32767!==s&&-32768!==s&&(M(o)&&(a=Math.min(a,Math.abs(s-o)||a)),o=s)};for(n=0,r=i.length;n=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,r=this.getParsed(t),s=i.getLabelForValue(r.x),o=n.getLabelForValue(r.y),a=r._custom;return{label:e.label,value:"("+s+", "+o+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const r="reset"===n,{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:a,includeOptions:c}=this._getSharedOptions(e,n),l=s.axis,h=o.axis;for(let u=e;u0&&!isNaN(t)?E*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],r=Ki(e._parsed[t],i.options.locale);return{label:n[t]||"",value:r}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,r,s,o,a;if(!t)for(n=0,r=i.data.datasets.length;n{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let r,s;for(r=0,s=e.length;r{const n=i.split("."),r=n.pop(),s=[t].concat(n).join("."),o=e[i].split("."),a=o.pop(),c=o.join(".");ke.route(s,r,c,a)})}function Vr(t){return"id"in t&&"defaults"in t}class zr{constructor(){this.controllers=new Rr(Un,"datasets",!0),this.elements=new Rr(gr,"elements"),this.plugins=new Rr(Object,"plugins"),this.scales=new Rr(Br,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):p(e,e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)})})}_exec(t,e,i){const n=C(t);f(i["before"+n],[],i),e[t](i),f(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e{Hr.add(...t),ko()}},unregister:{enumerable:So,value:(...t)=>{Hr.remove(...t),ko()}}});class Do extends gr{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:r,distance:s}=K(n,{x:t,y:e}),{startAngle:o,endAngle:a,innerRadius:c,outerRadius:l,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=this.options.spacing/2,f=h(u,a-o),p=f>=E||tt(r,o,a),g=nt(s,c+d,l+d);return p&&g}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:r,innerRadius:s,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:c}=this.options,l=(n+r)/2,h=(s+o+c+a)/2;return{x:e+Math.cos(l)*h,y:i+Math.sin(l)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,r=(e.spacing||0)/2,s=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>E?Math.floor(i/E):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let o=0;if(n){o=n/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*o,Math.sin(e)*o),this.circumference>=$&&(o=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const a=$o(t,this,o,r,s);Io(t,this,o,r,a,s),t.restore()}}function Lo(t,e,i=e){t.lineCap=h(i.borderCapStyle,e.borderCapStyle),t.setLineDash(h(i.borderDash,e.borderDash)),t.lineDashOffset=h(i.borderDashOffset,e.borderDashOffset),t.lineJoin=h(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=h(i.borderWidth,e.borderWidth),t.strokeStyle=h(i.borderColor,e.borderColor)}function Po(t,e,i){t.lineTo(i.x,i.y)}function Bo(t){return t.stepped?Le:t.tension||"monotone"===t.cubicInterpolationMode?Pe:Po}function Ro(t,e,i={}){const n=t.length,{start:r=0,end:s=n-1}=i,{start:o,end:a}=e,c=Math.max(r,o),l=Math.min(s,a),h=re.r&&(a=(n.end-e.r)/s,t.r=Math.max(t.r,e.r+a)),r.start+t.value))}initOffsets(t){let e,i,n=0,r=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),r=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=et(n,0,s),r=et(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,r=n.time,s=r.unit||rc(r.minUnit,e,i,this._getLabelCapacity(e)),o=h(r.stepSize,1),a="week"===s&&r.isoWeekday,c=H(a)||!0===a,l={};let u,d,f=e;if(c&&(f=+t.startOf(f,"isoWeek",a)),f=+t.startOf(f,c?"day":s),t.diff(i,e,s)>1e5*o)throw new Error(e+" and "+i+" are too far apart with stepSize of "+o+" "+s);const p="data"===n.ticks.source&&this.getDataTimestamps();for(u=f,d=0;ut-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const r=this.options,s=r.time.displayFormats,o=this._unit,a=this._majorUnit,c=o&&s[o],l=a&&s[a],h=i[e],u=a&&l&&h&&h.major,d=this._adapter.format(t,n||(u?l:c)),p=r.ticks.callback;return p?f(p,[d,e,i],this):d}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e0?o:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;tr?t=this.pageYOffset+(n.top-r):o&&!this.allowOverflow?t=i-r-12:t