mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-19 11:15:53 +08:00
2 lines
201 KiB
JavaScript
2 lines
201 KiB
JavaScript
|
(this.webpackJsonpui=this.webpackJsonpui||[]).push([[0],{818:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),c=a(29),s=a.n(c),i=a(912),o=a(24),l=a(61),u=a(2),d=a(5),j=a(39),b=a(44),p=a(866),h=a(900),O=a(909),f=a(910),m=a(896),x=a(828),g=a(829),v=a(893),k=a(894),y=a(911),S=a(833),T=a(107),_=a(821),A=a(832),E=a(360),C=a.n(E),R=a(362),I=a.n(R),w=a(365),q=a.n(w),P=a(367),N=a.n(P),D=a(364),L=a.n(D),B=a(368),H=a.n(B),U=a(366),K=a.n(U),z=a(363),G=a.n(z),M=a(361),V=a.n(M),Q={HOME:"".concat(window.ROOT_PATH,"/"),SETTINGS:"".concat(window.ROOT_PATH,"/settings"),SERVERS:"".concat(window.ROOT_PATH,"/servers"),SCHEDULERS:"".concat(window.ROOT_PATH,"/schedulers"),QUEUE_DETAILS:"".concat(window.ROOT_PATH,"/queues/:qname"),REDIS:"".concat(window.ROOT_PATH,"/redis"),TASK_DETAILS:"".concat(window.ROOT_PATH,"/queues/:qname/tasks/:taskId"),QUEUE_METRICS:"".concat(window.ROOT_PATH,"/q/metrics")};function F(e,t){var a=Q.QUEUE_DETAILS.replace(":qname",e);return t?"".concat(a,"?status=").concat(t):a}function W(e,t){return Q.TASK_DETAILS.replace(":qname",e).replace(":taskId",t)}var Y=a(369),J="POLL_INTERVAL_CHANGE",X="THEME_PREFERENCE_CHANGE",Z="TOGGLE_DRAWER",$="TASK_ROWS_PER_PAGE_CHANGE",ee="DAILY_STATS_KEY_CHANGE";function te(e){return{type:$,value:e}}var ae=a(868),ne=a(46),re=a(249),ce=a.n(re),se=a(251),ie=a.n(se),oe=a(250),le=a.n(oe),ue=a(248),de=a.n(ue),je=a(1),be=Object(p.a)((function(e){return Object(ae.a)({root:{flexShrink:0,marginLeft:e.spacing(2.5)}})}));var pe=function(e){var t=be(),a=Object(ne.a)(),n=e.count,r=e.page,c=e.rowsPerPage,s=e.onPageChange;return Object(je.jsxs)("div",{className:t.root,children:[Object(je.jsx)(_.a,{onClick:function(e){s(e,0)},disabled:0===r,"aria-label":"first page",children:"rtl"===a.direction?Object(je.jsx)(de.a,{}):Object(je.jsx)(ce.a,{})}),Object(je.jsx)(_.a,{onClick:function(e){s(e,r-1)},disabled:0===r,"aria-label":"previous page",children:"rtl"===a.direction?Object(je.jsx)(le.a,{}):Object(je.jsx)(ie.a,{})}),Object(je.jsx)(_.a,{onClick:function(e){s(e,r+1)},disabled:r>=Math.ceil(n/c)-1,"aria-label":"next page",children:"rtl"===a.direction?Object(je.jsx)(ie.a,{}):Object(je.jsx)(le.a,{})}),Object(je.jsx)(_.a,{onClick:function(e){s(e,Math.max(0,Math.ceil(n/c)-1))},disabled:r>=Math.ceil(n/c)-1,"aria-label":"last page",children:"rtl"===a.direction?Object(je.jsx)(ce.a,{}):Object(je.jsx)(de.a,{})})]})},he=[10,20,30,60,100],Oe=a(889),fe=a(890),me=a(150),xe=a(165),ge=a.n(xe),ve=a(914),ke=a(891),ye=a(4),Se=a.n(ye),Te=a(10),_e=a(20),Ae=a.n(_e),Ee=a(81),Ce=a.n(Ee),Re="".concat(window.ROOT_PATH,"/api");function Ie(){return we.apply(this,arguments)}function we(){return(we=Object(Te.a)(Se.a.mark((function e(){var t;return Se.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ae()({method:"get",url:"".concat(Re,"/queues")});case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qe(e){return Pe.apply(this,arguments)}function Pe(){return(Pe=Object(Te.a)(Se.a.mark((function e(t){return Se.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ae()({method:"delete",url:"".concat(Re,"/queues/").concat(t)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ne(e){return De.apply(this,arguments)}function De(){return(De=Object(Te.a)(Se.a.mark((function e(t){return Se.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ae()({method:"post",url:"".concat(Re,"/queues/").concat(t,":pause")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e){return Be.apply(this,arguments)}function Be(){return(Be=Object(Te.a)(Se.a.mark((function e(t){return Se.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ae()({method:"post",url:"".concat(Re,"/queues/").concat(t,":resume")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function He(){return Ue.apply(this,arguments)}function Ue(){return(Ue=Object(Te.a)(Se.a.mark((function e(){var t;return Se.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ae(
|
||
|
//# sourceMappingURL=main.c4fad8d1.chunk.js.map
|