nestlens 0.9.1 → 0.9.3

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.
Files changed (63) hide show
  1. package/dist/api/dto/cursor-query.dto.js +9 -1
  2. package/dist/core/data-masker.service.js +27 -5
  3. package/dist/dashboard/public/assets/{BatchDetailView-D5HvA77t.js → BatchDetailView-S21SOoT4.js} +1 -1
  4. package/dist/dashboard/public/assets/{BatchesPage-DuRRA37y.js → BatchesPage-B4mRZv-7.js} +1 -1
  5. package/dist/dashboard/public/assets/{CacheDetailView-1UxogliV.js → CacheDetailView-CUN4Xlj1.js} +1 -1
  6. package/dist/dashboard/public/assets/{CachePage-BW4xXkPr.js → CachePage-sSG3fOH-.js} +1 -1
  7. package/dist/dashboard/public/assets/{CommandDetailView-BpgW7Td3.js → CommandDetailView-DOnJl4--.js} +1 -1
  8. package/dist/dashboard/public/assets/{CommandsPage-ds87Sc7B.js → CommandsPage-DGSwYx1i.js} +1 -1
  9. package/dist/dashboard/public/assets/{CopyButton-CVcLaHry.js → CopyButton-DkKluR16.js} +1 -1
  10. package/dist/dashboard/public/assets/{DashboardPage-DNHQ3XIO.js → DashboardPage-DMggZXZm.js} +1 -1
  11. package/dist/dashboard/public/assets/{DataTable-DBtrADsk.js → DataTable-CQVsrmrF.js} +1 -1
  12. package/dist/dashboard/public/assets/{DetailRow-C0vUMqsn.js → DetailRow-CR50H99O.js} +1 -1
  13. package/dist/dashboard/public/assets/{DumpDetailView-DpIq0X3G.js → DumpDetailView-CB2MK264.js} +1 -1
  14. package/dist/dashboard/public/assets/{DumpsPage-BEMRyaRD.js → DumpsPage-BFejJT0i.js} +1 -1
  15. package/dist/dashboard/public/assets/{EntryDetailPage-CIQyW46e.js → EntryDetailPage-jW_ZykXS.js} +3 -3
  16. package/dist/dashboard/public/assets/{EntrySearchInput-_mfQ0GTh.js → EntrySearchInput-DRSpv1XV.js} +1 -1
  17. package/dist/dashboard/public/assets/{EventDetailView-P73VP_Fy.js → EventDetailView-_Sg4kaoC.js} +1 -1
  18. package/dist/dashboard/public/assets/{EventsPage-CGVLTNsT.js → EventsPage-BGCQccD5.js} +1 -1
  19. package/dist/dashboard/public/assets/{ExceptionDetailView-BGARMi0L.js → ExceptionDetailView-wg6kccnW.js} +1 -1
  20. package/dist/dashboard/public/assets/{ExceptionsPage-D0QFk7Th.js → ExceptionsPage-BP0Omwzc.js} +1 -1
  21. package/dist/dashboard/public/assets/{GateDetailView-qlS8o8Vj.js → GateDetailView-B2GkdfXI.js} +1 -1
  22. package/dist/dashboard/public/assets/{GatesPage-DRAeMoww.js → GatesPage-BQrbIY_I.js} +1 -1
  23. package/dist/dashboard/public/assets/{GraphQLDetailView-DxhebEpl.js → GraphQLDetailView-CVKiNjx8.js} +1 -1
  24. package/dist/dashboard/public/assets/{GraphQLPage-DFvzS6gG.js → GraphQLPage-DdXPF_EJ.js} +1 -1
  25. package/dist/dashboard/public/assets/{HttpClientDetailView-Ce86dSVL.js → HttpClientDetailView-BOKfN_N3.js} +1 -1
  26. package/dist/dashboard/public/assets/{HttpClientPage-DF8GOfV0.js → HttpClientPage-Dc4CyjM2.js} +1 -1
  27. package/dist/dashboard/public/assets/{JobDetailView-Ddwlj0Oz.js → JobDetailView-DGB3YKwK.js} +1 -1
  28. package/dist/dashboard/public/assets/{JobsPage-Bd0RuywX.js → JobsPage-BtHUaYit.js} +1 -1
  29. package/dist/dashboard/public/assets/{LogDetailView-C-TzEuYz.js → LogDetailView-Bg5bExCD.js} +1 -1
  30. package/dist/dashboard/public/assets/{LogsPage-BIKUhnPY.js → LogsPage-DCO8kMBG.js} +1 -1
  31. package/dist/dashboard/public/assets/{MailDetailView-DTL0Ys2p.js → MailDetailView-Bh1b9g3u.js} +1 -1
  32. package/dist/dashboard/public/assets/{MailPage-DFT9mR2h.js → MailPage-yMJfR2pc.js} +1 -1
  33. package/dist/dashboard/public/assets/{ModelDetailView-D3-lYlRT.js → ModelDetailView-C03CykA7.js} +1 -1
  34. package/dist/dashboard/public/assets/{ModelsPage-C1020vlQ.js → ModelsPage-DjLplWf-.js} +1 -1
  35. package/dist/dashboard/public/assets/{NotificationDetailView-D3SwDytA.js → NotificationDetailView-BTOXMue0.js} +1 -1
  36. package/dist/dashboard/public/assets/{NotificationsPage-B9od-UaX.js → NotificationsPage-Dw_KBVVy.js} +1 -1
  37. package/dist/dashboard/public/assets/{PageHeader-D5AT-Mxc.js → PageHeader-Ce9Hbh0m.js} +1 -1
  38. package/dist/dashboard/public/assets/{QueriesPage-DhewLYn5.js → QueriesPage-sxyFCofb.js} +1 -1
  39. package/dist/dashboard/public/assets/{QueryDetailView-YBMinBib.js → QueryDetailView-D3qcL29Q.js} +1 -1
  40. package/dist/dashboard/public/assets/{RedisDetailView-BRcONsdJ.js → RedisDetailView-BXlR80r_.js} +1 -1
  41. package/dist/dashboard/public/assets/{RedisPage-Bya5L8h1.js → RedisPage-CJTBRYRA.js} +1 -1
  42. package/dist/dashboard/public/assets/{RequestDetailView-BY1-cZjR.js → RequestDetailView-BXn6Lehg.js} +1 -1
  43. package/dist/dashboard/public/assets/{RequestsPage-DNnN4EV_.js → RequestsPage-DzT18Gb7.js} +1 -1
  44. package/dist/dashboard/public/assets/{ScheduleDetailView-Bm_xNamm.js → ScheduleDetailView-DKDN8aDq.js} +1 -1
  45. package/dist/dashboard/public/assets/{SchedulePage-BPSF96Cq.js → SchedulePage-DpUQnTKK.js} +1 -1
  46. package/dist/dashboard/public/assets/{UserCard-BUmnN8l-.js → UserCard-BY0J84X6.js} +1 -1
  47. package/dist/dashboard/public/assets/{ViewDetailView-DrMVO93F.js → ViewDetailView-DcZJa3Wh.js} +1 -1
  48. package/dist/dashboard/public/assets/{ViewsPage-CP7MTNTk.js → ViewsPage-BrVbaxmk.js} +1 -1
  49. package/dist/dashboard/public/assets/{calendar-DaXjWGJG.js → calendar-DHSpyI4Y.js} +1 -1
  50. package/dist/dashboard/public/assets/{circle-alert-BoSdc5v7.js → circle-alert-CraCmO0F.js} +1 -1
  51. package/dist/dashboard/public/assets/{circle-check-big-pHbbgVmy.js → circle-check-big-ebbAguBz.js} +1 -1
  52. package/dist/dashboard/public/assets/{circle-x-CBdlQncP.js → circle-x-CJZEsYDL.js} +1 -1
  53. package/dist/dashboard/public/assets/{eye-RDdYWiOL.js → eye-BEruVuaB.js} +1 -1
  54. package/dist/dashboard/public/assets/index-f3yHnTBu.js +361 -0
  55. package/dist/dashboard/public/assets/{search-BZHB1sYK.js → search-B0XZ1Fr6.js} +1 -1
  56. package/dist/dashboard/public/assets/{send-CqQmINCf.js → send-C1Uq07c-.js} +1 -1
  57. package/dist/dashboard/public/assets/{timer-ytyQLcvS.js → timer-Dk6Eg1NI.js} +1 -1
  58. package/dist/dashboard/public/assets/{types-Rt2vyU68.js → types-DZrHs5Iv.js} +1 -1
  59. package/dist/dashboard/public/assets/{users-CgFaJMH4.js → users-Bz2xBYFa.js} +1 -1
  60. package/dist/dashboard/public/assets/{zap-BHRzQYJO.js → zap-C4mgfWMp.js} +1 -1
  61. package/dist/dashboard/public/index.html +1 -1
  62. package/package.json +1 -1
  63. package/dist/dashboard/public/assets/index-DSn-BKqm.js +0 -361
