nestlens 0.4.1 → 0.4.2

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 (80) hide show
  1. package/README.md +1 -1
  2. package/dist/__tests__/api/dashboard.controller.spec.js +103 -419
  3. package/dist/__tests__/api/dashboard.controller.spec.js.map +1 -1
  4. package/dist/__tests__/docs-consistency.spec.d.ts +2 -0
  5. package/dist/__tests__/docs-consistency.spec.d.ts.map +1 -0
  6. package/dist/__tests__/docs-consistency.spec.js +74 -0
  7. package/dist/__tests__/docs-consistency.spec.js.map +1 -0
  8. package/dist/__tests__/integration/adapter-compat.integration.spec.d.ts +2 -0
  9. package/dist/__tests__/integration/adapter-compat.integration.spec.d.ts.map +1 -0
  10. package/dist/__tests__/integration/adapter-compat.integration.spec.js +139 -0
  11. package/dist/__tests__/integration/adapter-compat.integration.spec.js.map +1 -0
  12. package/dist/__tests__/integration/schedule-watcher.integration.spec.d.ts +2 -0
  13. package/dist/__tests__/integration/schedule-watcher.integration.spec.d.ts.map +1 -0
  14. package/dist/__tests__/integration/schedule-watcher.integration.spec.js +87 -0
  15. package/dist/__tests__/integration/schedule-watcher.integration.spec.js.map +1 -0
  16. package/dist/__tests__/integration/watcher-coexistence.integration.spec.d.ts +2 -0
  17. package/dist/__tests__/integration/watcher-coexistence.integration.spec.d.ts.map +1 -0
  18. package/dist/__tests__/integration/watcher-coexistence.integration.spec.js +88 -0
  19. package/dist/__tests__/integration/watcher-coexistence.integration.spec.js.map +1 -0
  20. package/dist/__tests__/watchers/exception.watcher.spec.js +10 -0
  21. package/dist/__tests__/watchers/exception.watcher.spec.js.map +1 -1
  22. package/dist/__tests__/watchers/request.watcher.spec.js +30 -0
  23. package/dist/__tests__/watchers/request.watcher.spec.js.map +1 -1
  24. package/dist/__tests__/watchers/schedule.watcher.spec.js +32 -27
  25. package/dist/__tests__/watchers/schedule.watcher.spec.js.map +1 -1
  26. package/dist/api/dashboard.controller.d.ts +51 -43
  27. package/dist/api/dashboard.controller.d.ts.map +1 -1
  28. package/dist/api/dashboard.controller.js +222 -248
  29. package/dist/api/dashboard.controller.js.map +1 -1
  30. package/dist/api/filters/api-exception.filter.d.ts +3 -0
  31. package/dist/api/filters/api-exception.filter.d.ts.map +1 -1
  32. package/dist/api/filters/api-exception.filter.js +9 -3
  33. package/dist/api/filters/api-exception.filter.js.map +1 -1
  34. package/dist/dashboard/public/assets/{BatchesPage-DrFl64wj.js → BatchesPage-BqqMGRhb.js} +1 -1
  35. package/dist/dashboard/public/assets/{CachePage-C57Pkxm0.js → CachePage-4XesQGrB.js} +1 -1
  36. package/dist/dashboard/public/assets/{ClickableBadge-BNUq-FXI.js → ClickableBadge-CULXhkUR.js} +1 -1
  37. package/dist/dashboard/public/assets/{CommandsPage-BdD-ojDk.js → CommandsPage-qA9zZJLY.js} +1 -1
  38. package/dist/dashboard/public/assets/{DashboardPage-DCophLiw.js → DashboardPage-6gpSO6p8.js} +1 -1
  39. package/dist/dashboard/public/assets/{DumpsPage-DtXeYPpQ.js → DumpsPage-BJUH8RX8.js} +1 -1
  40. package/dist/dashboard/public/assets/{EntryDetailPage-qlWzdnXs.js → EntryDetailPage-BybD_jd2.js} +1 -1
  41. package/dist/dashboard/public/assets/{EventsPage-BHpLjHZj.js → EventsPage-Bk5E2ZLC.js} +1 -1
  42. package/dist/dashboard/public/assets/{ExceptionsPage-Ww3jIO29.js → ExceptionsPage-eCyE84NP.js} +1 -1
  43. package/dist/dashboard/public/assets/{GatesPage-beRehq6b.js → GatesPage-CE9Sa3BN.js} +1 -1
  44. package/dist/dashboard/public/assets/{GraphQLPage-BZt0nDmS.js → GraphQLPage-B2XmilbU.js} +1 -1
  45. package/dist/dashboard/public/assets/{HttpClientPage-Dac8U41f.js → HttpClientPage-DMdyMJmo.js} +1 -1
  46. package/dist/dashboard/public/assets/{JobsPage-zLQH5Skv.js → JobsPage-Cza23TpJ.js} +1 -1
  47. package/dist/dashboard/public/assets/{LogsPage-Dj7YEZlz.js → LogsPage-BfFjxmzL.js} +1 -1
  48. package/dist/dashboard/public/assets/{MailPage-C45lv85q.js → MailPage-C7qOueDJ.js} +1 -1
  49. package/dist/dashboard/public/assets/{ModelsPage-CveFVTw3.js → ModelsPage-CdnaDoYH.js} +1 -1
  50. package/dist/dashboard/public/assets/{NotificationsPage-CVAGh1SG.js → NotificationsPage-t0AlQJeY.js} +1 -1
  51. package/dist/dashboard/public/assets/{PageHeader-BhUyZtbe.js → PageHeader-CcbxBdii.js} +1 -1
  52. package/dist/dashboard/public/assets/{QueriesPage-BMpvUeTX.js → QueriesPage-Da9Zl09P.js} +1 -1
  53. package/dist/dashboard/public/assets/{RedisPage-FPrKgNrc.js → RedisPage-C8Elpfq1.js} +1 -1
  54. package/dist/dashboard/public/assets/{RequestsPage-6JVqr7xE.js → RequestsPage-Bobnh4sB.js} +1 -1
  55. package/dist/dashboard/public/assets/{SchedulePage-DOt6jqTT.js → SchedulePage-vBUwBEW5.js} +1 -1
  56. package/dist/dashboard/public/assets/{ViewsPage-RG6Ze2rn.js → ViewsPage-DO70tKip.js} +1 -1
  57. package/dist/dashboard/public/assets/{calendar-CEjtgImi.js → calendar-36iGdS4K.js} +1 -1
  58. package/dist/dashboard/public/assets/{circle-check-big-BnRBDUDo.js → circle-check-big--KQSq_oR.js} +1 -1
  59. package/dist/dashboard/public/assets/{eye-tfj-u8EL.js → eye-B9uY1FJW.js} +1 -1
  60. package/dist/dashboard/public/assets/{index-OMQZjJAo.js → index-C1yiPBCx.js} +2 -2
  61. package/dist/dashboard/public/assets/{types-Cubd9hBF.js → types-DM4HdBI5.js} +1 -1
  62. package/dist/dashboard/public/assets/{zap-Bh7DgMLC.js → zap-ChtSEZU9.js} +1 -1
  63. package/dist/dashboard/public/index.html +1 -1
  64. package/dist/nestlens.module.d.ts.map +1 -1
  65. package/dist/nestlens.module.js +20 -2
  66. package/dist/nestlens.module.js.map +1 -1
  67. package/dist/watchers/exception.watcher.d.ts +5 -2
  68. package/dist/watchers/exception.watcher.d.ts.map +1 -1
  69. package/dist/watchers/exception.watcher.js +22 -10
  70. package/dist/watchers/exception.watcher.js.map +1 -1
  71. package/dist/watchers/graphql/graphql.watcher.d.ts +1 -1
  72. package/dist/watchers/request.watcher.d.ts +4 -1
  73. package/dist/watchers/request.watcher.d.ts.map +1 -1
  74. package/dist/watchers/request.watcher.js +24 -8
  75. package/dist/watchers/request.watcher.js.map +1 -1
  76. package/dist/watchers/schedule.watcher.d.ts +8 -8
  77. package/dist/watchers/schedule.watcher.d.ts.map +1 -1
  78. package/dist/watchers/schedule.watcher.js +30 -13
  79. package/dist/watchers/schedule.watcher.js.map +1 -1
  80. package/package.json +6 -2
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.controller.js","sourceRoot":"","sources":["../../src/api/dashboard.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAqF;AAErF,+BAA4B;AAC5B,2BAAgC;AAChC,wDAAqE;AACrE,2CAA4C;AAIrC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAG9B,YAEmB,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAAgB;QAEvC,8DAA8D;QAC9D,IAAI,CAAC,aAAa,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACpE,CAAC;IAGD,cAAc,CAAQ,GAAY,EAAS,GAAa;QACtD,+DAA+D;QAC/D,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACnC,OAAO,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC;QAClD,CAAC;QAED,MAAM,SAAS,GAAG,IAAA,WAAI,EAAC,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;QACzD,IAAI,IAAA,eAAU,EAAC,SAAS,CAAC,EAAE,CAAC;YAC1B,GAAG,CAAC,QAA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G,GAAE,CAAA;;;;0DAErB;AAGD;IADC,IAAA,YAAG,EAAC,WAAW,CAAC;IACK,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+DAE1B;AAGD;IADC,IAAA,YAAG,EAAC,SAAS,CAAC;IACI,WAAA,IAAA,YAAG,GAAE,CAAA;;;;4DAEvB;AAGD;IADC,IAAA,YAAG,EAAC,aAAa,CAAC;IACM,WAAA,IAAA,YAAG,GAAE,CAAA;;;;kEAE7B;8BAxPU,mBAAmB;IAF/B,IAAA,mBAAU,EAAC,UAAU,CAAC;IACtB,IAAA,kBAAS,EAAC,yBAAa,CAAC;IAKpB,WAAA,IAAA,eAAM,EAAC,iCAAe,CAAC,CAAA;;GAJf,mBAAmB,CAoQ/B"}
1
+ {"version":3,"file":"dashboard.controller.js","sourceRoot":"","sources":["../../src/api/dashboard.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,2BAAkD;AAClD,+BAAmD;AACnD,wDAAqE;AACrE,2CAA4C;AAE5C;;;;GAIG;AACH,MAAM,UAAU,GAA2B;IACzC,OAAO,EAAE,0BAA0B;IACnC,KAAK,EAAE,uCAAuC;IAC9C,MAAM,EAAE,uCAAuC;IAC/C,MAAM,EAAE,yBAAyB;IACjC,OAAO,EAAE,iCAAiC;IAC1C,MAAM,EAAE,iCAAiC;IACzC,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,cAAc;IACtB,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,YAAY;IACtB,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,+BAA+B;IACvC,MAAM,EAAE,2BAA2B;CACpC,CAAC;AAIK,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAG9B,YAEmB,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAA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estjs/core';
2
3
  /**
3
4
  * Global exception filter for NestLens API.
4
5
  * Transforms all exceptions into standardized ApiResponse format.
5
6
  */
6
7
  export declare class NestLensApiExceptionFilter implements ExceptionFilter {
8
+ private readonly httpAdapterHost;
7
9
  private readonly logger;
8
10
  private readonly isDevelopment;
11
+ constructor(httpAdapterHost: HttpAdapterHost);
9
12
  /**
10
13
  * Check if an exception is HttpException-like using duck typing.
11
14
  * This handles cases where the exception comes from a different
@@ -1 +1 @@
1
- {"version":3,"file":"api-exception.filter.d.ts","sourceRoot":"","sources":["../../../src/api/filters/api-exception.filter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEf,aAAa,EAId,MAAM,gBAAgB,CAAC;AAMxB;;;GAGG;AACH,qBACa,0BAA2B,YAAW,eAAe;IAChE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IACpD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAyC;IAEvE;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAgB3B,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI;IAkGpD;;OAEG;IACH,OAAO,CAAC,wBAAwB;CAcjC"}
1
+ {"version":3,"file":"api-exception.filter.d.ts","sourceRoot":"","sources":["../../../src/api/filters/api-exception.filter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEf,aAAa,EAId,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C;;;GAGG;AACH,qBACa,0BAA2B,YAAW,eAAe;IAIpD,OAAO,CAAC,QAAQ,CAAC,eAAe;IAH5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IACpD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAyC;gBAE1C,eAAe,EAAE,eAAe;IAE7D;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAgB3B,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI;IAkGpD;;OAEG;IACH,OAAO,CAAC,wBAAwB;CAcjC"}
@@ -5,9 +5,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
8
11
  Object.defineProperty(exports, "__esModule", { value: true });
9
12
  exports.NestLensApiExceptionFilter = void 0;
10
13
  const common_1 = require("@nestjs/common");
14
+ const core_1 = require("@nestjs/core");
11
15
  const constants_1 = require("../../api/constants");
12
16
  const exceptions_1 = require("../../api/exceptions");
13
17
  /**
@@ -15,7 +19,8 @@ const exceptions_1 = require("../../api/exceptions");
15
19
  * Transforms all exceptions into standardized ApiResponse format.
16
20
  */
17
21
  let NestLensApiExceptionFilter = class NestLensApiExceptionFilter {
18
- constructor() {
22
+ constructor(httpAdapterHost) {
23
+ this.httpAdapterHost = httpAdapterHost;
19
24
  this.logger = new common_1.Logger('NestLensApi');
20
25
  this.isDevelopment = process.env.NODE_ENV !== 'production';
21
26
  }
@@ -114,7 +119,7 @@ let NestLensApiExceptionFilter = class NestLensApiExceptionFilter {
114
119
  duration,
115
120
  },
116
121
  };
117
- response.status(status).json(apiResponse);
122
+ this.httpAdapterHost.httpAdapter.reply(response, apiResponse, status);
118
123
  }
119
124
  /**
120
125
  * Map HTTP status codes to error codes.
@@ -136,6 +141,7 @@ let NestLensApiExceptionFilter = class NestLensApiExceptionFilter {
136
141
  };
137
142
  exports.NestLensApiExceptionFilter = NestLensApiExceptionFilter;
138
143
  exports.NestLensApiExceptionFilter = NestLensApiExceptionFilter = __decorate([
139
- (0, common_1.Catch)()
144
+ (0, common_1.Catch)(),
145
+ __metadata("design:paramtypes", [core_1.HttpAdapterHost])
140
146
  ], NestLensApiExceptionFilter);
141
147
  //# sourceMappingURL=api-exception.filter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-exception.filter.js","sourceRoot":"","sources":["../../../src/api/filters/api-exception.filter.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAOwB;AAExB,+CAA4D;AAE5D,iDAAwD;AAExD;;;GAGG;AAEI,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAAhC;QACY,WAAM,GAAG,IAAI,eAAM,CAAC,aAAa,CAAC,CAAC;QACnC,kBAAa,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;IA0IzE,CAAC;IAxIC;;;;OAIG;IACK,mBAAmB,CAAC,SAAkB;QAM5C,OAAO,CACL,SAAS,KAAK,IAAI;YAClB,OAAO,SAAS,KAAK,QAAQ;YAC7B,WAAW,IAAI,SAAS;YACxB,aAAa,IAAI,SAAS;YAC1B,OAAQ,SAAoC,CAAC,SAAS,KAAK,UAAU;YACrE,OAAQ,SAAsC,CAAC,WAAW,KAAK,UAAU,CAC1E,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,SAAkB,EAAE,IAAmB;QAC3C,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,MAAM,QAAQ,GAAG,GAAG,CAAC,WAAW,EAAY,CAAC;QAC7C,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,EAAE,CAAC;QAEjC,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;QAExC,IAAI,MAAc,CAAC;QACnB,IAAI,QAAkB,CAAC;QAEvB,IAAI,SAAS,YAAY,iCAAoB,EAAE,CAAC;YAC9C,sCAAsC;YACtC,MAAM,GAAG,SAAS,CAAC,SAAS,EAAE,CA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IY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,cAAK,GAAE;qCAKwC,sBAAe;GAJlD,0BAA0B,CA8ItC"}
@@ -1 +1 @@
1
- import{j as a,L as d}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as A,P as L,N as R,L as $}from"./PageHeader-BhUyZtbe.js";import{s as I,T as s,D as H,b as S}from"./types-Cubd9hBF.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
+ import{j as a,L as d}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as A,P as L,N as R,L as $}from"./PageHeader-CcbxBdii.js";import{s as I,T as s,D as H,b as S}from"./types-DM4HdBI5.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 +1 @@
1
- import{j as a,H as o}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as M,P as R,N as A,L as F}from"./PageHeader-BhUyZtbe.js";import{h as H,T as i,D as P,b as B}from"./types-Cubd9hBF.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
+ import{j as a,H as o}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as M,P as R,N as A,L as F}from"./PageHeader-CcbxBdii.js";import{h as H,T as i,D as P,b as B}from"./types-DM4HdBI5.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 +1 @@
1
- import{j as T}from"./index-OMQZjJAo.js";import{f as H,b as p,e as j,u as q}from"./vendor-B2nVRih0.js";const Ye=6048e5,Ve=864e5,S=43200,L=1440,K=Symbol.for("constructDateFrom");function C(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&K in t?t[K](e):t instanceof Date?new t.constructor(e):new Date(e)}function k(t,e){return C(e||t,t)}let G={};function X(){return G}function I(t){const e=k(t),a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return a.setUTCFullYear(e.getFullYear()),+t-+a}function O(t,...e){const a=C.bind(null,t||e.find(r=>typeof r=="object"));return e.map(a)}function P(t,e){const a=+k(t)-+k(e);return a<0?-1:a>0?1:a}function Y(t){return C(t,Date.now())}function V(t,e,a){const[r,n]=O(a==null?void 0:a.in,t,e),o=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return o*12+i}function B(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function Q(t,e){return+k(t)-+k(e)}function z(t,e){const a=k(t,e==null?void 0:e.in);return a.setHours(23,59,59,999),a}function _(t,e){const a=k(t,e==null?void 0:e.in),r=a.getMonth();return a.setFullYear(a.getFullYear(),r+1,0),a.setHours(23,59,59,999),a}function $(t,e){const a=k(t,e==null?void 0:e.in);return+z(a,e)==+_(a,e)}function J(t,e,a){const[r,n,o]=O(a==null?void 0:a.in,t,t,e),i=P(n,o),s=Math.abs(V(n,o));if(s<1)return 0;n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*s);let b=P(n,o)===-i;$(r)&&s===1&&P(r,o)===1&&(b=!1);const f=i*(s-+b);return f===0?0:f}function Z(t,e,a){const r=Q(t,e)/1e3;return B(a==null?void 0:a.roundingMethod)(r)}const ee={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},te=(t,e,a)=>{let r;const n=ee[t];return typeof n=="string"?r=n:e===1?r=n.one:r=n.other.replace("{{count}}",e.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};function M(t){return(e={})=>{const a=e.width?String(e.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}const ae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},re={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},se={date:M({formats:ae,defaultWidth:"full"}),time:M({formats:re,defaultWidth:"full"}),dateTime:M({formats:ne,defaultWidth:"full"})},ie={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},le=(t,e,a,r)=>ie[t];function v(t){return(e,a)=>{const r=a!=null&&a.context?String(a.context):"standalone";let n;if(r==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,s=a!=null&&a.width?String(a.width):i;n=t.formattingValues[s]||t.formattingValues[i]}else{const i=t.defaultWidth,s=a!=null&&a.width?String(a.width):t.defaultWidth;n=t.values[s]||t.values[i]}const o=t.argumentCallback?t.argumentCallback(e):e;return n[o]}}const oe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ue={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},de={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ce={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},me={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},fe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ge=(t,e)=>{const a=Number(t),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},he={ordinalNumber:ge,era:v({values:oe,defaultWidth:"wide"}),quarter:v({values:ue,defaultWidth:"wide",argumentCallback:t=>t-1}),month:v({values:de,defaultWidth:"wide"}),day:v({values:ce,defaultWidth:"wide"}),dayPeriod:v({values:me,defaultWidth:"wide",formattingValues:fe,defaultFormattingWidth:"wide"})};function E(t){return(e,a={})=>{const r=a.width,n=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(n);if(!o)return null;const i=o[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],b=Array.isArray(s)?be(s,h=>h.test(i)):ye(s,h=>h.test(i));let f;f=t.valueCallback?t.valueCallback(b):b,f=a.valueCallback?a.valueCallback(f):f;const g=e.slice(i.length);return{value:f,rest:g}}}function ye(t,e){for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&e(t[a]))return a}function be(t,e){for(let a=0;a<t.length;a++)if(e(t[a]))return a}function pe(t){return(e,a={})=>{const r=e.match(t.matchPattern);if(!r)return null;const n=r[0],o=e.match(t.parsePattern);if(!o)return null;let i=t.valueCallback?t.valueCallback(o[0]):o[0];i=a.valueCallback?a.valueCallback(i):i;const s=e.slice(n.length);return{value:i,rest:s}}}const ke=/^(\d+)(th|st|nd|rd)?/i,xe=/\d+/i,Ne={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ve={any:[/^b/i,/^(a|c)/i]},Ee={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},we={any:[/1/i,/2/i,/3/i,/4/i]},Se={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Te={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Pe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Me={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},De={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ce={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Oe={ordinalNumber:pe({matchPattern:ke,parsePattern:xe,valueCallback:t=>parseInt(t,10)}),era:E({matchPatterns:Ne,defaultMatchWidth:"wide",parsePatterns:ve,defaultParseWidth:"any"}),quarter:E({matchPatterns:Ee,defaultMatchWidth:"wide",parsePatterns:we,defaultParseWidth:"any",valueCallback:t=>t+1}),month:E({matchPatterns:Se,defaultMatchWidth:"wide",parsePatterns:Te,defaultParseWidth:"any"}),day:E({matchPatterns:Pe,defaultMatchWidth:"wide",parsePatterns:Me,defaultParseWidth:"any"}),dayPeriod:E({matchPatterns:De,defaultMatchWidth:"any",parsePatterns:Ce,defaultParseWidth:"any"})},Re={code:"en-US",formatDistance:te,formatLong:se,formatRelative:le,localize:he,match:Oe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ae(t,e,a){const r=X(),n=(a==null?void 0:a.locale)??r.locale??Re,o=2520,i=P(t,e);if(isNaN(i))throw new RangeError("Invalid time value");const s=Object.assign({},a,{addSuffix:a==null?void 0:a.addSuffix,comparison:i}),[b,f]=O(a==null?void 0:a.in,...i>0?[e,t]:[t,e]),g=Z(f,b),h=(I(f)-I(b))/1e3,m=Math.round((g-h)/60);let u;if(m<2)return a!=null&&a.includeSeconds?g<5?n.formatDistance("lessThanXSeconds",5,s):g<10?n.formatDistance("lessThanXSeconds",10,s):g<20?n.formatDistance("lessThanXSeconds",20,s):g<40?n.formatDistance("halfAMinute",0,s):g<60?n.formatDistance("lessThanXMinutes",1,s):n.formatDistance("xMinutes",1,s):m===0?n.formatDistance("lessThanXMinutes",1,s):n.formatDistance("xMinutes",m,s);if(m<45)return n.formatDistance("xMinutes",m,s);if(m<90)return n.formatDistance("aboutXHours",1,s);if(m<L){const l=Math.round(m/60);return n.formatDistance("aboutXHours",l,s)}else{if(m<o)return n.formatDistance("xDays",1,s);if(m<S){const l=Math.round(m/L);return n.formatDistance("xDays",l,s)}else if(m<S*2)return u=Math.round(m/S),n.formatDistance("aboutXMonths",u,s)}if(u=J(f,b),u<12){const l=Math.round(m/S);return n.formatDistance("xMonths",l,s)}else{const l=u%12,d=Math.trunc(u/12);return l<3?n.formatDistance("aboutXYears",d,s):l<9?n.formatDistance("overXYears",d,s):n.formatDistance("almostXYears",d+1,s)}}function Be(t,e){return Ae(t,Y(t),e)}function Qe(t){if(t.includes("T")&&(t.includes("Z")||t.includes("+")))return new Date(t);const e=t.replace(" ","T")+"Z";return new Date(e)}const D={request:{displayName:"Request",pluralName:"Requests",route:"requests",icon:"Globe",filters:{methods:{urlKey:"methods",displayName:"Method",values:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","GRAPHQL"]},statuses:{urlKey:"statuses",displayName:"Status",values:[]},paths:{urlKey:"paths",displayName:"Path",values:[]},controllers:{urlKey:"controllers",displayName:"Controller",values:[]},hostnames:{urlKey:"hostnames",displayName:"Hostname",values:[]},ips:{urlKey:"ips",displayName:"IP",values:[]}}},query:{displayName:"Query",pluralName:"Queries",route:"queries",icon:"Database",filters:{types:{urlKey:"queryTypes",displayName:"Type",values:["SELECT","INSERT","UPDATE","DELETE","CREATE","ALTER","DROP","TRUNCATE"]},sources:{urlKey:"sources",displayName:"Source",values:["typeorm","prisma","mongoose","sequelize","knex","mikro-orm","drizzle"]}}},exception:{displayName:"Exception",pluralName:"Exceptions",route:"exceptions",icon:"AlertTriangle",filters:{names:{urlKey:"names",displayName:"Name",values:[]},methods:{urlKey:"methods",displayName:"Method",values:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]},paths:{urlKey:"paths",displayName:"Path",values:[]}}},log:{displayName:"Log",pluralName:"Logs",route:"logs",icon:"FileText",filters:{levels:{urlKey:"levels",displayName:"Level",values:["log","error","warn","debug","verbose","fatal","info"]},contexts:{urlKey:"contexts",displayName:"Context",values:[]}}},event:{displayName:"Event",pluralName:"Events",route:"events",icon:"Zap",filters:{names:{urlKey:"eventNames",displayName:"Event",values:[]}}},job:{displayName:"Job",pluralName:"Jobs",route:"jobs",icon:"Briefcase",filters:{names:{urlKey:"jobNames",displayName:"Job",values:[]},statuses:{urlKey:"jobStatuses",displayName:"Status",values:["waiting","active","completed","failed","delayed","paused","stuck"]},queues:{urlKey:"queues",displayName:"Queue",values:[]}}},schedule:{displayName:"Schedule",pluralName:"Schedule",route:"schedule",icon:"Clock",filters:{names:{urlKey:"scheduleNames",displayName:"Task",values:[]},statuses:{urlKey:"scheduleStatuses",displayName:"Status",values:["started","completed","failed","skipped","running"]}}},cache:{displayName:"Cache",pluralName:"Cache",route:"cache",icon:"HardDrive",filters:{operations:{urlKey:"cacheOperations",displayName:"Operation",values:["get","set","del","clear","has","reset","mget","mset"]}}},mail:{displayName:"Mail",pluralName:"Mail",route:"mail",icon:"Mail",filters:{statuses:{urlKey:"mailStatuses",displayName:"Status",values:["sent","failed","pending","queued","delivered","bounced","error"]}}},"http-client":{displayName:"HTTP Client",pluralName:"HTTP Client",route:"http-client",icon:"Globe",filters:{methods:{urlKey:"methods",displayName:"Method",values:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]},statuses:{urlKey:"statuses",displayName:"Status",values:[]},hostnames:{urlKey:"hostnames",displayName:"Hostname",values:[]}}},redis:{displayName:"Redis",pluralName:"Redis",route:"redis",icon:"Database",filters:{commands:{urlKey:"redisCommands",displayName:"Command",values:["GET","SET","DEL","HGET","HSET","HDEL","HGETALL","LPUSH","RPUSH","LPOP","RPOP","LRANGE","SADD","SREM","SMEMBERS","ZADD","ZRANGE","ZREM","EXPIRE","TTL","KEYS","SCAN","PING","INFO","INCR","DECR","MGET","MSET","PUBLISH","SUBSCRIBE"]},statuses:{urlKey:"redisStatuses",displayName:"Status",values:["success","failed","error","timeout"]}}},model:{displayName:"Model",pluralName:"Models",route:"models",icon:"Box",filters:{actions:{urlKey:"modelActions",displayName:"Action",values:["find","findOne","findMany","create","update","delete","save","remove","count","aggregate","upsert","createMany","updateMany","deleteMany"]},entities:{urlKey:"entities",displayName:"Entity",values:[]},sources:{urlKey:"modelSources",displayName:"Source",values:["typeorm","prisma","mongoose","sequelize","mikro-orm","drizzle"]}}},notification:{displayName:"Notification",pluralName:"Notifications",route:"notifications",icon:"Bell",filters:{types:{urlKey:"notificationTypes",displayName:"Type",values:["email","sms","push","socket","webhook","slack","telegram","discord"]},statuses:{urlKey:"notificationStatuses",displayName:"Status",values:["sent","failed","pending","delivered","read","error","queued"]}}},view:{displayName:"View",pluralName:"Views",route:"views",icon:"Layout",filters:{formats:{urlKey:"viewFormats",displayName:"Format",values:["html","json","xml","pdf","csv","text","markdown"]},statuses:{urlKey:"viewStatuses",displayName:"Status",values:["rendered","error","failed","cached","success"]}}},command:{displayName:"Command",pluralName:"Commands",route:"commands",icon:"Terminal",filters:{statuses:{urlKey:"commandStatuses",displayName:"Status",values:["executing","completed","failed","cancelled","timeout","running"]},names:{urlKey:"commandNames",displayName:"Command",values:[]}}},gate:{displayName:"Gate",pluralName:"Gates",route:"gates",icon:"Shield",filters:{names:{urlKey:"gateNames",displayName:"Gate",values:[]},results:{urlKey:"gateResults",displayName:"Result",values:["allowed","denied"]}}},batch:{displayName:"Batch",pluralName:"Batches",route:"batches",icon:"Layers",filters:{operations:{urlKey:"batchOperations",displayName:"Operation",values:["insert","update","delete","upsert","sync"]},statuses:{urlKey:"batchStatuses",displayName:"Status",values:["pending","processing","completed","failed","partial","cancelled"]}}},dump:{displayName:"Dump",pluralName:"Dumps",route:"dumps",icon:"HardDrive",filters:{operations:{urlKey:"dumpOperations",displayName:"Operation",values:["export","import","backup","restore","migrate","sync"]},formats:{urlKey:"dumpFormats",displayName:"Format",values:["json","csv","xml","sql","yaml","binary","xlsx"]},statuses:{urlKey:"dumpStatuses",displayName:"Status",values:["pending","completed","failed","error","success","cancelled","running"]}}},graphql:{displayName:"GraphQL",pluralName:"GraphQL",route:"graphql",icon:"Hexagon",filters:{operationTypes:{urlKey:"operationTypes",displayName:"Type",values:["query","mutation","subscription"]},operationNames:{urlKey:"operationNames",displayName:"Operation",values:[]},statuses:{urlKey:"statuses",displayName:"Status",values:[]},ips:{urlKey:"ips",displayName:"IP",values:[]}}}},Le={requests:"request",queries:"query",exceptions:"exception",logs:"log",events:"event",jobs:"job",schedule:"schedule",cache:"cache",mail:"mail","http-client":"http-client",redis:"redis",models:"model",notifications:"notification",views:"view",commands:"command",gates:"gate",batches:"batch",dumps:"dump",graphql:"graphql"};function Ke(t){if(t in D)return D[t];const e=Le[t];if(e)return D[e]}const W=Ke;function ze(t){const[e,a]=H(),r=W(t),n=p.useCallback(u=>{if(u==="tags")return"tags";if(!r)return u;const l=r.filters[u];return(l==null?void 0:l.urlKey)||u},[r]),o=p.useMemo(()=>{const u={};if(!r)return u;const l=Object.values(r.filters).map(d=>d.urlKey);l.push("tags","search");for(const d of l){const c=e.get(d);c&&(u[d]=c.split(",").filter(Boolean))}return u},[e,r]),i=p.useCallback((u,l)=>{!r&&u!=="tags"&&console.warn("[useEntryFilters] No config found for entry type, using category as urlKey");const d=n(u),c=o[d]||[];if(!c.includes(l)){const y=new URLSearchParams(e);y.set(d,[...c,l].join(",")),a(y,{replace:!0})}},[r,n,o,e,a]),s=p.useCallback((u,l)=>{const c=(o[u]||[]).filter(x=>x!==l),y=new URLSearchParams(e);c.length>0?y.set(u,c.join(",")):y.delete(u),a(y,{replace:!0})},[o,e,a]),b=p.useCallback(()=>{a({},{replace:!0})},[a]),f=p.useMemo(()=>o,[o]),g=p.useMemo(()=>{if(!r)return[];const u=[];for(const[l,d]of Object.entries(o)){if(d.length===0)continue;let c=l,y=l==="tags"?"Tag":l;for(const[x,N]of Object.entries(r.filters))if(N.urlKey===l){c=x,y=N.displayName;break}u.push({category:c,urlKey:l,displayName:y,values:d})}return u},[o,r]),h=p.useMemo(()=>{const u=[];for(const l of g)for(const d of l.values)u.push({category:l.displayName,value:d.toUpperCase(),onRemove:()=>s(l.urlKey,d)});return u},[g,s]),m=g.length>0;return{addFilter:i,removeFilter:s,clearAll:b,serverFilters:f,activeFilters:g,headerFilters:h,hasFilters:m,getUrlKey:n}}function Ie(t,e){if(e==="tags")return"tags";const a=W(t);if(!a)return e;const r=a.filters[e];return(r==null?void 0:r.urlKey)||e}const F=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","GRAPHQL"],U=["bg-rose-100 text-rose-800 dark:bg-rose-900 dark:text-rose-400","bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-400","bg-lime-100 text-lime-800 dark:bg-lime-900 dark:text-lime-400","bg-emerald-100 text-emerald-800 dark:bg-emerald-900 dark:text-emerald-400","bg-sky-100 text-sky-800 dark:bg-sky-900 dark:text-sky-400","bg-violet-100 text-violet-800 dark:bg-violet-900 dark:text-violet-400","bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-900 dark:text-fuchsia-400","bg-teal-100 text-teal-800 dark:bg-teal-900 dark:text-teal-400"];function We(t){let e=0;for(let a=0;a<t.length;a++)e=(e<<5)-e+t.charCodeAt(a),e=e&e;return Math.abs(e)%U.length}const Fe=["localhost"],Ue=(t,e)=>{if(e&&e!=="tag")return e;if(/^(\d{1,3}\.){3}\d{1,3}$/.test(t))return"ips";const a=t.toUpperCase();if(F.includes(a))return"methods";const r=parseInt(t,10);return!isNaN(r)&&r>=100&&r<600?"statuses":/^[a-fA-F0-9:]+$/.test(t)&&t.includes(":")&&!t.includes(".")?"ips":t.includes("#")||t.includes("::")||/Controller\./i.test(t)?"controllers":Fe.includes(t.toLowerCase())||(t.includes(".")||t.includes(":"))&&!t.startsWith("/")&&!/^\d+$/.test(t)?"hostnames":"tags"};function He(t){const e=t.toUpperCase();if(t.startsWith("/"))return"bg-cyan-100 text-cyan-800 dark:bg-cyan-900/30 dark:text-cyan-400";if(/^(\d{1,3}\.){3}\d{1,3}$/.test(t)||/^[a-fA-F0-9:]+$/.test(t)&&t.includes(":")&&!t.includes("."))return"bg-indigo-100 text-indigo-800 dark:bg-indigo-900/30 dark:text-indigo-400";if(t.includes("#")||t.includes("::")||/Controller\./i.test(t))return"bg-teal-100 text-teal-800 dark:bg-teal-900/30 dark:text-teal-400";if(e.startsWith("USER:"))return"bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-400";const a=t.toLowerCase(),r=/:\d+$/.test(t),n=/\.(com|org|net|io|dev|app|co|local|internal)$/i.test(t),o=/^[A-Z0-9_.]+$/.test(t)&&t.includes(".");if(a==="localhost"||r&&!t.startsWith("/")||n&&!o)return"bg-slate-100 text-slate-800 dark:bg-slate-700 dark:text-slate-300";if(e==="GET")return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200";if(e==="POST")return"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200";if(e==="PUT")return"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200";if(e==="PATCH")return"bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200";if(e==="DELETE")return"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200";if(["HEAD","OPTIONS"].includes(e))return"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300";if(e==="GRAPHQL")return"bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-200";const i=parseInt(e,10);if(!isNaN(i)&&i>=100&&i<600)return i>=500?"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400":i>=400?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400":i>=300?"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400":"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400";if(e==="SUCCESS"||e==="2XX"||e==="HIT")return"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400";if(e==="REDIRECT"||e==="3XX")return"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400";if(e==="WARNING"||e==="WARN"||e==="4XX"||e==="CLIENT-ERROR")return"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400";if(e==="ERROR"||e==="5XX"||e==="HTTP-ERROR"||e==="VALIDATION-ERROR"||e==="FAILED")return"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400";if(e==="SLOW"||e==="SLOW QUERY")return"bg-orange-100 text-orange-800 dark:bg-orange-900/30 dark:text-orange-400";if(e==="N+1"||e==="N1")return"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300";if(["SELECT","INSERT","UPDATE"].includes(e))return"bg-cyan-100 text-cyan-800 dark:bg-cyan-900/30 dark:text-cyan-400";if(e==="DEBUG")return"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200";if(e==="LOG"||e==="INFO")return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200";if(e==="VERBOSE")return"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300";if(e==="QUERY"||e==="MUTATION"||e==="SUBSCRIPTION"){if(e==="QUERY")return"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200";if(e==="MUTATION")return"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200";if(e==="SUBSCRIPTION")return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"}return e==="REQUEST"?"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200":e==="EXCEPTION"?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200":e==="LOG"||e==="EVENT"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":e==="JOB"?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":e==="CACHE"?"bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-200":e==="MAIL"?"bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-200":e==="SCHEDULE"?"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300":e==="HTTP-CLIENT"?"bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-200":e==="RESOLVED"||e==="COMPLETED"||e==="SENT"||e==="ACTIVE"?"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400":e==="WAITING"||e==="DELAYED"||e==="PENDING"?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400":e==="MISS"?"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300":e==="GET"&&!F.includes(e)?"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400":e==="SET"?"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400":e==="DEL"||e==="DELETE"?"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400":e==="CLEAR"?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400":e==="STARTED"?"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400":e==="TYPEORM"?"bg-orange-100 text-orange-800 dark:bg-orange-900/30 dark:text-orange-400":e==="PRISMA"?"bg-indigo-100 text-indigo-800 dark:bg-indigo-900/30 dark:text-indigo-400":e==="MONGOOSE"?"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400":e==="SEQUELIZE"?"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400":e==="KNEX"?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400":e==="MIKRO-ORM"?"bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-400":e==="NORMAL"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":U[We(e)]}function je({children:t,listType:e,filterType:a="tag",filterValue:r,onClick:n,clickable:o=!0,className:i="",ariaLabel:s}){const b=j(),f=q(),g=c=>{if(c.preventDefault(),c.stopPropagation(),n){n(c);return}if(e&&o){const y=r||String(t),x=a&&a!=="tag"?Ie(e,a):Ue(y,a),N=f.pathname,w=N===`/${e}`||N.startsWith(`/${e}/`)?new URLSearchParams(f.search):new URLSearchParams,R=w.get(x);if(R){const A=R.split(",");A.includes(y)||w.set(x,[...A,y].join(","))}else w.set(x,y);b(`/${e}?${w.toString()}`)}},h=o&&(!!n||!!e),m=He(String(t)),u=h?"cursor-pointer hover:scale-105 transition-transform":"",l=String(t).toUpperCase(),d=s||(h?`Click to filter by ${l}`:void 0);return T.jsx("span",{onClick:h?g:void 0,role:h?"button":void 0,"aria-label":d,tabIndex:h?0:void 0,onKeyDown:h?c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),g(c))}:void 0,title:l,className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-bold uppercase tracking-wide max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap shadow ${m} ${u} ${h?"focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-1":""} ${i}`,children:l})}function _e({items:t,listType:e,filterType:a="tag",maxItems:r=99,clickable:n=!0}){if(!t||t.length===0)return null;const o=t.slice(0,r),i=t.length-r;return T.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[o.map(s=>T.jsx(je,{listType:e,filterType:a,clickable:n,children:s},s)),i>0&&T.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:["+",i]})]})}export{_e as B,je as C,X as a,I as b,C as c,Ye as d,Re as e,Be as f,He as g,Ve as m,O as n,Qe as p,k as t,ze as u};
1
+ import{j as T}from"./index-C1yiPBCx.js";import{f as H,b as p,e as j,u as q}from"./vendor-B2nVRih0.js";const Ye=6048e5,Ve=864e5,S=43200,L=1440,K=Symbol.for("constructDateFrom");function C(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&K in t?t[K](e):t instanceof Date?new t.constructor(e):new Date(e)}function k(t,e){return C(e||t,t)}let G={};function X(){return G}function I(t){const e=k(t),a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return a.setUTCFullYear(e.getFullYear()),+t-+a}function O(t,...e){const a=C.bind(null,t||e.find(r=>typeof r=="object"));return e.map(a)}function P(t,e){const a=+k(t)-+k(e);return a<0?-1:a>0?1:a}function Y(t){return C(t,Date.now())}function V(t,e,a){const[r,n]=O(a==null?void 0:a.in,t,e),o=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return o*12+i}function B(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function Q(t,e){return+k(t)-+k(e)}function z(t,e){const a=k(t,e==null?void 0:e.in);return a.setHours(23,59,59,999),a}function _(t,e){const a=k(t,e==null?void 0:e.in),r=a.getMonth();return a.setFullYear(a.getFullYear(),r+1,0),a.setHours(23,59,59,999),a}function $(t,e){const a=k(t,e==null?void 0:e.in);return+z(a,e)==+_(a,e)}function J(t,e,a){const[r,n,o]=O(a==null?void 0:a.in,t,t,e),i=P(n,o),s=Math.abs(V(n,o));if(s<1)return 0;n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*s);let b=P(n,o)===-i;$(r)&&s===1&&P(r,o)===1&&(b=!1);const f=i*(s-+b);return f===0?0:f}function Z(t,e,a){const r=Q(t,e)/1e3;return B(a==null?void 0:a.roundingMethod)(r)}const ee={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},te=(t,e,a)=>{let r;const n=ee[t];return typeof n=="string"?r=n:e===1?r=n.one:r=n.other.replace("{{count}}",e.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};function M(t){return(e={})=>{const a=e.width?String(e.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}const ae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},re={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},se={date:M({formats:ae,defaultWidth:"full"}),time:M({formats:re,defaultWidth:"full"}),dateTime:M({formats:ne,defaultWidth:"full"})},ie={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},le=(t,e,a,r)=>ie[t];function v(t){return(e,a)=>{const r=a!=null&&a.context?String(a.context):"standalone";let n;if(r==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,s=a!=null&&a.width?String(a.width):i;n=t.formattingValues[s]||t.formattingValues[i]}else{const i=t.defaultWidth,s=a!=null&&a.width?String(a.width):t.defaultWidth;n=t.values[s]||t.values[i]}const o=t.argumentCallback?t.argumentCallback(e):e;return n[o]}}const oe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ue={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},de={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ce={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},me={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},fe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ge=(t,e)=>{const a=Number(t),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},he={ordinalNumber:ge,era:v({values:oe,defaultWidth:"wide"}),quarter:v({values:ue,defaultWidth:"wide",argumentCallback:t=>t-1}),month:v({values:de,defaultWidth:"wide"}),day:v({values:ce,defaultWidth:"wide"}),dayPeriod:v({values:me,defaultWidth:"wide",formattingValues:fe,defaultFormattingWidth:"wide"})};function E(t){return(e,a={})=>{const r=a.width,n=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(n);if(!o)return null;const i=o[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],b=Array.isArray(s)?be(s,h=>h.test(i)):ye(s,h=>h.test(i));let f;f=t.valueCallback?t.valueCallback(b):b,f=a.valueCallback?a.valueCallback(f):f;const g=e.slice(i.length);return{value:f,rest:g}}}function ye(t,e){for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&e(t[a]))return a}function be(t,e){for(let a=0;a<t.length;a++)if(e(t[a]))return a}function pe(t){return(e,a={})=>{const r=e.match(t.matchPattern);if(!r)return null;const n=r[0],o=e.match(t.parsePattern);if(!o)return null;let i=t.valueCallback?t.valueCallback(o[0]):o[0];i=a.valueCallback?a.valueCallback(i):i;const s=e.slice(n.length);return{value:i,rest:s}}}const ke=/^(\d+)(th|st|nd|rd)?/i,xe=/\d+/i,Ne={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ve={any:[/^b/i,/^(a|c)/i]},Ee={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},we={any:[/1/i,/2/i,/3/i,/4/i]},Se={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Te={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Pe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Me={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},De={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ce={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Oe={ordinalNumber:pe({matchPattern:ke,parsePattern:xe,valueCallback:t=>parseInt(t,10)}),era:E({matchPatterns:Ne,defaultMatchWidth:"wide",parsePatterns:ve,defaultParseWidth:"any"}),quarter:E({matchPatterns:Ee,defaultMatchWidth:"wide",parsePatterns:we,defaultParseWidth:"any",valueCallback:t=>t+1}),month:E({matchPatterns:Se,defaultMatchWidth:"wide",parsePatterns:Te,defaultParseWidth:"any"}),day:E({matchPatterns:Pe,defaultMatchWidth:"wide",parsePatterns:Me,defaultParseWidth:"any"}),dayPeriod:E({matchPatterns:De,defaultMatchWidth:"any",parsePatterns:Ce,defaultParseWidth:"any"})},Re={code:"en-US",formatDistance:te,formatLong:se,formatRelative:le,localize:he,match:Oe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ae(t,e,a){const r=X(),n=(a==null?void 0:a.locale)??r.locale??Re,o=2520,i=P(t,e);if(isNaN(i))throw new RangeError("Invalid time value");const s=Object.assign({},a,{addSuffix:a==null?void 0:a.addSuffix,comparison:i}),[b,f]=O(a==null?void 0:a.in,...i>0?[e,t]:[t,e]),g=Z(f,b),h=(I(f)-I(b))/1e3,m=Math.round((g-h)/60);let u;if(m<2)return a!=null&&a.includeSeconds?g<5?n.formatDistance("lessThanXSeconds",5,s):g<10?n.formatDistance("lessThanXSeconds",10,s):g<20?n.formatDistance("lessThanXSeconds",20,s):g<40?n.formatDistance("halfAMinute",0,s):g<60?n.formatDistance("lessThanXMinutes",1,s):n.formatDistance("xMinutes",1,s):m===0?n.formatDistance("lessThanXMinutes",1,s):n.formatDistance("xMinutes",m,s);if(m<45)return n.formatDistance("xMinutes",m,s);if(m<90)return n.formatDistance("aboutXHours",1,s);if(m<L){const l=Math.round(m/60);return n.formatDistance("aboutXHours",l,s)}else{if(m<o)return n.formatDistance("xDays",1,s);if(m<S){const l=Math.round(m/L);return n.formatDistance("xDays",l,s)}else if(m<S*2)return u=Math.round(m/S),n.formatDistance("aboutXMonths",u,s)}if(u=J(f,b),u<12){const l=Math.round(m/S);return n.formatDistance("xMonths",l,s)}else{const l=u%12,d=Math.trunc(u/12);return l<3?n.formatDistance("aboutXYears",d,s):l<9?n.formatDistance("overXYears",d,s):n.formatDistance("almostXYears",d+1,s)}}function Be(t,e){return Ae(t,Y(t),e)}function Qe(t){if(t.includes("T")&&(t.includes("Z")||t.includes("+")))return new Date(t);const e=t.replace(" ","T")+"Z";return new Date(e)}const D={request:{displayName:"Request",pluralName:"Requests",route:"requests",icon:"Globe",filters:{methods:{urlKey:"methods",displayName:"Method",values:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","GRAPHQL"]},statuses:{urlKey:"statuses",displayName:"Status",values:[]},paths:{urlKey:"paths",displayName:"Path",values:[]},controllers:{urlKey:"controllers",displayName:"Controller",values:[]},hostnames:{urlKey:"hostnames",displayName:"Hostname",values:[]},ips:{urlKey:"ips",displayName:"IP",values:[]}}},query:{displayName:"Query",pluralName:"Queries",route:"queries",icon:"Database",filters:{types:{urlKey:"queryTypes",displayName:"Type",values:["SELECT","INSERT","UPDATE","DELETE","CREATE","ALTER","DROP","TRUNCATE"]},sources:{urlKey:"sources",displayName:"Source",values:["typeorm","prisma","mongoose","sequelize","knex","mikro-orm","drizzle"]}}},exception:{displayName:"Exception",pluralName:"Exceptions",route:"exceptions",icon:"AlertTriangle",filters:{names:{urlKey:"names",displayName:"Name",values:[]},methods:{urlKey:"methods",displayName:"Method",values:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]},paths:{urlKey:"paths",displayName:"Path",values:[]}}},log:{displayName:"Log",pluralName:"Logs",route:"logs",icon:"FileText",filters:{levels:{urlKey:"levels",displayName:"Level",values:["log","error","warn","debug","verbose","fatal","info"]},contexts:{urlKey:"contexts",displayName:"Context",values:[]}}},event:{displayName:"Event",pluralName:"Events",route:"events",icon:"Zap",filters:{names:{urlKey:"eventNames",displayName:"Event",values:[]}}},job:{displayName:"Job",pluralName:"Jobs",route:"jobs",icon:"Briefcase",filters:{names:{urlKey:"jobNames",displayName:"Job",values:[]},statuses:{urlKey:"jobStatuses",displayName:"Status",values:["waiting","active","completed","failed","delayed","paused","stuck"]},queues:{urlKey:"queues",displayName:"Queue",values:[]}}},schedule:{displayName:"Schedule",pluralName:"Schedule",route:"schedule",icon:"Clock",filters:{names:{urlKey:"scheduleNames",displayName:"Task",values:[]},statuses:{urlKey:"scheduleStatuses",displayName:"Status",values:["started","completed","failed","skipped","running"]}}},cache:{displayName:"Cache",pluralName:"Cache",route:"cache",icon:"HardDrive",filters:{operations:{urlKey:"cacheOperations",displayName:"Operation",values:["get","set","del","clear","has","reset","mget","mset"]}}},mail:{displayName:"Mail",pluralName:"Mail",route:"mail",icon:"Mail",filters:{statuses:{urlKey:"mailStatuses",displayName:"Status",values:["sent","failed","pending","queued","delivered","bounced","error"]}}},"http-client":{displayName:"HTTP Client",pluralName:"HTTP Client",route:"http-client",icon:"Globe",filters:{methods:{urlKey:"methods",displayName:"Method",values:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]},statuses:{urlKey:"statuses",displayName:"Status",values:[]},hostnames:{urlKey:"hostnames",displayName:"Hostname",values:[]}}},redis:{displayName:"Redis",pluralName:"Redis",route:"redis",icon:"Database",filters:{commands:{urlKey:"redisCommands",displayName:"Command",values:["GET","SET","DEL","HGET","HSET","HDEL","HGETALL","LPUSH","RPUSH","LPOP","RPOP","LRANGE","SADD","SREM","SMEMBERS","ZADD","ZRANGE","ZREM","EXPIRE","TTL","KEYS","SCAN","PING","INFO","INCR","DECR","MGET","MSET","PUBLISH","SUBSCRIBE"]},statuses:{urlKey:"redisStatuses",displayName:"Status",values:["success","failed","error","timeout"]}}},model:{displayName:"Model",pluralName:"Models",route:"models",icon:"Box",filters:{actions:{urlKey:"modelActions",displayName:"Action",values:["find","findOne","findMany","create","update","delete","save","remove","count","aggregate","upsert","createMany","updateMany","deleteMany"]},entities:{urlKey:"entities",displayName:"Entity",values:[]},sources:{urlKey:"modelSources",displayName:"Source",values:["typeorm","prisma","mongoose","sequelize","mikro-orm","drizzle"]}}},notification:{displayName:"Notification",pluralName:"Notifications",route:"notifications",icon:"Bell",filters:{types:{urlKey:"notificationTypes",displayName:"Type",values:["email","sms","push","socket","webhook","slack","telegram","discord"]},statuses:{urlKey:"notificationStatuses",displayName:"Status",values:["sent","failed","pending","delivered","read","error","queued"]}}},view:{displayName:"View",pluralName:"Views",route:"views",icon:"Layout",filters:{formats:{urlKey:"viewFormats",displayName:"Format",values:["html","json","xml","pdf","csv","text","markdown"]},statuses:{urlKey:"viewStatuses",displayName:"Status",values:["rendered","error","failed","cached","success"]}}},command:{displayName:"Command",pluralName:"Commands",route:"commands",icon:"Terminal",filters:{statuses:{urlKey:"commandStatuses",displayName:"Status",values:["executing","completed","failed","cancelled","timeout","running"]},names:{urlKey:"commandNames",displayName:"Command",values:[]}}},gate:{displayName:"Gate",pluralName:"Gates",route:"gates",icon:"Shield",filters:{names:{urlKey:"gateNames",displayName:"Gate",values:[]},results:{urlKey:"gateResults",displayName:"Result",values:["allowed","denied"]}}},batch:{displayName:"Batch",pluralName:"Batches",route:"batches",icon:"Layers",filters:{operations:{urlKey:"batchOperations",displayName:"Operation",values:["insert","update","delete","upsert","sync"]},statuses:{urlKey:"batchStatuses",displayName:"Status",values:["pending","processing","completed","failed","partial","cancelled"]}}},dump:{displayName:"Dump",pluralName:"Dumps",route:"dumps",icon:"HardDrive",filters:{operations:{urlKey:"dumpOperations",displayName:"Operation",values:["export","import","backup","restore","migrate","sync"]},formats:{urlKey:"dumpFormats",displayName:"Format",values:["json","csv","xml","sql","yaml","binary","xlsx"]},statuses:{urlKey:"dumpStatuses",displayName:"Status",values:["pending","completed","failed","error","success","cancelled","running"]}}},graphql:{displayName:"GraphQL",pluralName:"GraphQL",route:"graphql",icon:"Hexagon",filters:{operationTypes:{urlKey:"operationTypes",displayName:"Type",values:["query","mutation","subscription"]},operationNames:{urlKey:"operationNames",displayName:"Operation",values:[]},statuses:{urlKey:"statuses",displayName:"Status",values:[]},ips:{urlKey:"ips",displayName:"IP",values:[]}}}},Le={requests:"request",queries:"query",exceptions:"exception",logs:"log",events:"event",jobs:"job",schedule:"schedule",cache:"cache",mail:"mail","http-client":"http-client",redis:"redis",models:"model",notifications:"notification",views:"view",commands:"command",gates:"gate",batches:"batch",dumps:"dump",graphql:"graphql"};function Ke(t){if(t in D)return D[t];const e=Le[t];if(e)return D[e]}const W=Ke;function ze(t){const[e,a]=H(),r=W(t),n=p.useCallback(u=>{if(u==="tags")return"tags";if(!r)return u;const l=r.filters[u];return(l==null?void 0:l.urlKey)||u},[r]),o=p.useMemo(()=>{const u={};if(!r)return u;const l=Object.values(r.filters).map(d=>d.urlKey);l.push("tags","search");for(const d of l){const c=e.get(d);c&&(u[d]=c.split(",").filter(Boolean))}return u},[e,r]),i=p.useCallback((u,l)=>{!r&&u!=="tags"&&console.warn("[useEntryFilters] No config found for entry type, using category as urlKey");const d=n(u),c=o[d]||[];if(!c.includes(l)){const y=new URLSearchParams(e);y.set(d,[...c,l].join(",")),a(y,{replace:!0})}},[r,n,o,e,a]),s=p.useCallback((u,l)=>{const c=(o[u]||[]).filter(x=>x!==l),y=new URLSearchParams(e);c.length>0?y.set(u,c.join(",")):y.delete(u),a(y,{replace:!0})},[o,e,a]),b=p.useCallback(()=>{a({},{replace:!0})},[a]),f=p.useMemo(()=>o,[o]),g=p.useMemo(()=>{if(!r)return[];const u=[];for(const[l,d]of Object.entries(o)){if(d.length===0)continue;let c=l,y=l==="tags"?"Tag":l;for(const[x,N]of Object.entries(r.filters))if(N.urlKey===l){c=x,y=N.displayName;break}u.push({category:c,urlKey:l,displayName:y,values:d})}return u},[o,r]),h=p.useMemo(()=>{const u=[];for(const l of g)for(const d of l.values)u.push({category:l.displayName,value:d.toUpperCase(),onRemove:()=>s(l.urlKey,d)});return u},[g,s]),m=g.length>0;return{addFilter:i,removeFilter:s,clearAll:b,serverFilters:f,activeFilters:g,headerFilters:h,hasFilters:m,getUrlKey:n}}function Ie(t,e){if(e==="tags")return"tags";const a=W(t);if(!a)return e;const r=a.filters[e];return(r==null?void 0:r.urlKey)||e}const F=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","GRAPHQL"],U=["bg-rose-100 text-rose-800 dark:bg-rose-900 dark:text-rose-400","bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-400","bg-lime-100 text-lime-800 dark:bg-lime-900 dark:text-lime-400","bg-emerald-100 text-emerald-800 dark:bg-emerald-900 dark:text-emerald-400","bg-sky-100 text-sky-800 dark:bg-sky-900 dark:text-sky-400","bg-violet-100 text-violet-800 dark:bg-violet-900 dark:text-violet-400","bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-900 dark:text-fuchsia-400","bg-teal-100 text-teal-800 dark:bg-teal-900 dark:text-teal-400"];function We(t){let e=0;for(let a=0;a<t.length;a++)e=(e<<5)-e+t.charCodeAt(a),e=e&e;return Math.abs(e)%U.length}const Fe=["localhost"],Ue=(t,e)=>{if(e&&e!=="tag")return e;if(/^(\d{1,3}\.){3}\d{1,3}$/.test(t))return"ips";const a=t.toUpperCase();if(F.includes(a))return"methods";const r=parseInt(t,10);return!isNaN(r)&&r>=100&&r<600?"statuses":/^[a-fA-F0-9:]+$/.test(t)&&t.includes(":")&&!t.includes(".")?"ips":t.includes("#")||t.includes("::")||/Controller\./i.test(t)?"controllers":Fe.includes(t.toLowerCase())||(t.includes(".")||t.includes(":"))&&!t.startsWith("/")&&!/^\d+$/.test(t)?"hostnames":"tags"};function He(t){const e=t.toUpperCase();if(t.startsWith("/"))return"bg-cyan-100 text-cyan-800 dark:bg-cyan-900/30 dark:text-cyan-400";if(/^(\d{1,3}\.){3}\d{1,3}$/.test(t)||/^[a-fA-F0-9:]+$/.test(t)&&t.includes(":")&&!t.includes("."))return"bg-indigo-100 text-indigo-800 dark:bg-indigo-900/30 dark:text-indigo-400";if(t.includes("#")||t.includes("::")||/Controller\./i.test(t))return"bg-teal-100 text-teal-800 dark:bg-teal-900/30 dark:text-teal-400";if(e.startsWith("USER:"))return"bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-400";const a=t.toLowerCase(),r=/:\d+$/.test(t),n=/\.(com|org|net|io|dev|app|co|local|internal)$/i.test(t),o=/^[A-Z0-9_.]+$/.test(t)&&t.includes(".");if(a==="localhost"||r&&!t.startsWith("/")||n&&!o)return"bg-slate-100 text-slate-800 dark:bg-slate-700 dark:text-slate-300";if(e==="GET")return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200";if(e==="POST")return"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200";if(e==="PUT")return"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200";if(e==="PATCH")return"bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200";if(e==="DELETE")return"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200";if(["HEAD","OPTIONS"].includes(e))return"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300";if(e==="GRAPHQL")return"bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-200";const i=parseInt(e,10);if(!isNaN(i)&&i>=100&&i<600)return i>=500?"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400":i>=400?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400":i>=300?"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400":"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400";if(e==="SUCCESS"||e==="2XX"||e==="HIT")return"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400";if(e==="REDIRECT"||e==="3XX")return"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400";if(e==="WARNING"||e==="WARN"||e==="4XX"||e==="CLIENT-ERROR")return"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400";if(e==="ERROR"||e==="5XX"||e==="HTTP-ERROR"||e==="VALIDATION-ERROR"||e==="FAILED")return"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400";if(e==="SLOW"||e==="SLOW QUERY")return"bg-orange-100 text-orange-800 dark:bg-orange-900/30 dark:text-orange-400";if(e==="N+1"||e==="N1")return"bg-amber-100 text-amber-700 dark:bg-amber-900/50 dark:text-amber-300";if(["SELECT","INSERT","UPDATE"].includes(e))return"bg-cyan-100 text-cyan-800 dark:bg-cyan-900/30 dark:text-cyan-400";if(e==="DEBUG")return"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200";if(e==="LOG"||e==="INFO")return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200";if(e==="VERBOSE")return"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300";if(e==="QUERY"||e==="MUTATION"||e==="SUBSCRIPTION"){if(e==="QUERY")return"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200";if(e==="MUTATION")return"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200";if(e==="SUBSCRIPTION")return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"}return e==="REQUEST"?"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200":e==="EXCEPTION"?"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200":e==="LOG"||e==="EVENT"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":e==="JOB"?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200":e==="CACHE"?"bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-200":e==="MAIL"?"bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-200":e==="SCHEDULE"?"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300":e==="HTTP-CLIENT"?"bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-200":e==="RESOLVED"||e==="COMPLETED"||e==="SENT"||e==="ACTIVE"?"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400":e==="WAITING"||e==="DELAYED"||e==="PENDING"?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400":e==="MISS"?"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300":e==="GET"&&!F.includes(e)?"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400":e==="SET"?"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400":e==="DEL"||e==="DELETE"?"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400":e==="CLEAR"?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400":e==="STARTED"?"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400":e==="TYPEORM"?"bg-orange-100 text-orange-800 dark:bg-orange-900/30 dark:text-orange-400":e==="PRISMA"?"bg-indigo-100 text-indigo-800 dark:bg-indigo-900/30 dark:text-indigo-400":e==="MONGOOSE"?"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400":e==="SEQUELIZE"?"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400":e==="KNEX"?"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400":e==="MIKRO-ORM"?"bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-400":e==="NORMAL"?"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200":U[We(e)]}function je({children:t,listType:e,filterType:a="tag",filterValue:r,onClick:n,clickable:o=!0,className:i="",ariaLabel:s}){const b=j(),f=q(),g=c=>{if(c.preventDefault(),c.stopPropagation(),n){n(c);return}if(e&&o){const y=r||String(t),x=a&&a!=="tag"?Ie(e,a):Ue(y,a),N=f.pathname,w=N===`/${e}`||N.startsWith(`/${e}/`)?new URLSearchParams(f.search):new URLSearchParams,R=w.get(x);if(R){const A=R.split(",");A.includes(y)||w.set(x,[...A,y].join(","))}else w.set(x,y);b(`/${e}?${w.toString()}`)}},h=o&&(!!n||!!e),m=He(String(t)),u=h?"cursor-pointer hover:scale-105 transition-transform":"",l=String(t).toUpperCase(),d=s||(h?`Click to filter by ${l}`:void 0);return T.jsx("span",{onClick:h?g:void 0,role:h?"button":void 0,"aria-label":d,tabIndex:h?0:void 0,onKeyDown:h?c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),g(c))}:void 0,title:l,className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-bold uppercase tracking-wide max-w-[200px] overflow-hidden text-ellipsis whitespace-nowrap shadow ${m} ${u} ${h?"focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-1":""} ${i}`,children:l})}function _e({items:t,listType:e,filterType:a="tag",maxItems:r=99,clickable:n=!0}){if(!t||t.length===0)return null;const o=t.slice(0,r),i=t.length-r;return T.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[o.map(s=>T.jsx(je,{listType:e,filterType:a,clickable:n,children:s},s)),i>0&&T.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:["+",i]})]})}export{_e as B,je as C,X as a,I as b,C as c,Ye as d,Re as e,Be as f,He as g,Ve as m,O as n,Qe as p,k as t,ze as u};
@@ -1 +1 @@
1
- import{j as a,a as d}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as A,P as M,N as R,L as B}from"./PageHeader-BhUyZtbe.js";import{q as H,T as i,D as L,b as W}from"./types-Cubd9hBF.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
+ import{j as a,a as d}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as A,P as M,N as R,L as B}from"./PageHeader-CcbxBdii.js";import{q as H,T as i,D as L,b as W}from"./types-DM4HdBI5.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,4 +1,4 @@
1
- import{c as D,u as ge,j as e,D as ae,T as A,C as R,A as M,G as xe,F as me,B as ue,P as ye,a as be,H as B,b as he,L as pe,d as ke,M as fe,e as ve,R as je,f as Ne,S as we,g as V,h as W,i as Se,k as _,l as K,r as qe,m as Y}from"./index-OMQZjJAo.js";import{e as Ce,b as c,L as Ee}from"./vendor-B2nVRih0.js";import{g as Pe,f,p as v}from"./ClickableBadge-BNUq-FXI.js";import{Z as Te}from"./zap-Bh7DgMLC.js";import{C as $e}from"./calendar-CEjtgImi.js";/**
1
+ import{c as D,u as ge,j as e,D as ae,T as A,C as R,A as M,G as xe,F as me,B as ue,P as ye,a as be,H as B,b as he,L as pe,d as ke,M as fe,e as ve,R as je,f as Ne,S as we,g as V,h as W,i as Se,k as _,l as K,r as qe,m as Y}from"./index-C1yiPBCx.js";import{e as Ce,b as c,L as Ee}from"./vendor-B2nVRih0.js";import{g as Pe,f,p as v}from"./ClickableBadge-CULXhkUR.js";import{Z as Te}from"./zap-ChtSEZU9.js";import{C as $e}from"./calendar-36iGdS4K.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{j as a,H as l}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as S,P as T,N as $,L as A}from"./PageHeader-BhUyZtbe.js";import{t as z,T as o,D as H,b as L}from"./types-Cubd9hBF.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
+ import{j as a,H as l}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as S,P as T,N as $,L as A}from"./PageHeader-CcbxBdii.js";import{t as z,T as o,D as H,b as L}from"./types-DM4HdBI5.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,4 +1,4 @@
1
- import{c as z,j as E,g as ve,X as VE,z as De,s as zt,C as ie,D as nE,i as vs,B as DT,M as PT,t as Dr,a as vt,b as xT,F as eT,e as MT,S as mT,L as WE,A as Pr,H as uT,T as xr,v as Mr}from"./index-OMQZjJAo.js";import{b as U,L as fe,g as mr,e as ur,h as pr}from"./vendor-B2nVRih0.js";import{a as qE,t as He,c as OE,n as Ur,b as pT,m as hr,d as js,e as yr,C as m,f as Z,p as H,B as xE}from"./ClickableBadge-BNUq-FXI.js";import{d as wE,e as XE,c as kE,f as jt,g as Vt,h as Wt,j as wt,G as gr,N as Gr,i as Xt,k as UT,l as kt,m as hT,n as yT,o as gT,p as GT,q as fT,r as HT,s as bT,t as BT,u as Kt}from"./types-Cubd9hBF.js";import{Z as Vs}from"./zap-Bh7DgMLC.js";import{C as ue}from"./circle-check-big-BnRBDUDo.js";import{f as We,c as fr}from"./format-BFldcnCk.js";import{C as Hr}from"./calendar-CEjtgImi.js";import{E as FT}from"./eye-tfj-u8EL.js";/**
1
+ import{c as z,j as E,g as ve,X as VE,z as De,s as zt,C as ie,D as nE,i as vs,B as DT,M as PT,t as Dr,a as vt,b as xT,F as eT,e as MT,S as mT,L as WE,A as Pr,H as uT,T as xr,v as Mr}from"./index-C1yiPBCx.js";import{b as U,L as fe,g as mr,e as ur,h as pr}from"./vendor-B2nVRih0.js";import{a as qE,t as He,c as OE,n as Ur,b as pT,m as hr,d as js,e as yr,C as m,f as Z,p as H,B as xE}from"./ClickableBadge-CULXhkUR.js";import{d as wE,e as XE,c as kE,f as jt,g as Vt,h as Wt,j as wt,G as gr,N as Gr,i as Xt,k as UT,l as kt,m as hT,n as yT,o as gT,p as GT,q as fT,r as HT,s as bT,t as BT,u as Kt}from"./types-DM4HdBI5.js";import{Z as Vs}from"./zap-ChtSEZU9.js";import{C as ue}from"./circle-check-big--KQSq_oR.js";import{f as We,c as fr}from"./format-BFldcnCk.js";import{C as Hr}from"./calendar-36iGdS4K.js";import{E as FT}from"./eye-B9uY1FJW.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{j as t,R as i}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as T,P as A,N as M,L}from"./PageHeader-BhUyZtbe.js";import{f as B,T as o,D as H,b as $}from"./types-Cubd9hBF.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
+ import{j as t,R as i}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as T,P as A,N as M,L}from"./PageHeader-CcbxBdii.js";import{f as B,T as o,D as H,b as $}from"./types-DM4HdBI5.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,4 +1,4 @@
1
- import{c as B,u as I,j as t,i as W,T as m,n as $,o as H}from"./index-OMQZjJAo.js";import{e as U,b as c}from"./vendor-B2nVRih0.js";import{u as z,C as u,f as G,p as J}from"./ClickableBadge-BNUq-FXI.js";import{u as K,P as O,F as Q,N as V,L as X}from"./PageHeader-BhUyZtbe.js";import{d as Y,T as r,b as Z}from"./types-Cubd9hBF.js";import{C as _}from"./circle-check-big-BnRBDUDo.js";/**
1
+ import{c as B,u as I,j as t,i as W,T as m,n as $,o as H}from"./index-C1yiPBCx.js";import{e as U,b as c}from"./vendor-B2nVRih0.js";import{u as z,C as u,f as G,p as J}from"./ClickableBadge-CULXhkUR.js";import{u as K,P as O,F as Q,N as V,L as X}from"./PageHeader-CcbxBdii.js";import{d as Y,T as r,b as Z}from"./types-DM4HdBI5.js";import{C as _}from"./circle-check-big--KQSq_oR.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{j as t,S as d}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as M,P as S,N as W,L as G}from"./PageHeader-BhUyZtbe.js";import{r as B,T as a,b as D}from"./types-Cubd9hBF.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
+ import{j as t,S as d}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as M,P as S,N as W,L as G}from"./PageHeader-CcbxBdii.js";import{r as B,T as a,b as D}from"./types-DM4HdBI5.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,4 +1,4 @@
1
- import{c as H,j as a}from"./index-OMQZjJAo.js";import{e as D,f as G,b as M}from"./vendor-B2nVRih0.js";import{u as q,C as m,f as Q,p as U}from"./ClickableBadge-BNUq-FXI.js";import{u as W,P as I,N as O,L as $}from"./PageHeader-BhUyZtbe.js";import{u as z,T as h,G as V,N as J,D as K,b as X}from"./types-Cubd9hBF.js";/**
1
+ import{c as H,j as a}from"./index-C1yiPBCx.js";import{e as D,f as G,b as M}from"./vendor-B2nVRih0.js";import{u as q,C as m,f as Q,p as U}from"./ClickableBadge-CULXhkUR.js";import{u as W,P as I,N as O,L as $}from"./PageHeader-CcbxBdii.js";import{u as z,T as h,G as V,N as J,D as K,b as X}from"./types-DM4HdBI5.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{j as t,d}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as F,P as M,N as A,L as B}from"./PageHeader-BhUyZtbe.js";import{l as L,T as l,D as S,b as W}from"./types-Cubd9hBF.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
+ import{j as t,d}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as F,P as M,N as A,L as B}from"./PageHeader-CcbxBdii.js";import{l as L,T as l,D as S,b as W}from"./types-DM4HdBI5.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 +1 @@
1
- import{j as t,B as l}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as D,P as B,N as F,L as M}from"./PageHeader-BhUyZtbe.js";import{g as P,T as i,D as R,b as J}from"./types-Cubd9hBF.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
+ import{j as t,B as l}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as D,P as B,N as F,L as M}from"./PageHeader-CcbxBdii.js";import{g as P,T as i,D as R,b as J}from"./types-DM4HdBI5.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 +1 @@
1
- import{j as t,F as l}from"./index-OMQZjJAo.js";import{e as k,b as v}from"./vendor-B2nVRih0.js";import{u as T,C as i,f as E,p as F}from"./ClickableBadge-BNUq-FXI.js";import{u as L,P as M,N as A,L as P}from"./PageHeader-BhUyZtbe.js";import{e as R,T as o,b as B}from"./types-Cubd9hBF.js";function S(){const n=k(),{clearAll:d,serverFilters:c,headerFilters:g,hasFilters:x}=T("logs"),{entries:h,loading:m,refreshing:s,newEntriesCount:u,hasMore:p,loadMore:f,loadNew:y,autoRefreshEnabled:j,setAutoRefresh:C,meta:a,isHighlighted:N}=L({type:"log",limit:50,filters:c}),r=h.filter(e=>R(e)),w=v.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:E(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 b=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:`${b} space-y-4 transition-all duration-200`,children:[t.jsx(A,{count:u,onClick:y,loading:s}),t.jsx(B,{columns:w,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:p,onClick:f,loading:s})]})]})}export{S as default};
1
+ import{j as t,F as l}from"./index-C1yiPBCx.js";import{e as k,b as v}from"./vendor-B2nVRih0.js";import{u as T,C as i,f as E,p as F}from"./ClickableBadge-CULXhkUR.js";import{u as L,P as M,N as A,L as P}from"./PageHeader-CcbxBdii.js";import{e as R,T as o,b as B}from"./types-DM4HdBI5.js";function S(){const n=k(),{clearAll:d,serverFilters:c,headerFilters:g,hasFilters:x}=T("logs"),{entries:h,loading:m,refreshing:s,newEntriesCount:u,hasMore:p,loadMore:f,loadNew:y,autoRefreshEnabled:j,setAutoRefresh:C,meta:a,isHighlighted:N}=L({type:"log",limit:50,filters:c}),r=h.filter(e=>R(e)),w=v.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:E(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 b=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:`${b} space-y-4 transition-all duration-200`,children:[t.jsx(A,{count:u,onClick:y,loading:s}),t.jsx(B,{columns:w,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:p,onClick:f,loading:s})]})]})}export{S as default};
@@ -1 +1 @@
1
- import{j as t,M as u}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as L,P as S,N as W,L as $}from"./PageHeader-BhUyZtbe.js";import{j as B,T as l,D as H,a as q,b as I}from"./types-Cubd9hBF.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
+ import{j as t,M as u}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as L,P as S,N as W,L as $}from"./PageHeader-CcbxBdii.js";import{j as B,T as l,D as H,a as q,b as I}from"./types-DM4HdBI5.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 +1 @@
1
- import{j as a,b as d}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as F,P as R,N as T,L as B}from"./PageHeader-BhUyZtbe.js";import{n as L,T as o,D as H,b as S}from"./types-Cubd9hBF.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
+ import{j as a,b as d}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as F,P as R,N as T,L as B}from"./PageHeader-CcbxBdii.js";import{n as L,T as o,D as H,b as S}from"./types-DM4HdBI5.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 +1 @@
1
- import{j as t,e as l}from"./index-OMQZjJAo.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-BNUq-FXI.js";import{u as R,P as A,N as M,L as B}from"./PageHeader-BhUyZtbe.js";import{o as W,T as a,D as L,b as H}from"./types-Cubd9hBF.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
+ import{j as t,e as l}from"./index-C1yiPBCx.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-CULXhkUR.js";import{u as R,P as A,N as M,L as B}from"./PageHeader-CcbxBdii.js";import{o as W,T as a,D as L,b as H}from"./types-DM4HdBI5.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};