nestlens 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/dto/cursor-query.dto.d.ts +10 -0
- package/dist/api/dto/cursor-query.dto.js +63 -5
- package/dist/core/data-masker.service.js +27 -5
- package/dist/dashboard/public/assets/{BatchDetailView-CNyv7Vc1.js → BatchDetailView-CBbONEZ6.js} +1 -1
- package/dist/dashboard/public/assets/{BatchesPage-BrvAux3V.js → BatchesPage-C5asqolh.js} +1 -1
- package/dist/dashboard/public/assets/{CacheDetailView-CtmDMMR2.js → CacheDetailView-CqMU8Hge.js} +1 -1
- package/dist/dashboard/public/assets/{CachePage-D-LhEY8p.js → CachePage-Ce_yT75F.js} +1 -1
- package/dist/dashboard/public/assets/{CommandDetailView-B_6u-4-M.js → CommandDetailView-LlOynfrs.js} +1 -1
- package/dist/dashboard/public/assets/{CommandsPage-BtMSnG2A.js → CommandsPage-BwMh373Z.js} +1 -1
- package/dist/dashboard/public/assets/{CopyButton-C2sNp4HP.js → CopyButton-YkpN9Yi5.js} +1 -1
- package/dist/dashboard/public/assets/{DashboardPage-wUYPGV_y.js → DashboardPage-DdaOxHZ2.js} +1 -1
- package/dist/dashboard/public/assets/{DataTable-PCSvmOPj.js → DataTable-C9UKN_wr.js} +1 -1
- package/dist/dashboard/public/assets/{DetailRow-CfonsGvS.js → DetailRow-D_sZP7WV.js} +1 -1
- package/dist/dashboard/public/assets/{DumpDetailView-DGy7eSQl.js → DumpDetailView-B6Zk2IcH.js} +1 -1
- package/dist/dashboard/public/assets/{DumpsPage-jeUeiAuN.js → DumpsPage-BrYuIT5U.js} +1 -1
- package/dist/dashboard/public/assets/{EntryDetailPage-C5QubCqk.js → EntryDetailPage-D7qvNuMn.js} +3 -3
- package/dist/dashboard/public/assets/{EntrySearchInput-DLuCL4Ys.js → EntrySearchInput-DeOYz9h4.js} +1 -1
- package/dist/dashboard/public/assets/{EventDetailView-DrExHdP3.js → EventDetailView-dR0UDb6r.js} +1 -1
- package/dist/dashboard/public/assets/{EventsPage-CA-mVFw2.js → EventsPage-O1icFuRw.js} +1 -1
- package/dist/dashboard/public/assets/{ExceptionDetailView-xmNdG8Nb.js → ExceptionDetailView-FijwhgLY.js} +1 -1
- package/dist/dashboard/public/assets/{ExceptionsPage-D6ww4tft.js → ExceptionsPage-KuyeMrqK.js} +1 -1
- package/dist/dashboard/public/assets/{GateDetailView-Db3NrQmm.js → GateDetailView-CCUc65Vb.js} +1 -1
- package/dist/dashboard/public/assets/{GatesPage-CuEy3xE1.js → GatesPage-BKLfGgS9.js} +1 -1
- package/dist/dashboard/public/assets/{GraphQLDetailView-DZPwXidi.js → GraphQLDetailView-DN7qwLjl.js} +1 -1
- package/dist/dashboard/public/assets/{GraphQLPage-D4vF4fhg.js → GraphQLPage-BqkJnBEt.js} +1 -1
- package/dist/dashboard/public/assets/{HttpClientDetailView-7v6RERdZ.js → HttpClientDetailView-D7SRccHj.js} +1 -1
- package/dist/dashboard/public/assets/{HttpClientPage-Dz07Icgz.js → HttpClientPage-qC_nBzq2.js} +1 -1
- package/dist/dashboard/public/assets/{JobDetailView-DrDFXY-t.js → JobDetailView-B4A5Y2PM.js} +1 -1
- package/dist/dashboard/public/assets/{JobsPage-C7MOQ5N5.js → JobsPage-DyiOLpB1.js} +1 -1
- package/dist/dashboard/public/assets/{LogDetailView-OhpY0czv.js → LogDetailView-DZyruHPx.js} +1 -1
- package/dist/dashboard/public/assets/{LogsPage-CELJRQdo.js → LogsPage-6dDP3Pu_.js} +1 -1
- package/dist/dashboard/public/assets/{MailDetailView-rmPDboFn.js → MailDetailView-CLhOX0PN.js} +1 -1
- package/dist/dashboard/public/assets/{MailPage-CPmDY6cW.js → MailPage-tBhdhWmz.js} +1 -1
- package/dist/dashboard/public/assets/{ModelDetailView-DVh-32OU.js → ModelDetailView-CVszB9Qw.js} +1 -1
- package/dist/dashboard/public/assets/{ModelsPage-Bi2hB6U7.js → ModelsPage-BTLkoWRR.js} +1 -1
- package/dist/dashboard/public/assets/{NotificationDetailView-C_IGKjY3.js → NotificationDetailView-CwpaMgGn.js} +1 -1
- package/dist/dashboard/public/assets/{NotificationsPage-Bn3roYs1.js → NotificationsPage-BOPuEc8u.js} +1 -1
- package/dist/dashboard/public/assets/{PageHeader-CIBDYg8j.js → PageHeader-BQ2bLFIt.js} +1 -1
- package/dist/dashboard/public/assets/{QueriesPage-DzWPvH8G.js → QueriesPage-Plp4pZSN.js} +1 -1
- package/dist/dashboard/public/assets/{QueryDetailView-RUxW9Uqs.js → QueryDetailView-B64qfjgM.js} +1 -1
- package/dist/dashboard/public/assets/{RedisDetailView-Ceo27Mx3.js → RedisDetailView-BJ2OaAFq.js} +1 -1
- package/dist/dashboard/public/assets/{RedisPage-pBNy_8Qd.js → RedisPage-CS2bcK-q.js} +1 -1
- package/dist/dashboard/public/assets/{RequestDetailView-t5odupt4.js → RequestDetailView-DtTVzNFt.js} +1 -1
- package/dist/dashboard/public/assets/{RequestsPage-B2dLu5n_.js → RequestsPage-D9KghDZ-.js} +1 -1
- package/dist/dashboard/public/assets/{ScheduleDetailView-D8OZ-_yh.js → ScheduleDetailView-D8WOTS8u.js} +1 -1
- package/dist/dashboard/public/assets/{SchedulePage-CZ_j6ucP.js → SchedulePage-B3mUO2Ng.js} +1 -1
- package/dist/dashboard/public/assets/{UserCard-Dom0aCbz.js → UserCard-B8lhlqKk.js} +1 -1
- package/dist/dashboard/public/assets/{ViewDetailView-Bxd64RN9.js → ViewDetailView-CUH2MA6k.js} +1 -1
- package/dist/dashboard/public/assets/{ViewsPage-Bvm7RI_3.js → ViewsPage-BhlcyTU3.js} +1 -1
- package/dist/dashboard/public/assets/{calendar-BMPz0Z6s.js → calendar-gUrKMEEq.js} +1 -1
- package/dist/dashboard/public/assets/{circle-alert-t2lIvGjF.js → circle-alert-WNDYen0I.js} +1 -1
- package/dist/dashboard/public/assets/{circle-check-big-DfHJ1LXS.js → circle-check-big-B6oE8hF5.js} +1 -1
- package/dist/dashboard/public/assets/{circle-x-Cgixh9fi.js → circle-x-Ch0JMytg.js} +1 -1
- package/dist/dashboard/public/assets/{eye-DRW5kZff.js → eye-DWj2WfH_.js} +1 -1
- package/dist/dashboard/public/assets/{index-DOVqOa07.js → index-B1QFrlfD.js} +2 -2
- package/dist/dashboard/public/assets/{search-DgNz5G1h.js → search-n3qpR8sp.js} +1 -1
- package/dist/dashboard/public/assets/{send-BKsI3HhT.js → send-DkLuIqBH.js} +1 -1
- package/dist/dashboard/public/assets/{timer-hkll0vuQ.js → timer-Dczpo1G1.js} +1 -1
- package/dist/dashboard/public/assets/{types-nsz9P0qo.js → types-DwzjtRI3.js} +1 -1
- package/dist/dashboard/public/assets/{users-CTNyAW4A.js → users-D7CwV95U.js} +1 -1
- package/dist/dashboard/public/assets/{zap-BolYLTQe.js → zap-C7m34sPr.js} +1 -1
- package/dist/dashboard/public/index.html +1 -1
- package/package.json +1 -1
package/dist/dashboard/public/assets/{EntryDetailPage-C5QubCqk.js → EntryDetailPage-D7qvNuMn.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequestDetailView-
|
|
2
|
-
import{c as P,j as e,X as W,z as O,t as ge,g as ue,v as fe,_ as u}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequestDetailView-DtTVzNFt.js","./index-B1QFrlfD.js","./vendor-DBTT3jXp.js","./index-B9BCPNKv.css","./badgeColors-DQ_P_DOX.js","./DetailRow-D_sZP7WV.js","./types-DwzjtRI3.js","./UserCard-B8lhlqKk.js","./search-n3qpR8sp.js","./QueryDetailView-B64qfjgM.js","./ExceptionDetailView-FijwhgLY.js","./LogDetailView-DZyruHPx.js","./EventDetailView-dR0UDb6r.js","./CopyButton-YkpN9Yi5.js","./zap-C7m34sPr.js","./users-D7CwV95U.js","./JobDetailView-B4A5Y2PM.js","./circle-alert-WNDYen0I.js","./circle-check-big-B6oE8hF5.js","./CacheDetailView-CqMU8Hge.js","./circle-x-Ch0JMytg.js","./timer-Dczpo1G1.js","./MailDetailView-CLhOX0PN.js","./ScheduleDetailView-D8WOTS8u.js","./format-BlNP-apw.js","./calendar-gUrKMEEq.js","./HttpClientDetailView-D7SRccHj.js","./RedisDetailView-BJ2OaAFq.js","./ModelDetailView-CVszB9Qw.js","./NotificationDetailView-CwpaMgGn.js","./send-DkLuIqBH.js","./ViewDetailView-CUH2MA6k.js","./eye-DWj2WfH_.js","./CommandDetailView-LlOynfrs.js","./GateDetailView-CCUc65Vb.js","./BatchDetailView-CBbONEZ6.js","./DumpDetailView-B6Zk2IcH.js","./GraphQLDetailView-DN7qwLjl.js","./DataTable-C9UKN_wr.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as P,j as e,X as W,z as O,t as ge,g as ue,v as fe,_ as u}from"./index-B1QFrlfD.js";import{b as r,h as je,L as J}from"./vendor-DBTT3jXp.js";import{f as be,p as ke}from"./badgeColors-DQ_P_DOX.js";import{i as B,C as p,a as H,b as G,c as Q,d as ae,e as re,f as se,g as ne,h as le,j as X,k as ie,l as oe,m as ce,n as de,o as xe,p as ye,q as pe,r as he,s as Y}from"./types-DwzjtRI3.js";import{S as L}from"./search-n3qpR8sp.js";/**
|
|
3
3
|
* @license lucide-react v0.468.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
@@ -24,4 +24,4 @@ import{c as P,j as e,X as W,z as O,t as ge,g as ue,v as fe,_ as u}from"./index-D
|
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/const ee=P("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);function me(a,t){if(!a||typeof window>"u")return t;const s=window.location.hash.slice(1);if(!s)return t;try{return new URLSearchParams(s).get(a)||t}catch{return t}}function Ne({tabs:a,defaultTab:t,hashKey:s,headerRight:i,onTabChange:f}){var S,N;const g=t||((S=a[0])==null?void 0:S.id),[h,b]=r.useState(()=>me(s,g));r.useEffect(()=>{if(!s)return;const n=()=>{const y=me(s,g);b(y)};return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[s,g]);const w=r.useCallback(n=>{if(b(n),f==null||f(n),!s)return;const y=window.location.hash.slice(1),c=new URLSearchParams(y);n===g?c.delete(s):c.set(s,n);const T=c.toString(),D=T?`#${T}`:window.location.pathname+window.location.search;window.history.replaceState(null,"",D)},[s,g,f]),o=(N=a.find(n=>n.id===h))==null?void 0:N.content,x=r.useRef(new Map),l=r.useCallback((n,y)=>{var T;let c=null;switch(n.key){case"ArrowLeft":n.preventDefault(),c=y===0?a.length-1:y-1;break;case"ArrowRight":n.preventDefault(),c=y===a.length-1?0:y+1;break;case"Home":n.preventDefault(),c=0;break;case"End":n.preventDefault(),c=a.length-1;break}if(c!==null){const D=a[c];w(D.id),(T=x.current.get(D.id))==null||T.focus()}},[a,w]);return e.jsxs("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden",children:[e.jsxs("div",{className:"flex items-center border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800",children:[e.jsx("div",{className:"flex flex-1",role:"tablist","aria-label":"Content tabs",children:a.map((n,y)=>e.jsxs("button",{ref:c=>{c&&x.current.set(n.id,c)},role:"tab","aria-selected":h===n.id,"aria-controls":`tabpanel-${n.id}`,id:`tab-${n.id}`,tabIndex:h===n.id?0:-1,onClick:()=>w(n.id),onKeyDown:c=>l(c,y),className:`px-4 py-2.5 text-sm font-medium transition-colors relative ${h===n.id?"text-indigo-600 dark:text-indigo-400 bg-white dark:bg-gray-900":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700"}`,children:[e.jsxs("span",{className:"flex items-center gap-2",children:[n.label,n.badge!==void 0&&n.badge>0&&e.jsx("span",{className:"inline-flex items-center justify-center px-1.5 py-0.5 text-xs font-medium bg-gray-200 dark:bg-gray-600 text-gray-700 dark:text-gray-300 rounded",children:n.badge})]}),h===n.id&&e.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-indigo-600 dark:bg-indigo-400","aria-hidden":"true"})]},n.id))}),i&&e.jsx("div",{className:"px-3 flex items-center",children:i})]}),e.jsx("div",{role:"tabpanel",id:`tabpanel-${h}`,"aria-labelledby":`tab-${h}`,tabIndex:0,className:"bg-white dark:bg-gray-900",children:o})]})}function Ee(a){return a===null?"null":a===void 0?"undefined":Array.isArray(a)?"array":typeof a}function Te(a,t){return t==="array"?a.length:t==="object"?Object.keys(a).length:0}function ve(a,t,s){if(!t)return!1;const i=t.toLowerCase();return a===null?"null".includes(i):typeof a=="string"?a.toLowerCase().includes(i):typeof a=="number"||typeof a=="boolean"?String(a).includes(i):!1}function te(a,t){if(!t)return!1;const s=t.toLowerCase();return a===null?"null".includes(s):typeof a=="string"?a.toLowerCase().includes(s):typeof a=="number"||typeof a=="boolean"?String(a).includes(s):Array.isArray(a)?a.some(i=>te(i,t)):typeof a=="object"&&a!==null?Object.entries(a).some(([i,f])=>i.toLowerCase().includes(s)||te(f,t)):!1}const Ce=r.memo(function a({keyName:t,value:s,depth:i,expandedPaths:f,onToggle:g,searchTerm:h,path:b,isArrayItem:w=!1}){const o=Ee(s),x=o==="object"||o==="array",l=f.has(b),S=Te(s,o),N=S===0,n=!!h&&((t==null?void 0:t.toLowerCase().includes(h.toLowerCase()))??!1),y=ve(s,h),c=n||y,T=r.useCallback(()=>{g(b)},[g,b]),D=r.useCallback(E=>{E.stopPropagation();const j=typeof s=="string"?s:JSON.stringify(s,null,2);navigator.clipboard.writeText(j),O.success("Copied!")},[s]),V=()=>{const E=y?"bg-yellow-400/30 rounded px-0.5":"";switch(o){case"null":return e.jsx("span",{className:`text-orange-600 dark:text-orange-400 italic ${E}`,children:"null"});case"undefined":return e.jsx("span",{className:`text-gray-500 italic ${E}`,children:"undefined"});case"boolean":return e.jsx("span",{className:`text-purple-600 dark:text-purple-400 ${E}`,children:String(s)});case"number":return e.jsx("span",{className:`text-cyan-600 dark:text-cyan-400 ${E}`,children:String(s)});case"string":{const j=s,A=300,$=j.length>A,R=$?j.slice(0,A):j,M=/^https?:\/\//.test(j),U=/^\d{4}-\d{2}-\d{2}/.test(j),m=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(j);return e.jsxs("span",{className:`text-green-600 dark:text-green-400 ${E}`,children:['"',R,$&&e.jsxs("span",{className:"text-gray-500",children:["... (",j.length-A," more)"]}),'"',M&&e.jsx("span",{className:"ml-1 text-blue-600 dark:text-blue-400 text-xs",children:"(URL)"}),U&&e.jsx("span",{className:"ml-1 text-amber-600 dark:text-yellow-400 text-xs",children:"(Date)"}),m&&e.jsx("span",{className:"ml-1 text-pink-600 dark:text-pink-400 text-xs",children:"(Email)"})]})}case"array":return l?e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"["}):e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["[",N?"":e.jsxs("span",{className:"text-gray-500 text-xs ml-1",children:[S," items"]}),"]"]});case"object":return l?e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"{"}):e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["{",N?"":e.jsxs("span",{className:"text-gray-500 text-xs ml-1",children:[S," keys"]}),"}"]});default:return e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:String(s)})}},z=()=>{if(!x||!l)return null;const E=o==="array"?s.map((j,A)=>[String(A),j]):Object.entries(s);return e.jsxs(e.Fragment,{children:[E.map(([j,A])=>e.jsx(a,{keyName:j,value:A,depth:i+1,expandedPaths:f,onToggle:g,searchTerm:h,path:`${b}.${j}`,isArrayItem:o==="array"},`${b}.${j}`)),e.jsxs("div",{className:"flex items-start",children:[e.jsx("span",{className:"w-6 flex-shrink-0"}),e.jsx("div",{style:{paddingLeft:i*16+16},className:"text-gray-600 dark:text-gray-400",children:o==="array"?"]":"}"})]})]})},F=i*16;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`group flex items-start py-[1px] hover:bg-gray-100 dark:hover:bg-white/5 rounded cursor-pointer transition-colors ${c?"bg-yellow-500/10":""}`,onClick:x?T:void 0,children:[e.jsx("span",{className:"w-6 h-6 flex items-center justify-center flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx("button",{onClick:D,className:"p-1 hover:bg-gray-200 dark:hover:bg-gray-700 rounded text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",title:"Copy value",children:e.jsx(I,{className:"w-4 h-4"})})}),e.jsxs("div",{className:"flex items-start flex-1",style:{paddingLeft:F},children:[e.jsx("span",{className:"w-4 h-5 flex items-center justify-center flex-shrink-0",children:x&&!N&&(l?e.jsx(ge,{className:"w-3.5 h-3.5 text-gray-400 dark:text-gray-500"}):e.jsx(ue,{className:"w-3.5 h-3.5 text-gray-400 dark:text-gray-500"}))}),t!==null&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:`${w?"text-gray-500":"text-blue-700 dark:text-blue-300"} ${n?"bg-yellow-400/30 rounded px-0.5":""}`,children:w?t:`"${t}"`}),e.jsx("span",{className:"text-gray-500 mx-1",children:":"})]}),e.jsx("span",{className:"flex-1",children:V()})]})]}),z()]})});function _e({data:a,title:t,initialExpanded:s=!0,maxInitialDepth:i=2,searchable:f=!0,maxHeight:g=500,inline:h=!1,showToolbar:b=!1,externalSearchTerm:w}){const[o,x]=r.useState(!1),[l,S]=r.useState(""),[N,n]=r.useState(!1),y=w??l,c=S,[T,D]=r.useState(()=>{const m=new Set;if(s){const k=(d,v,C)=>{C>=i||(m.add(v),Array.isArray(d)?d.forEach((_,q)=>k(_,`${v}.${q}`,C+1)):typeof d=="object"&&d!==null&&Object.entries(d).forEach(([_,q])=>k(q,`${v}.${_}`,C+1)))};k(a,"root",0)}return m}),V=r.useMemo(()=>{const m=new Set;if(!y)return m;const k=(d,v)=>{te(d,y)&&m.add(v),Array.isArray(d)?d.forEach((C,_)=>k(C,`${v}.${_}`)):typeof d=="object"&&d!==null&&Object.entries(d).forEach(([C,_])=>k(_,`${v}.${C}`))};return k(a,"root"),m},[y,a]),z=r.useMemo(()=>V.size===0?T:new Set([...T,...V]),[T,V]),F=r.useCallback(m=>{D(k=>{const d=new Set(k);return d.has(m)?d.delete(m):d.add(m),d})},[]),E=r.useCallback(()=>{const m=new Set,k=(d,v)=>{m.add(v),Array.isArray(d)?d.forEach((C,_)=>k(C,`${v}.${_}`)):typeof d=="object"&&d!==null&&Object.entries(d).forEach(([C,_])=>k(_,`${v}.${C}`))};k(a,"root"),D(m)},[a]),j=r.useCallback(()=>{D(new Set)},[]),A=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(a,null,2)),x(!0),O.success("JSON copied!"),setTimeout(()=>x(!1),2e3)}catch{O.error("Failed to copy")}},$=()=>{n(m=>!m),N&&c("")},R=e.jsx("div",{className:`p-3 overflow-auto font-mono text-sm ${h?"":"bg-white dark:bg-gray-800"}`,style:{maxHeight:typeof g=="number"?`${g}px`:g},children:e.jsx(Ce,{keyName:null,value:a,depth:0,expandedPaths:z,onToggle:F,searchTerm:y,path:"root"})}),M=e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t&&e.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:t}),e.jsxs("div",{className:`flex items-center space-x-1 ${t?"":"ml-auto"}`,children:[e.jsx("button",{onClick:E,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Expand all",children:e.jsx(K,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:j,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Collapse all",children:e.jsx(ee,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600 mx-1"}),f&&e.jsx("button",{onClick:$,className:`p-1.5 rounded transition-colors ${N?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),e.jsx("button",{onClick:A,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Copy JSON",children:o?e.jsx(Z,{className:"h-3.5 w-3.5 text-green-500"}):e.jsx(I,{className:"h-3.5 w-3.5 text-gray-500"})})]})]}),U=N&&e.jsx("div",{className:"mb-2",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:y,onChange:m=>c(m.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),y&&e.jsx("button",{onClick:()=>c(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(W,{className:"h-3.5 w-3.5"})})]})});return h?b?e.jsxs("div",{children:[M,U,R]}):R:e.jsxs("div",{className:"card overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-2.5 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between bg-gray-50 dark:bg-gray-800/50",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[t&&e.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:t}),e.jsx("span",{className:"text-xs text-gray-500",children:Array.isArray(a)?`${a.length} items`:typeof a=="object"&&a!==null?`${Object.keys(a).length} keys`:""})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx("button",{onClick:E,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Expand all",children:e.jsx(K,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:j,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Collapse all",children:e.jsx(ee,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600 mx-1"}),f&&e.jsx("button",{onClick:$,className:`p-1.5 rounded transition-colors ${N?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search (Ctrl+F)",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),e.jsx("button",{onClick:A,className:"flex items-center gap-1.5 px-2 py-1 text-xs font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Copy JSON",children:o?e.jsxs(e.Fragment,{children:[e.jsx(Z,{className:"h-3.5 w-3.5 text-green-500"}),e.jsx("span",{className:"text-green-500",children:"Copied!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(I,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:"Copy"})]})})]})]}),N&&e.jsx("div",{className:"px-3 py-2 border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/30",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:y,onChange:m=>c(m.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),y&&e.jsx("button",{onClick:()=>c(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(W,{className:"h-3.5 w-3.5"})})]})}),R]})}function Se({data:a,toolbarState:t,maxHeight:s=400,searchBar:i}){const f=`${t.expandAllTrigger}-${t.collapseAllTrigger}`,g=t.expandAllTrigger>t.collapseAllTrigger,h=g?100:t.collapseAllTrigger>0?0:2;return e.jsxs("div",{children:[i,e.jsx(_e,{data:a,inline:!0,maxHeight:s,initialExpanded:g||t.expandAllTrigger===0,maxInitialDepth:h,searchable:!1,showToolbar:!1,externalSearchTerm:t.searchTerm},f)]})}function De(){const[a,t]=r.useState({expandAllTrigger:0,collapseAllTrigger:0,showSearch:!1,searchTerm:""}),[s,i]=r.useState(!1),f=r.useCallback(()=>{t(l=>({...l,expandAllTrigger:l.expandAllTrigger+1}))},[]),g=r.useCallback(()=>{t(l=>({...l,collapseAllTrigger:l.collapseAllTrigger+1}))},[]),h=r.useCallback(()=>{t(l=>({...l,showSearch:!l.showSearch,searchTerm:l.showSearch?"":l.searchTerm}))},[]),b=r.useCallback(l=>{t(S=>({...S,searchTerm:l}))},[]),w=r.useCallback(async l=>{try{await navigator.clipboard.writeText(JSON.stringify(l,null,2)),i(!0),O.success("Copied!"),setTimeout(()=>i(!1),2e3)}catch{O.error("Failed to copy")}},[]),o=({data:l})=>e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx("button",{onClick:f,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Expand all",children:e.jsx(K,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:g,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Collapse all",children:e.jsx(ee,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600 mx-1"}),e.jsx("button",{onClick:h,className:`p-1.5 rounded transition-colors ${a.showSearch?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),l&&e.jsx("button",{onClick:()=>w(l),className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Copy JSON",children:s?e.jsx(Z,{className:"h-3.5 w-3.5 text-green-500"}):e.jsx(I,{className:"h-3.5 w-3.5 text-gray-500"})})]}),x=a.showSearch?e.jsx("div",{className:"p-3 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:a.searchTerm,onChange:l=>b(l.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),a.searchTerm&&e.jsx("button",{onClick:()=>b(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(W,{className:"h-3.5 w-3.5"})})]})}):null;return{state:a,Toolbar:o,SearchBar:x}}function Ae(){return e.jsxs("div",{className:"animate-pulse space-y-3","aria-hidden":"true",children:[e.jsx("div",{className:"h-8 rounded bg-gray-100 dark:bg-gray-800"}),e.jsx("div",{className:"h-40 rounded bg-gray-100 dark:bg-gray-800"})]})}const Le=r.lazy(()=>u(()=>import("./RequestDetailView-t5odupt4.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),Ve=r.lazy(()=>u(()=>import("./QueryDetailView-RUxW9Uqs.js"),__vite__mapDeps([9,1,2,3,4,5,6,8]),import.meta.url)),$e=r.lazy(()=>u(()=>import("./ExceptionDetailView-xmNdG8Nb.js"),__vite__mapDeps([10,1,2,3,4,5,6,8]),import.meta.url)),Re=r.lazy(()=>u(()=>import("./LogDetailView-OhpY0czv.js"),__vite__mapDeps([11,1,2,3,4,5,6,8]),import.meta.url)),Oe=r.lazy(()=>u(()=>import("./EventDetailView-DrExHdP3.js"),__vite__mapDeps([12,1,2,3,13,6,4,14,15,8]),import.meta.url)),Pe=r.lazy(()=>u(()=>import("./JobDetailView-DrDFXY-t.js"),__vite__mapDeps([16,1,2,3,4,5,6,13,17,18,8]),import.meta.url)),Ie=r.lazy(()=>u(()=>import("./CacheDetailView-CtmDMMR2.js"),__vite__mapDeps([19,1,2,3,4,5,6,13,18,20,21,8]),import.meta.url)),ze=r.lazy(()=>u(()=>import("./MailDetailView-rmPDboFn.js"),__vite__mapDeps([22,1,2,3,6,4,5,13,20,18,15,17,8]),import.meta.url)),Fe=r.lazy(()=>u(()=>import("./ScheduleDetailView-D8OZ-_yh.js"),__vite__mapDeps([23,1,2,3,24,6,4,5,20,18,21,25]),import.meta.url)),Me=r.lazy(()=>u(()=>import("./HttpClientDetailView-7v6RERdZ.js"),__vite__mapDeps([26,1,2,3,4,5,6,8]),import.meta.url)),Ue=r.lazy(()=>u(()=>import("./RedisDetailView-Ceo27Mx3.js"),__vite__mapDeps([27,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),qe=r.lazy(()=>u(()=>import("./ModelDetailView-DVh-32OU.js"),__vite__mapDeps([28,1,2,3,4,5,6,13,20,8]),import.meta.url)),Je=r.lazy(()=>u(()=>import("./NotificationDetailView-C_IGKjY3.js"),__vite__mapDeps([29,1,2,3,4,5,6,13,18,20,30,8]),import.meta.url)),We=r.lazy(()=>u(()=>import("./ViewDetailView-Bxd64RN9.js"),__vite__mapDeps([31,1,2,3,4,5,6,13,32,18,20,8]),import.meta.url)),Be=r.lazy(()=>u(()=>import("./CommandDetailView-B_6u-4-M.js"),__vite__mapDeps([33,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),He=r.lazy(()=>u(()=>import("./GateDetailView-Db3NrQmm.js"),__vite__mapDeps([34,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),Ge=r.lazy(()=>u(()=>import("./BatchDetailView-CNyv7Vc1.js"),__vite__mapDeps([35,1,2,3,4,5,6,13,20,17,18,8]),import.meta.url)),Qe=r.lazy(()=>u(()=>import("./DumpDetailView-DGy7eSQl.js"),__vite__mapDeps([36,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),Xe=r.lazy(()=>u(()=>import("./GraphQLDetailView-DZPwXidi.js"),__vite__mapDeps([37,1,2,3,4,5,6,38,7,8,14,30]),import.meta.url));function Ye(a,t){return a!=null&&a.toLowerCase().includes("/graphql")?"GRAPHQL":t.toUpperCase()}function Ze(a){const t=a.trim().toUpperCase();return t.startsWith("SELECT")?"SELECT":t.startsWith("INSERT")?"INSERT":t.startsWith("UPDATE")?"UPDATE":t.startsWith("DELETE")?"DELETE":t.startsWith("CREATE")?"CREATE":t.startsWith("ALTER")?"ALTER":t.startsWith("DROP")?"DROP":t.startsWith("TRUNCATE")?"TRUNCATE":t.startsWith("BEGIN")||t.startsWith("START")?"TRANSACTION":t.startsWith("COMMIT")?"COMMIT":t.startsWith("ROLLBACK")?"ROLLBACK":"QUERY"}function Ke(){const{id:a}=je(),[t,s]=r.useState(null),[i,f]=r.useState([]),[g,h]=r.useState(!0),b=De();if(r.useEffect(()=>{(async()=>{if(a)try{const x=await fe(parseInt(a));s(x.data),f(x.related??[])}catch(x){console.error("Failed to fetch entry:",x)}finally{h(!1)}})()},[a]),g)return e.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:e.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});if(!t)return e.jsxs("div",{className:"text-center py-12",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Entry not found"}),e.jsx(J,{to:"/",className:"text-primary-600 hover:text-primary-700 mt-4 inline-block",children:"Go back to dashboard"})]});const w=()=>{if(B(t))return e.jsx(Le,{entry:t,related:i});if(H(t))return e.jsx(Ve,{entry:t});if(G(t))return e.jsx($e,{entry:t});if(Q(t))return e.jsx(Re,{entry:t});if(ae(t))return e.jsx(Oe,{entry:t});if(re(t))return e.jsx(Pe,{entry:t});if(se(t))return e.jsx(Ie,{entry:t});if(ne(t))return e.jsx(ze,{entry:t});if(le(t))return e.jsx(Fe,{entry:t});if(X(t))return e.jsx(Me,{entry:t});if(ie(t))return e.jsx(Ue,{entry:t});if(oe(t))return e.jsx(qe,{entry:t});if(ce(t))return e.jsx(Je,{entry:t});if(de(t))return e.jsx(We,{entry:t});if(xe(t))return e.jsx(Be,{entry:t});if(ye(t))return e.jsx(He,{entry:t});if(pe(t))return e.jsx(Ge,{entry:t});if(he(t))return e.jsx(Qe,{entry:t});if(Y(t))return e.jsx(Xe,{entry:t});const x=t.payload,l=[{id:"payload",label:"Payload",content:e.jsx(Se,{data:x,toolbarState:b.state,searchBar:b.SearchBar,maxHeight:400})}];return e.jsx(Ne,{tabs:l,defaultTab:"payload",headerRight:e.jsx(b.Toolbar,{data:x})})};return e.jsxs("div",{children:[e.jsx("div",{className:"fixed top-0 left-0 right-0 lg:left-64 z-30 h-16 bg-gray-50 dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center space-x-4 px-4 lg:px-6 h-full",children:[e.jsx(J,{to:-1,className:"p-2 hover:bg-gray-200 dark:hover:bg-gray-800 rounded-lg transition-colors",children:e.jsx(we,{className:"h-5 w-5 text-gray-500"})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("div",{className:"flex items-center space-x-3",children:B(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"requests",children:Ye(t.payload.path,t.payload.method)}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.path})]}):H(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"queries",filterType:"types",children:Ze(t.payload.query)}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.query.length>100?t.payload.query.substring(0,100)+"...":t.payload.query})]}):G(t)?(()=>{var x;const o=t.payload.name&&t.payload.name.toLowerCase()!=="error"?t.payload.name:t.payload.code?String(t.payload.code):"Exception";return e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"exceptions",filterType:"names",children:o}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:((x=t.payload.request)==null?void 0:x.url)||t.payload.message})]})})():Q(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"logs",filterType:"levels",children:t.payload.level.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.message.length>100?t.payload.message.substring(0,100)+"...":t.payload.message})]}):ae(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"events",filterType:"names",children:t.payload.name}),e.jsxs("h1",{className:"text-sm text-gray-600 dark:text-gray-300",children:[t.payload.listeners.length," listener",t.payload.listeners.length!==1?"s":""," · ",t.payload.duration,"ms"]})]}):re(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"jobs",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name}),e.jsxs("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:[t.payload.queue," · ",t.payload.duration?`${t.payload.duration}ms`:"-"]})]}):se(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"cache",filterType:"operations",filterValue:t.payload.operation,children:t.payload.operation.toUpperCase()}),t.payload.operation==="get"&&e.jsx(p,{listType:"cache",children:t.payload.hit?"HIT":"MISS"}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.key.length>60?t.payload.key.substring(0,60)+"...":t.payload.key})]}):ne(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"mail",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.subject.length>60?t.payload.subject.substring(0,60)+"...":t.payload.subject})]}):le(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"schedule",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name}),t.payload.cron&&e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400 font-mono",children:t.payload.cron})]}):X(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"http-client",filterType:"methods",filterValue:t.payload.method,children:t.payload.method}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.hostname||t.payload.url})]}):ie(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"redis",filterType:"commands",filterValue:t.payload.command,children:t.payload.command}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.keyPattern||"Redis Command"})]}):oe(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"models",filterType:"actions",filterValue:t.payload.action,children:t.payload.action.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.entity})]}):ce(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"notifications",filterType:"types",filterValue:t.payload.type,children:t.payload.type}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.title||t.payload.recipient})]}):de(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"views",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.template})]}):xe(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"commands",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name})]}):ye(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"gates",filterType:"results",filterValue:t.payload.allowed?"ALLOWED":"DENIED",children:t.payload.allowed?"ALLOWED":"DENIED"}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.gate})]}):pe(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"batches",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name})]}):he(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"dumps",filterType:"operations",filterValue:t.payload.operation,children:t.payload.operation.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.format})]}):Y(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"graphql",filterType:"operationTypes",filterValue:t.payload.operationType,children:t.payload.operationType.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.operationName||"(anonymous)"}),t.payload.hasErrors&&e.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-xs font-medium rounded bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",children:"Error"})]}):(()=>{const o=t;return e.jsxs(e.Fragment,{children:[e.jsx(p,{clickable:!1,children:o.type.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:o.requestId||`#${o.id}`})]})})()})})]})}),e.jsxs("div",{className:"pt-16 space-y-6",children:[e.jsx(r.Suspense,{fallback:e.jsx(Ae,{}),children:w()}),i.length>0&&e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:["Related Entries (",i.length,")"]})}),e.jsx("div",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:i.map(o=>e.jsx(J,{to:et(o),className:"p-4 block hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(p,{clickable:!1,children:o.type.toUpperCase()}),e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-300",children:tt(o)})]}),e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:be(ke(o.createdAt),{addSuffix:!0})})]})},o.id))})]})]})]})}function et(a){return`/${{request:"requests",query:"queries",exception:"exceptions",log:"logs",event:"events",job:"jobs",cache:"cache",mail:"mail",schedule:"schedule","http-client":"http-client",redis:"redis",model:"models",notification:"notifications",view:"views",command:"commands",gate:"gates",batch:"batches",dump:"dumps",graphql:"graphql"}[a.type]||"entries"}/${a.id}`}function tt(a){if(H(a)){const t=a.payload.query;return t.length>50?t.substring(0,50)+"...":t}if(G(a))return`${a.payload.name}: ${a.payload.message}`;if(Q(a)){const t=a.payload.message;return t.length>50?t.substring(0,50)+"...":t}return B(a)?`${a.payload.method} ${a.payload.path}`:X(a)?`${a.payload.method} ${a.payload.hostname||a.payload.url}`:Y(a)?`${a.payload.operationType} ${a.payload.operationName||"(anonymous)"}`:`Entry #${a.id}`}const it=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));export{Se as C,it as E,K as M,Ne as T,Z as a,I as b,ee as c,De as u};
|
|
27
|
+
*/const ee=P("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);function me(a,t){if(!a||typeof window>"u")return t;const s=window.location.hash.slice(1);if(!s)return t;try{return new URLSearchParams(s).get(a)||t}catch{return t}}function Ne({tabs:a,defaultTab:t,hashKey:s,headerRight:i,onTabChange:f}){var S,N;const g=t||((S=a[0])==null?void 0:S.id),[h,b]=r.useState(()=>me(s,g));r.useEffect(()=>{if(!s)return;const n=()=>{const y=me(s,g);b(y)};return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[s,g]);const w=r.useCallback(n=>{if(b(n),f==null||f(n),!s)return;const y=window.location.hash.slice(1),c=new URLSearchParams(y);n===g?c.delete(s):c.set(s,n);const T=c.toString(),D=T?`#${T}`:window.location.pathname+window.location.search;window.history.replaceState(null,"",D)},[s,g,f]),o=(N=a.find(n=>n.id===h))==null?void 0:N.content,x=r.useRef(new Map),l=r.useCallback((n,y)=>{var T;let c=null;switch(n.key){case"ArrowLeft":n.preventDefault(),c=y===0?a.length-1:y-1;break;case"ArrowRight":n.preventDefault(),c=y===a.length-1?0:y+1;break;case"Home":n.preventDefault(),c=0;break;case"End":n.preventDefault(),c=a.length-1;break}if(c!==null){const D=a[c];w(D.id),(T=x.current.get(D.id))==null||T.focus()}},[a,w]);return e.jsxs("div",{className:"border border-gray-200 dark:border-gray-700 rounded-lg overflow-hidden",children:[e.jsxs("div",{className:"flex items-center border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800",children:[e.jsx("div",{className:"flex flex-1",role:"tablist","aria-label":"Content tabs",children:a.map((n,y)=>e.jsxs("button",{ref:c=>{c&&x.current.set(n.id,c)},role:"tab","aria-selected":h===n.id,"aria-controls":`tabpanel-${n.id}`,id:`tab-${n.id}`,tabIndex:h===n.id?0:-1,onClick:()=>w(n.id),onKeyDown:c=>l(c,y),className:`px-4 py-2.5 text-sm font-medium transition-colors relative ${h===n.id?"text-indigo-600 dark:text-indigo-400 bg-white dark:bg-gray-900":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700"}`,children:[e.jsxs("span",{className:"flex items-center gap-2",children:[n.label,n.badge!==void 0&&n.badge>0&&e.jsx("span",{className:"inline-flex items-center justify-center px-1.5 py-0.5 text-xs font-medium bg-gray-200 dark:bg-gray-600 text-gray-700 dark:text-gray-300 rounded",children:n.badge})]}),h===n.id&&e.jsx("span",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-indigo-600 dark:bg-indigo-400","aria-hidden":"true"})]},n.id))}),i&&e.jsx("div",{className:"px-3 flex items-center",children:i})]}),e.jsx("div",{role:"tabpanel",id:`tabpanel-${h}`,"aria-labelledby":`tab-${h}`,tabIndex:0,className:"bg-white dark:bg-gray-900",children:o})]})}function Ee(a){return a===null?"null":a===void 0?"undefined":Array.isArray(a)?"array":typeof a}function Te(a,t){return t==="array"?a.length:t==="object"?Object.keys(a).length:0}function ve(a,t,s){if(!t)return!1;const i=t.toLowerCase();return a===null?"null".includes(i):typeof a=="string"?a.toLowerCase().includes(i):typeof a=="number"||typeof a=="boolean"?String(a).includes(i):!1}function te(a,t){if(!t)return!1;const s=t.toLowerCase();return a===null?"null".includes(s):typeof a=="string"?a.toLowerCase().includes(s):typeof a=="number"||typeof a=="boolean"?String(a).includes(s):Array.isArray(a)?a.some(i=>te(i,t)):typeof a=="object"&&a!==null?Object.entries(a).some(([i,f])=>i.toLowerCase().includes(s)||te(f,t)):!1}const Ce=r.memo(function a({keyName:t,value:s,depth:i,expandedPaths:f,onToggle:g,searchTerm:h,path:b,isArrayItem:w=!1}){const o=Ee(s),x=o==="object"||o==="array",l=f.has(b),S=Te(s,o),N=S===0,n=!!h&&((t==null?void 0:t.toLowerCase().includes(h.toLowerCase()))??!1),y=ve(s,h),c=n||y,T=r.useCallback(()=>{g(b)},[g,b]),D=r.useCallback(E=>{E.stopPropagation();const j=typeof s=="string"?s:JSON.stringify(s,null,2);navigator.clipboard.writeText(j),O.success("Copied!")},[s]),V=()=>{const E=y?"bg-yellow-400/30 rounded px-0.5":"";switch(o){case"null":return e.jsx("span",{className:`text-orange-600 dark:text-orange-400 italic ${E}`,children:"null"});case"undefined":return e.jsx("span",{className:`text-gray-500 italic ${E}`,children:"undefined"});case"boolean":return e.jsx("span",{className:`text-purple-600 dark:text-purple-400 ${E}`,children:String(s)});case"number":return e.jsx("span",{className:`text-cyan-600 dark:text-cyan-400 ${E}`,children:String(s)});case"string":{const j=s,A=300,$=j.length>A,R=$?j.slice(0,A):j,M=/^https?:\/\//.test(j),U=/^\d{4}-\d{2}-\d{2}/.test(j),m=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(j);return e.jsxs("span",{className:`text-green-600 dark:text-green-400 ${E}`,children:['"',R,$&&e.jsxs("span",{className:"text-gray-500",children:["... (",j.length-A," more)"]}),'"',M&&e.jsx("span",{className:"ml-1 text-blue-600 dark:text-blue-400 text-xs",children:"(URL)"}),U&&e.jsx("span",{className:"ml-1 text-amber-600 dark:text-yellow-400 text-xs",children:"(Date)"}),m&&e.jsx("span",{className:"ml-1 text-pink-600 dark:text-pink-400 text-xs",children:"(Email)"})]})}case"array":return l?e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"["}):e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["[",N?"":e.jsxs("span",{className:"text-gray-500 text-xs ml-1",children:[S," items"]}),"]"]});case"object":return l?e.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"{"}):e.jsxs("span",{className:"text-gray-600 dark:text-gray-400",children:["{",N?"":e.jsxs("span",{className:"text-gray-500 text-xs ml-1",children:[S," keys"]}),"}"]});default:return e.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:String(s)})}},z=()=>{if(!x||!l)return null;const E=o==="array"?s.map((j,A)=>[String(A),j]):Object.entries(s);return e.jsxs(e.Fragment,{children:[E.map(([j,A])=>e.jsx(a,{keyName:j,value:A,depth:i+1,expandedPaths:f,onToggle:g,searchTerm:h,path:`${b}.${j}`,isArrayItem:o==="array"},`${b}.${j}`)),e.jsxs("div",{className:"flex items-start",children:[e.jsx("span",{className:"w-6 flex-shrink-0"}),e.jsx("div",{style:{paddingLeft:i*16+16},className:"text-gray-600 dark:text-gray-400",children:o==="array"?"]":"}"})]})]})},F=i*16;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`group flex items-start py-[1px] hover:bg-gray-100 dark:hover:bg-white/5 rounded cursor-pointer transition-colors ${c?"bg-yellow-500/10":""}`,onClick:x?T:void 0,children:[e.jsx("span",{className:"w-6 h-6 flex items-center justify-center flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx("button",{onClick:D,className:"p-1 hover:bg-gray-200 dark:hover:bg-gray-700 rounded text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",title:"Copy value",children:e.jsx(I,{className:"w-4 h-4"})})}),e.jsxs("div",{className:"flex items-start flex-1",style:{paddingLeft:F},children:[e.jsx("span",{className:"w-4 h-5 flex items-center justify-center flex-shrink-0",children:x&&!N&&(l?e.jsx(ge,{className:"w-3.5 h-3.5 text-gray-400 dark:text-gray-500"}):e.jsx(ue,{className:"w-3.5 h-3.5 text-gray-400 dark:text-gray-500"}))}),t!==null&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:`${w?"text-gray-500":"text-blue-700 dark:text-blue-300"} ${n?"bg-yellow-400/30 rounded px-0.5":""}`,children:w?t:`"${t}"`}),e.jsx("span",{className:"text-gray-500 mx-1",children:":"})]}),e.jsx("span",{className:"flex-1",children:V()})]})]}),z()]})});function _e({data:a,title:t,initialExpanded:s=!0,maxInitialDepth:i=2,searchable:f=!0,maxHeight:g=500,inline:h=!1,showToolbar:b=!1,externalSearchTerm:w}){const[o,x]=r.useState(!1),[l,S]=r.useState(""),[N,n]=r.useState(!1),y=w??l,c=S,[T,D]=r.useState(()=>{const m=new Set;if(s){const k=(d,v,C)=>{C>=i||(m.add(v),Array.isArray(d)?d.forEach((_,q)=>k(_,`${v}.${q}`,C+1)):typeof d=="object"&&d!==null&&Object.entries(d).forEach(([_,q])=>k(q,`${v}.${_}`,C+1)))};k(a,"root",0)}return m}),V=r.useMemo(()=>{const m=new Set;if(!y)return m;const k=(d,v)=>{te(d,y)&&m.add(v),Array.isArray(d)?d.forEach((C,_)=>k(C,`${v}.${_}`)):typeof d=="object"&&d!==null&&Object.entries(d).forEach(([C,_])=>k(_,`${v}.${C}`))};return k(a,"root"),m},[y,a]),z=r.useMemo(()=>V.size===0?T:new Set([...T,...V]),[T,V]),F=r.useCallback(m=>{D(k=>{const d=new Set(k);return d.has(m)?d.delete(m):d.add(m),d})},[]),E=r.useCallback(()=>{const m=new Set,k=(d,v)=>{m.add(v),Array.isArray(d)?d.forEach((C,_)=>k(C,`${v}.${_}`)):typeof d=="object"&&d!==null&&Object.entries(d).forEach(([C,_])=>k(_,`${v}.${C}`))};k(a,"root"),D(m)},[a]),j=r.useCallback(()=>{D(new Set)},[]),A=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(a,null,2)),x(!0),O.success("JSON copied!"),setTimeout(()=>x(!1),2e3)}catch{O.error("Failed to copy")}},$=()=>{n(m=>!m),N&&c("")},R=e.jsx("div",{className:`p-3 overflow-auto font-mono text-sm ${h?"":"bg-white dark:bg-gray-800"}`,style:{maxHeight:typeof g=="number"?`${g}px`:g},children:e.jsx(Ce,{keyName:null,value:a,depth:0,expandedPaths:z,onToggle:F,searchTerm:y,path:"root"})}),M=e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t&&e.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:t}),e.jsxs("div",{className:`flex items-center space-x-1 ${t?"":"ml-auto"}`,children:[e.jsx("button",{onClick:E,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Expand all",children:e.jsx(K,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:j,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Collapse all",children:e.jsx(ee,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600 mx-1"}),f&&e.jsx("button",{onClick:$,className:`p-1.5 rounded transition-colors ${N?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),e.jsx("button",{onClick:A,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Copy JSON",children:o?e.jsx(Z,{className:"h-3.5 w-3.5 text-green-500"}):e.jsx(I,{className:"h-3.5 w-3.5 text-gray-500"})})]})]}),U=N&&e.jsx("div",{className:"mb-2",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:y,onChange:m=>c(m.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),y&&e.jsx("button",{onClick:()=>c(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(W,{className:"h-3.5 w-3.5"})})]})});return h?b?e.jsxs("div",{children:[M,U,R]}):R:e.jsxs("div",{className:"card overflow-hidden",children:[e.jsxs("div",{className:"px-4 py-2.5 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between bg-gray-50 dark:bg-gray-800/50",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[t&&e.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:t}),e.jsx("span",{className:"text-xs text-gray-500",children:Array.isArray(a)?`${a.length} items`:typeof a=="object"&&a!==null?`${Object.keys(a).length} keys`:""})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx("button",{onClick:E,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Expand all",children:e.jsx(K,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:j,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Collapse all",children:e.jsx(ee,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600 mx-1"}),f&&e.jsx("button",{onClick:$,className:`p-1.5 rounded transition-colors ${N?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search (Ctrl+F)",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),e.jsx("button",{onClick:A,className:"flex items-center gap-1.5 px-2 py-1 text-xs font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Copy JSON",children:o?e.jsxs(e.Fragment,{children:[e.jsx(Z,{className:"h-3.5 w-3.5 text-green-500"}),e.jsx("span",{className:"text-green-500",children:"Copied!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(I,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:"Copy"})]})})]})]}),N&&e.jsx("div",{className:"px-3 py-2 border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/30",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:y,onChange:m=>c(m.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),y&&e.jsx("button",{onClick:()=>c(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(W,{className:"h-3.5 w-3.5"})})]})}),R]})}function Se({data:a,toolbarState:t,maxHeight:s=400,searchBar:i}){const f=`${t.expandAllTrigger}-${t.collapseAllTrigger}`,g=t.expandAllTrigger>t.collapseAllTrigger,h=g?100:t.collapseAllTrigger>0?0:2;return e.jsxs("div",{children:[i,e.jsx(_e,{data:a,inline:!0,maxHeight:s,initialExpanded:g||t.expandAllTrigger===0,maxInitialDepth:h,searchable:!1,showToolbar:!1,externalSearchTerm:t.searchTerm},f)]})}function De(){const[a,t]=r.useState({expandAllTrigger:0,collapseAllTrigger:0,showSearch:!1,searchTerm:""}),[s,i]=r.useState(!1),f=r.useCallback(()=>{t(l=>({...l,expandAllTrigger:l.expandAllTrigger+1}))},[]),g=r.useCallback(()=>{t(l=>({...l,collapseAllTrigger:l.collapseAllTrigger+1}))},[]),h=r.useCallback(()=>{t(l=>({...l,showSearch:!l.showSearch,searchTerm:l.showSearch?"":l.searchTerm}))},[]),b=r.useCallback(l=>{t(S=>({...S,searchTerm:l}))},[]),w=r.useCallback(async l=>{try{await navigator.clipboard.writeText(JSON.stringify(l,null,2)),i(!0),O.success("Copied!"),setTimeout(()=>i(!1),2e3)}catch{O.error("Failed to copy")}},[]),o=({data:l})=>e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx("button",{onClick:f,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Expand all",children:e.jsx(K,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("button",{onClick:g,className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Collapse all",children:e.jsx(ee,{className:"h-3.5 w-3.5 text-gray-500"})}),e.jsx("div",{className:"w-px h-4 bg-gray-300 dark:bg-gray-600 mx-1"}),e.jsx("button",{onClick:h,className:`p-1.5 rounded transition-colors ${a.showSearch?"bg-primary-100 dark:bg-primary-900/30 text-primary-600 dark:text-primary-400":"hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-500"}`,title:"Search",children:e.jsx(L,{className:"h-3.5 w-3.5"})}),l&&e.jsx("button",{onClick:()=>w(l),className:"p-1.5 hover:bg-gray-200 dark:hover:bg-gray-700 rounded transition-colors",title:"Copy JSON",children:s?e.jsx(Z,{className:"h-3.5 w-3.5 text-green-500"}):e.jsx(I,{className:"h-3.5 w-3.5 text-gray-500"})})]}),x=a.showSearch?e.jsx("div",{className:"p-3 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-gray-400"}),e.jsx("input",{type:"text",value:a.searchTerm,onChange:l=>b(l.target.value),placeholder:"Search keys and values...",className:"w-full pl-8 pr-8 py-1.5 text-sm bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded focus:ring-2 focus:ring-primary-500 focus:border-transparent",autoFocus:!0}),a.searchTerm&&e.jsx("button",{onClick:()=>b(""),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:e.jsx(W,{className:"h-3.5 w-3.5"})})]})}):null;return{state:a,Toolbar:o,SearchBar:x}}function Ae(){return e.jsxs("div",{className:"animate-pulse space-y-3","aria-hidden":"true",children:[e.jsx("div",{className:"h-8 rounded bg-gray-100 dark:bg-gray-800"}),e.jsx("div",{className:"h-40 rounded bg-gray-100 dark:bg-gray-800"})]})}const Le=r.lazy(()=>u(()=>import("./RequestDetailView-DtTVzNFt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),Ve=r.lazy(()=>u(()=>import("./QueryDetailView-B64qfjgM.js"),__vite__mapDeps([9,1,2,3,4,5,6,8]),import.meta.url)),$e=r.lazy(()=>u(()=>import("./ExceptionDetailView-FijwhgLY.js"),__vite__mapDeps([10,1,2,3,4,5,6,8]),import.meta.url)),Re=r.lazy(()=>u(()=>import("./LogDetailView-DZyruHPx.js"),__vite__mapDeps([11,1,2,3,4,5,6,8]),import.meta.url)),Oe=r.lazy(()=>u(()=>import("./EventDetailView-dR0UDb6r.js"),__vite__mapDeps([12,1,2,3,13,6,4,14,15,8]),import.meta.url)),Pe=r.lazy(()=>u(()=>import("./JobDetailView-B4A5Y2PM.js"),__vite__mapDeps([16,1,2,3,4,5,6,13,17,18,8]),import.meta.url)),Ie=r.lazy(()=>u(()=>import("./CacheDetailView-CqMU8Hge.js"),__vite__mapDeps([19,1,2,3,4,5,6,13,18,20,21,8]),import.meta.url)),ze=r.lazy(()=>u(()=>import("./MailDetailView-CLhOX0PN.js"),__vite__mapDeps([22,1,2,3,6,4,5,13,20,18,15,17,8]),import.meta.url)),Fe=r.lazy(()=>u(()=>import("./ScheduleDetailView-D8WOTS8u.js"),__vite__mapDeps([23,1,2,3,24,6,4,5,20,18,21,25]),import.meta.url)),Me=r.lazy(()=>u(()=>import("./HttpClientDetailView-D7SRccHj.js"),__vite__mapDeps([26,1,2,3,4,5,6,8]),import.meta.url)),Ue=r.lazy(()=>u(()=>import("./RedisDetailView-BJ2OaAFq.js"),__vite__mapDeps([27,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),qe=r.lazy(()=>u(()=>import("./ModelDetailView-CVszB9Qw.js"),__vite__mapDeps([28,1,2,3,4,5,6,13,20,8]),import.meta.url)),Je=r.lazy(()=>u(()=>import("./NotificationDetailView-CwpaMgGn.js"),__vite__mapDeps([29,1,2,3,4,5,6,13,18,20,30,8]),import.meta.url)),We=r.lazy(()=>u(()=>import("./ViewDetailView-CUH2MA6k.js"),__vite__mapDeps([31,1,2,3,4,5,6,13,32,18,20,8]),import.meta.url)),Be=r.lazy(()=>u(()=>import("./CommandDetailView-LlOynfrs.js"),__vite__mapDeps([33,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),He=r.lazy(()=>u(()=>import("./GateDetailView-CCUc65Vb.js"),__vite__mapDeps([34,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),Ge=r.lazy(()=>u(()=>import("./BatchDetailView-CBbONEZ6.js"),__vite__mapDeps([35,1,2,3,4,5,6,13,20,17,18,8]),import.meta.url)),Qe=r.lazy(()=>u(()=>import("./DumpDetailView-B6Zk2IcH.js"),__vite__mapDeps([36,1,2,3,4,5,6,13,18,20,8]),import.meta.url)),Xe=r.lazy(()=>u(()=>import("./GraphQLDetailView-DN7qwLjl.js"),__vite__mapDeps([37,1,2,3,4,5,6,38,7,8,14,30]),import.meta.url));function Ye(a,t){return a!=null&&a.toLowerCase().includes("/graphql")?"GRAPHQL":t.toUpperCase()}function Ze(a){const t=a.trim().toUpperCase();return t.startsWith("SELECT")?"SELECT":t.startsWith("INSERT")?"INSERT":t.startsWith("UPDATE")?"UPDATE":t.startsWith("DELETE")?"DELETE":t.startsWith("CREATE")?"CREATE":t.startsWith("ALTER")?"ALTER":t.startsWith("DROP")?"DROP":t.startsWith("TRUNCATE")?"TRUNCATE":t.startsWith("BEGIN")||t.startsWith("START")?"TRANSACTION":t.startsWith("COMMIT")?"COMMIT":t.startsWith("ROLLBACK")?"ROLLBACK":"QUERY"}function Ke(){const{id:a}=je(),[t,s]=r.useState(null),[i,f]=r.useState([]),[g,h]=r.useState(!0),b=De();if(r.useEffect(()=>{(async()=>{if(a)try{const x=await fe(parseInt(a));s(x.data),f(x.related??[])}catch(x){console.error("Failed to fetch entry:",x)}finally{h(!1)}})()},[a]),g)return e.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:e.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});if(!t)return e.jsxs("div",{className:"text-center py-12",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white",children:"Entry not found"}),e.jsx(J,{to:"/",className:"text-primary-600 hover:text-primary-700 mt-4 inline-block",children:"Go back to dashboard"})]});const w=()=>{if(B(t))return e.jsx(Le,{entry:t,related:i});if(H(t))return e.jsx(Ve,{entry:t});if(G(t))return e.jsx($e,{entry:t});if(Q(t))return e.jsx(Re,{entry:t});if(ae(t))return e.jsx(Oe,{entry:t});if(re(t))return e.jsx(Pe,{entry:t});if(se(t))return e.jsx(Ie,{entry:t});if(ne(t))return e.jsx(ze,{entry:t});if(le(t))return e.jsx(Fe,{entry:t});if(X(t))return e.jsx(Me,{entry:t});if(ie(t))return e.jsx(Ue,{entry:t});if(oe(t))return e.jsx(qe,{entry:t});if(ce(t))return e.jsx(Je,{entry:t});if(de(t))return e.jsx(We,{entry:t});if(xe(t))return e.jsx(Be,{entry:t});if(ye(t))return e.jsx(He,{entry:t});if(pe(t))return e.jsx(Ge,{entry:t});if(he(t))return e.jsx(Qe,{entry:t});if(Y(t))return e.jsx(Xe,{entry:t});const x=t.payload,l=[{id:"payload",label:"Payload",content:e.jsx(Se,{data:x,toolbarState:b.state,searchBar:b.SearchBar,maxHeight:400})}];return e.jsx(Ne,{tabs:l,defaultTab:"payload",headerRight:e.jsx(b.Toolbar,{data:x})})};return e.jsxs("div",{children:[e.jsx("div",{className:"fixed top-0 left-0 right-0 lg:left-64 z-30 h-16 bg-gray-50 dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center space-x-4 px-4 lg:px-6 h-full",children:[e.jsx(J,{to:-1,className:"p-2 hover:bg-gray-200 dark:hover:bg-gray-800 rounded-lg transition-colors",children:e.jsx(we,{className:"h-5 w-5 text-gray-500"})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("div",{className:"flex items-center space-x-3",children:B(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"requests",children:Ye(t.payload.path,t.payload.method)}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.path})]}):H(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"queries",filterType:"types",children:Ze(t.payload.query)}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.query.length>100?t.payload.query.substring(0,100)+"...":t.payload.query})]}):G(t)?(()=>{var x;const o=t.payload.name&&t.payload.name.toLowerCase()!=="error"?t.payload.name:t.payload.code?String(t.payload.code):"Exception";return e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"exceptions",filterType:"names",children:o}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:((x=t.payload.request)==null?void 0:x.url)||t.payload.message})]})})():Q(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"logs",filterType:"levels",children:t.payload.level.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.message.length>100?t.payload.message.substring(0,100)+"...":t.payload.message})]}):ae(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"events",filterType:"names",children:t.payload.name}),e.jsxs("h1",{className:"text-sm text-gray-600 dark:text-gray-300",children:[t.payload.listeners.length," listener",t.payload.listeners.length!==1?"s":""," · ",t.payload.duration,"ms"]})]}):re(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"jobs",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name}),e.jsxs("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:[t.payload.queue," · ",t.payload.duration?`${t.payload.duration}ms`:"-"]})]}):se(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"cache",filterType:"operations",filterValue:t.payload.operation,children:t.payload.operation.toUpperCase()}),t.payload.operation==="get"&&e.jsx(p,{listType:"cache",children:t.payload.hit?"HIT":"MISS"}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.key.length>60?t.payload.key.substring(0,60)+"...":t.payload.key})]}):ne(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"mail",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.subject.length>60?t.payload.subject.substring(0,60)+"...":t.payload.subject})]}):le(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"schedule",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name}),t.payload.cron&&e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400 font-mono",children:t.payload.cron})]}):X(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"http-client",filterType:"methods",filterValue:t.payload.method,children:t.payload.method}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.hostname||t.payload.url})]}):ie(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"redis",filterType:"commands",filterValue:t.payload.command,children:t.payload.command}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.keyPattern||"Redis Command"})]}):oe(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"models",filterType:"actions",filterValue:t.payload.action,children:t.payload.action.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.entity})]}):ce(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"notifications",filterType:"types",filterValue:t.payload.type,children:t.payload.type}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.title||t.payload.recipient})]}):de(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"views",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.template})]}):xe(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"commands",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name})]}):ye(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"gates",filterType:"results",filterValue:t.payload.allowed?"ALLOWED":"DENIED",children:t.payload.allowed?"ALLOWED":"DENIED"}),e.jsx("h1",{className:"text-sm text-gray-900 dark:text-white truncate",children:t.payload.gate})]}):pe(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"batches",filterType:"statuses",filterValue:t.payload.status,children:t.payload.status.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.name})]}):he(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"dumps",filterType:"operations",filterValue:t.payload.operation,children:t.payload.operation.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.format})]}):Y(t)?e.jsxs(e.Fragment,{children:[e.jsx(p,{listType:"graphql",filterType:"operationTypes",filterValue:t.payload.operationType,children:t.payload.operationType.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:t.payload.operationName||"(anonymous)"}),t.payload.hasErrors&&e.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-xs font-medium rounded bg-red-100 text-red-700 dark:bg-red-900/50 dark:text-red-300",children:"Error"})]}):(()=>{const o=t;return e.jsxs(e.Fragment,{children:[e.jsx(p,{clickable:!1,children:o.type.toUpperCase()}),e.jsx("h1",{className:"text-sm font-mono text-gray-900 dark:text-white truncate",children:o.requestId||`#${o.id}`})]})})()})})]})}),e.jsxs("div",{className:"pt-16 space-y-6",children:[e.jsx(r.Suspense,{fallback:e.jsx(Ae,{}),children:w()}),i.length>0&&e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:["Related Entries (",i.length,")"]})}),e.jsx("div",{className:"divide-y divide-gray-200 dark:divide-gray-700",children:i.map(o=>e.jsx(J,{to:et(o),className:"p-4 block hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(p,{clickable:!1,children:o.type.toUpperCase()}),e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-300",children:tt(o)})]}),e.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:be(ke(o.createdAt),{addSuffix:!0})})]})},o.id))})]})]})]})}function et(a){return`/${{request:"requests",query:"queries",exception:"exceptions",log:"logs",event:"events",job:"jobs",cache:"cache",mail:"mail",schedule:"schedule","http-client":"http-client",redis:"redis",model:"models",notification:"notifications",view:"views",command:"commands",gate:"gates",batch:"batches",dump:"dumps",graphql:"graphql"}[a.type]||"entries"}/${a.id}`}function tt(a){if(H(a)){const t=a.payload.query;return t.length>50?t.substring(0,50)+"...":t}if(G(a))return`${a.payload.name}: ${a.payload.message}`;if(Q(a)){const t=a.payload.message;return t.length>50?t.substring(0,50)+"...":t}return B(a)?`${a.payload.method} ${a.payload.path}`:X(a)?`${a.payload.method} ${a.payload.hostname||a.payload.url}`:Y(a)?`${a.payload.operationType} ${a.payload.operationName||"(anonymous)"}`:`Entry #${a.id}`}const it=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));export{Se as C,it as E,K as M,Ne as T,Z as a,I as b,ee as c,De as u};
|
package/dist/dashboard/public/assets/{EntrySearchInput-DLuCL4Ys.js → EntrySearchInput-DeOYz9h4.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,X as p}from"./index-
|
|
1
|
+
import{j as t,X as p}from"./index-B1QFrlfD.js";import{f as g,b as o}from"./vendor-DBTT3jXp.js";import{S as x}from"./search-n3qpR8sp.js";function S({placeholder:n="Search..."}){const[u,l]=g(),r=u.get("search")??"",[e,s]=o.useState(r),[h,i]=o.useState(r);return r!==h&&(i(r),s(r)),o.useEffect(()=>{const c=setTimeout(()=>{l(m=>{const a=new URLSearchParams(m);return(a.get("search")||"")===e||(e?a.set("search",e):a.delete("search")),a},{replace:!0})},350);return()=>clearTimeout(c)},[e,l]),t.jsxs("div",{className:"relative",children:[t.jsx(x,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400 pointer-events-none"}),t.jsx("input",{type:"text",value:e,onChange:c=>s(c.target.value),placeholder:n,"aria-label":n,className:"w-full pl-9 pr-9 py-2 text-sm rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent"}),e&&t.jsx("button",{onClick:()=>s(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300","aria-label":"Clear search",children:t.jsx(p,{className:"h-4 w-4"})})]})}export{S as E};
|
package/dist/dashboard/public/assets/{EventDetailView-DrExHdP3.js → EventDetailView-dR0UDb6r.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,C as x,D as o}from"./index-
|
|
1
|
+
import{j as e,C as x,D as o}from"./index-B1QFrlfD.js";import{b as m}from"./vendor-DBTT3jXp.js";import{u as p,C as g,T as h}from"./EntryDetailPage-D7qvNuMn.js";import{C as l}from"./CopyButton-YkpN9Yi5.js";import{C as y}from"./types-DwzjtRI3.js";import{Z as j}from"./zap-C7m34sPr.js";import{U as N}from"./users-D7CwV95U.js";import"./badgeColors-DQ_P_DOX.js";import"./search-n3qpR8sp.js";function B({entry:d}){const{payload:a}=d,s=p(),[i,n]=m.useState("listeners"),c=[{id:"listeners",label:"Listeners",badge:a.listeners.length,content:e.jsx("div",{className:"p-4",children:a.listeners.length===0?e.jsx("div",{className:"text-center py-8 text-gray-500 dark:text-gray-400",children:"No listeners for this event"}):e.jsx("div",{className:"space-y-2",children:a.listeners.map((t,r)=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 dark:bg-gray-800 rounded-lg",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"w-8 h-8 flex items-center justify-center bg-green-100 dark:bg-green-900/30 text-green-600 dark:text-green-400 rounded-full text-sm font-medium",children:r+1}),e.jsx("span",{className:"font-mono text-sm text-gray-900 dark:text-white",children:t})]}),e.jsx(l,{text:t})]},r))})})},{id:"payload",label:"Payload",content:a.payload?e.jsx(g,{data:a.payload,toolbarState:s.state,searchBar:s.SearchBar,maxHeight:400}):e.jsx("div",{className:"p-4 text-center py-8 text-gray-500 dark:text-gray-400",children:"No payload data"})}];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"p-2 bg-green-100 dark:bg-green-900/30 rounded-lg",children:e.jsx(j,{className:"h-5 w-5 text-green-600 dark:text-green-400"})}),e.jsxs("div",{children:[e.jsx(y,{listType:"events",filterType:"names",filterValue:a.name,className:"font-mono",children:a.name}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:"Event Details"})]})]}),e.jsx(l,{text:a.name,label:"Copy event name"})]})}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 divide-x divide-gray-200 dark:divide-gray-700",children:[e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(N,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Listeners"})]}),e.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:a.listeners.length})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(x,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Duration"})]}),e.jsxs("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:[a.duration,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:"ms"})]})]}),a.payload&&e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(o,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Payload Size"})]}),e.jsxs("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:[Object.keys(a.payload).length,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:" keys"})]})]})]})]}),e.jsx(h,{tabs:c,defaultTab:"listeners",hashKey:"event",headerRight:i==="payload"&&a.payload?e.jsx(s.Toolbar,{data:a.payload}):void 0,onTabChange:n})]})}export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,R as i}from"./index-
|
|
1
|
+
import{j as t,R as i}from"./index-B1QFrlfD.js";import{e as b,b as R}from"./vendor-DBTT3jXp.js";import{f as D,p as F}from"./badgeColors-DQ_P_DOX.js";import{u as P,P as T,N as A,L as M}from"./PageHeader-BQ2bLFIt.js";import{u as L,d as B,C as H}from"./types-DwzjtRI3.js";import{T as o,D as $,b as I}from"./DataTable-C9UKN_wr.js";function K(){const l=b(),{addFilter:n,clearAll:d,serverFilters:c,headerFilters:m,hasFilters:h}=L("events"),{entries:u,loading:g,refreshing:a,newEntriesCount:x,hasMore:p,loadMore:f,loadNew:y,autoRefreshEnabled:v,live:j,setAutoRefresh:C,meta:s,isHighlighted:E}=P({type:"event",limit:50,filters:c}),r=u.filter(e=>B(e)),N=R.useMemo(()=>[{key:"event",header:"Event",minWidth:"200px",render:e=>t.jsx(H,{onClick:w=>{w.stopPropagation(),n("names",e.payload.name)},className:"font-mono",children:e.payload.name})},{key:"listeners",header:"Listeners",width:"120px",align:"center",render:e=>t.jsxs(o,{secondary:!0,children:[e.payload.listeners.length," listener",e.payload.listeners.length!==1?"s":""]})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx($,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(o,{secondary:!0,className:"text-xs",children:D(F(e.createdAt),{addSuffix:!0})})}],[n]);if(g&&r.length===0)return t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const k=h?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(T,{title:"Events",icon:i,iconColor:"text-emerald-600 dark:text-emerald-400",count:r.length,totalCount:s==null?void 0:s.total,refreshing:a,autoRefreshEnabled:v,live:j,onAutoRefreshToggle:C,filters:m,onClearAllFilters:d}),t.jsxs("div",{className:`${k} space-y-4 transition-all duration-200`,children:[t.jsx(A,{count:x,onClick:y,loading:a}),t.jsx(I,{columns:N,data:r,keyExtractor:e=>e.id,onRowClick:e=>l(`/events/${e.id}`),rowClassName:e=>E(e.id)?"highlight-new":"",emptyMessage:"No events recorded yet",emptyIcon:t.jsx(i,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(M,{hasMore:p,onClick:f,loading:a})]})]})}export{K as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as k,j as e,t as v,z as j}from"./index-
|
|
1
|
+
import{c as k,j as e,t as v,z as j}from"./index-B1QFrlfD.js";import{p as f,f as w}from"./badgeColors-DQ_P_DOX.js";import{D as c,f as T}from"./DetailRow-D_sZP7WV.js";import{C as y}from"./types-DwzjtRI3.js";import{a as C,b as q,u as S,C as F,T as I}from"./EntryDetailPage-D7qvNuMn.js";import{b as g}from"./vendor-DBTT3jXp.js";import"./search-n3qpR8sp.js";/**
|
|
2
2
|
* @license lucide-react v0.468.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
package/dist/dashboard/public/assets/{ExceptionsPage-D6ww4tft.js → ExceptionsPage-KuyeMrqK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as B,u as W,n as $,o as H,j as t,i as U,T as g}from"./index-
|
|
1
|
+
import{c as B,u as W,n as $,o as H,j as t,i as U,T as g}from"./index-B1QFrlfD.js";import{e as z,b as r}from"./vendor-DBTT3jXp.js";import{f as G,p as J}from"./badgeColors-DQ_P_DOX.js";import{u as K,P as O,F as Q,N as V,L as X}from"./PageHeader-BQ2bLFIt.js";import{u as Y,b as Z,C as u}from"./types-DwzjtRI3.js";import{E as _}from"./EntrySearchInput-DeOYz9h4.js";import{T as o,b as ee}from"./DataTable-C9UKN_wr.js";import{C as te}from"./circle-check-big-B6oE8hF5.js";import"./search-n3qpR8sp.js";/**
|
|
2
2
|
* @license lucide-react v0.468.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
package/dist/dashboard/public/assets/{GateDetailView-Db3NrQmm.js → GateDetailView-CCUc65Vb.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as m,j as e,S as i,C as g}from"./index-
|
|
1
|
+
import{c as m,j as e,S as i,C as g}from"./index-B1QFrlfD.js";import{p as d,f as h}from"./badgeColors-DQ_P_DOX.js";import{D as s,f as j}from"./DetailRow-D_sZP7WV.js";import{C as x}from"./types-DwzjtRI3.js";import{u as p,C as b,T as u}from"./EntryDetailPage-D7qvNuMn.js";import{C as y}from"./CopyButton-YkpN9Yi5.js";import{C as N}from"./circle-check-big-B6oE8hF5.js";import{C as f}from"./circle-x-Ch0JMytg.js";import"./vendor-DBTT3jXp.js";import"./search-n3qpR8sp.js";/**
|
|
2
2
|
* @license lucide-react v0.468.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,S as d}from"./index-
|
|
1
|
+
import{j as t,S as d}from"./index-B1QFrlfD.js";import{e as A,b as F}from"./vendor-DBTT3jXp.js";import{f as R,p as T}from"./badgeColors-DQ_P_DOX.js";import{u as M,P as S,N as W,L as G}from"./PageHeader-BQ2bLFIt.js";import{u as B,p as D,C as n}from"./types-DwzjtRI3.js";import{T as a,b as I}from"./DataTable-C9UKN_wr.js";function V(){const c=A(),{addFilter:s,clearAll:u,serverFilters:h,headerFilters:p,hasFilters:x}=B("gates"),{entries:m,loading:g,refreshing:i,newEntriesCount:y,hasMore:j,loadMore:f,loadNew:b,autoRefreshEnabled:k,live:w,setAutoRefresh:C,meta:o,isHighlighted:N}=M({type:"gate",limit:50,filters:h}),l=m.filter(e=>D(e)),E=F.useMemo(()=>[{key:"gate",header:"Gate",minWidth:"200px",render:e=>t.jsx(n,{onClick:r=>{r.stopPropagation(),s("names",e.payload.gate)},children:e.payload.gate})},{key:"action",header:"Action",width:"150px",render:e=>e.payload.action?t.jsx(a,{truncate:!0,maxWidth:"150px",children:e.payload.action}):t.jsx(a,{secondary:!0,children:"-"})},{key:"subject",header:"Subject",minWidth:"150px",render:e=>e.payload.subject?t.jsx(a,{mono:!0,truncate:!0,maxWidth:"200px",children:typeof e.payload.subject=="string"?e.payload.subject:JSON.stringify(e.payload.subject)}):t.jsx(a,{secondary:!0,children:"-"})},{key:"result",header:"Result",width:"100px",render:e=>{const r=e.payload.allowed?"allowed":"denied";return t.jsx(n,{onClick:P=>{P.stopPropagation(),s("results",r)},children:r.toUpperCase()})}},{key:"user",header:"User",width:"150px",render:e=>e.payload.userId?t.jsx(a,{truncate:!0,maxWidth:"150px",children:e.payload.userId}):t.jsx(a,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(a,{secondary:!0,className:"text-xs",children:R(T(e.createdAt),{addSuffix:!0})})}],[s]);if(g&&l.length===0)return t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const v=x?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(S,{title:"Gates",icon:d,iconColor:"text-amber-600 dark:text-amber-400",count:l.length,totalCount:o==null?void 0:o.total,refreshing:i,autoRefreshEnabled:k,live:w,onAutoRefreshToggle:C,filters:p,onClearAllFilters:u}),t.jsxs("div",{className:`${v} space-y-4 transition-all duration-200`,children:[t.jsx(W,{count:y,onClick:b,loading:i}),t.jsx(I,{columns:E,data:l,keyExtractor:e=>e.id,onRowClick:e=>c(`/gates/${e.id}`),rowClassName:e=>N(e.id)?"highlight-new":"",emptyMessage:"No gate checks recorded yet",emptyIcon:t.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(G,{hasMore:j,onClick:f,loading:i})]})]})}export{V as default};
|
package/dist/dashboard/public/assets/{GraphQLDetailView-DZPwXidi.js → GraphQLDetailView-DN7qwLjl.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as M,z as E,j as e,X as O,t as z,g as H,L as q,C as P,T as U}from"./index-
|
|
1
|
+
import{c as M,z as E,j as e,X as O,t as z,g as H,L as q,C as P,T as U}from"./index-B1QFrlfD.js";import{b,e as W}from"./vendor-DBTT3jXp.js";import{p as B,f as J}from"./badgeColors-DQ_P_DOX.js";import{D as m,f as Z}from"./DetailRow-D_sZP7WV.js";import{C as $,B as X}from"./types-DwzjtRI3.js";import{G as K,N as Y}from"./DataTable-C9UKN_wr.js";import{M as _,c as ee,a as ae,b as se,u as L,C as D,T as R}from"./EntryDetailPage-D7qvNuMn.js";import{U as te}from"./UserCard-B8lhlqKk.js";import{S as Q}from"./search-n3qpR8sp.js";import{Z as re}from"./zap-C7m34sPr.js";import{S as le}from"./send-DkLuIqBH.js";/**
|
|
2
2
|
* @license lucide-react v0.468.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as M,j as a}from"./index-
|
|
1
|
+
import{c as M,j as a}from"./index-B1QFrlfD.js";import{e as Q,f as U,b as p}from"./vendor-DBTT3jXp.js";import{f as W,p as I}from"./badgeColors-DQ_P_DOX.js";import{E as O}from"./EntrySearchInput-DeOYz9h4.js";import{u as $,P as z,N as V,L as J}from"./PageHeader-BQ2bLFIt.js";import{u as K,s as X,C as x}from"./types-DwzjtRI3.js";import{T as h,G as Y,N as Z,D as _,a as ee,b as ae}from"./DataTable-C9UKN_wr.js";import"./search-n3qpR8sp.js";/**
|
|
2
2
|
* @license lucide-react v0.468.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./index-
|
|
1
|
+
import{j as e}from"./index-B1QFrlfD.js";import{b as T}from"./vendor-DBTT3jXp.js";import{p as b,f as E}from"./badgeColors-DQ_P_DOX.js";import{D as s,f as N}from"./DetailRow-D_sZP7WV.js";import{C as i,B}from"./types-DwzjtRI3.js";import{u as j,T as f,C as l}from"./EntryDetailPage-D7qvNuMn.js";import"./search-n3qpR8sp.js";const H=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],D=["2XX","3XX","4XX","5XX","SUCCESS","ERROR","CLIENT-ERROR","REDIRECT"];function q(t){return t<1e3?`${t} ms`:`${(t/1e3).toFixed(2)} s`}function O({entry:t}){const{payload:a,createdAt:c}=t,h=a.statusCode??0,m=(t.tags??[]).filter(p=>{var u;const x=p.toUpperCase();return!H.includes(x)&&!D.includes(x)&&p.toLowerCase()!==((u=a.hostname)==null?void 0:u.toLowerCase())}),r=j(),o=j(),[y,R]=T.useState("payload"),[S,C]=T.useState("response"),n={payload:a.requestBody||{},headers:a.requestHeaders??{}},d={response:a.responseBody||{},headers:a.responseHeaders??{}},g=[{id:"payload",label:"Request Body",content:e.jsx(l,{data:n.payload,toolbarState:r.state,searchBar:r.SearchBar,maxHeight:400})},{id:"headers",label:"Request Headers",content:e.jsx(l,{data:n.headers,toolbarState:r.state,searchBar:r.SearchBar,maxHeight:400})}],v=[{id:"response",label:"Response Body",content:e.jsx(l,{data:d.response,toolbarState:o.state,searchBar:o.SearchBar,maxHeight:400})},{id:"headers",label:"Response Headers",content:e.jsx(l,{data:d.headers,toolbarState:o.state,searchBar:o.SearchBar,maxHeight:400})}];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"HTTP Client Request Details"})}),e.jsx("div",{className:"p-4",children:e.jsxs("dl",{className:"divide-y-0",children:[e.jsx(s,{label:"Time",value:e.jsxs("span",{children:[N(b(c),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",E(b(c),{addSuffix:!0}),")"]})]})}),e.jsx(s,{label:"Method",value:e.jsx(i,{listType:"http-client",filterType:"methods",filterValue:a.method,className:"font-mono font-medium",children:a.method})}),e.jsx(s,{label:"URL",value:e.jsx("span",{className:"font-mono text-sm break-all",children:a.url})}),a.hostname&&e.jsx(s,{label:"Hostname",value:e.jsx(i,{listType:"http-client",filterType:"hostnames",filterValue:a.hostname,className:"font-mono",children:a.hostname})}),a.path&&e.jsx(s,{label:"Path",value:e.jsx("span",{className:"font-mono text-sm",children:a.path})}),e.jsx(s,{label:"Status Code",value:e.jsx(i,{listType:"http-client",filterType:"statuses",filterValue:a.statusCode?String(a.statusCode):"ERR",children:h>0?h:"ERR"})}),e.jsx(s,{label:"Duration",value:e.jsx("span",{className:a.duration>1e3?"text-yellow-600 dark:text-yellow-400 font-medium":"",children:q(a.duration)})}),a.error&&e.jsx(s,{label:"Error",value:e.jsx("span",{className:"text-red-600 dark:text-red-400 font-medium",children:a.error})}),m.length>0&&e.jsx(s,{label:"Tags",value:e.jsx(B,{items:m,listType:"http-client",maxItems:99})})]})})]}),e.jsx(f,{tabs:g,defaultTab:"payload",hashKey:"req",headerRight:e.jsx(r.Toolbar,{data:n[y]}),onTabChange:R}),e.jsx(f,{tabs:v,defaultTab:"response",hashKey:"res",headerRight:e.jsx(o.Toolbar,{data:d[S]}),onTabChange:C})]})}export{O as default};
|
package/dist/dashboard/public/assets/{HttpClientPage-Dz07Icgz.js → HttpClientPage-qC_nBzq2.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,d as h}from"./index-
|
|
1
|
+
import{j as t,d as h}from"./index-B1QFrlfD.js";import{e as R,b as v}from"./vendor-DBTT3jXp.js";import{f as H,p as D}from"./badgeColors-DQ_P_DOX.js";import{u as F,P as M,N as A,L as B}from"./PageHeader-BQ2bLFIt.js";import{u as L,j as S,C as l}from"./types-DwzjtRI3.js";import{T as d,D as W,b as $}from"./DataTable-C9UKN_wr.js";function O(){const c=R(),{addFilter:s,clearAll:u,serverFilters:m,headerFilters:p,hasFilters:x}=L("http-client"),{entries:g,loading:y,refreshing:r,newEntriesCount:f,hasMore:C,loadMore:j,loadNew:k,autoRefreshEnabled:w,live:N,setAutoRefresh:E,meta:o,isHighlighted:b}=F({type:"http-client",limit:50,filters:m}),n=g.filter(e=>S(e)),P=v.useMemo(()=>[{key:"method",header:"Method",width:"90px",render:e=>t.jsx(l,{onClick:a=>{a.stopPropagation(),s("methods",e.payload.method)},className:"font-mono",children:e.payload.method})},{key:"status",header:"Status",width:"80px",render:e=>{const a=e.payload.statusCode??0;return t.jsx(l,{onClick:i=>{i.stopPropagation(),s("statuses",a>0?String(a):"ERR")},children:a>0?a:"ERR"})}},{key:"hostname",header:"Host",width:"180px",render:e=>{const a=e.payload.hostname;return a?t.jsx(l,{onClick:i=>{i.stopPropagation(),s("hostnames",a)},className:"font-mono",children:a}):t.jsx(d,{secondary:!0,children:"-"})}},{key:"path",header:"Path",minWidth:"200px",render:e=>t.jsx(d,{mono:!0,truncate:!0,maxWidth:"300px",children:e.payload.path||e.payload.url})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(W,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(d,{secondary:!0,className:"text-xs",children:H(D(e.createdAt),{addSuffix:!0})})}],[s]);if(y&&n.length===0)return t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const T=x?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(M,{title:"HTTP Client",icon:h,iconColor:"text-cyan-600 dark:text-cyan-400",count:n.length,totalCount:o==null?void 0:o.total,refreshing:r,autoRefreshEnabled:w,live:N,onAutoRefreshToggle:E,filters:p,onClearAllFilters:u}),t.jsxs("div",{className:`${T} space-y-4 transition-all duration-200`,children:[t.jsx(A,{count:f,onClick:k,loading:r}),t.jsx($,{columns:P,data:n,keyExtractor:e=>e.id,onRowClick:e=>c(`/http-client/${e.id}`),rowClassName:e=>b(e.id)?"highlight-new":"",emptyMessage:"No outgoing HTTP requests recorded yet",emptyIcon:t.jsx(h,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(B,{hasMore:C,onClick:j,loading:r})]})]})}export{O as default};
|
package/dist/dashboard/public/assets/{JobDetailView-DrDFXY-t.js → JobDetailView-B4A5Y2PM.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as k,C as h,i as j,j as e,B as n}from"./index-
|
|
1
|
+
import{c as k,C as h,i as j,j as e,B as n}from"./index-B1QFrlfD.js";import{b as w}from"./vendor-DBTT3jXp.js";import{p as m,f as C}from"./badgeColors-DQ_P_DOX.js";import{D as s,f as T}from"./DetailRow-D_sZP7WV.js";import{C as i}from"./types-DwzjtRI3.js";import{u as b,C as p,T as D}from"./EntryDetailPage-D7qvNuMn.js";import{C as S}from"./CopyButton-YkpN9Yi5.js";import{C as y}from"./circle-alert-WNDYen0I.js";import{C as B}from"./circle-check-big-B6oE8hF5.js";import"./search-n3qpR8sp.js";/**
|
|
2
2
|
* @license lucide-react v0.468.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,B as l}from"./index-
|
|
1
|
+
import{j as t,B as l}from"./index-B1QFrlfD.js";import{e as T,b as E}from"./vendor-DBTT3jXp.js";import{f as v,p as A}from"./badgeColors-DQ_P_DOX.js";import{u as D,P as B,N as F,L as M}from"./PageHeader-BQ2bLFIt.js";import{u as P,e as R,C as o}from"./types-DwzjtRI3.js";import{T as i,D as J,b as q}from"./DataTable-C9UKN_wr.js";function W(){const n=T(),{clearAll:d,serverFilters:u,headerFilters:c,hasFilters:h}=P("jobs"),{entries:p,loading:m,refreshing:a,newEntriesCount:x,hasMore:y,loadMore:f,loadNew:g,autoRefreshEnabled:j,live:b,setAutoRefresh:w,meta:s,isHighlighted:k}=D({type:"job",limit:50,filters:u}),r=p.filter(e=>R(e)),C=E.useMemo(()=>[{key:"job",header:"Job",minWidth:"200px",render:e=>t.jsx(o,{listType:"jobs",filterType:"names",className:"font-mono",children:e.payload.name})},{key:"queue",header:"Queue",width:"120px",render:e=>t.jsx(o,{listType:"jobs",filterType:"queues",children:e.payload.queue})},{key:"status",header:"Status",width:"100px",render:e=>t.jsx(o,{listType:"jobs",filterType:"statuses",children:e.payload.status})},{key:"attempts",header:"Attempts",width:"80px",align:"center",render:e=>t.jsx(i,{secondary:!0,children:e.payload.attempts})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>e.payload.duration?t.jsx(J,{ms:e.payload.duration}):t.jsx(i,{secondary:!0,children:"—"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(i,{secondary:!0,className:"text-xs",children:v(A(e.createdAt),{addSuffix:!0})})}],[]);if(m&&r.length===0)return t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const N=h?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(B,{title:"Jobs",icon:l,iconColor:"text-yellow-600 dark:text-yellow-400",count:r.length,totalCount:s==null?void 0:s.total,refreshing:a,autoRefreshEnabled:j,live:b,onAutoRefreshToggle:w,filters:c,onClearAllFilters:d}),t.jsxs("div",{className:`${N} space-y-4 transition-all duration-200`,children:[t.jsx(F,{count:x,onClick:g,loading:a}),t.jsx(q,{columns:C,data:r,keyExtractor:e=>e.id,onRowClick:e=>n(`/jobs/${e.id}`),rowClassName:e=>k(e.id)?"highlight-new":"",emptyMessage:"No jobs recorded yet",emptyIcon:t.jsx(l,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(M,{hasMore:y,onClick:f,loading:a})]})]})}export{W as default};
|
package/dist/dashboard/public/assets/{LogDetailView-OhpY0czv.js → LogDetailView-DZyruHPx.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as a}from"./index-
|
|
1
|
+
import{j as a}from"./index-B1QFrlfD.js";import{p as d,f as x}from"./badgeColors-DQ_P_DOX.js";import{D as s,f as m}from"./DetailRow-D_sZP7WV.js";import{C as o}from"./types-DwzjtRI3.js";import{u as b,C as h,T as g}from"./EntryDetailPage-D7qvNuMn.js";import"./vendor-DBTT3jXp.js";import"./search-n3qpR8sp.js";const i={verbose:{variant:"default",label:"VERBOSE"},debug:{variant:"info",label:"DEBUG"},log:{variant:"success",label:"LOG"},warn:{variant:"warning",label:"WARNING"},error:{variant:"error",label:"ERROR"}};function w({entry:c}){const{payload:e,createdAt:r}=c,n=i[e.level]||i.log,t=b(),l=e.metadata&&Object.keys(e.metadata).length>0?[{id:"metadata",label:"Metadata",content:a.jsx(h,{data:e.metadata,toolbarState:t.state,searchBar:t.SearchBar,maxHeight:400})}]:[];return a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Log Details"})}),a.jsx("div",{className:"p-4",children:a.jsxs("dl",{className:"divide-y-0",children:[a.jsx(s,{label:"Time",value:a.jsxs("span",{children:[m(d(r),"MMMM do yyyy, h:mm:ss a")," ",a.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",x(d(r),{addSuffix:!0}),")"]})]})}),a.jsx(s,{label:"Level",value:a.jsx(o,{listType:"logs",filterType:"levels",filterValue:e.level,children:n.label})}),e.context&&a.jsx(s,{label:"Context",value:a.jsx(o,{listType:"logs",filterType:"contexts",filterValue:e.context,className:"font-mono",children:e.context})})]})})]}),a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Message"})}),a.jsx("div",{className:"p-4",children:a.jsx("p",{className:`text-sm ${e.level==="error"?"text-red-600 dark:text-red-400":e.level==="warn"?"text-yellow-600 dark:text-yellow-400":"text-gray-900 dark:text-white"}`,children:e.message})})]}),l.length>0&&a.jsx(g,{tabs:l,defaultTab:"metadata",headerRight:a.jsx(t.Toolbar,{data:e.metadata})}),e.stack&&a.jsxs("div",{className:"card",children:[a.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:a.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Stack Trace"})}),a.jsx("div",{className:"p-4 bg-gray-900 dark:bg-gray-950 overflow-x-auto",children:a.jsx("pre",{className:"text-sm text-red-400 font-mono whitespace-pre-wrap",children:e.stack})})]})]})}export{w as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,F as l}from"./index-
|
|
1
|
+
import{j as t,F as l}from"./index-B1QFrlfD.js";import{e as E,b as k}from"./vendor-DBTT3jXp.js";import{f as T,p as F}from"./badgeColors-DQ_P_DOX.js";import{u as L,P as M,N as A,L as P}from"./PageHeader-BQ2bLFIt.js";import{u as R,c as B,C as i}from"./types-DwzjtRI3.js";import{E as D}from"./EntrySearchInput-DeOYz9h4.js";import{T as o,b as S}from"./DataTable-C9UKN_wr.js";import"./search-n3qpR8sp.js";function K(){const n=E(),{clearAll:d,serverFilters:c,headerFilters:g,hasFilters:m}=R("logs"),{entries:x,loading:h,refreshing:s,newEntriesCount:p,hasMore:u,loadMore:f,loadNew:y,autoRefreshEnabled:j,live:v,setAutoRefresh:C,meta:a,isHighlighted:N}=L({type:"log",limit:50,filters:c}),r=x.filter(e=>B(e)),b=k.useMemo(()=>[{key:"level",header:"Level",width:"100px",render:e=>t.jsx(i,{listType:"logs",filterType:"levels",children:e.payload.level})},{key:"message",header:"Message",minWidth:"300px",render:e=>t.jsx(o,{truncate:!0,maxWidth:"500px",children:e.payload.message.length>100?e.payload.message.substring(0,100)+"...":e.payload.message})},{key:"context",header:"Context",width:"150px",render:e=>e.payload.context?t.jsx(i,{listType:"logs",filterType:"contexts",className:"font-mono",children:e.payload.context}):t.jsx(o,{secondary:!0,children:"—"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(o,{secondary:!0,className:"text-xs",children:T(F(e.createdAt),{addSuffix:!0})})}],[]);if(h&&r.length===0)return t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const w=m?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(M,{title:"Logs",icon:l,iconColor:"text-green-600 dark:text-green-400",count:r.length,totalCount:a==null?void 0:a.total,refreshing:s,autoRefreshEnabled:j,live:v,onAutoRefreshToggle:C,filters:g,onClearAllFilters:d}),t.jsxs("div",{className:`${w} space-y-4 transition-all duration-200`,children:[t.jsx(D,{placeholder:"Search by message, level, context, tag, or content..."}),t.jsx(A,{count:p,onClick:y,loading:s}),t.jsx(S,{columns:b,data:r,keyExtractor:e=>e.id,onRowClick:e=>n(`/logs/${e.id}`),rowClassName:e=>N(e.id)?"highlight-new":"",emptyMessage:"No logs recorded yet",emptyIcon:t.jsx(l,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(P,{hasMore:u,onClick:f,loading:s})]})]})}export{K as default};
|
package/dist/dashboard/public/assets/{MailDetailView-rmPDboFn.js → MailDetailView-CLhOX0PN.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Un,j as i,M as Ht,C as Fn}from"./index-
|
|
1
|
+
import{c as Un,j as i,M as Ht,C as Fn}from"./index-B1QFrlfD.js";import{C as zn,B as Hn}from"./types-DwzjtRI3.js";import{p as Gt,f as Gn}from"./badgeColors-DQ_P_DOX.js";import{D as B,f as Bn}from"./DetailRow-D_sZP7WV.js";import{T as Wn}from"./EntryDetailPage-D7qvNuMn.js";import{C as be}from"./CopyButton-YkpN9Yi5.js";import{C as $n}from"./circle-x-Ch0JMytg.js";import{C as Yn}from"./circle-check-big-B6oE8hF5.js";import{U as Xn}from"./users-D7CwV95U.js";import{C as Vn}from"./circle-alert-WNDYen0I.js";import"./vendor-DBTT3jXp.js";import"./search-n3qpR8sp.js";/**
|
|
2
2
|
* @license lucide-react v0.468.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,M as u}from"./index-
|
|
1
|
+
import{j as t,M as u}from"./index-B1QFrlfD.js";import{e as D,b as c}from"./vendor-DBTT3jXp.js";import{f as F,p as P}from"./badgeColors-DQ_P_DOX.js";import{u as R,P as L,N as S,L as W}from"./PageHeader-BQ2bLFIt.js";import{u as $,g as B,C as H}from"./types-DwzjtRI3.js";import{T as l,D as q,a as I,b as z}from"./DataTable-C9UKN_wr.js";const G=["sent","failed","pending","queued","error"];function X(){const h=D(),{addFilter:o,clearAll:m,serverFilters:g,headerFilters:p,hasFilters:x}=$("mail"),{entries:f,loading:y,refreshing:r,newEntriesCount:j,hasMore:b,loadMore:k,loadNew:C,autoRefreshEnabled:w,live:T,setAutoRefresh:N,meta:s,isHighlighted:E}=R({type:"mail",limit:50,filters:g}),i=f.filter(e=>B(e)),d=c.useCallback(e=>{const a=Array.isArray(e)?e:[e];return a.length===1?a[0]:`${a[0]} +${a.length-1}`},[]),M=c.useMemo(()=>[{key:"status",header:"Status",width:"80px",render:e=>t.jsx(H,{listType:"mail",filterType:"statuses",children:e.payload.status})},{key:"subject",header:"Subject",minWidth:"250px",render:e=>t.jsx(l,{truncate:!0,maxWidth:"350px",children:e.payload.subject.length>60?e.payload.subject.substring(0,60)+"...":e.payload.subject})},{key:"to",header:"To",width:"200px",render:e=>t.jsx(l,{mono:!0,secondary:!0,truncate:!0,maxWidth:"180px",children:d(e.payload.to)})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(q,{ms:e.payload.duration||0})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>{const a=(e.tags??[]).filter(n=>!G.includes(n.toLowerCase()));return t.jsx(I,{tags:a,max:3,onTagClick:(n,A)=>{A.stopPropagation(),o("tags",n)}})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(l,{secondary:!0,className:"text-xs",children:F(P(e.createdAt),{addSuffix:!0})})}],[o,d]);if(y&&i.length===0)return t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const v=x?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(L,{title:"Mail",icon:u,iconColor:"text-pink-600 dark:text-pink-400",count:i.length,totalCount:s==null?void 0:s.total,refreshing:r,autoRefreshEnabled:w,live:T,onAutoRefreshToggle:N,filters:p,onClearAllFilters:m}),t.jsxs("div",{className:`${v} space-y-4 transition-all duration-200`,children:[t.jsx(S,{count:j,onClick:C,loading:r}),t.jsx(z,{columns:M,data:i,keyExtractor:e=>e.id,onRowClick:e=>h(`/mail/${e.id}`),rowClassName:e=>E(e.id)?"highlight-new":"",emptyMessage:"No emails recorded yet",emptyIcon:t.jsx(u,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(W,{hasMore:b,onClick:k,loading:r})]})]})}export{X as default};
|
package/dist/dashboard/public/assets/{ModelDetailView-DVh-32OU.js → ModelDetailView-CVszB9Qw.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,b as o,F as b,C as g,D as u}from"./index-
|
|
1
|
+
import{j as e,b as o,F as b,C as g,D as u}from"./index-B1QFrlfD.js";import{b as y}from"./vendor-DBTT3jXp.js";import{p as x,f}from"./badgeColors-DQ_P_DOX.js";import{D as s,f as v}from"./DetailRow-D_sZP7WV.js";import{C as l}from"./types-DwzjtRI3.js";import{u as n,C as m,T as N}from"./EntryDetailPage-D7qvNuMn.js";import{C as k}from"./CopyButton-YkpN9Yi5.js";import{C as w}from"./circle-x-Ch0JMytg.js";import"./search-n3qpR8sp.js";function V({entry:p}){const{payload:a,createdAt:i}=p,t=n(),d=n(),[c,h]=y.useState("data"),r=[];a.data!==void 0&&r.push({id:"data",label:"Data",content:e.jsx(m,{data:a.data,toolbarState:t.state,searchBar:t.SearchBar,maxHeight:400})}),a.where!==void 0&&r.push({id:"where",label:"Where",content:e.jsx(m,{data:a.where,toolbarState:d.state,searchBar:d.SearchBar,maxHeight:400})});const j=()=>{if(c==="data"&&a.data!==void 0)return e.jsx(t.Toolbar,{data:a.data});if(c==="where"&&a.where!==void 0)return e.jsx(d.Toolbar,{data:a.where})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"p-2 bg-purple-100 dark:bg-purple-900/30 rounded-lg",children:e.jsx(o,{className:"h-5 w-5 text-purple-600 dark:text-purple-400"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white font-mono",children:a.entity}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Model Event"})]})]}),e.jsx(k,{text:a.entity,label:"Copy entity name"})]})}),e.jsxs("div",{className:`grid ${a.recordCount!==void 0?"grid-cols-2 md:grid-cols-4":"grid-cols-2 md:grid-cols-3"} divide-x divide-gray-200 dark:divide-gray-700`,children:[e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(b,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Action"})]}),e.jsx("p",{className:"text-lg font-bold text-purple-600 dark:text-purple-400",children:a.action.toUpperCase()})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(o,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Entity"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white font-mono truncate",title:a.entity,children:a.entity})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(g,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Duration"})]}),e.jsxs("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:[a.duration,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:"ms"})]})]}),a.recordCount!==void 0&&e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(u,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Records"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:a.recordCount})]})]})]}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Details"})}),e.jsx("div",{className:"p-4",children:e.jsxs("dl",{className:"divide-y-0",children:[e.jsx(s,{label:"Time",value:e.jsxs("span",{children:[v(x(i),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",f(x(i),{addSuffix:!0}),")"]})]})}),e.jsx(s,{label:"Action",value:e.jsx(l,{listType:"models",filterType:"actions",filterValue:a.action,children:a.action.toUpperCase()})}),e.jsx(s,{label:"Entity",value:e.jsx(l,{listType:"models",filterType:"entities",filterValue:a.entity,children:a.entity})}),a.source&&e.jsx(s,{label:"Source",value:e.jsx(l,{listType:"models",filterType:"sources",filterValue:a.source,children:a.source})}),e.jsx(s,{label:"Duration",value:`${a.duration}ms`}),a.recordCount!==void 0&&e.jsx(s,{label:"Records",value:String(a.recordCount)})]})})]}),a.error&&e.jsxs("div",{className:"card border-red-200 dark:border-red-800",children:[e.jsx("div",{className:"px-4 py-3 border-b border-red-200 dark:border-red-800 bg-red-50 dark:bg-red-900/20",children:e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(w,{className:"h-5 w-5 text-red-500"}),e.jsx("h2",{className:"text-lg font-semibold text-red-700 dark:text-red-400",children:"Error"})]})}),e.jsx("div",{className:"p-4 bg-red-50/50 dark:bg-red-900/10",children:e.jsx("pre",{className:"text-sm text-red-600 dark:text-red-400 font-mono whitespace-pre-wrap overflow-x-auto",children:a.error})})]}),r.length>0&&e.jsx(N,{tabs:r,defaultTab:"data",hashKey:"model",headerRight:j(),onTabChange:h})]})}export{V as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,b as d}from"./index-
|
|
1
|
+
import{j as t,b as d}from"./index-B1QFrlfD.js";import{e as P,b as A}from"./vendor-DBTT3jXp.js";import{f as D,p as F}from"./badgeColors-DQ_P_DOX.js";import{u as R,P as T,N as B,L}from"./PageHeader-BQ2bLFIt.js";import{u as H,l as S,C as l}from"./types-DwzjtRI3.js";import{T as o,D as $,b as I}from"./DataTable-C9UKN_wr.js";function O(){const c=P(),{addFilter:r,clearAll:u,serverFilters:p,headerFilters:h,hasFilters:x}=H("models"),{entries:m,loading:g,refreshing:s,newEntriesCount:y,hasMore:f,loadMore:j,loadNew:C,autoRefreshEnabled:k,live:w,setAutoRefresh:N,meta:i,isHighlighted:b}=R({type:"model",limit:50,filters:p}),n=m.filter(e=>S(e)),E=A.useMemo(()=>[{key:"action",header:"Action",width:"120px",render:e=>t.jsx(l,{onClick:a=>{a.stopPropagation(),r("actions",e.payload.action)},children:e.payload.action.toUpperCase()})},{key:"entity",header:"Entity",width:"150px",render:e=>t.jsx(l,{onClick:a=>{a.stopPropagation(),r("entities",e.payload.entity)},className:"font-mono",children:e.payload.entity})},{key:"source",header:"Source",width:"150px",render:e=>{const a=e.payload.source;return a?t.jsx(l,{onClick:M=>{M.stopPropagation(),r("sources",a)},className:"font-mono text-xs",children:a}):t.jsx(o,{secondary:!0,children:"-"})}},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx($,{ms:e.payload.duration||0})},{key:"records",header:"Records",width:"80px",align:"center",render:e=>e.payload.recordCount!==void 0?t.jsx(o,{children:e.payload.recordCount}):t.jsx(o,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(o,{secondary:!0,className:"text-xs",children:D(F(e.createdAt),{addSuffix:!0})})}],[r]);if(g&&n.length===0)return t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const v=x?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(T,{title:"Models",icon:d,iconColor:"text-purple-600 dark:text-purple-400",count:n.length,totalCount:i==null?void 0:i.total,refreshing:s,autoRefreshEnabled:k,live:w,onAutoRefreshToggle:N,filters:h,onClearAllFilters:u}),t.jsxs("div",{className:`${v} space-y-4 transition-all duration-200`,children:[t.jsx(B,{count:y,onClick:C,loading:s}),t.jsx(I,{columns:E,data:n,keyExtractor:e=>e.id,onRowClick:e=>c(`/models/${e.id}`),rowClassName:e=>b(e.id)?"highlight-new":"",emptyMessage:"No model events recorded yet",emptyIcon:t.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(L,{hasMore:f,onClick:j,loading:s})]})]})}export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,e as c,C as j}from"./index-
|
|
1
|
+
import{j as e,e as c,C as j}from"./index-B1QFrlfD.js";import{p as x,f as y}from"./badgeColors-DQ_P_DOX.js";import{D as s,f as b}from"./DetailRow-D_sZP7WV.js";import{C as n}from"./types-DwzjtRI3.js";import{u as N,C as f,T as u}from"./EntryDetailPage-D7qvNuMn.js";import{C as v}from"./CopyButton-YkpN9Yi5.js";import{C as k}from"./circle-check-big-B6oE8hF5.js";import{C as o}from"./circle-x-Ch0JMytg.js";import{S as w}from"./send-DkLuIqBH.js";import"./vendor-DBTT3jXp.js";import"./search-n3qpR8sp.js";function I({entry:m}){const{payload:a,createdAt:l}=m,i=N(),t=a.status==="sent"?{icon:k,color:"text-green-500",bg:"bg-green-100 dark:bg-green-900/30"}:{icon:o,color:"text-red-500",bg:"bg-red-100 dark:bg-red-900/30"},p=t.icon,d=a.metadata!==void 0?[{id:"metadata",label:"Metadata",content:e.jsx(f,{data:a.metadata,toolbarState:i.state,searchBar:i.SearchBar,maxHeight:400})}]:[],r=Array.isArray(a.recipient)?a.recipient:[a.recipient];return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:`p-2 ${t.bg} rounded-lg`,children:e.jsx(c,{className:`h-5 w-5 ${t.color}`})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:a.title||a.type}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Notification"})]})]}),e.jsx(v,{text:r.join(", "),label:"Copy recipient"})]})}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 divide-x divide-gray-200 dark:divide-gray-700",children:[e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(c,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Type"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white truncate",title:a.type,children:a.type})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(p,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Status"})]}),e.jsx("p",{className:`text-lg font-bold ${t.color}`,children:a.status.toUpperCase()})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(j,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Duration"})]}),e.jsxs("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:[a.duration,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:"ms"})]})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center space-x-2 text-gray-500 dark:text-gray-400 mb-1",children:[e.jsx(w,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Recipients"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:r.length})]})]})]}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Details"})}),e.jsx("div",{className:"p-4",children:e.jsxs("dl",{className:"divide-y-0",children:[e.jsx(s,{label:"Time",value:e.jsxs("span",{children:[b(x(l),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",y(x(l),{addSuffix:!0}),")"]})]})}),e.jsx(s,{label:"Type",value:e.jsx(n,{listType:"notifications",filterType:"types",filterValue:a.type,children:a.type})}),e.jsx(s,{label:r.length>1?"Recipients":"Recipient",value:e.jsx("div",{className:"flex flex-wrap gap-2",children:r.map((h,g)=>e.jsx("code",{className:"text-sm font-mono text-gray-900 dark:text-white",children:h},g))})}),a.title&&e.jsx(s,{label:"Title",value:a.title}),a.message&&e.jsx(s,{label:"Message",value:e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:a.message})}),e.jsx(s,{label:"Status",value:e.jsx(n,{listType:"notifications",filterType:"statuses",filterValue:a.status,children:a.status.toUpperCase()})}),e.jsx(s,{label:"Duration",value:`${a.duration}ms`})]})})]}),a.error&&e.jsxs("div",{className:"card border-red-200 dark:border-red-800",children:[e.jsx("div",{className:"px-4 py-3 border-b border-red-200 dark:border-red-800 bg-red-50 dark:bg-red-900/20",children:e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(o,{className:"h-5 w-5 text-red-500"}),e.jsx("h2",{className:"text-lg font-semibold text-red-700 dark:text-red-400",children:"Error"})]})}),e.jsx("div",{className:"p-4 bg-red-50/50 dark:bg-red-900/10",children:e.jsx("pre",{className:"text-sm text-red-600 dark:text-red-400 font-mono whitespace-pre-wrap overflow-x-auto",children:a.error})})]}),d.length>0&&e.jsx(u,{tabs:d,defaultTab:"metadata",hashKey:"notification",headerRight:e.jsx(i.Toolbar,{data:a.metadata})})]})}export{I as default};
|
package/dist/dashboard/public/assets/{NotificationsPage-Bn3roYs1.js → NotificationsPage-BOPuEc8u.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,e as l}from"./index-
|
|
1
|
+
import{j as t,e as l}from"./index-B1QFrlfD.js";import{e as T,b as P}from"./vendor-DBTT3jXp.js";import{f as D,p as F}from"./badgeColors-DQ_P_DOX.js";import{u as R,P as A,N as M,L as B}from"./PageHeader-BQ2bLFIt.js";import{u as W,m as L,C as d}from"./types-DwzjtRI3.js";import{T as a,D as H,b as S}from"./DataTable-C9UKN_wr.js";function J(){const c=T(),{addFilter:i,clearAll:p,serverFilters:u,headerFilters:h,hasFilters:x}=W("notifications"),{entries:m,loading:g,refreshing:r,newEntriesCount:f,hasMore:y,loadMore:j,loadNew:C,autoRefreshEnabled:k,live:N,setAutoRefresh:w,meta:s,isHighlighted:b}=R({type:"notification",limit:50,filters:u}),o=m.filter(e=>L(e)),E=P.useMemo(()=>[{key:"type",header:"Type",width:"150px",render:e=>t.jsx(d,{onClick:n=>{n.stopPropagation(),i("types",e.payload.type)},children:e.payload.type})},{key:"recipient",header:"Recipient",minWidth:"200px",render:e=>t.jsx(a,{mono:!0,truncate:!0,maxWidth:"250px",children:e.payload.recipient})},{key:"title",header:"Title",minWidth:"200px",render:e=>e.payload.title?t.jsx(a,{truncate:!0,maxWidth:"300px",children:e.payload.title}):t.jsx(a,{secondary:!0,children:"-"})},{key:"status",header:"Status",width:"100px",render:e=>t.jsx(d,{onClick:n=>{n.stopPropagation(),i("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(H,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(a,{secondary:!0,className:"text-xs",children:D(F(e.createdAt),{addSuffix:!0})})}],[i]);if(g&&o.length===0)return t.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:t.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const v=x?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(A,{title:"Notifications",icon:l,iconColor:"text-indigo-600 dark:text-indigo-400",count:o.length,totalCount:s==null?void 0:s.total,refreshing:r,autoRefreshEnabled:k,live:N,onAutoRefreshToggle:w,filters:h,onClearAllFilters:p}),t.jsxs("div",{className:`${v} space-y-4 transition-all duration-200`,children:[t.jsx(M,{count:f,onClick:C,loading:r}),t.jsx(S,{columns:E,data:o,keyExtractor:e=>e.id,onRowClick:e=>c(`/notifications/${e.id}`),rowClassName:e=>b(e.id)?"highlight-new":"",emptyMessage:"No notifications recorded yet",emptyIcon:t.jsx(l,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(B,{hasMore:y,onClick:j,loading:r})]})]})}export{J as default};
|