asynqmon/ui/build/static/js/main.9ab02e37.chunk.js

2 lines
206 KiB
JavaScript
Raw Normal View History

2022-02-28 22:40:10 +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),k=a(881),y=a(898),S=a(821),_=a(106),T=a(809),E=a(820),A=a(357),C=a.n(A),R=a(359),w=a.n(R),I=a(362),q=a.n(I),N=a(364),P=a.n(N),D=a(361),L=a.n(D),B=a(365),H=a.n(B),U=a(363),z=a.n(U),K=a(360),G=a.n(K),M=a(358),V=a.n(M);console.log("DEBUG: ROOT_PATH",window.ROOT_PATH);var F=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 Q(e,t){var a=F().QUEUE_DETAILS.replace(":qname",e);return t?"".concat(a,"?status=").concat(t):a}function Y(e,t){return F().TASK_DETAILS.replace(":qname",e).replace(":taskId",t)}var W=a(366),J="POLL_INTERVAL_CHANGE",$="THEME_PREFERENCE_CHANGE",X="TOGGLE_DRAWER",Z="TASK_ROWS_PER_PAGE_CHANGE",ee="DAILY_STATS_KEY_CHANGE";function te(e){return{type:Z,value:e}}var ae=a(854),ne=a(47),re=a(245),ce=a.n(re),se=a(247),ie=a.n(se),oe=a(246),le=a.n(oe),ue=a(244),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)(T.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)(T.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)(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(je.jsx)(ie.a,{}):Object(je.jsx)(le.a,{})}),Object(je.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(je.jsx)(ce.a,{}):Object(je.jsx)(de.a,{})})]})},he=[10,20,30,60,100],Oe=a(876),fe=a(877),me=a(149),xe=a(162),ge=a.n(xe),ve=a(901),ke=a(878),ye=a(10),Se=a(4),_e=a.n(Se),Te=a(21),Ee=a.n(Te),Ae=a(80),Ce=a.n(Ae),Re=function(){return console.log("DEBUG: production? ",!0),"".concat(window.ROOT_PATH,"/api")};function we(){return Ie.apply(this,arguments)}function Ie(){return(Ie=Object(ye.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(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(ye.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(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(ye.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(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(ye.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(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(
//# sourceMappingURL=main.9ab02e37.chunk.js.map