bunqueue-dashboard 0.0.47 → 1.0.1
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/README.md +6 -6
- package/agent/managedTarget.ts +3 -1
- package/agent/manager/commandLine.ts +33 -0
- package/agent/manager/errors.ts +4 -0
- package/agent/manager/process.ts +4 -2
- package/agent/manager.ts +1 -0
- package/agent/server/controlRoutes.ts +10 -0
- package/agent/server/controlStatus.ts +26 -5
- package/agent/server/errors.ts +3 -0
- package/agent/server/router.ts +2 -1
- package/agent/shutdown.ts +3 -2
- package/dist/.vite/manifest.json +537 -575
- package/dist/assets/AddJob-CiwWycYG.js +3 -0
- package/dist/assets/Alerts-DzKKoA9U.js +1 -0
- package/dist/assets/AreaChart-Db2UVnaK.js +1 -0
- package/dist/assets/Benchmark-CHYDL31K.js +1 -0
- package/dist/assets/BulkAddJobs-GRMVnf0j.js +5 -0
- package/dist/assets/Button-_aSJvRoW.js +1 -0
- package/dist/assets/Card-egIDLwVk.js +1 -0
- package/dist/assets/Cron-XL0PdUEc.js +1 -0
- package/dist/assets/CronManager-Cqtg9Zr8.js +1 -0
- package/dist/assets/{Database-DV2pcDLL.js → Database-BoxVpjts.js} +3 -3
- package/dist/assets/Diagnostics-B3QSQuFF.js +1 -0
- package/dist/assets/Dlq-DHOfgORa.js +1 -0
- package/dist/assets/DlqControl-BY1e55-x.js +1 -0
- package/dist/assets/DlqPro-CfwKDcpc.js +1 -0
- package/dist/assets/Fleet-Bkbq0dFB.js +1 -0
- package/dist/assets/Flows-CDCQrPit.js +2 -0
- package/dist/assets/JobInspector-Bw3Gs1Iy.js +2 -0
- package/dist/assets/Jobs-IrlneOy6.js +1 -0
- package/dist/assets/JobsPro-vlPd6Ows.js +1 -0
- package/dist/assets/Logs-DG7cK-tF.js +1 -0
- package/dist/assets/LogsPro-ClSqFKys.js +1 -0
- package/dist/assets/{McpServer-fVy27Mof.js → McpServer-DoNFY0Pj.js} +1 -1
- package/dist/assets/{Metrics-Ba46pdzT.js → Metrics-BkePZiCZ.js} +1 -1
- package/dist/assets/MetricsPro-ooSvpQ3H.js +1 -0
- package/dist/assets/{Overview-DV2qo5v3.js → Overview-CuWmPRra.js} +1 -1
- package/dist/assets/{PageHeader-CvIyaFOO.js → PageHeader-CQzNsw8r.js} +1 -1
- package/dist/assets/Pagination-CSkzhNW6.js +1 -0
- package/dist/assets/QueueActions-BBxRt-t0.js +1 -0
- package/dist/assets/QueueControl-C01l6bBJ.js +1 -0
- package/dist/assets/QueueDetail-gSf9Tb7G.js +1 -0
- package/dist/assets/QueueDetailPro-BKszqI0M.js +1 -0
- package/dist/assets/Queues-BAg2nSz0.js +1 -0
- package/dist/assets/QueuesOverview-BLSjiYsA.js +1 -0
- package/dist/assets/{S3Backup-DNABHR2Q.js → S3Backup-Ci4dJPP_.js} +1 -1
- package/dist/assets/S3BackupPro-DcjlrzC5.js +3 -0
- package/dist/assets/ServerControl-SiZBNo9P.js +3 -0
- package/dist/assets/Settings-DR_iqW0T.js +1 -0
- package/dist/assets/StatusBadge-DereLzOj.js +1 -0
- package/dist/assets/{Usage-1KxG1mJ9.js → Usage-ZWfB7PcR.js} +1 -1
- package/dist/assets/UsagePro-BjdeS2zb.js +1 -0
- package/dist/assets/Webhooks-BonYUgMo.js +1 -0
- package/dist/assets/Workers-C1h6hCPp.js +1 -0
- package/dist/assets/WorkersPro-B0f_Nfdz.js +1 -0
- package/dist/assets/Workflows-CqZZ96EK.js +1 -0
- package/dist/assets/{api-BgWE-705.js → api-D9aT0ND7.js} +1 -1
- package/dist/assets/bq-DR2BTISO.js +1 -0
- package/dist/assets/classicJobsData-Csj4iihY.js +1 -0
- package/dist/assets/connectionStore-CVjQyIZv.js +1 -0
- package/dist/assets/controlConnectionEpoch-ChAeMMLk.js +1 -0
- package/dist/assets/feedback-CtGN_kqB.js +1 -0
- package/dist/assets/form-DG3X6cLL.js +1 -0
- package/dist/assets/{icons-BVzwsfbG.js → icons-DH9SS1DA.js} +1 -1
- package/dist/assets/index-Bat1DN5U.js +8 -0
- package/dist/assets/react-vendor-CFL9l8LK.js +11 -0
- package/dist/assets/{cn-zFEt5SO8.js → rolldown-runtime-QTnfLwEv.js} +1 -1
- package/dist/assets/{toastStore-IZn6OPLZ.js → toastStore-XmMX7A5W.js} +1 -1
- package/dist/assets/useControlActionGuard-1i7aFA7E.js +1 -0
- package/dist/assets/usePolledData-CEyyLRYa.js +1 -0
- package/dist/assets/useServerActionGuard-CUx8TOAC.js +1 -0
- package/dist/assets/useThroughputSeries-CeFx-Mwq.js +1 -0
- package/dist/index.html +14 -14
- package/package.json +10 -7
- package/scripts/embedded.gen.ts +152 -162
- package/scripts/serveHandler.ts +28 -1
- package/dist/assets/AddJob-FNaPbs_V.js +0 -3
- package/dist/assets/Alerts-vzIYtFpW.js +0 -1
- package/dist/assets/AreaChart-DEAalJ6P.js +0 -1
- package/dist/assets/Benchmark-C16tT4pF.js +0 -1
- package/dist/assets/BulkAddJobs-IiL1uud0.js +0 -5
- package/dist/assets/Button-Ch1W94fJ.js +0 -1
- package/dist/assets/Card-CWxrC8OY.js +0 -1
- package/dist/assets/CopilotPanel-FlAW3RlL.js +0 -44
- package/dist/assets/Cron-1DZTZWXO.js +0 -1
- package/dist/assets/CronManager-B6xLLgI5.js +0 -1
- package/dist/assets/Diagnostics-B6apZrC5.js +0 -1
- package/dist/assets/Dlq-MRmkQrNC.js +0 -1
- package/dist/assets/DlqControl-DNJPVOTF.js +0 -1
- package/dist/assets/DlqPro-CwtTDwGN.js +0 -1
- package/dist/assets/Fleet-Bdrj9bLI.js +0 -1
- package/dist/assets/Flows-1dC8F_wx.js +0 -2
- package/dist/assets/JobInspector-Ct9Ga-UT.js +0 -2
- package/dist/assets/Jobs-Chqv0RuL.js +0 -1
- package/dist/assets/JobsPro-CLzOhKAL.js +0 -1
- package/dist/assets/Logs-C5PNP9Wq.js +0 -1
- package/dist/assets/LogsPro-B3KwTSsn.js +0 -1
- package/dist/assets/MetricsPro-B9rD_KQc.js +0 -1
- package/dist/assets/Pagination-x-Cwgrul.js +0 -1
- package/dist/assets/QueueActions-BWnmNEqV.js +0 -1
- package/dist/assets/QueueControl-DqBvuDnF.js +0 -1
- package/dist/assets/QueueDetail-COSH9bJl.js +0 -1
- package/dist/assets/QueueDetailPro-ClKtyHIf.js +0 -1
- package/dist/assets/Queues-D2-R8nYh.js +0 -1
- package/dist/assets/QueuesOverview-tokquA3g.js +0 -1
- package/dist/assets/S3BackupPro-CDX5WQUY.js +0 -3
- package/dist/assets/ServerControl-BmccMNW9.js +0 -3
- package/dist/assets/Settings-UcujwvKv.js +0 -1
- package/dist/assets/StatusBadge-BoOVTnKu.js +0 -1
- package/dist/assets/UsagePro-BGLufsE7.js +0 -1
- package/dist/assets/Webhooks-DT2LK17V.js +0 -1
- package/dist/assets/Workers-BX1qspaQ.js +0 -1
- package/dist/assets/WorkersPro-BsUQVgQZ.js +0 -1
- package/dist/assets/Workflows-DZZA6aGW.js +0 -1
- package/dist/assets/bq-F5BbTG1T.js +0 -1
- package/dist/assets/connectionStore-BJLihGaC.js +0 -1
- package/dist/assets/controlConnectionEpoch-CZsS0wAb.js +0 -1
- package/dist/assets/dist-1f1fMHVO.js +0 -11
- package/dist/assets/dist-BlWBaCN6.js +0 -11
- package/dist/assets/dist-DZL8soAh.js +0 -79
- package/dist/assets/dist-DjvZiKhB.js +0 -2
- package/dist/assets/dist-DpZcbP9W.js +0 -11
- package/dist/assets/feedback-QDN1AsYt.js +0 -1
- package/dist/assets/form-C4oby9pI.js +0 -1
- package/dist/assets/index-8Ii-_Rml.js +0 -8
- package/dist/assets/react-vendor-CvwrP0tU.js +0 -11
- package/dist/assets/useControlActionGuard-B-bzKZKI.js +0 -1
- package/dist/assets/usePolledData-0CVelkl2.js +0 -1
- package/dist/assets/useServerActionGuard-uGePilQQ.js +0 -1
- package/dist/assets/useThroughputSeries-DgO8uicf.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-CFL9l8LK.js";import{n,t as r}from"./controlConnectionEpoch-ChAeMMLk.js";var i=e(t(),1),a=new Map;function o(e){let t=n(),o=`${t}\u0000${e}`,s=(0,i.useRef)(!1),c=(0,i.useRef)(0),l=(0,i.useRef)(o);return l.current!==o&&(l.current=o,c.current+=1),(0,i.useEffect)(()=>(s.current=!0,()=>{s.current=!1,c.current+=1}),[]),{scopeKey:o,begin:(e=`action`)=>{let n=[...new Set(typeof e==`string`?[e]:e)],i=n.map(e=>`${t}\u0000${e}`);if(!s.current||n.length===0||l.current!==o||r()!==t||i.some(e=>a.has(e)))return null;let u=Symbol(`control-action`);for(let e of i)a.set(e,u);let d=c.current,f=()=>s.current&&c.current===d&&l.current===o&&r()===t;return{isCurrent:f,finish:()=>{let e=f();for(let e of i)a.get(e)===u&&a.delete(e);return e}}}}}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-CFL9l8LK.js";import{o as n}from"./connectionStore-CVjQyIZv.js";var r=e(t(),1);function i(e){let t=!0;return()=>t?(t=!1,!0):!e()}function a(e,t=[],a={}){let o=n(e=>e.refreshMs),s=n(e=>JSON.stringify([e.activeProfileId,e.baseUrl,e.agentBaseUrl,e.token,e.agentToken])),c=a.intervalMs??o,l=(0,r.useRef)(null),u=(0,r.useRef)(0),d=[s,...t];(l.current===null||l.current.length!==d.length||l.current.some((e,t)=>!Object.is(e,d[t])))&&(l.current=d,u.current+=1);let f=u.current,[p,m]=(0,r.useState)(null),[h,g]=(0,r.useState)(null),[_,v]=(0,r.useState)(!0),y=(0,r.useRef)(e);y.current=e;let b=(0,r.useRef)(!0),x=(0,r.useRef)(0),S=(0,r.useRef)(void 0),C=(0,r.useRef)(!0),w=(0,r.useRef)(!1),T=(0,r.useRef)(0),E=(0,r.useRef)(0),D=(0,r.useRef)(()=>Promise.resolve()),O=(0,r.useCallback)(async(e,t,n)=>{try{let r=await y.current(n);if(!b.current||e!==x.current)return;let i;try{i=JSON.stringify(r)}catch{i=String(Math.random())}i===S.current?T.current=t:(S.current=i,T.current=t,m(r)),w.current&&(w.current=!1,E.current=0,g(null))}catch(n){if(!b.current||e!==x.current)return;w.current=!0,E.current=t,g(n)}finally{b.current&&e===x.current&&C.current&&(C.current=!1,v(!1))}},[]),k=(0,r.useCallback)(()=>D.current(),[]);(0,r.useEffect)(()=>{b.current=!0;let e=++x.current,t=new AbortController;S.current=void 0,C.current=!0,m(null),v(!0),w.current&&(w.current=!1,g(null));let n=null,r=!1,a=!1,o=!1,s=[],l=()=>globalThis.document?.hidden??!1,u=i(l),d=()=>{n!==null&&clearTimeout(n),n=null},p=()=>{r||(d(),n=setTimeout(()=>{n=null,_(!1)},c))},h=async()=>{a=!0;try{await O(e,f,t.signal)}finally{if(a=!1,!r)if(o){o=!1;let e=s;s=[],_(!0).finally(()=>{for(let t of e)t()})}else p()}};function _(e){return r?Promise.resolve():a?e?(o=!0,new Promise(e=>s.push(e))):Promise.resolve():(d(),!e&&!u()?(p(),Promise.resolve()):h())}let y=()=>_(!0);D.current=y,_(!1);let T=()=>{l()||r||a||_(!0)};return typeof document<`u`&&document.addEventListener(`visibilitychange`,T),()=>{r=!0,b.current=!1,t.abort(),d();for(let e of s)e();s=[],D.current===y&&(D.current=()=>Promise.resolve()),x.current===e&&(x.current+=1),typeof document<`u`&&document.removeEventListener(`visibilitychange`,T)}},[c,f,O]);let A=T.current===f,j=E.current===f;return{data:A?p:null,error:j?h:null,loading:A||j?_:!0,refetch:k}}export{a as n,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-CFL9l8LK.js";import{a as n,o as r}from"./connectionStore-CVjQyIZv.js";var i=e(t(),1),a=new Map;function o(){let e=r.getState().token.trim();return JSON.stringify([n(),e])}var s=0,c=o();r.subscribe(()=>{let e=o();e!==c&&(c=e,s+=1)});function l(e,t=`Operation`){if(typeof e!=`object`||!e||e.ok!==!0)throw Error(`${t} returned a malformed success response`)}function u(e){r(e=>`${e.baseUrl}\u0000${e.token}`);let t=o(),n=s,c=JSON.stringify([n,e]),l=(0,i.useRef)(!1),u=(0,i.useRef)(0),d=(0,i.useRef)(c);return d.current!==c&&(d.current=c,u.current+=1),(0,i.useEffect)(()=>{l.current=!0;let e=o(),t=r.subscribe(()=>{let t=o();t!==e&&(e=t,u.current+=1)});return()=>{l.current=!1,u.current+=1,t()}},[]),{scopeKey:c,begin:(r=`action`)=>{let i=[...new Set(typeof r==`string`?[r]:r)],f=i.map(t=>JSON.stringify([n,e,t]));if(!l.current||i.length===0||d.current!==c||s!==n||o()!==t||f.some(e=>a.has(e)))return null;let p=Symbol(`server-action`);for(let e of f)a.set(e,p);let m=u.current,h=()=>l.current&&u.current===m&&d.current===c&&s===n&&o()===t;return{isCurrent:h,finish:()=>{let e=h();for(let e of f)a.get(e)===p&&a.delete(e);return e}}}}}export{o as n,u as r,l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{g as t}from"./react-vendor-CFL9l8LK.js";import{o as n}from"./connectionStore-CVjQyIZv.js";import{t as r}from"./bq-DR2BTISO.js";import{t as i}from"./usePolledData-CEyyLRYa.js";var a=e(t(),1),o=1e3,s={push:[],complete:[],fail:[],depth:[]},c=()=>typeof performance<`u`?performance.now():Date.now(),l=(e,t)=>`${e}\u0000${t}`;function u(e=60){let t=l(n(e=>e.baseUrl),n(e=>e.token)),[u,d]=(0,a.useState)(s),[f,p]=(0,a.useState)(null),[m,h]=(0,a.useState)(null),g=(0,a.useRef)(0),_=(0,a.useRef)(0),v=(0,a.useRef)(t),y=v.current===t;return(0,a.useEffect)(()=>{let n=++g.current,a=new AbortController,l=!1;v.current!==t&&(v.current=t,d(s),p(null),h(null),_.current=0);let u=i(()=>globalThis.document?.hidden??!1),f=async()=>{if(l||!u())return;l=!0;let t=c();try{let[i,c]=await Promise.all([r.overview({signal:a.signal}),r.stats({signal:a.signal})]);if(a.signal.aborted||g.current!==n)return;let l=i?.stats,u=i?.throughput,f=c?.stats;if(!l||!u||!f)throw Error(`malformed telemetry body`);if(![l.waiting,l.active,l.delayed,l.completed,l.dlq,l.totalPushed,l.totalPulled,l.totalCompleted,l.totalFailed,l.uptime,u.pushPerSec,u.completePerSec,u.failPerSec,f.waiting,f.prioritized,f.active,f.delayed,f[`waiting-children`]].every(e=>typeof e==`number`&&Number.isFinite(e)))throw Error(`malformed telemetry numeric metrics`);let m=u.pushPerSec,v=u.completePerSec,y=u.failPerSec,b=f.waiting+f.prioritized+f.active+f.delayed+f[`waiting-children`],x=_.current>0&&t-_.current>4*o;_.current=t,p(i),h(null),d(t=>{let n=x?s:t;return{push:[...n.push,m].slice(-e),complete:[...n.complete,v].slice(-e),fail:[...n.fail,y].slice(-e),depth:[...n.depth,b].slice(-e)}})}catch(e){!a.signal.aborted&&g.current===n&&h(e)}finally{l=!1}};f();let m=setInterval(f,o);return()=>{clearInterval(m),a.abort(),g.current===n&&(g.current+=1)}},[e,t]),y?{...u,latest:f,error:m}:{...s,latest:null,error:null}}function d(e,t=o){if(e.length<2)return{slope:0,label:`steady`,draining:!1};let n=e.length,r=(n-1)/2,i=e.reduce((e,t)=>e+t,0)/n,a=0,s=0;for(let t=0;t<n;t++)a+=(t-r)*(e[t]-i),s+=(t-r)**2;let c=s===0?0:a/s,l=t>0?o/t*c:c,u=l<-.05;return{slope:l,label:u?`draining`:l>.05?`accumulating`:`steady`,draining:u}}export{u as n,d as t};
|
package/dist/index.html
CHANGED
|
@@ -49,21 +49,21 @@
|
|
|
49
49
|
content="Fully drive a bunqueue server from one UI: queues, jobs, DLQ, cron, webhooks, workers, and start/stop/restart. Live demo, no signup."
|
|
50
50
|
/>
|
|
51
51
|
<meta name="twitter:image" content="https://egeominotti.github.io/bunqueue-dashboard/og.png" />
|
|
52
|
-
<script type="module" crossorigin src="./assets/index-
|
|
53
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
54
|
-
<link rel="modulepreload" crossorigin href="./assets/react-vendor-
|
|
55
|
-
<link rel="modulepreload" crossorigin href="./assets/connectionStore-
|
|
52
|
+
<script type="module" crossorigin src="./assets/index-Bat1DN5U.js"></script>
|
|
53
|
+
<link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-QTnfLwEv.js">
|
|
54
|
+
<link rel="modulepreload" crossorigin href="./assets/react-vendor-CFL9l8LK.js">
|
|
55
|
+
<link rel="modulepreload" crossorigin href="./assets/connectionStore-CVjQyIZv.js">
|
|
56
56
|
<link rel="modulepreload" crossorigin href="./assets/upstreamPaths-DQeKSxGc.js">
|
|
57
|
-
<link rel="modulepreload" crossorigin href="./assets/bq-
|
|
58
|
-
<link rel="modulepreload" crossorigin href="./assets/toastStore-
|
|
59
|
-
<link rel="modulepreload" crossorigin href="./assets/icons-
|
|
60
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
61
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
62
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
63
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
64
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
65
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
66
|
-
<link rel="modulepreload" crossorigin href="./assets/PageHeader-
|
|
57
|
+
<link rel="modulepreload" crossorigin href="./assets/bq-DR2BTISO.js">
|
|
58
|
+
<link rel="modulepreload" crossorigin href="./assets/toastStore-XmMX7A5W.js">
|
|
59
|
+
<link rel="modulepreload" crossorigin href="./assets/icons-DH9SS1DA.js">
|
|
60
|
+
<link rel="modulepreload" crossorigin href="./assets/StatusBadge-DereLzOj.js">
|
|
61
|
+
<link rel="modulepreload" crossorigin href="./assets/api-D9aT0ND7.js">
|
|
62
|
+
<link rel="modulepreload" crossorigin href="./assets/usePolledData-CEyyLRYa.js">
|
|
63
|
+
<link rel="modulepreload" crossorigin href="./assets/Button-_aSJvRoW.js">
|
|
64
|
+
<link rel="modulepreload" crossorigin href="./assets/Card-egIDLwVk.js">
|
|
65
|
+
<link rel="modulepreload" crossorigin href="./assets/feedback-CtGN_kqB.js">
|
|
66
|
+
<link rel="modulepreload" crossorigin href="./assets/PageHeader-CQzNsw8r.js">
|
|
67
67
|
<link rel="modulepreload" crossorigin href="./assets/format-Cg7VCIZW.js">
|
|
68
68
|
<link rel="stylesheet" crossorigin href="./assets/index-C9yGKhQ8.css">
|
|
69
69
|
</head>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunqueue-dashboard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Web dashboard for a bunqueue server (queues, jobs, DLQ, cron, metrics, workers, live activity). Run with `bunx bunqueue-dashboard` (requires Bun 1.4.2).",
|
|
6
6
|
"packageManager": "bun@1.4.2",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"format:check": "oxfmt --check .",
|
|
92
92
|
"check": "bun run lint && bun run format:check",
|
|
93
93
|
"check:fix": "bun run lint:fix && bun run format",
|
|
94
|
-
"audit:high": "bun audit --audit-level=high
|
|
94
|
+
"audit:high": "bun audit --audit-level=high",
|
|
95
95
|
"quality": "bun run version:check && bun run architecture && bun run check && bun run build && bun run size && bun run docs:build && bun run test:coverage && bun run test:e2e && bun run test:package && bun run test:runtime && bun run test:soak && bun run audit:high",
|
|
96
96
|
"typecheck:e2e": "tsc -p tsconfig.e2e.json",
|
|
97
97
|
"test:e2e:browser:managed": "bun run build && bun scripts/gen-embed.ts && playwright test -c playwright.managed.config.ts",
|
|
@@ -117,13 +117,13 @@
|
|
|
117
117
|
"bun-types": "1.4.2",
|
|
118
118
|
"bunqueue-v2-9-2": "npm:bunqueue@2.9.2",
|
|
119
119
|
"happy-dom": "^20.10.6",
|
|
120
|
-
"mermaid": "^11.
|
|
120
|
+
"mermaid": "^11.17.2",
|
|
121
121
|
"oxfmt": "^0.63.0",
|
|
122
122
|
"oxlint": "^1.78.0",
|
|
123
123
|
"oxlint-tsgolint": "^7.0.2001",
|
|
124
124
|
"react": "^19.2.7",
|
|
125
125
|
"react-dom": "^19.2.7",
|
|
126
|
-
"react-router-dom": "^7.18.
|
|
126
|
+
"react-router-dom": "^7.18.4",
|
|
127
127
|
"tailwindcss": "^4.3.2",
|
|
128
128
|
"typescript": "^6.0.3",
|
|
129
129
|
"vite": "^8.1.3",
|
|
@@ -134,9 +134,12 @@
|
|
|
134
134
|
"zustand": "^5.0.14"
|
|
135
135
|
},
|
|
136
136
|
"overrides": {
|
|
137
|
-
"brace-expansion": "^5.0.
|
|
138
|
-
"dompurify": "^3.4.
|
|
139
|
-
"
|
|
137
|
+
"brace-expansion": "^5.0.12",
|
|
138
|
+
"dompurify": "^3.4.16",
|
|
139
|
+
"fast-uri": "^3.1.8",
|
|
140
|
+
"ip-address": "^10.7.2",
|
|
141
|
+
"js-yaml": "^3.15.2",
|
|
142
|
+
"markdown-it": "^14.3.2",
|
|
140
143
|
"nanoid": "^3.3.18",
|
|
141
144
|
"postcss": "^8.5.25"
|
|
142
145
|
},
|
package/scripts/embedded.gen.ts
CHANGED
|
@@ -1,169 +1,159 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
// AUTO-GENERATED by scripts/gen-embed.ts — do not edit, not committed.
|
|
3
|
-
import f0 from "../dist
|
|
3
|
+
import f0 from "../dist/favicon.svg" with { type: 'file' };
|
|
4
4
|
import f1 from "../dist/og.png" with { type: 'file' };
|
|
5
|
-
import f2 from "../dist/
|
|
6
|
-
import f3 from "../dist/
|
|
7
|
-
import f4 from "../dist/assets/
|
|
8
|
-
import f5 from "../dist/assets/
|
|
9
|
-
import f6 from "../dist/assets/
|
|
10
|
-
import f7 from "../dist/assets/
|
|
11
|
-
import f8 from "../dist/assets/
|
|
12
|
-
import f9 from "../dist/assets/
|
|
13
|
-
import f10 from "../dist/assets/
|
|
14
|
-
import f11 from "../dist/assets/
|
|
15
|
-
import f12 from "../dist/assets/
|
|
16
|
-
import f13 from "../dist/assets/
|
|
17
|
-
import f14 from "../dist/assets/
|
|
18
|
-
import f15 from "../dist/assets/
|
|
19
|
-
import f16 from "../dist/assets/
|
|
20
|
-
import f17 from "../dist/assets/
|
|
21
|
-
import f18 from "../dist/assets/
|
|
22
|
-
import f19 from "../dist/assets/
|
|
23
|
-
import f20 from "../dist/assets/
|
|
24
|
-
import f21 from "../dist/assets/
|
|
25
|
-
import f22 from "../dist/assets/
|
|
26
|
-
import f23 from "../dist/assets/
|
|
27
|
-
import f24 from "../dist/assets/
|
|
28
|
-
import f25 from "../dist/assets/
|
|
29
|
-
import f26 from "../dist/assets/
|
|
30
|
-
import f27 from "../dist/assets/
|
|
31
|
-
import f28 from "../dist/assets/
|
|
32
|
-
import f29 from "../dist/assets/
|
|
33
|
-
import f30 from "../dist/assets/
|
|
34
|
-
import f31 from "../dist/assets/
|
|
35
|
-
import f32 from "../dist/assets/
|
|
36
|
-
import f33 from "../dist/assets/
|
|
37
|
-
import f34 from "../dist/assets/
|
|
38
|
-
import f35 from "../dist/assets/
|
|
39
|
-
import f36 from "../dist/assets/
|
|
40
|
-
import f37 from "../dist/assets/
|
|
41
|
-
import f38 from "../dist/assets/
|
|
42
|
-
import f39 from "../dist/assets/
|
|
43
|
-
import f40 from "../dist/assets/
|
|
44
|
-
import f41 from "../dist/assets/
|
|
45
|
-
import f42 from "../dist/assets/
|
|
46
|
-
import f43 from "../dist/assets/
|
|
47
|
-
import f44 from "../dist/assets/
|
|
48
|
-
import f45 from "../dist/assets/
|
|
49
|
-
import f46 from "../dist/assets/
|
|
50
|
-
import f47 from "../dist/assets/
|
|
51
|
-
import f48 from "../dist/assets/
|
|
52
|
-
import f49 from "../dist/assets/
|
|
53
|
-
import f50 from "../dist/assets/
|
|
54
|
-
import f51 from "../dist/assets/
|
|
55
|
-
import f52 from "../dist/assets/
|
|
56
|
-
import f53 from "../dist/assets/
|
|
57
|
-
import f54 from "../dist/assets/
|
|
58
|
-
import f55 from "../dist/assets/
|
|
59
|
-
import f56 from "../dist/assets/
|
|
60
|
-
import f57 from "../dist/assets/
|
|
61
|
-
import f58 from "../dist/assets/
|
|
62
|
-
import f59 from "../dist/assets/
|
|
63
|
-
import f60 from "../dist/assets/
|
|
64
|
-
import f61 from "../dist/assets/
|
|
65
|
-
import f62 from "../dist/assets/
|
|
66
|
-
import f63 from "../dist/assets/
|
|
67
|
-
import f64 from "../dist/assets/
|
|
68
|
-
import f65 from "../dist/assets/
|
|
69
|
-
import f66 from "../dist/assets/
|
|
70
|
-
import f67 from "../dist/assets/
|
|
71
|
-
import f68 from "../dist/assets/
|
|
72
|
-
import f69 from "../dist/assets/
|
|
73
|
-
import f70 from "../dist/assets/
|
|
74
|
-
import f71 from "../dist/assets/
|
|
75
|
-
import f72 from "../dist/assets/
|
|
76
|
-
import f73 from "../dist/assets/
|
|
77
|
-
import f74 from "../dist/assets/
|
|
78
|
-
import f75 from "../dist/assets/
|
|
79
|
-
import f76 from "../dist/
|
|
80
|
-
import f77 from "../dist/assets/UsagePro-BGLufsE7.js" with { type: 'file' };
|
|
81
|
-
import f78 from "../dist/assets/Cron-1DZTZWXO.js" with { type: 'file' };
|
|
82
|
-
import f79 from "../dist/assets/Usage-1KxG1mJ9.js" with { type: 'file' };
|
|
83
|
-
import f80 from "../dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2" with { type: 'file' };
|
|
84
|
-
import f81 from "../dist/assets/Dlq-MRmkQrNC.js" with { type: 'file' };
|
|
5
|
+
import f2 from "../dist/.vite/manifest.json" with { type: 'file' };
|
|
6
|
+
import f3 from "../dist/assets/Database-BoxVpjts.js" with { type: 'file' };
|
|
7
|
+
import f4 from "../dist/assets/Jobs-IrlneOy6.js" with { type: 'file' };
|
|
8
|
+
import f5 from "../dist/assets/form-DG3X6cLL.js" with { type: 'file' };
|
|
9
|
+
import f6 from "../dist/assets/MetricsPro-ooSvpQ3H.js" with { type: 'file' };
|
|
10
|
+
import f7 from "../dist/assets/react-vendor-CFL9l8LK.js" with { type: 'file' };
|
|
11
|
+
import f8 from "../dist/assets/Workflows-CqZZ96EK.js" with { type: 'file' };
|
|
12
|
+
import f9 from "../dist/assets/controlConnectionEpoch-ChAeMMLk.js" with { type: 'file' };
|
|
13
|
+
import f10 from "../dist/assets/CronManager-Cqtg9Zr8.js" with { type: 'file' };
|
|
14
|
+
import f11 from "../dist/assets/QueueActions-BBxRt-t0.js" with { type: 'file' };
|
|
15
|
+
import f12 from "../dist/assets/connectionStore-CVjQyIZv.js" with { type: 'file' };
|
|
16
|
+
import f13 from "../dist/assets/Benchmark-CHYDL31K.js" with { type: 'file' };
|
|
17
|
+
import f14 from "../dist/assets/UsagePro-BjdeS2zb.js" with { type: 'file' };
|
|
18
|
+
import f15 from "../dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2" with { type: 'file' };
|
|
19
|
+
import f16 from "../dist/assets/ServerControl-SiZBNo9P.js" with { type: 'file' };
|
|
20
|
+
import f17 from "../dist/assets/toastStore-XmMX7A5W.js" with { type: 'file' };
|
|
21
|
+
import f18 from "../dist/assets/WorkersPro-B0f_Nfdz.js" with { type: 'file' };
|
|
22
|
+
import f19 from "../dist/assets/Queues-BAg2nSz0.js" with { type: 'file' };
|
|
23
|
+
import f20 from "../dist/assets/promisePool-BVfQ9n9Q.js" with { type: 'file' };
|
|
24
|
+
import f21 from "../dist/assets/useControlActionGuard-1i7aFA7E.js" with { type: 'file' };
|
|
25
|
+
import f22 from "../dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2" with { type: 'file' };
|
|
26
|
+
import f23 from "../dist/assets/Settings-DR_iqW0T.js" with { type: 'file' };
|
|
27
|
+
import f24 from "../dist/assets/JobInspector-Bw3Gs1Iy.js" with { type: 'file' };
|
|
28
|
+
import f25 from "../dist/assets/install-oydLpc1T.js" with { type: 'file' };
|
|
29
|
+
import f26 from "../dist/assets/QueueDetailPro-BKszqI0M.js" with { type: 'file' };
|
|
30
|
+
import f27 from "../dist/assets/QueueDetail-gSf9Tb7G.js" with { type: 'file' };
|
|
31
|
+
import f28 from "../dist/assets/QueueControl-C01l6bBJ.js" with { type: 'file' };
|
|
32
|
+
import f29 from "../dist/assets/PageHeader-CQzNsw8r.js" with { type: 'file' };
|
|
33
|
+
import f30 from "../dist/assets/index-C9yGKhQ8.css" with { type: 'file' };
|
|
34
|
+
import f31 from "../dist/assets/Button-_aSJvRoW.js" with { type: 'file' };
|
|
35
|
+
import f32 from "../dist/assets/bq-DR2BTISO.js" with { type: 'file' };
|
|
36
|
+
import f33 from "../dist/assets/Workers-C1h6hCPp.js" with { type: 'file' };
|
|
37
|
+
import f34 from "../dist/assets/exportFile-C7xhE8Yh.js" with { type: 'file' };
|
|
38
|
+
import f35 from "../dist/assets/api-D9aT0ND7.js" with { type: 'file' };
|
|
39
|
+
import f36 from "../dist/assets/Card-egIDLwVk.js" with { type: 'file' };
|
|
40
|
+
import f37 from "../dist/assets/Overview-CuWmPRra.js" with { type: 'file' };
|
|
41
|
+
import f38 from "../dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2" with { type: 'file' };
|
|
42
|
+
import f39 from "../dist/assets/Usage-ZWfB7PcR.js" with { type: 'file' };
|
|
43
|
+
import f40 from "../dist/assets/QueuesOverview-BLSjiYsA.js" with { type: 'file' };
|
|
44
|
+
import f41 from "../dist/assets/upstreamPaths-DQeKSxGc.js" with { type: 'file' };
|
|
45
|
+
import f42 from "../dist/assets/index-Bat1DN5U.js" with { type: 'file' };
|
|
46
|
+
import f43 from "../dist/assets/Fleet-Bkbq0dFB.js" with { type: 'file' };
|
|
47
|
+
import f44 from "../dist/assets/responses-BkR2JTH9.js" with { type: 'file' };
|
|
48
|
+
import f45 from "../dist/assets/StatusBadge-DereLzOj.js" with { type: 'file' };
|
|
49
|
+
import f46 from "../dist/assets/AreaChart-Db2UVnaK.js" with { type: 'file' };
|
|
50
|
+
import f47 from "../dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2" with { type: 'file' };
|
|
51
|
+
import f48 from "../dist/assets/Dlq-DHOfgORa.js" with { type: 'file' };
|
|
52
|
+
import f49 from "../dist/assets/Webhooks-BonYUgMo.js" with { type: 'file' };
|
|
53
|
+
import f50 from "../dist/assets/McpServer-DoNFY0Pj.js" with { type: 'file' };
|
|
54
|
+
import f51 from "../dist/assets/S3Backup-Ci4dJPP_.js" with { type: 'file' };
|
|
55
|
+
import f52 from "../dist/assets/BulkAddJobs-GRMVnf0j.js" with { type: 'file' };
|
|
56
|
+
import f53 from "../dist/assets/flowOperationPolicy-B2Etcb3f.js" with { type: 'file' };
|
|
57
|
+
import f54 from "../dist/assets/useServerActionGuard-CUx8TOAC.js" with { type: 'file' };
|
|
58
|
+
import f55 from "../dist/assets/flowMutationSafety-YKTHxqKv.js" with { type: 'file' };
|
|
59
|
+
import f56 from "../dist/assets/Metrics-BkePZiCZ.js" with { type: 'file' };
|
|
60
|
+
import f57 from "../dist/assets/Flows-CDCQrPit.js" with { type: 'file' };
|
|
61
|
+
import f58 from "../dist/assets/rolldown-runtime-QTnfLwEv.js" with { type: 'file' };
|
|
62
|
+
import f59 from "../dist/assets/DlqPro-CfwKDcpc.js" with { type: 'file' };
|
|
63
|
+
import f60 from "../dist/assets/useThroughputSeries-CeFx-Mwq.js" with { type: 'file' };
|
|
64
|
+
import f61 from "../dist/assets/S3BackupPro-DcjlrzC5.js" with { type: 'file' };
|
|
65
|
+
import f62 from "../dist/assets/icons-DH9SS1DA.js" with { type: 'file' };
|
|
66
|
+
import f63 from "../dist/assets/Cron-XL0PdUEc.js" with { type: 'file' };
|
|
67
|
+
import f64 from "../dist/assets/Logs-DG7cK-tF.js" with { type: 'file' };
|
|
68
|
+
import f65 from "../dist/assets/format-Cg7VCIZW.js" with { type: 'file' };
|
|
69
|
+
import f66 from "../dist/assets/feedback-CtGN_kqB.js" with { type: 'file' };
|
|
70
|
+
import f67 from "../dist/assets/JobsPro-vlPd6Ows.js" with { type: 'file' };
|
|
71
|
+
import f68 from "../dist/assets/classicJobsData-Csj4iihY.js" with { type: 'file' };
|
|
72
|
+
import f69 from "../dist/assets/usePolledData-CEyyLRYa.js" with { type: 'file' };
|
|
73
|
+
import f70 from "../dist/assets/Diagnostics-B3QSQuFF.js" with { type: 'file' };
|
|
74
|
+
import f71 from "../dist/assets/LogsPro-ClSqFKys.js" with { type: 'file' };
|
|
75
|
+
import f72 from "../dist/assets/Alerts-DzKKoA9U.js" with { type: 'file' };
|
|
76
|
+
import f73 from "../dist/assets/AddJob-CiwWycYG.js" with { type: 'file' };
|
|
77
|
+
import f74 from "../dist/assets/Pagination-CSkzhNW6.js" with { type: 'file' };
|
|
78
|
+
import f75 from "../dist/assets/DlqControl-BY1e55-x.js" with { type: 'file' };
|
|
79
|
+
import f76 from "../dist/index.html" with { type: 'file' };
|
|
85
80
|
|
|
86
81
|
export const ASSETS: Record<string, string> = {
|
|
87
|
-
"
|
|
82
|
+
"/favicon.svg": f0,
|
|
88
83
|
"/og.png": f1,
|
|
89
|
-
"/
|
|
90
|
-
"/
|
|
91
|
-
"/assets/
|
|
92
|
-
"/assets/
|
|
93
|
-
"/assets/
|
|
94
|
-
"/assets/
|
|
95
|
-
"/assets/
|
|
96
|
-
"/assets/
|
|
97
|
-
"/assets/
|
|
98
|
-
"/assets/
|
|
99
|
-
"/assets/
|
|
100
|
-
"/assets/
|
|
101
|
-
"/assets/
|
|
102
|
-
"/assets/
|
|
103
|
-
"/assets/
|
|
104
|
-
"/assets/
|
|
105
|
-
"/assets/
|
|
106
|
-
"/assets/
|
|
107
|
-
"/assets/
|
|
108
|
-
"/assets/
|
|
109
|
-
"/assets/
|
|
110
|
-
"/assets/
|
|
111
|
-
"/assets/
|
|
112
|
-
"/assets/
|
|
113
|
-
"/assets/
|
|
114
|
-
"/assets/
|
|
115
|
-
"/assets/
|
|
116
|
-
"/assets/
|
|
117
|
-
"/assets/
|
|
118
|
-
"/assets/
|
|
119
|
-
"/assets/
|
|
120
|
-
"/assets/
|
|
121
|
-
"/assets/
|
|
122
|
-
"/assets/
|
|
123
|
-
"/assets/
|
|
124
|
-
"/assets/
|
|
125
|
-
"/assets/
|
|
126
|
-
"/assets/
|
|
127
|
-
"/assets/
|
|
128
|
-
"/assets/
|
|
129
|
-
"/assets/
|
|
130
|
-
"/assets/
|
|
131
|
-
"/assets/
|
|
132
|
-
"/assets/
|
|
133
|
-
"/assets/
|
|
134
|
-
"/assets/
|
|
135
|
-
"/assets/
|
|
136
|
-
"/assets/
|
|
137
|
-
"/assets/
|
|
138
|
-
"/assets/
|
|
139
|
-
"/assets/
|
|
140
|
-
"/assets/
|
|
141
|
-
"/assets/
|
|
142
|
-
"/assets/
|
|
143
|
-
"/assets/
|
|
144
|
-
"/assets/
|
|
145
|
-
"/assets/
|
|
146
|
-
"/assets/
|
|
147
|
-
"/assets/
|
|
148
|
-
"/assets/
|
|
149
|
-
"/assets/
|
|
150
|
-
"/assets/
|
|
151
|
-
"/assets/
|
|
152
|
-
"/assets/
|
|
153
|
-
"/assets/
|
|
154
|
-
"/assets/
|
|
155
|
-
"/assets/
|
|
156
|
-
"/assets/
|
|
157
|
-
"/assets/
|
|
158
|
-
"/assets/
|
|
159
|
-
"/assets/
|
|
160
|
-
"/assets/
|
|
161
|
-
"/assets/
|
|
162
|
-
"/assets/
|
|
163
|
-
"/
|
|
164
|
-
"/assets/UsagePro-BGLufsE7.js": f77,
|
|
165
|
-
"/assets/Cron-1DZTZWXO.js": f78,
|
|
166
|
-
"/assets/Usage-1KxG1mJ9.js": f79,
|
|
167
|
-
"/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2": f80,
|
|
168
|
-
"/assets/Dlq-MRmkQrNC.js": f81,
|
|
84
|
+
"/.vite/manifest.json": f2,
|
|
85
|
+
"/assets/Database-BoxVpjts.js": f3,
|
|
86
|
+
"/assets/Jobs-IrlneOy6.js": f4,
|
|
87
|
+
"/assets/form-DG3X6cLL.js": f5,
|
|
88
|
+
"/assets/MetricsPro-ooSvpQ3H.js": f6,
|
|
89
|
+
"/assets/react-vendor-CFL9l8LK.js": f7,
|
|
90
|
+
"/assets/Workflows-CqZZ96EK.js": f8,
|
|
91
|
+
"/assets/controlConnectionEpoch-ChAeMMLk.js": f9,
|
|
92
|
+
"/assets/CronManager-Cqtg9Zr8.js": f10,
|
|
93
|
+
"/assets/QueueActions-BBxRt-t0.js": f11,
|
|
94
|
+
"/assets/connectionStore-CVjQyIZv.js": f12,
|
|
95
|
+
"/assets/Benchmark-CHYDL31K.js": f13,
|
|
96
|
+
"/assets/UsagePro-BjdeS2zb.js": f14,
|
|
97
|
+
"/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2": f15,
|
|
98
|
+
"/assets/ServerControl-SiZBNo9P.js": f16,
|
|
99
|
+
"/assets/toastStore-XmMX7A5W.js": f17,
|
|
100
|
+
"/assets/WorkersPro-B0f_Nfdz.js": f18,
|
|
101
|
+
"/assets/Queues-BAg2nSz0.js": f19,
|
|
102
|
+
"/assets/promisePool-BVfQ9n9Q.js": f20,
|
|
103
|
+
"/assets/useControlActionGuard-1i7aFA7E.js": f21,
|
|
104
|
+
"/assets/inter-latin-wght-normal-Dx4kXJAl.woff2": f22,
|
|
105
|
+
"/assets/Settings-DR_iqW0T.js": f23,
|
|
106
|
+
"/assets/JobInspector-Bw3Gs1Iy.js": f24,
|
|
107
|
+
"/assets/install-oydLpc1T.js": f25,
|
|
108
|
+
"/assets/QueueDetailPro-BKszqI0M.js": f26,
|
|
109
|
+
"/assets/QueueDetail-gSf9Tb7G.js": f27,
|
|
110
|
+
"/assets/QueueControl-C01l6bBJ.js": f28,
|
|
111
|
+
"/assets/PageHeader-CQzNsw8r.js": f29,
|
|
112
|
+
"/assets/index-C9yGKhQ8.css": f30,
|
|
113
|
+
"/assets/Button-_aSJvRoW.js": f31,
|
|
114
|
+
"/assets/bq-DR2BTISO.js": f32,
|
|
115
|
+
"/assets/Workers-C1h6hCPp.js": f33,
|
|
116
|
+
"/assets/exportFile-C7xhE8Yh.js": f34,
|
|
117
|
+
"/assets/api-D9aT0ND7.js": f35,
|
|
118
|
+
"/assets/Card-egIDLwVk.js": f36,
|
|
119
|
+
"/assets/Overview-CuWmPRra.js": f37,
|
|
120
|
+
"/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2": f38,
|
|
121
|
+
"/assets/Usage-ZWfB7PcR.js": f39,
|
|
122
|
+
"/assets/QueuesOverview-BLSjiYsA.js": f40,
|
|
123
|
+
"/assets/upstreamPaths-DQeKSxGc.js": f41,
|
|
124
|
+
"/assets/index-Bat1DN5U.js": f42,
|
|
125
|
+
"/assets/Fleet-Bkbq0dFB.js": f43,
|
|
126
|
+
"/assets/responses-BkR2JTH9.js": f44,
|
|
127
|
+
"/assets/StatusBadge-DereLzOj.js": f45,
|
|
128
|
+
"/assets/AreaChart-Db2UVnaK.js": f46,
|
|
129
|
+
"/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2": f47,
|
|
130
|
+
"/assets/Dlq-DHOfgORa.js": f48,
|
|
131
|
+
"/assets/Webhooks-BonYUgMo.js": f49,
|
|
132
|
+
"/assets/McpServer-DoNFY0Pj.js": f50,
|
|
133
|
+
"/assets/S3Backup-Ci4dJPP_.js": f51,
|
|
134
|
+
"/assets/BulkAddJobs-GRMVnf0j.js": f52,
|
|
135
|
+
"/assets/flowOperationPolicy-B2Etcb3f.js": f53,
|
|
136
|
+
"/assets/useServerActionGuard-CUx8TOAC.js": f54,
|
|
137
|
+
"/assets/flowMutationSafety-YKTHxqKv.js": f55,
|
|
138
|
+
"/assets/Metrics-BkePZiCZ.js": f56,
|
|
139
|
+
"/assets/Flows-CDCQrPit.js": f57,
|
|
140
|
+
"/assets/rolldown-runtime-QTnfLwEv.js": f58,
|
|
141
|
+
"/assets/DlqPro-CfwKDcpc.js": f59,
|
|
142
|
+
"/assets/useThroughputSeries-CeFx-Mwq.js": f60,
|
|
143
|
+
"/assets/S3BackupPro-DcjlrzC5.js": f61,
|
|
144
|
+
"/assets/icons-DH9SS1DA.js": f62,
|
|
145
|
+
"/assets/Cron-XL0PdUEc.js": f63,
|
|
146
|
+
"/assets/Logs-DG7cK-tF.js": f64,
|
|
147
|
+
"/assets/format-Cg7VCIZW.js": f65,
|
|
148
|
+
"/assets/feedback-CtGN_kqB.js": f66,
|
|
149
|
+
"/assets/JobsPro-vlPd6Ows.js": f67,
|
|
150
|
+
"/assets/classicJobsData-Csj4iihY.js": f68,
|
|
151
|
+
"/assets/usePolledData-CEyyLRYa.js": f69,
|
|
152
|
+
"/assets/Diagnostics-B3QSQuFF.js": f70,
|
|
153
|
+
"/assets/LogsPro-ClSqFKys.js": f71,
|
|
154
|
+
"/assets/Alerts-DzKKoA9U.js": f72,
|
|
155
|
+
"/assets/AddJob-CiwWycYG.js": f73,
|
|
156
|
+
"/assets/Pagination-CSkzhNW6.js": f74,
|
|
157
|
+
"/assets/DlqControl-BY1e55-x.js": f75,
|
|
158
|
+
"/index.html": f76,
|
|
169
159
|
};
|
package/scripts/serveHandler.ts
CHANGED
|
@@ -26,6 +26,33 @@ function assetContentType(pathname: string): string | undefined {
|
|
|
26
26
|
return dot === -1 ? undefined : ASSET_CONTENT_TYPES[pathname.slice(dot).toLowerCase()];
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
// Hop-by-hop and browser-scoped headers that must not reach BUNQUEUE_URL. The
|
|
30
|
+
// upstream Host must come from the target URL (fetch derives it) so host-routed
|
|
31
|
+
// proxies/ingresses in front of bunqueue still match; dashboard cookies stay
|
|
32
|
+
// on the dashboard origin. Authorization is forwarded on purpose.
|
|
33
|
+
const NON_FORWARDED_API_HEADERS = [
|
|
34
|
+
'host',
|
|
35
|
+
'cookie',
|
|
36
|
+
'connection',
|
|
37
|
+
'keep-alive',
|
|
38
|
+
'proxy-connection',
|
|
39
|
+
'te',
|
|
40
|
+
'trailer',
|
|
41
|
+
'transfer-encoding',
|
|
42
|
+
'upgrade',
|
|
43
|
+
];
|
|
44
|
+
|
|
45
|
+
export function upstreamHeaders(incoming: Headers): Headers {
|
|
46
|
+
const headers = new Headers(incoming);
|
|
47
|
+
// RFC 9110 §7.6.1: headers named in Connection are hop-by-hop as well.
|
|
48
|
+
for (const name of (headers.get('connection') ?? '').split(',')) {
|
|
49
|
+
const option = name.trim();
|
|
50
|
+
if (option) headers.delete(option);
|
|
51
|
+
}
|
|
52
|
+
for (const name of NON_FORWARDED_API_HEADERS) headers.delete(name);
|
|
53
|
+
return headers;
|
|
54
|
+
}
|
|
55
|
+
|
|
29
56
|
/** Static assets, the admin proxy, and the same-origin agent bridge. */
|
|
30
57
|
export function createServeHandler(opts: ServeHandlerOptions) {
|
|
31
58
|
const {
|
|
@@ -137,7 +164,7 @@ export function createServeHandler(opts: ServeHandlerOptions) {
|
|
|
137
164
|
try {
|
|
138
165
|
res = await fetch(target, {
|
|
139
166
|
method: req.method,
|
|
140
|
-
headers: req.headers,
|
|
167
|
+
headers: upstreamHeaders(req.headers),
|
|
141
168
|
body: req.body,
|
|
142
169
|
redirect: 'manual',
|
|
143
170
|
signal,
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./cn-zFEt5SO8.js";import{g as n,l as r,r as i,t as a}from"./react-vendor-CvwrP0tU.js";import{i as o}from"./upstreamPaths-DQeKSxGc.js";import{r as s,t as c}from"./bq-F5BbTG1T.js";import{t as l}from"./toastStore-IZn6OPLZ.js";import{n as u}from"./usePolledData-0CVelkl2.js";import{t as d}from"./Button-Ch1W94fJ.js";import{n as f,t as p}from"./Card-CWxrC8OY.js";import{t as m}from"./PageHeader-CvIyaFOO.js";import{a as h,n as g,o as _,t as v}from"./form-C4oby9pI.js";import{r as y}from"./useServerActionGuard-uGePilQQ.js";import{a as b,c as x,d as S,f as C,h as w,i as T,l as E,m as D,n as O,o as k,r as A,s as j,t as M,u as N}from"./responses-BkR2JTH9.js";var P=e(n(),1),F=a();function I({values:e,setValue:t,queueNames:n,queueDiscoveryError:r,onRetryQueues:i,jsonError:a,setJsonError:o}){return(0,F.jsxs)(p,{children:[(0,F.jsx)(f,{title:`Job`}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,F.jsxs)(v,{label:`Queue`,children:[(0,F.jsx)(g,{list:`queue-options`,"aria-label":`Queue`,name:`target-queue`,autoComplete:`off`,value:e.queue,onChange:e=>t(`queue`,e.target.value),placeholder:`queue name (existing or new)`}),(0,F.jsx)(`datalist`,{id:`queue-options`,children:n.map(e=>(0,F.jsx)(`option`,{value:e},e))})]}),(0,F.jsx)(v,{label:`Job name`,hint:`Worker routing name in Bunqueue 2.9.3; separate from the JSON payload.`,children:(0,F.jsx)(g,{name:`job-name`,autoComplete:`off`,maxLength:256,value:e.name,onChange:e=>t(`name`,e.target.value),placeholder:`default`})}),r&&(0,F.jsxs)(`p`,{role:`status`,className:`-mt-2 text-xs text-warning`,children:[`Existing queue suggestions unavailable — `,r.message,`. You can still enter a queue name manually.`,` `,(0,F.jsx)(`button`,{type:`button`,onClick:i,className:`font-medium underline underline-offset-2 hover:text-fg`,children:`Retry`})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(v,{label:`Data (JSON)`,children:(0,F.jsx)(`textarea`,{name:`job-data`,value:e.dataText,onChange:e=>t(`dataText`,e.target.value),onBlur:()=>{let t=w(e.dataText);o(t.ok?null:t.msg)},maxLength:D,spellCheck:!1,rows:7,className:`w-full rounded-lg border border-line bg-surface-2 p-3 font-mono text-sm text-fg focus:border-accent/60 focus:outline-none focus:ring-2 focus:ring-accent/30`})}),a&&(0,F.jsx)(`p`,{role:`alert`,className:`mt-2 text-xs text-danger`,children:a})]})]})]})}function L({values:e,setValue:t}){return(0,F.jsxs)(p,{children:[(0,F.jsx)(f,{title:`Options`}),(0,F.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 md:grid-cols-3`,children:[(0,F.jsx)(B,{label:e.groupId.trim()?`Group priority`:`Priority`,hint:e.groupId.trim()?`0 is highest within this group`:void 0,name:`priority`,value:e.priority,min:e.groupId.trim()?0:-1e6,max:e.groupId.trim()?k:1e6,placeholder:`0`,onChange:e=>t(`priority`,e)}),(0,F.jsx)(B,{label:`Delay (ms)`,name:`delay`,value:e.delay,min:0,max:T,placeholder:`0`,disabled:e.runAt.trim()!==``,onChange:e=>t(`delay`,e)}),(0,F.jsx)(v,{label:`Run at`,hint:e.runAt.trim()?`Overrides Delay — derived from this time (local time).`:`(local time)`,children:(0,F.jsx)(g,{type:`datetime-local`,name:`run-at`,value:e.runAt,onChange:e=>t(`runAt`,e.target.value)})}),(0,F.jsx)(B,{label:`Max attempts`,hint:`blank = server default`,name:`max-attempts`,value:e.maxAttempts,min:1,max:1e3,placeholder:`3`,onChange:e=>t(`maxAttempts`,e)}),(0,F.jsx)(B,{label:`Backoff (ms)`,hint:`blank = server default`,name:`backoff`,value:e.backoff,min:0,max:b,placeholder:`1000`,onChange:e=>t(`backoff`,e)}),(0,F.jsx)(v,{label:`Backoff strategy`,hint:`flat delay unless set`,children:(0,F.jsxs)(h,{name:`backoff-strategy`,value:e.backoffType,onChange:e=>t(`backoffType`,e.target.value),children:[(0,F.jsx)(`option`,{value:``,children:`flat`}),(0,F.jsx)(`option`,{value:`fixed`,children:`fixed`}),(0,F.jsx)(`option`,{value:`exponential`,children:`exponential`})]})}),(0,F.jsx)(B,{label:`Timeout (ms)`,name:`timeout`,value:e.timeout,min:0,max:b,placeholder:`—`,onChange:e=>t(`timeout`,e)}),(0,F.jsx)(B,{label:`TTL (ms)`,hint:`blank = no expiry`,name:`ttl`,value:e.ttl,min:0,max:T,placeholder:`—`,onChange:e=>t(`ttl`,e)}),(0,F.jsx)(v,{label:`Custom job ID`,children:(0,F.jsx)(g,{name:`custom-job-id`,value:e.jobId,onChange:e=>t(`jobId`,e.target.value),placeholder:`idempotency key`})})]}),(0,F.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-6`,children:[(0,F.jsx)(V,{label:`removeOnComplete`,checked:e.removeOnComplete,onChange:e=>t(`removeOnComplete`,e)}),(0,F.jsx)(V,{label:`removeOnFail`,checked:e.removeOnFail,onChange:e=>t(`removeOnFail`,e)}),(0,F.jsx)(V,{label:`durable`,checked:e.durable,onChange:e=>t(`durable`,e)}),(0,F.jsx)(V,{label:`lifo`,checked:e.lifo,onChange:e=>t(`lifo`,e)})]}),(0,F.jsx)(R,{values:e,setValue:t})]})}function R({values:e,setValue:t}){return(0,F.jsxs)(`div`,{className:`mt-4 border-t border-line pt-4`,children:[(0,F.jsx)(`div`,{className:`mb-3 text-[11px] uppercase tracking-wider text-faint`,children:`Advanced`}),(0,F.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 md:grid-cols-3`,children:[(0,F.jsx)(z,{label:`Tags`,hint:`comma-separated`,name:`tags`,value:e.tags,placeholder:`email, urgent`,onChange:e=>t(`tags`,e)}),(0,F.jsx)(z,{label:`Group ID`,name:`group-id`,value:e.groupId,placeholder:`—`,onChange:e=>t(`groupId`,e)}),(0,F.jsx)(B,{label:`Group max size`,hint:`Atomic pending-job cap (2.9.3)`,name:`group-max-size`,value:e.groupMaxSize,min:1,max:2**53-1,placeholder:`—`,onChange:e=>t(`groupMaxSize`,e)}),(0,F.jsx)(z,{label:`Unique key`,hint:`dedup key`,name:`unique-key`,value:e.uniqueKey,placeholder:`—`,onChange:e=>t(`uniqueKey`,e)}),(0,F.jsx)(z,{label:`Depends on`,hint:`parent job ids, comma-separated`,name:`depends-on`,value:e.dependsOn,placeholder:`job-id-1, job-id-2`,onChange:e=>t(`dependsOn`,e)}),(0,F.jsx)(`div`,{className:`col-span-2 md:col-span-3`,children:(0,F.jsx)(v,{label:`Repeat policy (JSON)`,hint:`v2.9.3-safe form: e.g. {"every":60000,"limit":10}. Use Cron Manager for cron patterns.`,children:(0,F.jsx)(`textarea`,{name:`repeat-policy`,value:e.repeatText,onChange:e=>t(`repeatText`,e.target.value),rows:2,spellCheck:!1,placeholder:`{"every": 60000}`,className:`w-full rounded-lg border border-line bg-surface-2 px-3 py-2 font-mono text-xs text-fg placeholder:text-faint focus:border-accent/60 focus:outline-none focus:ring-2 focus:ring-accent/30`})})})]})]})}function z({label:e,hint:t,name:n,value:r,placeholder:i,onChange:a}){return(0,F.jsx)(v,{label:e,hint:t,children:(0,F.jsx)(g,{name:n,value:r,onChange:e=>a(e.target.value),placeholder:i})})}function B({label:e,hint:t,name:n,value:r,min:i,max:a,placeholder:o,disabled:s,onChange:c}){return(0,F.jsx)(v,{label:e,hint:t,children:(0,F.jsx)(g,{type:`number`,min:i,max:a,step:1,name:n,value:r,onChange:e=>c(e.target.value),placeholder:o,disabled:s})})}function V({label:e,checked:t,onChange:n}){return(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(_,{checked:t,onChange:n,label:e}),(0,F.jsx)(`span`,{className:`font-mono text-xs text-muted`,children:e})]})}function H(e){let t=e?.options??{},n=j(t);return{queue:e?.queue??``,name:e?.name??`default`,dataText:e?.dataText??`{
|
|
2
|
-
"hello": "world"
|
|
3
|
-
}`,count:`1`,priority:x(t.priority),delay:``,runAt:``,maxAttempts:x(t.maxAttempts),backoff:n.backoff,timeout:x(t.timeout),ttl:n.ttl,jobId:``,removeOnComplete:t.removeOnComplete??!1,removeOnFail:t.removeOnFail??!1,durable:!1,lifo:!1,backoffType:n.backoffType,tags:n.tags,groupId:n.groupId,groupMaxSize:``,dependsOn:``,uniqueKey:``,repeatText:``}}function U(e,t=Date.now()){let n=e.queue.trim(),r=S(n);if(r)return W(r);let i=e.name.trim();if(!i||i.length>256)return W(`Job name must be a non-empty string of at most 256 characters`);let a=w(e.dataText);if(!a.ok)return{ok:!1,msg:a.msg,field:a.kind===`json`?`data`:`result`};let s=e.groupId.trim();if(s.length>256||s.includes(`\0`))return W(`Group ID must contain 1–256 characters and no NUL`);let c=E({priority:e.priority,delay:e.runAt.trim()?``:e.delay,maxAttempts:e.maxAttempts,backoff:e.backoff,timeout:e.timeout,ttl:e.ttl,groupMaxSize:e.groupMaxSize},!!s);if(!c.ok)return W(c.msg);if(c.options.groupMaxSize!==void 0&&!s)return W(`Group max size requires a Group ID`);let l=c.options.delay;if(e.runAt.trim()){let n=new Date(e.runAt).getTime();if(!Number.isFinite(n))return W(`Run at is not a valid date/time`);if(l=Math.max(0,n-t),l>31536e6)return W(`Run at must be within the next 365 days`)}let u=C(c.options.backoff,e.backoffType);if(!u.ok)return W(u.msg);let d=G(e.tags),f=G(e.dependsOn),p=e.jobId.trim();if(p){let e=o(p);if(e)return W(`Job ID: ${e}`)}for(let e of f){let t=o(e);if(t)return W(`Dependency ID "${e}": ${t}`)}let m=N(e.repeatText);if(!m.ok)return W(m.msg);let h=Number(e.count);return!Number.isSafeInteger(h)||h<1||h>1e4?W(`Count must be a whole number from 1 to 10000`):{ok:!0,target:n,count:h,body:{name:i,data:a.data,priority:c.options.priority,delay:l,maxAttempts:c.options.maxAttempts,backoff:u.backoff,timeout:c.options.timeout,ttl:c.options.ttl,jobId:p||void 0,removeOnComplete:e.removeOnComplete||void 0,removeOnFail:e.removeOnFail||void 0,durable:e.durable||void 0,lifo:e.lifo||void 0,tags:d.length?d:void 0,groupId:s||void 0,groupMaxSize:c.options.groupMaxSize,dependsOn:f.length?f:void 0,uniqueKey:e.uniqueKey.trim()||void 0,repeat:m.repeat}}}var W=e=>({ok:!1,msg:e,field:`result`}),G=e=>e.split(`,`).map(e=>e.trim()).filter(Boolean),K=t({AddJob:()=>q,MAX_JOB_DATA_BYTES:()=>MAX_JOB_DATA_BYTES,MAX_JOB_DATA_CHARS:()=>D});function q(){let{data:e,error:t,refetch:n}=u(()=>c.queues(),[],{intervalMs:3e4}),a=r().state?.clone,[o,f]=(0,P.useState)(()=>H(a)),[p,h]=(0,P.useState)(!1),[_,b]=(0,P.useState)(null),[x,S]=(0,P.useState)(null),C=y(`add-job`),w=(e,t)=>f(n=>({...n,[e]:t}));(0,P.useEffect)(()=>{h(!1),b(null),S(null)},[C.scopeKey]);let T=async()=>{b(null),S(null);let e=U(o);if(!e.ok){e.field===`data`?S(e.msg):b({ok:!1,msg:e.msg});return}let t=C.begin();if(!t)return;h(!0);let{target:n,body:r,count:i}=e;try{if(i===1&&r.groupMaxSize===void 0){let e=O(await c.addJob(n,r));if(!t.isCurrent())return;b({ok:!0,msg:`Accepted job ID ${e} (it may be an existing deduplicated job)`}),l.success(`Job submission accepted`,`${n} · ${e}`)}else{let e=Array.from({length:i},()=>r),a=s(e);if(a){t.isCurrent()&&b({ok:!1,msg:a});return}let o=M(await c.addJobsBulk(n,e),i);if(!t.isCurrent())return;let u=A(new Set(o).size,i);b(u),l.success(u.msg,`in ${n}`)}}catch(e){if(!t.isCurrent())return;b({ok:!1,msg:e.message}),l.error(`Add job failed`,e.message)}finally{t.finish()&&h(!1)}};return(0,F.jsxs)(`div`,{children:[(0,F.jsx)(m,{title:`Add Job`,description:`Enqueue a job with full options.`,actions:(0,F.jsx)(i,{to:`/jobs/bulk-add`,className:`rounded-lg border border-line px-3 py-1.5 text-sm text-muted hover:bg-surface-2 hover:text-fg`,children:`Bulk import`})}),a&&(0,F.jsx)(`div`,{className:`mb-4 flex items-center gap-2 rounded-lg border border-accent/30 bg-accent/[0.06] px-4 py-2 text-sm text-accent`,children:`Pre-filled from an existing job. Review the data and options, then enqueue a fresh job.`}),(0,F.jsxs)(`form`,{className:`grid grid-cols-1 gap-6 lg:grid-cols-2`,onSubmit:e=>{e.preventDefault(),T()},children:[(0,F.jsx)(I,{values:o,setValue:w,queueNames:(e?.queues??[]).map(e=>e.name),queueDiscoveryError:t,onRetryQueues:()=>void n(),jsonError:x,setJsonError:S}),(0,F.jsx)(L,{values:o,setValue:w}),(0,F.jsxs)(`div`,{className:`flex flex-wrap items-end gap-3 lg:col-span-2`,children:[(0,F.jsx)(`div`,{className:`w-28`,children:(0,F.jsx)(v,{label:`Count`,hint:`1–10000`,children:(0,F.jsx)(g,{type:`number`,min:1,max:1e4,step:1,name:`count`,value:o.count,onChange:e=>w(`count`,e.target.value)})})}),(0,F.jsx)(d,{type:`submit`,variant:`accent`,disabled:p,children:p?`Adding…`:`Add job`}),_&&(0,F.jsx)(`span`,{role:_.ok?`status`:`alert`,className:_.ok?`text-sm text-success`:`text-sm text-danger`,children:_.msg})]})]})]})}export{K as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./cn-zFEt5SO8.js";import{g as t,t as n}from"./react-vendor-CvwrP0tU.js";import{o as r}from"./connectionStore-BJLihGaC.js";import{O as i,r as a}from"./icons-BVzwsfbG.js";import{n as o,t as s}from"./Button-Ch1W94fJ.js";import{t as c}from"./Card-CWxrC8OY.js";import{i as l,t as u}from"./feedback-QDN1AsYt.js";import{t as d}from"./PageHeader-CvIyaFOO.js";import{l as f}from"./format-Cg7VCIZW.js";import{d as p,f as m,l as h,p as g,u as _}from"./index-8Ii-_Rml.js";import{a as v,n as y,o as b,t as x}from"./form-C4oby9pI.js";var S=e(t(),1),C=[`error_rate`,`p99_latency`,`waiting`,`failed`,`dlq`],w=[`>=`,`>`,`<=`,`<`],T=[`email`,`webhook`,`slack`],E=/^[a-zA-Z0-9_\-.:]+$/,D={error_rate:{unit:`% (0–100)`,placeholder:`e.g. 5`},p99_latency:{unit:`ms`,placeholder:`e.g. 250`},waiting:{unit:`jobs`,placeholder:`e.g. 100`},failed:{unit:`jobs`,placeholder:`e.g. 10`},dlq:{unit:`jobs`,placeholder:`e.g. 1`}};function O(e){let t=e.name.trim();if(!C.includes(e.metric))return{ok:!1,error:`Invalid metric`,field:`metric`};if(!w.includes(e.operator))return{ok:!1,error:`Invalid operator`,field:`operator`};let n=e.metric===`p99_latency`?``:e.queue.trim();if(!t)return{ok:!1,error:`Rule name is required`,field:`name`};if(t.length>200)return{ok:!1,error:`Rule name must be 200 characters or fewer`,field:`name`};if(!e.threshold.trim())return{ok:!1,error:`Threshold is required`,field:`threshold`};let r=Number(e.threshold);return!Number.isFinite(r)||r<0?{ok:!1,error:`Threshold must be a non-negative number`,field:`threshold`}:e.metric===`error_rate`&&r>100?{ok:!1,error:`Error-rate threshold must be between 0 and 100%`,field:`threshold`}:[`waiting`,`failed`,`dlq`].includes(e.metric)&&!Number.isSafeInteger(r)?{ok:!1,error:`Job-count thresholds must be whole numbers`,field:`threshold`}:n&&(n.length>256||!E.test(n))?{ok:!1,error:`Queue contains unsupported characters or is too long`,field:`queue`}:T.includes(e.channel)?{ok:!0,rule:{name:t,metric:e.metric,operator:e.operator,threshold:r,queue:n,channel:e.channel,enabled:!0}}:{ok:!1,error:`Invalid channel type`,field:`channel`}}var k=n();function A({onAdd:e}){let[t,n]=(0,S.useState)(``),[r,i]=(0,S.useState)(`error_rate`),[a,o]=(0,S.useState)(`>=`),[c,l]=(0,S.useState)(``),[u,d]=(0,S.useState)(``),[f,p]=(0,S.useState)(null),h=(0,S.useRef)(!1),g=(0,S.useId)(),_=e=>f?.field===e;return(0,k.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 md:grid-cols-3 lg:grid-cols-5`,children:[(0,k.jsx)(x,{label:`Name`,children:(0,k.jsx)(y,{name:`alert-rule-name`,autoComplete:`off`,maxLength:200,value:t,"aria-invalid":_(`name`),"aria-describedby":_(`name`)?g:void 0,onChange:e=>{n(e.target.value),p(null)},placeholder:`High error rate`})}),(0,k.jsx)(x,{label:`Metric`,children:(0,k.jsx)(v,{name:`alert-rule-metric`,value:r,"aria-invalid":_(`metric`),"aria-describedby":_(`metric`)?g:void 0,onChange:e=>{i(e.target.value),p(null)},children:C.map(e=>(0,k.jsx)(`option`,{value:e,children:m[e]},e))})}),(0,k.jsx)(x,{label:`Operator`,children:(0,k.jsx)(v,{name:`alert-rule-operator`,value:a,"aria-invalid":_(`operator`),"aria-describedby":_(`operator`)?g:void 0,onChange:e=>{o(e.target.value),p(null)},children:w.map(e=>(0,k.jsx)(`option`,{value:e,children:e},e))})}),(0,k.jsx)(x,{label:`Threshold`,hint:D[r].unit,children:(0,k.jsx)(y,{name:`alert-rule-threshold`,autoComplete:`off`,type:`number`,min:0,max:r===`error_rate`?100:void 0,step:[`waiting`,`failed`,`dlq`].includes(r)?1:`any`,value:c,"aria-invalid":_(`threshold`),"aria-describedby":_(`threshold`)?g:void 0,onChange:e=>{l(e.target.value),p(null)},placeholder:D[r].placeholder})}),(0,k.jsx)(x,{label:`Queue (optional)`,hint:r===`p99_latency`?`global only — latency is not per queue`:void 0,children:(0,k.jsx)(y,{name:`alert-rule-queue`,autoComplete:`off`,spellCheck:!1,maxLength:256,value:u,"aria-invalid":_(`queue`),"aria-describedby":_(`queue`)?g:void 0,onChange:e=>{d(e.target.value),p(null)},disabled:r===`p99_latency`,placeholder:r===`p99_latency`?`Global`:`All queues`,className:`disabled:cursor-not-allowed disabled:opacity-40`})}),(0,k.jsxs)(`div`,{className:`col-span-full`,children:[(0,k.jsx)(s,{variant:`accent`,disabled:!t.trim()||!c.trim(),onClick:()=>{if(h.current)return;let n=O({name:t,metric:r,operator:a,threshold:c,queue:u,channel:`email`});if(!n.ok)return p({field:n.field,message:n.error});h.current=!0;try{let t=e(n.rule);t.ok||(h.current=!1,p({field:`name`,message:t.error}))}catch(e){h.current=!1,p({field:`name`,message:e.message})}},children:`Save rule`}),f&&(0,k.jsx)(`span`,{id:g,role:`alert`,className:`ml-3 text-xs text-danger`,children:f.message})]})]})}function j(){return typeof Notification>`u`?`unsupported`:Notification.permission}function M(){let{rules:e,addRule:t,removeRule:n,toggleRule:v}=g(),y=_(e=>e.breaching),x=_(e=>e.status),C=_(e=>e.error),w=_(e=>e.connectionIdentity),T=r(e=>p(e.baseUrl,e.token)),E=e.some(e=>e.enabled),D=w===T,O=D?y:[],M=D?x:E?`checking`:`idle`,N=D?C:null,[P,F]=(0,S.useState)(!1),[I,L]=(0,S.useState)(j);return(0,k.jsxs)(`div`,{children:[(0,k.jsx)(d,{title:`Alerts`,description:`Threshold rules evaluated live in your browser.`,live:E&&M===`live`,actions:(0,k.jsxs)(k.Fragment,{children:[I===`granted`?(0,k.jsxs)(`span`,{className:`flex items-center gap-1.5 text-sm text-success`,children:[(0,k.jsx)(a,{className:`size-4`}),` Desktop alerts on`]}):I===`unsupported`?(0,k.jsx)(`span`,{className:`text-sm text-faint`,children:`Notifications unsupported`}):I===`denied`?(0,k.jsx)(`span`,{className:`text-sm text-faint`,children:`Desktop alerts blocked — allow notifications in browser settings`}):(0,k.jsx)(s,{size:`sm`,onClick:async()=>{L(await h())},children:`Enable desktop notifications`}),(0,k.jsx)(s,{variant:`accent`,size:`sm`,"aria-expanded":P,"aria-controls":`alert-rule-form`,onClick:()=>F(e=>!e),children:`+ Create Alert Rule`})]})}),E&&M===`checking`&&(0,k.jsx)(`p`,{role:`status`,className:`mb-4 text-sm text-muted`,children:`Checking alert metrics for the connected server…`}),E&&M===`degraded`&&(0,k.jsx)(l,{message:N??`Alert metrics are unavailable; current rule results may be stale.`}),(0,k.jsx)(`div`,{className:`mb-6 rounded-lg border border-amber-500/20 bg-amber-500/5 px-4 py-3 text-sm text-amber-400/90`,children:`Rules are evaluated in this browser while a tab is open (even backgrounded), raising an in-app toast and — if enabled — a desktop notification. bunqueue OSS has no alerting backend, so email/webhook/slack delivery still needs your own monitoring or hosted bunqueue Cloud.`}),(0,k.jsxs)(`section`,{className:`mb-8`,children:[(0,k.jsx)(`h2`,{className:`mb-3 text-lg font-semibold text-fg`,children:`Triggered Alerts`}),O.length===0?(0,k.jsx)(u,{icon:(0,k.jsx)(a,{}),title:`No triggered alerts`,hint:E?M===`live`?`All enabled rules are within their thresholds.`:M===`checking`?`Alert metrics are still being checked.`:`Alert metrics are unavailable; no all-clear result is available.`:`No enabled rules yet. Create one below.`}):(0,k.jsx)(`div`,{className:`overflow-x-auto rounded-xl border border-danger/30 bg-red-500/5`,children:(0,k.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,k.jsx)(`thead`,{children:(0,k.jsxs)(`tr`,{className:`border-b border-line text-left text-[11px] uppercase tracking-wider text-faint`,children:[(0,k.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Rule`}),(0,k.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Condition`}),(0,k.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Queue`}),(0,k.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Current`}),(0,k.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Since`})]})}),(0,k.jsx)(`tbody`,{children:O.map(e=>(0,k.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,k.jsx)(`td`,{className:`px-5 py-3 font-medium text-danger`,children:e.ruleName}),(0,k.jsxs)(`td`,{className:`px-5 py-3 text-muted`,children:[e.metricLabel,` `,e.operator,` `,(0,k.jsx)(`span`,{className:`font-semibold text-fg`,children:e.threshold})]}),(0,k.jsx)(`td`,{className:`px-5 py-3 text-muted`,children:e.queue||`All queues`}),(0,k.jsx)(`td`,{className:`px-5 py-3 text-right tnum font-semibold text-danger`,children:Math.round(e.value*100)/100}),(0,k.jsx)(`td`,{className:`px-5 py-3 text-right text-faint`,children:f(e.at)})]},e.ruleId))})]})})]}),(0,k.jsxs)(`section`,{children:[(0,k.jsx)(`h2`,{className:`mb-3 text-lg font-semibold text-fg`,children:`Alert Rules`}),P&&(0,k.jsx)(`div`,{id:`alert-rule-form`,children:(0,k.jsx)(c,{className:`mb-4`,children:(0,k.jsx)(A,{onAdd:e=>{let n=t(e);return n.ok&&F(!1),n}})})}),e.length===0?(0,k.jsx)(u,{title:`No alert rules`,hint:`Create a rule to be notified when a threshold is crossed.`}):(0,k.jsx)(`div`,{className:`overflow-x-auto rounded-xl border border-line bg-surface`,children:(0,k.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,k.jsx)(`thead`,{children:(0,k.jsxs)(`tr`,{className:`border-b border-line text-left text-[11px] uppercase tracking-wider text-faint`,children:[(0,k.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Rule`}),(0,k.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Condition`}),(0,k.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Queue`}),(0,k.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Delivery`}),(0,k.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Status`}),(0,k.jsx)(`th`,{className:`w-12 px-5 py-3`})]})}),(0,k.jsx)(`tbody`,{children:e.map(e=>(0,k.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,k.jsx)(`td`,{className:`px-5 py-3 font-medium text-fg`,children:e.name}),(0,k.jsxs)(`td`,{className:`px-5 py-3 text-muted`,children:[m[e.metric],` `,e.operator,` `,(0,k.jsx)(`span`,{className:`font-semibold text-accent`,children:e.threshold})]}),(0,k.jsx)(`td`,{className:`px-5 py-3 text-muted`,children:e.queue||`All queues`}),(0,k.jsx)(`td`,{className:`px-5 py-3`,children:(0,k.jsx)(`span`,{className:`rounded-md bg-surface-2 px-2 py-0.5 text-xs text-muted`,children:`Browser`})}),(0,k.jsx)(`td`,{className:`px-5 py-3`,children:(0,k.jsx)(b,{checked:e.enabled,onChange:()=>v(e.id),label:`Enabled`})}),(0,k.jsx)(`td`,{className:`px-5 py-3 text-right`,children:(0,k.jsx)(o,{"aria-label":`Delete rule ${e.name}`,onClick:()=>window.confirm(`Delete alert rule "${e.name}"?`)&&n(e.id),children:(0,k.jsx)(i,{className:`size-3.5`})})})]},e.id))})]})})]})]})}export{M as Alerts};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./cn-zFEt5SO8.js";import{g as t,t as n}from"./react-vendor-CvwrP0tU.js";var r=e(t(),1),i=n();function a({series:e,height:t=180,xLabels:n,ariaLabel:a=`throughput chart`,formatValue:o}){let s=(0,r.useId)().replace(/:/g,``),c=`${s}-desc`,l=t,u=e=>Number.isFinite(e)?e:0,d=Math.max(1,...e.map(e=>e.points.length)),f=Math.max(1,...e.flatMap(e=>e.points.map(u))),p=e=>d<=1?0:e/(d-1)*600,m=e=>l-10-u(e)/f*(l-20),h=[0,.25,.5,.75,1].map(e=>10+e*(l-20)),g=o??(e=>Number.isInteger(e)?String(e):e.toFixed(1)),_=e.some(e=>e.points.length>0),v=e.find(e=>e.points.length>0),y=v?u(v.points[v.points.length-1]):0;return(0,i.jsxs)(`div`,{className:`w-full`,children:[(0,i.jsxs)(`div`,{className:`relative`,children:[(0,i.jsxs)(`svg`,{viewBox:`0 0 600 ${l}`,preserveAspectRatio:`none`,className:`block w-full`,style:{height:t},role:`img`,"aria-label":a,"aria-describedby":c,children:[(0,i.jsx)(`defs`,{children:e.map((e,t)=>(0,i.jsxs)(`linearGradient`,{id:`${s}-g${t}`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,i.jsx)(`stop`,{offset:`0%`,stopColor:e.color,stopOpacity:`0.28`}),(0,i.jsx)(`stop`,{offset:`100%`,stopColor:e.color,stopOpacity:`0`})]},e.label))}),h.map(e=>(0,i.jsx)(`line`,{x1:`0`,y1:e,x2:600,y2:e,stroke:`var(--line)`,strokeWidth:`1`},e)),e.map((e,t)=>{if(e.points.length===0)return null;let n=e.points.length===1?`M0,${m(e.points[0])} L600,${m(e.points[0])}`:e.points.map((e,t)=>`${t===0?`M`:`L`}${p(t)},${m(e)}`).join(` `),r=e.points.length===1?`${n} L600,${l} L0,${l} Z`:`${n} L${p(e.points.length-1)},${l} L${p(0)},${l} Z`;return(0,i.jsxs)(`g`,{children:[e.area&&(0,i.jsx)(`path`,{d:r,fill:`url(#${s}-g${t})`}),(0,i.jsx)(`path`,{d:n,fill:`none`,stroke:e.color,strokeWidth:`2`,strokeLinejoin:`round`,vectorEffect:`non-scaling-stroke`})]},e.label)})]}),_&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`span`,{className:`pointer-events-none absolute left-1 -translate-y-full font-mono text-[10px] leading-none text-faint`,style:{top:10},children:g(f)}),(0,i.jsx)(`span`,{className:`pointer-events-none absolute left-1 top-1/2 -translate-y-1/2 font-mono text-[10px] leading-none text-faint`,children:g(f/2)})]})]}),n&&(0,i.jsx)(`div`,{className:`mt-1 flex justify-between px-1 font-mono text-[10px] text-faint`,children:n.map(e=>(0,i.jsx)(`span`,{children:e},e))}),(0,i.jsx)(`p`,{id:c,className:`sr-only`,children:_?`latest ${g(y)}, max ${g(f)}`:`no data yet`})]})}export{a as t};
|