@bull-board/ui 6.18.2 → 6.19.0
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/async/30857.e5817598.js +1 -0
- package/dist/static/js/async/{51125.877d04e3.js → 51125.fe204459.js} +2 -2
- package/dist/static/js/async/64912.a5287f0f.js +1 -0
- package/dist/static/js/async/{82384.70910f2c.js → 82384.b9b5fd11.js} +1 -1
- package/dist/static/js/async/{86176.4afaf5cd.js → 86176.210b2341.js} +1 -1
- package/dist/static/js/{main.3f070b71.js → main.b60492b0.js} +2 -2
- package/dist/static/locales/da-DK/messages.json +3 -0
- package/dist/static/locales/en-GB/messages.json +3 -0
- package/dist/static/locales/en-US/messages.json +3 -0
- package/dist/static/locales/es-ES/messages.json +3 -0
- package/dist/static/locales/fr-FR/messages.json +3 -0
- package/dist/static/locales/ja-JP/messages.json +3 -0
- package/dist/static/locales/ko-KR/messages.json +3 -0
- package/dist/static/locales/pt-BR/messages.json +3 -0
- package/dist/static/locales/tr-TR/messages.json +3 -0
- package/dist/static/locales/zh-CN/messages.json +3 -0
- package/package.json +2 -2
- package/typings/app.d.ts +1 -1
- package/dist/static/js/async/30857.ef8bc3e8.js +0 -1
- package/dist/static/js/async/64912.9f1a0d7b.js +0 -1
- /package/dist/static/js/async/{51125.877d04e3.js.LICENSE.txt → 51125.fe204459.js.LICENSE.txt} +0 -0
package/dist/index.ejs
CHANGED
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
<body>
|
|
14
14
|
<script id="__UI_CONFIG__" type="application/json"><%- uiConfig %></script>
|
|
15
15
|
<div id="root">Loading...</div>
|
|
16
|
-
<script defer src="static/js/lib-react.f1fbffc9.js"></script><script defer src="static/js/lib-router.d467d5aa.js"></script><script defer src="static/js/lib-axios.9f8e84b3.js"></script><script defer src="static/js/6693.47a4f9db.js"></script><script defer src="static/js/main.
|
|
16
|
+
<script defer src="static/js/lib-react.f1fbffc9.js"></script><script defer src="static/js/lib-router.d467d5aa.js"></script><script defer src="static/js/lib-axios.9f8e84b3.js"></script><script defer src="static/js/6693.47a4f9db.js"></script><script defer src="static/js/main.b60492b0.js"></script></body>
|
|
17
17
|
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["30857"],{40555(e,a){a.STATUSES=void 0,a.STATUSES={latest:"latest",active:"active",waiting:"waiting",waitingChildren:"waiting-children",prioritized:"prioritized",completed:"completed",failed:"failed",delayed:"delayed",paused:"paused"}},18407(e,a,l){l.d(a,{D:()=>r});var t=l(31085),n=l(54357);l(14041);let r=e=>{let{label:a,id:l,inline:r,children:s}=e;return(0,t.jsxs)("div",{className:(0,n.A)("field-JbAWJt",{"inline-vXG0Za":r}),children:[!!a&&!r&&(0,t.jsx)("label",{htmlFor:l,children:a}),s,!!a&&r&&(0,t.jsx)("label",{htmlFor:l,children:a})]})}},1701(e,a,l){l.d(a,{F:()=>r});var t=l(31085);l(14041);var n=l(18407);let r=e=>{let{label:a,id:l,...r}=e;return(0,t.jsx)(n.D,{label:a,id:l,children:(0,t.jsx)("input",{id:l,type:"text",...r})})}},89639(e,a,l){l.d(a,{z:()=>r});var t=l(31085);l(14041);var n=l(18407);let r=e=>{let{label:a,id:l,options:r,...s}=e;return(0,t.jsx)(n.D,{label:a,id:l,children:(0,t.jsx)("select",{id:l,...s,children:r.map(e=>(0,t.jsx)("option",{value:e.value,children:e.text},e.value))})})}},80760(e,a,l){l.d(a,{a:()=>d});var t=l(31085),n=l(23157),r=l(54357);l(14041);var s=l(42348),i=l(84382),o=l(43697);let d=e=>{let{open:a,title:l,onClose:d,children:c,width:u,actionButton:h}=e,{t:p}=(0,s.Bd)();return(0,t.jsx)(n.bL,{open:a,modal:!0,onOpenChange:e=>{e||d()},children:(0,t.jsxs)(n.ZL,{children:[(0,t.jsx)(n.hJ,{className:o.A.overlay}),(0,t.jsx)(n.UC,{className:o.A.contentWrapper,children:(0,t.jsxs)("div",{className:(0,r.A)(o.A.content,o.A[u||""]),children:[!!l&&(0,t.jsx)(n.hE,{children:l}),(0,t.jsx)(n.VY,{asChild:!0,children:(0,t.jsx)("div",{className:o.A.description,children:c})}),(0,t.jsxs)("div",{className:o.A.actions,children:[h,(0,t.jsx)(n.bm,{asChild:!0,children:(0,t.jsx)(i.$,{theme:"basic",children:p("MODAL.CLOSE_BTN")})})]})]})})]})})}},57104(e,a,l){l.d(a,{SettingsModal:()=>G});var t=l(31085),n=l(14041),r=l(42348),s=l(58355),i=l(40783),o=l(26834),d=l(1701),c=l(89639),u=l(54744),h=l(61764),p=l(34264),S=l(80820),b=l(39330),T=l(58342),v="Switch",[E,j]=(0,p.A)(v),[m,x]=E(v),C=n.forwardRef((e,a)=>{let{__scopeSwitch:l,name:r,checked:s,defaultChecked:i,required:o,disabled:d,value:c="on",onCheckedChange:p,form:b,...E}=e,[j,x]=n.useState(null),C=(0,h.s)(a,e=>x(e)),g=n.useRef(!1),N=!j||b||!!j.closest("form"),[I,A]=(0,S.i)({prop:s,defaultProp:i??!1,onChange:p,caller:v});return(0,t.jsxs)(m,{scope:l,checked:I,disabled:d,children:[(0,t.jsx)(T.sG.button,{type:"button",role:"switch","aria-checked":I,"aria-required":o,"data-state":f(I),"data-disabled":d?"":void 0,disabled:d,value:c,...E,ref:C,onClick:(0,u.mK)(e.onClick,e=>{A(e=>!e),N&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}),N&&(0,t.jsx)(O,{control:j,bubbles:!g.current,name:r,value:c,checked:I,required:o,disabled:d,form:b,style:{transform:"translateX(-100%)"}})]})});C.displayName=v;var g="SwitchThumb",N=n.forwardRef((e,a)=>{let{__scopeSwitch:l,...n}=e,r=x(g,l);return(0,t.jsx)(T.sG.span,{"data-state":f(r.checked),"data-disabled":r.disabled?"":void 0,...n,ref:a})});N.displayName=g;var O=n.forwardRef(({__scopeSwitch:e,control:a,checked:l,bubbles:r=!0,...s},i)=>{let o,d=n.useRef(null),c=(0,h.s)(d,i),u=(o=n.useRef({value:l,previous:l}),n.useMemo(()=>(o.current.value!==l&&(o.current.previous=o.current.value,o.current.value=l),o.current.previous),[l])),p=(0,b.X)(a);return n.useEffect(()=>{let e=d.current;if(!e)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==l&&a){let t=new Event("click",{bubbles:r});a.call(e,l),e.dispatchEvent(t)}},[u,l,r]),(0,t.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:l,...s,tabIndex:-1,ref:c,style:{...s.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function f(e){return e?"checked":"unchecked"}O.displayName="SwitchBubbleInput";var I=l(18407);let A=e=>{let{label:a,id:l,...n}=e;return(0,t.jsx)(I.D,{label:a,id:l,inline:!0,children:(0,t.jsx)(C,{id:l,...n,className:"switch-DOdNhn",children:(0,t.jsx)(N,{className:"thumb-tvm2sT"})})})};var L=l(80760),k=l(15510);let _=[-1,3,5,10,20,60,300,900],G=e=>{let{open:a,onClose:l}=e,{language:n,pollingInterval:u,jobsPerPage:h,confirmQueueActions:p,confirmJobActions:S,collapseJob:b,collapseJobData:T,collapseJobProgress:v,collapseJobOptions:E,collapseJobError:j,defaultCollapseDepth:m,useCollapsibleJson:x,defaultJobTab:C,darkMode:g,setSettings:N}=(0,i.C)(e=>e),{pollingInterval:O}=(0,o._)(),{t:f,i18n:I}=(0,r.Bd)();return(0,t.jsxs)(L.a,{width:"small",open:a,onClose:l,title:f("SETTINGS.TITLE"),children:[(0,t.jsx)(c.z,{label:f("SETTINGS.LANGUAGE"),id:"language",options:s.e.map(e=>({text:e,value:e})),value:n,onChange:e=>{I.changeLanguage(e.target.value),N({language:e.target.value})}}),(null==O?void 0:O.showSetting)!==!1&&(0,t.jsx)(c.z,{label:f("SETTINGS.POLLING_INTERVAL"),id:"polling-interval",options:_.map(e=>({text:e<0?f("SETTINGS.POLLING_OPTIONS.OFF"):0===Math.floor(e/60)?f("SETTINGS.POLLING_OPTIONS.SECS",{count:e}):f("SETTINGS.POLLING_OPTIONS.MINS",{count:e/60}),value:`${e}`})),value:`${u}`,onChange:e=>N({pollingInterval:+e.target.value})}),(0,t.jsx)(c.z,{label:f("SETTINGS.DEFAULT_JOB_TAB"),id:"default-job-tab",options:["default"].concat(k.d).map(e=>({text:f(`JOB.TABS.${e.toUpperCase()}`),value:e})),value:C,onChange:e=>N({defaultJobTab:e.target.value})}),(0,t.jsx)(d.F,{label:f("SETTINGS.JOBS_PER_PAGE"),id:"jobs-per-page",value:h,type:"number",min:"1",max:300,maxLength:3,onChange:e=>{N({jobsPerPage:Math.min(+e.target.value,300)})}}),(0,t.jsx)(A,{label:f("SETTINGS.CONFIRM_QUEUE_ACTIONS"),id:"confirm-queue-actions",checked:p,onCheckedChange:e=>N({confirmQueueActions:e})}),(0,t.jsx)(A,{label:f("SETTINGS.CONFIRM_JOB_ACTIONS"),id:"confirm-job-actions",checked:S,onCheckedChange:e=>N({confirmJobActions:e})}),(0,t.jsx)(A,{label:f("SETTINGS.COLLAPSE_JOB"),id:"collapse-job",checked:b,onCheckedChange:e=>N({collapseJob:e})}),(0,t.jsx)(A,{label:f("SETTINGS.COLLAPSE_JOB_DATA"),id:"collapse-job-data",checked:T,onCheckedChange:e=>N({collapseJobData:e})}),(0,t.jsx)(A,{label:f("SETTINGS.COLLAPSE_JOB_PROGRESS"),id:"collapse-job-progress",checked:v,onCheckedChange:e=>N({collapseJobProgress:e})}),(0,t.jsx)(A,{label:f("SETTINGS.COLLAPSE_JOB_OPTIONS"),id:"collapse-job-options",checked:E,onCheckedChange:e=>N({collapseJobOptions:e})}),(0,t.jsx)(A,{label:f("SETTINGS.COLLAPSE_JOB_ERROR"),id:"collapse-job-error",checked:j,onCheckedChange:e=>N({collapseJobError:e})}),(0,t.jsx)(A,{label:f("SETTINGS.USE_COLLAPSIBLE_JSON"),id:"use-collapsible-json",checked:x,onCheckedChange:e=>N({useCollapsibleJson:e})}),x&&(0,t.jsx)(d.F,{label:f("SETTINGS.DEFAULT_COLLAPSE_DEPTH"),id:"default-collapse-depth",value:m,type:"number",min:"0",max:"10",onChange:e=>N({defaultCollapseDepth:Math.max(0,Math.min(10,+e.target.value))})}),(0,t.jsx)(A,{label:f("SETTINGS.DARK_MODE"),id:"dark-mode",checked:g,onCheckedChange:e=>N({darkMode:e})})]})}},15510(e,a,l){l.d(a,{d:()=>s,i:()=>i});var t=l(40555),n=l(14041),r=l(40783);let s=["Data","Progress","Options","Logs","Error","Timeline"];function i(e){let[a,l]=(0,n.useState)([]),{defaultJobTab:i}=(0,r.C)(),[o,d]=(0,n.useState)(a.find(e=>e===i)||a[0]);return(0,n.useEffect)(()=>{let a=s.filter(e=>"Error"!==e&&"Timeline"!==e);a=e.currentStatus===t.STATUSES.failed?["Error",...a]:[...a,"Error"],e.withTimeline&&a.push("Timeline"),l(a)},[e.currentStatus,e.withTimeline]),(0,n.useEffect)(()=>{d(a.includes(i)?i:a[0])},[i,a]),{tabs:null==a?void 0:a.map(e=>({title:e,isActive:e===o,selectTab:()=>d(e)})),selectedTab:o}}}}]);
|