@pg-boss/dashboard 0.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 +393 -0
- package/bin/cli.js +21 -0
- package/build/client/assets/MenuTrigger-SThQHnlb.js +1 -0
- package/build/client/assets/_index-Bcg_-XSd.js +1 -0
- package/build/client/assets/badge-Cd8v3tl3.js +1 -0
- package/build/client/assets/button-BaXUPm8v.js +1 -0
- package/build/client/assets/chevron-down-xu6Uceu-.js +1 -0
- package/build/client/assets/chunk-JZWAC4HX-DC8i-F7r.js +26 -0
- package/build/client/assets/createLucideIcon-BXGwbdrh.js +1 -0
- package/build/client/assets/db-link-CtPnIrIr.js +1 -0
- package/build/client/assets/dialog-Bl8T588f.js +1 -0
- package/build/client/assets/entry.client-COnaNoy-.js +13 -0
- package/build/client/assets/error-card-DmoxS3Ao.js +1 -0
- package/build/client/assets/filter-select-mMC79WOR.js +1 -0
- package/build/client/assets/index-DhMkYPMa.js +1 -0
- package/build/client/assets/jobs-DtmTCs8I.js +1 -0
- package/build/client/assets/manifest-25954681.js +1 -0
- package/build/client/assets/pagination-NfhvsUbp.js +1 -0
- package/build/client/assets/queues._index-Cw1B49mg.js +1 -0
- package/build/client/assets/queues._name-D0cG_qDX.js +1 -0
- package/build/client/assets/queues._name.jobs._jobId-uJ3dfM3J.js +1 -0
- package/build/client/assets/queues.create-BGXDhJ3m.js +1 -0
- package/build/client/assets/root-DJRlbyb5.css +1 -0
- package/build/client/assets/root-NWrBrGvr.js +35 -0
- package/build/client/assets/schedules-DzgBEayh.js +1 -0
- package/build/client/assets/schedules._name._key-i42S9kw2.js +1 -0
- package/build/client/assets/schedules.new-Dt78KptL.js +1 -0
- package/build/client/assets/send-0eWgiWNl.js +1 -0
- package/build/client/assets/table-CTo0I5HG.js +1 -0
- package/build/client/assets/useOpenInteractionType-C_L8nZ_l.js +12 -0
- package/build/client/assets/warnings-BhQM6lFV.js +1 -0
- package/build/server/assets/config.server-CARiqCUE.js +54 -0
- package/build/server/assets/node-DzjK5u9i.js +176 -0
- package/build/server/assets/server-build.js +9684 -0
- package/build/server/index.js +26 -0
- package/package.json +85 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as Q,B as T,t as E,a as C,p as e}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{D as x,c as S}from"./db-link-CtPnIrIr.js";import{B as y,C as P,c as w}from"./button-BaXUPm8v.js";import{B as i}from"./badge-Cd8v3tl3.js";import{F as R}from"./filter-select-mMC79WOR.js";import{T as D,a as F,b as u,c as s,d as U,e as a}from"./table-CTo0I5HG.js";const G=T(function(){return e.jsx("div",{className:"p-6",children:e.jsx(P,{children:e.jsxs(w,{className:"py-8 text-center",children:[e.jsx("p",{className:"text-red-600 dark:text-red-400 font-medium",children:"Failed to load queues"}),e.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm mt-1",children:"Please check your database connection and try again."}),e.jsx(x,{to:"/",className:"inline-block mt-4 text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:"Back to Dashboard"})]})})})}),J=Q(function({loaderData:L}){const{queues:j,totalCount:f,page:h,totalPages:k,hasNextPage:B,hasPrevPage:z,filter:o,search:n}=L,[m,c]=E(),[g,d]=C.useState(n);C.useEffect(()=>{d(n)},[n]);const v=r=>{const t=new URLSearchParams(m);t.set("page",r.toString()),c(t)},p=r=>{const t=new URLSearchParams(m);r.trim()?t.set("search",r.trim()):t.delete("search"),t.delete("page"),c(t)},N=r=>{const t=new URLSearchParams(m);r==="all"?t.delete("filter"):t.set("filter",r),t.delete("page"),c(t)},A=()=>{c({}),d("")},b=o!=="all"||n,I={all:"All Queues",attention:"Needing Attention",partitioned:"Partitioned"};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"Queues"}),e.jsxs("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:[f.toLocaleString()," queue",f!==1?"s":""," ",b?"found":"configured"]})]}),e.jsx(x,{to:"/queues/create",children:e.jsx(y,{variant:"primary",size:"md",children:"Create Queue"})})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",placeholder:"Search queues by name...",value:g,onChange:r=>d(r.target.value),onKeyDown:r=>{r.key==="Enter"&&p(g)},className:S("w-full px-4 py-2 pl-10 rounded-lg border shadow-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-500","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-400","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-primary-600","dark:focus:ring-primary-500 dark:focus:border-primary-500")}),e.jsx(H,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-gray-400"}),g&&e.jsx("button",{onClick:()=>{d(""),p("")},className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 cursor-pointer",children:e.jsx(M,{className:"h-5 w-5"})})]})}),e.jsx(R,{value:o,options:[{value:"all",label:"All Queues"},{value:"attention",label:"Needing Attention"},{value:"partitioned",label:"Partitioned"}],onChange:r=>N(r)})]}),b&&e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Active filters:"}),o!=="all"&&e.jsxs(i,{variant:"primary",size:"sm",children:[I[o],e.jsx("button",{onClick:()=>N("all"),className:"ml-1 hover:text-primary-700 cursor-pointer",children:"×"})]}),n&&e.jsxs(i,{variant:"primary",size:"sm",children:["Search: ",n,e.jsx("button",{onClick:()=>p(""),className:"ml-1 hover:text-primary-700 cursor-pointer",children:"×"})]}),e.jsx("button",{onClick:A,className:"text-sm text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300 cursor-pointer",children:"Clear all"})]}),e.jsxs(P,{children:[e.jsx(w,{className:"p-0",children:e.jsxs(D,{children:[e.jsx(F,{children:e.jsxs(u,{children:[e.jsx(s,{children:"Name"}),e.jsx(s,{children:"Policy"}),e.jsx(s,{children:"Storage"}),e.jsx(s,{className:"text-right",children:"Queued"}),e.jsx(s,{className:"text-right",children:"Active"}),e.jsx(s,{className:"text-right",children:"Deferred"}),e.jsx(s,{className:"text-right",children:"Total"}),e.jsx(s,{children:"Dead Letter"}),e.jsx(s,{children:"Status"})]})}),e.jsx(U,{children:j.length===0?e.jsx(u,{children:e.jsx(a,{className:"text-center text-gray-500 dark:text-gray-400 py-8",colSpan:9,children:"No queues found"})}):j.map(r=>{const t=(r.warningQueueSize??0)>0&&r.queuedCount>(r.warningQueueSize??0);return e.jsxs(u,{children:[e.jsx(a,{children:e.jsx(x,{to:`/queues/${encodeURIComponent(r.name)}`,className:"font-medium text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:r.name})}),e.jsx(a,{children:e.jsx(i,{variant:"gray",size:"sm",children:r.policy})}),e.jsx(a,{className:"text-gray-700 dark:text-gray-300",children:r.partition?"Partitioned":"Shared"}),e.jsx(a,{className:"text-right text-gray-700 dark:text-gray-300",children:r.queuedCount.toLocaleString()}),e.jsx(a,{className:"text-right text-gray-700 dark:text-gray-300",children:r.activeCount.toLocaleString()}),e.jsx(a,{className:"text-right text-gray-700 dark:text-gray-300",children:r.deferredCount.toLocaleString()}),e.jsx(a,{className:"text-right text-gray-700 dark:text-gray-300",children:r.totalCount.toLocaleString()}),e.jsx(a,{children:r.deadLetter?e.jsx(x,{to:`/queues/${encodeURIComponent(r.deadLetter)}`,className:"text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:r.deadLetter}):e.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"—"})}),e.jsx(a,{children:t?e.jsx(i,{variant:"error",size:"sm",dot:!0,children:"Backlogged"}):r.activeCount>0?e.jsx(i,{variant:"success",size:"sm",dot:!0,children:"Processing"}):e.jsx(i,{variant:"gray",size:"sm",dot:!0,children:"Idle"})})]},r.name)})})]})}),k>1&&e.jsxs("div",{className:S("flex items-center justify-between px-6 py-4 border-t","border-gray-200 dark:border-gray-800"),children:[e.jsxs("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:["Page ",h," of ",k]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(y,{variant:"outline",size:"sm",onClick:()=>v(h-1),disabled:!z,children:"Previous"}),e.jsx(y,{variant:"outline",size:"sm",onClick:()=>v(h+1),disabled:!B,children:"Next"})]})]})]})]})});function H({className:l}){return e.jsx("svg",{className:l,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})})}function M({className:l}){return e.jsx("svg",{className:l,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})})}export{G as ErrorBoundary,J as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as I,B as J,t as q,a as B,p as e,H as F}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{D as $,c,e as N,J as _,d as z}from"./db-link-CtPnIrIr.js";import{B as P,C as L,c as M,a as H,b as Q}from"./button-BaXUPm8v.js";import{B as R}from"./badge-Cd8v3tl3.js";import{T as U,a as V,b as T,c as h,d as W,e as d}from"./table-CTo0I5HG.js";import{P as G}from"./pagination-NfhvsUbp.js";import{F as K}from"./filter-select-mMC79WOR.js";import{D as X,a as Y,b as Z,c as ee,d as ae,e as re}from"./dialog-Bl8T588f.js";import{E as te}from"./error-card-DmoxS3Ao.js";import{C as se}from"./chevron-down-xu6Uceu-.js";import{c as E}from"./createLucideIcon-BXGwbdrh.js";import{M as ie,a as ne,b as le,c as oe,d as de,e as v}from"./MenuTrigger-SThQHnlb.js";import"./useOpenInteractionType-C_L8nZ_l.js";import"./index-DhMkYPMa.js";const ce=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xe=E("chevron-right",ce);const me=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],ge=E("ellipsis",me),Re=J(function(){return e.jsx(te,{title:"Failed to load queue",backTo:{href:"/queues",label:"Back to Queues"}})}),Te=I(function({loaderData:n}){const{queue:a,jobs:t,totalCount:s,page:x,totalPages:m,stateFilter:C,hasNextPage:u,hasPrevPage:p}=n,[j,f]=q(),[y,w]=B.useState(!1),D=(l,o)=>{const g=new URLSearchParams(j);o?g.set(l,o):g.delete(l),g.delete("page"),f(g)},b=l=>{const o=new URLSearchParams(j);o.set("page",l.toString()),f(o)};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:a.name}),e.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[e.jsx(R,{variant:"gray",children:a.policy}),a.partition&&e.jsx(R,{variant:"primary",children:"Partitioned"})]})]}),e.jsx($,{to:`/send?queue=${encodeURIComponent(a.name)}`,children:e.jsx(P,{variant:"primary",size:"md",children:"Send Job"})})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[e.jsx(k,{label:"Queued",value:a.queuedCount,variant:"gray"}),e.jsx(k,{label:"Active",value:a.activeCount,variant:"gray"}),e.jsx(k,{label:"Deferred",value:a.deferredCount,variant:"gray"}),e.jsx(k,{label:"Total",value:a.totalCount,variant:"gray"})]}),e.jsxs(L,{children:[e.jsxs("button",{onClick:()=>w(!y),className:c("w-full flex items-center justify-between px-6 py-4","text-left hover:bg-gray-50 dark:hover:bg-gray-800/50","transition-colors cursor-pointer"),children:[e.jsx("h3",{className:"text-base font-semibold text-gray-900 dark:text-gray-100",children:"Configuration"}),y?e.jsx(se,{className:"h-5 w-5 text-gray-500 dark:text-gray-400"}):e.jsx(xe,{className:"h-5 w-5 text-gray-500 dark:text-gray-400"})]}),y&&e.jsx(M,{className:"border-t border-gray-200 dark:border-gray-800",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Policy",value:a.policy||"—"}),e.jsx(i,{label:"Storage",value:a.partition?"Partitioned":"Shared"}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Dead Letter"}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:a.deadLetter?e.jsx($,{to:`/queues/${a.deadLetter}`,className:"text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:a.deadLetter}):"—"})]}),e.jsx(i,{label:"Warning Threshold",value:a.warningQueueSize||"—"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Retry Limit",value:a.retryLimit??0}),e.jsx(i,{label:"Retry Delay",value:a.retryDelay?`${a.retryDelay}ms`:"—"}),e.jsx(i,{label:"Retry Delay Max",value:a.retryDelayMax?`${a.retryDelayMax}ms`:"—"}),e.jsx(i,{label:"Retry Backoff",value:a.retryBackoff?"Enabled":"Disabled"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Expiration",value:S(a.expireInSeconds)}),e.jsx(i,{label:"Retention",value:S(a.retentionSeconds)}),e.jsx(i,{label:"Deletion",value:S(a.deleteAfterSeconds)})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-4",children:[e.jsx(i,{label:"Created",value:a.createdOn?N(new Date(a.createdOn)):"—"}),e.jsx(i,{label:"Last monitored",value:a.monitorOn?N(new Date(a.monitorOn)):"—"}),e.jsx(i,{label:"Last maintained",value:a.maintainOn?N(new Date(a.maintainOn)):"—"})]})]})})]}),e.jsxs(L,{children:[e.jsxs(H,{className:"flex flex-row items-center justify-between",children:[e.jsxs(Q,{children:["Jobs",s!==null&&` (${s.toLocaleString()})`]}),e.jsx(K,{value:C,options:_,onChange:l=>D("state",l)})]}),e.jsx(M,{className:"p-0",children:e.jsxs(U,{children:[e.jsx(V,{children:e.jsxs(T,{children:[e.jsx(h,{children:"ID"}),e.jsx(h,{children:"State"}),e.jsx(h,{children:"Priority"}),e.jsx(h,{children:"Retries"}),e.jsx(h,{children:"Created"}),e.jsx(h,{children:"Actions"})]})}),e.jsx(W,{children:t.length===0?e.jsx(T,{children:e.jsx(d,{className:"text-center text-gray-500 dark:text-gray-400 py-8",colSpan:6,children:"No jobs found"})}):t.map(l=>e.jsx(he,{job:l,queueName:a.name},l.id))})]})}),e.jsx(G,{page:x,totalPages:m,hasNextPage:u,hasPrevPage:p,onPageChange:b})]})]})});function he({job:r,queueName:n}){const a=F(),t=a.state!=="idle",[s,x]=B.useState(null),m=a.data,C=m&&!m.success&&m.affected===0,u=o=>{a.submit({jobId:r.id,intent:o},{method:"post"})},p=(o,g,O,A)=>{x({open:!0,title:g,description:O,confirmLabel:A,intent:o})},j=()=>{s&&(u(s.intent),x(null))},f=r.state==="created"||r.state==="retry"||r.state==="active",y=r.state==="failed",w=r.state==="cancelled",D=r.state!=="active",b=c("flex w-full items-center px-3 py-2 text-sm cursor-pointer","outline-none transition-colors rounded-sm","text-gray-700 data-highlighted:bg-gray-100 data-highlighted:text-gray-900","dark:text-gray-300 dark:data-highlighted:bg-gray-800 dark:data-highlighted:text-gray-100"),l=c("flex w-full items-center px-3 py-2 text-sm cursor-pointer","outline-none transition-colors rounded-sm","text-red-600 data-highlighted:bg-red-50 data-highlighted:text-red-700","dark:text-red-400 dark:data-highlighted:bg-red-950 dark:data-highlighted:text-red-300");return e.jsxs(e.Fragment,{children:[e.jsxs(T,{children:[e.jsx(d,{children:e.jsxs($,{to:`/queues/${n}/jobs/${r.id}`,className:"font-mono text-xs text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:[r.id.slice(0,8),"..."]})}),e.jsx(d,{children:e.jsx(ue,{state:r.state})}),e.jsx(d,{className:"text-gray-700 dark:text-gray-300",children:r.priority}),e.jsxs(d,{className:"text-gray-700 dark:text-gray-300",children:[r.retryCount," / ",r.retryLimit]}),e.jsx(d,{className:"text-gray-500 dark:text-gray-400",children:N(new Date(r.createdOn))}),e.jsx(d,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[C&&e.jsx("span",{className:"text-xs text-amber-600 dark:text-amber-400",title:m.message,children:"Failed"}),e.jsxs(ie,{children:[e.jsx(ne,{className:c("inline-flex items-center justify-center rounded-md p-1.5","text-gray-500 hover:text-gray-900 hover:bg-gray-100","dark:text-gray-400 dark:hover:text-gray-100 dark:hover:bg-gray-800","focus:outline-none focus:ring-2 focus:ring-primary-500","transition-colors disabled:opacity-50"),disabled:t,"aria-label":"Job actions",children:e.jsx(ge,{className:"h-4 w-4"})}),e.jsx(le,{children:e.jsx(oe,{children:e.jsxs(de,{className:c("min-w-[10rem] rounded-md border p-1 shadow-md z-50","bg-white border-gray-200","dark:bg-gray-900 dark:border-gray-800","animate-in fade-in-0 zoom-in-95"),children:[y&&e.jsx(v,{className:b,onClick:()=>u("retry"),children:"Retry"}),w&&e.jsx(v,{className:b,onClick:()=>u("resume"),children:"Resume"}),f&&e.jsx(v,{className:l,onClick:()=>p("cancel","Cancel Job",`Are you sure you want to cancel job ${r.id.slice(0,8)}...? This will stop the job from being processed.`,"Cancel Job"),children:"Cancel"}),D&&e.jsx(v,{className:l,onClick:()=>p("delete","Delete Job",`Are you sure you want to delete job ${r.id.slice(0,8)}...? This action cannot be undone.`,"Delete"),children:"Delete"})]})})})]})]})})]}),e.jsx(X,{open:s?.open??!1,onOpenChange:o=>!o&&x(null),children:e.jsxs(Y,{hideCloseButton:!0,className:"w-[28rem] max-w-[calc(100vw-2rem)]",children:[e.jsxs(Z,{children:[e.jsx(ee,{children:s?.title}),e.jsx(ae,{className:"mt-2",children:s?.description})]}),e.jsxs(re,{className:"mt-6 flex justify-end gap-3",children:[e.jsx(P,{variant:"outline",size:"sm",className:"cursor-pointer",onClick:()=>x(null),children:"Cancel"}),e.jsx(P,{variant:"danger",size:"sm",className:"cursor-pointer",onClick:j,children:s?.confirmLabel})]})]})})]})}function ue({state:r}){return e.jsx(R,{variant:z[r],size:"sm",children:r})}function k({label:r,value:n,variant:a}){const t={primary:"text-primary-600 dark:text-primary-400",success:"text-green-600 dark:text-green-400",warning:"text-amber-600 dark:text-amber-400",gray:"text-gray-600 dark:text-gray-400"};return e.jsxs("div",{className:c("rounded-lg border p-4","bg-white border-gray-200","dark:bg-gray-900 dark:border-gray-800"),children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r}),e.jsx("p",{className:c("text-2xl font-semibold",t[a]),children:n.toLocaleString()})]})}function i({label:r,value:n}){return e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:n?.toString()||"—"})]})}function S(r){if(!r)return"—";if(r<60)return`${r} seconds`;if(r<3600){const t=Math.floor(r/60);return`${t} ${t===1?"minute":"minutes"}`}if(r<86400){const t=Math.floor(r/3600),s=Math.floor(r%3600/60);return s===0?`${t} ${t===1?"hour":"hours"}`:`${t} ${t===1?"hour":"hours"} ${s} ${s===1?"minute":"minutes"}`}const n=Math.floor(r/86400),a=Math.floor(r%86400/3600);return a===0?`${n} ${n===1?"day":"days"}`:`${n} ${n===1?"day":"days"} ${a} ${a===1?"hour":"hours"}`}export{Re as ErrorBoundary,Te as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as j,p as e,A as k,B as N,H as C}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{D as p,c as y,e as m}from"./db-link-CtPnIrIr.js";import{B as x,C as D,a as w,b as B,c as L}from"./button-BaXUPm8v.js";import{B as I}from"./badge-Cd8v3tl3.js";import{D as O,a as T,b as R,c as E,d as S,e as A}from"./dialog-Bl8T588f.js";import{E as J}from"./error-card-DmoxS3Ao.js";import{c as b}from"./createLucideIcon-BXGwbdrh.js";import"./useOpenInteractionType-C_L8nZ_l.js";import"./index-DhMkYPMa.js";const $=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],z=b("check",$);const _=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],q=b("copy",_);function h({title:o,description:d,confirmLabel:t,confirmVariant:n="primary",triggerVariant:c="ghost",trigger:r,onConfirm:g,disabled:u}){const[s,i]=j.useState(!1),l=()=>{g(),i(!1)};return e.jsxs(O,{open:s,onOpenChange:i,children:[e.jsx(x,{variant:c,size:"sm",disabled:u,onClick:()=>i(!0),className:"cursor-pointer",children:r}),e.jsxs(T,{hideCloseButton:!0,className:"w-[28rem] max-w-[calc(100vw-2rem)]",children:[e.jsxs(R,{children:[e.jsx(E,{children:o}),e.jsx(S,{className:"mt-2",children:d})]}),e.jsxs(A,{className:"mt-6 flex justify-end gap-3",children:[e.jsx(x,{variant:"outline",size:"sm",className:"cursor-pointer",onClick:()=>i(!1),children:"Cancel"}),e.jsx(x,{variant:n==="danger"?"danger":"primary",size:"sm",className:"cursor-pointer",onClick:l,children:t})]})]})]})}const W=N(function(){return e.jsx(J,{title:"Failed to load job",backTo:{href:"/queues",label:"Back to Queues"}})}),X=k(function({loaderData:d}){const{job:t,queueName:n}=d,c=C(),r=c.state!=="idle",[g,u]=j.useState(!1),s=c.data,i=s&&!s.success&&s.affected===0,l=v=>{c.submit({intent:v},{method:"post"})},f=async()=>{await navigator.clipboard.writeText(t.id),u(!0),setTimeout(()=>u(!1),2e3)};return e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{children:e.jsxs("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:["Job Details - ",n]})}),e.jsxs(D,{children:[e.jsxs(w,{className:"flex flex-row items-center justify-between",children:[e.jsx(B,{children:"Details"}),e.jsxs("div",{className:"flex items-center gap-2",children:[i&&e.jsx("span",{className:"text-xs text-amber-600 dark:text-amber-400",title:s.message,children:"Action failed"}),t.state==="failed"&&e.jsx(x,{variant:"outline",size:"sm",disabled:r,onClick:()=>l("retry"),children:"Retry"}),t.state==="cancelled"&&e.jsx(x,{variant:"outline",size:"sm",disabled:r,onClick:()=>l("resume"),children:"Resume"}),(t.state==="created"||t.state==="retry"||t.state==="active")&&e.jsx(h,{title:"Cancel Job",description:`Are you sure you want to cancel job ${t.id.slice(0,8)}...? This will prevent the job from being processed.`,confirmLabel:"Cancel Job",confirmVariant:"danger",triggerVariant:"outline",trigger:"Cancel",onConfirm:()=>l("cancel"),disabled:r}),t.state!=="active"&&e.jsx(h,{title:"Delete Job",description:`Are you sure you want to delete job ${t.id.slice(0,8)}...? This action cannot be undone.`,confirmLabel:"Delete",confirmVariant:"danger",triggerVariant:"danger",trigger:"Delete",onConfirm:()=>l("delete"),disabled:r})]})]}),e.jsxs(L,{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Queue"}),e.jsxs("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100 flex items-center gap-2",children:[e.jsx(p,{to:`/queues/${encodeURIComponent(n)}`,className:"text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:n}),t.policy&&e.jsx(I,{variant:"gray",size:"sm",children:t.policy})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Job ID"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("code",{className:"text-sm font-mono break-all text-gray-900 dark:text-gray-100",children:t.id}),e.jsx("button",{onClick:f,className:y("p-1 rounded-md transition-colors cursor-pointer flex-shrink-0","text-gray-500 hover:text-gray-900 hover:bg-gray-100","dark:text-gray-400 dark:hover:text-gray-100 dark:hover:bg-gray-800"),title:g?"Copied!":"Copy to clipboard",children:g?e.jsx(z,{className:"h-4 w-4 text-green-600 dark:text-green-400"}):e.jsx(q,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"State"}),e.jsx("div",{className:"text-sm text-gray-900 dark:text-gray-100",children:t.state})]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Data"}),e.jsx("pre",{className:y("text-sm px-3 py-2 rounded border font-mono overflow-auto max-h-32","bg-gray-50 border-gray-200","dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100"),children:t.data?JSON.stringify(t.data,null,2):"null"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-500 dark:text-gray-400 mb-1",children:"Output"}),e.jsx("pre",{className:y("text-sm px-3 py-2 rounded border font-mono overflow-auto max-h-32","bg-gray-50 border-gray-200","dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100"),children:t.output!==void 0&&t.output!==null?JSON.stringify(t.output,null,2):"—"})]})]}),e.jsx("div",{children:e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:e.jsx(a,{label:"Priority",value:t.priority})}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:[e.jsx(a,{label:"Retry Count",value:t.retryCount}),e.jsx(a,{label:"Retry Limit",value:t.retryLimit}),e.jsx(a,{label:"Retry Delay",value:t.retryDelay?`${t.retryDelay}ms`:"—"}),e.jsx(a,{label:"Retry Backoff",value:t.retryBackoff?"Enabled":"Disabled"})]}),(t.singletonKey||t.groupId||t.groupTier||t.deadLetter)&&e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-x-6 gap-y-4",children:[t.singletonKey&&e.jsx(a,{label:"Singleton Key",value:t.singletonKey}),t.groupId&&e.jsx(a,{label:"Group ID",value:t.groupId}),t.groupTier&&e.jsx(a,{label:"Group Tier",value:t.groupTier}),t.deadLetter&&e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Dead Letter"}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:e.jsx(p,{to:`/queues/${t.deadLetter}`,className:"text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:t.deadLetter})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-x-6 gap-y-4",children:[e.jsx(a,{label:"Created",value:m(new Date(t.createdOn))}),e.jsx(a,{label:"Start After",value:t.startAfter?m(new Date(t.startAfter)):"—"}),e.jsx(a,{label:"Started",value:t.startedOn?m(new Date(t.startedOn)):"—"}),e.jsx(a,{label:"Completed",value:t.completedOn?m(new Date(t.completedOn)):"—"}),e.jsx(a,{label:"Keep Until",value:t.keepUntil?m(new Date(t.keepUntil)):"—"})]})]})})]})]})]})});function a({label:o,value:d}){return e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:o}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:d?.toString()||"—"})]})}export{W as ErrorBoundary,X as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as d,p as e,A as z,B as R,D as A,x as O,G as P}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{c as a,D as M}from"./db-link-CtPnIrIr.js";import{B as j,C as T,a as V,b as _,c as U}from"./button-BaXUPm8v.js";import{C as G}from"./chevron-down-xu6Uceu-.js";import{E as H}from"./error-card-DmoxS3Ao.js";import"./createLucideIcon-BXGwbdrh.js";const F=d.forwardRef(({className:l,label:c,id:y,...u},x)=>{const s=y||`checkbox-${Math.random().toString(36).substr(2,9)}`;return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",id:s,ref:x,className:a("h-4 w-4 rounded border-gray-300 text-primary-600","focus:ring-2 focus:ring-primary-600 focus:ring-offset-0","dark:border-gray-700 dark:bg-gray-900","dark:checked:bg-primary-600 dark:checked:border-primary-600","cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",l),...u}),c&&e.jsx("label",{htmlFor:s,className:"text-sm text-gray-700 dark:text-gray-300 cursor-pointer select-none",children:c})]})});F.displayName="Checkbox";function C({value:l,onValueChange:c,children:y,className:u}){const[x,s]=d.useState(!1),g=d.useRef(null);d.useEffect(()=>{const t=o=>{g.current&&!g.current.contains(o.target)&&s(!1)};return x&&document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[x]);const n=[],m=t=>{if(Array.isArray(t))t.forEach(m);else if(t&&typeof t=="object"&&"props"in t){const o=t;o.type===i?n.push({value:o.props.value,label:o.props.children}):o.props?.children&&m(o.props.children)}};m(y);const b=n.find(t=>t.value===l);return e.jsxs("div",{ref:g,className:a("relative",u),children:[e.jsxs("button",{type:"button",onClick:()=>s(!x),className:a("flex items-center justify-between w-full px-3 py-2 text-sm rounded-lg shadow-sm","bg-white border border-gray-300 text-gray-900","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100","hover:bg-gray-50 dark:hover:bg-gray-800","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent","cursor-pointer"),children:[e.jsx("span",{className:"truncate text-left",children:b?.label||"Select..."}),e.jsx(G,{className:"h-4 w-4 opacity-50 ml-2 shrink-0"})]}),x&&n.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",children:n.map(t=>e.jsx("button",{type:"button",onClick:()=>{c(t.value),s(!1)},className:a("w-full text-left px-3 py-2 text-sm","hover:bg-gray-100 dark:hover:bg-gray-800","text-gray-900 dark:text-gray-100","cursor-pointer",t.value===l&&"bg-gray-50 dark:bg-gray-800"),children:t.label},t.value))})]})}function i({value:l,children:c}){return null}const D=({children:l})=>null,L=({children:l}={})=>null,E=({children:l})=>e.jsx(e.Fragment,{children:l}),Z=R(function(){return e.jsx(H,{title:"Failed to load queue creation page",backTo:{href:"/queues",label:"Back to Queues"}})}),ee=z(function({loaderData:c}){const{queues:y}=c,u=A(),s=O().state==="submitting",[g,n]=d.useState(!1),[m,b]=d.useState("standard"),[t,o]=d.useState("shared"),[v,B]=d.useState(!1),[N,w]=d.useState(""),[f,q]=d.useState(""),[Q,h]=d.useState(!1),S=y.filter(r=>r.name.toLowerCase().includes(N.toLowerCase())),I=r=>{q(r),w(r),h(!1),n(!0)},k=P(({currentLocation:r,nextLocation:p})=>g&&!s&&r.pathname!==p.pathname);return d.useEffect(()=>{const r=p=>{g&&!s&&(p.preventDefault(),p.returnValue="")};return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[g,s]),e.jsxs("div",{className:"space-y-6",children:[k.state==="blocked"&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:e.jsxs("div",{className:"bg-white dark:bg-gray-900 rounded-lg shadow-lg p-6 max-w-md mx-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Unsaved Changes"}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6",children:"You have unsaved changes. Are you sure you want to leave this page?"}),e.jsxs("div",{className:"flex gap-3 justify-end",children:[e.jsx(j,{type:"button",variant:"outline",size:"sm",onClick:()=>k.reset(),children:"Stay"}),e.jsx(j,{type:"button",variant:"danger",size:"sm",onClick:()=>k.proceed(),children:"Leave"})]})]})}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"Create Queue"}),e.jsxs(T,{children:[e.jsx(V,{children:e.jsx(_,{children:"Queue Configuration"})}),e.jsx(U,{children:e.jsxs("form",{method:"post",className:"space-y-5",onChange:()=>n(!0),onSubmit:()=>n(!1),children:[u&&"error"in u&&e.jsx("div",{className:a("rounded-lg border px-4 py-3 text-sm","bg-red-50 border-red-200 text-red-700","dark:bg-red-950 dark:border-red-800 dark:text-red-400"),children:u.error}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"queueName",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:["Queue Name ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"text",id:"queueName",name:"queueName",required:!0,placeholder:"my-queue",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"policy",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Policy"}),e.jsxs(C,{value:m,onValueChange:r=>{b(r),n(!0)},children:[e.jsx(D,{children:e.jsx(L,{})}),e.jsxs(E,{children:[e.jsx(i,{value:"standard",children:"Standard"}),e.jsx(i,{value:"short",children:"Short"}),e.jsx(i,{value:"singleton",children:"Singleton"}),e.jsx(i,{value:"stately",children:"Stately"}),e.jsx(i,{value:"exclusive",children:"Exclusive"}),e.jsx(i,{value:"key_strict_fifo",children:"Key Strict FIFO"})]})]}),e.jsx("input",{type:"hidden",name:"policy",value:m}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Standard supports all features. Other policies restrict job queuing behavior."})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"storage",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Storage"}),e.jsxs(C,{value:t,onValueChange:r=>{o(r),n(!0)},children:[e.jsx(D,{children:e.jsx(L,{})}),e.jsxs(E,{children:[e.jsx(i,{value:"shared",children:"Shared"}),e.jsx(i,{value:"partitioned",children:"Partitioned"})]})]}),e.jsx("input",{type:"hidden",name:"partition",value:t==="partitioned"?"true":"false"}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Partitioned creates a dedicated table for this queue"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"deadLetterSearch",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Dead Letter Queue"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",id:"deadLetterSearch",value:N,onChange:r=>{w(r.target.value),h(!0)},onFocus:()=>h(!0),onBlur:()=>setTimeout(()=>h(!1),200),placeholder:"Search for a queue...",autoComplete:"off",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("input",{type:"hidden",name:"deadLetter",value:f}),Q&&S.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",children:S.map(r=>e.jsx("button",{type:"button",onClick:()=>I(r.name),className:"w-full text-left px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-900 dark:text-gray-100 cursor-pointer text-sm",children:r.name},r.name))})]}),f&&e.jsxs("p",{className:"mt-1 text-xs text-green-600 dark:text-green-400",children:["Selected: ",f]}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Failed jobs will be moved to this queue after all retries"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"warningQueueSize",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Warning Queue Size"}),e.jsx("input",{type:"number",id:"warningQueueSize",name:"warningQueueSize",min:"1",placeholder:"Optional",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Emit warning when queue size exceeds this value"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryLimit",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Limit"}),e.jsx("input",{type:"number",id:"retryLimit",name:"retryLimit",min:"0",placeholder:"2",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryDelay",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Delay (seconds)"}),e.jsx("input",{type:"number",id:"retryDelay",name:"retryDelay",min:"0",placeholder:"0",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Backoff"}),e.jsx("div",{className:"py-2 pb-6",children:e.jsx(F,{id:"retryBackoff",name:"retryBackoff",value:"true",checked:v,onChange:r=>{B(r.target.checked),n(!0)},label:"Enable Exponential Backoff"})})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryDelayMax",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Max Retry Delay (seconds)"}),e.jsx("input",{type:"number",id:"retryDelayMax",name:"retryDelayMax",min:"1",placeholder:"No limit",disabled:!v,className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent","disabled:opacity-50 disabled:cursor-not-allowed")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Only used with exponential backoff"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"expireInSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Expire In Seconds"}),e.jsx("input",{type:"number",id:"expireInSeconds",name:"expireInSeconds",min:"1",placeholder:"900",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Default: 15 minutes (900 seconds)"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retentionSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retention Seconds"}),e.jsx("input",{type:"number",id:"retentionSeconds",name:"retentionSeconds",min:"1",placeholder:"1209600",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Default: 14 days (1209600 seconds)"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"deleteAfterSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Delete After Seconds"}),e.jsx("input",{type:"number",id:"deleteAfterSeconds",name:"deleteAfterSeconds",min:"0",placeholder:"604800",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Default: 7 days (604800 seconds). Set to 0 to never delete."})]})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[e.jsx(j,{type:"submit",disabled:s,children:s?"Creating...":"Create Queue"}),e.jsx(M,{to:"/queues",className:"text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300",children:"Cancel"})]})]})})]})]})});export{Z as ErrorBoundary,ee as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-x-reverse:0}}}@layer theme{:root,:host{--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-950:oklch(25.8% .092 26.042);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-green-50:oklch(98.2% .018 155.826);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-50:oklch(98.4% .014 180.72);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-300:oklch(85.5% .138 181.071);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-600:oklch(60% .118 184.704);--color-teal-700:oklch(51.1% .096 186.391);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-teal-950:oklch(27.7% .046 192.524);--color-cyan-50:oklch(98.4% .019 200.873);--color-cyan-100:oklch(95.6% .045 203.388);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-300:oklch(86.5% .127 207.078);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-700:oklch(52% .105 223.128);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-900:oklch(39.8% .07 227.392);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-100:oklch(95.1% .026 236.824);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-900:oklch(35.9% .144 278.697);--color-indigo-950:oklch(25.7% .09 281.288);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-400:oklch(70.2% .183 293.541);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-900:oklch(38% .189 293.745);--color-violet-950:oklch(28.3% .141 291.089);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wider:.05em;--tracking-widest:.1em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary-500:var(--primary-500);--color-sidebar:white;--color-sidebar-foreground:var(--color-gray-900);--color-sidebar-accent:var(--color-gray-100);--color-sidebar-accent-foreground:var(--color-gray-900);--color-sidebar-border:var(--color-gray-100);--color-sidebar-ring:var(--color-primary-500)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-\[50\%\]{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.left-0{left:calc(var(--spacing)*0)}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-\[50\%\]{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-\[100\]{z-index:100}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-3\.5{margin-inline:calc(var(--spacing)*3.5)}.mx-4{margin-inline:calc(var(--spacing)*4)}.my-1{margin-block:calc(var(--spacing)*1)}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.h-1{height:calc(var(--spacing)*1)}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-12{height:calc(var(--spacing)*12)}.h-full{height:100%}.h-px{height:1px}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-60{max-height:calc(var(--spacing)*60)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[50vh\]{min-height:50vh}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing)*1.5)}.w-2{width:calc(var(--spacing)*2)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-\[--sidebar-width-icon\]{width:--sidebar-width-icon}.w-\[--sidebar-width-mobile\]{width:--sidebar-width-mobile}.w-\[--sidebar-width\]{width:--sidebar-width}.w-\[28rem\]{width:28rem}.w-full{width:100%}.max-w-\[calc\(100vw-2rem\)\]{max-width:calc(100vw - 2rem)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[10rem\]{min-width:10rem}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-180{rotate:180deg}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-6{column-gap:calc(var(--spacing)*6)}.gap-y-4{row-gap:calc(var(--spacing)*4)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-200>:not(:last-child)){border-color:var(--color-gray-200)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-red-200{border-color:var(--color-red-200)}.border-sidebar-border{border-color:var(--color-sidebar-border)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-cyan-500{background-color:var(--color-cyan-500)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-gray-900\/50{background-color:#10182880}@supports (color:color-mix(in lab,red,red)){.bg-gray-900\/50{background-color:color-mix(in oklab,var(--color-gray-900)50%,transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-green-500{background-color:var(--color-green-500)}.bg-indigo-500{background-color:var(--color-indigo-500)}.bg-primary-50{background-color:var(--primary-50)}.bg-primary-500{background-color:var(--primary-500)}.bg-primary-600{background-color:var(--primary-600)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-sidebar{background-color:var(--color-sidebar)}.bg-sidebar-accent{background-color:var(--color-sidebar-accent)}.bg-sky-500{background-color:var(--color-sky-500)}.bg-teal-500{background-color:var(--color-teal-500)}.bg-violet-500{background-color:var(--color-violet-500)}.bg-white{background-color:var(--color-white)}.fill-current{fill:currentColor}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-2{padding-top:calc(var(--spacing)*2)}.pr-2{padding-right:calc(var(--spacing)*2)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-primary-600{color:var(--primary-600)}.text-primary-700{color:var(--primary-700)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-sidebar-accent-foreground{color:var(--color-sidebar-accent-foreground)}.text-sidebar-foreground{color:var(--color-sidebar-foreground)}.text-sidebar-foreground\/50{color:#10182880}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/50{color:color-mix(in oklab,var(--color-sidebar-foreground)50%,transparent)}}.text-sidebar-foreground\/70{color:#101828b3}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--color-sidebar-foreground)70%,transparent)}}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.placeholder-gray-400::placeholder{color:var(--color-gray-400)}.placeholder-gray-500::placeholder{color:var(--color-gray-500)}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-gray-500\/10{--tw-ring-color:#6a72821a}@supports (color:color-mix(in lab,red,red)){.ring-gray-500\/10{--tw-ring-color:color-mix(in oklab,var(--color-gray-500)10%,transparent)}}.ring-gray-900{--tw-ring-color:var(--color-gray-900)}.ring-green-600\/10{--tw-ring-color:#00a5441a}@supports (color:color-mix(in lab,red,red)){.ring-green-600\/10{--tw-ring-color:color-mix(in oklab,var(--color-green-600)10%,transparent)}}.ring-primary-600\/10{--tw-ring-color:var(--primary-600)}@supports (color:color-mix(in lab,red,red)){.ring-primary-600\/10{--tw-ring-color:color-mix(in oklab,var(--primary-600)10%,transparent)}}.ring-red-600\/10{--tw-ring-color:#e400141a}@supports (color:color-mix(in lab,red,red)){.ring-red-600\/10{--tw-ring-color:color-mix(in oklab,var(--color-red-600)10%,transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--color-sidebar-ring)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.ring-offset-white{--tw-ring-offset-color:var(--color-white)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition-\[padding\]{transition-property:padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media(hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-\[\[data-sidebar\=menu-action\]\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing)*8)}.group-data-\[state\=collapsed\]\:hidden:is(:where(.group)[data-state=collapsed] *){display:none}.group-data-\[state\=collapsed\]\:\!h-8:is(:where(.group)[data-state=collapsed] *){height:calc(var(--spacing)*8)!important}.group-data-\[state\=collapsed\]\:justify-center:is(:where(.group)[data-state=collapsed] *){justify-content:center}@media(hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--color-sidebar-accent-foreground)}}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--color-sidebar-accent-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing)*-2)}@media(hover:hover){.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-primary-100:hover{background-color:var(--primary-100)}.hover\:bg-primary-700:hover{background-color:var(--primary-700)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-sidebar-accent:hover{background-color:var(--color-sidebar-accent)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-gray-900:hover{color:var(--color-gray-900)}.hover\:text-primary-700:hover{color:var(--primary-700)}.hover\:text-sidebar-accent-foreground:hover{color:var(--color-sidebar-accent-foreground)}.hover\:text-sidebar-foreground:hover{color:var(--color-sidebar-foreground)}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-primary-600:focus{border-color:var(--primary-600)}.focus\:border-transparent:focus{border-color:#0000}.focus\:bg-gray-100:focus{background-color:var(--color-gray-100)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-primary-500:focus{--tw-ring-color:var(--primary-500)}.focus\:ring-primary-600:focus{--tw-ring-color:var(--primary-600)}.focus\:ring-red-600:focus{--tw-ring-color:var(--color-red-600)}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-sidebar-accent:active{background-color:var(--color-sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--color-sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-\[\[data-variant\=inset\]\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--color-sidebar)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-highlighted\:bg-gray-100[data-highlighted]{background-color:var(--color-gray-100)}.data-highlighted\:bg-red-50[data-highlighted]{background-color:var(--color-red-50)}.data-highlighted\:text-gray-900[data-highlighted]{color:var(--color-gray-900)}.data-highlighted\:text-red-700[data-highlighted]{color:var(--color-red-700)}.data-open\:bg-gray-100[data-open]{background-color:var(--color-gray-100)}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--color-sidebar-accent)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--color-sidebar-accent-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}@media(min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}:where(.sm\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}}@media(min-width:48rem){.md\:flex{display:flex}.md\:hidden{display:none}.md\:table-cell{display:table-cell}.md\:pl-12{padding-left:calc(var(--spacing)*12)}.md\:pl-32{padding-left:calc(var(--spacing)*32)}.md\:opacity-0{opacity:0}}.after\:md\:hidden:after{content:var(--tw-content)}@media(min-width:48rem){.after\:md\:hidden:after{display:none}}@media(min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\:pb-8{padding-bottom:calc(var(--spacing)*8)}}:where(.dark\:divide-gray-800:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-gray-800)}.dark\:border:where(.dark,.dark *){border-style:var(--tw-border-style);border-width:1px}.dark\:border-gray-700:where(.dark,.dark *){border-color:var(--color-gray-700)}.dark\:border-gray-800:where(.dark,.dark *){border-color:var(--color-gray-800)}.dark\:border-red-800:where(.dark,.dark *){border-color:var(--color-red-800)}.dark\:bg-black:where(.dark,.dark *){background-color:var(--color-black)}.dark\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-900:where(.dark,.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-950:where(.dark,.dark *){background-color:var(--color-gray-950)}.dark\:bg-green-950:where(.dark,.dark *){background-color:var(--color-green-950)}.dark\:bg-primary-400:where(.dark,.dark *){background-color:var(--primary-400)}.dark\:bg-primary-950:where(.dark,.dark *){background-color:var(--primary-950)}.dark\:bg-red-950:where(.dark,.dark *){background-color:var(--color-red-950)}.dark\:text-amber-300:where(.dark,.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:where(.dark,.dark *){color:var(--color-amber-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:text-gray-500:where(.dark,.dark *){color:var(--color-gray-500)}.dark\:text-green-300:where(.dark,.dark *){color:var(--color-green-300)}.dark\:text-green-400:where(.dark,.dark *){color:var(--color-green-400)}.dark\:text-primary-300:where(.dark,.dark *){color:var(--primary-300)}.dark\:text-primary-400:where(.dark,.dark *){color:var(--primary-400)}.dark\:text-red-200:where(.dark,.dark *){color:var(--color-red-200)}.dark\:text-red-300:where(.dark,.dark *){color:var(--color-red-300)}.dark\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\:placeholder-gray-400:where(.dark,.dark *)::placeholder{color:var(--color-gray-400)}.dark\:placeholder-gray-500:where(.dark,.dark *)::placeholder{color:var(--color-gray-500)}.dark\:ring-gray-500\/20:where(.dark,.dark *){--tw-ring-color:#6a728233}@supports (color:color-mix(in lab,red,red)){.dark\:ring-gray-500\/20:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab,var(--color-gray-500)20%,transparent)}}.dark\:ring-green-400\/20:where(.dark,.dark *){--tw-ring-color:#05df7233}@supports (color:color-mix(in lab,red,red)){.dark\:ring-green-400\/20:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab,var(--color-green-400)20%,transparent)}}.dark\:ring-primary-400\/20:where(.dark,.dark *){--tw-ring-color:var(--primary-400)}@supports (color:color-mix(in lab,red,red)){.dark\:ring-primary-400\/20:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab,var(--primary-400)20%,transparent)}}.dark\:ring-red-400\/20:where(.dark,.dark *){--tw-ring-color:#ff656833}@supports (color:color-mix(in lab,red,red)){.dark\:ring-red-400\/20:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab,var(--color-red-400)20%,transparent)}}.dark\:ring-white:where(.dark,.dark *){--tw-ring-color:var(--color-white)}.dark\:ring-offset-gray-900:where(.dark,.dark *){--tw-ring-offset-color:var(--color-gray-900)}.dark\:checked\:border-primary-600:where(.dark,.dark *):checked{border-color:var(--primary-600)}.dark\:checked\:bg-primary-600:where(.dark,.dark *):checked{background-color:var(--primary-600)}@media(hover:hover){.dark\:hover\:border-gray-700:where(.dark,.dark *):hover{border-color:var(--color-gray-700)}.dark\:hover\:bg-gray-800:where(.dark,.dark *):hover{background-color:var(--color-gray-800)}.dark\:hover\:bg-gray-800\/50:where(.dark,.dark *):hover{background-color:#1e293980}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-gray-800\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-gray-800)50%,transparent)}}.dark\:hover\:bg-gray-900:where(.dark,.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-primary-900:where(.dark,.dark *):hover{background-color:var(--primary-900)}.dark\:hover\:text-gray-100:where(.dark,.dark *):hover{color:var(--color-gray-100)}.dark\:hover\:text-gray-300:where(.dark,.dark *):hover{color:var(--color-gray-300)}.dark\:hover\:text-primary-300:where(.dark,.dark *):hover{color:var(--primary-300)}}.dark\:focus\:border-primary-500:where(.dark,.dark *):focus{border-color:var(--primary-500)}.dark\:focus\:bg-gray-800:where(.dark,.dark *):focus{background-color:var(--color-gray-800)}.dark\:focus\:ring-primary-500:where(.dark,.dark *):focus{--tw-ring-color:var(--primary-500)}.dark\:focus\:ring-offset-gray-900:where(.dark,.dark *):focus{--tw-ring-offset-color:var(--color-gray-900)}.dark\:data-highlighted\:bg-gray-800:where(.dark,.dark *)[data-highlighted]{background-color:var(--color-gray-800)}.dark\:data-highlighted\:bg-red-950:where(.dark,.dark *)[data-highlighted]{background-color:var(--color-red-950)}.dark\:data-highlighted\:text-gray-100:where(.dark,.dark *)[data-highlighted]{color:var(--color-gray-100)}.dark\:data-highlighted\:text-red-300:where(.dark,.dark *)[data-highlighted]{color:var(--color-red-300)}.dark\:data-open\:bg-gray-800:where(.dark,.dark *)[data-open]{background-color:var(--color-gray-800)}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--color-sidebar-accent-foreground)}}:root{--primary-50:var(--color-violet-50);--primary-100:var(--color-violet-100);--primary-200:var(--color-violet-200);--primary-300:var(--color-violet-300);--primary-400:var(--color-violet-400);--primary-500:var(--color-violet-500);--primary-600:var(--color-violet-600);--primary-700:var(--color-violet-700);--primary-800:var(--color-violet-800);--primary-900:var(--color-violet-900);--primary-950:var(--color-violet-950)}[data-color-theme=emerald]{--primary-50:var(--color-emerald-50);--primary-100:var(--color-emerald-100);--primary-200:var(--color-emerald-200);--primary-300:var(--color-emerald-300);--primary-400:var(--color-emerald-400);--primary-500:var(--color-emerald-500);--primary-600:var(--color-emerald-600);--primary-700:var(--color-emerald-700);--primary-800:var(--color-emerald-800);--primary-900:var(--color-emerald-900);--primary-950:var(--color-emerald-950)}[data-color-theme=teal]{--primary-50:var(--color-teal-50);--primary-100:var(--color-teal-100);--primary-200:var(--color-teal-200);--primary-300:var(--color-teal-300);--primary-400:var(--color-teal-400);--primary-500:var(--color-teal-500);--primary-600:var(--color-teal-600);--primary-700:var(--color-teal-700);--primary-800:var(--color-teal-800);--primary-900:var(--color-teal-900);--primary-950:var(--color-teal-950)}[data-color-theme=cyan]{--primary-50:var(--color-cyan-50);--primary-100:var(--color-cyan-100);--primary-200:var(--color-cyan-200);--primary-300:var(--color-cyan-300);--primary-400:var(--color-cyan-400);--primary-500:var(--color-cyan-500);--primary-600:var(--color-cyan-600);--primary-700:var(--color-cyan-700);--primary-800:var(--color-cyan-800);--primary-900:var(--color-cyan-900);--primary-950:var(--color-cyan-950)}[data-color-theme=sky]{--primary-50:var(--color-sky-50);--primary-100:var(--color-sky-100);--primary-200:var(--color-sky-200);--primary-300:var(--color-sky-300);--primary-400:var(--color-sky-400);--primary-500:var(--color-sky-500);--primary-600:var(--color-sky-600);--primary-700:var(--color-sky-700);--primary-800:var(--color-sky-800);--primary-900:var(--color-sky-900);--primary-950:var(--color-sky-950)}[data-color-theme=blue]{--primary-50:var(--color-blue-50);--primary-100:var(--color-blue-100);--primary-200:var(--color-blue-200);--primary-300:var(--color-blue-300);--primary-400:var(--color-blue-400);--primary-500:var(--color-blue-500);--primary-600:var(--color-blue-600);--primary-700:var(--color-blue-700);--primary-800:var(--color-blue-800);--primary-900:var(--color-blue-900);--primary-950:var(--color-blue-950)}[data-color-theme=indigo]{--primary-50:var(--color-indigo-50);--primary-100:var(--color-indigo-100);--primary-200:var(--color-indigo-200);--primary-300:var(--color-indigo-300);--primary-400:var(--color-indigo-400);--primary-500:var(--color-indigo-500);--primary-600:var(--color-indigo-600);--primary-700:var(--color-indigo-700);--primary-800:var(--color-indigo-800);--primary-900:var(--color-indigo-900);--primary-950:var(--color-indigo-950)}[data-color-theme=violet]{--primary-50:var(--color-violet-50);--primary-100:var(--color-violet-100);--primary-200:var(--color-violet-200);--primary-300:var(--color-violet-300);--primary-400:var(--color-violet-400);--primary-500:var(--color-violet-500);--primary-600:var(--color-violet-600);--primary-700:var(--color-violet-700);--primary-800:var(--color-violet-800);--primary-900:var(--color-violet-900);--primary-950:var(--color-violet-950)}[data-color-theme=purple]{--primary-50:var(--color-purple-50);--primary-100:var(--color-purple-100);--primary-200:var(--color-purple-200);--primary-300:var(--color-purple-300);--primary-400:var(--color-purple-400);--primary-500:var(--color-purple-500);--primary-600:var(--color-purple-600);--primary-700:var(--color-purple-700);--primary-800:var(--color-purple-800);--primary-900:var(--color-purple-900);--primary-950:var(--color-purple-950)}.dark{--color-sidebar:#000;--color-sidebar-foreground:var(--color-gray-300);--color-sidebar-accent:var(--color-gray-900);--color-sidebar-accent-foreground:var(--color-gray-100);--color-sidebar-border:var(--color-gray-950);--color-sidebar-ring:var(--color-gray-600)}body{font-family:var(--font-sans);background-color:var(--color-background);color:var(--color-foreground)}@keyframes loading-bar{0%{width:0%;margin-left:0%}50%{width:30%;margin-left:40%}to{width:0%;margin-left:100%}}.animate-loading-bar{animation:1s ease-in-out infinite loading-bar}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import{a,p as e,q as ne,t as ae,v as oe,w as ie,x as de,y as le,z as ce,A as ue,B as me,M as he,L as fe,S as ge,C as xe,O as be,i as pe}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{c as d,u as L,m as E,a as ve,D as ye}from"./db-link-CtPnIrIr.js";import{c as M}from"./createLucideIcon-BXGwbdrh.js";import{M as z,a as H,b as P,c as D,d as q,e as S}from"./MenuTrigger-SThQHnlb.js";import"./useOpenInteractionType-C_L8nZ_l.js";import"./index-DhMkYPMa.js";const we=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],je=M("monitor",we);const ke=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],R=M("moon",ke);const Ne=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Se=M("panel-left",Ne);const Me=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],T=M("sun",Me),A=["emerald","teal","cyan","sky","blue","indigo","violet","purple"],Ce={emerald:"#059669",teal:"#0d9488",cyan:"#0891b2",sky:"#0284c7",blue:"#2563eb",indigo:"#4f46e5",violet:"#7c3aed",purple:"#9333ea"},V=a.createContext(void 0),$="pg-boss-theme",G="pg-boss-color-theme";function C(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function I(){if(typeof window>"u")return"system";const t=localStorage.getItem($);return t==="light"||t==="dark"||t==="system"?t:"system"}function Le(){if(typeof window>"u")return"violet";const t=localStorage.getItem(G);return t&&A.includes(t)?t:"violet"}function Ee({children:t}){const[s,r]=a.useState(I),[n,i]=a.useState(()=>{const o=I();return o==="system"?C():o}),[l,m]=a.useState(Le);a.useEffect(()=>{const o=s==="system"?C():s;i(o);const u=document.documentElement;u.classList.remove("light","dark"),u.classList.add(o)},[s]),a.useEffect(()=>{const o=window.matchMedia("(prefers-color-scheme: dark)"),u=()=>{if(s==="system"){const b=C();i(b),document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(b)}};return o.addEventListener("change",u),()=>o.removeEventListener("change",u)},[s]),a.useEffect(()=>{document.documentElement.dataset.colorTheme=l;const u=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="6" fill="${Ce[l]}"/><text x="16" y="22" text-anchor="middle" font-family="system-ui,sans-serif" font-size="14" font-weight="bold" fill="white">PG</text></svg>`,b=encodeURIComponent(u);let f=document.querySelector('link[rel="icon"]');f?f.href=`data:image/svg+xml,${b}`:(f=document.createElement("link"),f.rel="icon",f.type="image/svg+xml",f.href=`data:image/svg+xml,${b}`,document.head.appendChild(f))},[l]);const x=o=>{r(o),localStorage.setItem($,o)},h=o=>{m(o),localStorage.setItem(G,o)};return e.jsx(V.Provider,{value:{theme:s,setTheme:x,resolvedTheme:n,colorTheme:l,setColorTheme:h},children:t})}function W(){const t=a.useContext(V);if(t===void 0)throw new Error("useTheme must be used within a ThemeProvider");return t}const Re={light:"Light",dark:"Dark",system:"System"};function Te(){const{theme:t,setTheme:s,resolvedTheme:r}=W();return e.jsxs(z,{children:[e.jsxs(H,{className:d("flex items-center gap-2 rounded-md p-2 w-full cursor-pointer","text-sidebar-foreground/70 hover:text-sidebar-foreground hover:bg-sidebar-accent","focus:outline-none","transition-colors"),"aria-label":"Toggle theme",children:[r==="dark"?e.jsx(R,{className:"h-5 w-5 shrink-0"}):e.jsx(T,{className:"h-5 w-5 shrink-0"}),e.jsx("span",{className:"text-sm group-data-[state=collapsed]:hidden",children:Re[t]})]}),e.jsx(P,{container:typeof document<"u"?document.body:void 0,children:e.jsx(D,{className:"z-[100]",children:e.jsxs(q,{className:d("min-w-[8rem] rounded-md border p-1 shadow-md z-[100]","bg-white border-gray-200","dark:bg-gray-900 dark:border-gray-800","animate-in fade-in-0 zoom-in-95"),children:[e.jsxs(S,{className:d("flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm cursor-pointer","outline-none transition-colors","text-gray-700 data-highlighted:bg-gray-100","dark:text-gray-300 dark:data-highlighted:bg-gray-800",t==="light"&&"bg-gray-100 dark:bg-gray-800"),onClick:()=>s("light"),children:[e.jsx(T,{className:"h-4 w-4"}),"Light"]}),e.jsxs(S,{className:d("flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm cursor-pointer","outline-none transition-colors","text-gray-700 data-highlighted:bg-gray-100","dark:text-gray-300 dark:data-highlighted:bg-gray-800",t==="dark"&&"bg-gray-100 dark:bg-gray-800"),onClick:()=>s("dark"),children:[e.jsx(R,{className:"h-4 w-4"}),"Dark"]}),e.jsxs(S,{className:d("flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm cursor-pointer","outline-none transition-colors","text-gray-700 data-highlighted:bg-gray-100","dark:text-gray-300 dark:data-highlighted:bg-gray-800",t==="system"&&"bg-gray-100 dark:bg-gray-800"),onClick:()=>s("system"),children:[e.jsx(je,{className:"h-4 w-4"}),"System"]})]})})})]})}const _={emerald:"bg-emerald-500",teal:"bg-teal-500",cyan:"bg-cyan-500",sky:"bg-sky-500",blue:"bg-blue-500",indigo:"bg-indigo-500",violet:"bg-violet-500",purple:"bg-purple-500"},B={emerald:"Emerald",teal:"Teal",cyan:"Cyan",sky:"Sky",blue:"Blue",indigo:"Indigo",violet:"Violet",purple:"Purple"};function Ie(){const{colorTheme:t,setColorTheme:s}=W();return e.jsxs(z,{children:[e.jsxs(H,{className:d("flex items-center gap-2 rounded-md p-2 w-full cursor-pointer","text-sidebar-foreground/70 hover:text-sidebar-foreground hover:bg-sidebar-accent","focus:outline-none","transition-colors"),"aria-label":"Change color theme",children:[e.jsx("span",{className:d("h-5 w-5 rounded-full shrink-0",_[t])}),e.jsx("span",{className:"text-sm group-data-[state=collapsed]:hidden",children:B[t]})]}),e.jsx(P,{container:typeof document<"u"?document.body:void 0,children:e.jsx(D,{className:"z-[100]",children:e.jsx(q,{className:d("rounded-md border p-2 shadow-md z-[100]","bg-white border-gray-200","dark:bg-gray-900 dark:border-gray-800","animate-in fade-in-0 zoom-in-95"),children:e.jsx("div",{className:"grid grid-cols-4 gap-1.5",children:A.map(r=>e.jsx(S,{className:d("w-7 h-7 rounded-full cursor-pointer transition-all","outline-none","hover:scale-110",_[r],t===r&&"ring-2 ring-offset-2 ring-gray-900 dark:ring-white dark:ring-offset-gray-900"),onClick:()=>s(r),"aria-label":r,title:B[r]},r))})})})})]})}function _e({content:t,children:s,side:r="right",align:n="center"}){const[i,l]=a.useState(!1),[m,x]=a.useState({top:0,left:0}),h=a.useRef(null),o=a.useRef(null),u=a.useCallback(()=>{if(!h.current||!o.current)return;const c=h.current.getBoundingClientRect(),g=o.current.getBoundingClientRect();let y=0,j=0;switch(r){case"top":y=c.top-g.height-8,j=c.left+(c.width-g.width)/2;break;case"right":y=c.top+(c.height-g.height)/2,j=c.right+8;break;case"bottom":y=c.bottom+8,j=c.left+(c.width-g.width)/2;break;case"left":y=c.top+(c.height-g.height)/2,j=c.left-g.width-8;break}r==="top"||r==="bottom"?n==="start"?j=c.left:n==="end"&&(j=c.right-g.width):n==="start"?y=c.top:n==="end"&&(y=c.bottom-g.height),x({top:y,left:j})},[r,n]);a.useEffect(()=>{if(i)return u(),window.addEventListener("scroll",u,!0),window.addEventListener("resize",u),()=>{window.removeEventListener("scroll",u,!0),window.removeEventListener("resize",u)}},[i,u]);const b=()=>{l(!0)},f=()=>{l(!1)},w=a.Children.only(s),k=a.cloneElement(w,{ref:c=>{c&&(h.current=c);const g=w.ref;typeof g=="function"?g(c):g&&(g.current=c)},onMouseEnter:c=>{b(),w.props?.onMouseEnter?.(c)},onMouseLeave:c=>{f(),w.props?.onMouseLeave?.(c)}});return e.jsxs(e.Fragment,{children:[k,i&&e.jsx("div",{ref:o,role:"tooltip",style:{position:"fixed",top:m.top,left:m.left,zIndex:9999},className:d("px-3 py-1.5 text-sm font-medium text-white bg-gray-900 dark:bg-gray-700 rounded-md shadow-lg","pointer-events-none animate-in fade-in-0 zoom-in-95","whitespace-nowrap"),children:t})]})}const Be="sidebar:state",Oe=3600*24*7,ze="16rem",He="3rem",Pe="b",K=a.createContext(null);function N(){const t=a.useContext(K);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}const Z=a.forwardRef(({defaultOpen:t=!0,open:s,onOpenChange:r,className:n,style:i,children:l,...m},x)=>{const[h,o]=a.useState(!1),[u,b]=a.useState(t),f=s??u,w=a.useCallback(p=>{const v=typeof p=="function"?p(f):p;r?r(v):b(v),document.cookie=`${Be}=${v}; path=/; max-age=${Oe}`},[r,f]),k=a.useCallback(()=>w(p=>!p),[w]),[c,g]=a.useState(!1);a.useEffect(()=>{const p=window.matchMedia("(max-width: 768px)"),v=()=>g(p.matches);return v(),p.addEventListener("change",v),()=>p.removeEventListener("change",v)},[]),a.useEffect(()=>{const p=v=>{v.key===Pe&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),k())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[k]);const y=f?"expanded":"collapsed",j=a.useMemo(()=>({state:y,open:f,setOpen:w,isMobile:c,openMobile:h,setOpenMobile:o,toggleSidebar:k}),[y,f,w,c,h,o,k]);return e.jsx(K.Provider,{value:j,children:e.jsx("div",{style:{"--sidebar-width":ze,"--sidebar-width-icon":He,...i},className:d("group/sidebar-wrapper flex min-h-screen w-full has-[[data-variant=inset]]:bg-sidebar",n),ref:x,...m,children:l})})});Z.displayName="SidebarProvider";const U=a.forwardRef(({side:t="left",variant:s="sidebar",collapsible:r="offcanvas",className:n,children:i,...l},m)=>{const{isMobile:x,state:h,openMobile:o,setOpenMobile:u}=N();return r==="none"?e.jsx("div",{className:d("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:m,...l,children:i}):x?e.jsxs(e.Fragment,{children:[o&&e.jsx("div",{className:"fixed inset-0 z-50 bg-black/50",onClick:()=>u(!1)}),e.jsx("div",{ref:m,className:d("fixed inset-y-0 z-50 flex h-full w-[--sidebar-width-mobile] flex-col border-r border-sidebar-border bg-sidebar text-sidebar-foreground transition-transform duration-200 ease-in-out",t==="left"?"left-0":"right-0",o?"translate-x-0":t==="left"?"-translate-x-full":"translate-x-full",n),...l,children:i})]}):e.jsx("div",{ref:m,"data-state":h,className:d("group peer hidden md:flex fixed inset-y-0 left-0 z-30 flex-col border-r border-sidebar-border bg-sidebar text-sidebar-foreground overflow-y-auto overflow-x-hidden","transition-[width] duration-200 ease-linear",h==="expanded"?"w-[--sidebar-width]":"w-[--sidebar-width-icon]",n),...l,children:i})});U.displayName="Sidebar";const F=a.forwardRef(({className:t,onClick:s,...r},n)=>{const{toggleSidebar:i,isMobile:l,openMobile:m,setOpenMobile:x}=N();return e.jsxs("button",{ref:n,onClick:h=>{s?.(h),l?x(!m):i()},className:d("inline-flex items-center justify-center rounded-md p-2 cursor-pointer","text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...r,children:[e.jsx(Se,{className:"h-5 w-5"}),e.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";const Q=a.forwardRef(({className:t,...s},r)=>e.jsx("div",{ref:r,className:d("flex flex-col gap-2 p-2 overflow-hidden",t),...s}));Q.displayName="SidebarHeader";const J=a.forwardRef(({className:t,...s},r)=>e.jsx("div",{ref:r,className:d("flex flex-col gap-2 p-2 overflow-hidden",t),...s}));J.displayName="SidebarFooter";const Y=a.forwardRef(({className:t,...s},r)=>e.jsx("div",{ref:r,className:d("flex min-h-0 flex-1 flex-col gap-2 overflow-auto",t),...s}));Y.displayName="SidebarContent";const X=a.forwardRef(({className:t,...s},r)=>e.jsx("div",{ref:r,className:d("relative flex w-full min-w-0 flex-col p-2",t),...s}));X.displayName="SidebarGroup";const De=a.forwardRef(({className:t,...s},r)=>e.jsx("div",{ref:r,className:d("px-2 text-xs font-medium text-sidebar-foreground/70",t),...s}));De.displayName="SidebarGroupLabel";const ee=a.forwardRef(({className:t,...s},r)=>e.jsx("div",{ref:r,className:d("w-full text-sm",t),...s}));ee.displayName="SidebarGroupContent";const te=a.forwardRef(({className:t,...s},r)=>e.jsx("ul",{ref:r,className:d("flex w-full min-w-0 flex-col gap-1",t),...s}));te.displayName="SidebarMenu";const se=a.forwardRef(({className:t,...s},r)=>e.jsx("li",{ref:r,className:d("group/menu-item relative",t),...s}));se.displayName="SidebarMenuItem";const qe=ve("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 cursor-pointer group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 group-data-[state=collapsed]:justify-center",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[state=collapsed]:!h-8"}},defaultVariants:{variant:"default",size:"default"}}),re=a.forwardRef(({render:t,isActive:s=!1,variant:r="default",size:n="default",tooltip:i,className:l,...m},x)=>{const{state:h}=N(),o=L({defaultTagName:"button",render:t,props:E({"data-sidebar":"menu-button","data-active":s,className:d(qe({variant:r,size:n}),s&&"bg-sidebar-accent font-medium text-sidebar-accent-foreground",l)},m),ref:x});return h==="collapsed"&&i&&typeof i=="string"?e.jsx(_e,{content:i,children:o}):o});re.displayName="SidebarMenuButton";const Ae=a.forwardRef(({className:t,render:s,showOnHover:r=!1,...n},i)=>L({defaultTagName:"button",render:s,props:E({"data-sidebar":"menu-action",className:d("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-hover/menu-button:text-sidebar-accent-foreground",r&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t)},n),ref:i}));Ae.displayName="SidebarMenuAction";const Ve=a.forwardRef(({className:t,...s},r)=>e.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:d("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5",t),...s}));Ve.displayName="SidebarMenuSub";const $e=a.forwardRef(({...t},s)=>e.jsx("li",{ref:s,...t}));$e.displayName="SidebarMenuSubItem";const Ge=a.forwardRef(({render:t,size:s="md",isActive:r,className:n,...i},l)=>L({defaultTagName:"a",render:t,props:E({"data-sidebar":"menu-sub-button","data-size":s,"data-active":r,className:d("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",s==="sm"&&"text-xs",s==="md"&&"text-sm",n)},i),ref:l}));Ge.displayName="SidebarMenuSubButton";const We=[{name:"Overview",href:"/",icon:Ke},{name:"Jobs",href:"/jobs",icon:Ze},{name:"Queues",href:"/queues",icon:Ue},{name:"Schedules",href:"/schedules",icon:Fe},{name:"Warnings",href:"/warnings",icon:Qe}];function Ke({className:t}){return e.jsx("svg",{className:t,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})})}function Ze({className:t}){return e.jsx("svg",{className:t,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25ZM6.75 12h.008v.008H6.75V12Zm0 3h.008v.008H6.75V15Zm0 3h.008v.008H6.75V18Z"})})}function Ue({className:t}){return e.jsx("svg",{className:t,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 0 1 0 3.75H5.625a1.875 1.875 0 0 1 0-3.75Z"})})}function Fe({className:t}){return e.jsx("svg",{className:t,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})}function Qe({className:t}){return e.jsx("svg",{className:t,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})})}function O({className:t}){return e.jsx("svg",{className:t,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})})}function Je({className:t}){return e.jsx("svg",{className:t,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})}function Ye({databases:t,currentDb:s,onSelect:r}){const[n,i]=a.useState(!1);return t.length<=1?null:e.jsxs("div",{className:"relative",children:[e.jsxs("button",{type:"button",onClick:()=>i(!n),className:d("w-full flex items-center justify-between px-3 py-2 text-sm rounded-lg transition-colors cursor-pointer","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"),children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx(O,{className:"w-4 h-4 flex-shrink-0"}),e.jsx("span",{className:"font-medium truncate",children:s.name})]}),e.jsx(Je,{className:d("w-4 h-4 flex-shrink-0 transition-transform",n&&"rotate-180")})]}),n&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>i(!1)}),e.jsx("div",{className:d("absolute left-0 right-0 mt-1 rounded-lg shadow-lg z-20 py-1","bg-sidebar-accent border border-sidebar-border"),children:t.map(l=>e.jsxs("button",{type:"button",onClick:()=>{r(l),i(!1)},className:d("w-full flex items-center gap-2 px-3 py-2 text-sm text-left transition-colors cursor-pointer",l.id===s.id?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"),children:[e.jsx(O,{className:d("w-4 h-4 flex-shrink-0")}),e.jsx("span",{className:"truncate",children:l.name}),l.schema!=="pgboss"&&e.jsxs("span",{className:"ml-auto text-xs opacity-70",children:["(",l.schema,")"]})]},l.id))})]})]})}function Xe(){const t=ne("root"),[s]=ae(),r=oe(),{setOpenMobile:n}=N(),i=t?.databases||[],l=t?.currentDb,m=s.get("db"),x=o=>{const u=new URLSearchParams(s);o.id===i[0]?.id?u.delete("db"):u.set("db",o.id);const b=u.toString();r({pathname:window.location.pathname,search:b?`?${b}`:""})},h=o=>m?`${o}?db=${m}`:o;return e.jsxs(U,{children:[e.jsxs(Q,{children:[e.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary-600 flex items-center justify-center shrink-0",children:e.jsx("span",{className:"text-white font-bold text-sm",children:"PG"})}),e.jsx("span",{className:"font-semibold text-sidebar-foreground group-data-[state=collapsed]:hidden",children:"pg-boss"})]}),i&&l&&i.length>1&&e.jsx("div",{className:"group-data-[state=collapsed]:hidden",children:e.jsx(Ye,{databases:i,currentDb:l,onSelect:x})})]}),e.jsx(Y,{children:e.jsx(X,{children:e.jsx(ee,{children:e.jsx(te,{children:We.map(o=>e.jsx(se,{children:e.jsx(ie,{to:h(o.href),end:o.href==="/",onClick:()=>n(!1),children:({isActive:u})=>e.jsxs(re,{isActive:u,tooltip:o.name,children:[e.jsx(o.icon,{className:"h-5 w-5 flex-shrink-0"}),e.jsx("span",{className:"group-data-[state=collapsed]:hidden",children:o.name})]})})},o.name))})})})}),e.jsx(J,{children:e.jsxs("div",{className:"flex flex-col px-2",children:[e.jsx("p",{className:"px-2 mb-1 text-xs font-medium text-sidebar-foreground/50 uppercase tracking-wider group-data-[state=collapsed]:hidden",children:"Theme"}),e.jsx(Te,{}),e.jsx(Ie,{})]})})]})}function et(){return de().state==="loading"?e.jsx("div",{className:"fixed top-0 left-0 right-0 z-50 h-1 bg-gray-200 dark:bg-gray-800",children:e.jsx("div",{className:"h-full bg-primary-600 dark:bg-primary-400 animate-loading-bar"})}):null}function tt(){le();const s=ce().pathname.split("/").filter(Boolean);if(s.length===0)return null;const r=[];if(s[0]==="queues"){if(r.push({label:"Queues",href:"/queues"}),s.length>1&&s[1]!=="queues"){const n=decodeURIComponent(s[1]);if(r.push({label:n,href:`/queues/${encodeURIComponent(n)}`}),s.length>2&&s[2]==="jobs"&&s[3]){const i=s[3];r.push({label:`${i.slice(0,8)}...`})}}}else if(s[0]==="schedules"){if(r.push({label:"Schedules",href:"/schedules"}),s.length>1&&s[1]==="new")r.push({label:"New Schedule"});else if(s.length>1){const n=decodeURIComponent(s[1]);r.push({label:n})}}else s[0]==="jobs"?r.push({label:"Jobs"}):s[0]==="warnings"?r.push({label:"Warnings"}):s[0]==="send"&&(r.push({label:"Queues",href:"/queues"}),r.push({label:"Send Job"}));return r.length===0?null:e.jsx("div",{className:"flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400",children:r.map((n,i)=>{const l=i===r.length-1;return e.jsxs("div",{className:"flex items-center gap-2",children:[i>0&&e.jsx("span",{children:"/"}),n.href&&!l?e.jsx(ye,{to:n.href,className:"hover:text-gray-700 dark:hover:text-gray-300",children:n.label}):e.jsx("span",{className:l?"text-gray-900 dark:text-gray-100 font-medium":"",children:n.label})]},i)})})}function st({children:t}){const{open:s,isMobile:r,state:n}=N();return e.jsxs("main",{className:d("flex-1 min-w-0 overflow-x-hidden bg-gray-50 dark:bg-black transition-[padding] duration-200 ease-linear",!r&&(n==="expanded"?"md:pl-32":"md:pl-12")),children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-2",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(F,{}),e.jsx(tt,{})]}),!s&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-7 h-7 rounded-lg bg-primary-600 flex items-center justify-center md:hidden",children:e.jsx("span",{className:"text-white font-bold text-xs",children:"PG"})}),e.jsx("span",{className:"font-semibold text-sidebar-foreground md:hidden",children:"pg-boss"})]})]}),e.jsx("div",{className:"px-6 pb-6 lg:px-8 lg:pb-8",children:t})]})}const rt=`
|
|
2
|
+
(function() {
|
|
3
|
+
const stored = localStorage.getItem('pg-boss-theme');
|
|
4
|
+
let theme = stored || 'system';
|
|
5
|
+
if (theme === 'system') {
|
|
6
|
+
theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
7
|
+
}
|
|
8
|
+
document.documentElement.classList.add(theme);
|
|
9
|
+
|
|
10
|
+
const colorHex = {
|
|
11
|
+
emerald: '#059669',
|
|
12
|
+
teal: '#0d9488',
|
|
13
|
+
cyan: '#0891b2',
|
|
14
|
+
sky: '#0284c7',
|
|
15
|
+
blue: '#2563eb',
|
|
16
|
+
indigo: '#4f46e5',
|
|
17
|
+
violet: '#7c3aed',
|
|
18
|
+
purple: '#9333ea',
|
|
19
|
+
};
|
|
20
|
+
const colorTheme = localStorage.getItem('pg-boss-color-theme') || 'violet';
|
|
21
|
+
document.documentElement.dataset.colorTheme = colorTheme;
|
|
22
|
+
|
|
23
|
+
// Create favicon with color theme
|
|
24
|
+
const hex = colorHex[colorTheme] || colorHex.violet;
|
|
25
|
+
const svg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="6" fill="' + hex + '"/><text x="16" y="22" text-anchor="middle" font-family="system-ui,sans-serif" font-size="14" font-weight="bold" fill="white">PG</text></svg>';
|
|
26
|
+
var link = document.querySelector('link[rel="icon"]');
|
|
27
|
+
if (!link) {
|
|
28
|
+
link = document.createElement('link');
|
|
29
|
+
link.rel = 'icon';
|
|
30
|
+
link.type = 'image/svg+xml';
|
|
31
|
+
document.head.appendChild(link);
|
|
32
|
+
}
|
|
33
|
+
link.href = 'data:image/svg+xml,' + encodeURIComponent(svg);
|
|
34
|
+
})();
|
|
35
|
+
`;function ct({children:t}){return e.jsxs("html",{lang:"en",suppressHydrationWarning:!0,children:[e.jsxs("head",{children:[e.jsx("meta",{charSet:"utf-8"}),e.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),e.jsx(he,{}),e.jsx(fe,{}),e.jsx("script",{dangerouslySetInnerHTML:{__html:rt}})]}),e.jsxs("body",{className:"bg-gray-50 dark:bg-black",children:[e.jsxs(Ee,{children:[e.jsx(et,{}),e.jsxs(Z,{children:[e.jsx(Xe,{}),e.jsx(st,{children:t})]})]}),e.jsx(ge,{}),e.jsx(xe,{})]})]})}const ut=ue(function(){return e.jsx(be,{})}),mt=me(function({error:s}){let r="Oops!",n="An unexpected error occurred.",i;return pe(s)&&(r=s.status===404?"404":"Error",n=s.status===404?"The requested page could not be found.":s.statusText||n),e.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[50vh] text-center",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 dark:text-gray-100 mb-2",children:r}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:n}),i]})});function ht(){return[{title:"pg-boss Dashboard"},{name:"description",content:"Monitor and manage pg-boss job queues"}]}function ft(){return[]}export{mt as ErrorBoundary,ct as Layout,ut as default,ft as links,ht as meta};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as b,B as f,t as P,p as e}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{D as c,e as l}from"./db-link-CtPnIrIr.js";import{B as N,C as k,a as S,b as T,c as w}from"./button-BaXUPm8v.js";import{T as B,a as E,b as d,c as r,d as v,e as s}from"./table-CTo0I5HG.js";import{P as D}from"./pagination-NfhvsUbp.js";import{E as R}from"./error-card-DmoxS3Ao.js";const I=f(function(){return e.jsx(R,{title:"Failed to load schedules"})}),K=b(function({loaderData:x}){const{schedules:o,totalCount:n,page:h,totalPages:m,hasNextPage:j,hasPrevPage:p}=x,[g,y]=P(),u=a=>{const t=new URLSearchParams(g);t.set("page",a.toString()),y(t)};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"Schedules"}),e.jsx("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:"Cron-based job schedules"})]}),e.jsx(c,{to:"/schedules/new",children:e.jsx(N,{variant:"primary",size:"md",className:"cursor-pointer",children:"Schedule Job"})})]}),e.jsxs(k,{children:[e.jsx(S,{children:e.jsxs(T,{children:["Schedules",n!==null&&` (${n.toLocaleString()})`]})}),e.jsx(w,{className:"p-0",children:e.jsxs(B,{children:[e.jsx(E,{children:e.jsxs(d,{children:[e.jsx(r,{children:"Queue"}),e.jsx(r,{children:"Key"}),e.jsx(r,{children:"Cron"}),e.jsx(r,{children:"Timezone"}),e.jsx(r,{children:"Created"}),e.jsx(r,{children:"Updated"})]})}),e.jsx(v,{children:o.length===0?e.jsx(d,{children:e.jsx(s,{className:"text-center text-gray-500 dark:text-gray-400 py-8",colSpan:6,children:"No schedules found"})}):o.map(a=>{const t=a.key||"__default__",C=`/schedules/${encodeURIComponent(a.name)}/${encodeURIComponent(t)}`;return e.jsxs(d,{children:[e.jsx(s,{children:e.jsx(c,{to:C,className:"font-medium text-gray-900 dark:text-gray-100",children:a.name})}),e.jsx(s,{children:a.key}),e.jsx(s,{children:e.jsx("code",{className:"text-xs bg-gray-100 dark:bg-gray-800 px-2 py-1 rounded text-gray-700 dark:text-gray-300",children:a.cron})}),e.jsx(s,{children:a.timezone||e.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"—"})}),e.jsx(s,{children:l(new Date(a.createdOn))}),e.jsx(s,{children:l(new Date(a.updatedOn))})]},`${a.name}:${a.key}`)})})]})}),n>0&&e.jsx(D,{page:h,totalPages:m,hasNextPage:j,hasPrevPage:p,onPageChange:u})]})]})});export{I as ErrorBoundary,K as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as h,B as g,a as y,p as e}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{D as u,e as c}from"./db-link-CtPnIrIr.js";import{B as s,C as a,a as d,b as n,c as i}from"./button-BaXUPm8v.js";import{D as j,a as p,b as f,c as k,d as N,e as b}from"./dialog-Bl8T588f.js";import{E as v}from"./error-card-DmoxS3Ao.js";import"./createLucideIcon-BXGwbdrh.js";import"./useOpenInteractionType-C_L8nZ_l.js";import"./index-DhMkYPMa.js";const T=g(function(){return e.jsx(v,{title:"Failed to load schedule",backTo:{href:"/schedules",label:"Back to Schedules"}})}),U=h(function({loaderData:o,actionData:l}){const{schedule:r}=o,[m,t]=y.useState(!1);return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsx("div",{children:e.jsxs("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:[r.name,r.key&&e.jsxs("span",{className:"font-normal text-gray-500 dark:text-gray-400",children:[" (",r.key,")"]})]})}),e.jsx(s,{variant:"danger",size:"md",className:"cursor-pointer",onClick:()=>t(!0),children:"Unschedule"})]}),l?.error&&e.jsx("div",{className:"rounded-lg bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 p-4",children:e.jsx("p",{className:"text-sm text-red-800 dark:text-red-200",children:l.error})}),e.jsxs("div",{className:"grid gap-6",children:[e.jsxs(a,{children:[e.jsx(d,{children:e.jsx(n,{children:"Schedule Configuration"})}),e.jsxs(i,{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Queue"}),e.jsx("dd",{className:"mt-1",children:e.jsx(u,{to:`/queues/${encodeURIComponent(r.name)}`,className:"text-sm text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300",children:r.name})})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Key"}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:r.key||e.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"—"})})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Cron Expression"}),e.jsx("dd",{className:"mt-1",children:e.jsx("code",{className:"text-sm bg-gray-100 dark:bg-gray-800 px-2 py-1 rounded text-gray-700 dark:text-gray-300",children:r.cron})})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Timezone"}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:r.timezone||e.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"Default"})})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Created"}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:c(new Date(r.createdOn))})]}),e.jsxs("div",{children:[e.jsx("dt",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:"Updated"}),e.jsx("dd",{className:"mt-1 text-sm text-gray-900 dark:text-gray-100",children:c(new Date(r.updatedOn))})]})]})]}),r.data&&e.jsxs(a,{children:[e.jsx(d,{children:e.jsx(n,{children:"Data"})}),e.jsx(i,{children:e.jsx("pre",{className:"text-xs bg-gray-50 dark:bg-gray-900 p-4 rounded overflow-auto text-gray-700 dark:text-gray-300",children:JSON.stringify(r.data,null,2)})})]}),r.options&&e.jsxs(a,{children:[e.jsx(d,{children:e.jsx(n,{children:"Options"})}),e.jsx(i,{children:e.jsx("pre",{className:"text-xs bg-gray-50 dark:bg-gray-900 p-4 rounded overflow-auto text-gray-700 dark:text-gray-300",children:JSON.stringify(r.options,null,2)})})]})]}),e.jsx(j,{open:m,onOpenChange:t,children:e.jsx(p,{hideCloseButton:!0,className:"w-[28rem] max-w-[calc(100vw-2rem)]",children:e.jsxs("form",{method:"post",children:[e.jsx("input",{type:"hidden",name:"intent",value:"unschedule"}),e.jsxs(f,{children:[e.jsx(k,{children:"Unschedule Job"}),e.jsx(N,{className:"mt-2",children:"Are you sure you want to unschedule? This will stop the recurring job from being created."})]}),e.jsxs(b,{className:"mt-6 flex justify-end gap-3",children:[e.jsx(s,{type:"button",variant:"outline",size:"sm",className:"cursor-pointer",onClick:()=>t(!1),children:"Cancel"}),e.jsx(s,{type:"submit",variant:"danger",size:"sm",className:"cursor-pointer",children:"Unschedule"})]})]})})})]})});export{T as ErrorBoundary,U as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as N,B as v,D as w,x as S,a as s,G as C,p as e}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{c as a,D}from"./db-link-CtPnIrIr.js";import{B as m,C as E,a as F,b as B,c as L}from"./button-BaXUPm8v.js";import{E as z}from"./error-card-DmoxS3Ao.js";const U=v(function(){return e.jsx(z,{title:"Failed to load schedule creation",backTo:{href:"/schedules",label:"Back to Schedules"}})}),P=N(function({loaderData:h,actionData:A}){const l=w(),t=S().state==="submitting",{queues:b}=h,[x,u]=s.useState(""),[n,f]=s.useState(""),[k,o]=s.useState(!1),[i,c]=s.useState(!1),y=b.filter(r=>r.name.toLowerCase().includes(x.toLowerCase())),j=r=>{f(r),u(r),o(!1),c(!0)},g=C(({currentLocation:r,nextLocation:d})=>i&&!t&&r.pathname!==d.pathname);return s.useEffect(()=>{const r=d=>{i&&!t&&(d.preventDefault(),d.returnValue="")};return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[i,t]),e.jsxs("div",{className:"space-y-6",children:[g.state==="blocked"&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:e.jsxs("div",{className:"bg-white dark:bg-gray-900 rounded-lg shadow-lg p-6 max-w-md mx-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Unsaved Changes"}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6",children:"You have unsaved changes. Are you sure you want to leave this page?"}),e.jsxs("div",{className:"flex gap-3 justify-end",children:[e.jsx(m,{type:"button",variant:"outline",size:"sm",onClick:()=>g.reset(),children:"Stay"}),e.jsx(m,{type:"button",variant:"danger",size:"sm",onClick:()=>g.proceed(),children:"Leave"})]})]})}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"New Schedule"}),e.jsxs(E,{children:[e.jsx(F,{children:e.jsx(B,{children:"Details"})}),e.jsx(L,{children:e.jsxs("form",{method:"post",className:"space-y-5",onChange:()=>c(!0),onSubmit:()=>c(!1),children:[l&&"error"in l&&e.jsx("div",{className:a("rounded-lg border px-4 py-3 text-sm","bg-red-50 border-red-200 text-red-700","dark:bg-red-950 dark:border-red-800 dark:text-red-400"),children:l.error}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:["Queue Name ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",id:"queueSearch",value:x,onChange:r=>{u(r.target.value),o(!0)},onFocus:()=>o(!0),onBlur:()=>setTimeout(()=>o(!1),200),placeholder:"Search for a queue...",autoComplete:"off",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("input",{type:"hidden",name:"name",value:n,required:!0}),k&&y.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",children:y.map(r=>e.jsx("button",{type:"button",onClick:()=>j(r.name),className:"w-full text-left px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-900 dark:text-gray-100 cursor-pointer text-sm",children:r.name},r.name))})]}),n&&e.jsxs("p",{className:"mt-1 text-xs text-green-600 dark:text-green-400",children:["Selected: ",n]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"key",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Schedule Key"}),e.jsx("input",{type:"text",id:"key",name:"key",placeholder:"Optional unique key",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"cron",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:["Cron Expression ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"text",id:"cron",name:"cron",required:!0,placeholder:"0 8 * * *",className:a("w-full rounded-lg border px-3 py-2 text-sm font-mono","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Format: minute hour day month weekday"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"timezone",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Timezone"}),e.jsx("input",{type:"text",id:"timezone",name:"timezone",placeholder:"UTC",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Optional: IANA timezone (e.g. UTC, America/New_York)"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"data",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Data"}),e.jsx("textarea",{id:"data",name:"data",rows:4,placeholder:'{"key": "value"}',className:a("w-full rounded-lg border px-3 py-2 text-sm font-mono","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Optional: JSON object to pass as job data"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"priority",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Priority"}),e.jsx("input",{type:"number",id:"priority",name:"priority",placeholder:"0",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryLimit",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Limit"}),e.jsx("input",{type:"number",id:"retryLimit",name:"retryLimit",min:"0",placeholder:"0",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"expireInSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Expire In Seconds"}),e.jsx("input",{type:"number",id:"expireInSeconds",name:"expireInSeconds",min:"1",placeholder:"Default",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[e.jsx(m,{type:"submit",disabled:t,className:"cursor-pointer",children:t?"Creating...":"Schedule Job"}),e.jsx(D,{to:"/schedules",className:"text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300",children:"Cancel"})]})]})})]})]})});export{U as ErrorBoundary,P as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as N,B as S,t as C,D,x as E,a as s,G as B,p as e}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{c as a,D as L}from"./db-link-CtPnIrIr.js";import{B as u,C as F,a as q,b as Q,c as A}from"./button-BaXUPm8v.js";import{E as I}from"./error-card-DmoxS3Ao.js";const O=S(function(){return e.jsx(I,{title:"Failed to load job sending page",backTo:{href:"/queues",label:"Back to Queues"}})}),R=N(function({loaderData:h}){const{queues:f}=h,[k]=C(),n=D(),t=E().state==="submitting",[l,i]=s.useState(!1),x=k.get("queue")||"",[m,y]=s.useState(x),[c,j]=s.useState(x),[v,o]=s.useState(!1),p=f.filter(r=>r.name.toLowerCase().includes(m.toLowerCase())),w=r=>{j(r),y(r),o(!1),i(!0)},g=B(({currentLocation:r,nextLocation:d})=>l&&!t&&r.pathname!==d.pathname);return s.useEffect(()=>{const r=d=>{l&&!t&&(d.preventDefault(),d.returnValue="")};return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[l,t]),e.jsxs("div",{className:"space-y-6",children:[g.state==="blocked"&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:e.jsxs("div",{className:"bg-white dark:bg-gray-900 rounded-lg shadow-lg p-6 max-w-md mx-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Unsaved Changes"}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6",children:"You have unsaved changes. Are you sure you want to leave this page?"}),e.jsxs("div",{className:"flex gap-3 justify-end",children:[e.jsx(u,{type:"button",variant:"outline",size:"sm",onClick:()=>g.reset(),children:"Stay"}),e.jsx(u,{type:"button",variant:"danger",size:"sm",onClick:()=>g.proceed(),children:"Leave"})]})]})}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:"Send Job"}),e.jsxs(F,{children:[e.jsx(q,{children:e.jsx(Q,{children:"Job Details"})}),e.jsx(A,{children:e.jsxs("form",{method:"post",className:"space-y-5",onChange:()=>i(!0),onSubmit:()=>i(!1),children:[n&&"error"in n&&e.jsx("div",{className:a("rounded-lg border px-4 py-3 text-sm","bg-red-50 border-red-200 text-red-700","dark:bg-red-950 dark:border-red-800 dark:text-red-400"),children:n.error}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"queueSearch",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:["Queue Name ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",id:"queueSearch",value:m,onChange:r=>{y(r.target.value),o(!0)},onFocus:()=>o(!0),onBlur:()=>setTimeout(()=>o(!1),200),placeholder:"Search for a queue...",autoComplete:"off",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("input",{type:"hidden",name:"queueName",value:c,required:!0}),v&&p.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",children:p.map(r=>e.jsx("button",{type:"button",onClick:()=>w(r.name),className:"w-full text-left px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-900 dark:text-gray-100 cursor-pointer text-sm",children:r.name},r.name))})]}),c&&e.jsxs("p",{className:"mt-1 text-xs text-green-600 dark:text-green-400",children:["Selected: ",c]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"data",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Data"}),e.jsx("textarea",{id:"data",name:"data",rows:6,placeholder:'{"key": "value"}',className:a("w-full rounded-lg border px-3 py-2 text-sm font-mono","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")}),e.jsx("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:"Optional: JSON object to pass as job data"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"priority",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Priority"}),e.jsx("input",{type:"number",id:"priority",name:"priority",placeholder:"0",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"startAfter",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Start After"}),e.jsx("input",{type:"text",id:"startAfter",name:"startAfter",placeholder:"e.g. 2025-01-01T00:00:00Z or 5 minutes",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"singletonKey",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Singleton Key"}),e.jsx("input",{type:"text",id:"singletonKey",name:"singletonKey",placeholder:"Optional unique key",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"retryLimit",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Retry Limit"}),e.jsx("input",{type:"number",id:"retryLimit",name:"retryLimit",min:"0",placeholder:"0",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"expireInSeconds",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Expire In Seconds"}),e.jsx("input",{type:"number",id:"expireInSeconds",name:"expireInSeconds",min:"1",placeholder:"Default",className:a("w-full rounded-lg border px-3 py-2 text-sm","bg-white border-gray-300 text-gray-900 placeholder-gray-400","dark:bg-gray-900 dark:border-gray-700 dark:text-gray-100 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-primary-600 focus:border-transparent")})]})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-2",children:[e.jsx(u,{type:"submit",disabled:t,children:t?"Sending...":"Send Job"}),e.jsx(L,{to:"/queues",className:"text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300",children:"Cancel"})]})]})})]})]})});export{O as ErrorBoundary,R as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as r}from"./chunk-JZWAC4HX-DC8i-F7r.js";import{c as t}from"./db-link-CtPnIrIr.js";function o({children:a,className:e}){return r.jsx("div",{className:t("overflow-x-auto",e),children:r.jsx("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-gray-800",children:a})})}function n({children:a,className:e}){return r.jsx("thead",{className:t("bg-gray-50 dark:bg-gray-900",e),children:a})}function c({children:a,className:e}){return r.jsx("tbody",{className:t("divide-y divide-gray-200 bg-white","dark:divide-gray-800 dark:bg-gray-950",e),children:a})}function l({children:a,className:e,onClick:s}){return r.jsx("tr",{className:t(s&&"cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-900 transition-colors",e),onClick:s,children:a})}function x({children:a,className:e}){return r.jsx("th",{scope:"col",className:t("px-6 py-3 text-left text-xs font-semibold text-gray-500 uppercase tracking-wider","dark:text-gray-400",e),children:a})}function g({children:a,className:e,colSpan:s}){return r.jsx("td",{className:t("px-6 py-4 whitespace-nowrap text-sm",e),colSpan:s,children:a})}export{o as T,n as a,l as b,x as c,c as d,g as e};
|