2021-10-13 21:41:52 +08:00
|
|
|
(this.webpackJsonpui=this.webpackJsonpui||[]).push([[0],{802:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),c=a(27),s=a.n(c),i=a(885),o=a(28),l=a(110),u=a(2),d=a(6),j=a(42),b=a(41),p=a(842),h=a(877),O=a(882),f=a(883),x=a(875),g=a(810),v=a(811),k=a(872),y=a(873),m=a(884),S=a(813),_=a(115),A=a(845),T=a(812),E=a(350),C=a.n(E),R=a(352),I=a.n(R),w=a(355),q=a.n(w),P=a(356),N=a.n(P),D=a(354),L=a.n(D),B=a(357),H=a.n(B),U=a(353),K=a.n(U),z=a(351),G=a.n(z),V={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")};function Q(e,t){var a=V.QUEUE_DETAILS.replace(":qname",e);return t?"".concat(a,"?status=").concat(t):a}function M(e,t){return V.TASK_DETAILS.replace(":qname",e).replace(":taskId",t)}var W=a(359),F="POLL_INTERVAL_CHANGE",Y="THEME_PREFERENCE_CHANGE",J="TOGGLE_DRAWER",X="TASK_ROWS_PER_PAGE_CHANGE",$="DAILY_STATS_KEY_CHANGE";function Z(e){return{type:X,value:e}}var ee=a(844),te=a(45),ae=a(244),ne=a.n(ae),re=a(246),ce=a.n(re),se=a(245),ie=a.n(se),oe=a(243),le=a.n(oe),ue=a(1),de=Object(p.a)((function(e){return Object(ee.a)({root:{flexShrink:0,marginLeft:e.spacing(2.5)}})}));var je=function(e){var t=de(),a=Object(te.a)(),n=e.count,r=e.page,c=e.rowsPerPage,s=e.onChangePage;return Object(ue.jsxs)("div",{className:t.root,children:[Object(ue.jsx)(A.a,{onClick:function(e){s(e,0)},disabled:0===r,"aria-label":"first page",children:"rtl"===a.direction?Object(ue.jsx)(le.a,{}):Object(ue.jsx)(ne.a,{})}),Object(ue.jsx)(A.a,{onClick:function(e){s(e,r-1)},disabled:0===r,"aria-label":"previous page",children:"rtl"===a.direction?Object(ue.jsx)(ie.a,{}):Object(ue.jsx)(ce.a,{})}),Object(ue.jsx)(A.a,{onClick:function(e){s(e,r+1)},disabled:r>=Math.ceil(n/c)-1,"aria-label":"next page",children:"rtl"===a.direction?Object(ue.jsx)(ce.a,{}):Object(ue.jsx)(ie.a,{})}),Object(ue.jsx)(A.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(ue.jsx)(ne.a,{}):Object(ue.jsx)(le.a,{})})]})},be=[10,20,30,60,100],pe=a(868),he=a(869),Oe=a(163),fe=a(251),xe=a.n(fe),ge=a(888),ve=a(870),ke=a(4),ye=a.n(ke),me=a(10),Se=a(21),_e=a.n(Se),Ae=a(141),Te=a.n(Ae),Ee="".concat(window.ROOT_PATH,"/api");function Ce(){return Re.apply(this,arguments)}function Re(){return(Re=Object(me.a)(ye.a.mark((function e(){var t;return ye.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e()({method:"get",url:"".concat(Ee,"/queues")});case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ie(e){return we.apply(this,arguments)}function we(){return(we=Object(me.a)(ye.a.mark((function e(t){return ye.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e()({method:"delete",url:"".concat(Ee,"/queues/").concat(t)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qe(e){return Pe.apply(this,arguments)}function Pe(){return(Pe=Object(me.a)(ye.a.mark((function e(t){return ye.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e()({method:"post",url:"".concat(Ee,"/queues/").concat(t,":pause")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ne(e){return De.apply(this,arguments)}function De(){return(De=Object(me.a)(ye.a.mark((function e(t){return ye.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e()({method:"post",url:"".concat(Ee,"/queues/").concat(t,":resume")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(){return Be.apply(this,arguments)}function Be(){return(Be=Object(me.a)(ye.a.mark((function e(){var t;return ye.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e()({method:"get",url:"".concat(Ee,"/queue_stats")});case 2:return t=e.sent
|