nestlens 0.6.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/dist/api/api.controller.d.ts +32 -21
- package/dist/api/api.controller.d.ts.map +1 -1
- package/dist/api/api.controller.js +74 -42
- package/dist/api/api.controller.js.map +1 -1
- package/dist/api/api.guard.d.ts.map +1 -1
- package/dist/api/api.guard.js +2 -3
- package/dist/api/api.guard.js.map +1 -1
- package/dist/api/dashboard.controller.d.ts +48 -48
- package/dist/api/dashboard.controller.d.ts.map +1 -1
- package/dist/api/dashboard.controller.js +117 -388
- package/dist/api/dashboard.controller.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/interceptors/api-response.interceptor.d.ts +36 -5
- package/dist/api/interceptors/api-response.interceptor.d.ts.map +1 -1
- package/dist/api/interceptors/api-response.interceptor.js +91 -35
- package/dist/api/interceptors/api-response.interceptor.js.map +1 -1
- package/dist/api/route-path.d.ts +17 -0
- package/dist/api/route-path.d.ts.map +1 -1
- package/dist/api/route-path.js +39 -1
- package/dist/api/route-path.js.map +1 -1
- package/dist/api/stream.controller.d.ts +23 -0
- package/dist/api/stream.controller.d.ts.map +1 -0
- package/dist/api/stream.controller.js +49 -0
- package/dist/api/stream.controller.js.map +1 -0
- package/dist/api/tag.controller.d.ts +14 -8
- package/dist/api/tag.controller.d.ts.map +1 -1
- package/dist/api/tag.controller.js +30 -16
- package/dist/api/tag.controller.js.map +1 -1
- package/dist/core/alerting.service.d.ts +28 -0
- package/dist/core/alerting.service.d.ts.map +1 -0
- package/dist/core/alerting.service.js +157 -0
- package/dist/core/alerting.service.js.map +1 -0
- package/dist/core/collector.service.d.ts +5 -0
- package/dist/core/collector.service.d.ts.map +1 -1
- package/dist/core/collector.service.js +18 -0
- package/dist/core/collector.service.js.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/storage/memory.storage.d.ts.map +1 -1
- package/dist/core/storage/memory.storage.js +8 -2
- package/dist/core/storage/memory.storage.js.map +1 -1
- package/dist/core/storage/sqlite.storage.d.ts.map +1 -1
- package/dist/core/storage/sqlite.storage.js +2 -1
- package/dist/core/storage/sqlite.storage.js.map +1 -1
- package/dist/core/storage/storage.factory.d.ts.map +1 -1
- package/dist/core/storage/storage.factory.js +1 -9
- package/dist/core/storage/storage.factory.js.map +1 -1
- package/dist/dashboard/public/assets/BatchesPage-BJDy-xXl.js +1 -0
- package/dist/dashboard/public/assets/CachePage-BvY80nG3.js +1 -0
- package/dist/dashboard/public/assets/{ClickableBadge-DunmLagw.js → ClickableBadge-Zcm2Hht1.js} +1 -1
- package/dist/dashboard/public/assets/CommandsPage-C3YUuDCa.js +1 -0
- package/dist/dashboard/public/assets/{DashboardPage-CuixGor9.js → DashboardPage-CaY3mt6g.js} +1 -1
- package/dist/dashboard/public/assets/DumpsPage-D-Tv8zej.js +1 -0
- package/dist/dashboard/public/assets/{EntryDetailPage-TwJzsmnP.js → EntryDetailPage-Cwzoo2Fy.js} +1 -1
- package/dist/dashboard/public/assets/{EntrySearchInput-DsfSD1B7.js → EntrySearchInput-BQQuQzXa.js} +1 -1
- package/dist/dashboard/public/assets/EventsPage-1jQe82bw.js +1 -0
- package/dist/dashboard/public/assets/ExceptionsPage-DpNWxLPW.js +6 -0
- package/dist/dashboard/public/assets/GatesPage-DVAtfGG-.js +1 -0
- package/dist/dashboard/public/assets/GraphQLPage-CmZ2T7SB.js +6 -0
- package/dist/dashboard/public/assets/HttpClientPage-Du3ZCQdp.js +1 -0
- package/dist/dashboard/public/assets/JobsPage-BIQu2Lx7.js +1 -0
- package/dist/dashboard/public/assets/LogsPage-Bb1jyw2C.js +1 -0
- package/dist/dashboard/public/assets/MailPage-2046Tm8X.js +1 -0
- package/dist/dashboard/public/assets/ModelsPage-BrrXySVL.js +1 -0
- package/dist/dashboard/public/assets/NotificationsPage-BXqp_07K.js +1 -0
- package/dist/dashboard/public/assets/PageHeader-DsfMo-zP.js +1 -0
- package/dist/dashboard/public/assets/QueriesPage-B6mdWo6I.js +1 -0
- package/dist/dashboard/public/assets/RedisPage-DsgnDSog.js +1 -0
- package/dist/dashboard/public/assets/RequestsPage-B2nF6z8Q.js +1 -0
- package/dist/dashboard/public/assets/SchedulePage-OYr4GzKn.js +1 -0
- package/dist/dashboard/public/assets/ViewsPage-B0z3-NcY.js +1 -0
- package/dist/dashboard/public/assets/{calendar-B9euAgs1.js → calendar-DMtqkxWx.js} +1 -1
- package/dist/dashboard/public/assets/{circle-check-big-Bm23VoNA.js → circle-check-big-DmgFAGB6.js} +1 -1
- package/dist/dashboard/public/assets/{eye-DS4RYm3R.js → eye-DwFnSS3m.js} +1 -1
- package/dist/dashboard/public/assets/{index-D58YLNAD.js → index-Bkm-U-a1.js} +2 -2
- package/dist/dashboard/public/assets/{search-vJ4NBU4p.js → search-TRKx7PB0.js} +1 -1
- package/dist/dashboard/public/assets/{types-BZxcW_0v.js → types-DATk4Zqu.js} +1 -1
- package/dist/dashboard/public/assets/{zap-kW6u59JH.js → zap-Bkrj4w0N.js} +1 -1
- package/dist/dashboard/public/index.html +1 -1
- package/dist/nestlens.config.d.ts +50 -12
- package/dist/nestlens.config.d.ts.map +1 -1
- package/dist/nestlens.config.js +1 -5
- package/dist/nestlens.config.js.map +1 -1
- package/dist/nestlens.module.d.ts +2 -2
- package/dist/nestlens.module.d.ts.map +1 -1
- package/dist/nestlens.module.js +14 -3
- package/dist/nestlens.module.js.map +1 -1
- package/dist/watchers/batch.watcher.d.ts +1 -3
- package/dist/watchers/batch.watcher.d.ts.map +1 -1
- package/dist/watchers/batch.watcher.js +9 -3
- package/dist/watchers/batch.watcher.js.map +1 -1
- package/dist/watchers/cache.watcher.d.ts +12 -2
- package/dist/watchers/cache.watcher.d.ts.map +1 -1
- package/dist/watchers/cache.watcher.js.map +1 -1
- package/dist/watchers/command.watcher.d.ts +5 -2
- package/dist/watchers/command.watcher.d.ts.map +1 -1
- package/dist/watchers/command.watcher.js.map +1 -1
- package/dist/watchers/dump.watcher.d.ts +1 -3
- package/dist/watchers/dump.watcher.d.ts.map +1 -1
- package/dist/watchers/dump.watcher.js +9 -3
- package/dist/watchers/dump.watcher.js.map +1 -1
- package/dist/watchers/event.watcher.d.ts +1 -3
- package/dist/watchers/event.watcher.d.ts.map +1 -1
- package/dist/watchers/event.watcher.js +12 -5
- package/dist/watchers/event.watcher.js.map +1 -1
- package/dist/watchers/gate.watcher.d.ts +1 -3
- package/dist/watchers/gate.watcher.d.ts.map +1 -1
- package/dist/watchers/gate.watcher.js +9 -3
- package/dist/watchers/gate.watcher.js.map +1 -1
- package/dist/watchers/http-client.watcher.d.ts +2 -4
- package/dist/watchers/http-client.watcher.d.ts.map +1 -1
- package/dist/watchers/http-client.watcher.js +19 -21
- package/dist/watchers/http-client.watcher.js.map +1 -1
- package/dist/watchers/job.watcher.d.ts +3 -6
- package/dist/watchers/job.watcher.d.ts.map +1 -1
- package/dist/watchers/job.watcher.js +25 -15
- package/dist/watchers/job.watcher.js.map +1 -1
- package/dist/watchers/mail.watcher.d.ts +2 -4
- package/dist/watchers/mail.watcher.d.ts.map +1 -1
- package/dist/watchers/mail.watcher.js +9 -7
- package/dist/watchers/mail.watcher.js.map +1 -1
- package/dist/watchers/model.watcher.d.ts +2 -4
- package/dist/watchers/model.watcher.d.ts.map +1 -1
- package/dist/watchers/model.watcher.js +28 -24
- package/dist/watchers/model.watcher.js.map +1 -1
- package/dist/watchers/notification.watcher.d.ts +1 -3
- package/dist/watchers/notification.watcher.d.ts.map +1 -1
- package/dist/watchers/notification.watcher.js +9 -3
- package/dist/watchers/notification.watcher.js.map +1 -1
- package/dist/watchers/redis.watcher.d.ts +1 -3
- package/dist/watchers/redis.watcher.d.ts.map +1 -1
- package/dist/watchers/redis.watcher.js +9 -3
- package/dist/watchers/redis.watcher.js.map +1 -1
- package/dist/watchers/schedule.watcher.d.ts +13 -0
- package/dist/watchers/schedule.watcher.d.ts.map +1 -1
- package/dist/watchers/schedule.watcher.js +64 -39
- package/dist/watchers/schedule.watcher.js.map +1 -1
- package/dist/watchers/view.watcher.d.ts +10 -2
- package/dist/watchers/view.watcher.d.ts.map +1 -1
- package/dist/watchers/view.watcher.js.map +1 -1
- package/package.json +1 -1
- package/dist/dashboard/public/assets/BatchesPage-CFYsf8Ol.js +0 -1
- package/dist/dashboard/public/assets/CachePage-BiNlUfxM.js +0 -1
- package/dist/dashboard/public/assets/CommandsPage-BvsFz4_q.js +0 -1
- package/dist/dashboard/public/assets/DumpsPage-COL5DG-S.js +0 -1
- package/dist/dashboard/public/assets/EventsPage-Dm_vJf5W.js +0 -1
- package/dist/dashboard/public/assets/ExceptionsPage-CeQ7WsoQ.js +0 -6
- package/dist/dashboard/public/assets/GatesPage-ecYT5TEf.js +0 -1
- package/dist/dashboard/public/assets/GraphQLPage-BvQAWfJl.js +0 -6
- package/dist/dashboard/public/assets/HttpClientPage-xFXh6gAE.js +0 -1
- package/dist/dashboard/public/assets/JobsPage-BQnQ0P0x.js +0 -1
- package/dist/dashboard/public/assets/LogsPage-BkzfQ8wx.js +0 -1
- package/dist/dashboard/public/assets/MailPage-Di-CPCs6.js +0 -1
- package/dist/dashboard/public/assets/ModelsPage-DNnIoCyY.js +0 -1
- package/dist/dashboard/public/assets/NotificationsPage-B3is550p.js +0 -1
- package/dist/dashboard/public/assets/PageHeader-CPlbuzvY.js +0 -1
- package/dist/dashboard/public/assets/QueriesPage-BKKZ-VpA.js +0 -1
- package/dist/dashboard/public/assets/RedisPage-CoQO7AcA.js +0 -1
- package/dist/dashboard/public/assets/RequestsPage-N1UviYx0.js +0 -1
- package/dist/dashboard/public/assets/SchedulePage-Cu0qPZRW.js +0 -1
- package/dist/dashboard/public/assets/ViewsPage-Cgc6oKI-.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,L as d}from"./index-D58YLNAD.js";import{e as B,b as D}from"./vendor-B2nVRih0.js";import{u as F,C as c,f as M,p as T}from"./ClickableBadge-DunmLagw.js";import{u as A,P as L,N as R,L as $}from"./PageHeader-CPlbuzvY.js";import{s as I,T as s,D as H,b as S}from"./types-BZxcW_0v.js";function G(){const h=B(),{addFilter:r,clearAll:p,serverFilters:u,headerFilters:x,hasFilters:m}=F("batches"),{entries:g,loading:y,refreshing:o,newEntriesCount:f,hasMore:j,loadMore:b,loadNew:k,autoRefreshEnabled:C,setAutoRefresh:N,meta:i,isHighlighted:w}=A({type:"batch",limit:50,filters:u}),n=g.filter(e=>I(e)),E=D.useMemo(()=>[{key:"name",header:"Name",minWidth:"200px",render:e=>a.jsx(s,{mono:!0,truncate:!0,maxWidth:"250px",children:e.payload.name})},{key:"operation",header:"Operation",width:"150px",render:e=>e.payload.operation?a.jsx(c,{onClick:t=>{t.stopPropagation(),r("operations",e.payload.operation)},children:e.payload.operation}):a.jsx(s,{secondary:!0,children:"-"})},{key:"progress",header:"Progress",width:"150px",render:e=>{const{processedItems:t,totalItems:l}=e.payload,P=l>0?Math.round(t/l*100):0;return a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(s,{children:`${t}/${l}`}),a.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:["(",P,"%)"]})]})}},{key:"status",header:"Status",width:"120px",render:e=>a.jsx(c,{onClick:t=>{t.stopPropagation(),r("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>e.payload.duration?a.jsx(H,{ms:e.payload.duration}):a.jsx(s,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(s,{secondary:!0,className:"text-xs",children:M(T(e.createdAt),{addSuffix:!0})})}],[r]);if(y&&n.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 v=m?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(L,{title:"Batches",icon:d,iconColor:"text-blue-600 dark:text-blue-400",count:n.length,totalCount:i==null?void 0:i.total,refreshing:o,autoRefreshEnabled:C,onAutoRefreshToggle:N,filters:x,onClearAllFilters:p}),a.jsxs("div",{className:`${v} space-y-4 transition-all duration-200`,children:[a.jsx(R,{count:f,onClick:k,loading:o}),a.jsx(S,{columns:E,data:n,keyExtractor:e=>e.id,onRowClick:e=>h(`/batches/${e.id}`),rowClassName:e=>w(e.id)?"highlight-new":"",emptyMessage:"No batch operations recorded yet",emptyIcon:a.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx($,{hasMore:j,onClick:b,loading:o})]})]})}export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,H as o}from"./index-D58YLNAD.js";import{e as b,b as T}from"./vendor-B2nVRih0.js";import{u as E,C as n,f as v,p as D}from"./ClickableBadge-DunmLagw.js";import{u as M,P as R,N as A,L as F}from"./PageHeader-CPlbuzvY.js";import{h as H,T as i,D as P,b as B}from"./types-BZxcW_0v.js";function K(){const l=b(),{clearAll:d,serverFilters:c,headerFilters:h,hasFilters:p}=E("cache"),{entries:u,loading:x,refreshing:t,newEntriesCount:y,hasMore:m,loadMore:g,loadNew:f,autoRefreshEnabled:j,setAutoRefresh:k,meta:r,isHighlighted:C}=M({type:"cache",limit:50,filters:c}),s=u.filter(e=>H(e)),w=T.useMemo(()=>[{key:"operation",header:"Operation",width:"100px",render:e=>a.jsx(n,{listType:"cache",filterType:"operations",children:e.payload.operation})},{key:"key",header:"Key",minWidth:"200px",render:e=>a.jsx(i,{mono:!0,truncate:!0,maxWidth:"400px",children:e.payload.key.length>50?e.payload.key.substring(0,50)+"...":e.payload.key})},{key:"result",header:"Result",width:"80px",align:"center",render:e=>e.payload.operation==="get"?a.jsx(n,{listType:"cache",filterType:"tags",filterValue:e.payload.hit?"hit":"miss",children:e.payload.hit?"HIT":"MISS"}):a.jsx(i,{secondary:!0,children:"—"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(P,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(i,{secondary:!0,className:"text-xs",children:v(D(e.createdAt),{addSuffix:!0})})}],[]);if(x&&s.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 N=p?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(R,{title:"Cache",icon:o,iconColor:"text-cyan-600 dark:text-cyan-400",count:s.length,totalCount:r==null?void 0:r.total,refreshing:t,autoRefreshEnabled:j,onAutoRefreshToggle:k,filters:h,onClearAllFilters:d}),a.jsxs("div",{className:`${N} space-y-4 transition-all duration-200`,children:[a.jsx(A,{count:y,onClick:f,loading:t}),a.jsx(B,{columns:w,data:s,keyExtractor:e=>e.id,onRowClick:e=>l(`/cache/${e.id}`),rowClassName:e=>C(e.id)?"highlight-new":"",emptyMessage:"No cache operations recorded yet",emptyIcon:a.jsx(o,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(F,{hasMore:m,onClick:g,loading:t})]})]})}export{K as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,a as d}from"./index-D58YLNAD.js";import{e as v,b as P}from"./vendor-B2nVRih0.js";import{u as T,C as l,f as D,p as F}from"./ClickableBadge-DunmLagw.js";import{u as A,P as M,N as R,L as B}from"./PageHeader-CPlbuzvY.js";import{q as H,T as i,D as L,b as W}from"./types-BZxcW_0v.js";function z(){const m=v(),{addFilter:t,clearAll:c,serverFilters:u,headerFilters:h,hasFilters:p}=T("commands"),{entries:x,loading:g,refreshing:r,newEntriesCount:f,hasMore:y,loadMore:C,loadNew:j,autoRefreshEnabled:k,setAutoRefresh:N,meta:s,isHighlighted:w}=A({type:"command",limit:50,filters:u}),n=x.filter(e=>H(e)),b=P.useMemo(()=>[{key:"name",header:"Command",minWidth:"250px",render:e=>a.jsx(l,{onClick:o=>{o.stopPropagation(),t("names",e.payload.name)},className:"font-mono",children:e.payload.name})},{key:"handler",header:"Handler",minWidth:"200px",render:e=>e.payload.handler?a.jsx(i,{mono:!0,truncate:!0,maxWidth:"250px",children:e.payload.handler}):a.jsx(i,{secondary:!0,children:"-"})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(l,{onClick:o=>{o.stopPropagation(),t("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(L,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(i,{secondary:!0,className:"text-xs",children:D(F(e.createdAt),{addSuffix:!0})})}],[t]);if(g&&n.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 E=p?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(M,{title:"Commands",icon:d,iconColor:"text-green-600 dark:text-green-400",count:n.length,totalCount:s==null?void 0:s.total,refreshing:r,autoRefreshEnabled:k,onAutoRefreshToggle:N,filters:h,onClearAllFilters:c}),a.jsxs("div",{className:`${E} space-y-4 transition-all duration-200`,children:[a.jsx(R,{count:f,onClick:j,loading:r}),a.jsx(W,{columns:b,data:n,keyExtractor:e=>e.id,onRowClick:e=>m(`/commands/${e.id}`),rowClassName:e=>w(e.id)?"highlight-new":"",emptyMessage:"No commands recorded yet",emptyIcon:a.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(B,{hasMore:y,onClick:C,loading:r})]})]})}export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,H as l}from"./index-D58YLNAD.js";import{e as v,b as P}from"./vendor-B2nVRih0.js";import{u as B,C as d,f as M,p as R}from"./ClickableBadge-DunmLagw.js";import{u as S,P as T,N as $,L as A}from"./PageHeader-CPlbuzvY.js";import{t as z,T as o,D as H,b as L}from"./types-BZxcW_0v.js";function O(){const p=v(),{addFilter:r,clearAll:u,serverFilters:c,headerFilters:h,hasFilters:m}=B("dumps"),{entries:x,loading:g,refreshing:s,newEntriesCount:f,hasMore:j,loadMore:y,loadNew:C,autoRefreshEnabled:k,setAutoRefresh:w,meta:i,isHighlighted:N}=S({type:"dump",limit:50,filters:c}),n=x.filter(e=>z(e)),D=e=>e?e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)}MB`:`${(e/(1024*1024*1024)).toFixed(1)}GB`:"-",E=P.useMemo(()=>[{key:"operation",header:"Operation",width:"120px",render:e=>a.jsx(d,{onClick:t=>{t.stopPropagation(),r("operations",e.payload.operation)},children:e.payload.operation.toUpperCase()})},{key:"format",header:"Format",width:"100px",render:e=>a.jsx(d,{onClick:t=>{t.stopPropagation(),r("formats",e.payload.format)},className:"font-mono",children:e.payload.format})},{key:"records",header:"Records",width:"100px",align:"right",render:e=>e.payload.recordCount!==void 0?a.jsx(o,{children:e.payload.recordCount.toLocaleString()}):a.jsx(o,{secondary:!0,children:"-"})},{key:"size",header:"Size",width:"100px",align:"right",render:e=>a.jsx(o,{children:D(e.payload.fileSize)})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(d,{onClick:t=>{t.stopPropagation(),r("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(H,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(o,{secondary:!0,className:"text-xs",children:M(R(e.createdAt),{addSuffix:!0})})}],[r]);if(g&&n.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=m?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(T,{title:"Dumps",icon:l,iconColor:"text-slate-600 dark:text-slate-400",count:n.length,totalCount:i==null?void 0:i.total,refreshing:s,autoRefreshEnabled:k,onAutoRefreshToggle:w,filters:h,onClearAllFilters:u}),a.jsxs("div",{className:`${F} space-y-4 transition-all duration-200`,children:[a.jsx($,{count:f,onClick:C,loading:s}),a.jsx(L,{columns:E,data:n,keyExtractor:e=>e.id,onRowClick:e=>p(`/dumps/${e.id}`),rowClassName:e=>N(e.id)?"highlight-new":"",emptyMessage:"No data dumps recorded yet",emptyIcon:a.jsx(l,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(A,{hasMore:j,onClick:y,loading:s})]})]})}export{O as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,R as i}from"./index-D58YLNAD.js";import{e as w,b}from"./vendor-B2nVRih0.js";import{u as R,C as D,f as F,p as P}from"./ClickableBadge-DunmLagw.js";import{u as T,P as A,N as M,L}from"./PageHeader-CPlbuzvY.js";import{f as B,T as o,D as H,b as $}from"./types-BZxcW_0v.js";function G(){const l=w(),{addFilter:n,clearAll:d,serverFilters:c,headerFilters:m,hasFilters:h}=R("events"),{entries:u,loading:g,refreshing:a,newEntriesCount:x,hasMore:p,loadMore:f,loadNew:y,autoRefreshEnabled:j,setAutoRefresh:v,meta:s,isHighlighted:C}=T({type:"event",limit:50,filters:c}),r=u.filter(e=>B(e)),E=b.useMemo(()=>[{key:"event",header:"Event",minWidth:"200px",render:e=>t.jsx(D,{onClick:k=>{k.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(H,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(o,{secondary:!0,className:"text-xs",children:F(P(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 N=h?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(A,{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:j,onAutoRefreshToggle:v,filters:m,onClearAllFilters:d}),t.jsxs("div",{className:`${N} space-y-4 transition-all duration-200`,children:[t.jsx(M,{count:x,onClick:y,loading:a}),t.jsx($,{columns:E,data:r,keyExtractor:e=>e.id,onRowClick:e=>l(`/events/${e.id}`),rowClassName:e=>C(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(L,{hasMore:p,onClick:f,loading:a})]})]})}export{G as default};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{c as q,u as B,j as t,i as W,T as m,n as $,o as H}from"./index-D58YLNAD.js";import{e as U,b as c}from"./vendor-B2nVRih0.js";import{u as z,C as p,f as G,p as J}from"./ClickableBadge-DunmLagw.js";import{u as K,P as O,F as Q,N as V,L as X}from"./PageHeader-CPlbuzvY.js";import{E as Y}from"./EntrySearchInput-DsfSD1B7.js";import{d as Z,T as r,b as _}from"./types-BZxcW_0v.js";import{C as ee}from"./circle-check-big-Bm23VoNA.js";import"./search-vJ4NBU4p.js";/**
|
|
2
|
-
* @license lucide-react v0.468.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const te=q("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function ce(){const g=U(),[o,f]=c.useState("all"),[l,h]=c.useState(null),{refreshStats:y}=B(),{clearAll:v,serverFilters:j,headerFilters:b,hasFilters:C}=z("exceptions"),w={...j,resolved:o==="all"?void 0:o==="resolved"},{entries:E,loading:N,refreshing:i,newEntriesCount:k,hasMore:T,loadMore:A,loadNew:S,autoRefreshEnabled:F,setAutoRefresh:M,updateEntry:u,meta:n,isHighlighted:R}=K({type:"exception",limit:50,filters:w}),d=E.filter(e=>Z(e)),P=e=>e.payload.name&&e.payload.name.toLowerCase()!=="error"?e.payload.name:e.payload.code?String(e.payload.code):"Error",D=[{id:"all",label:"All"},{id:"unresolved",label:"Unresolved"},{id:"resolved",label:"Resolved"}],x=async(e,s)=>{e.preventDefault(),e.stopPropagation(),h(s.id);try{if(s.resolvedAt){const a=await $(s.id);u(a.data)}else{const a=await H(s.id);u(a.data)}await y()}catch(a){console.error("Failed to toggle resolution:",a)}finally{h(null)}},I=c.useMemo(()=>[{key:"exception",header:"Exception",minWidth:"180px",render:e=>{const s=P(e);return t.jsx(p,{listType:"exceptions",filterType:"names",children:s})}},{key:"message",header:"Message",minWidth:"200px",render:e=>t.jsx(r,{truncate:!0,maxWidth:"300px",children:e.payload.message})},{key:"method",header:"Method",width:"100px",render:e=>{var a;const s=((a=e.payload.request)==null?void 0:a.method)||"-";return s!=="-"?t.jsx(p,{listType:"exceptions",filterType:"methods",children:s}):t.jsx(r,{secondary:!0,children:"—"})}},{key:"path",header:"Path",minWidth:"150px",render:e=>{var a;const s=((a=e.payload.request)==null?void 0:a.url)||"-";return s!=="-"?t.jsx(p,{listType:"exceptions",filterType:"paths",className:"font-mono",children:s.length>40?s.substring(0,40)+"...":s}):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:G(J(e.createdAt),{addSuffix:!0})})},{key:"status",header:"Status",width:"80px",align:"center",render:e=>t.jsx("button",{onClick:s=>x(s,e),disabled:l===e.id,className:`p-1 transition-colors ${e.resolvedAt?"text-green-500 hover:text-green-600":"text-gray-400 hover:text-green-500"}`,title:e.resolvedAt?"Mark as unresolved":"Mark as resolved",children:l===e.id?t.jsx(W,{className:"h-5 w-5 animate-spin"}):e.resolvedAt?t.jsx(ee,{className:"h-5 w-5"}):t.jsx(te,{className:"h-5 w-5"})})}],[l,x]);if(N&&d.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 L=C?"pt-36":"pt-24";return t.jsxs("div",{children:[t.jsx(O,{title:"Exceptions",icon:m,iconColor:"text-red-600 dark:text-red-400",count:d.length,totalCount:n==null?void 0:n.total,refreshing:i,autoRefreshEnabled:F,onAutoRefreshToggle:M,filters:b,onClearAllFilters:v,filterControls:t.jsx(Q,{tabs:D,activeTab:o,onChange:e=>f(e)})}),t.jsxs("div",{className:`${L} space-y-4 transition-all duration-200`,children:[t.jsx(Y,{placeholder:"Search by exception name, message, tag, or content..."}),t.jsx(V,{count:k,onClick:S,loading:i}),t.jsx(_,{columns:I,data:d,keyExtractor:e=>e.id,onRowClick:e=>g(`/exceptions/${e.id}`),emptyMessage:"No exceptions recorded yet",emptyIcon:t.jsx(m,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"}),rowClassName:e=>{const s=[];return e.resolvedAt&&s.push("opacity-50"),R(e.id)&&s.push("highlight-new"),s.join(" ")}}),t.jsx(X,{hasMore:T,onClick:A,loading:i})]})]})}export{ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,S as d}from"./index-D58YLNAD.js";import{e as P,b as A}from"./vendor-B2nVRih0.js";import{u as F,C as n,f as R,p as T}from"./ClickableBadge-DunmLagw.js";import{u as M,P as S,N as W,L as G}from"./PageHeader-CPlbuzvY.js";import{r as B,T as a,b as D}from"./types-BZxcW_0v.js";function J(){const c=P(),{addFilter:s,clearAll:u,serverFilters:h,headerFilters:p,hasFilters:x}=F("gates"),{entries:m,loading:g,refreshing:i,newEntriesCount:y,hasMore:j,loadMore:f,loadNew:b,autoRefreshEnabled:k,setAutoRefresh:w,meta:o,isHighlighted:C}=M({type:"gate",limit:50,filters:h}),l=m.filter(e=>B(e)),N=A.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:v=>{v.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 E=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,onAutoRefreshToggle:w,filters:p,onClearAllFilters:u}),t.jsxs("div",{className:`${E} space-y-4 transition-all duration-200`,children:[t.jsx(W,{count:y,onClick:b,loading:i}),t.jsx(D,{columns:N,data:l,keyExtractor:e=>e.id,onRowClick:e=>c(`/gates/${e.id}`),rowClassName:e=>C(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{J as default};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{c as D,j as a}from"./index-D58YLNAD.js";import{e as G,f as M,b as Q}from"./vendor-B2nVRih0.js";import{u as U,C as g,f as W,p as I}from"./ClickableBadge-DunmLagw.js";import{E as O}from"./EntrySearchInput-DsfSD1B7.js";import{u as $,P as z,N as V,L as J}from"./PageHeader-CPlbuzvY.js";import{u as K,T as p,G as X,N as Y,D as Z,a as _,b as ee}from"./types-BZxcW_0v.js";import"./search-vJ4NBU4p.js";/**
|
|
2
|
-
* @license lucide-react v0.468.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const x=D("Hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]);function le(){const y=G(),[t,s]=M(),o=t.get("hasErrors")==="true",n=t.get("hasN1")==="true",{serverFilters:f,headerFilters:N,hasFilters:w,addFilter:h}=U("graphql"),j={...f,hasErrors:o?!0:void 0,hasN1:n?!0:void 0},i=[];o&&i.push({category:"Status",value:"ERROR",onRemove:()=>{const e=new URLSearchParams(t);e.delete("hasErrors"),s(e,{replace:!0})}}),n&&i.push({category:"Performance",value:"N+1",onRemove:()=>{const e=new URLSearchParams(t);e.delete("hasN1"),s(e,{replace:!0})}});const E=[...N,...i],v=w||o||n,P=()=>{s({},{replace:!0})},u=e=>{e.stopPropagation();const r=new URLSearchParams(t);r.set("hasErrors","true"),s(r,{replace:!0})},m=e=>{e.stopPropagation();const r=new URLSearchParams(t);r.set("hasN1","true"),s(r,{replace:!0})},{entries:C,loading:k,refreshing:l,newEntriesCount:b,hasMore:F,loadMore:T,loadNew:L,autoRefreshEnabled:R,setAutoRefresh:S,meta:d,isHighlighted:q}=$({type:"graphql",limit:50,filters:j}),c=C.filter(e=>K(e)),A=Q.useMemo(()=>[{key:"type",header:"Type",width:"110px",render:e=>a.jsx(g,{listType:"graphql",filterType:"operationTypes",children:e.payload.operationType})},{key:"operation",header:"Operation",minWidth:"150px",render:e=>a.jsx(p,{mono:!0,truncate:!0,maxWidth:"280px",children:e.payload.operationName||"(anonymous)"})},{key:"status",header:"Status",width:"180px",align:"center",render:e=>a.jsxs("div",{className:"flex items-center gap-1.5 justify-center",children:[a.jsx(g,{listType:"graphql",filterType:"statuses",children:e.payload.statusCode}),e.payload.hasErrors&&a.jsx(X,{onClick:u}),e.payload.potentialN1&&e.payload.potentialN1.length>0&&a.jsx(Y,{count:e.payload.potentialN1.length,onClick:m})]})},{key:"resolvers",header:"Resolvers",width:"90px",align:"center",render:e=>a.jsx(p,{secondary:!0,className:"text-xs tabular-nums",children:e.payload.resolverCount??"-"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(Z,{ms:e.payload.duration})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>a.jsx(_,{tags:(e.tags||[]).filter(r=>!["query","mutation","subscription"].includes(r.toLowerCase())),max:3,onTagClick:(r,H)=>{H.stopPropagation(),h("tags",r)}})},{key:"time",header:"Time",width:"180px",align:"right",render:e=>a.jsx(p,{secondary:!0,className:"text-xs whitespace-nowrap",children:W(I(e.createdAt),{addSuffix:!0})})}],[u,m,h]);if(k&&c.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 B=v?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(z,{title:"GraphQL",icon:x,iconColor:"text-purple-600 dark:text-purple-400",count:c.length,totalCount:d==null?void 0:d.total,refreshing:l,autoRefreshEnabled:R,onAutoRefreshToggle:S,filters:E,onClearAllFilters:P}),a.jsxs("div",{className:`${B} space-y-4 transition-all duration-200`,children:[a.jsx(O,{placeholder:"Search by operation, type, tag, or query content..."}),a.jsx(V,{count:b,onClick:L,loading:l}),a.jsx(ee,{columns:A,data:c,keyExtractor:e=>e.id,onRowClick:e=>y(`/graphql/${e.id}`),rowClassName:e=>q(e.id)?"highlight-new":"",emptyMessage:"No GraphQL operations recorded yet",emptyIcon:a.jsx(x,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(J,{hasMore:F,onClick:T,loading:l})]})]})}export{le as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,d}from"./index-D58YLNAD.js";import{e as T,b as R}from"./vendor-B2nVRih0.js";import{u as v,C as n,f as H,p as D}from"./ClickableBadge-DunmLagw.js";import{u as F,P as M,N as A,L as B}from"./PageHeader-CPlbuzvY.js";import{l as L,T as l,D as S,b as W}from"./types-BZxcW_0v.js";function z(){const h=T(),{addFilter:s,clearAll:c,serverFilters:p,headerFilters:u,hasFilters:m}=v("http-client"),{entries:x,loading:g,refreshing:o,newEntriesCount:y,hasMore:f,loadMore:C,loadNew:j,autoRefreshEnabled:k,setAutoRefresh:w,meta:r,isHighlighted:N}=F({type:"http-client",limit:50,filters:p}),i=x.filter(e=>L(e)),E=R.useMemo(()=>[{key:"method",header:"Method",width:"90px",render:e=>t.jsx(n,{onClick:a=>{a.stopPropagation(),s("methods",e.payload.method)},className:"font-mono",children:e.payload.method})},{key:"status",header:"Status",width:"80px",render:e=>t.jsx(n,{onClick:a=>{a.stopPropagation();const P=e.payload.statusCode?String(e.payload.statusCode):"ERR";s("statuses",P)},children:e.payload.statusCode||"ERR"})},{key:"hostname",header:"Host",width:"180px",render:e=>e.payload.hostname?t.jsx(n,{onClick:a=>{a.stopPropagation(),s("hostnames",e.payload.hostname)},className:"font-mono",children:e.payload.hostname}):t.jsx(l,{secondary:!0,children:"-"})},{key:"path",header:"Path",minWidth:"200px",render:e=>t.jsx(l,{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(S,{ms:e.payload.duration||0})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(l,{secondary:!0,className:"text-xs",children:H(D(e.createdAt),{addSuffix:!0})})}],[s]);if(g&&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 b=m?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(M,{title:"HTTP Client",icon:d,iconColor:"text-cyan-600 dark:text-cyan-400",count:i.length,totalCount:r==null?void 0:r.total,refreshing:o,autoRefreshEnabled:k,onAutoRefreshToggle:w,filters:u,onClearAllFilters:c}),t.jsxs("div",{className:`${b} space-y-4 transition-all duration-200`,children:[t.jsx(A,{count:y,onClick:j,loading:o}),t.jsx(W,{columns:E,data:i,keyExtractor:e=>e.id,onRowClick:e=>h(`/http-client/${e.id}`),rowClassName:e=>N(e.id)?"highlight-new":"",emptyMessage:"No outgoing HTTP requests recorded yet",emptyIcon:t.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),t.jsx(B,{hasMore:f,onClick:C,loading:o})]})]})}export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,B as l}from"./index-D58YLNAD.js";import{e as N,b as T}from"./vendor-B2nVRih0.js";import{u as E,C as o,f as v,p as A}from"./ClickableBadge-DunmLagw.js";import{u as D,P as B,N as F,L as M}from"./PageHeader-CPlbuzvY.js";import{g as P,T as i,D as R,b as J}from"./types-BZxcW_0v.js";function I(){const n=N(),{clearAll:d,serverFilters:u,headerFilters:c,hasFilters:h}=E("jobs"),{entries:p,loading:m,refreshing:a,newEntriesCount:x,hasMore:y,loadMore:g,loadNew:f,autoRefreshEnabled:j,setAutoRefresh:b,meta:s,isHighlighted:w}=D({type:"job",limit:50,filters:u}),r=p.filter(e=>P(e)),k=T.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(R,{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 C=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,onAutoRefreshToggle:b,filters:c,onClearAllFilters:d}),t.jsxs("div",{className:`${C} space-y-4 transition-all duration-200`,children:[t.jsx(F,{count:x,onClick:f,loading:a}),t.jsx(J,{columns:k,data:r,keyExtractor:e=>e.id,onRowClick:e=>n(`/jobs/${e.id}`),rowClassName:e=>w(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:g,loading:a})]})]})}export{I as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,F as l}from"./index-D58YLNAD.js";import{e as w,b as E}from"./vendor-B2nVRih0.js";import{u as k,C as i,f as T,p as F}from"./ClickableBadge-DunmLagw.js";import{u as L,P as M,N as A,L as P}from"./PageHeader-CPlbuzvY.js";import{E as R}from"./EntrySearchInput-DsfSD1B7.js";import{e as B,T as o,b as D}from"./types-BZxcW_0v.js";import"./search-vJ4NBU4p.js";function G(){const n=w(),{clearAll:d,serverFilters:c,headerFilters:g,hasFilters:x}=k("logs"),{entries:h,loading:m,refreshing:s,newEntriesCount:p,hasMore:u,loadMore:y,loadNew:f,autoRefreshEnabled:j,setAutoRefresh:C,meta:a,isHighlighted:N}=L({type:"log",limit:50,filters:c}),r=h.filter(e=>B(e)),b=E.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(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 v=x?"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,onAutoRefreshToggle:C,filters:g,onClearAllFilters:d}),t.jsxs("div",{className:`${v} space-y-4 transition-all duration-200`,children:[t.jsx(R,{placeholder:"Search by message, level, context, tag, or content..."}),t.jsx(A,{count:p,onClick:f,loading:s}),t.jsx(D,{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:y,loading:s})]})]})}export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,M as u}from"./index-D58YLNAD.js";import{e as v,b as A}from"./vendor-B2nVRih0.js";import{u as D,C as F,f as P,p as R}from"./ClickableBadge-DunmLagw.js";import{u as L,P as S,N as W,L as $}from"./PageHeader-CPlbuzvY.js";import{j as B,T as l,D as H,a as q,b as I}from"./types-BZxcW_0v.js";const z=["sent","failed","pending","queued","error"];function U(){const c=v(),{addFilter:o,clearAll:h,serverFilters:m,headerFilters:g,hasFilters:p}=D("mail"),{entries:x,loading:f,refreshing:s,newEntriesCount:y,hasMore:j,loadMore:b,loadNew:k,autoRefreshEnabled:C,setAutoRefresh:w,meta:r,isHighlighted:T}=L({type:"mail",limit:50,filters:m}),i=x.filter(e=>B(e)),d=e=>{const a=Array.isArray(e)?e:[e];return a.length===1?a[0]:`${a[0]} +${a.length-1}`},N=A.useMemo(()=>[{key:"status",header:"Status",width:"80px",render:e=>t.jsx(F,{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(H,{ms:e.payload.duration||0})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>{const a=(e.tags||[]).filter(n=>!z.includes(n.toLowerCase()));return t.jsx(q,{tags:a,max:3,onTagClick:(n,M)=>{M.stopPropagation(),o("tags",n)}})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(l,{secondary:!0,className:"text-xs",children:P(R(e.createdAt),{addSuffix:!0})})}],[o,d]);if(f&&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 E=p?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(S,{title:"Mail",icon:u,iconColor:"text-pink-600 dark:text-pink-400",count:i.length,totalCount:r==null?void 0:r.total,refreshing:s,autoRefreshEnabled:C,onAutoRefreshToggle:w,filters:g,onClearAllFilters:h}),t.jsxs("div",{className:`${E} space-y-4 transition-all duration-200`,children:[t.jsx(W,{count:y,onClick:k,loading:s}),t.jsx(I,{columns:N,data:i,keyExtractor:e=>e.id,onRowClick:e=>c(`/mail/${e.id}`),rowClassName:e=>T(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($,{hasMore:j,onClick:b,loading:s})]})]})}export{U as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,b as d}from"./index-D58YLNAD.js";import{e as v,b as M}from"./vendor-B2nVRih0.js";import{u as P,C as l,f as A,p as D}from"./ClickableBadge-DunmLagw.js";import{u as F,P as R,N as T,L as B}from"./PageHeader-CPlbuzvY.js";import{n as L,T as o,D as H,b as S}from"./types-BZxcW_0v.js";function G(){const c=v(),{addFilter:r,clearAll:p,serverFilters:u,headerFilters:h,hasFilters:x}=P("models"),{entries:m,loading:g,refreshing:s,newEntriesCount:y,hasMore:f,loadMore:j,loadNew:C,autoRefreshEnabled:k,setAutoRefresh:w,meta:i,isHighlighted:N}=F({type:"model",limit:50,filters:u}),n=m.filter(e=>L(e)),b=M.useMemo(()=>[{key:"action",header:"Action",width:"120px",render:e=>a.jsx(l,{onClick:t=>{t.stopPropagation(),r("actions",e.payload.action)},children:e.payload.action.toUpperCase()})},{key:"entity",header:"Entity",width:"150px",render:e=>a.jsx(l,{onClick:t=>{t.stopPropagation(),r("entities",e.payload.entity)},className:"font-mono",children:e.payload.entity})},{key:"source",header:"Source",width:"150px",render:e=>e.payload.source?a.jsx(l,{onClick:t=>{t.stopPropagation(),r("sources",e.payload.source)},className:"font-mono text-xs",children:e.payload.source}):a.jsx(o,{secondary:!0,children:"-"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(H,{ms:e.payload.duration||0})},{key:"records",header:"Records",width:"80px",align:"center",render:e=>e.payload.recordCount!==void 0?a.jsx(o,{children:e.payload.recordCount}):a.jsx(o,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(o,{secondary:!0,className:"text-xs",children:A(D(e.createdAt),{addSuffix:!0})})}],[r]);if(g&&n.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 E=x?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(R,{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,onAutoRefreshToggle:w,filters:h,onClearAllFilters:p}),a.jsxs("div",{className:`${E} space-y-4 transition-all duration-200`,children:[a.jsx(T,{count:y,onClick:C,loading:s}),a.jsx(S,{columns:b,data:n,keyExtractor:e=>e.id,onRowClick:e=>c(`/models/${e.id}`),rowClassName:e=>N(e.id)?"highlight-new":"",emptyMessage:"No model events recorded yet",emptyIcon:a.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(B,{hasMore:f,onClick:j,loading:s})]})]})}export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,e as l}from"./index-D58YLNAD.js";import{e as T,b as v}from"./vendor-B2nVRih0.js";import{u as P,C as d,f as D,p as F}from"./ClickableBadge-DunmLagw.js";import{u as R,P as A,N as M,L as B}from"./PageHeader-CPlbuzvY.js";import{o as W,T as a,D as L,b as H}from"./types-BZxcW_0v.js";function z(){const c=T(),{addFilter:i,clearAll:p,serverFilters:u,headerFilters:h,hasFilters:x}=P("notifications"),{entries:m,loading:g,refreshing:r,newEntriesCount:y,hasMore:f,loadMore:j,loadNew:C,autoRefreshEnabled:k,setAutoRefresh:N,meta:s,isHighlighted:w}=R({type:"notification",limit:50,filters:u}),o=m.filter(e=>W(e)),b=v.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(L,{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 E=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,onAutoRefreshToggle:N,filters:h,onClearAllFilters:p}),t.jsxs("div",{className:`${E} space-y-4 transition-all duration-200`,children:[t.jsx(M,{count:y,onClick:C,loading:r}),t.jsx(H,{columns:b,data:o,keyExtractor:e=>e.id,onRowClick:e=>c(`/notifications/${e.id}`),rowClassName:e=>w(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:f,onClick:j,loading:r})]})]})}export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as s}from"./vendor-B2nVRih0.js";import{m as F,z as q,p as J,q as _,j as r,i as A,e as Q,s as V,X as Z}from"./index-D58YLNAD.js";function $(t){return t==null?"":typeof t!="object"?String(t):Array.isArray(t)?"["+t.map($).join(",")+"]":"{"+Object.keys(t).sort().map(n=>`"${n}":${$(t[n])}`).join(",")+"}"}const z="nestlens-auto-refresh";function ee(){try{const t=localStorage.getItem(z);return t===null?!0:t==="true"}catch{return!0}}function re(t){try{localStorage.setItem(z,String(t))}catch{}}function se(t={}){const{type:a,limit:n=50,autoRefresh:c,autoRefreshInterval:f=5e3,filters:y}=t,m=$(y),[v,h]=s.useState([]),[j,N]=s.useState(!0),[S,g]=s.useState(!1),[I,b]=s.useState(null),[d,k]=s.useState(null),[R,o]=s.useState(0),[x,w]=s.useState(c??ee()),l=s.useRef(null),E=s.useRef(null),L=s.useRef(!0),B=s.useRef(m),C=s.useRef(new Map),[,G]=s.useState(0),H=1e4,O=s.useCallback(async()=>{L.current?N(!0):g(!0);try{b(null);const e=await F({type:a,limit:n,filters:y});h(e.data),k(e.meta),l.current=e.meta.newestSequence,o(0),L.current=!1,B.current=m}catch(e){const i=e instanceof Error?e:new Error("Failed to fetch entries");b(i),console.error("Failed to fetch entries:",e),q.error("Failed to load entries")}finally{N(!1),g(!1)}},[a,n,m]),K=s.useCallback(async()=>{if(!(!(d!=null&&d.oldestSequence)||!d.hasMore)){g(!0);try{const e=await F({type:a,limit:n,beforeSequence:d.oldestSequence,filters:y});h(i=>[...i,...e.data]),k(e.meta)}catch(e){console.error("Failed to load more entries:",e),q.error("Failed to load more entries")}finally{g(!1)}}},[a,n,d,m]),P=s.useCallback(async()=>{if(l.current){g(!0);try{const e=await F({type:a,limit:R||n,afterSequence:l.current,filters:y});if(e.data.length>0){const i=Date.now();e.data.forEach(u=>{C.current.set(u.id,i)}),h(u=>[...e.data,...u]),l.current=e.meta.newestSequence,o(0)}}catch(e){console.error("Failed to load new entries:",e),q.error("Failed to load new entries")}finally{g(!1)}}},[a,n,R,m]),U=s.useCallback(async()=>{g(!0);try{b(null);const e=await F({type:a,limit:n,filters:y});h(e.data),k(e.meta),l.current=e.meta.newestSequence,o(0)}catch(e){const i=e instanceof Error?e:new Error("Failed to refresh entries");b(i),console.error("Failed to refresh entries:",e),q.error("Failed to refresh entries")}finally{g(!1)}},[a,n,m]),D=s.useCallback(async()=>{if(!l.current){try{(await J(a)).data&&o(1)}catch{}return}try{const e=await _(l.current,a);o(e.data.count)}catch{}},[a]),W=s.useCallback(e=>{w(e),re(e)},[]),X=s.useCallback(e=>{h(i=>i.map(u=>u.id===e.id?e:u))},[]);s.useEffect(()=>{O()},[O]);const Y=s.useCallback(e=>{const i=C.current.get(e);return i?Date.now()-i<H:!1},[]),M=s.useCallback(()=>{const e=Date.now();let i=!1;C.current.forEach((u,p)=>{e-u>=H&&(C.current.delete(p),i=!0)}),i&&G(u=>u+1)},[]),T=s.useCallback(async()=>{if(l.current)try{const e=await _(l.current,a);if(e.data.count>0){const i=await F({type:a,limit:e.data.count,afterSequence:l.current,filters:y});if(i.data.length>0){const u=Date.now();i.data.forEach(p=>{C.current.set(p.id,u)}),h(p=>[...i.data,...p]),l.current=i.meta.newestSequence,k(p=>p?{...p,total:p.total+i.data.length,newestSequence:i.meta.newestSequence}:i.meta)}}}catch{}},[a,m]);return s.useEffect(()=>(x?E.current=setInterval(T,f):E.current=setInterval(D,f),()=>{E.current&&(clearInterval(E.current),E.current=null)}),[x,f,T,D]),s.useEffect(()=>{const e=setInterval(M,1e3);return()=>clearInterval(e)},[M]),{entries:v,loading:j,refreshing:S,error:I,meta:d,newEntriesCount:R,hasMore:(d==null?void 0:d.hasMore)??!1,loadMore:K,loadNew:P,refresh:U,setAutoRefresh:W,autoRefreshEnabled:x,updateEntry:X,isHighlighted:Y}}function ne({count:t,onClick:a,loading:n}){return t===0?null:r.jsxs("button",{onClick:a,disabled:n,className:"w-full py-3 px-4 bg-primary-50 dark:bg-primary-900/20 text-primary-600 dark:text-primary-400 font-medium rounded-lg hover:bg-primary-100 dark:hover:bg-primary-900/30 transition-colors flex items-center justify-center space-x-2 disabled:opacity-50",children:[n?r.jsx(A,{className:"h-4 w-4 animate-spin"}):r.jsx(Q,{className:"h-4 w-4"}),r.jsxs("span",{children:["Load ",t," new ",t===1?"entry":"entries"]})]})}function ie({hasMore:t,onClick:a,loading:n}){return t?r.jsxs("button",{onClick:a,disabled:n,className:"w-full py-3 px-4 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 font-medium rounded-lg hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors flex items-center justify-center space-x-2 disabled:opacity-50",children:[n?r.jsx(A,{className:"h-4 w-4 animate-spin"}):r.jsx(V,{className:"h-4 w-4"}),r.jsx("span",{children:"Load older entries"})]}):null}function ce({title:t,icon:a,iconColor:n="text-primary-600 dark:text-primary-400",count:c,totalCount:f,subtitle:y,loading:m,refreshing:v,onRefresh:h,autoRefreshEnabled:j,onAutoRefreshToggle:N,filters:S=[],onClearAllFilters:g,actions:I,filterControls:b}){const d=S.length>0,k=c??f,R=S.reduce((o,x)=>(o[x.category]||(o[x.category]=[]),o[x.category].push(x),o),{});return r.jsxs("div",{className:"fixed top-0 left-0 right-0 lg:left-64 z-30 bg-gray-50 dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700",children:[r.jsxs("div",{className:"h-16 px-4 lg:px-6 flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center space-x-3",children:[r.jsx("div",{className:"hidden sm:flex p-2 rounded-lg bg-gray-100 dark:bg-gray-800",children:r.jsx(a,{className:`h-5 w-5 ${n}`})}),r.jsxs("div",{className:"flex items-center space-x-3",children:[r.jsx("h1",{className:"text-xl font-bold text-gray-900 dark:text-white",children:t}),k!==void 0&&r.jsxs("span",{role:"status","aria-live":"polite",className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-300",children:[k.toLocaleString(),f!==void 0&&c!==void 0&&c!==f&&r.jsxs("span",{className:"text-gray-400 dark:text-gray-500 ml-1",children:["/ ",f.toLocaleString()]})]}),y&&r.jsx("span",{className:"hidden md:inline text-sm text-gray-500 dark:text-gray-400",children:y})]})]}),r.jsxs("div",{className:"flex items-center space-x-2",children:[I,N&&r.jsxs("button",{onClick:()=>N(!j),className:`hidden sm:flex items-center space-x-1.5 px-3 py-1.5 rounded-lg text-sm font-medium transition-colors whitespace-nowrap ${j?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700"}`,title:j?"Auto-refresh enabled":"Auto-refresh disabled",children:[r.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${j?"bg-green-500 animate-pulse":"bg-gray-400"}`}),r.jsx("span",{children:"Auto Refresh"})]}),h&&r.jsx("button",{onClick:h,disabled:m||v,"aria-busy":v,"aria-label":v?"Refreshing...":"Refresh",className:"p-2 rounded-lg text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Refresh",children:r.jsx(A,{className:`h-4 w-4 ${v?"animate-spin":""}`})})]})]}),b&&r.jsx("div",{className:"px-4 lg:px-6 py-2 border-t border-gray-100 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-900/50",children:b}),d&&r.jsx("div",{className:"px-4 lg:px-6 py-2 border-t border-gray-100 dark:border-gray-800 bg-gray-50/50 dark:bg-gray-900/50",children:r.jsxs("div",{className:"flex items-center flex-wrap gap-2",children:[r.jsx("span",{className:"text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider mr-1",children:"Filters:"}),Object.entries(R).map(([o,x])=>r.jsxs("div",{className:"flex items-center space-x-1",children:[r.jsxs("span",{className:"text-xs text-gray-400 dark:text-gray-500",children:[o,":"]}),x.map((w,l)=>r.jsxs("button",{onClick:w.onRemove,"aria-label":`Remove ${o} filter: ${w.value}`,className:"inline-flex items-center space-x-1 px-2 py-0.5 rounded-md text-xs font-medium bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-300 hover:bg-primary-200 dark:hover:bg-primary-900/50 transition-colors group uppercase",children:[r.jsx("span",{children:w.value}),r.jsx(Z,{className:"h-3 w-3 opacity-60 group-hover:opacity-100"})]},`${w.category}-${w.value}-${l}`))]},o)),g&&S.length>1&&r.jsx("button",{onClick:g,className:"ml-2 text-xs text-gray-500 dark:text-gray-400 hover:text-red-600 dark:hover:text-red-400 transition-colors",children:"Clear all"})]})})]})}function oe({tabs:t,activeTab:a,onChange:n}){return r.jsx("div",{className:"flex items-center space-x-1",children:t.map(c=>r.jsxs("button",{onClick:()=>n(c.id),className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${a===c.id?"bg-primary-100 text-primary-700 dark:bg-primary-900/50 dark:text-primary-300":"text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800"}`,children:[c.label,c.count!==void 0&&r.jsx("span",{className:`ml-1.5 text-xs ${a===c.id?"text-primary-600 dark:text-primary-400":"text-gray-400 dark:text-gray-500"}`,children:c.count})]},c.id))})}function le({label:t,enabled:a,onChange:n,icon:c}){return r.jsxs("button",{onClick:()=>n(!a),className:`flex items-center space-x-2 px-3 py-1.5 rounded-lg text-sm font-medium transition-colors ${a?"bg-primary-100 text-primary-700 dark:bg-primary-900/30 dark:text-primary-300":"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700"}`,children:[c&&r.jsx(c,{className:"h-4 w-4"}),r.jsx("span",{children:t})]})}export{oe as F,ie as L,ne as N,ce as P,le as T,se as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,D as n}from"./index-D58YLNAD.js";import{e as P,b as d}from"./vendor-B2nVRih0.js";import{u as A,C as M,f as Q,p as R}from"./ClickableBadge-DunmLagw.js";import{u as B,P as O,T as W,N as H,L as I}from"./PageHeader-CPlbuzvY.js";import{E as Z}from"./EntrySearchInput-DsfSD1B7.js";import{c as $,T as u,D as z,a as G,b as J}from"./types-BZxcW_0v.js";import{Z as c}from"./zap-kW6u59JH.js";import"./search-vJ4NBU4p.js";function se(){const h=P(),[i,p]=d.useState(!1),{addFilter:l,clearAll:x,serverFilters:m,headerFilters:g,hasFilters:y}=A("queries"),f={...m,slow:i?!0:void 0},{entries:w,loading:j,refreshing:s,newEntriesCount:b,hasMore:C,loadMore:k,loadNew:T,autoRefreshEnabled:N,setAutoRefresh:E,meta:t,isHighlighted:S}=B({type:"query",limit:50,filters:f}),r=w.filter(e=>$(e)),v=d.useMemo(()=>[{key:"source",header:"Source",width:"120px",render:e=>a.jsx(M,{listType:"queries",filterType:"sources",children:e.payload.source||"unknown"})},{key:"query",header:"Query",minWidth:"300px",render:e=>a.jsxs("div",{className:"flex items-start space-x-2",children:[e.payload.slow&&a.jsx(c,{className:"h-4 w-4 text-yellow-500 flex-shrink-0 mt-0.5"}),a.jsx(u,{mono:!0,truncate:!0,maxWidth:"400px",children:e.payload.query.length>100?e.payload.query.substring(0,100)+"...":e.payload.query})]})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(z,{ms:e.payload.duration||0,slowThreshold:e.payload.slow?0:1e3})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>{const D=(e.payload.source||"unknown").toLowerCase(),F=(e.tags||[]).filter(o=>o.toLowerCase()!==D);return a.jsx(G,{tags:F,max:3,onTagClick:(o,L)=>{L.stopPropagation(),l("tags",o)}})}},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(u,{secondary:!0,className:"text-xs",children:Q(R(e.createdAt),{addSuffix:!0})})}],[l]);if(j&&r.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 q=y?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(O,{title:"Queries",icon:n,iconColor:"text-purple-600 dark:text-purple-400",count:r.length,totalCount:t==null?void 0:t.total,refreshing:s,autoRefreshEnabled:N,onAutoRefreshToggle:E,filters:g,onClearAllFilters:x,actions:a.jsx(W,{label:"Slow Only",enabled:i,onChange:p,icon:c})}),a.jsxs("div",{className:`${q} space-y-4 transition-all duration-200`,children:[a.jsx(Z,{placeholder:"Search by SQL, table, source, tag, or content..."}),a.jsx(H,{count:b,onClick:T,loading:s}),a.jsx(J,{columns:v,data:r,keyExtractor:e=>e.id,onRowClick:e=>h(`/queries/${e.id}`),rowClassName:e=>S(e.id)?"highlight-new":"",emptyMessage:"No queries recorded yet",emptyIcon:a.jsx(n,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(I,{hasMore:C,onClick:k,loading:s})]})]})}export{se as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,D as d}from"./index-D58YLNAD.js";import{e as E,b as R}from"./vendor-B2nVRih0.js";import{u as D,C as l,f as v,p as F}from"./ClickableBadge-DunmLagw.js";import{u as T,P as A,N as M,L as B}from"./PageHeader-CPlbuzvY.js";import{m as L,T as n,D as H,b as S}from"./types-BZxcW_0v.js";function q(){const c=E(),{addFilter:t,clearAll:m,serverFilters:u,headerFilters:h,hasFilters:p}=D("redis"),{entries:x,loading:g,refreshing:s,newEntriesCount:y,hasMore:f,loadMore:j,loadNew:k,autoRefreshEnabled:C,setAutoRefresh:w,meta:r,isHighlighted:N}=T({type:"redis",limit:50,filters:u}),o=x.filter(e=>L(e)),b=R.useMemo(()=>[{key:"command",header:"Command",width:"120px",render:e=>a.jsx(l,{onClick:i=>{i.stopPropagation(),t("commands",e.payload.command)},className:"font-mono",children:e.payload.command})},{key:"keyPattern",header:"Key Pattern",minWidth:"200px",render:e=>e.payload.keyPattern?a.jsx(n,{mono:!0,truncate:!0,maxWidth:"300px",children:e.payload.keyPattern}):a.jsx(n,{secondary:!0,children:"-"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(H,{ms:e.payload.duration||0})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(l,{onClick:i=>{i.stopPropagation(),t("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(n,{secondary:!0,className:"text-xs",children:v(F(e.createdAt),{addSuffix:!0})})}],[t]);if(g&&o.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 P=p?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(A,{title:"Redis",icon:d,iconColor:"text-red-600 dark:text-red-400",count:o.length,totalCount:r==null?void 0:r.total,refreshing:s,autoRefreshEnabled:C,onAutoRefreshToggle:w,filters:h,onClearAllFilters:m}),a.jsxs("div",{className:`${P} space-y-4 transition-all duration-200`,children:[a.jsx(M,{count:y,onClick:k,loading:s}),a.jsx(S,{columns:b,data:o,keyExtractor:e=>e.id,onRowClick:e=>c(`/redis/${e.id}`),rowClassName:e=>N(e.id)?"highlight-new":"",emptyMessage:"No Redis commands recorded yet",emptyIcon:a.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(B,{hasMore:f,onClick:j,loading:s})]})]})}export{q as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,A as N,d as P}from"./index-D58YLNAD.js";import{e as A,b as q}from"./vendor-B2nVRih0.js";import{u as R,C as l,f as D,p as v}from"./ClickableBadge-DunmLagw.js";import{u as L,P as M,N as F,L as H}from"./PageHeader-CPlbuzvY.js";import{E as S}from"./EntrySearchInput-DsfSD1B7.js";import{i as G,T as d,D as B,a as I,b as O}from"./types-BZxcW_0v.js";import"./search-vJ4NBU4p.js";const U=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","GRAPHQL"],W=s=>{var a;return(a=s.payload.path)!=null&&a.toLowerCase().includes("/graphql")?"GRAPHQL":s.payload.method.toUpperCase()};function Y(){const s=A(),{addFilter:a,clearAll:u,serverFilters:h,headerFilters:c,hasFilters:p}=R("requests"),{entries:m,loading:g,refreshing:r,newEntriesCount:x,hasMore:y,loadMore:f,loadNew:j,autoRefreshEnabled:C,setAutoRefresh:T,meta:i,isHighlighted:E}=L({type:"request",limit:50,filters:h}),o=m.filter(e=>G(e)),b=q.useMemo(()=>[{key:"method",header:"Method",width:"100px",render:e=>t.jsx(l,{listType:"requests",filterType:"methods",children:W(e)})},{key:"path",header:"Path",minWidth:"200px",render:e=>t.jsx(d,{mono:!0,truncate:!0,maxWidth:"400px",children:e.payload.path})},{key:"status",header:"Status",width:"80px",align:"center",render:e=>t.jsx(l,{listType:"requests",filterType:"statuses",children:e.payload.statusCode||0})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>t.jsx(B,{ms:e.payload.duration||0})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>t.jsx(I,{tags:(e.tags||[]).filter(n=>!U.includes(n.toUpperCase())),max:3,onTagClick:(n,w)=>{w.stopPropagation(),a("tags",n)}})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>t.jsx(d,{secondary:!0,className:"text-xs",children:D(v(e.createdAt),{addSuffix:!0})})}],[a]);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 k=p?"pt-28":"pt-16";return t.jsxs("div",{children:[t.jsx(M,{title:"Requests",icon:N,iconColor:"text-blue-600 dark:text-blue-400",count:o.length,totalCount:i==null?void 0:i.total,refreshing:r,autoRefreshEnabled:C,onAutoRefreshToggle:T,filters:c,onClearAllFilters:u}),t.jsxs("div",{className:`${k} space-y-4 transition-all duration-200`,children:[t.jsx(S,{placeholder:"Search by path, method, status, tag, or content..."}),t.jsx(F,{count:x,onClick:j,loading:r}),t.jsx(O,{columns:b,data:o,keyExtractor:e=>e.id,onRowClick:e=>s(`/requests/${e.id}`),emptyMessage:"No requests recorded yet",emptyIcon:t.jsx(P,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"}),rowClassName:e=>E(e.id)?"highlight-new":""}),t.jsx(H,{hasMore:y,onClick:f,loading:r})]})]})}export{Y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,C as c}from"./index-D58YLNAD.js";import{e as M,b as P}from"./vendor-B2nVRih0.js";import{f as u,c as A}from"./format-BFldcnCk.js";import{u as L,C as h,f as R,p as H}from"./ClickableBadge-DunmLagw.js";import{u as B,P as W,N as $,L as I}from"./PageHeader-CPlbuzvY.js";import{k as q,T as i,D as z,a as G,b as J}from"./types-BZxcW_0v.js";const K=["started","completed","failed"];function m(t){try{return A.toString(t)}catch{return null}}function Z(){const t=M(),{addFilter:n,clearAll:p,serverFilters:x,headerFilters:g,hasFilters:f}=L("schedule"),{entries:y,loading:k,refreshing:s,newEntriesCount:j,hasMore:C,loadMore:N,loadNew:T,autoRefreshEnabled:v,setAutoRefresh:w,meta:r,isHighlighted:b}=B({type:"schedule",limit:50,filters:x}),l=y.filter(e=>q(e)),d=e=>e.payload.cron?e.payload.cron:e.payload.interval?`${e.payload.interval}ms`:"-",E=P.useMemo(()=>[{key:"task",header:"Task",minWidth:"200px",render:e=>a.jsx(h,{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&&m(e.payload.cron)&&a.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 block mt-0.5",children:m(e.payload.cron)}),e.payload.interval&&u(e.payload.interval)&&a.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400 block mt-0.5",children:u(e.payload.interval)})]})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(h,{listType:"schedule",filterType:"statuses",children:e.payload.status})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>e.payload.duration?a.jsx(z,{ms:e.payload.duration}):a.jsx(i,{secondary:!0,children:"—"})},{key:"tags",header:"Tags",minWidth:"150px",render:e=>{const D=(e.tags||[]).filter(o=>!K.includes(o.toLowerCase()));return a.jsx(G,{tags:D,max:3,onTagClick:(o,F)=>{F.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(k&&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 S=f?"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:v,onAutoRefreshToggle:w,filters:g,onClearAllFilters:p}),a.jsxs("div",{className:`${S} space-y-4 transition-all duration-200`,children:[a.jsx($,{count:j,onClick:T,loading:s}),a.jsx(J,{columns:E,data:l,keyExtractor:e=>e.id,onRowClick:e=>t(`/schedule/${e.id}`),rowClassName:e=>b(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:C,onClick:N,loading:s})]})]})}export{Z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a}from"./index-D58YLNAD.js";import{e as b,b as F}from"./vendor-B2nVRih0.js";import{u as P,C as n,f as T,p as D}from"./ClickableBadge-DunmLagw.js";import{u as A,P as M,N as R,L as H}from"./PageHeader-CPlbuzvY.js";import{p as B,T as t,D as L,b as V}from"./types-BZxcW_0v.js";import{E as d}from"./eye-DS4RYm3R.js";function q(){const c=b(),{addFilter:r,clearAll:h,serverFilters:m,headerFilters:p,hasFilters:u}=P("views"),{entries:x,loading:g,refreshing:s,newEntriesCount:f,hasMore:y,loadMore:w,loadNew:j,autoRefreshEnabled:C,setAutoRefresh:k,meta:i,isHighlighted:N}=A({type:"view",limit:50,filters:m}),o=x.filter(e=>B(e)),v=F.useMemo(()=>[{key:"template",header:"Template",minWidth:"250px",render:e=>a.jsx(t,{mono:!0,truncate:!0,maxWidth:"350px",children:e.payload.template})},{key:"format",header:"Format",width:"100px",render:e=>e.payload.format?a.jsx(n,{onClick:l=>{l.stopPropagation(),r("formats",e.payload.format)},className:"font-mono",children:e.payload.format}):a.jsx(t,{secondary:!0,children:"-"})},{key:"duration",header:"Duration",width:"100px",align:"right",render:e=>a.jsx(L,{ms:e.payload.duration||0})},{key:"status",header:"Status",width:"100px",render:e=>a.jsx(n,{onClick:l=>{l.stopPropagation(),r("statuses",e.payload.status)},children:e.payload.status.toUpperCase()})},{key:"cache",header:"Cache",width:"80px",align:"center",render:e=>e.payload.cacheHit!==void 0?a.jsx(t,{children:e.payload.cacheHit?"Yes":"No"}):a.jsx(t,{secondary:!0,children:"-"})},{key:"time",header:"Time",width:"170px",align:"right",render:e=>a.jsx(t,{secondary:!0,className:"text-xs",children:T(D(e.createdAt),{addSuffix:!0})})}],[r]);if(g&&o.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 E=u?"pt-28":"pt-16";return a.jsxs("div",{children:[a.jsx(M,{title:"Views",icon:d,iconColor:"text-teal-600 dark:text-teal-400",count:o.length,totalCount:i==null?void 0:i.total,refreshing:s,autoRefreshEnabled:C,onAutoRefreshToggle:k,filters:p,onClearAllFilters:h}),a.jsxs("div",{className:`${E} space-y-4 transition-all duration-200`,children:[a.jsx(R,{count:f,onClick:j,loading:s}),a.jsx(V,{columns:v,data:o,keyExtractor:e=>e.id,onRowClick:e=>c(`/views/${e.id}`),rowClassName:e=>N(e.id)?"highlight-new":"",emptyMessage:"No view renders recorded yet",emptyIcon:a.jsx(d,{className:"h-8 w-8 text-gray-400 dark:text-gray-500"})}),a.jsx(H,{hasMore:y,onClick:w,loading:s})]})]})}export{q as default};
|