@@ -1 +1 @@
1
- import{w as b,j as e,C as n}from"./index-DSn-BKqm.js";import{f as a,c as N}from"./format-BlNP-apw.js";import{C as o,B as v}from"./types-Rt2vyU68.js";import{p as l,f as m}from"./badgeColors-DQ_P_DOX.js";import{D as t,f as g}from"./DetailRow-C0vUMqsn.js";import{C as u}from"./circle-x-CBdlQncP.js";import{C as k}from"./circle-check-big-pHbbgVmy.js";import{T as w}from"./timer-ytyQLcvS.js";import{C as T}from"./calendar-DaXjWGJG.js";import"./vendor-DBTT3jXp.js";function d(i){try{return N.toString(i)}catch{return null}}const h={started:{icon:b,color:"text-blue-500",bg:"bg-blue-100 dark:bg-blue-900/30",label:"STARTED"},completed:{icon:k,color:"text-green-500",bg:"bg-green-100 dark:bg-green-900/30",label:"COMPLETED"},failed:{icon:u,color:"text-red-500",bg:"bg-red-100 dark:bg-red-900/30",label:"FAILED"}},C=["started","completed","failed"];function I({entry:i}){const{payload:s,createdAt:c,tags:j}=i,x=(j??[]).filter(f=>!C.includes(f.toLowerCase())),r=h[s.status]||h.started,p=r.icon,y=()=>s.cron?s.cron:s.interval?`${s.interval}ms`:"-";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.jsx("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 ${r.bg} rounded-lg`,children:e.jsx(n,{className:`h-5 w-5 ${r.color}`})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white truncate font-mono",children:s.name}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Scheduled Task"})]})]})})}),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(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 ${s.status==="completed"?"text-green-600 dark:text-green-400":s.status==="failed"?"text-red-600 dark:text-red-400":"text-blue-600 dark:text-blue-400"}`,children:r.label})]}),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:"Duration"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:s.duration!==void 0?e.jsxs(e.Fragment,{children:[s.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(T,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Schedule"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white font-mono",children:y()}),s.cron&&d(s.cron)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:d(s.cron)}),s.interval&&a(s.interval)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:a(s.interval)})]}),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:"Timeout"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:s.timeout!==void 0?e.jsxs(e.Fragment,{children:[s.timeout,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:"ms"})]}):"-"}),s.timeout!==void 0&&a(s.timeout)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:a(s.timeout)})]})]})]}),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(t,{label:"Time",value:e.jsxs("span",{children:[g(l(c),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",m(l(c),{addSuffix:!0}),")"]})]})}),e.jsx(t,{label:"Task Name",value:e.jsx(o,{listType:"schedule",filterType:"names",filterValue:s.name,className:"font-mono",children:s.name})}),s.cron&&e.jsx(t,{label:"Cron Expression",value:e.jsxs("div",{children:[e.jsx("code",{className:"text-sm font-mono text-gray-900 dark:text-white",children:s.cron}),d(s.cron)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:d(s.cron)})]})}),s.interval&&e.jsx(t,{label:"Interval",value:e.jsxs("div",{children:[e.jsxs("span",{children:[s.interval,"ms"]}),a(s.interval)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:a(s.interval)})]})}),e.jsx(t,{label:"Status",value:e.jsx(o,{listType:"schedule",filterType:"statuses",filterValue:s.status,children:s.status})}),s.duration!==void 0&&e.jsx(t,{label:"Duration",value:`${s.duration}ms`}),s.timeout!==void 0&&e.jsx(t,{label:"Timeout",value:e.jsxs("div",{children:[e.jsxs("span",{children:[s.timeout,"ms"]}),a(s.timeout)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:a(s.timeout)})]})}),s.nextRun&&e.jsx(t,{label:"Next Run",value:e.jsxs("span",{children:[g(l(s.nextRun),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",m(l(s.nextRun),{addSuffix:!0}),")"]})]})}),x.length>0&&e.jsx(t,{label:"Tags",value:e.jsx(v,{items:x,listType:"schedule"})})]})})]}),s.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(u,{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:s.error})})]})]})}export{I as default};
1
+ import{w as b,j as e,C as n}from"./index-f3yHnTBu.js";import{f as a,c as N}from"./format-BlNP-apw.js";import{C as o,B as v}from"./types-DZrHs5Iv.js";import{p as l,f as m}from"./badgeColors-DQ_P_DOX.js";import{D as t,f as g}from"./DetailRow-CR50H99O.js";import{C as u}from"./circle-x-CJZEsYDL.js";import{C as k}from"./circle-check-big-ebbAguBz.js";import{T as w}from"./timer-Dk6Eg1NI.js";import{C as T}from"./calendar-DHSpyI4Y.js";import"./vendor-DBTT3jXp.js";function d(i){try{return N.toString(i)}catch{return null}}const h={started:{icon:b,color:"text-blue-500",bg:"bg-blue-100 dark:bg-blue-900/30",label:"STARTED"},completed:{icon:k,color:"text-green-500",bg:"bg-green-100 dark:bg-green-900/30",label:"COMPLETED"},failed:{icon:u,color:"text-red-500",bg:"bg-red-100 dark:bg-red-900/30",label:"FAILED"}},C=["started","completed","failed"];function I({entry:i}){const{payload:s,createdAt:c,tags:j}=i,x=(j??[]).filter(f=>!C.includes(f.toLowerCase())),r=h[s.status]||h.started,p=r.icon,y=()=>s.cron?s.cron:s.interval?`${s.interval}ms`:"-";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.jsx("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 ${r.bg} rounded-lg`,children:e.jsx(n,{className:`h-5 w-5 ${r.color}`})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white truncate font-mono",children:s.name}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Scheduled Task"})]})]})})}),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(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 ${s.status==="completed"?"text-green-600 dark:text-green-400":s.status==="failed"?"text-red-600 dark:text-red-400":"text-blue-600 dark:text-blue-400"}`,children:r.label})]}),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:"Duration"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:s.duration!==void 0?e.jsxs(e.Fragment,{children:[s.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(T,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Schedule"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white font-mono",children:y()}),s.cron&&d(s.cron)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:d(s.cron)}),s.interval&&a(s.interval)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:a(s.interval)})]}),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:"Timeout"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:s.timeout!==void 0?e.jsxs(e.Fragment,{children:[s.timeout,e.jsx("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:"ms"})]}):"-"}),s.timeout!==void 0&&a(s.timeout)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:a(s.timeout)})]})]})]}),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(t,{label:"Time",value:e.jsxs("span",{children:[g(l(c),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",m(l(c),{addSuffix:!0}),")"]})]})}),e.jsx(t,{label:"Task Name",value:e.jsx(o,{listType:"schedule",filterType:"names",filterValue:s.name,className:"font-mono",children:s.name})}),s.cron&&e.jsx(t,{label:"Cron Expression",value:e.jsxs("div",{children:[e.jsx("code",{className:"text-sm font-mono text-gray-900 dark:text-white",children:s.cron}),d(s.cron)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:d(s.cron)})]})}),s.interval&&e.jsx(t,{label:"Interval",value:e.jsxs("div",{children:[e.jsxs("span",{children:[s.interval,"ms"]}),a(s.interval)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:a(s.interval)})]})}),e.jsx(t,{label:"Status",value:e.jsx(o,{listType:"schedule",filterType:"statuses",filterValue:s.status,children:s.status})}),s.duration!==void 0&&e.jsx(t,{label:"Duration",value:`${s.duration}ms`}),s.timeout!==void 0&&e.jsx(t,{label:"Timeout",value:e.jsxs("div",{children:[e.jsxs("span",{children:[s.timeout,"ms"]}),a(s.timeout)&&e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:a(s.timeout)})]})}),s.nextRun&&e.jsx(t,{label:"Next Run",value:e.jsxs("span",{children:[g(l(s.nextRun),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",m(l(s.nextRun),{addSuffix:!0}),")"]})]})}),x.length>0&&e.jsx(t,{label:"Tags",value:e.jsx(v,{items:x,listType:"schedule"})})]})})]}),s.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(u,{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:s.error})})]})]})}export{I as default};
@@ -1 +1 @@
1
- import{j as a,C as c}from"./index-DSn-BKqm.js";import{e as A,b as u}from"./vendor-DBTT3jXp.js";import{f as h,c as L}from"./format-BlNP-apw.js";import{f as R,p as H}from"./badgeColors-DQ_P_DOX.js";import{u as B,P as W,N as $,L as I}from"./PageHeader-D5AT-Mxc.js";import{u as q,h as z,C as m}from"./types-Rt2vyU68.js";import{T as i,D as G,a as J,b as K}from"./DataTable-DBtrADsk.js";const O=["started","completed","failed"];function p(t){try{return L.toString(t)}catch{return null}}function ee(){const t=A(),{addFilter:n,clearAll:x,serverFilters:g,headerFilters:f,hasFilters:y}=q("schedule"),{entries:k,loading:j,refreshing:s,newEntriesCount:C,hasMore:N,loadMore:T,loadNew:v,autoRefreshEnabled:b,live:w,setAutoRefresh:E,meta:r,isHighlighted:S}=B({type:"schedule",limit:50,filters:g}),l=k.filter(e=>z(e)),d=u.useCallback(e=>e.payload.cron?e.payload.cron:e.payload.interval?`${e.payload.interval}ms`:"-",[]),D=u.useMemo(()=>[{key:"task",header:"Task",minWidth:"200px",render:e=>a.jsx(m,{listType:"schedule",filterType:"names",className:"font-mono",children:e.payload.name})},{key:"schedule",header:"Schedule",minWidth:"150px",render:e=>a.jsxs("div",{children:[a.jsx(i,{mono:!0,children:d(e)}),e.payload.cron&&p(e.payload.cron)&&a.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 block mt-0.5",children:p(e.payload.cron)}),e.payload.interval&&h(e.payload.interval)&&a.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 block mt-0.5",children:h(e.payload.interval)})]})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(m,{listType:"schedule",filterType:"statuses",children:e.payload.status})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>e.payload.duration?a.jsx(G,{ms:e.payload.duration}):a.jsx(i,{secondary:!0,children:"—"})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>{const M=(e.tags??[]).filter(o=>!O.includes(o.toLowerCase()));return a.jsx(J,{tags:M,max:3,onTagClick:(o,P)=>{P.stopPropagation(),n("tags",o)}})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(i,{secondary:!0,className:"text-xs",children:R(H(e.createdAt),{addSuffix:!0})})}],[n,d]);if(j&&l.length===0)return a.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:a.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const F=y?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(W,{title:"Schedule",icon:c,iconColor:"text-gray-600 dark:text-gray-400",count:l.length,totalCount:r==null?void 0:r.total,refreshing:s,autoRefreshEnabled:b,live:w,onAutoRefreshToggle:E,filters:f,onClearAllFilters:x}),a.jsxs("div",{className:`${F} space-y-4 transition-all duration-200`,children:[a.jsx($,{count:C,onClick:v,loading:s}),a.jsx(K,{columns:D,data:l,keyExtractor:e=>e.id,onRowClick:e=>t(`/schedule/${e.id}`),rowClassName:e=>S(e.id)?"highlight-new":"",emptyMessage:"No scheduled tasks recorded yet",emptyIcon:a.jsx(c,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(I,{hasMore:N,onClick:T,loading:s})]})]})}export{ee as default};
1
+ import{j as a,C as c}from"./index-f3yHnTBu.js";import{e as A,b as u}from"./vendor-DBTT3jXp.js";import{f as h,c as L}from"./format-BlNP-apw.js";import{f as R,p as H}from"./badgeColors-DQ_P_DOX.js";import{u as B,P as W,N as $,L as I}from"./PageHeader-Ce9Hbh0m.js";import{u as q,h as z,C as m}from"./types-DZrHs5Iv.js";import{T as i,D as G,a as J,b as K}from"./DataTable-CQVsrmrF.js";const O=["started","completed","failed"];function p(t){try{return L.toString(t)}catch{return null}}function ee(){const t=A(),{addFilter:n,clearAll:x,serverFilters:g,headerFilters:f,hasFilters:y}=q("schedule"),{entries:k,loading:j,refreshing:s,newEntriesCount:C,hasMore:N,loadMore:T,loadNew:v,autoRefreshEnabled:b,live:w,setAutoRefresh:E,meta:r,isHighlighted:S}=B({type:"schedule",limit:50,filters:g}),l=k.filter(e=>z(e)),d=u.useCallback(e=>e.payload.cron?e.payload.cron:e.payload.interval?`${e.payload.interval}ms`:"-",[]),D=u.useMemo(()=>[{key:"task",header:"Task",minWidth:"200px",render:e=>a.jsx(m,{listType:"schedule",filterType:"names",className:"font-mono",children:e.payload.name})},{key:"schedule",header:"Schedule",minWidth:"150px",render:e=>a.jsxs("div",{children:[a.jsx(i,{mono:!0,children:d(e)}),e.payload.cron&&p(e.payload.cron)&&a.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 block mt-0.5",children:p(e.payload.cron)}),e.payload.interval&&h(e.payload.interval)&&a.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 block mt-0.5",children:h(e.payload.interval)})]})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(m,{listType:"schedule",filterType:"statuses",children:e.payload.status})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>e.payload.duration?a.jsx(G,{ms:e.payload.duration}):a.jsx(i,{secondary:!0,children:"—"})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>{const M=(e.tags??[]).filter(o=>!O.includes(o.toLowerCase()));return a.jsx(J,{tags:M,max:3,onTagClick:(o,P)=>{P.stopPropagation(),n("tags",o)}})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(i,{secondary:!0,className:"text-xs",children:R(H(e.createdAt),{addSuffix:!0})})}],[n,d]);if(j&&l.length===0)return a.jsx("div",{className:"flex items-center justify-center h-64",role:"status","aria-label":"Loading...",children:a.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600"})});const F=y?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(W,{title:"Schedule",icon:c,iconColor:"text-gray-600 dark:text-gray-400",count:l.length,totalCount:r==null?void 0:r.total,refreshing:s,autoRefreshEnabled:b,live:w,onAutoRefreshToggle:E,filters:f,onClearAllFilters:x}),a.jsxs("div",{className:`${F} space-y-4 transition-all duration-200`,children:[a.jsx($,{count:C,onClick:v,loading:s}),a.jsx(K,{columns:D,data:l,keyExtractor:e=>e.id,onRowClick:e=>t(`/schedule/${e.id}`),rowClassName:e=>S(e.id)?"highlight-new":"",emptyMessage:"No scheduled tasks recorded yet",emptyIcon:a.jsx(c,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(I,{hasMore:N,onClick:T,loading:s})]})]})}export{ee as default};
@@ -1 +1 @@
1
- import{j as h}from"./index-DSn-BKqm.js";import{D as _}from"./DetailRow-C0vUMqsn.js";function J(x){function j(t,l){return t<<l|t>>>32-l}function i(t,l){const a=(t&65535)+(l&65535);return(t>>16)+(l>>16)+(a>>16)<<16|a&65535}function E(t,l,a){return t&l|~t&a}function R(t,l,a){return t&a|l&~a}function T(t,l,a){return t^l^a}function M(t,l,a){return l^(t|~a)}function c(t,l,a,f,p,S,g){return t=i(t,i(i(E(l,a,f),p),g)),i(j(t,S),l)}function d(t,l,a,f,p,S,g){return t=i(t,i(i(R(l,a,f),p),g)),i(j(t,S),l)}function m(t,l,a,f,p,S,g){return t=i(t,i(i(T(l,a,f),p),g)),i(j(t,S),l)}function u(t,l,a,f,p,S,g){return t=i(t,i(i(M(l,a,f),p),g)),i(j(t,S),l)}function q(t){const l=[],a=t.length,f=a+8,S=((f-f%64)/64+1)*16;for(let b=0;b<S;b++)l[b]=0;let g=0,N=0;for(;N<a;){const b=(N-N%4)/4;g=N%4*8,l[b]=l[b]|t.charCodeAt(N)<<g,N++}const $=(N-N%4)/4;return g=N%4*8,l[$]=l[$]|128<<g,l[S-2]=a<<3,l[S-1]=a>>>29,l}function v(t){let l="";for(let a=0;a<=3;a++){const f=t>>>a*8&255;l+=("0"+f.toString(16)).slice(-2)}return l}const s=q(x);let e=1732584193,n=4023233417,r=2562383102,o=271733878;const w=7,y=12,W=17,C=22,A=5,U=9,k=14,D=20,B=4,G=11,H=16,I=23,O=6,F=10,L=15,P=21;for(let t=0;t<s.length;t+=16){const l=e,a=n,f=r,p=o;e=c(e,n,r,o,s[t+0],w,3614090360),o=c(o,e,n,r,s[t+1],y,3905402710),r=c(r,o,e,n,s[t+2],W,606105819),n=c(n,r,o,e,s[t+3],C,3250441966),e=c(e,n,r,o,s[t+4],w,4118548399),o=c(o,e,n,r,s[t+5],y,1200080426),r=c(r,o,e,n,s[t+6],W,2821735955),n=c(n,r,o,e,s[t+7],C,4249261313),e=c(e,n,r,o,s[t+8],w,1770035416),o=c(o,e,n,r,s[t+9],y,2336552879),r=c(r,o,e,n,s[t+10],W,4294925233),n=c(n,r,o,e,s[t+11],C,2304563134),e=c(e,n,r,o,s[t+12],w,1804603682),o=c(o,e,n,r,s[t+13],y,4254626195),r=c(r,o,e,n,s[t+14],W,2792965006),n=c(n,r,o,e,s[t+15],C,1236535329),e=d(e,n,r,o,s[t+1],A,4129170786),o=d(o,e,n,r,s[t+6],U,3225465664),r=d(r,o,e,n,s[t+11],k,643717713),n=d(n,r,o,e,s[t+0],D,3921069994),e=d(e,n,r,o,s[t+5],A,3593408605),o=d(o,e,n,r,s[t+10],U,38016083),r=d(r,o,e,n,s[t+15],k,3634488961),n=d(n,r,o,e,s[t+4],D,3889429448),e=d(e,n,r,o,s[t+9],A,568446438),o=d(o,e,n,r,s[t+14],U,3275163606),r=d(r,o,e,n,s[t+3],k,4107603335),n=d(n,r,o,e,s[t+8],D,1163531501),e=d(e,n,r,o,s[t+13],A,2850285829),o=d(o,e,n,r,s[t+2],U,4243563512),r=d(r,o,e,n,s[t+7],k,1735328473),n=d(n,r,o,e,s[t+12],D,2368359562),e=m(e,n,r,o,s[t+5],B,4294588738),o=m(o,e,n,r,s[t+8],G,2272392833),r=m(r,o,e,n,s[t+11],H,1839030562),n=m(n,r,o,e,s[t+14],I,4259657740),e=m(e,n,r,o,s[t+1],B,2763975236),o=m(o,e,n,r,s[t+4],G,1272893353),r=m(r,o,e,n,s[t+7],H,4139469664),n=m(n,r,o,e,s[t+10],I,3200236656),e=m(e,n,r,o,s[t+13],B,681279174),o=m(o,e,n,r,s[t+0],G,3936430074),r=m(r,o,e,n,s[t+3],H,3572445317),n=m(n,r,o,e,s[t+6],I,76029189),e=m(e,n,r,o,s[t+9],B,3654602809),o=m(o,e,n,r,s[t+12],G,3873151461),r=m(r,o,e,n,s[t+15],H,530742520),n=m(n,r,o,e,s[t+2],I,3299628645),e=u(e,n,r,o,s[t+0],O,4096336452),o=u(o,e,n,r,s[t+7],F,1126891415),r=u(r,o,e,n,s[t+14],L,2878612391),n=u(n,r,o,e,s[t+5],P,4237533241),e=u(e,n,r,o,s[t+12],O,1700485571),o=u(o,e,n,r,s[t+3],F,2399980690),r=u(r,o,e,n,s[t+10],L,4293915773),n=u(n,r,o,e,s[t+1],P,2240044497),e=u(e,n,r,o,s[t+8],O,1873313359),o=u(o,e,n,r,s[t+15],F,4264355552),r=u(r,o,e,n,s[t+6],L,2734768916),n=u(n,r,o,e,s[t+13],P,1309151649),e=u(e,n,r,o,s[t+4],O,4149444226),o=u(o,e,n,r,s[t+11],F,3174756917),r=u(r,o,e,n,s[t+2],L,718787259),n=u(n,r,o,e,s[t+9],P,3951481745),e=i(e,l),n=i(n,a),r=i(r,f),o=i(o,p)}return v(e)+v(n)+v(r)+v(o)}function K(x,j=80){return`https://www.gravatar.com/avatar/${J(x.toLowerCase().trim())}?d=identicon&s=${j}`}function X({user:x}){const j=x.email?K(x.email):null;return h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:h.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Authenticated User"})}),h.jsx("div",{className:"p-4",children:h.jsxs("dl",{className:"divide-y-0",children:[h.jsx(_,{label:"ID",value:h.jsx("code",{className:"text-sm font-mono bg-gray-100 dark:bg-gray-800 px-2 py-0.5 rounded",children:String(x.id)})}),x.name&&h.jsx(_,{label:"Name",value:h.jsxs("span",{className:"flex items-center gap-2",children:[j&&h.jsx("img",{src:j,alt:x.name,className:"w-6 h-6 rounded-full"}),h.jsx("span",{children:x.name})]})}),x.email&&h.jsx(_,{label:"Email Address",value:h.jsx("a",{href:`mailto:${x.email}`,className:"text-indigo-600 dark:text-indigo-400 hover:underline",children:x.email})})]})})]})}export{X as U};
1
+ import{j as h}from"./index-f3yHnTBu.js";import{D as _}from"./DetailRow-CR50H99O.js";function J(x){function j(t,l){return t<<l|t>>>32-l}function i(t,l){const a=(t&65535)+(l&65535);return(t>>16)+(l>>16)+(a>>16)<<16|a&65535}function E(t,l,a){return t&l|~t&a}function R(t,l,a){return t&a|l&~a}function T(t,l,a){return t^l^a}function M(t,l,a){return l^(t|~a)}function c(t,l,a,f,p,S,g){return t=i(t,i(i(E(l,a,f),p),g)),i(j(t,S),l)}function d(t,l,a,f,p,S,g){return t=i(t,i(i(R(l,a,f),p),g)),i(j(t,S),l)}function m(t,l,a,f,p,S,g){return t=i(t,i(i(T(l,a,f),p),g)),i(j(t,S),l)}function u(t,l,a,f,p,S,g){return t=i(t,i(i(M(l,a,f),p),g)),i(j(t,S),l)}function q(t){const l=[],a=t.length,f=a+8,S=((f-f%64)/64+1)*16;for(let b=0;b<S;b++)l[b]=0;let g=0,N=0;for(;N<a;){const b=(N-N%4)/4;g=N%4*8,l[b]=l[b]|t.charCodeAt(N)<<g,N++}const $=(N-N%4)/4;return g=N%4*8,l[$]=l[$]|128<<g,l[S-2]=a<<3,l[S-1]=a>>>29,l}function v(t){let l="";for(let a=0;a<=3;a++){const f=t>>>a*8&255;l+=("0"+f.toString(16)).slice(-2)}return l}const s=q(x);let e=1732584193,n=4023233417,r=2562383102,o=271733878;const w=7,y=12,W=17,C=22,A=5,U=9,k=14,D=20,B=4,G=11,H=16,I=23,O=6,F=10,L=15,P=21;for(let t=0;t<s.length;t+=16){const l=e,a=n,f=r,p=o;e=c(e,n,r,o,s[t+0],w,3614090360),o=c(o,e,n,r,s[t+1],y,3905402710),r=c(r,o,e,n,s[t+2],W,606105819),n=c(n,r,o,e,s[t+3],C,3250441966),e=c(e,n,r,o,s[t+4],w,4118548399),o=c(o,e,n,r,s[t+5],y,1200080426),r=c(r,o,e,n,s[t+6],W,2821735955),n=c(n,r,o,e,s[t+7],C,4249261313),e=c(e,n,r,o,s[t+8],w,1770035416),o=c(o,e,n,r,s[t+9],y,2336552879),r=c(r,o,e,n,s[t+10],W,4294925233),n=c(n,r,o,e,s[t+11],C,2304563134),e=c(e,n,r,o,s[t+12],w,1804603682),o=c(o,e,n,r,s[t+13],y,4254626195),r=c(r,o,e,n,s[t+14],W,2792965006),n=c(n,r,o,e,s[t+15],C,1236535329),e=d(e,n,r,o,s[t+1],A,4129170786),o=d(o,e,n,r,s[t+6],U,3225465664),r=d(r,o,e,n,s[t+11],k,643717713),n=d(n,r,o,e,s[t+0],D,3921069994),e=d(e,n,r,o,s[t+5],A,3593408605),o=d(o,e,n,r,s[t+10],U,38016083),r=d(r,o,e,n,s[t+15],k,3634488961),n=d(n,r,o,e,s[t+4],D,3889429448),e=d(e,n,r,o,s[t+9],A,568446438),o=d(o,e,n,r,s[t+14],U,3275163606),r=d(r,o,e,n,s[t+3],k,4107603335),n=d(n,r,o,e,s[t+8],D,1163531501),e=d(e,n,r,o,s[t+13],A,2850285829),o=d(o,e,n,r,s[t+2],U,4243563512),r=d(r,o,e,n,s[t+7],k,1735328473),n=d(n,r,o,e,s[t+12],D,2368359562),e=m(e,n,r,o,s[t+5],B,4294588738),o=m(o,e,n,r,s[t+8],G,2272392833),r=m(r,o,e,n,s[t+11],H,1839030562),n=m(n,r,o,e,s[t+14],I,4259657740),e=m(e,n,r,o,s[t+1],B,2763975236),o=m(o,e,n,r,s[t+4],G,1272893353),r=m(r,o,e,n,s[t+7],H,4139469664),n=m(n,r,o,e,s[t+10],I,3200236656),e=m(e,n,r,o,s[t+13],B,681279174),o=m(o,e,n,r,s[t+0],G,3936430074),r=m(r,o,e,n,s[t+3],H,3572445317),n=m(n,r,o,e,s[t+6],I,76029189),e=m(e,n,r,o,s[t+9],B,3654602809),o=m(o,e,n,r,s[t+12],G,3873151461),r=m(r,o,e,n,s[t+15],H,530742520),n=m(n,r,o,e,s[t+2],I,3299628645),e=u(e,n,r,o,s[t+0],O,4096336452),o=u(o,e,n,r,s[t+7],F,1126891415),r=u(r,o,e,n,s[t+14],L,2878612391),n=u(n,r,o,e,s[t+5],P,4237533241),e=u(e,n,r,o,s[t+12],O,1700485571),o=u(o,e,n,r,s[t+3],F,2399980690),r=u(r,o,e,n,s[t+10],L,4293915773),n=u(n,r,o,e,s[t+1],P,2240044497),e=u(e,n,r,o,s[t+8],O,1873313359),o=u(o,e,n,r,s[t+15],F,4264355552),r=u(r,o,e,n,s[t+6],L,2734768916),n=u(n,r,o,e,s[t+13],P,1309151649),e=u(e,n,r,o,s[t+4],O,4149444226),o=u(o,e,n,r,s[t+11],F,3174756917),r=u(r,o,e,n,s[t+2],L,718787259),n=u(n,r,o,e,s[t+9],P,3951481745),e=i(e,l),n=i(n,a),r=i(r,f),o=i(o,p)}return v(e)+v(n)+v(r)+v(o)}function K(x,j=80){return`https://www.gravatar.com/avatar/${J(x.toLowerCase().trim())}?d=identicon&s=${j}`}function X({user:x}){const j=x.email?K(x.email):null;return h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700",children:h.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Authenticated User"})}),h.jsx("div",{className:"p-4",children:h.jsxs("dl",{className:"divide-y-0",children:[h.jsx(_,{label:"ID",value:h.jsx("code",{className:"text-sm font-mono bg-gray-100 dark:bg-gray-800 px-2 py-0.5 rounded",children:String(x.id)})}),x.name&&h.jsx(_,{label:"Name",value:h.jsxs("span",{className:"flex items-center gap-2",children:[j&&h.jsx("img",{src:j,alt:x.name,className:"w-6 h-6 rounded-full"}),h.jsx("span",{children:x.name})]})}),x.email&&h.jsx(_,{label:"Email Address",value:h.jsx("a",{href:`mailto:${x.email}`,className:"text-indigo-600 dark:text-indigo-400 hover:underline",children:x.email})})]})})]})}export{X as U};
@@ -1 +1 @@
1
- import{j as e,F as p,C as h}from"./index-DSn-BKqm.js";import{p as i,f as j}from"./badgeColors-DQ_P_DOX.js";import{D as s,f as g}from"./DetailRow-C0vUMqsn.js";import{C as c}from"./types-Rt2vyU68.js";import{u as b,C as f,T as N}from"./EntryDetailPage-CIQyW46e.js";import{C as u}from"./CopyButton-CVcLaHry.js";import{E as o}from"./eye-RDdYWiOL.js";import{C as y}from"./circle-check-big-pHbbgVmy.js";import{C as x}from"./circle-x-CBdlQncP.js";import"./vendor-DBTT3jXp.js";import"./search-BZHB1sYK.js";function M({entry:n}){const{payload:a,createdAt:d}=n,r=b(),t=a.status==="rendered"?{icon:y,color:"text-green-500",bg:"bg-green-100 dark:bg-green-900/30"}:{icon:x,color:"text-red-500",bg:"bg-red-100 dark:bg-red-900/30"},m=t.icon,l=[];return a.locals!==void 0&&l.push({id:"locals",label:"Locals",content:e.jsx(f,{data:a.locals,toolbarState:r.state,searchBar:r.SearchBar,maxHeight:400})}),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(o,{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 font-mono",children:a.template}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"View Render"})]})]}),e.jsx(u,{text:a.template,label:"Copy template"})]})}),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(p,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Format"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white font-mono",children:a.format||"HTML"})]}),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(m,{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(h,{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(o,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Cache"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:a.cacheHit?"Yes":"No"})]})]})]}),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:[g(i(d),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",j(i(d),{addSuffix:!0}),")"]})]})}),e.jsx(s,{label:"Template",value:e.jsx("code",{className:"text-sm font-mono text-gray-900 dark:text-white",children:a.template})}),a.format&&e.jsx(s,{label:"Format",value:e.jsx(c,{listType:"views",filterType:"formats",filterValue:a.format,children:a.format})}),e.jsx(s,{label:"Status",value:e.jsx(c,{listType:"views",filterType:"statuses",filterValue:a.status,children:a.status.toUpperCase()})}),e.jsx(s,{label:"Duration",value:`${a.duration}ms`}),a.cacheHit!==void 0&&e.jsx(s,{label:"Cached",value:a.cacheHit?"Yes":"No"}),a.dataSize!==void 0&&e.jsx(s,{label:"Data Size",value:`${a.dataSize} bytes`}),a.outputSize!==void 0&&e.jsx(s,{label:"Output Size",value:`${a.outputSize} bytes`})]})})]}),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(x,{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})})]}),l.length>0&&e.jsx(N,{tabs:l,defaultTab:"locals",hashKey:"view",headerRight:a.locals!==void 0?e.jsx(r.Toolbar,{data:a.locals}):void 0})]})}export{M as default};
1
+ import{j as e,F as p,C as h}from"./index-f3yHnTBu.js";import{p as i,f as j}from"./badgeColors-DQ_P_DOX.js";import{D as s,f as g}from"./DetailRow-CR50H99O.js";import{C as c}from"./types-DZrHs5Iv.js";import{u as b,C as f,T as N}from"./EntryDetailPage-jW_ZykXS.js";import{C as u}from"./CopyButton-DkKluR16.js";import{E as o}from"./eye-BEruVuaB.js";import{C as y}from"./circle-check-big-ebbAguBz.js";import{C as x}from"./circle-x-CJZEsYDL.js";import"./vendor-DBTT3jXp.js";import"./search-B0XZ1Fr6.js";function M({entry:n}){const{payload:a,createdAt:d}=n,r=b(),t=a.status==="rendered"?{icon:y,color:"text-green-500",bg:"bg-green-100 dark:bg-green-900/30"}:{icon:x,color:"text-red-500",bg:"bg-red-100 dark:bg-red-900/30"},m=t.icon,l=[];return a.locals!==void 0&&l.push({id:"locals",label:"Locals",content:e.jsx(f,{data:a.locals,toolbarState:r.state,searchBar:r.SearchBar,maxHeight:400})}),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(o,{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 font-mono",children:a.template}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"View Render"})]})]}),e.jsx(u,{text:a.template,label:"Copy template"})]})}),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(p,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Format"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white font-mono",children:a.format||"HTML"})]}),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(m,{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(h,{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(o,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Cache"})]}),e.jsx("p",{className:"text-lg font-bold text-gray-900 dark:text-white",children:a.cacheHit?"Yes":"No"})]})]})]}),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:[g(i(d),"MMMM do yyyy, h:mm:ss a")," ",e.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:["(",j(i(d),{addSuffix:!0}),")"]})]})}),e.jsx(s,{label:"Template",value:e.jsx("code",{className:"text-sm font-mono text-gray-900 dark:text-white",children:a.template})}),a.format&&e.jsx(s,{label:"Format",value:e.jsx(c,{listType:"views",filterType:"formats",filterValue:a.format,children:a.format})}),e.jsx(s,{label:"Status",value:e.jsx(c,{listType:"views",filterType:"statuses",filterValue:a.status,children:a.status.toUpperCase()})}),e.jsx(s,{label:"Duration",value:`${a.duration}ms`}),a.cacheHit!==void 0&&e.jsx(s,{label:"Cached",value:a.cacheHit?"Yes":"No"}),a.dataSize!==void 0&&e.jsx(s,{label:"Data Size",value:`${a.dataSize} bytes`}),a.outputSize!==void 0&&e.jsx(s,{label:"Output Size",value:`${a.outputSize} bytes`})]})})]}),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(x,{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})})]}),l.length>0&&e.jsx(N,{tabs:l,defaultTab:"locals",hashKey:"view",headerRight:a.locals!==void 0?e.jsx(r.Toolbar,{data:a.locals}):void 0})]})}export{M as default};
@@ -1 +1 @@
1
- import{j as t}from"./index-DSn-BKqm.js";import{e as P,b as T}from"./vendor-DBTT3jXp.js";import{f as D,p as A}from"./badgeColors-DQ_P_DOX.js";import{u as M,P as R,N as H,L as B}from"./PageHeader-D5AT-Mxc.js";import{u as L,n as V,C as l}from"./types-Rt2vyU68.js";import{T as r,D as S,b as W}from"./DataTable-DBtrADsk.js";import{E as d}from"./eye-RDdYWiOL.js";function J(){const c=P(),{addFilter:s,clearAll:h,serverFilters:m,headerFilters:u,hasFilters:p}=L("views"),{entries:x,loading:g,refreshing:i,newEntriesCount:f,hasMore:y,loadMore:w,loadNew:j,autoRefreshEnabled:C,live:k,setAutoRefresh:N,meta:o,isHighlighted:v}=M({type:"view",limit:50,filters:m}),n=x.filter(e=>V(e)),E=T.useMemo(()=>[{key:"template",header:"Template",minWidth:"250px",render:e=>t.jsx(r,{mono:!0,truncate:!0,maxWidth:"350px",children:e.payload.template})},{key:"format",header:"Format",width:"100px",render:e=>{const a=e.payload.format;return a?t.jsx(l,{onClick:F=>{F.stopPropagation(),s("formats",a)},className:"font-mono",children:a}):t.jsx(r,{secondary:!0,children:"-"})}},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(S,{ms:e.payload.duration||0})},{key:"status",header:"Status",width:"100px",render:e=>t.jsx(l,{onClick:a=>{a.stopPropagation(),s("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"cache",header:"Cache",width:"80px",align:"center",render:e=>e.payload.cacheHit!==void 0?t.jsx(r,{children:e.payload.cacheHit?"Yes":"No"}):t.jsx(r,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(r,{secondary:!0,className:"text-xs",children:D(A(e.createdAt),{addSuffix:!0})})}],[s]);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 b=p?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(R,{title:"Views",icon:d,iconColor:"text-teal-600 dark:text-teal-400",count:n.length,totalCount:o==null?void 0:o.total,refreshing:i,autoRefreshEnabled:C,live:k,onAutoRefreshToggle:N,filters:u,onClearAllFilters:h}),t.jsxs("div",{className:`${b} space-y-4 transition-all duration-200`,children:[t.jsx(H,{count:f,onClick:j,loading:i}),t.jsx(W,{columns:E,data:n,keyExtractor:e=>e.id,onRowClick:e=>c(`/views/${e.id}`),rowClassName:e=>v(e.id)?"highlight-new":"",emptyMessage:"No view renders recorded yet",emptyIcon:t.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(B,{hasMore:y,onClick:w,loading:i})]})]})}export{J as default};
1
+ import{j as t}from"./index-f3yHnTBu.js";import{e as P,b as T}from"./vendor-DBTT3jXp.js";import{f as D,p as A}from"./badgeColors-DQ_P_DOX.js";import{u as M,P as R,N as H,L as B}from"./PageHeader-Ce9Hbh0m.js";import{u as L,n as V,C as l}from"./types-DZrHs5Iv.js";import{T as r,D as S,b as W}from"./DataTable-CQVsrmrF.js";import{E as d}from"./eye-BEruVuaB.js";function J(){const c=P(),{addFilter:s,clearAll:h,serverFilters:m,headerFilters:u,hasFilters:p}=L("views"),{entries:x,loading:g,refreshing:i,newEntriesCount:f,hasMore:y,loadMore:w,loadNew:j,autoRefreshEnabled:C,live:k,setAutoRefresh:N,meta:o,isHighlighted:v}=M({type:"view",limit:50,filters:m}),n=x.filter(e=>V(e)),E=T.useMemo(()=>[{key:"template",header:"Template",minWidth:"250px",render:e=>t.jsx(r,{mono:!0,truncate:!0,maxWidth:"350px",children:e.payload.template})},{key:"format",header:"Format",width:"100px",render:e=>{const a=e.payload.format;return a?t.jsx(l,{onClick:F=>{F.stopPropagation(),s("formats",a)},className:"font-mono",children:a}):t.jsx(r,{secondary:!0,children:"-"})}},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(S,{ms:e.payload.duration||0})},{key:"status",header:"Status",width:"100px",render:e=>t.jsx(l,{onClick:a=>{a.stopPropagation(),s("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"cache",header:"Cache",width:"80px",align:"center",render:e=>e.payload.cacheHit!==void 0?t.jsx(r,{children:e.payload.cacheHit?"Yes":"No"}):t.jsx(r,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(r,{secondary:!0,className:"text-xs",children:D(A(e.createdAt),{addSuffix:!0})})}],[s]);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 b=p?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(R,{title:"Views",icon:d,iconColor:"text-teal-600 dark:text-teal-400",count:n.length,totalCount:o==null?void 0:o.total,refreshing:i,autoRefreshEnabled:C,live:k,onAutoRefreshToggle:N,filters:u,onClearAllFilters:h}),t.jsxs("div",{className:`${b} space-y-4 transition-all duration-200`,children:[t.jsx(H,{count:f,onClick:j,loading:i}),t.jsx(W,{columns:E,data:n,keyExtractor:e=>e.id,onRowClick:e=>c(`/views/${e.id}`),rowClassName:e=>v(e.id)?"highlight-new":"",emptyMessage:"No view renders recorded yet",emptyIcon:t.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(B,{hasMore:y,onClick:w,loading:i})]})]})}export{J as default};
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-DSn-BKqm.js";/**
1
+ import{c as e}from"./index-f3yHnTBu.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 e}from"./index-DSn-BKqm.js";/**
1
+ import{c as e}from"./index-f3yHnTBu.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}from"./index-DSn-BKqm.js";/**
1
+ import{c}from"./index-f3yHnTBu.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}from"./index-DSn-BKqm.js";/**
1
+ import{c}from"./index-f3yHnTBu.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}from"./index-DSn-BKqm.js";/**
1
+ import{c}from"./index-f3yHnTBu.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.