asynqmon/ui/build/static/js/main.0094b47e.chunk.js

2 lines
219 KiB
JavaScript
Raw Normal View History

2022-03-02 22:23:41 +08:00
(this.webpackJsonpui=this.webpackJsonpui||[]).push([[0],{806:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),c=a(30),s=a.n(c),i=a(899),o=a(25),l=a(19),u=a(2),d=a(5),j=a(39),b=a(45),p=a(852),h=a(887),O=a(896),f=a(897),m=a(883),x=a(816),g=a(817),v=a(880),y=a(881),k=a(898),S=a(821),_=a(809),T=a(820),E=a(357),A=a.n(E),C=a(359),w=a.n(C),R=a(362),I=a.n(R),q=a(364),N=a.n(q),P=a(361),D=a.n(P),L=a(365),B=a.n(L),H=a(363),z=a.n(H),U=a(360),K=a.n(U),G=a(358),M=a.n(G),V=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=V().QUEUE_DETAILS.replace(":qname",e);return t?"".concat(a,"?status=").concat(t):a}function Q(e,t){return V().TASK_DETAILS.replace(":qname",e).replace(":taskId",t)}var Y=a(366),W="POLL_INTERVAL_CHANGE",J="THEME_PREFERENCE_CHANGE",$="TOGGLE_DRAWER",Z="TASK_ROWS_PER_PAGE_CHANGE",X="DAILY_STATS_KEY_CHANGE";function ee(e){return{type:Z,value:e}}var te=a(854),ae=a(46),ne=a(245),re=a.n(ne),ce=a(247),se=a.n(ce),ie=a(246),oe=a.n(ie),le=a(244),ue=a.n(le),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)(_.a,{onClick:function(e){s(e,0)},disabled:0===r,"aria-label":"first page",children:"rtl"===a.direction?Object(de.jsx)(ue.a,{}):Object(de.jsx)(re.a,{})}),Object(de.jsx)(_.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)(_.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)(_.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)(ue.a,{})})]})},pe=[10,20,30,60,100],he=a(876),Oe=a(877),fe=a(149),me=a(106),xe=a(162),ge=a.n(xe),ve=a(901),ye=a(878),ke=a(10),Se=a(4),_e=a.n(Se),Te=a(21),Ee=a.n(Te),Ae=a(80),Ce=a.n(Ae),we=function(){return"".concat(window.ROOT_PATH,"/api")};function Re(){return Ie.apply(this,arguments)}function Ie(){return(Ie=Object(ke.a)(_e.a.mark((function e(){var t;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"get",url:"".concat(we(),"/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(ke.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(we(),"/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(ke.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(we(),"/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(ke.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(we(),"/queues/").concat(t,":resume")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function He(){return ze.apply(this,arguments)}function ze(){return(ze=Object(ke.a)(_e.a.mark((function e(){var t;return _e.a.wrap((function(e){for(;;)
//# sourceMappingURL=main.0094b47e.chunk.js.map