@bull-board/ui 8.1.1 → 8.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.ejs +1 -1
- package/dist/static/js/590.dc2868965d.js +808 -0
- package/dist/static/js/async/{384.7870964db0.js → 121.bc4b11294f.js} +1 -1
- package/dist/static/js/async/172.5610b6d5ce.js +2 -0
- package/dist/static/js/async/177.a011a3dfb7.js +1 -0
- package/dist/static/js/async/365.e60c5bb82b.js +1 -0
- package/dist/static/js/async/450.6bf3182330.js +1 -0
- package/dist/static/js/async/{415.bd31b53981.js → 524.adf11d9fc8.js} +1 -1
- package/dist/static/js/async/609.88388ef9ae.js +1 -0
- package/dist/static/js/async/{661.2520a6fcce.js → 661.8523cd41a7.js} +2 -2
- package/dist/static/js/async/718.2f4df2042e.js +1 -0
- package/dist/static/js/async/725.1e2a996dab.js +1 -0
- package/dist/static/js/async/{343.803ace31e2.js → 737.4a37018d49.js} +1 -1
- package/dist/static/js/async/814.bff57943ab.js +1 -0
- package/dist/static/js/async/847.8340f53d0d.js +1 -0
- package/dist/static/js/async/{857.2f502488e8.js → 940.cb7a9bdcfd.js} +1 -1
- package/dist/static/js/async/{highlight-worker.e55f556eca.js → highlight-worker.de1e31a2dc.js} +1 -1
- package/dist/static/js/async/highlight.c4898cd8ee.js +1 -0
- package/dist/static/js/main.f55b94a6cc.js +9 -0
- package/dist/static/locales/da-DK/messages.json +3 -1
- package/dist/static/locales/de-DE/messages.json +3 -1
- package/dist/static/locales/en-GB/messages.json +3 -1
- package/dist/static/locales/en-US/messages.json +3 -1
- package/dist/static/locales/es-ES/messages.json +3 -1
- package/dist/static/locales/fr-FR/messages.json +3 -1
- package/dist/static/locales/ja-JP/messages.json +3 -1
- package/dist/static/locales/ko-KR/messages.json +3 -1
- package/dist/static/locales/pt-BR/messages.json +3 -1
- package/dist/static/locales/tr-TR/messages.json +3 -1
- package/dist/static/locales/zh-CN/messages.json +3 -1
- package/package.json +15 -15
- package/typings/i18next.d.ts +14 -0
- package/dist/static/js/551.ae4d7e5817.js +0 -808
- package/dist/static/js/async/172.39f5f97cdc.js +0 -2
- package/dist/static/js/async/409.42d2e90f3f.js +0 -1
- package/dist/static/js/async/581.51493329d5.js +0 -1
- package/dist/static/js/async/632.f93baffd1f.js +0 -1
- package/dist/static/js/async/648.00dbf6f52f.js +0 -1
- package/dist/static/js/async/718.9170e50e3c.js +0 -1
- package/dist/static/js/async/837.4c3f1cb195.js +0 -1
- package/dist/static/js/async/855.815bdcc177.js +0 -1
- package/dist/static/js/async/926.e8ee99d884.js +0 -1
- package/dist/static/js/async/977.a73d81226f.js +0 -1
- package/dist/static/js/async/highlight.c2a0349882.js +0 -1
- package/dist/static/js/main.e0387b32ce.js +0 -9
- /package/dist/static/css/async/{384.00a0466c73.css → 121.00a0466c73.css} +0 -0
- /package/dist/static/css/async/{415.9647eb502f.css → 177.9647eb502f.css} +0 -0
- /package/dist/static/css/async/{581.eb4f1f3bab.css → 450.eb4f1f3bab.css} +0 -0
- /package/dist/static/css/async/{648.9647eb502f.css → 524.9647eb502f.css} +0 -0
- /package/dist/static/css/async/{632.c19d052062.css → 609.c19d052062.css} +0 -0
- /package/dist/static/css/async/{977.32499dd5cd.css → 718.32499dd5cd.css} +0 -0
- /package/dist/static/css/async/{926.706c206163.css → 725.706c206163.css} +0 -0
- /package/dist/static/css/async/{837.5880506aef.css → 814.5880506aef.css} +0 -0
- /package/dist/static/css/async/{718.9647eb502f.css → 847.9647eb502f.css} +0 -0
- /package/dist/static/css/async/{857.c9300469a8.css → 940.c9300469a8.css} +0 -0
- /package/dist/static/js/{551.ae4d7e5817.js.LICENSE.txt → 590.dc2868965d.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/{172.39f5f97cdc.js.LICENSE.txt → 172.5610b6d5ce.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/{661.2520a6fcce.js.LICENSE.txt → 661.8523cd41a7.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[718],{8911(e,l,a){a.d(l,{i:()=>r});var s=a(1085),n=a(4357),i=a(4041),t=a(3983);let r=e=>{let{title:l,open:a,onToggle:r,children:o}=e,d=(0,i.useId)();return(0,s.jsxs)("div",{className:(0,n.A)("section-zYcd91",a&&"sectionOpen-ihwaNQ"),children:[(0,s.jsxs)("button",{type:"button",className:"header-o6017O","aria-expanded":a,"aria-controls":d,onClick:r,children:[(0,s.jsx)("span",{className:"title-l1MOL9",children:l}),(0,s.jsx)(t.y,{className:(0,n.A)("chevron-yOuH3O",a&&"chevronOpen-pUggyE")})]}),(0,s.jsx)("div",{id:d,className:"reveal-AVXtkY",role:"region","aria-hidden":!a,children:(0,s.jsx)("div",{className:"revealInner-p4EyhD",children:(0,s.jsx)("div",{className:"body-JvlAoS",children:o})})})]})}},5606(e,l,a){a.d(l,{D:()=>i});var s=a(1085),n=a(4357);let i=e=>{let{label:l,id:a,inline:i,description:t,children:r}=e;return(0,s.jsxs)("div",{className:(0,n.A)("field-JbAWJt",{"inline-vXG0Za":i}),children:[!!l&&!i&&(0,s.jsx)("label",{htmlFor:a,children:l}),r,!!l&&i&&(0,s.jsx)("label",{htmlFor:a,children:l}),!!t&&(0,s.jsx)("span",{className:"description-XLaDVy",children:t})]})}},2821(e,l,a){var s=a(1085),n=a(5606);a.d(l,{},{F:e=>{let{label:l,id:a,...i}=e;return(0,s.jsx)(n.D,{label:l,id:a,children:(0,s.jsx)("input",{id:a,type:"text",...i})})}})},823(e,l,a){var s=a(1085),n=a(5606);a.d(l,{},{z:e=>{let{label:l,id:a,options:i,...t}=e;return(0,s.jsx)(n.D,{label:l,id:a,children:(0,s.jsx)("select",{id:a,...t,children:i.map(e=>(0,s.jsx)("option",{value:e.value,children:e.text},e.value))})})}})},776(e,l,a){var s=a(1085),n=a(6134),i=a(6174),t=a(4313),r=a(8486),o=a(9344),d=a(2e3),c=a(8116),h=a(4357);a(4041);var S=a(3751),u=a(1566),T=a(1447);a.d(l,{},{a:e=>{let{open:l,title:a,onClose:E,children:p,width:N,actionButton:j}=e,{t:x}=(0,S.Bd)();return(0,s.jsx)(n.D,{open:l,modal:!0,onOpenChange:e=>{e||E()},children:(0,s.jsxs)(i.Z,{children:[(0,s.jsx)(t.X,{className:T.A.overlay}),(0,s.jsx)("div",{className:T.A.contentWrapper,children:(0,s.jsxs)(r.h,{className:(0,h.A)(T.A.content,T.A[N||""]),children:[!!a&&(0,s.jsx)(o.L,{children:a}),(0,s.jsx)(d.r,{render:(0,s.jsx)("div",{className:T.A.description}),children:p}),(0,s.jsxs)("div",{className:T.A.actions,children:[j,(0,s.jsx)(c.H,{render:(0,s.jsx)(u.$,{theme:"basic",children:x("MODAL.CLOSE_BTN")})})]})]})})]})})}})},3061(e,l,a){a.d(l,{SettingsModal:()=>g});var s=a(1085),n=a(4041),i=a(3751),t=a(2675),r=a(710),o=a(2815),d=a(8962),c=a(9767),h=a(8911),S=a(2821),u=a(823),T=a(886),E=a(4848),p=a(5606);let N=e=>{let{label:l,id:a,description:n,...i}=e;return(0,s.jsx)(p.D,{label:l,id:a,inline:!0,description:n,children:(0,s.jsx)(T.l,{id:a,...i,className:"switch-DOdNhn",children:(0,s.jsx)(E.p,{className:"thumb-tvm2sT"})})})};var j=a(776);let x=[-1,3,5,10,20,60,300,900],g=e=>{let{open:l,onClose:a}=e,{language:T,pollingInterval:E,jobsPerPage:p,confirmQueueActions:g,confirmJobActions:b,collapseJob:O,collapseJobData:C,collapseJobProgress:m,collapseJobOptions:v,collapseJobError:I,defaultCollapseDepth:A,useCollapsibleJson:G,defaultJobTab:L,sortQueues:_,overview:k,darkMode:P,setSettings:f}=(0,o.C)(e=>e),{pollingInterval:J,overview:D}=(0,d._)(),U=D?.groupByDelimiter??!1,{t:B,i18n:R}=(0,i.Bd)(),[y,M]=(0,n.useState)("general"),F=e=>M(l=>l===e?"":e);return(0,s.jsxs)(j.a,{width:"medium",open:l,onClose:a,title:B("SETTINGS.TITLE"),children:[(0,s.jsxs)(h.i,{title:B("SETTINGS.SECTIONS.GENERAL"),open:"general"===y,onToggle:()=>F("general"),children:[(0,s.jsx)(u.z,{label:B("SETTINGS.LANGUAGE"),id:"language",options:t.e.map(e=>({text:e,value:e})),value:T,onChange:e=>{R.changeLanguage(e.target.value),f({language:e.target.value})}}),J?.showSetting!==!1&&(0,s.jsx)(u.z,{label:B("SETTINGS.POLLING_INTERVAL"),id:"polling-interval",options:x.map(e=>({text:e<0?B("SETTINGS.POLLING_OPTIONS.OFF"):0===Math.floor(e/60)?B("SETTINGS.POLLING_OPTIONS.SECS",{count:e}):B("SETTINGS.POLLING_OPTIONS.MINS",{count:e/60}),value:`${e}`})),value:`${E}`,onChange:e=>f({pollingInterval:+e.target.value})}),(0,s.jsx)(N,{label:B("SETTINGS.DARK_MODE"),id:"dark-mode",checked:P,onCheckedChange:e=>f({darkMode:e})})]}),(0,s.jsxs)(h.i,{title:B("SETTINGS.SECTIONS.QUEUES"),open:"queues"===y,onToggle:()=>F("queues"),children:[(0,s.jsx)(N,{label:B("SETTINGS.GROUP_QUEUES"),id:"group-queues",description:B("SETTINGS.GROUP_QUEUES_HELP"),checked:k.grouped??U,onCheckedChange:e=>f({overview:{grouped:e}})}),(0,s.jsx)(N,{label:B("SETTINGS.SORT_QUEUES"),id:"sort-queues",checked:_,onCheckedChange:e=>f({sortQueues:e})}),(0,s.jsx)(N,{label:B("SETTINGS.CONFIRM_QUEUE_ACTIONS"),id:"confirm-queue-actions",checked:g,onCheckedChange:e=>f({confirmQueueActions:e})})]}),(0,s.jsxs)(h.i,{title:B("SETTINGS.SECTIONS.JOBS"),open:"jobs"===y,onToggle:()=>F("jobs"),children:[(0,s.jsx)(u.z,{label:B("SETTINGS.DEFAULT_JOB_TAB"),id:"default-job-tab",options:["default"].concat(r.d).map(e=>({text:B((0,c.G)(`JOB.TABS.${e.toUpperCase()}`)),value:e})),value:L,onChange:e=>f({defaultJobTab:e.target.value})}),(0,s.jsx)(S.F,{label:B("SETTINGS.JOBS_PER_PAGE"),id:"jobs-per-page",value:p,type:"number",min:"1",max:300,maxLength:3,onChange:e=>{f({jobsPerPage:Math.min(+e.target.value,300)})}}),(0,s.jsx)(N,{label:B("SETTINGS.CONFIRM_JOB_ACTIONS"),id:"confirm-job-actions",checked:b,onCheckedChange:e=>f({confirmJobActions:e})}),(0,s.jsx)(N,{label:B("SETTINGS.COLLAPSE_JOB"),id:"collapse-job",checked:O,onCheckedChange:e=>f({collapseJob:e})}),(0,s.jsx)(N,{label:B("SETTINGS.COLLAPSE_JOB_DATA"),id:"collapse-job-data",checked:C,onCheckedChange:e=>f({collapseJobData:e})}),(0,s.jsx)(N,{label:B("SETTINGS.COLLAPSE_JOB_PROGRESS"),id:"collapse-job-progress",checked:m,onCheckedChange:e=>f({collapseJobProgress:e})}),(0,s.jsx)(N,{label:B("SETTINGS.COLLAPSE_JOB_OPTIONS"),id:"collapse-job-options",checked:v,onCheckedChange:e=>f({collapseJobOptions:e})}),(0,s.jsx)(N,{label:B("SETTINGS.COLLAPSE_JOB_ERROR"),id:"collapse-job-error",checked:I,onCheckedChange:e=>f({collapseJobError:e})}),(0,s.jsx)(N,{label:B("SETTINGS.USE_COLLAPSIBLE_JSON"),id:"use-collapsible-json",checked:G,onCheckedChange:e=>f({useCollapsibleJson:e})}),G&&(0,s.jsx)(S.F,{label:B("SETTINGS.DEFAULT_COLLAPSE_DEPTH"),id:"default-collapse-depth",value:A,type:"number",min:"0",max:"10",onChange:e=>f({defaultCollapseDepth:Math.max(0,Math.min(10,+e.target.value))})})]})]})}},710(e,l,a){var s=a(2299),n=a(4041),i=a(2815);let t=["Data","Progress","Options","Logs","Error","Timeline"];function r(e){let[l,a]=(0,n.useState)([]),{defaultJobTab:r}=(0,i.C)(),[o,d]=(0,n.useState)(l.find(e=>e===r)||l[0]);return(0,n.useEffect)(()=>{let l=t.filter(e=>"Error"!==e&&"Timeline"!==e);l=e.currentStatus===s.f.failed?["Error",...l]:[...l,"Error"],e.withTimeline&&l.push("Timeline"),a(l)},[e.currentStatus,e.withTimeline]),(0,n.useEffect)(()=>{d(l.includes(r)?r:l[0])},[r,l]),{tabs:l?.map(e=>({title:e,isActive:e===o,selectTab:()=>d(e)})),selectedTab:o}}a.d(l,{i:()=>r},{d:t})},9767(e,l,a){a.d(l,{},{G:e=>e})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[725],{3772(e,s,a){a.d(s,{QueueMetrics:()=>S});var t=a(1085),l=a(3751),i=a(6325),r=a(238),c=a(8331),n=a(1492),d=a(9895),o=a(1441),m=a(6772),h=a(5193),p=a(1008),x=a(2815),j=a(5536),N="metricsCard-qxOW_V",u="header-mrtU96",f="title-iirZxv",E="legendItem-QfGJNA",M="swatch-dT98en",v="tooltipRow-hMT8N4",C="tooltipSwatch-uVBJHJ",I="tooltipName-CJWRXn",T="tooltipValue-G7Z047",y="tooltipUnit-Kg6E2F",R="stat-D3v4sE",g="statValue-HrFOc2",k="statLabel-nzxvic";function _(e,s){let a=Array.from({length:60},()=>0);if(!e)return a;let t=e.meta?.prevTS||s,l=Math.max(0,(e.meta?.count??0)-(e.meta?.prevCount??0)),i=Math.max(0,Math.floor(s/6e4)-Math.floor(t/6e4)),r=[l,...e.data??[]];for(let e=0;e<r.length;e++){let s=i+e;if(s>=60)break;a[59-s]=r[e]}return a}let S=e=>{let{queue:s}=e,{t:a}=(0,l.Bd)(),{metrics:S,loading:A}=function(e){let s=(0,p.g)(),a=(0,x.C)(e=>{let{pollingInterval:s}=e;return s}),{data:t,isPending:l}=(0,m.I)({queryKey:h.l.metrics(e),queryFn:()=>s.getMetrics(e),enabled:!!e,refetchInterval:a>0&&1e3*a});return{metrics:t??null,loading:l}}(s.name),O=Date.now(),b=_(S?.completed,O),D=_(S?.failed,O);if(A&&!S)return null;if(![S?.completed,S?.failed].some(e=>(e?.meta?.count??0)>0||(e?.data?.length??0)>0))return(0,t.jsxs)(j.Z,{className:N,children:[(0,t.jsx)("div",{className:u,children:(0,t.jsx)("h3",{className:f,children:a("METRICS.TITLE")})}),(0,t.jsx)("p",{className:"empty-IM9Njm",children:a("METRICS.EMPTY")})]});let P=b.map((e,s)=>({index:s,minutesAgo:59-s,completed:e,failed:D[s]??0})),W=b[58]??0,L=D[58]??0,G=Math.max(0,...b,...D);return(0,t.jsxs)(j.Z,{className:N,children:[(0,t.jsxs)("div",{className:u,children:[(0,t.jsx)("h3",{className:f,children:a("METRICS.TITLE")}),(0,t.jsxs)("div",{className:"legend-cEl69a",children:[(0,t.jsxs)("span",{className:E,children:[(0,t.jsx)("span",{className:M,style:{backgroundColor:"var(--completed)"}}),a("METRICS.COMPLETED")]}),(0,t.jsxs)("span",{className:E,children:[(0,t.jsx)("span",{className:M,style:{backgroundColor:"var(--failed)"}}),a("METRICS.FAILED")]})]})]}),(0,t.jsx)(i.u,{width:"100%",height:140,children:(0,t.jsxs)(r.Q,{data:P,margin:{top:8,right:4,bottom:0,left:4},children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"metric-completed",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"var(--completed)",stopOpacity:.35}),(0,t.jsx)("stop",{offset:"100%",stopColor:"var(--completed)",stopOpacity:0})]}),(0,t.jsxs)("linearGradient",{id:"metric-failed",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"var(--failed)",stopOpacity:.35}),(0,t.jsx)("stop",{offset:"100%",stopColor:"var(--failed)",stopOpacity:0})]})]}),(0,t.jsx)(c.W,{dataKey:"index",hide:!0}),(0,t.jsx)(n.h,{hide:!0,domain:[0,"dataMax"]}),(0,t.jsx)(d.m,{content:e=>{let{active:s,payload:l}=e;if(!s||!l||0===l.length)return null;let i=l[0].payload;return(0,t.jsxs)("div",{className:"tooltip-sIlTyZ",children:[(0,t.jsx)("div",{className:"tooltipTime-uMhAg3",children:0===i.minutesAgo?a("METRICS.NOW"):a("METRICS.MINUTES_AGO",{minutes:i.minutesAgo})}),(0,t.jsxs)("div",{className:v,children:[(0,t.jsx)("span",{className:C,style:{backgroundColor:"var(--completed)"}}),(0,t.jsx)("span",{className:I,children:a("METRICS.COMPLETED")}),(0,t.jsxs)("span",{className:T,children:[i.completed,(0,t.jsx)("span",{className:y,children:a("METRICS.PER_MIN_UNIT")})]})]}),(0,t.jsxs)("div",{className:v,children:[(0,t.jsx)("span",{className:C,style:{backgroundColor:"var(--failed)"}}),(0,t.jsx)("span",{className:I,children:a("METRICS.FAILED")}),(0,t.jsxs)("span",{className:T,children:[i.failed,(0,t.jsx)("span",{className:y,children:a("METRICS.PER_MIN_UNIT")})]})]})]})},cursor:{stroke:"var(--accent-color)",strokeWidth:1,strokeOpacity:.6},isAnimationActive:!1}),(0,t.jsx)(o.Gk,{type:"monotone",dataKey:"completed",stroke:"var(--completed)",strokeWidth:1.5,fill:"url(#metric-completed)",dot:!1,activeDot:{r:3,strokeWidth:0},isAnimationActive:!1}),(0,t.jsx)(o.Gk,{type:"monotone",dataKey:"failed",stroke:"var(--failed)",strokeWidth:1.5,fill:"url(#metric-failed)",dot:!1,activeDot:{r:3,strokeWidth:0},isAnimationActive:!1})]})}),(0,t.jsxs)("div",{className:"summary-Yak4CU",children:[(0,t.jsxs)("div",{className:R,children:[(0,t.jsx)("span",{className:g,children:W}),(0,t.jsx)("span",{className:k,children:a("METRICS.COMPLETED_PER_MIN")})]}),(0,t.jsxs)("div",{className:R,children:[(0,t.jsx)("span",{className:g,children:L}),(0,t.jsx)("span",{className:k,children:a("METRICS.FAILED_PER_MIN")})]}),(0,t.jsxs)("div",{className:R,children:[(0,t.jsx)("span",{className:g,children:G}),(0,t.jsx)("span",{className:k,children:a("METRICS.PEAK_PER_MIN")})]}),(0,t.jsxs)("div",{className:R,children:[(0,t.jsx)("span",{className:g,children:b.reduce((e,s)=>e+s,0)}),(0,t.jsx)("span",{className:k,children:a("METRICS.WINDOW_COMPLETED",{minutes:60})})]})]})]})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[343],{1317(){},8807(e,t,n){var r=n(4041);let a=e=>!!e&&e instanceof Date,l=e=>"object"==typeof e&&null!==e,i=e=>!!e&&e instanceof Object&&"function"==typeof e;function o(e,t){return void 0===t&&(t=!1),!e||t?`"${e}"`:e}function s(e){let{field:t,value:n,data:a,lastElement:l,openBracket:i,closeBracket:s,level:u,style:c,shouldExpandNode:d,clickToExpandNode:p,outerRef:m,beforeExpandChange:b}=e,y=(0,r.useRef)(!1),[g,v]=(0,r.useState)(()=>d(u,n,t)),h=(0,r.useRef)(null);(0,r.useEffect)(()=>{y.current?v(d(u,n,t)):y.current=!0},[d]);let E=(0,r.useId)();if(0===a.length)return function(e){let{field:t,openBracket:n,closeBracket:a,lastElement:l,style:i}=e;return(0,r.createElement)("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,r.createElement)("span",{className:i.label},o(t,i.quotesForFieldNames),":"),(0,r.createElement)("span",{className:i.punctuation},n),(0,r.createElement)("span",{className:i.punctuation},a),!l&&(0,r.createElement)("span",{className:i.punctuation},","))}({field:t,openBracket:i,closeBracket:s,lastElement:l,style:c});let N=g?c.collapseIcon:c.expandIcon,k=g?c.ariaLables.collapseJson:c.ariaLables.expandJson,S=u+1,x=a.length-1,_=e=>{g!==e&&(!b||b({level:u,value:n,field:t,newExpandValue:e}))&&v(e)},w=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),_("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();let t="ArrowUp"===e.key?-1:1;if(!m.current)return;let n=m.current.querySelectorAll("[role=button]"),r=-1;for(let e=0;e<n.length;e++)if(0===n[e].tabIndex){r=e;break}if(r<0)return;let a=(r+t+n.length)%n.length;n[r].tabIndex=-1,n[a].tabIndex=0,n[a].focus()}},C=()=>{var e;_(!g);let t=h.current;if(!t)return;let n=null==(e=m.current)?void 0:e.querySelector('[role=button][tabindex="0"]');n&&(n.tabIndex=-1),t.tabIndex=0,t.focus()};return(0,r.createElement)("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":g,"aria-selected":void 0},(0,r.createElement)("span",{className:N,onClick:C,onKeyDown:w,role:"button","aria-label":k,"aria-expanded":g,"aria-controls":g?E:void 0,ref:h,tabIndex:0===u?0:-1}),(t||""===t)&&(p?(0,r.createElement)("span",{className:c.clickableLabel,onClick:C,onKeyDown:w},o(t,c.quotesForFieldNames),":"):(0,r.createElement)("span",{className:c.label},o(t,c.quotesForFieldNames),":")),(0,r.createElement)("span",{className:c.punctuation},i),g?(0,r.createElement)("ul",{id:E,role:"group",className:c.childFieldsContainer},a.map((e,t)=>(0,r.createElement)(f,{key:e[0]||t,field:e[0],value:e[1],style:c,lastElement:t===x,level:S,shouldExpandNode:d,clickToExpandNode:p,beforeExpandChange:b,outerRef:m}))):(0,r.createElement)("span",{className:c.collapsedContent,onClick:C,onKeyDown:w}),(0,r.createElement)("span",{className:c.punctuation},s),!l&&(0,r.createElement)("span",{className:c.punctuation},","))}function u(e){let{field:t,value:n,style:r,lastElement:a,shouldExpandNode:l,clickToExpandNode:i,level:o,outerRef:u,beforeExpandChange:c}=e;return s({field:t,value:n,lastElement:a||!1,level:o,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:l,clickToExpandNode:i,data:Object.keys(n).map(e=>[e,n[e]]),outerRef:u,beforeExpandChange:c})}function c(e){let{field:t,value:n,style:r,lastElement:a,level:l,shouldExpandNode:i,clickToExpandNode:o,outerRef:u,beforeExpandChange:c}=e;return s({field:t,value:n,lastElement:a||!1,level:l,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:i,clickToExpandNode:o,data:n.map(e=>[void 0,e]),outerRef:u,beforeExpandChange:c})}function d(e){let t,{field:n,value:l,style:s,lastElement:u}=e,c=s.otherValue;if(null===l)t="null",c=s.nullValue;else if(void 0===l)t="undefined",c=s.undefinedValue;else if("string"==typeof l||l instanceof String){var d;d=!s.noQuotesForStringValues,t=s.stringifyStringValues?JSON.stringify(l):d?`"${l}"`:l,c=s.stringValue}else if("boolean"==typeof l||l instanceof Boolean)t=l?"true":"false",c=s.booleanValue;else if("number"==typeof l||l instanceof Number)t=l.toString(),c=s.numberValue;else"bigint"==typeof l||l instanceof BigInt?(t=`${l.toString()}n`,c=s.numberValue):t=a(l)?l.toISOString():i(l)?"function() { }":l.toString();return(0,r.createElement)("div",{className:s.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,r.createElement)("span",{className:s.label},o(n,s.quotesForFieldNames),":"),(0,r.createElement)("span",{className:c},t),!u&&(0,r.createElement)("span",{className:s.punctuation},","))}function f(e){let t=e.value;return Array.isArray(t)?(0,r.createElement)(c,Object.assign({},e)):!l(t)||a(t)||i(t)?(0,r.createElement)(d,Object.assign({},e)):(0,r.createElement)(u,Object.assign({},e))}let p={container:"_2IvMF _GzYRV",basicChildStyle:"_2bkNM",childFieldsContainer:"_1BXBN",label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:{collapseJson:"collapse JSON",expandJson:"expand JSON"},stringifyStringValues:!1},m=()=>!0;n.d(t,{},{UU:e=>{let{data:t,style:n=p,shouldExpandNode:a=m,clickToExpandNode:i=!1,beforeExpandChange:o,compactTopLevel:s,...u}=e,c=(0,r.useRef)(null);return(0,r.createElement)("div",Object.assign({"aria-label":"JSON view"},u,{className:n.container,ref:c,role:"tree"}),s&&l(t)?Object.entries(t).map(e=>{let[t,l]=e;return(0,r.createElement)(f,{key:t,field:t,value:l,style:{...p,...n},lastElement:!0,level:1,shouldExpandNode:a,clickToExpandNode:i,beforeExpandChange:o,outerRef:c})}):(0,r.createElement)(f,{value:t,style:{...p,...n},lastElement:!0,level:0,shouldExpandNode:a,clickToExpandNode:i,outerRef:c,beforeExpandChange:o}))},ab:e=>e<1})},6458(e,t,n){n.d(t,{j:()=>_});var r,a=n(4041),l=n(6479),i=n(8473),o=n(1824),s=n(315),u=n(7007),c=n(5849),d=n(1301),f=n(6694),p=n(8339),m=n(5025),b=n(1860),y=n(4594),g=n(1719),v=n(3249),h=n(3919);let E={height:void 0,width:void 0};function N(e){return{height:e.scrollHeight,width:e.scrollWidth}}function k(e){return e.split(",").map(e=>e.trim()).some(e=>""!==e&&Number.parseFloat(e)>0)}function S(e,t,n){let r=e.style.getPropertyValue(t),a=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{""===r?e.style.removeProperty(t):e.style.setProperty(t,r,a)}}let x=((r={}).collapsiblePanelHeight="--collapsible-panel-height",r.collapsiblePanelWidth="--collapsible-panel-width",r),_=a.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:_,render:w,id:C,style:F,...R}=e,{mounted:V,onOpenChange:j,open:I,panelId:A,setMounted:K,setPanelIdState:O,setOpen:M,state:P,transitionStatus:q}=(0,s.f)();(0,l.g)(()=>{if(C)return O(C),()=>{O(void 0)}},[C,O]);let{height:D,props:J,ref:L,shouldPreventOpenAnimation:T,shouldRender:U,transitionStatus:B,width:G}=function(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:i,mounted:o,onOpenChange:s,open:u,setMounted:x,setOpen:_,transitionStatus:w}=e,C=a.useRef(null),F=a.useRef(null),[R,V]=a.useState(E),j=a.useRef(E),I=a.useRef(!1),A=a.useRef(u),K=a.useRef(!1),[O,M]=a.useState(!1),P=a.useRef(null),q=(0,d.a)(t,C),D=(0,m.u)({mounted:o,open:u}),J=(0,v.V)(C,!1,!1),L=!u&&!o,T=O?"idle":w,U=u&&(A.current||K.current),B=!u&&o&&"css-animation"===F.current&&void 0===R.height&&void 0===R.width?j.current:R,G=n&&L&&"css-animation"!==F.current,H=(0,p.K)((e,t=!0)=>{t&&(j.current=e),V(e)}),Y=(0,p.K)(()=>{P.current?.(),P.current=null}),$=(0,p.K)(e=>{Y(),P.current=()=>{P.current=null,e()}}),Q=(0,p.K)(()=>{u&&o&&"css-animation"===F.current&&(K.current=!0)});(0,l.g)(()=>{O&&"starting"!==w&&M(!1)},[O,w]),a.useEffect(()=>()=>{Q(),Y()},[Q,Y]),(0,l.g)(()=>{let e=C.current;if(!e)return;!u&&P.current&&Y();let t=function(e,t=!1){let n=(0,b.zk)(e).getComputedStyle(e),r=(n.animationName.split(",").map(e=>e.trim()).some(e=>""!==e&&"none"!==e)||t)&&k(n.animationDuration),a=k(n.transitionDuration);return r&&a||a?"css-transition":r?"css-animation":"none"}(e,U);if(F.current=t,u&&"idle"===w&&A.current&&"css-animation"===t){j.current=N(e);return}if(u&&"starting"===w){let n=I.current;if(I.current=!1,"none"===t){H(N(e)),M(!0);return}if("css-transition"===t){let t=function(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};function n(){Object.entries(t).forEach(([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)})}Object.keys(t).forEach(t=>{e.style.setProperty(t,"initial","important")});let r=f.K.request(n);return()=>{f.K.cancel(r),n()}}(e);return H(N(e)),n&&($(S(e,"transition-duration","0s")),M(!0)),t}if("css-animation"===t){if(H(N(e)),!n)return void S(e,"animation-name","none")();let t=S(e,"animation-name","none"),r=S(e,"animation-duration","0s");return t(),$(r),M(!0),void 0}}if(!u&&o&&("idle"===w||"starting"===w)){if(A.current=!1,K.current=!1,"none"===t){H(E,!1),x(!1);return}H(N(e));return}if("ending"!==w)return;if("none"===t)return void x(!1);let n=N(e);(n.height??0)>0||(n.width??0)>0?(H(n),"css-animation"===t&&S(e,"animation-name","none")()):x(!1)},[o,u,Y,H,x,$,U,w]),(0,g.v)({enabled:u&&o&&"idle"===T,open:!0,ref:C,onComplete(){u&&H(E,!1)}}),a.useEffect(()=>{if(u||!o||"ending"!==T||!C.current)return;let e=new AbortController,t=-1;function n(){D.current.open||(x(!1),H(E,!1))}return t=f.K.request(()=>{e.signal.aborted||J(n,e.signal)}),()=>{f.K.cancel(t),e.abort()}},[D,o,u,T,J,H,x]),(0,l.g)(()=>{let e=C.current;e&&n&&L&&e.setAttribute("hidden","until-found")},[L,n]),a.useEffect(function(){let e=C.current;if(e)return(0,c.q)(e,"beforematch",function(e){let t=(0,y.d)("none",e);s(!0,t),t.isCanceled||(I.current=!0,_(!0))})},[s,_]);let W=i||n||o||u;return{height:B.height,props:{...G?{[h.k.startingStyle]:""}:void 0,hidden:L,id:r},ref:q,shouldPreventOpenAnimation:U,shouldRender:W,transitionStatus:T,width:B.width}}({externalRef:t,hiddenUntilFound:r??!1,id:A,keepMounted:_??!1,mounted:V,onOpenChange:j,open:I,setMounted:K,setOpen:M,transitionStatus:q}),H={...P,transitionStatus:B},Y=(0,i.m)(F,H),$=(0,o.o)("div",{...e,style:void 0},{state:H,ref:L,props:[J,{style:{[x.collapsiblePanelHeight]:void 0===D?"auto":`${D}px`,[x.collapsiblePanelWidth]:void 0===G?"auto":`${G}px`}},R,Y?{style:Y}:void 0,T?{style:{animationName:"none"}}:void 0],stateAttributesMapping:u.d});return U?$:null})},3919(e,t,n){var r,a=n(9755);let l=((r={}).open="data-open",r.closed="data-closed",r[r.startingStyle=a.T.startingStyle]="startingStyle",r[r.endingStyle=a.T.endingStyle]="endingStyle",r);n.d(t,{k:()=>l})},6922(e,t,n){n.d(t,{N:()=>m});var r=n(4041),a=n(8339),l=n(1824),i=n(6261),o=n(5576),s=n(4594),u=n(476),c=n(6517),d=n(315),f=n(7007),p=n(1085);let m=r.forwardRef(function(e,t){let{render:n,className:m,defaultOpen:b=!1,disabled:y=!1,onOpenChange:g,open:v,style:h,...E}=e,N=(0,a.K)(g),k=function(e){let{open:t,defaultOpen:n,onOpenChange:l,disabled:d}=e,[f,p]=(0,i.q)({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:m,setMounted:b,transitionStatus:y}=(0,c.$)(f,!0,!0),g=(0,o.e)(),[v,h]=r.useState(),E=v??g,N=(0,a.K)(e=>{let t=!f,n=(0,s.d)(u.Ui,e.nativeEvent);l(t,n),n.isCanceled||p(t)});return r.useMemo(()=>({disabled:d,handleTrigger:N,mounted:m,open:f,panelId:E,setMounted:b,setOpen:p,setPanelIdState:h,transitionStatus:y}),[d,N,m,f,E,b,p,h,y])}({open:v,defaultOpen:b,onOpenChange:N,disabled:y}),S=r.useMemo(()=>({open:k.open,disabled:k.disabled,transitionStatus:k.transitionStatus}),[k.open,k.disabled,k.transitionStatus]),x=r.useMemo(()=>({...k,onOpenChange:N,state:S}),[k,N,S]),_=(0,l.o)("div",e,{state:S,ref:t,props:E,stateAttributesMapping:f.d});return(0,p.jsx)(d.k.Provider,{value:x,children:_})})},315(e,t,n){var r=n(1496),a=n(4041);let l=a.createContext(void 0);function i(){let e=a.useContext(l);if(void 0===e)throw Error((0,r.A)(15));return e}n.d(t,{f:()=>i},{k:l})},7007(e,t,n){n.d(t,{d:()=>i});var r=n(3919);let a={[r.k.open]:""},l={[r.k.closed]:""},i={open:e=>e?a:l,...n(9755).G}},6261(e,t,n){var r=n(4041);function a({controlled:e,default:t,name:n,state:l="value"}){let{current:i}=r.useRef(void 0!==e),[o,s]=r.useState(t),u=r.useCallback(e=>{i||s(e)},[]);return[i?e:o,u]}n.d(t,{q:()=>a})},5886(e,t,n){var r=n(4780);function a(e,...t){let n=r.w.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}n.d(t,{x:()=>a})},4780(e,t,n){n.d(t,{w:()=>a});let r=Symbol.for("constructDateFrom");function a(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r in e?e[r](t):e instanceof Date?new e.constructor(t):new Date(t)}},2233(e,t,n){var r=n(8494);function a(e,t){return(0,r.a)(e)-(0,r.a)(t)}n.d(t,{b:()=>a})},5944(e,t,n){var r=n(5886);function a(e,t,n){let[a,l]=(0,r.x)(n?.in,e,t);return a.getFullYear()===l.getFullYear()}n.d(t,{s:()=>a})},4934(e,t,n){n.d(t,{c:()=>o});var r=n(4780),a=n(5886),l=n(8494);function i(e,t){let n=(0,l.a)(e,t?.in);return n.setHours(0,0,0,0),n}function o(e,t){var n;return function(e,t){let[n,r]=(0,a.x)(void 0,e,t);return+i(n)==+i(r)}((0,r.w)(t?.in||e,e),(n=t?.in||e,(0,r.w)(n,Date.now())))}},8494(e,t,n){var r=n(4780);function a(e,t){return(0,r.w)(t||e,e)}n.d(t,{a:()=>a})},6506(e,t,n){n.d(t,{Ak:()=>r});let r=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t}}}]);
|
|
1
|
+
"use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[737],{7775(){},8807(e,t,n){var r=n(4041);let a=e=>!!e&&e instanceof Date,l=e=>"object"==typeof e&&null!==e,i=e=>!!e&&e instanceof Object&&"function"==typeof e;function o(e,t){return void 0===t&&(t=!1),!e||t?`"${e}"`:e}function s(e){let{field:t,value:n,data:a,lastElement:l,openBracket:i,closeBracket:s,level:u,style:c,shouldExpandNode:d,clickToExpandNode:p,outerRef:m,beforeExpandChange:b}=e,y=(0,r.useRef)(!1),[g,v]=(0,r.useState)(()=>d(u,n,t)),h=(0,r.useRef)(null);(0,r.useEffect)(()=>{y.current?v(d(u,n,t)):y.current=!0},[d]);let E=(0,r.useId)();if(0===a.length)return function(e){let{field:t,openBracket:n,closeBracket:a,lastElement:l,style:i}=e;return(0,r.createElement)("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,r.createElement)("span",{className:i.label},o(t,i.quotesForFieldNames),":"),(0,r.createElement)("span",{className:i.punctuation},n),(0,r.createElement)("span",{className:i.punctuation},a),!l&&(0,r.createElement)("span",{className:i.punctuation},","))}({field:t,openBracket:i,closeBracket:s,lastElement:l,style:c});let N=g?c.collapseIcon:c.expandIcon,k=g?c.ariaLables.collapseJson:c.ariaLables.expandJson,S=u+1,x=a.length-1,_=e=>{g!==e&&(!b||b({level:u,value:n,field:t,newExpandValue:e}))&&v(e)},w=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),_("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();let t="ArrowUp"===e.key?-1:1;if(!m.current)return;let n=m.current.querySelectorAll("[role=button]"),r=-1;for(let e=0;e<n.length;e++)if(0===n[e].tabIndex){r=e;break}if(r<0)return;let a=(r+t+n.length)%n.length;n[r].tabIndex=-1,n[a].tabIndex=0,n[a].focus()}},C=()=>{var e;_(!g);let t=h.current;if(!t)return;let n=null==(e=m.current)?void 0:e.querySelector('[role=button][tabindex="0"]');n&&(n.tabIndex=-1),t.tabIndex=0,t.focus()};return(0,r.createElement)("div",{className:c.basicChildStyle,role:"treeitem","aria-expanded":g,"aria-selected":void 0},(0,r.createElement)("span",{className:N,onClick:C,onKeyDown:w,role:"button","aria-label":k,"aria-expanded":g,"aria-controls":g?E:void 0,ref:h,tabIndex:0===u?0:-1}),(t||""===t)&&(p?(0,r.createElement)("span",{className:c.clickableLabel,onClick:C,onKeyDown:w},o(t,c.quotesForFieldNames),":"):(0,r.createElement)("span",{className:c.label},o(t,c.quotesForFieldNames),":")),(0,r.createElement)("span",{className:c.punctuation},i),g?(0,r.createElement)("ul",{id:E,role:"group",className:c.childFieldsContainer},a.map((e,t)=>(0,r.createElement)(f,{key:e[0]||t,field:e[0],value:e[1],style:c,lastElement:t===x,level:S,shouldExpandNode:d,clickToExpandNode:p,beforeExpandChange:b,outerRef:m}))):(0,r.createElement)("span",{className:c.collapsedContent,onClick:C,onKeyDown:w}),(0,r.createElement)("span",{className:c.punctuation},s),!l&&(0,r.createElement)("span",{className:c.punctuation},","))}function u(e){let{field:t,value:n,style:r,lastElement:a,shouldExpandNode:l,clickToExpandNode:i,level:o,outerRef:u,beforeExpandChange:c}=e;return s({field:t,value:n,lastElement:a||!1,level:o,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:l,clickToExpandNode:i,data:Object.keys(n).map(e=>[e,n[e]]),outerRef:u,beforeExpandChange:c})}function c(e){let{field:t,value:n,style:r,lastElement:a,level:l,shouldExpandNode:i,clickToExpandNode:o,outerRef:u,beforeExpandChange:c}=e;return s({field:t,value:n,lastElement:a||!1,level:l,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:i,clickToExpandNode:o,data:n.map(e=>[void 0,e]),outerRef:u,beforeExpandChange:c})}function d(e){let t,{field:n,value:l,style:s,lastElement:u}=e,c=s.otherValue;if(null===l)t="null",c=s.nullValue;else if(void 0===l)t="undefined",c=s.undefinedValue;else if("string"==typeof l||l instanceof String){var d;d=!s.noQuotesForStringValues,t=s.stringifyStringValues?JSON.stringify(l):d?`"${l}"`:l,c=s.stringValue}else if("boolean"==typeof l||l instanceof Boolean)t=l?"true":"false",c=s.booleanValue;else if("number"==typeof l||l instanceof Number)t=l.toString(),c=s.numberValue;else"bigint"==typeof l||l instanceof BigInt?(t=`${l.toString()}n`,c=s.numberValue):t=a(l)?l.toISOString():i(l)?"function() { }":l.toString();return(0,r.createElement)("div",{className:s.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,r.createElement)("span",{className:s.label},o(n,s.quotesForFieldNames),":"),(0,r.createElement)("span",{className:c},t),!u&&(0,r.createElement)("span",{className:s.punctuation},","))}function f(e){let t=e.value;return Array.isArray(t)?(0,r.createElement)(c,Object.assign({},e)):!l(t)||a(t)||i(t)?(0,r.createElement)(d,Object.assign({},e)):(0,r.createElement)(u,Object.assign({},e))}let p={container:"_2IvMF _GzYRV",basicChildStyle:"_2bkNM",childFieldsContainer:"_1BXBN",label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:{collapseJson:"collapse JSON",expandJson:"expand JSON"},stringifyStringValues:!1},m=()=>!0;n.d(t,{},{UU:e=>{let{data:t,style:n=p,shouldExpandNode:a=m,clickToExpandNode:i=!1,beforeExpandChange:o,compactTopLevel:s,...u}=e,c=(0,r.useRef)(null);return(0,r.createElement)("div",Object.assign({"aria-label":"JSON view"},u,{className:n.container,ref:c,role:"tree"}),s&&l(t)?Object.entries(t).map(e=>{let[t,l]=e;return(0,r.createElement)(f,{key:t,field:t,value:l,style:{...p,...n},lastElement:!0,level:1,shouldExpandNode:a,clickToExpandNode:i,beforeExpandChange:o,outerRef:c})}):(0,r.createElement)(f,{value:t,style:{...p,...n},lastElement:!0,level:0,shouldExpandNode:a,clickToExpandNode:i,outerRef:c,beforeExpandChange:o}))},ab:e=>e<1})},6458(e,t,n){n.d(t,{j:()=>_});var r,a=n(4041),l=n(6479),i=n(8473),o=n(1824),s=n(315),u=n(7007),c=n(5849),d=n(1301),f=n(6694),p=n(8339),m=n(5025),b=n(1860),y=n(4594),g=n(1719),v=n(3249),h=n(3919);let E={height:void 0,width:void 0};function N(e){return{height:e.scrollHeight,width:e.scrollWidth}}function k(e){return e.split(",").map(e=>e.trim()).some(e=>""!==e&&Number.parseFloat(e)>0)}function S(e,t,n){let r=e.style.getPropertyValue(t),a=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{""===r?e.style.removeProperty(t):e.style.setProperty(t,r,a)}}let x=((r={}).collapsiblePanelHeight="--collapsible-panel-height",r.collapsiblePanelWidth="--collapsible-panel-width",r),_=a.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:_,render:w,id:C,style:F,...R}=e,{mounted:V,onOpenChange:j,open:I,panelId:A,setMounted:K,setPanelIdState:O,setOpen:M,state:P,transitionStatus:q}=(0,s.f)();(0,l.g)(()=>{if(C)return O(C),()=>{O(void 0)}},[C,O]);let{height:D,props:J,ref:L,shouldPreventOpenAnimation:T,shouldRender:U,transitionStatus:B,width:G}=function(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:i,mounted:o,onOpenChange:s,open:u,setMounted:x,setOpen:_,transitionStatus:w}=e,C=a.useRef(null),F=a.useRef(null),[R,V]=a.useState(E),j=a.useRef(E),I=a.useRef(!1),A=a.useRef(u),K=a.useRef(!1),[O,M]=a.useState(!1),P=a.useRef(null),q=(0,d.a)(t,C),D=(0,m.u)({mounted:o,open:u}),J=(0,v.V)(C,!1,!1),L=!u&&!o,T=O?"idle":w,U=u&&(A.current||K.current),B=!u&&o&&"css-animation"===F.current&&void 0===R.height&&void 0===R.width?j.current:R,G=n&&L&&"css-animation"!==F.current,H=(0,p.K)((e,t=!0)=>{t&&(j.current=e),V(e)}),Y=(0,p.K)(()=>{P.current?.(),P.current=null}),$=(0,p.K)(e=>{Y(),P.current=()=>{P.current=null,e()}}),Q=(0,p.K)(()=>{u&&o&&"css-animation"===F.current&&(K.current=!0)});(0,l.g)(()=>{O&&"starting"!==w&&M(!1)},[O,w]),a.useEffect(()=>()=>{Q(),Y()},[Q,Y]),(0,l.g)(()=>{let e=C.current;if(!e)return;!u&&P.current&&Y();let t=function(e,t=!1){let n=(0,b.zk)(e).getComputedStyle(e),r=(n.animationName.split(",").map(e=>e.trim()).some(e=>""!==e&&"none"!==e)||t)&&k(n.animationDuration),a=k(n.transitionDuration);return r&&a||a?"css-transition":r?"css-animation":"none"}(e,U);if(F.current=t,u&&"idle"===w&&A.current&&"css-animation"===t){j.current=N(e);return}if(u&&"starting"===w){let n=I.current;if(I.current=!1,"none"===t){H(N(e)),M(!0);return}if("css-transition"===t){let t=function(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};function n(){Object.entries(t).forEach(([t,n])=>{""===n?e.style.removeProperty(t):e.style.setProperty(t,n)})}Object.keys(t).forEach(t=>{e.style.setProperty(t,"initial","important")});let r=f.K.request(n);return()=>{f.K.cancel(r),n()}}(e);return H(N(e)),n&&($(S(e,"transition-duration","0s")),M(!0)),t}if("css-animation"===t){if(H(N(e)),!n)return void S(e,"animation-name","none")();let t=S(e,"animation-name","none"),r=S(e,"animation-duration","0s");return t(),$(r),M(!0),void 0}}if(!u&&o&&("idle"===w||"starting"===w)){if(A.current=!1,K.current=!1,"none"===t){H(E,!1),x(!1);return}H(N(e));return}if("ending"!==w)return;if("none"===t)return void x(!1);let n=N(e);(n.height??0)>0||(n.width??0)>0?(H(n),"css-animation"===t&&S(e,"animation-name","none")()):x(!1)},[o,u,Y,H,x,$,U,w]),(0,g.v)({enabled:u&&o&&"idle"===T,open:!0,ref:C,onComplete(){u&&H(E,!1)}}),a.useEffect(()=>{if(u||!o||"ending"!==T||!C.current)return;let e=new AbortController,t=-1;function n(){D.current.open||(x(!1),H(E,!1))}return t=f.K.request(()=>{e.signal.aborted||J(n,e.signal)}),()=>{f.K.cancel(t),e.abort()}},[D,o,u,T,J,H,x]),(0,l.g)(()=>{let e=C.current;e&&n&&L&&e.setAttribute("hidden","until-found")},[L,n]),a.useEffect(function(){let e=C.current;if(e)return(0,c.q)(e,"beforematch",function(e){let t=(0,y.d)("none",e);s(!0,t),t.isCanceled||(I.current=!0,_(!0))})},[s,_]);let W=i||n||o||u;return{height:B.height,props:{...G?{[h.k.startingStyle]:""}:void 0,hidden:L,id:r},ref:q,shouldPreventOpenAnimation:U,shouldRender:W,transitionStatus:T,width:B.width}}({externalRef:t,hiddenUntilFound:r??!1,id:A,keepMounted:_??!1,mounted:V,onOpenChange:j,open:I,setMounted:K,setOpen:M,transitionStatus:q}),H={...P,transitionStatus:B},Y=(0,i.m)(F,H),$=(0,o.o)("div",{...e,style:void 0},{state:H,ref:L,props:[J,{style:{[x.collapsiblePanelHeight]:void 0===D?"auto":`${D}px`,[x.collapsiblePanelWidth]:void 0===G?"auto":`${G}px`}},R,Y?{style:Y}:void 0,T?{style:{animationName:"none"}}:void 0],stateAttributesMapping:u.d});return U?$:null})},3919(e,t,n){var r,a=n(9755);let l=((r={}).open="data-open",r.closed="data-closed",r[r.startingStyle=a.T.startingStyle]="startingStyle",r[r.endingStyle=a.T.endingStyle]="endingStyle",r);n.d(t,{k:()=>l})},6922(e,t,n){n.d(t,{N:()=>m});var r=n(4041),a=n(8339),l=n(1824),i=n(6261),o=n(5576),s=n(4594),u=n(476),c=n(6517),d=n(315),f=n(7007),p=n(1085);let m=r.forwardRef(function(e,t){let{render:n,className:m,defaultOpen:b=!1,disabled:y=!1,onOpenChange:g,open:v,style:h,...E}=e,N=(0,a.K)(g),k=function(e){let{open:t,defaultOpen:n,onOpenChange:l,disabled:d}=e,[f,p]=(0,i.q)({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:m,setMounted:b,transitionStatus:y}=(0,c.$)(f,!0,!0),g=(0,o.e)(),[v,h]=r.useState(),E=v??g,N=(0,a.K)(e=>{let t=!f,n=(0,s.d)(u.Ui,e.nativeEvent);l(t,n),n.isCanceled||p(t)});return r.useMemo(()=>({disabled:d,handleTrigger:N,mounted:m,open:f,panelId:E,setMounted:b,setOpen:p,setPanelIdState:h,transitionStatus:y}),[d,N,m,f,E,b,p,h,y])}({open:v,defaultOpen:b,onOpenChange:N,disabled:y}),S=r.useMemo(()=>({open:k.open,disabled:k.disabled,transitionStatus:k.transitionStatus}),[k.open,k.disabled,k.transitionStatus]),x=r.useMemo(()=>({...k,onOpenChange:N,state:S}),[k,N,S]),_=(0,l.o)("div",e,{state:S,ref:t,props:E,stateAttributesMapping:f.d});return(0,p.jsx)(d.k.Provider,{value:x,children:_})})},315(e,t,n){var r=n(1496),a=n(4041);let l=a.createContext(void 0);function i(){let e=a.useContext(l);if(void 0===e)throw Error((0,r.A)(15));return e}n.d(t,{f:()=>i},{k:l})},7007(e,t,n){n.d(t,{d:()=>i});var r=n(3919);let a={[r.k.open]:""},l={[r.k.closed]:""},i={open:e=>e?a:l,...n(9755).G}},6261(e,t,n){var r=n(4041);function a({controlled:e,default:t,name:n,state:l="value"}){let{current:i}=r.useRef(void 0!==e),[o,s]=r.useState(t),u=r.useCallback(e=>{i||s(e)},[]);return[i?e:o,u]}n.d(t,{q:()=>a})},5886(e,t,n){var r=n(4780);function a(e,...t){let n=r.w.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}n.d(t,{x:()=>a})},4780(e,t,n){n.d(t,{w:()=>a});let r=Symbol.for("constructDateFrom");function a(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r in e?e[r](t):e instanceof Date?new e.constructor(t):new Date(t)}},2233(e,t,n){var r=n(8494);function a(e,t){return(0,r.a)(e)-(0,r.a)(t)}n.d(t,{b:()=>a})},5944(e,t,n){var r=n(5886);function a(e,t,n){let[a,l]=(0,r.x)(n?.in,e,t);return a.getFullYear()===l.getFullYear()}n.d(t,{s:()=>a})},4934(e,t,n){n.d(t,{c:()=>o});var r=n(4780),a=n(5886),l=n(8494);function i(e,t){let n=(0,l.a)(e,t?.in);return n.setHours(0,0,0,0),n}function o(e,t){var n;return function(e,t){let[n,r]=(0,a.x)(void 0,e,t);return+i(n)==+i(r)}((0,r.w)(t?.in||e,e),(n=t?.in||e,(0,r.w)(n,Date.now())))}},8494(e,t,n){var r=n(4780);function a(e,t){return(0,r.w)(t||e,e)}n.d(t,{a:()=>a})},6506(e,t,n){n.d(t,{Ak:()=>r});let r=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[814],{776(e,t,r){var i=r(1085),a=r(6134),n=r(6174),l=r(4313),o=r(8486),s=r(9344),d=r(2e3),u=r(8116),c=r(4357);r(4041);var m=r(3751),h=r(1566),b=r(1447);r.d(t,{},{a:e=>{let{open:t,title:r,onClose:f,children:g,width:E,actionButton:p}=e,{t:v}=(0,m.Bd)();return(0,i.jsx)(a.D,{open:t,modal:!0,onOpenChange:e=>{e||f()},children:(0,i.jsxs)(n.Z,{children:[(0,i.jsx)(l.X,{className:b.A.overlay}),(0,i.jsx)("div",{className:b.A.contentWrapper,children:(0,i.jsxs)(o.h,{className:(0,c.A)(b.A.content,b.A[E||""]),children:[!!r&&(0,i.jsx)(s.L,{children:r}),(0,i.jsx)(d.r,{render:(0,i.jsx)("div",{className:b.A.description}),children:g}),(0,i.jsxs)("div",{className:b.A.actions,children:[p,(0,i.jsx)(u.H,{render:(0,i.jsx)(h.$,{theme:"basic",children:v("MODAL.CLOSE_BTN")})})]})]})})]})})}})},4741(e,t,r){r.d(t,{RedisStatsModal:()=>E});var i=r(1085),a=r(6772);let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],l=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],o=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],s=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],d=(e,t,r)=>{let i=e;return"string"==typeof t||Array.isArray(t)?i=e.toLocaleString(t,r):(!0===t||void 0!==r)&&(i=e.toLocaleString(void 0,r)),i},u=e=>{if("number"==typeof e)return Math.log10(e);let t=e.toString(10);return t.length+Math.log10(`0.${t.slice(0,15)}`)},c=(e,t)=>{if(void 0===t)return e;if("number"!=typeof t||!Number.isSafeInteger(t)||t<0)throw TypeError(`Expected fixedWidth to be a non-negative integer, got ${typeof t}: ${t}`);return 0===t?e:e.length<t?e.padStart(t," "):e};function m(e,t){let r;if("bigint"!=typeof e&&!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);let i=(t={bits:!1,binary:!1,space:!0,nonBreakingSpace:!1,...t}).bits?t.binary?s:o:t.binary?l:n,a=t.space?t.nonBreakingSpace?" ":" ":"",m="number"==typeof e?0===e:0n===e;if(t.signed&&m)return c(` 0${a}${i[0]}`,t.fixedWidth);let h=e<0,b=h?"-":t.signed?"+":"";h&&(e=-e);let f=(e=>{let{minimumFractionDigits:t,maximumFractionDigits:r}=e;if(void 0!==t||void 0!==r)return{...void 0!==t&&{minimumFractionDigits:t},...void 0!==r&&{maximumFractionDigits:r},roundingMode:"trunc"}})(t);if(e<1)r=b+d(e,t.locale,f)+a+i[0];else{var g;let n=Math.min(Math.floor(t.binary?("number"==typeof(g=e)?Math.log(g):u(g)*Math.log(10))/Math.log(1024):u(e)/3),i.length-1);if(e=((e,t)=>{if("number"==typeof e)return e/t;let r=e/BigInt(t),i=e%BigInt(t);return Number(r)+Number(i)/t})(e,(t.binary?1024:1e3)**n),!f){let t=Math.max(3,Math.floor(e).toString().length);e=e.toPrecision(t)}r=b+d(Number(e),t.locale,f)+a+i[n]}return c(r,t.fixedWidth)}var h=r(3751),b=r(5193),f=r(1008),g=r(776);let E=e=>{var t,r;let{open:n,onClose:l}=e,{t:o,i18n:s}=(0,h.Bd)(),d=(0,f.g)(),{data:u}=(0,a.I)({queryKey:b.l.redisStats,queryFn:()=>d.getStats(),enabled:n,refetchInterval:5e3});if(!u)return null;let c=[{title:o("REDIS.MEMORY_USAGE"),value:(0,i.jsxs)(i.Fragment,{children:[u.memory.total&&u.memory.used?(0,i.jsxs)("small",{children:[m(u.memory.used)," of ",m(u.memory.total)]}):(0,i.jsx)("small",{className:"error",children:o("REDIS.ERROR.MEMORY_USAGE")}),(t=u.memory.used,r=u.memory.total,void 0===t?"-":void 0===r?m(t):`${(t/r*100).toFixed(2)}%`)]})},{title:o("REDIS.PEEK_MEMORY"),value:m(u.memory.peak)},{title:o("REDIS.FRAGMENTATION_RATIO"),value:u.memory.fragmentationRatio},{title:o("REDIS.CONNECTED_CLIENTS"),value:u.clients.connected},{title:o("REDIS.BLOCKED_CLIENTS"),value:u.clients.blocked},{title:o("REDIS.VERSION"),value:u.version},{title:o("REDIS.MODE"),value:u.mode},{title:o("REDIS.OS"),value:u.os},{title:o("REDIS.UP_TIME"),value:(()=>{let e=new Intl.RelativeTimeFormat(s.language,{numeric:"auto"}),t=u.uptime;if(t<60)return e.format(-Math.round(t),"second").replace(/ ago$/,"");let r=t/60;if(r<60)return e.format(-Math.round(r),"minute").replace(/ ago$/,"");let i=r/60;return i<24?e.format(-Math.round(i),"hour").replace(/ ago$/,""):e.format(-Math.round(i/24),"day").replace(/ ago$/,"")})()}];return(0,i.jsx)(g.a,{width:"small",open:n,onClose:l,title:o("REDIS.TITLE"),children:(0,i.jsx)("ul",{className:"redisStats-bLzaEu",children:c.map((e,t)=>(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{children:e.title}),(0,i.jsx)("span",{children:e.value})]},t))})})}},6134(e,t,r){var i=r(4041),a=r(9407),n=r(4781);function l(e){let t=i.useContext(a.Ts)?"drawer":"dialog";return(0,n.G)(e,t)}r.d(t,{D:()=>l})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[847],{4226(e,r,n){var l=n(1085),s=n(4041),a=n(3751),c=n(5170),t=n(1566),i=n(2821),d=n(776);n.d(r,{},{ConcurrencyModal:e=>{let{open:r,onClose:n,queue:o}=e,{actions:u}=(0,c.A)(),{t:h}=(0,a.Bd)(),[C,m]=(0,s.useState)(null!=o.globalConcurrency?String(o.globalConcurrency):""),x=async e=>{e.preventDefault();let r=""===C?0:parseInt(C,10);isNaN(r)||r<0||(await u.setGlobalConcurrency(o.name,r)(),n())};return(0,l.jsx)(d.a,{width:"small",open:r,onClose:n,title:h("CONCURRENCY.TITLE"),actionButton:(0,l.jsx)(t.$,{type:"submit",theme:"primary",form:"concurrency-form",children:h("CONCURRENCY.SAVE")}),children:(0,l.jsxs)("form",{id:"concurrency-form",onSubmit:x,children:[(0,l.jsx)("p",{children:h("CONCURRENCY.DESCRIPTION")}),(0,l.jsx)(i.F,{label:h("CONCURRENCY.CONCURRENCY"),id:"concurrency",name:"concurrency",type:"number",min:0,value:C,onChange:e=>m(e.target.value)})]})})}})},5606(e,r,n){n.d(r,{D:()=>a});var l=n(1085),s=n(4357);let a=e=>{let{label:r,id:n,inline:a,description:c,children:t}=e;return(0,l.jsxs)("div",{className:(0,s.A)("field-JbAWJt",{"inline-vXG0Za":a}),children:[!!r&&!a&&(0,l.jsx)("label",{htmlFor:n,children:r}),t,!!r&&a&&(0,l.jsx)("label",{htmlFor:n,children:r}),!!c&&(0,l.jsx)("span",{className:"description-XLaDVy",children:c})]})}},2821(e,r,n){var l=n(1085),s=n(5606);n.d(r,{},{F:e=>{let{label:r,id:n,...a}=e;return(0,l.jsx)(s.D,{label:r,id:n,children:(0,l.jsx)("input",{id:n,type:"text",...a})})}})},776(e,r,n){var l=n(1085),s=n(6134),a=n(6174),c=n(4313),t=n(8486),i=n(9344),d=n(2e3),o=n(8116),u=n(4357);n(4041);var h=n(3751),C=n(1566),m=n(1447);n.d(r,{},{a:e=>{let{open:r,title:n,onClose:x,children:j,width:N,actionButton:p}=e,{t:b}=(0,h.Bd)();return(0,l.jsx)(s.D,{open:r,modal:!0,onOpenChange:e=>{e||x()},children:(0,l.jsxs)(a.Z,{children:[(0,l.jsx)(c.X,{className:m.A.overlay}),(0,l.jsx)("div",{className:m.A.contentWrapper,children:(0,l.jsxs)(t.h,{className:(0,u.A)(m.A.content,m.A[N||""]),children:[!!n&&(0,l.jsx)(i.L,{children:n}),(0,l.jsx)(d.r,{render:(0,l.jsx)("div",{className:m.A.description}),children:j}),(0,l.jsxs)("div",{className:m.A.actions,children:[p,(0,l.jsx)(o.H,{render:(0,l.jsx)(C.$,{theme:"basic",children:b("MODAL.CLOSE_BTN")})})]})]})})]})})}})},6134(e,r,n){var l=n(4041),s=n(9407),a=n(4781);function c(e){let r=l.useContext(s.Ts)?"drawer":"dialog";return(0,a.G)(e,r)}n.d(r,{D:()=>c})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[
|
|
1
|
+
"use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[940],{8019(e,s,a){a.d(s,{JobPage:()=>P});var l=a(1085),n=a(4357),r=a(4041),t=a(3751),i=a(6090),o=a(3664),d=a(9078),c=a(3262),u=a(3960),m=a(6772),h=a(5193),j=a(6930),p=a(1008),b=a(2815),x=a(5457),N=a(6937),g=a(5536),f=a(1775),J="stateDefault-EaXrtU";let w=e=>{let{progress:s}=e;return(0,l.jsx)("div",{className:"progressBar-HnXJw9",children:(0,l.jsx)("div",{className:"progressFill-_0rszU",style:{width:`${s}%`}})})},y=e=>{let{node:s,jobId:a,queueName:r,selectedStatuses:t}=e,i=s.id===a,d=function(e){if("number"==typeof e&&Number.isFinite(e))return e;if("object"==typeof e&&null!==e&&"progress"in e){let s=e.progress;if("number"==typeof s&&Number.isFinite(s))return s}return null}(s.progress);return(0,l.jsxs)("li",{className:"nodeWrapper-XhiHsk",children:[(0,l.jsx)(o.N_,{to:N.y.jobPage(r,String(s.id),t),className:(0,n.A)("nodeCard-F2e6fs",{completed:"stateCompleted-I8Ksq8",failed:"stateFailed-CrXGqF",delayed:"stateDelayed-OdrXw9",active:"stateActive-B8FXld",waiting:"stateWaiting-gHocVQ","waiting-children":"stateWaitingChildren-iUS_O3",paused:"statePaused-Hvm6H5",prioritized:"statePrioritized-DjDX5Y",unknown:J}[s.state]||J,i&&"highlighted-KIboOF"),children:(0,l.jsxs)("div",{className:"nodeInfo-XUUjz9",children:[(0,l.jsxs)("div",{className:"nodeHeader-Z5a8HZ",children:[(0,l.jsxs)("div",{className:"nodeName-zbm3am",children:[(0,l.jsx)("h4",{className:"jobName-ebOKgp",children:s.name??s.id}),(0,l.jsxs)("span",{className:"jobId-CFAXeY",children:["(",String(s.id).slice(0,8),"...)"]})]}),(0,l.jsx)("span",{className:"stateBadge-DQ_psX",children:s.state})]}),(0,l.jsxs)("div",{className:"nodeFooter-klA8zl",children:[(0,l.jsx)("span",{className:"queueLabel-KyHgPP",children:s.queueName}),null!==d&&(0,l.jsxs)("div",{className:"progressGroup-gXqNnN",children:[(0,l.jsx)(w,{progress:d}),(0,l.jsxs)("span",{className:"progressText-yh5fXa",children:[d,"%"]})]})]})]})}),!!s.children&&s.children.length>0&&(0,l.jsx)("ul",{className:"childrenWrapper-QNJ52n",children:s.children.map(e=>(0,l.jsx)(y,{node:e,jobId:a,queueName:e.queueName,selectedStatuses:t},e.id))})]})},v=()=>{let{flow:e,loading:s,error:a}=function(){let e=(0,p.g)(),s=(0,j._)(),a=(0,u.W)(),{pollingInterval:l}=(0,b.C)(e=>{let{pollingInterval:s}=e;return{pollingInterval:s}}),{data:n,isPending:r,error:t}=(0,m.I)({queryKey:h.l.jobFlow(s,a),queryFn:()=>e.getJobFlow(s,a),enabled:!!a,refetchInterval:l>0&&1e3*l});return{flow:n??null,loading:r,error:t?t.message:null}}(),r=(0,u.W)(),t=(0,x.z)();return s?(0,l.jsx)("div",{className:"loadingContainer-h_pKR1",children:(0,l.jsxs)("div",{className:"loadingContent-aGf5AY",children:[(0,l.jsx)("div",{className:"spinner-M2mtPn"}),(0,l.jsx)("p",{className:"loadingText-iV0nLX",children:"Loading flow tree..."})]})}):a?(0,l.jsxs)("div",{className:"errorContainer-ITGUK7",children:[(0,l.jsx)("h3",{className:"errorTitle-C7_btI",children:"Error loading flow tree"}),(0,l.jsx)("p",{className:"errorMessage-PTbl6j",children:a})]}):e&&e.isFlowNode&&e.flowRoot?(0,l.jsxs)(g.Z,{className:(0,n.A)(f.A.card,"jobFlowCard-Y7apDE"),children:[(0,l.jsx)("div",{className:f.A.header,children:(0,l.jsx)("div",{className:f.A.titleWithLink,children:(0,l.jsx)("h4",{children:"Job Flow"})})}),(0,l.jsx)("div",{className:"content-VEkWB4",children:(0,l.jsx)("div",{className:"treeContainer-g3cKYC",children:(0,l.jsx)("ul",{className:"treeRoot-wCwzlC",children:(0,l.jsx)(y,{node:e.flowRoot,jobId:r,queueName:e.flowRoot.queueName,selectedStatuses:t})})})})]}):null};var C=a(5543),F=a(4766),_=a(4393),q=a(5835),A=a(7725),D=a(4205);let O=r.lazy(()=>Promise.all([a.e(661),a.e(524)]).then(a.bind(a,9063)).then(e=>{let{AddJobModal:s}=e;return{default:s}})),X=r.lazy(()=>Promise.all([a.e(661),a.e(177)]).then(a.bind(a,8216)).then(e=>{let{UpdateJobDataModal:s}=e;return{default:s}})),P=()=>{let{t:e}=(0,t.Bd)(),s=(0,i.W6)(),a=(0,_.h)(),{job:u,status:m,actions:h,loading:j,isTransitioning:p}=(0,q.J)(),b=(0,x.z)(),g=(0,A.h)();if(!a)return(0,l.jsx)("section",{children:e("QUEUE.NOT_FOUND")});if(!u)return(0,l.jsx)("section",{children:j?(0,l.jsx)(C.a,{}):e("JOB.NOT_FOUND")});let f=async()=>{await h.cleanJob(a.name)(u)(),s.replace(N.y.queuePage(a.name,b))};return(0,l.jsxs)("section",{children:[(0,l.jsx)(F.V,{actions:(0,l.jsxs)(o.N_,{className:(0,n.A)(D.A.button,D.A.default),to:N.y.queuePage(a.name,b),style:{display:"inline-flex",alignItems:"center",gap:"0.4em"},children:[(0,l.jsx)(d.A,{}),a.name]})}),p?(0,l.jsx)(C.a,{}):(0,l.jsx)(c.o,{job:u,status:m,actions:{cleanJob:f,promoteJob:h.promoteJob(a.name)(u),retryJob:h.retryJob(a.name)(u),getJobLogs:h.getJobLogs(a.name)(u),updateJobData:()=>g.open("updateJobData"),duplicateJob:()=>g.open("addJob")},readOnlyMode:a.readOnlyMode,allowRetries:(u.isFailed||a.allowCompletedRetries)&&a.allowRetries},u.id),(0,l.jsx)(v,{}),(0,l.jsxs)(r.Suspense,{fallback:null,children:[g.isMounted("addJob")&&(0,l.jsx)(O,{open:g.isOpen("addJob"),onClose:g.close("addJob"),job:u}),g.isMounted("updateJobData")&&(0,l.jsx)(X,{open:g.isOpen("updateJobData"),onClose:g.close("updateJobData"),job:u})]})]})}}}]);
|
package/dist/static/js/async/{highlight-worker.e55f556eca.js → highlight-worker.de1e31a2dc.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,r,t,n={
|
|
1
|
+
(()=>{"use strict";var e,r,t,n={6840(e,r,t){var n=t(1896),s=t(5109);n.A.registerLanguage("json",s.A),n.A.registerLanguage("stacktrace",function(){let e={className:"number",begin:":\\d+:\\d+",relevance:5};return{case_insensitive:!0,contains:[{className:"type",begin:/^\w*Error:\s*/,relevance:40,contains:[{className:"title",begin:/.*/,end:/$/,excludeStart:!0,endsWithParent:!0}]},{className:"trace-line",begin:/^\s*at/,end:/$/,keywords:"at as async prototype anonymous function",contains:[{className:"code-path",begin:/\(/,end:/\)$/,excludeEnd:!0,excludeBegin:!0,contains:[e]}]},e]}});let a=n.A;self.onmessage=e=>{let{data:r={}}=e,{id:t="",code:n="",language:s=""}=r;if(!t||!n||!s)return;let i=a.highlightAuto(n,[s]);self.postMessage({code:i.value,id:t})}}},s={};function a(e){var r=s[e];if(void 0!==r)return r.exports;var t=s[e]={exports:{}};return n[e](t,t.exports,a),t.exports}a.m=n,a.x=()=>{var e=a.O(void 0,["833"],()=>a(6840));return a.O(e)},a.d=(e,r,t)=>{var n=(r,t)=>{for(var n in r)a.o(r,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[t]:r[n]})};n(r,"get"),n(t,"value")},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((r,t)=>(a.f[t](e,r),r),[])),a.u=e=>"static/js/async/"+e+".e08c6d7001.js",a.miniCssF=e=>""+e+".css",a.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i=[],a.O=(e,r,t,n)=>{if(r){n=n||0;for(var s=i.length;s>0&&i[s-1][2]>n;s--)i[s]=i[s-1];i[s]=[r,t,n];return}for(var o=1/0,s=0;s<i.length;s++){for(var[r,t,n]=i[s],c=!0,l=0;l<r.length;l++)(!1&n||o>=n)&&Object.keys(a.O).every(e=>a.O[e](r[l]))?r.splice(l--,1):(c=!1,n<o&&(o=n));if(c){i.splice(s--,1);var u=t();void 0!==u&&(e=u)}}return e},o=a.x,a.x=()=>a.e(833).then(o),a.g.importScripts&&(c=a.g.location+"");var i,o,c,l=a.g.document;if(!c&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(c=l.currentScript.src),!c)){var u=l.getElementsByTagName("script");if(u.length)for(var p=u.length-1;p>-1&&(!c||!/^http(s?):/.test(c));)c=u[p--].src}if(!c)throw Error("Automatic publicPath is not supported in this browser");a.p=(c=c.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../../",e={697:1},t=(r=self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push.bind(r),r.push=r=>{var[n,s,i]=r;for(var o in s)a.o(s,o)&&(a.m[o]=s[o]);for(i&&i(a);n.length;)e[n.pop()]=1;t(r)},a.f.i=(r,t)=>{e[r]||importScripts(a.p+a.u(r))},a.x()})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).push([[334],{9721(e,n,a){var s=a(1896),t=a(5109),c=a(82);s.A.registerLanguage("json",t.A),s.A.registerLanguage("stacktrace",c.F);let i=s.A;a.d(n,{},{highlighter:i})},82(e,n,a){function s(){let e={className:"number",begin:":\\d+:\\d+",relevance:5};return{case_insensitive:!0,contains:[{className:"type",begin:/^\w*Error:\s*/,relevance:40,contains:[{className:"title",begin:/.*/,end:/$/,excludeStart:!0,endsWithParent:!0}]},{className:"trace-line",begin:/^\s*at/,end:/$/,keywords:"at as async prototype anonymous function",contains:[{className:"code-path",begin:/\(/,end:/\)$/,excludeEnd:!0,excludeBegin:!0,contains:[e]}]},e]}}a.d(n,{F:()=>s})}}]);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
(()=>{"use strict";var e,t,n,r,s={4205(e,t){t.A={button:"button-_OwfoN",compact:"compact-lNzuyE",default:"default-RX9iQN",isActive:"isActive-YRKOr3",basic:"basic-JStFeT",primary:"primary-BOdHls"}},1447(e,t){t.A={overlay:"overlay-Oc9X8l",fadeIn:"fadeIn-x_BHvZ",fadeOut:"fadeOut-Iksjn0",content:"content-r7AO42",contentWrapper:"contentWrapper-LDyZUz",slideUp:"slideUp-hvFvMD",slideDown:"slideDown-m0eicZ",wide:"wide-FvqBMf",medium:"medium-tryiH8",small:"small-hsjGGL",actions:"actions-zULM0J",description:"description-ZXMou7"}},2299(e,t){t.f=void 0,t.f={latest:"latest",active:"active",waiting:"waiting",waitingChildren:"waiting-children",prioritized:"prioritized",completed:"completed",failed:"failed",delayed:"delayed",paused:"paused"}},1566(e,t,n){var r=n(1085),s=n(4357),a=n(4041),l=n(4205);let o=a.forwardRef((e,t)=>{let{children:n,className:a,isActive:o=!1,theme:i="default",compact:c,...u}=e;return(0,r.jsx)("button",{type:"button",ref:t,...u,className:(0,s.A)(a,l.A.button,l.A[i],{[l.A.isActive]:o,[l.A.compact]:c}),children:n})});n.d(t,{},{$:o})},2130(e,t,n){n.d(t,{p:()=>l});var r=n(1085),s=n(406),a=n(4357);let l=n(4041).forwardRef((e,t)=>{let{className:n,...l}=e;return(0,r.jsx)(s._,{...l,ref:t,className:(0,a.A)("content-ECXbDF",n)})})},3983(e,t,n){var r=n(1085);n.d(t,{},{y:e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:t,children:(0,r.jsx)("path",{d:"M207.029 381.476 12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"})})}})},7235(e,t,n){var r=n(1085);n.d(t,{},{P:()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,r.jsx)("path",{d:"M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"})})})},5543(e,t,n){n.d(t,{a:()=>a});var r=n(1085),s=n(3751);let a=()=>{let{t:e}=(0,s.Bd)();return(0,r.jsxs)("div",{className:"loader-_0mP07",children:[e("LOADING"),(0,r.jsxs)("span",{className:"dots-A9dHQP",children:[(0,r.jsx)("span",{}),(0,r.jsx)("span",{}),(0,r.jsx)("span",{})]})]})}},2675(e,t,n){n.d(t,{},{e:["en-US","en-GB","da-DK","de-DE","es-ES","fr-FR","ja-JP","ko-KR","pt-BR","tr-TR","zh-CN"]})},5193(e,t,n){n.d(t,{},{l:{queues:{all:["queues"],list:e=>["queues",e]},job:(e,t)=>["job",e,t],jobFlow:(e,t)=>["jobFlow",e,t],metrics:e=>["metrics",e],redisStats:["redisStats"]}})},4393(e,t,n){var r=n(6930),s=n(5170);function a(){let{queues:e}=(0,s.A)(),t=(0,r._)();return e&&e.find(e=>e.name===t)||null}n.d(t,{h:()=>a})},6930(e,t,n){var r=n(6090);function s(){let{pathname:e}=(0,r.zy)(),t=(0,r.B6)(e,{path:["/queue/:name","/queue/:name/:jobId"],exact:!1,strict:!1});return decodeURIComponent(t?.params.name||"")}n.d(t,{_:()=>s})},1008(e,t,n){var r=n(4041);let s=r.createContext(null);function a(){return(0,r.useContext)(s)}n.d(t,{g:()=>a},{_:s})},7012(e,t,n){var r=n(3751);let s=(0,n(4586).vt)(e=>({opts:null,promise:null,setState:t=>e(()=>({...t}))}));function a(){let{t:e}=(0,r.Bd)(),{promise:t,opts:n,setState:a}=s(e=>e);return{confirmProps:{open:!!t,title:n?.title||e("CONFIRM.DEFAULT_TITLE"),description:n?.description||"",onCancel:function(){a({opts:{title:n?.title,description:n?.description},promise:null}),t?.reject()},onConfirm:function(){a({opts:{title:n?.title,description:n?.description},promise:null}),t?.resolve(void 0)}},openConfirm:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((t,n)=>{a({promise:{resolve:t,reject:n},opts:e})})}}}n.d(t,{S:()=>a})},1464(e,t,n){var r=n(4586),s=n(8267);function a(e){return(0,r.vt)()((0,s.Zr)((e,t)=>({state:{},toggleMenu:t=>e(e=>{let{state:n}=e;return{state:{...n,[t]:!(n[t]??!0)}}}),isMenuOpen:function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t().state[e]??n},expandAll:t=>e(e=>{let{state:n}=e;return{state:{...n,...Object.fromEntries(t.map(e=>[e,!0]))}}}),collapseAll:t=>e(e=>{let{state:n}=e;return{state:{...n,...Object.fromEntries(t.map(e=>[e,!1]))}}})}),{name:e}))}let l=a("bull-board:menu-state"),o=a("bull-board:overview-state");n.d(t,{},{EH:l,qm:o})},8789(e,t,n){n.d(t,{I:()=>o});var r=n(4041);let s="u">typeof window?r.useLayoutEffect:r.useEffect,a="u"<typeof window,l=function(e){let{defaultValue:t=!1,initializeWithValue:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=e=>a?t:window.matchMedia(e).matches,[o,i]=(0,r.useState)(()=>n?l(e):t);function c(){i(l(e))}return s(()=>{let t=window.matchMedia(e);return c(),t.addListener?t.addListener(c):t.addEventListener("change",c),()=>{t.removeListener?t.removeListener(c):t.removeEventListener("change",c)}},[e]),o};function o(){return l("(max-width: 768px)")}},7725(e,t,n){var r=n(4041);function s(){let[e,t]=(0,r.useState)(null);return{isOpen:t=>e===t,isMounted:t=>[t,`${t}Closing`].includes(e),open(e){t(e)},close:e=>()=>{t(`${e}Closing`),setTimeout(()=>t(null),300)}}}n.d(t,{h:()=>s})},3115(e,t,n){let r=(0,n(4586).vt)(e=>({searchTerm:"",setSearchTerm:t=>e({searchTerm:t})}));n.d(t,{},{b:r})},5170(e,t,n){var r=n(3402),s=n(6772),a=n(4181),l=n(3751),o=n(4015),i=n(5193),c=n(6930),u=n(1008),d=n(7012),h=n(8848),m=n(5457),p=n(2815);function f(){let{page:e}=(0,h.o)(),{t}=(0,l.Bd)(),n=(0,u.g)(),f=(0,r.jE)(),g=(0,c._)(),v=(0,m.z)(),{pollingInterval:x,jobsPerPage:b,confirmQueueActions:j}=(0,p.C)(e=>{let{pollingInterval:t,jobsPerPage:n,confirmQueueActions:r}=e;return{pollingInterval:t,jobsPerPage:n,confirmQueueActions:r}}),{openConfirm:C}=(0,d.S)(),N=g?v[g]:void 0,y={activeQueue:g||void 0,status:N,page:e,jobsPerPage:b},{data:E,isPending:w,isFetching:A,isPlaceholderData:U}=(0,s.I)({queryKey:i.l.queues.list(y),queryFn:()=>n.getQueues(y),refetchInterval:x>0&&1e3*x,placeholderData:a.rX,select:e=>e.queues.map(e=>e.displayName?e:{...e,displayName:e.name})}),I=()=>f.invalidateQueries({queryKey:i.l.queues.all}),O=(0,o.A)(I,C);return{queues:E??null,loading:w,fetching:A,isTransitioning:U,actions:{pauseAll:O(()=>n.pauseAllQueues(),t("QUEUE.ACTIONS.CONFIRM.PAUSE_ALL"),j),resumeAll:O(()=>n.resumeAllQueues(),t("QUEUE.ACTIONS.CONFIRM.RESUME_ALL"),j),updateQueues:I,retryAll:(e,r)=>O(()=>n.retryAll(e,r),t("QUEUE.ACTIONS.CONFIRM.RETRY_ALL",{status:r}),j),promoteAll:e=>O(()=>n.promoteAll(e),t("QUEUE.ACTIONS.CONFIRM.PROMOTE_ALL"),j),cleanAll:(e,r)=>O(()=>n.cleanAll(e,r),t("QUEUE.ACTIONS.CONFIRM.CLEAN_ALL",{status:r}),j),pauseQueue:e=>O(()=>n.pauseQueue(e),t("QUEUE.ACTIONS.CONFIRM.PAUSE_QUEUE"),j),resumeQueue:e=>O(()=>n.resumeQueue(e),t("QUEUE.ACTIONS.CONFIRM.RESUME_QUEUE"),j),pauseQueues:e=>O(()=>Promise.all(e.map(e=>n.pauseQueue(e))),t("QUEUE.ACTIONS.CONFIRM.PAUSE_GROUP",{count:e.length}),j),resumeQueues:e=>O(()=>Promise.all(e.map(e=>n.resumeQueue(e))),t("QUEUE.ACTIONS.CONFIRM.RESUME_GROUP",{count:e.length}),j),emptyQueue:e=>O(()=>n.emptyQueue(e),t("QUEUE.ACTIONS.CONFIRM.EMPTY_QUEUE"),j),obliterateQueue:e=>O(()=>n.obliterateQueue(e),t("QUEUE.ACTIONS.CONFIRM.OBLITERATE_QUEUE"),!0),addJob:(e,t,r,s)=>O(()=>n.addJob(e,t,r,s),"",!1),setGlobalConcurrency:(e,t)=>O(()=>n.setGlobalConcurrency(e,t),"",!1)}}}n.d(t,{A:()=>f})},8848(e,t,n){var r=n(2299),s=n(6090);let a=new Set(Object.values(r.f));function l(e){return e&&a.has(e)?e:null}function o(){let e=new URLSearchParams((0,s.zy)().search);return{status:l(e.get("status")),page:e.get("page")||"1",raw:e}}n.d(t,{i:()=>l,o:()=>o})},5457(e,t,n){var r=n(2299),s=n(4041),a=n(6090),l=n(6930),o=n(8848);function i(e){return(0,o.i)(new URLSearchParams(e).get("status"))??r.f.latest}function c(){let{search:e}=(0,a.zy)(),t=(0,l._)(),[n,r]=(0,s.useState)({[t]:i(e)});return(0,s.useEffect)(()=>{let s=i(e);t&&r({...n,[t]:s})},[e,t]),n}n.d(t,{z:()=>c})},2815(e,t,n){var r=n(4586),s=n(8267);let a=(0,r.vt)()((0,s.Zr)(e=>({language:"",pollingInterval:5,jobsPerPage:10,confirmJobActions:!0,confirmQueueActions:!0,collapseJob:!1,collapseJobData:!1,collapseJobProgress:!1,collapseJobOptions:!1,collapseJobError:!1,defaultCollapseDepth:3,useCollapsibleJson:!0,darkMode:window.matchMedia("(prefers-color-scheme: dark)").matches,defaultJobTab:"Data",sortQueues:!1,sorting:{dashboard:{key:"alphabetical",direction:"asc"}},overview:{},sidebarCollapsed:!1,setSettings:t=>e(()=>t)}),{name:"board-settings"}));n.d(t,{},{C:a})},8962(e,t,n){var r=n(4041);let s=r.createContext(null);function a(){let e=(0,r.useContext)(s);return(0,r.useEffect)(()=>{e?.menu?.width&&document.documentElement.style.setProperty("--menu-width",e.menu.width)},[e?.menu?.width]),e}n.d(t,{_:()=>a},{a:s})},6745(e,t,n){var r=n(1085),s=n(7825),a=n(3402),l=n(5873),o=n(3664),i=n(4041),c=n(6090),u=n(1030),d=n(7225),h=n(6174),m=n(4313),p=n(8486),f=n(9344),g=n(2e3),v=n(8116),x=n(4357),b=n(3751),j=n(1566),C=n(1447);let N=e=>{let{open:t,onConfirm:n,title:s,onCancel:a,description:l}=e,{t:o}=(0,b.Bd)();return(0,r.jsx)(d.V,{open:t,onOpenChange:e=>{e||a()},children:(0,r.jsxs)(h.Z,{children:[(0,r.jsx)(m.X,{className:C.A.overlay}),(0,r.jsx)(p.h,{className:C.A.contentWrapper,children:(0,r.jsxs)("div",{className:(0,x.A)(C.A.content,"content-NU_w6Y"),children:[!!s&&(0,r.jsx)(f.L,{children:s}),!!l&&(0,r.jsx)(g.r,{className:"description-JZx5tW",children:l}),(0,r.jsxs)("div",{className:C.A.actions,children:[(0,r.jsx)(v.H,{render:(0,r.jsx)(j.$,{theme:"primary",onClick:n,children:o("CONFIRM.CONFIRM_BTN")})}),(0,r.jsx)(v.H,{render:(0,r.jsx)(j.$,{theme:"basic",onClick:a,children:o("CONFIRM.CANCEL_BTN")})})]})]})})]})})};var y=n(8789),E=n(8962),w=n(2033),A=n(93),U=n(5574),I=n(4260),O=n(4052),R=n(601),S=n(6930),L=n(5170),M=n(6937),q=n(2130),_={content:"content-I7Stzc",container:"container-VRLL14",trigger:"trigger-OWDKKr",separator:"separator-JWmkmR",item:"item-ZXhl7W",active:"active-jDxe19",queueName:"queueName-oRtU4Y",queueStats:"queueStats-oVezGL"};let P=()=>{let{t:e}=(0,b.Bd)(),{queues:t}=(0,L.A)(),n=(0,S._)(),s=(0,c.W6)(),a=t?.find(e=>e.name===n),l=a?.name||e("MENU.OVERVIEW");return(0,r.jsxs)(w.i,{children:[(0,r.jsx)(A.c,{className:(0,x.A)("select",_.trigger),children:(0,r.jsx)("span",{className:_.currentQueue,children:l})}),(0,r.jsx)(U.g,{children:(0,r.jsx)(I.y,{sideOffset:5,style:{zIndex:100},children:(0,r.jsxs)(q.p,{className:_.content,children:[(0,r.jsx)(O.D,{className:(0,x.A)(_.item,{[_.active]:!n}),onClick:()=>{s.push("/")},children:e("MENU.OVERVIEW")}),t&&t.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(R.w,{className:_.separator}),t.map(e=>(0,r.jsxs)(O.D,{className:(0,x.A)(_.item,{[_.active]:e.name===n}),onClick:()=>(e=>{let{pathname:t,search:n}=M.y.queuePage(e);s.push({pathname:t,search:n})})(e.name),children:[(0,r.jsx)("span",{className:_.queueName,children:e.name}),e.counts&&(0,r.jsx)("span",{className:_.queueStats,children:Object.values(e.counts).reduce((e,t)=>e+(t||0),0)})]},e.name))]})]})})})]})},k=e=>{let{children:t}=e,n=(0,E._)(),s=(0,y.I)(),a=n.boardLogo?.path??"static/images/logo.svg",l=n.boardTitle??"Bull Dashboard";return(0,r.jsxs)("header",{className:"header-dfryKG",children:[!!n.environment&&(0,r.jsx)("div",{className:"envBadge-pauziY",style:{"--badge-bg":n.environment.color,"--badge-color":n.environment.textColor,"--badge-font-size":n.environment.fontSize},children:n.environment.label}),(0,r.jsxs)(o.k2,{to:"/",className:"logo-DC8O1O",children:[!!a&&(0,r.jsx)("img",{src:a,className:(0,x.A)("img-ggCynO",{"default-jGNV3P":!n.boardLogo}),width:n.boardLogo?.width,height:n.boardLogo?.height,alt:l}),(0,r.jsx)("span",{title:l,children:l})]}),(0,r.jsx)("div",{className:"content-TUwoSi",children:t}),s&&(0,r.jsx)("div",{className:"mobileQueueSelector-f1Dqzo",children:(0,r.jsx)(P,{})})]})};var z=n(7725),$=n(1631);let Q=()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[(0,r.jsx)("path",{fill:"none",d:"M0 0h48v48H0z"}),(0,r.jsx)("path",{d:"M24 10a8 8 0 1 0 8 8 8 8 0 0 0-8-8Zm0 12a4 4 0 1 1 4-4 4 4 0 0 1-4 4Z"}),(0,r.jsx)("path",{d:"M24 2a22 22 0 1 0 22 22A21.9 21.9 0 0 0 24 2ZM11.8 37.2A26.4 26.4 0 0 1 24 34a26.4 26.4 0 0 1 12.2 3.2 17.9 17.9 0 0 1-24.4 0Zm27.1-3.1A30.7 30.7 0 0 0 24 30a30.7 30.7 0 0 0-14.9 4.1A17.7 17.7 0 0 1 6 24a18 18 0 0 1 36 0 17.7 17.7 0 0 1-3.1 10.1Z"})]}),T=e=>{let{options:t=[],className:n}=e;return(0,r.jsxs)(w.i,{children:[(0,r.jsx)(A.c,{render:(0,r.jsx)(j.$,{className:n,children:(0,r.jsx)(Q,{})})}),(0,r.jsx)(U.g,{children:(0,r.jsx)(I.y,{align:"end",style:{zIndex:100},children:(0,r.jsx)(q.p,{children:t.map(e=>(0,r.jsx)($.R,{href:e.url,closeOnClick:!0,children:e.text},e.url))})})})]})},B=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",role:"img",children:(0,r.jsx)("path",{d:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"})});var F=n(7235);let H=()=>(0,r.jsxs)("svg",{xmlns:"svg",width:42,role:"img",viewBox:"0 0 24 24",children:[(0,r.jsx)("style",{children:`
|
|
2
|
+
.rds-b1 {fill: #ae7d83}
|
|
3
|
+
.rds-b2 {fill: #c29ea2}
|
|
4
|
+
.rds-b3 {fill: #e2d0d2}
|
|
5
|
+
|
|
6
|
+
.dark-mode .rds-b1 {fill: #a26169}
|
|
7
|
+
.dark-mode .rds-b2 {fill: #7b4a50}
|
|
8
|
+
.dark-mode .rds-b3 {fill: #514042}
|
|
9
|
+
`}),(0,r.jsx)("path",{className:"rds-b1",d:"M23.99314 6.28305c.012-.244-.307-.458-.949-.694-1.248-.457-7.843-3.082-9.106-3.545-1.263-.462-1.777-.443-3.261.089-1.484.533-8.506 3.287-9.755 3.776-.625.246-.931.473-.92.715v2.426c0 .242.334.498.97.802 1.272.608 8.332 3.461 9.448 3.994 1.116.533 1.9.54 3.313-.196 1.412-.736 8.047-3.465 9.328-4.132.651-.34.939-.604.939-.843 0-.225.001-2.392.001-2.392h-.008zm-15.399 2.296l5.561-.854-1.68 2.463-3.881-1.609zm12.299-2.218l-3.288 1.299-.357.14-3.287-1.299 3.642-1.44 3.29 1.3zm-9.655-2.383l-.538-.992 1.678.656 1.582-.518-.428 1.025 1.612.604-2.079.216-.466 1.12-.752-1.249-2.401-.216 1.792-.646zm-4.143 1.399c1.642 0 2.972.516 2.972 1.152 0 .636-1.331 1.152-2.972 1.152s-2.973-.517-2.973-1.152c0-.636 1.331-1.152 2.973-1.152z"}),(0,r.jsx)("path",{className:"rds-b2",d:"M23.99314 10.38505c-.011.229-.313.484-.934.809-1.281.667-7.916 3.396-9.328 4.132-1.413.736-2.197.729-3.313.196-1.116-.533-8.176-3.386-9.448-3.994-.635-.303-.959-.56-.97-.801v2.426c0 .242.334.498.97.802 1.272.608 8.332 3.46 9.448 3.993 1.116.534 1.9.541 3.313-.195 1.412-.736 8.047-3.465 9.328-4.132.651-.34.939-.604.939-.843 0-.226.001-2.392.001-2.392-.001-.001-.004 0-.006-.001z"}),(0,r.jsx)("path",{className:"rds-b3",d:"M23.99414 14.34005c-.01.229-.313.485-.935.81-1.281.667-7.916 3.396-9.328 4.132-1.413.736-2.197.729-3.313.195-1.116-.533-8.176-3.386-9.448-3.993-.635-.304-.959-.56-.97-.802v2.426c0 .242.334.499.97.803 1.272.608 8.333 3.46 9.448 3.993 1.116.534 1.9.541 3.313-.196 1.412-.736 8.047-3.464 9.328-4.132.651-.339.939-.603.939-.842 0-.226.001-2.392.001-2.392-.001-.001-.004-.001-.005-.002z"})]}),D=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:42,role:"img",children:(0,r.jsx)("path",{d:"M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336c44.2 0 80-35.8 80-80s-35.8-80-80-80s-80 35.8-80 80s35.8 80 80 80z"})});var J=n(4205),V="button-vbAEsE";let G=i.lazy(()=>n.e(814).then(n.bind(n,4741)).then(e=>{let{RedisStatsModal:t}=e;return{default:t}})),W=i.lazy(()=>Promise.all([n.e(135),n.e(718)]).then(n.bind(n,3061)).then(e=>{let{SettingsModal:t}=e;return{default:t}})),K=async()=>{let e=document.documentElement;return e&&document.fullscreenElement!==e?await e.requestFullscreen():document.exitFullscreen()},Z="Docs",X=()=>{let{miscLinks:e=[],hideRedisDetails:t=!1,hideDocsLink:n=!1}=(0,E._)(),s=(0,z.h)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("ul",{className:"actions-xXF1YD",children:[!t&&(0,r.jsx)("li",{children:(0,r.jsx)(j.$,{onClick:()=>s.open("redis"),className:V,children:(0,r.jsx)(H,{})})}),!n&&(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"https://felixmosh.github.io/bull-board/",target:"_blank",rel:"noopener noreferrer","aria-label":Z,title:Z,className:(0,x.A)(V,J.A.button,J.A.default),children:(0,r.jsx)(B,{})})}),(0,r.jsx)("li",{children:(0,r.jsx)(j.$,{onClick:K,className:V,children:(0,r.jsx)(F.P,{})})}),(0,r.jsx)("li",{children:(0,r.jsx)(j.$,{onClick:()=>s.open("settings"),className:V,children:(0,r.jsx)(D,{})})}),e.length>0&&(0,r.jsx)("li",{children:(0,r.jsx)(T,{options:e,className:V})})]}),(0,r.jsxs)(i.Suspense,{fallback:null,children:[!t&&s.isMounted("redis")&&(0,r.jsx)(G,{open:s.isOpen("redis"),onClose:s.close("redis")}),s.isMounted("settings")&&(0,r.jsx)(W,{open:s.isOpen("settings"),onClose:s.close("settings")})]})]})};var Y=n(5543),ee=n(1464),et=n(3115),en=n(2815),er=n(7271),es=n(3983);let ea=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:t,children:(0,r.jsx)("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})})},el=()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"currentcolor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[(0,r.jsx)("circle",{cx:"14",cy:"14",r:"12"}),(0,r.jsx)("path",{d:"M23 23 L30 30"})]});var eo=n(5457),ei=n(5079);let ec=e=>{let{tree:t,level:n=0,parentPath:s=""}=e,{t:a}=(0,b.Bd)(),l=(0,eo.z)(),{toggleMenu:i,isMenuOpen:c}=(0,ee.EH)(e=>{let{toggleMenu:t,isMenuOpen:n}=e;return{isMenuOpen:n,toggleMenu:t}});return(0,r.jsx)("ul",{className:(0,x.A)("menu-zMsDO4",n>0&&"level-NflMrL"),style:{"--level":n},children:t.children.map(e=>{let t=!e.children.length,u=e.name,d=s?`${s}/${e.name}`:e.name,h=c(d);return(0,r.jsx)("li",{children:t?(0,r.jsxs)(o.k2,{to:M.y.queuePage(e.queue.name,l),activeClassName:"active-hKGR_B",title:u,children:[(0,r.jsx)("span",{className:"queueName-bMwHQB",children:u}),e.queue?.isPaused&&(0,r.jsxs)("span",{className:"isPaused-x9j9ry",children:["[ ",a("MENU.PAUSED")," ]"]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{className:"groupHeader-xqJfvs",onClick:()=>i(d),children:[(0,r.jsx)(es.y,{className:(0,x.A)("chevron-hsnmPj",h&&"chevronOpen-C6_QrR")}),(0,r.jsx)("span",{className:"groupName-lzm_YI",children:u}),(0,r.jsxs)("span",{className:"groupCount-UR4Hp5",children:[(0,ei.Ge)(e),(0,ei.ub)(e)>0&&(0,r.jsxs)("span",{className:"groupPausedCount-mWr0MH",children:[" · ",(0,ei.ub)(e)," ",a("MENU.PAUSED").toLowerCase()]})]})]}),h&&(0,r.jsx)(ec,{tree:e,level:n+1,parentPath:d})]})},e.name)})})};var eu="toggleBtn-noqNKp";let ed="u">typeof navigator&&/Mac|iPhone|iPod|iPad/.test(navigator.platform||"")?"⌘K":"Ctrl K",eh=()=>{let{t:e}=(0,b.Bd)(),{queues:t}=(0,L.A)(),n=(0,en.C)(e=>e.sortQueues),s=(0,en.C)(e=>e.sidebarCollapsed),{searchTerm:a,setSearchTerm:l}=(0,et.b)(),{expandAll:o,collapseAll:c,isMenuOpen:u}=(0,ee.EH)(e=>{let{expandAll:t,collapseAll:n,isMenuOpen:r}=e;return{expandAll:t,collapseAll:n,isMenuOpen:r}}),d=(0,er.G)(t?.filter(e=>e.name?.toLowerCase().includes(a?.toLowerCase()))||[],n),h=(0,i.useMemo)(()=>(0,er.i)(d),[d]),m=h.length>0,p=m&&h.every(e=>u(e)),f=m&&h.every(e=>!u(e));return(0,r.jsxs)("aside",{id:"bull-board-sidebar",className:(0,x.A)("aside-tRszgh",s&&"collapsed-_HALuu"),"aria-hidden":s,children:[(0,r.jsxs)("div",{className:"menuHeader-VvfhS9",children:[(0,r.jsx)("span",{className:"secondary-zYLEzr",children:e("MENU.QUEUES")}),m&&(0,r.jsxs)("span",{className:"toggleActions-G_HUS9",children:[(0,r.jsx)("button",{className:eu,onClick:()=>o(h),title:e("MENU.EXPAND_ALL"),disabled:p,children:(0,r.jsx)(es.y,{className:"expandIcon-Zcoy_V"})}),(0,r.jsx)("button",{className:eu,onClick:()=>c(h),title:e("MENU.COLLAPSE_ALL"),disabled:f,children:(0,r.jsx)(es.y,{className:"collapseIcon-WWl3Nq"})})]})]}),(0,r.jsxs)("div",{className:"searchWrapper-RKimTO",children:[(0,r.jsx)(el,{}),(0,r.jsx)("input",{className:"search-JnyuJg",type:"search",id:"search-queues",placeholder:e("MENU.SEARCH_INPUT_PLACEHOLDER"),value:a,onChange:e=>{let{currentTarget:t}=e;return l(t.value)}}),(0,r.jsx)("kbd",{className:"searchShortcut-oinez_","aria-hidden":"true",children:ed})]}),(0,r.jsx)("nav",{className:"navWrapper-uwfhfB",children:(0,r.jsx)(ec,{tree:d})}),(0,r.jsxs)("a",{className:"appVersion-WxhBrg",target:"_blank",rel:"noreferrer",href:"https://github.com/felixmosh/bull-board/releases",children:[(0,r.jsx)(ea,{className:"githubIcon-E8PA4T"}),"8.1.2"]})]})},em=e=>{let{className:t}=e;return(0,r.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:t,children:(0,r.jsx)("path",{d:"M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM48 96c0-8.8 7.2-16 16-16H176V432H64c-8.8 0-16-7.2-16-16V96zM224 432V80H448c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H224z"})})},ep=()=>{let{t:e}=(0,b.Bd)(),t=(0,en.C)(e=>e.sidebarCollapsed),n=(0,en.C)(e=>e.setSettings),s=e(t?"MENU.EXPAND_SIDEBAR":"MENU.COLLAPSE_SIDEBAR");return(0,r.jsx)(j.$,{className:"toggle-ysT0j3",onClick:()=>n({sidebarCollapsed:!t}),"aria-expanded":!t,"aria-controls":"bull-board-sidebar","aria-label":s,title:s,children:(0,r.jsx)(em,{className:"icon-RSjOSX"})})};var ef=n(4393);let eg=e=>{let{className:t}=e;return(0,r.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:t,children:(0,r.jsx)("path",{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"})})},ev=i.lazy(()=>n.e(450).then(n.bind(n,5241)).then(e=>{let{QueueInfoModal:t}=e;return{default:t}})),ex=()=>{let{t:e}=(0,b.Bd)(),t=(0,ef.h)(),n=(0,y.I)(),[s,a]=(0,i.useState)(!1);return!t||n?(0,r.jsx)("div",{}):(0,r.jsxs)("div",{className:"queueTitle-_L6Q8r",children:[t.displayName&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"titleRow-MYe4Xt",children:[(0,r.jsx)("h1",{className:"name-sqRel5",title:t.displayName,children:t.displayName}),(0,r.jsx)(j.$,{className:"infoButton-sVhXFc",onClick:()=>a(!0),title:e("QUEUE.INFO.TITLE"),"aria-label":e("QUEUE.INFO.TITLE"),children:(0,r.jsx)(eg,{className:"infoIcon-GTj9nR"})})]}),t.description&&(0,r.jsx)("p",{className:"description-m3M8Yd",children:t.description})]}),(0,r.jsx)(i.Suspense,{fallback:null,children:s&&(0,r.jsx)(ev,{open:s,queue:t,onClose:()=>a(!1)})})]})};var eb=n(7012);let ej=i.lazy(()=>Promise.all([n.e(737),n.e(365),n.e(940)]).then(n.bind(n,8019)).then(e=>{let{JobPage:t}=e;return{default:t}})),eC=i.lazy(()=>Promise.all([n.e(737),n.e(365),n.e(121)]).then(n.bind(n,3012)).then(e=>{let{QueuePage:t}=e;return{default:t}})),eN=i.lazy(()=>n.e(609).then(n.bind(n,4e3)).then(e=>{let{OverviewPage:t}=e;return{default:t}})),ey=()=>{!function(){let{key:e}=(0,c.zy)();(0,i.useEffect)(()=>{window.scrollTo(0,0)},[e])}();let{confirmProps:e}=(0,eb.S)(),t=(0,y.I)(),n=(0,en.C)(e=>e.sidebarCollapsed);return!function(){let{i18n:e}=(0,b.Bd)(),{language:t}=(0,en.C)();(0,i.useEffect)(()=>{t&&e.language!==t&&e.changeLanguage(t)},[t])}(),!function(){let{darkMode:e}=(0,en.C)();(0,i.useEffect)(()=>{e?document.body.classList.add("dark-mode"):document.body.classList.remove("dark-mode")},[e])}(),(0,i.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),en.C.getState().sidebarCollapsed&&en.C.getState().setSettings({sidebarCollapsed:!1}),requestAnimationFrame(()=>{document.getElementById("search-queues")?.focus()}))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,i.useEffect)(()=>(document.body.dataset.sidebarCollapsed=String(!t&&n),requestAnimationFrame(()=>document.body.classList.remove("preload")),()=>{delete document.body.dataset.sidebarCollapsed}),[t,n]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(k,{children:[(0,r.jsxs)("div",{className:"header-title-group",children:[!t&&(0,r.jsx)(ep,{}),(0,r.jsx)(ex,{})]}),(0,r.jsx)(X,{})]}),!t&&(0,r.jsx)(eh,{}),(0,r.jsx)("main",{children:(0,r.jsxs)("div",{children:[(0,r.jsx)(i.Suspense,{fallback:(0,r.jsx)(Y.a,{}),children:(0,r.jsxs)(c.dO,{children:[(0,r.jsx)(c.qh,{path:"/queue/:name/:jobId",render:()=>(0,r.jsx)(ej,{})}),(0,r.jsx)(c.qh,{path:"/queue/:name",render:()=>(0,r.jsx)(eC,{})}),(0,r.jsx)(c.qh,{path:"/",exact:!0,render:()=>(0,r.jsx)(eN,{})})]})}),(0,r.jsx)(N,{...e})]})}),(0,r.jsx)(u.N9,{})]})};var eE=n(1008),ew=n(4),eA=n(7304),eU=n(3804),eI=n(2675);async function eO(e){let{lng:t,basePath:n}=e,r="en-US",s=eI.e.find(e=>e===t)||r;return eA.Ay.use(b.r9).use(eU.A).init({lng:s,fallbackLng:r,defaultNS:"messages",ns:"messages",load:"currentOnly",backend:{loadPath:`${n}static/locales/{{lng}}/{{ns}}.json`,queryParams:{v:"8.1.2"}},interpolation:{escapeValue:!1}})}let eR=window.__basePath__=document.head.querySelector("base")?.getAttribute("href")||"",eS=new class{axios;constructor({basePath:e}={basePath:""}){this.axios=ew.A.create({baseURL:`${e}api`}),this.axios.interceptors.response.use(this.handleResponse,this.handleError)}getQueues(e){let{activeQueue:t,status:n,page:r,jobsPerPage:s}=e;return this.axios.get("/queues",{params:{activeQueue:t,status:n,page:r,jobsPerPage:s}})}retryAll(e,t){return this.axios.put(`/queues/${encodeURIComponent(e)}/retry/${encodeURIComponent(t)}`)}promoteAll(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/promote`)}cleanAll(e,t){return this.axios.put(`/queues/${encodeURIComponent(e)}/clean/${encodeURIComponent(t)}`)}cleanJob(e,t){return this.axios.put(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${t}`)}/clean`)}retryJob(e,t){return this.axios.put(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${t}`)}/retry`)}promoteJob(e,t){return this.axios.put(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${t}`)}/promote`)}updateJobData(e,t,n){return this.axios.patch(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${t}`)}/update-data`,n)}getJobLogs(e,t){return this.axios.get(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${t}`)}/logs`)}getJob(e,t){return this.axios.get(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${t}`)}`)}getJobFlow(e,t){return this.axios.get(`/queues/${encodeURIComponent(e)}/${encodeURIComponent(`${t}`)}/flow`)}addJob(e,t,n,r){return this.axios.post(`/queues/${encodeURIComponent(e)}/add`,{name:t,data:n,options:r})}pauseQueue(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/pause`)}resumeQueue(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/resume`)}pauseAllQueues(){return this.axios.put("/queues/pause")}resumeAllQueues(){return this.axios.put("/queues/resume")}emptyQueue(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/empty`)}obliterateQueue(e){return this.axios.put(`/queues/${encodeURIComponent(e)}/obliterate`)}setGlobalConcurrency(e,t){return this.axios.put(`/queues/${encodeURIComponent(e)}/concurrency`,{concurrency:t})}getStats(){return this.axios.get("/redis/stats")}getMetrics(e){return this.axios.get(`/queues/${encodeURIComponent(e)}/metrics`)}getQueueDefaultJobOptions(e){return this.axios.get(`/queues/${encodeURIComponent(e)}/default-job-options`)}handleResponse(e){return e.data}async handleError(e){return e.response.data?.error&&u.oR.error(e.response.data?.error,{autoClose:5e3}),Promise.resolve(e.response.data)}}({basePath:eR}),eL=new s.E({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}}),eM=JSON.parse(document.getElementById("__UI_CONFIG__")?.textContent||"{}");eM.pollingInterval?.forceInterval&&en.C.setState({pollingInterval:eM.pollingInterval.forceInterval}),null!=eM.sortQueues&&en.C.setState({sortQueues:eM.sortQueues}),eO({lng:en.C.getState().language||eM.locale?.lng||navigator.language||"en-US",basePath:eR}).then(()=>{(0,l.createRoot)(document.getElementById("root")).render((0,r.jsx)(o.Kd,{basename:eR,children:(0,r.jsx)(a.Ht,{client:eL,children:(0,r.jsx)(E.a.Provider,{value:eM,children:(0,r.jsx)(eE._.Provider,{value:eS,children:(0,r.jsx)(ey,{})})})})}))})},4015(e,t,n){function r(e,t){return function(n,r,s){return async()=>{try{s&&await t({description:r}),await n(),await e()}catch(e){e&&console.error(e)}}}}n.d(t,{A:()=>r})},6937(e,t,n){let r={dashboardPage:e=>({pathname:"/",search:e?new URLSearchParams({status:e}).toString():""}),queuePage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pathname:n,searchParams:r}=new URL(`/queue/${encodeURIComponent(e)}`,"http://fake.com");return t[e]&&"latest"!==t[e]&&r.set("status",t[e]),{pathname:n,search:r.toString()}},jobPage(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{pathname:s,search:a}=r.queuePage(e,n),{pathname:l}=new URL(`${s}/${encodeURIComponent(t)}`,"http://fake.com");return{pathname:l,search:a}}};n.d(t,{},{y:r})},5079(e,t,n){let r=["active","waiting","waiting-children","prioritized","delayed","completed","failed","paused"];function s(e,t){if(!e.children.length){e.queue&&t(e.queue);return}e.children.forEach(e=>s(e,t))}function a(e){let t={};s(e,e=>{e.statuses.forEach(n=>{let r=e.counts[n]||0;r>0&&(t[n]=(t[n]||0)+r)})});let n=r.filter(e=>(t[e]||0)>0);return{total:n.reduce((e,n)=>e+(t[n]||0),0),byStatus:t,statuses:n}}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return s(e,e=>{t.writableOnly&&e.readOnlyMode||n.push(e.name)}),n}function o(e){let t=!0,n=!1;return s(e,e=>{n=!0,e.isPaused||(t=!1)}),n&&t}n.d(t,{Ge:()=>function e(t){return t.children.length?t.children.reduce((t,n)=>t+e(n),0):+!!t.queue},Oc:()=>l,Uw:()=>o,W_:()=>a,ub:()=>function e(t){return t.children.length?t.children.reduce((t,n)=>t+e(n),0):+!!t.queue?.isPaused}})},7271(e,t,n){function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={name:"root",children:[]};return e.forEach(e=>{if(!e.delimiter)return void n.children.push({name:e.name,queue:e,children:[]});let t=(e.name.startsWith("{")&&e.name.endsWith("}")?e.name.slice(1,-1):e.name).split(e.delimiter),r=n.children;t.forEach((n,s)=>{let a=r.find(e=>e.name===n);a||(a={name:n,children:[],...s===t.length-1?{queue:e}:{}},r.push(a)),r=a.children})}),t&&function e(t){t.children.sort((e,t)=>{let n=e.children.length>0;return n!==t.children.length>0?n?-1:1:e.name.localeCompare(t.name)}),t.children.forEach(e)}(n),n}n.d(t,{G:()=>r,i:()=>function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[];for(let s of t.children)if(s.children.length>0){let t=n?`${n}/${s.name}`:s.name;r.push(t),r.push(...e(s,t))}return r}})}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return s[e].call(n.exports,n,n.exports,l),n.exports}l.m=s,l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},i=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var n=Object.create(null);l.r(n);var r={};o=o||[null,i({}),i([]),i(i)];for(var s=2&t&&e;("object"==typeof s||"function"==typeof s)&&!~o.indexOf(s);s=i(s))Object.getOwnPropertyNames(s).forEach(t=>{r[t]=()=>e[t]});return r.default=()=>e,l.d(n,r),n},l.d=(e,t,n)=>{var r=(t,n)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,[n]:t[r]})};r(t,"get"),r(n,"value")},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((t,n)=>(l.f[n](e,t),t),[])),l.u=e=>"static/js/async/"+(({334:"highlight",697:"highlight-worker"})[e]||e)+"."+({121:"bc4b11294f",135:"8acec210e6",172:"5610b6d5ce",177:"a011a3dfb7",30:"d2a74db8bb",334:"c4898cd8ee",365:"e60c5bb82b",445:"79830dc420",450:"6bf3182330",524:"adf11d9fc8",609:"88388ef9ae",661:"8523cd41a7",697:"de1e31a2dc",718:"2f4df2042e",725:"1e2a996dab",737:"4a37018d49",814:"bff57943ab",833:"e08c6d7001",847:"8340f53d0d",865:"b6e87e02d0",940:"cb7a9bdcfd"})[e]+".js",l.miniCssF=e=>"static/css/async/"+e+"."+({121:"00a0466c73",177:"9647eb502f",450:"eb4f1f3bab",524:"9647eb502f",609:"c19d052062",718:"32499dd5cd",725:"706c206163",814:"5880506aef",847:"9647eb502f",940:"c9300469a8"})[e]+".css",l.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c={},l.l=function(e,t,n,r){if(c[e])return void c[e].push(t);if(void 0!==n)for(var s,a,o=document.getElementsByTagName("script"),i=0;i<o.length;i++){var u=o[i];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@bull-board/ui:"+n){s=u;break}}s||(a=!0,(s=document.createElement("script")).timeout=120,l.nc&&s.setAttribute("nonce",l.nc),s.setAttribute("data-rspack","@bull-board/ui:"+n),s.src=e),c[e]=[t];var d=function(t,n){s.onerror=s.onload=null,clearTimeout(h);var r=c[e];if(delete c[e],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach(function(e){return e(n)}),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),a&&document.head.appendChild(s)},l.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),u=[],l.O=(e,t,n,r)=>{if(t){r=r||0;for(var s=u.length;s>0&&u[s-1][2]>r;s--)u[s]=u[s-1];u[s]=[t,n,r];return}for(var a=1/0,s=0;s<u.length;s++){for(var[t,n,r]=u[s],o=!0,i=0;i<t.length;i++)(!1&r||a>=r)&&Object.keys(l.O).every(e=>l.O[e](t[i]))?t.splice(i--,1):(o=!1,r<a&&(a=r));if(o){u.splice(s--,1);var c=n();void 0!==c&&(e=c)}}return e},l.H={},l.G=e=>{Object.keys(l.H).map(t=>{l.H[t](e)})},l.g.importScripts&&(d=l.g.location+"");var o,i,c,u,d,h=l.g.document;if(!d&&h&&(h.currentScript&&"SCRIPT"===h.currentScript.tagName.toUpperCase()&&(d=h.currentScript.src),!d)){var m=h.getElementsByTagName("script");if(m.length)for(var p=m.length-1;p>-1&&(!d||!/^http(s?):/.test(d));)d=m[p--].src}if(!d)throw Error("Automatic publicPath is not supported in this browser");if(l.p=(d=d.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../","u">typeof document){var f=function(e,t,n,r,s,a){var o=document.createElement("link");return o.rel="stylesheet",o.type="text/css",l.nc&&(o.nonce=l.nc),o.href=t,o.onerror=o.onload=function(n){if(o.onerror=o.onload=null,"load"===n.type)r();else{var a=n&&("load"===n.type?"missing":n.type),l=n&&n.target&&n.target.href||t,i=Error("Loading CSS chunk "+e+" failed.\\n("+l+")");i.code="CSS_CHUNK_LOAD_FAILED",i.type=a,i.request=l,o.parentNode&&o.parentNode.removeChild(o),s(i)}},n?n.parentNode.insertBefore(o,n.nextSibling):document.head.appendChild(o),o},g=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var s=n[r],a=s.getAttribute("data-href")||s.getAttribute("href");if(a&&(a=a.split("?")[0]),"stylesheet"===s.rel&&(a===e||a===t))return s}for(var l=document.getElementsByTagName("style"),r=0;r<l.length;r++){var s=l[r],a=s.getAttribute("data-href");if(a===e||a===t)return s}},v={889:0};l.f.miniCss=function(e,t,n){if(v[e])t.push(v[e]);else 0!==v[e]&&({121:1,177:1,450:1,524:1,609:1,718:1,725:1,814:1,847:1,940:1})[e]&&t.push(v[e]=new Promise(function(t,r){var s=l.miniCssF(e),a=l.p+s;if(g(s,a))return t();f(e,a,null,t,r,n)}).then(function(){v[e]=0},function(t){throw delete v[e],t}))},l.H.miniCss=e=>{if((!l.o(v,e)||void 0===v[e])&&/^(8(14|47|89)|121|177|450|524|609|718|725|940)$/.test(e)){v[e]=null;var t=document.createElement("link");l.nc&&t.setAttribute("nonce",l.nc),t.rel="preload",t.as="style",t.href=l.p+l.miniCssF(e),document.head.appendChild(t)}}}l.b=document.baseURI||self.location.href,e={889:0},l.f.j=function(t,n){var r=l.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var s=new Promise((n,s)=>r=e[t]=[n,s]);n.push(r[2]=s);var a=l.p+l.u(t),o=Error();l.l(a,function(n){if(l.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+s+": "+a+")",o.name="ChunkLoadError",o.type=s,o.request=a,r[1](o)}},"chunk-"+t,t)}},l.H.j=t=>{if(!l.o(e,t)||void 0===e[t]){e[t]=null;var n=document.createElement("link");l.nc&&n.setAttribute("nonce",l.nc),n.rel="preload",n.as="script",n.href=l.p+l.u(t),document.head.appendChild(n)}},l.O.j=t=>0===e[t],t=(t,n)=>{var r,s,[a,o,i]=n,c=0;if(a.some(t=>0!==e[t])){for(r in o)l.o(o,r)&&(l.m[r]=o[r]);if(i)var u=i(l)}for(t&&t(n);c<a.length;c++)s=a[c],l.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return l.O(u)},(n=self.rspackChunk_bull_board_ui=self.rspackChunk_bull_board_ui||[]).forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n)),r={940:[833,334],121:[833,334]},l.f.preload=e=>{var t=r[e];Array.isArray(t)&&t.map(l.G)};var x=l.O(void 0,["783","535","590"],()=>l(6745));x=l.O(x)})();
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "Filtrer køer",
|
|
7
7
|
"PAUSED": "Pauset",
|
|
8
8
|
"EXPAND_ALL": "Expand all groups",
|
|
9
|
-
"COLLAPSE_ALL": "Collapse all groups"
|
|
9
|
+
"COLLAPSE_ALL": "Collapse all groups",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT_one": "{{count}} Job",
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "Warteschlangen filtern",
|
|
7
7
|
"PAUSED": "Pausiert",
|
|
8
8
|
"EXPAND_ALL": "Alle Gruppen ausklappen",
|
|
9
|
-
"COLLAPSE_ALL": "Alle Gruppen einklappen"
|
|
9
|
+
"COLLAPSE_ALL": "Alle Gruppen einklappen",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT_one": "{{count}} Job",
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "Filter queues",
|
|
7
7
|
"PAUSED": "Paused",
|
|
8
8
|
"EXPAND_ALL": "Expand all groups",
|
|
9
|
-
"COLLAPSE_ALL": "Collapse all groups"
|
|
9
|
+
"COLLAPSE_ALL": "Collapse all groups",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT_one": "{{count}} Job",
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "Filter queues",
|
|
7
7
|
"PAUSED": "Paused",
|
|
8
8
|
"EXPAND_ALL": "Expand all groups",
|
|
9
|
-
"COLLAPSE_ALL": "Collapse all groups"
|
|
9
|
+
"COLLAPSE_ALL": "Collapse all groups",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT_one": "{{count}} Job",
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "Filtrar colas",
|
|
7
7
|
"PAUSED": "Pausada",
|
|
8
8
|
"EXPAND_ALL": "Expand all groups",
|
|
9
|
-
"COLLAPSE_ALL": "Collapse all groups"
|
|
9
|
+
"COLLAPSE_ALL": "Collapse all groups",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT_one": "{{count}} Tarea",
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "Filtrer les files",
|
|
7
7
|
"PAUSED": "En pause",
|
|
8
8
|
"EXPAND_ALL": "Expand all groups",
|
|
9
|
-
"COLLAPSE_ALL": "Collapse all groups"
|
|
9
|
+
"COLLAPSE_ALL": "Collapse all groups",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT_one": "{{count}} Tâche",
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "キューを絞り込み",
|
|
7
7
|
"PAUSED": "一時停止中",
|
|
8
8
|
"EXPAND_ALL": "Expand all groups",
|
|
9
|
-
"COLLAPSE_ALL": "Collapse all groups"
|
|
9
|
+
"COLLAPSE_ALL": "Collapse all groups",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT": "{{count}} ジョブ",
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "큐 필터",
|
|
7
7
|
"PAUSED": "일시정지됨",
|
|
8
8
|
"EXPAND_ALL": "Expand all groups",
|
|
9
|
-
"COLLAPSE_ALL": "Collapse all groups"
|
|
9
|
+
"COLLAPSE_ALL": "Collapse all groups",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT": "{{count}}개의 작업",
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "Filtrar filas",
|
|
7
7
|
"PAUSED": "Em Pausa",
|
|
8
8
|
"EXPAND_ALL": "Expand all groups",
|
|
9
|
-
"COLLAPSE_ALL": "Collapse all groups"
|
|
9
|
+
"COLLAPSE_ALL": "Collapse all groups",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT_one": "{{count}} Tarefa",
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "Kuyrukları filtrele",
|
|
7
7
|
"PAUSED": "Durduruldu",
|
|
8
8
|
"EXPAND_ALL": "Expand all groups",
|
|
9
|
-
"COLLAPSE_ALL": "Collapse all groups"
|
|
9
|
+
"COLLAPSE_ALL": "Collapse all groups",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT_one": "{{count}} İş",
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"SEARCH_INPUT_PLACEHOLDER": "筛选队列",
|
|
7
7
|
"PAUSED": "已暂停",
|
|
8
8
|
"EXPAND_ALL": "Expand all groups",
|
|
9
|
-
"COLLAPSE_ALL": "Collapse all groups"
|
|
9
|
+
"COLLAPSE_ALL": "Collapse all groups",
|
|
10
|
+
"EXPAND_SIDEBAR": "Expand sidebar",
|
|
11
|
+
"COLLAPSE_SIDEBAR": "Collapse sidebar"
|
|
10
12
|
},
|
|
11
13
|
"DASHBOARD": {
|
|
12
14
|
"JOBS_COUNT": "{{count}} 个作业",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bull-board/ui",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.2",
|
|
4
4
|
"description": "A Dashboard UI built on top of bull or bullmq.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bull",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"gen:jsonSchema:bull": "npx ts-json-schema-generator --path '../../node_modules/bull/*.ts' --type 'Bull.JobOptions' --out './src/schemas/bull/jobOptions.json'"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@bull-board/api": "8.1.
|
|
39
|
+
"@bull-board/api": "8.1.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@base-ui/react": "^1.6.0",
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
"@codemirror/state": "^6.7.0",
|
|
49
49
|
"@codemirror/view": "^6.43.4",
|
|
50
50
|
"@lezer/common": "^1.5.2",
|
|
51
|
-
"@rsbuild/core": "^2.1.
|
|
51
|
+
"@rsbuild/core": "^2.1.4",
|
|
52
52
|
"@rsbuild/plugin-react": "^2.1.0",
|
|
53
53
|
"@rsbuild/plugin-type-check": "^1.5.0",
|
|
54
54
|
"@rsdoctor/rspack-plugin": "^1.5.17",
|
|
55
55
|
"@tanstack/react-query": "^5.101.2",
|
|
56
|
-
"@testing-library/dom": "^10",
|
|
57
|
-
"@testing-library/react": "^16",
|
|
58
|
-
"@types/identity-obj-proxy": "^3",
|
|
59
|
-
"@types/jest": "^30",
|
|
56
|
+
"@testing-library/dom": "^10.4.1",
|
|
57
|
+
"@testing-library/react": "^16.3.2",
|
|
58
|
+
"@types/identity-obj-proxy": "^3.0.2",
|
|
59
|
+
"@types/jest": "^30.0.0",
|
|
60
60
|
"@types/react": "^19.2.17",
|
|
61
61
|
"@types/react-dom": "^19.2.3",
|
|
62
62
|
"@types/react-paginate": "^7.1.4",
|
|
@@ -67,24 +67,24 @@
|
|
|
67
67
|
"codemirror-json-schema": "^0.8.1",
|
|
68
68
|
"date-fns": "4.4.0",
|
|
69
69
|
"highlight.js": "^11.11.1",
|
|
70
|
-
"i18next": "^
|
|
70
|
+
"i18next": "^26.3.4",
|
|
71
71
|
"i18next-hmr": "^3.2.0",
|
|
72
|
-
"i18next-http-backend": "^
|
|
72
|
+
"i18next-http-backend": "^4.0.0",
|
|
73
73
|
"i18next-locales-sync": "^2.1.1",
|
|
74
|
-
"identity-obj-proxy": "^3",
|
|
75
|
-
"jest": "^30",
|
|
76
|
-
"jest-environment-jsdom": "^30",
|
|
74
|
+
"identity-obj-proxy": "^3.0.0",
|
|
75
|
+
"jest": "^30.4.2",
|
|
76
|
+
"jest-environment-jsdom": "^30.4.1",
|
|
77
77
|
"nanoid": "^5.1.16",
|
|
78
78
|
"pretty-bytes": "^7.1.0",
|
|
79
79
|
"react": "^19.2.7",
|
|
80
80
|
"react-dom": "^19.2.7",
|
|
81
|
-
"react-i18next": "^
|
|
81
|
+
"react-i18next": "^17.0.8",
|
|
82
82
|
"react-json-view-lite": "^2.5.0",
|
|
83
83
|
"react-paginate": "^8.3.0",
|
|
84
84
|
"react-router-dom": "^5.3.4",
|
|
85
85
|
"react-toastify": "^11.1.0",
|
|
86
|
-
"recharts": "^3.9.
|
|
87
|
-
"ts-jest": "^29",
|
|
86
|
+
"recharts": "^3.9.2",
|
|
87
|
+
"ts-jest": "^29.4.11",
|
|
88
88
|
"zustand": "4.5.7"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import 'i18next';
|
|
2
|
+
import type messages from '../src/static/locales/en-US/messages.json';
|
|
3
|
+
|
|
4
|
+
// Makes `t()` type-checked against the primary locale (en-US). Unknown or
|
|
5
|
+
// misspelled keys become compile errors, and keys autocomplete. Other locales
|
|
6
|
+
// are kept in parity with en-US by the i18n completeness test, not by types.
|
|
7
|
+
declare module 'i18next' {
|
|
8
|
+
interface CustomTypeOptions {
|
|
9
|
+
defaultNS: 'messages';
|
|
10
|
+
resources: {
|
|
11
|
+
messages: typeof messages;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|