mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-19 11:15:53 +08:00
2 lines
230 KiB
JavaScript
2 lines
230 KiB
JavaScript
|
(this.webpackJsonpui=this.webpackJsonpui||[]).push([[0],{632: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(729),o=a(24),u=a(61),l=a(2),d=a(5),j=a(39),b=a(45),p=a(682),O=a(719),h=a(726),g=a(727),f=a(712),m=a(642),v=a(643),x=a(709),k=a(710),y=a(728),S=a(647),T=a(635),_=a(646),E=a(364),A=a.n(E),C=a(366),R=a.n(C),w=a(369),I=a.n(w),q=a(371),N=a.n(q),P=a(368),D=a.n(P),L=a(372),B=a.n(L),G=a(370),U=a.n(G),z=a(367),H=a.n(z),K=a(365),V=a.n(K),M=function(){return{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=M().QUEUE_DETAILS.replace(":qname",e);return t?"".concat(a,"?status=").concat(t):a}function Q(e,t){return M().TASK_DETAILS.replace(":qname",e).replace(":taskId",t)}var Y=a(373),W="POLL_INTERVAL_CHANGE",J="THEME_PREFERENCE_CHANGE",Z="TOGGLE_DRAWER",$="TASK_ROWS_PER_PAGE_CHANGE",X="DAILY_STATS_KEY_CHANGE";function ee(e){return{type:$,value:e}}var te=a(684),ae=a(46),ne=a(250),re=a.n(ne),ce=a(252),se=a.n(ce),ie=a(251),oe=a.n(ie),ue=a(249),le=a.n(ue),de=a(1),je=Object(p.a)((function(e){return Object(te.a)({root:{flexShrink:0,marginLeft:e.spacing(2.5)}})}));var be=function(e){var t=je(),a=Object(ae.a)(),n=e.count,r=e.page,c=e.rowsPerPage,s=e.onPageChange;return Object(de.jsxs)("div",{className:t.root,children:[Object(de.jsx)(T.a,{onClick:function(e){s(e,0)},disabled:0===r,"aria-label":"first page",children:"rtl"===a.direction?Object(de.jsx)(le.a,{}):Object(de.jsx)(re.a,{})}),Object(de.jsx)(T.a,{onClick:function(e){s(e,r-1)},disabled:0===r,"aria-label":"previous page",children:"rtl"===a.direction?Object(de.jsx)(oe.a,{}):Object(de.jsx)(se.a,{})}),Object(de.jsx)(T.a,{onClick:function(e){s(e,r+1)},disabled:r>=Math.ceil(n/c)-1,"aria-label":"next page",children:"rtl"===a.direction?Object(de.jsx)(se.a,{}):Object(de.jsx)(oe.a,{})}),Object(de.jsx)(T.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(de.jsx)(re.a,{}):Object(de.jsx)(le.a,{})})]})},pe=[10,20,30,60,100],Oe=a(705),he=a(706),ge=a(147),fe=a(103),me=a(163),ve=a.n(me),xe=a(731),ke=a(707),ye=a(4),Se=a.n(ye),Te=a(9),_e=a(14),Ee=a.n(_e),Ae=a(79),Ce=a.n(Ae),Re=function(){return"".concat(window.ROOT_PATH,"/api")};function we(){return Ie.apply(this,arguments)}function Ie(){return(Ie=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,Ee()({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 Ne.apply(this,arguments)}function Ne(){return(Ne=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,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pe(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,Ee()({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,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,":resume")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ge(){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(;;)s
|
||
|
//# sourceMappingURL=main.5adda2da.chunk.js.map
|