bunqueue-dashboard 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +71 -69
- package/dist/assets/{AddJob-pXSBfCte.js → AddJob-CaPckiUk.js} +2 -2
- package/dist/assets/{Alerts-DdXuzRJe.js → Alerts-B2c0ARdJ.js} +1 -1
- package/dist/assets/{Benchmark-DFdrF54C.js → Benchmark-BUCKbeuC.js} +1 -1
- package/dist/assets/{BulkAddJobs-BrCaYvgB.js → BulkAddJobs-BIUVhw79.js} +2 -2
- package/dist/assets/{CopilotPanel-BQrRrGXD.js → CopilotPanel-krCimuWQ.js} +1 -1
- package/dist/assets/{CopyButton-D39F1wIH.js → CopyButton-DvGgfSEm.js} +1 -1
- package/dist/assets/Cron-DtuiCy5T.js +1 -0
- package/dist/assets/{CronManager-tK96LeNt.js → CronManager-CorgubVA.js} +1 -1
- package/dist/assets/Database-D2Kg4jZ5.js +3 -0
- package/dist/assets/{Diagnostics-Wbdmc5hx.js → Diagnostics-B9eXpr9p.js} +1 -1
- package/dist/assets/{Dlq-B2QZSDU6.js → Dlq-DYBGJHQ7.js} +1 -1
- package/dist/assets/DlqControl-VeRgk2sV.js +1 -0
- package/dist/assets/DlqPro-D40bX5wt.js +1 -0
- package/dist/assets/{Flows-Bb2WdFa0.js → Flows-H8j_vUf9.js} +1 -1
- package/dist/assets/JobInspector-CXzDoEVg.js +2 -0
- package/dist/assets/{Jobs-CUWqc7-2.js → Jobs-CTYa9Wq9.js} +1 -1
- package/dist/assets/JobsPro-9JG9oKsi.js +1 -0
- package/dist/assets/{Logs-D5EqmgBR.js → Logs-D4_bxWwW.js} +1 -1
- package/dist/assets/{LogsPro-C14Lju7q.js → LogsPro-DjhlPDzs.js} +1 -1
- package/dist/assets/{McpServer-CQh8KRNo.js → McpServer-BcNGlbb8.js} +1 -1
- package/dist/assets/{Metrics-BjNcCmTp.js → Metrics-DDxWBIBZ.js} +1 -1
- package/dist/assets/MetricsPro-DM__uhdn.js +1 -0
- package/dist/assets/{Overview-CkMHyr1F.js → Overview-bPieBOHN.js} +1 -1
- package/dist/assets/{Pagination-DYMlK0Hm.js → Pagination-B-6mVPUC.js} +1 -1
- package/dist/assets/{QueueActions-Cg2hdDsu.js → QueueActions-DPqmozNf.js} +1 -1
- package/dist/assets/{QueueControl-BY9w4OuO.js → QueueControl-Cxl_GKCw.js} +1 -1
- package/dist/assets/{QueueDetail-BbtTrGuU.js → QueueDetail-BaehsuiZ.js} +1 -1
- package/dist/assets/{QueueDetailPro-25QnEp1Q.js → QueueDetailPro-CDntEb4E.js} +1 -1
- package/dist/assets/{Queues-MXia1p1i.js → Queues-BXwcVq8b.js} +1 -1
- package/dist/assets/{QueuesOverview-Rai_zPUB.js → QueuesOverview-CggwfR_n.js} +1 -1
- package/dist/assets/{S3Backup-ChWVmznV.js → S3Backup-DKegjDS2.js} +1 -1
- package/dist/assets/{S3BackupPro-JU_hxhXm.js → S3BackupPro-BPop6lt3.js} +1 -1
- package/dist/assets/ServerControl-ELjdOfy0.js +3 -0
- package/dist/assets/{Settings-D0XEFZj5.js → Settings-CeRzvpaS.js} +1 -1
- package/dist/assets/{Usage-vvNehwcX.js → Usage-nsrrx66q.js} +1 -1
- package/dist/assets/UsagePro-DTCHLKue.js +1 -0
- package/dist/assets/Webhooks-BSxGyZBk.js +1 -0
- package/dist/assets/{Workers-CvV7eZrD.js → Workers-4FvLmhA2.js} +1 -1
- package/dist/assets/WorkersPro-EbCgSBaw.js +1 -0
- package/dist/assets/index-C2XEM9ex.css +1 -0
- package/dist/assets/index-DTo6fJH9.js +8 -0
- package/dist/assets/{useThroughputSeries-B6m-M93j.js → useThroughputSeries-D8wylrhf.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/scripts/embedded.gen.ts +106 -106
- package/dist/assets/Cron-Ctas3GOV.js +0 -1
- package/dist/assets/Database-CLUujevy.js +0 -3
- package/dist/assets/DlqControl-D9xzve29.js +0 -1
- package/dist/assets/DlqPro-ByRwkv1s.js +0 -1
- package/dist/assets/JobInspector-BTZS6pI-.js +0 -2
- package/dist/assets/JobsPro-BWweJCnr.js +0 -1
- package/dist/assets/MetricsPro-CcK7hYQf.js +0 -1
- package/dist/assets/ServerControl-Dirs9r5Q.js +0 -3
- package/dist/assets/UsagePro-D_-jHCJY.js +0 -1
- package/dist/assets/Webhooks-B4DugS-x.js +0 -1
- package/dist/assets/WorkersPro-t5SD6hbP.js +0 -1
- package/dist/assets/index-C3t3ByS-.css +0 -1
- package/dist/assets/index-C5VVVkqi.js +0 -8
package/dist/.vite/manifest.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"_react-vendor-CHIHtdAC.js"
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
|
-
"_CopyButton-
|
|
11
|
-
"file": "assets/CopyButton-
|
|
10
|
+
"_CopyButton-DvGgfSEm.js": {
|
|
11
|
+
"file": "assets/CopyButton-DvGgfSEm.js",
|
|
12
12
|
"name": "CopyButton",
|
|
13
13
|
"imports": [
|
|
14
14
|
"_cn-CMFYpumL.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"index.html"
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
|
-
"_Pagination-
|
|
20
|
-
"file": "assets/Pagination-
|
|
19
|
+
"_Pagination-B-6mVPUC.js": {
|
|
20
|
+
"file": "assets/Pagination-B-6mVPUC.js",
|
|
21
21
|
"name": "Pagination",
|
|
22
22
|
"imports": [
|
|
23
23
|
"_cn-CMFYpumL.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"index.html"
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
|
-
"_QueueActions-
|
|
29
|
-
"file": "assets/QueueActions-
|
|
28
|
+
"_QueueActions-DPqmozNf.js": {
|
|
29
|
+
"file": "assets/QueueActions-DPqmozNf.js",
|
|
30
30
|
"name": "QueueActions",
|
|
31
31
|
"imports": [
|
|
32
32
|
"_cn-CMFYpumL.js",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"_cn-CMFYpumL.js"
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
|
-
"_useThroughputSeries-
|
|
78
|
-
"file": "assets/useThroughputSeries-
|
|
77
|
+
"_useThroughputSeries-D8wylrhf.js": {
|
|
78
|
+
"file": "assets/useThroughputSeries-D8wylrhf.js",
|
|
79
79
|
"name": "useThroughputSeries",
|
|
80
80
|
"imports": [
|
|
81
81
|
"_cn-CMFYpumL.js",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
"index.html": {
|
|
87
|
-
"file": "assets/index-
|
|
87
|
+
"file": "assets/index-DTo6fJH9.js",
|
|
88
88
|
"name": "index",
|
|
89
89
|
"src": "index.html",
|
|
90
90
|
"isEntry": true,
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"src/lib/demo/install.ts"
|
|
134
134
|
],
|
|
135
135
|
"css": [
|
|
136
|
-
"assets/index-
|
|
136
|
+
"assets/index-C2XEM9ex.css"
|
|
137
137
|
],
|
|
138
138
|
"assets": [
|
|
139
139
|
"assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"src": "node_modules/@fontsource-variable/jetbrains-mono/files/jetbrains-mono-latin-wght-normal.woff2"
|
|
160
160
|
},
|
|
161
161
|
"src/components/copilot/CopilotPanel.tsx": {
|
|
162
|
-
"file": "assets/CopilotPanel-
|
|
162
|
+
"file": "assets/CopilotPanel-krCimuWQ.js",
|
|
163
163
|
"name": "CopilotPanel",
|
|
164
164
|
"src": "src/components/copilot/CopilotPanel.tsx",
|
|
165
165
|
"isDynamicEntry": true,
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"isDynamicEntry": true
|
|
178
178
|
},
|
|
179
179
|
"src/pages/Alerts.tsx": {
|
|
180
|
-
"file": "assets/Alerts-
|
|
180
|
+
"file": "assets/Alerts-B2c0ARdJ.js",
|
|
181
181
|
"name": "Alerts",
|
|
182
182
|
"src": "src/pages/Alerts.tsx",
|
|
183
183
|
"isDynamicEntry": true,
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
]
|
|
190
190
|
},
|
|
191
191
|
"src/pages/Cron.tsx": {
|
|
192
|
-
"file": "assets/Cron-
|
|
192
|
+
"file": "assets/Cron-DtuiCy5T.js",
|
|
193
193
|
"name": "Cron",
|
|
194
194
|
"src": "src/pages/Cron.tsx",
|
|
195
195
|
"isDynamicEntry": true,
|
|
@@ -197,11 +197,11 @@
|
|
|
197
197
|
"_cn-CMFYpumL.js",
|
|
198
198
|
"_react-vendor-CHIHtdAC.js",
|
|
199
199
|
"index.html",
|
|
200
|
-
"_Pagination-
|
|
200
|
+
"_Pagination-B-6mVPUC.js"
|
|
201
201
|
]
|
|
202
202
|
},
|
|
203
203
|
"src/pages/Dlq.tsx": {
|
|
204
|
-
"file": "assets/Dlq-
|
|
204
|
+
"file": "assets/Dlq-DYBGJHQ7.js",
|
|
205
205
|
"name": "Dlq",
|
|
206
206
|
"src": "src/pages/Dlq.tsx",
|
|
207
207
|
"isDynamicEntry": true,
|
|
@@ -210,11 +210,11 @@
|
|
|
210
210
|
"_react-vendor-CHIHtdAC.js",
|
|
211
211
|
"index.html",
|
|
212
212
|
"_form-PtDLk33Z.js",
|
|
213
|
-
"_Pagination-
|
|
213
|
+
"_Pagination-B-6mVPUC.js"
|
|
214
214
|
]
|
|
215
215
|
},
|
|
216
216
|
"src/pages/Jobs.tsx": {
|
|
217
|
-
"file": "assets/Jobs-
|
|
217
|
+
"file": "assets/Jobs-CTYa9Wq9.js",
|
|
218
218
|
"name": "Jobs",
|
|
219
219
|
"src": "src/pages/Jobs.tsx",
|
|
220
220
|
"isDynamicEntry": true,
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
]
|
|
227
227
|
},
|
|
228
228
|
"src/pages/Logs.tsx": {
|
|
229
|
-
"file": "assets/Logs-
|
|
229
|
+
"file": "assets/Logs-D4_bxWwW.js",
|
|
230
230
|
"name": "Logs",
|
|
231
231
|
"src": "src/pages/Logs.tsx",
|
|
232
232
|
"isDynamicEntry": true,
|
|
@@ -235,11 +235,11 @@
|
|
|
235
235
|
"_react-vendor-CHIHtdAC.js",
|
|
236
236
|
"index.html",
|
|
237
237
|
"_form-PtDLk33Z.js",
|
|
238
|
-
"_Pagination-
|
|
238
|
+
"_Pagination-B-6mVPUC.js"
|
|
239
239
|
]
|
|
240
240
|
},
|
|
241
241
|
"src/pages/Metrics.tsx": {
|
|
242
|
-
"file": "assets/Metrics-
|
|
242
|
+
"file": "assets/Metrics-DDxWBIBZ.js",
|
|
243
243
|
"name": "Metrics",
|
|
244
244
|
"src": "src/pages/Metrics.tsx",
|
|
245
245
|
"isDynamicEntry": true,
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
]
|
|
250
250
|
},
|
|
251
251
|
"src/pages/Overview.tsx": {
|
|
252
|
-
"file": "assets/Overview-
|
|
252
|
+
"file": "assets/Overview-bPieBOHN.js",
|
|
253
253
|
"name": "Overview",
|
|
254
254
|
"src": "src/pages/Overview.tsx",
|
|
255
255
|
"isDynamicEntry": true,
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
]
|
|
260
260
|
},
|
|
261
261
|
"src/pages/QueueDetail.tsx": {
|
|
262
|
-
"file": "assets/QueueDetail-
|
|
262
|
+
"file": "assets/QueueDetail-BaehsuiZ.js",
|
|
263
263
|
"name": "QueueDetail",
|
|
264
264
|
"src": "src/pages/QueueDetail.tsx",
|
|
265
265
|
"isDynamicEntry": true,
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
]
|
|
272
272
|
},
|
|
273
273
|
"src/pages/Queues.tsx": {
|
|
274
|
-
"file": "assets/Queues-
|
|
274
|
+
"file": "assets/Queues-BXwcVq8b.js",
|
|
275
275
|
"name": "Queues",
|
|
276
276
|
"src": "src/pages/Queues.tsx",
|
|
277
277
|
"isDynamicEntry": true,
|
|
@@ -279,11 +279,11 @@
|
|
|
279
279
|
"_cn-CMFYpumL.js",
|
|
280
280
|
"_react-vendor-CHIHtdAC.js",
|
|
281
281
|
"index.html",
|
|
282
|
-
"_Pagination-
|
|
282
|
+
"_Pagination-B-6mVPUC.js"
|
|
283
283
|
]
|
|
284
284
|
},
|
|
285
285
|
"src/pages/S3Backup.tsx": {
|
|
286
|
-
"file": "assets/S3Backup-
|
|
286
|
+
"file": "assets/S3Backup-DKegjDS2.js",
|
|
287
287
|
"name": "S3Backup",
|
|
288
288
|
"src": "src/pages/S3Backup.tsx",
|
|
289
289
|
"isDynamicEntry": true,
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
]
|
|
294
294
|
},
|
|
295
295
|
"src/pages/Settings.tsx": {
|
|
296
|
-
"file": "assets/Settings-
|
|
296
|
+
"file": "assets/Settings-CeRzvpaS.js",
|
|
297
297
|
"name": "Settings",
|
|
298
298
|
"src": "src/pages/Settings.tsx",
|
|
299
299
|
"isDynamicEntry": true,
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
]
|
|
307
307
|
},
|
|
308
308
|
"src/pages/Usage.tsx": {
|
|
309
|
-
"file": "assets/Usage-
|
|
309
|
+
"file": "assets/Usage-nsrrx66q.js",
|
|
310
310
|
"name": "Usage",
|
|
311
311
|
"src": "src/pages/Usage.tsx",
|
|
312
312
|
"isDynamicEntry": true,
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
]
|
|
317
317
|
},
|
|
318
318
|
"src/pages/Workers.tsx": {
|
|
319
|
-
"file": "assets/Workers-
|
|
319
|
+
"file": "assets/Workers-4FvLmhA2.js",
|
|
320
320
|
"name": "Workers",
|
|
321
321
|
"src": "src/pages/Workers.tsx",
|
|
322
322
|
"isDynamicEntry": true,
|
|
@@ -324,11 +324,11 @@
|
|
|
324
324
|
"_cn-CMFYpumL.js",
|
|
325
325
|
"_react-vendor-CHIHtdAC.js",
|
|
326
326
|
"index.html",
|
|
327
|
-
"_Pagination-
|
|
327
|
+
"_Pagination-B-6mVPUC.js"
|
|
328
328
|
]
|
|
329
329
|
},
|
|
330
330
|
"src/pages/control/AddJob.tsx": {
|
|
331
|
-
"file": "assets/AddJob-
|
|
331
|
+
"file": "assets/AddJob-CaPckiUk.js",
|
|
332
332
|
"name": "AddJob",
|
|
333
333
|
"src": "src/pages/control/AddJob.tsx",
|
|
334
334
|
"isDynamicEntry": true,
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
]
|
|
341
341
|
},
|
|
342
342
|
"src/pages/control/Benchmark.tsx": {
|
|
343
|
-
"file": "assets/Benchmark-
|
|
343
|
+
"file": "assets/Benchmark-BUCKbeuC.js",
|
|
344
344
|
"name": "Benchmark",
|
|
345
345
|
"src": "src/pages/control/Benchmark.tsx",
|
|
346
346
|
"isDynamicEntry": true,
|
|
@@ -350,11 +350,11 @@
|
|
|
350
350
|
"index.html",
|
|
351
351
|
"_form-PtDLk33Z.js",
|
|
352
352
|
"_AreaChart-DzUXW8u3.js",
|
|
353
|
-
"_CopyButton-
|
|
353
|
+
"_CopyButton-DvGgfSEm.js"
|
|
354
354
|
]
|
|
355
355
|
},
|
|
356
356
|
"src/pages/control/BulkAddJobs.tsx": {
|
|
357
|
-
"file": "assets/BulkAddJobs-
|
|
357
|
+
"file": "assets/BulkAddJobs-BIUVhw79.js",
|
|
358
358
|
"name": "BulkAddJobs",
|
|
359
359
|
"src": "src/pages/control/BulkAddJobs.tsx",
|
|
360
360
|
"isDynamicEntry": true,
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
]
|
|
367
367
|
},
|
|
368
368
|
"src/pages/control/CronManager.tsx": {
|
|
369
|
-
"file": "assets/CronManager-
|
|
369
|
+
"file": "assets/CronManager-CorgubVA.js",
|
|
370
370
|
"name": "CronManager",
|
|
371
371
|
"src": "src/pages/control/CronManager.tsx",
|
|
372
372
|
"isDynamicEntry": true,
|
|
@@ -375,11 +375,11 @@
|
|
|
375
375
|
"_react-vendor-CHIHtdAC.js",
|
|
376
376
|
"index.html",
|
|
377
377
|
"_form-PtDLk33Z.js",
|
|
378
|
-
"_Pagination-
|
|
378
|
+
"_Pagination-B-6mVPUC.js"
|
|
379
379
|
]
|
|
380
380
|
},
|
|
381
381
|
"src/pages/control/Database.tsx": {
|
|
382
|
-
"file": "assets/Database-
|
|
382
|
+
"file": "assets/Database-D2Kg4jZ5.js",
|
|
383
383
|
"name": "Database",
|
|
384
384
|
"src": "src/pages/control/Database.tsx",
|
|
385
385
|
"isDynamicEntry": true,
|
|
@@ -388,12 +388,12 @@
|
|
|
388
388
|
"_react-vendor-CHIHtdAC.js",
|
|
389
389
|
"index.html",
|
|
390
390
|
"_form-PtDLk33Z.js",
|
|
391
|
-
"_Pagination-
|
|
392
|
-
"_CopyButton-
|
|
391
|
+
"_Pagination-B-6mVPUC.js",
|
|
392
|
+
"_CopyButton-DvGgfSEm.js"
|
|
393
393
|
]
|
|
394
394
|
},
|
|
395
395
|
"src/pages/control/Diagnostics.tsx": {
|
|
396
|
-
"file": "assets/Diagnostics-
|
|
396
|
+
"file": "assets/Diagnostics-B9eXpr9p.js",
|
|
397
397
|
"name": "Diagnostics",
|
|
398
398
|
"src": "src/pages/control/Diagnostics.tsx",
|
|
399
399
|
"isDynamicEntry": true,
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
]
|
|
405
405
|
},
|
|
406
406
|
"src/pages/control/DlqControl.tsx": {
|
|
407
|
-
"file": "assets/DlqControl-
|
|
407
|
+
"file": "assets/DlqControl-VeRgk2sV.js",
|
|
408
408
|
"name": "DlqControl",
|
|
409
409
|
"src": "src/pages/control/DlqControl.tsx",
|
|
410
410
|
"isDynamicEntry": true,
|
|
@@ -413,11 +413,13 @@
|
|
|
413
413
|
"_react-vendor-CHIHtdAC.js",
|
|
414
414
|
"index.html",
|
|
415
415
|
"_form-PtDLk33Z.js",
|
|
416
|
-
"_Pagination-
|
|
416
|
+
"_Pagination-B-6mVPUC.js",
|
|
417
|
+
"_CopyButton-DvGgfSEm.js",
|
|
418
|
+
"_exportFile-tdUeW5m5.js"
|
|
417
419
|
]
|
|
418
420
|
},
|
|
419
421
|
"src/pages/control/DlqPro.tsx": {
|
|
420
|
-
"file": "assets/DlqPro-
|
|
422
|
+
"file": "assets/DlqPro-D40bX5wt.js",
|
|
421
423
|
"name": "DlqPro",
|
|
422
424
|
"src": "src/pages/control/DlqPro.tsx",
|
|
423
425
|
"isDynamicEntry": true,
|
|
@@ -426,13 +428,13 @@
|
|
|
426
428
|
"_react-vendor-CHIHtdAC.js",
|
|
427
429
|
"index.html",
|
|
428
430
|
"_form-PtDLk33Z.js",
|
|
429
|
-
"_Pagination-
|
|
431
|
+
"_Pagination-B-6mVPUC.js",
|
|
430
432
|
"_exportFile-tdUeW5m5.js",
|
|
431
433
|
"_promisePool-Daxkc1OB.js"
|
|
432
434
|
]
|
|
433
435
|
},
|
|
434
436
|
"src/pages/control/Flows.tsx": {
|
|
435
|
-
"file": "assets/Flows-
|
|
437
|
+
"file": "assets/Flows-H8j_vUf9.js",
|
|
436
438
|
"name": "Flows",
|
|
437
439
|
"src": "src/pages/control/Flows.tsx",
|
|
438
440
|
"isDynamicEntry": true,
|
|
@@ -443,7 +445,7 @@
|
|
|
443
445
|
]
|
|
444
446
|
},
|
|
445
447
|
"src/pages/control/JobInspector.tsx": {
|
|
446
|
-
"file": "assets/JobInspector-
|
|
448
|
+
"file": "assets/JobInspector-CXzDoEVg.js",
|
|
447
449
|
"name": "JobInspector",
|
|
448
450
|
"src": "src/pages/control/JobInspector.tsx",
|
|
449
451
|
"isDynamicEntry": true,
|
|
@@ -452,13 +454,13 @@
|
|
|
452
454
|
"_react-vendor-CHIHtdAC.js",
|
|
453
455
|
"index.html",
|
|
454
456
|
"_form-PtDLk33Z.js",
|
|
455
|
-
"_CopyButton-
|
|
457
|
+
"_CopyButton-DvGgfSEm.js",
|
|
456
458
|
"_exportFile-tdUeW5m5.js",
|
|
457
459
|
"_jobActions-CuOdMglt.js"
|
|
458
460
|
]
|
|
459
461
|
},
|
|
460
462
|
"src/pages/control/JobsPro.tsx": {
|
|
461
|
-
"file": "assets/JobsPro-
|
|
463
|
+
"file": "assets/JobsPro-9JG9oKsi.js",
|
|
462
464
|
"name": "JobsPro",
|
|
463
465
|
"src": "src/pages/control/JobsPro.tsx",
|
|
464
466
|
"isDynamicEntry": true,
|
|
@@ -467,13 +469,13 @@
|
|
|
467
469
|
"_react-vendor-CHIHtdAC.js",
|
|
468
470
|
"index.html",
|
|
469
471
|
"_form-PtDLk33Z.js",
|
|
470
|
-
"_Pagination-
|
|
472
|
+
"_Pagination-B-6mVPUC.js",
|
|
471
473
|
"_exportFile-tdUeW5m5.js",
|
|
472
474
|
"_jobActions-CuOdMglt.js"
|
|
473
475
|
]
|
|
474
476
|
},
|
|
475
477
|
"src/pages/control/LogsPro.tsx": {
|
|
476
|
-
"file": "assets/LogsPro-
|
|
478
|
+
"file": "assets/LogsPro-DjhlPDzs.js",
|
|
477
479
|
"name": "LogsPro",
|
|
478
480
|
"src": "src/pages/control/LogsPro.tsx",
|
|
479
481
|
"isDynamicEntry": true,
|
|
@@ -482,22 +484,22 @@
|
|
|
482
484
|
"_react-vendor-CHIHtdAC.js",
|
|
483
485
|
"index.html",
|
|
484
486
|
"_form-PtDLk33Z.js",
|
|
485
|
-
"_Pagination-
|
|
487
|
+
"_Pagination-B-6mVPUC.js"
|
|
486
488
|
]
|
|
487
489
|
},
|
|
488
490
|
"src/pages/control/McpServer.tsx": {
|
|
489
|
-
"file": "assets/McpServer-
|
|
491
|
+
"file": "assets/McpServer-BcNGlbb8.js",
|
|
490
492
|
"name": "McpServer",
|
|
491
493
|
"src": "src/pages/control/McpServer.tsx",
|
|
492
494
|
"isDynamicEntry": true,
|
|
493
495
|
"imports": [
|
|
494
496
|
"_react-vendor-CHIHtdAC.js",
|
|
495
497
|
"index.html",
|
|
496
|
-
"_CopyButton-
|
|
498
|
+
"_CopyButton-DvGgfSEm.js"
|
|
497
499
|
]
|
|
498
500
|
},
|
|
499
501
|
"src/pages/control/MetricsPro.tsx": {
|
|
500
|
-
"file": "assets/MetricsPro-
|
|
502
|
+
"file": "assets/MetricsPro-DM__uhdn.js",
|
|
501
503
|
"name": "MetricsPro",
|
|
502
504
|
"src": "src/pages/control/MetricsPro.tsx",
|
|
503
505
|
"isDynamicEntry": true,
|
|
@@ -505,13 +507,13 @@
|
|
|
505
507
|
"_cn-CMFYpumL.js",
|
|
506
508
|
"_react-vendor-CHIHtdAC.js",
|
|
507
509
|
"index.html",
|
|
508
|
-
"_Pagination-
|
|
510
|
+
"_Pagination-B-6mVPUC.js",
|
|
509
511
|
"_AreaChart-DzUXW8u3.js",
|
|
510
|
-
"_useThroughputSeries-
|
|
512
|
+
"_useThroughputSeries-D8wylrhf.js"
|
|
511
513
|
]
|
|
512
514
|
},
|
|
513
515
|
"src/pages/control/QueueControl.tsx": {
|
|
514
|
-
"file": "assets/QueueControl-
|
|
516
|
+
"file": "assets/QueueControl-Cxl_GKCw.js",
|
|
515
517
|
"name": "QueueControl",
|
|
516
518
|
"src": "src/pages/control/QueueControl.tsx",
|
|
517
519
|
"isDynamicEntry": true,
|
|
@@ -520,11 +522,11 @@
|
|
|
520
522
|
"_react-vendor-CHIHtdAC.js",
|
|
521
523
|
"index.html",
|
|
522
524
|
"_form-PtDLk33Z.js",
|
|
523
|
-
"_QueueActions-
|
|
525
|
+
"_QueueActions-DPqmozNf.js"
|
|
524
526
|
]
|
|
525
527
|
},
|
|
526
528
|
"src/pages/control/QueueDetailPro.tsx": {
|
|
527
|
-
"file": "assets/QueueDetailPro-
|
|
529
|
+
"file": "assets/QueueDetailPro-CDntEb4E.js",
|
|
528
530
|
"name": "QueueDetailPro",
|
|
529
531
|
"src": "src/pages/control/QueueDetailPro.tsx",
|
|
530
532
|
"isDynamicEntry": true,
|
|
@@ -533,12 +535,12 @@
|
|
|
533
535
|
"_react-vendor-CHIHtdAC.js",
|
|
534
536
|
"index.html",
|
|
535
537
|
"_AreaChart-DzUXW8u3.js",
|
|
536
|
-
"_useThroughputSeries-
|
|
537
|
-
"_QueueActions-
|
|
538
|
+
"_useThroughputSeries-D8wylrhf.js",
|
|
539
|
+
"_QueueActions-DPqmozNf.js"
|
|
538
540
|
]
|
|
539
541
|
},
|
|
540
542
|
"src/pages/control/QueuesOverview.tsx": {
|
|
541
|
-
"file": "assets/QueuesOverview-
|
|
543
|
+
"file": "assets/QueuesOverview-CggwfR_n.js",
|
|
542
544
|
"name": "QueuesOverview",
|
|
543
545
|
"src": "src/pages/control/QueuesOverview.tsx",
|
|
544
546
|
"isDynamicEntry": true,
|
|
@@ -546,12 +548,12 @@
|
|
|
546
548
|
"_cn-CMFYpumL.js",
|
|
547
549
|
"_react-vendor-CHIHtdAC.js",
|
|
548
550
|
"index.html",
|
|
549
|
-
"_Pagination-
|
|
551
|
+
"_Pagination-B-6mVPUC.js",
|
|
550
552
|
"_promisePool-Daxkc1OB.js"
|
|
551
553
|
]
|
|
552
554
|
},
|
|
553
555
|
"src/pages/control/S3BackupPro.tsx": {
|
|
554
|
-
"file": "assets/S3BackupPro-
|
|
556
|
+
"file": "assets/S3BackupPro-BPop6lt3.js",
|
|
555
557
|
"name": "S3BackupPro",
|
|
556
558
|
"src": "src/pages/control/S3BackupPro.tsx",
|
|
557
559
|
"isDynamicEntry": true,
|
|
@@ -564,7 +566,7 @@
|
|
|
564
566
|
]
|
|
565
567
|
},
|
|
566
568
|
"src/pages/control/ServerControl.tsx": {
|
|
567
|
-
"file": "assets/ServerControl-
|
|
569
|
+
"file": "assets/ServerControl-ELjdOfy0.js",
|
|
568
570
|
"name": "ServerControl",
|
|
569
571
|
"src": "src/pages/control/ServerControl.tsx",
|
|
570
572
|
"isDynamicEntry": true,
|
|
@@ -573,11 +575,11 @@
|
|
|
573
575
|
"_react-vendor-CHIHtdAC.js",
|
|
574
576
|
"index.html",
|
|
575
577
|
"_form-PtDLk33Z.js",
|
|
576
|
-
"_CopyButton-
|
|
578
|
+
"_CopyButton-DvGgfSEm.js"
|
|
577
579
|
]
|
|
578
580
|
},
|
|
579
581
|
"src/pages/control/UsagePro.tsx": {
|
|
580
|
-
"file": "assets/UsagePro-
|
|
582
|
+
"file": "assets/UsagePro-DTCHLKue.js",
|
|
581
583
|
"name": "UsagePro",
|
|
582
584
|
"src": "src/pages/control/UsagePro.tsx",
|
|
583
585
|
"isDynamicEntry": true,
|
|
@@ -587,7 +589,7 @@
|
|
|
587
589
|
]
|
|
588
590
|
},
|
|
589
591
|
"src/pages/control/Webhooks.tsx": {
|
|
590
|
-
"file": "assets/Webhooks-
|
|
592
|
+
"file": "assets/Webhooks-BSxGyZBk.js",
|
|
591
593
|
"name": "Webhooks",
|
|
592
594
|
"src": "src/pages/control/Webhooks.tsx",
|
|
593
595
|
"isDynamicEntry": true,
|
|
@@ -596,11 +598,11 @@
|
|
|
596
598
|
"_react-vendor-CHIHtdAC.js",
|
|
597
599
|
"index.html",
|
|
598
600
|
"_form-PtDLk33Z.js",
|
|
599
|
-
"_Pagination-
|
|
601
|
+
"_Pagination-B-6mVPUC.js"
|
|
600
602
|
]
|
|
601
603
|
},
|
|
602
604
|
"src/pages/control/WorkersPro.tsx": {
|
|
603
|
-
"file": "assets/WorkersPro-
|
|
605
|
+
"file": "assets/WorkersPro-EbCgSBaw.js",
|
|
604
606
|
"name": "WorkersPro",
|
|
605
607
|
"src": "src/pages/control/WorkersPro.tsx",
|
|
606
608
|
"isDynamicEntry": true,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as e}from"./cn-CMFYpumL.js";import{c as t,m as n,r,t as i}from"./react-vendor-CHIHtdAC.js";import{C as a,O as o,S as s,
|
|
1
|
+
import{r as e}from"./cn-CMFYpumL.js";import{c as t,m as n,r,t as i}from"./react-vendor-CHIHtdAC.js";import{C as a,O as o,S as s,h as c,nt as l,tt as u,w as d}from"./index-DTo6fJH9.js";import{n as f,o as p,t as m}from"./form-PtDLk33Z.js";var h=e(n(),1),g=i(),_=e=>e==null?``:String(e);function v(){let{data:e}=o(()=>u.queues(),[],{intervalMs:3e4}),n=t().state?.clone,i=n?.options??{},[p,v]=(0,h.useState)(n?.queue??``),[b,x]=(0,h.useState)(n?.dataText??`{
|
|
2
2
|
"hello": "world"
|
|
3
|
-
}`),[S,C]=(0,h.useState)(`1`),[w,T]=(0,h.useState)(_(i.priority)),[E,D]=(0,h.useState)(``),[O,k]=(0,h.useState)(``),[A,j]=(0,h.useState)(_(i.maxAttempts)),[M,N]=(0,h.useState)(_(i.backoff)),[P,F]=(0,h.useState)(_(i.timeout)),[I,L]=(0,h.useState)(``),[R,z]=(0,h.useState)(i.removeOnComplete??!1),[B,V]=(0,h.useState)(i.removeOnFail??!1),[H,U]=(0,h.useState)(!1),[W,G]=(0,h.useState)(!1),[K,q]=(0,h.useState)(!1),[J,Y]=(0,h.useState)(null),[X,Z]=(0,h.useState)(null),Q=e=>{let t=Number(e);return e.trim()!==``&&Number.isFinite(t)?t:void 0},$=async()=>{if(Y(null),Z(null),!p.trim()){Y({ok:!1,msg:`Choose a queue`});return}let e;try{e=JSON.parse(b)}catch(e){Z(`Invalid JSON: ${e.message}`);return}let t=Q(E);if(O.trim()){let e=new Date(O).getTime();if(!Number.isFinite(e)){Y({ok:!1,msg:`Run at is not a valid date/time`});return}t=Math.max(0,e-Date.now())}let n={data:e,priority:Q(w),delay:t,maxAttempts:Q(A),backoff:Q(M),timeout:Q(P),jobId:I.trim()||void 0,removeOnComplete:R||void 0,removeOnFail:B||void 0,durable:H||void 0,lifo:W||void 0},r=Q(S)??1;if(!Number.isInteger(r)||r<1){Y({ok:!1,msg:`Count must be an integer of at least 1`});return}if(r>1e4){Y({ok:!1,msg:`Count must be 10000 or fewer`});return}q(!0);try{if(r===1){let e=await
|
|
3
|
+
}`),[S,C]=(0,h.useState)(`1`),[w,T]=(0,h.useState)(_(i.priority)),[E,D]=(0,h.useState)(``),[O,k]=(0,h.useState)(``),[A,j]=(0,h.useState)(_(i.maxAttempts)),[M,N]=(0,h.useState)(_(i.backoff)),[P,F]=(0,h.useState)(_(i.timeout)),[I,L]=(0,h.useState)(``),[R,z]=(0,h.useState)(i.removeOnComplete??!1),[B,V]=(0,h.useState)(i.removeOnFail??!1),[H,U]=(0,h.useState)(!1),[W,G]=(0,h.useState)(!1),[K,q]=(0,h.useState)(!1),[J,Y]=(0,h.useState)(null),[X,Z]=(0,h.useState)(null),Q=e=>{let t=Number(e);return e.trim()!==``&&Number.isFinite(t)?t:void 0},$=async()=>{if(Y(null),Z(null),!p.trim()){Y({ok:!1,msg:`Choose a queue`});return}let e;try{e=JSON.parse(b)}catch(e){Z(`Invalid JSON: ${e.message}`);return}let t=Q(E);if(O.trim()){let e=new Date(O).getTime();if(!Number.isFinite(e)){Y({ok:!1,msg:`Run at is not a valid date/time`});return}t=Math.max(0,e-Date.now())}let n={data:e,priority:Q(w),delay:t,maxAttempts:Q(A),backoff:Q(M),timeout:Q(P),jobId:I.trim()||void 0,removeOnComplete:R||void 0,removeOnFail:B||void 0,durable:H||void 0,lifo:W||void 0},r=Q(S)??1;if(!Number.isInteger(r)||r<1){Y({ok:!1,msg:`Count must be an integer of at least 1`});return}if(r>1e4){Y({ok:!1,msg:`Count must be 10000 or fewer`});return}q(!0);try{if(r===1){let e=await u.addJob(p,n);Y({ok:!0,msg:`Created job ${e.id}`}),l.success(`Job created`,`${p} · ${e.id}`)}else{let e=await u.addJobsBulk(p,Array.from({length:r},()=>n)),t=new Set(e.ids).size;Y({ok:!0,msg:`Created ${t} job${t===1?``:`s`}`}),l.success(`Created ${t} job${t===1?``:`s`}`,`in ${p}`)}}catch(e){Y({ok:!1,msg:e.message}),l.error(`Add job failed`,e.message)}finally{q(!1)}};return(0,g.jsxs)(`div`,{children:[(0,g.jsx)(c,{title:`Add Job`,description:`Enqueue a job with full options.`,actions:(0,g.jsx)(r,{to:`/jobs/bulk-add`,className:`rounded-lg border border-line px-3 py-1.5 text-sm text-muted hover:bg-surface-2 hover:text-fg`,children:`Bulk import`})}),n&&(0,g.jsx)(`div`,{className:`mb-4 flex items-center gap-2 rounded-lg border border-accent/30 bg-accent/[0.06] px-4 py-2 text-sm text-accent`,children:`Pre-filled from an existing job. Review the data and options, then enqueue a fresh job.`}),(0,g.jsxs)(`form`,{className:`grid grid-cols-1 gap-6 lg:grid-cols-2`,onSubmit:e=>{e.preventDefault(),$()},children:[(0,g.jsxs)(s,{children:[(0,g.jsx)(a,{title:`Job`}),(0,g.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,g.jsxs)(m,{label:`Queue`,children:[(0,g.jsx)(f,{list:`queue-options`,value:p,onChange:e=>v(e.target.value),placeholder:`queue name (existing or new)`}),(0,g.jsx)(`datalist`,{id:`queue-options`,children:(e?.queues??[]).map(e=>(0,g.jsx)(`option`,{value:e.name},e.name))})]}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(m,{label:`Data (JSON)`,children:(0,g.jsx)(`textarea`,{value:b,onChange:e=>x(e.target.value),spellCheck:!1,rows:7,className:`w-full rounded-lg border border-line bg-surface-2 p-3 font-mono text-sm text-fg focus:border-accent/60 focus:outline-none focus:ring-2 focus:ring-accent/30`})}),X&&(0,g.jsx)(`p`,{className:`mt-2 text-xs text-danger`,children:X})]})]})]}),(0,g.jsxs)(s,{children:[(0,g.jsx)(a,{title:`Options`}),(0,g.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 md:grid-cols-3`,children:[(0,g.jsx)(m,{label:`Priority`,children:(0,g.jsx)(f,{type:`number`,value:w,onChange:e=>T(e.target.value),placeholder:`0`})}),(0,g.jsx)(m,{label:`Delay (ms)`,children:(0,g.jsx)(f,{type:`number`,min:0,value:E,onChange:e=>D(e.target.value),placeholder:`0`,disabled:O.trim()!==``})}),(0,g.jsx)(m,{label:`Run at`,hint:O.trim()?`Overrides Delay — derived from this time.`:void 0,children:(0,g.jsx)(f,{type:`datetime-local`,value:O,onChange:e=>k(e.target.value)})}),(0,g.jsx)(m,{label:`Max attempts`,children:(0,g.jsx)(f,{type:`number`,min:1,value:A,onChange:e=>j(e.target.value),placeholder:`3`})}),(0,g.jsx)(m,{label:`Backoff (ms)`,children:(0,g.jsx)(f,{type:`number`,min:0,value:M,onChange:e=>N(e.target.value),placeholder:`1000`})}),(0,g.jsx)(m,{label:`Timeout (ms)`,children:(0,g.jsx)(f,{type:`number`,min:0,value:P,onChange:e=>F(e.target.value),placeholder:`—`})}),(0,g.jsx)(m,{label:`Custom job ID`,children:(0,g.jsx)(f,{value:I,onChange:e=>L(e.target.value),placeholder:`idempotency key`})})]}),(0,g.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-6`,children:[(0,g.jsx)(y,{label:`removeOnComplete`,checked:R,onChange:z}),(0,g.jsx)(y,{label:`removeOnFail`,checked:B,onChange:V}),(0,g.jsx)(y,{label:`durable`,checked:H,onChange:U}),(0,g.jsx)(y,{label:`lifo`,checked:W,onChange:G})]})]}),(0,g.jsxs)(`div`,{className:`flex flex-wrap items-end gap-3 lg:col-span-2`,children:[(0,g.jsx)(`div`,{className:`w-28`,children:(0,g.jsx)(m,{label:`Count`,children:(0,g.jsx)(f,{type:`number`,min:1,value:S,onChange:e=>C(e.target.value)})})}),(0,g.jsx)(d,{type:`submit`,variant:`accent`,disabled:K,children:K?`Adding…`:`Add job`}),J&&(0,g.jsx)(`span`,{className:J.ok?`text-sm text-success`:`text-sm text-danger`,children:J.msg})]})]})]})}function y({label:e,checked:t,onChange:n}){return(0,g.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,g.jsx)(p,{checked:t,onChange:n,label:e}),(0,g.jsx)(`span`,{className:`font-mono text-xs text-muted`,children:e})]})}export{v as AddJob};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./cn-CMFYpumL.js";import{m as t,t as n}from"./react-vendor-CHIHtdAC.js";import{
|
|
1
|
+
import{r as e}from"./cn-CMFYpumL.js";import{m as t,t as n}from"./react-vendor-CHIHtdAC.js";import{J as r,Q as i,S as a,T as o,Z as s,h as c,it as l,j as u,rt as d,u as f,w as p,y as m}from"./index-DTo6fJH9.js";import{a as h,n as g,o as _,t as v}from"./form-PtDLk33Z.js";var y=e(t(),1),b=n(),x=[`email`,`webhook`,`slack`],S=Object.keys(d),C=[`>=`,`>`,`<=`,`<`];function w(){return typeof Notification>`u`?`unsupported`:Notification.permission}function T(){let{channels:e,rules:t,addChannel:n,removeChannel:h,addRule:g,removeRule:v,toggleRule:x}=l(),S=i(e=>e.breaching),[C,T]=(0,y.useState)(!1),[O,k]=(0,y.useState)(w);return(0,b.jsxs)(`div`,{children:[(0,b.jsx)(c,{title:`Alerts`,description:`Threshold rules evaluated live in your browser.`,live:!0,actions:(0,b.jsxs)(b.Fragment,{children:[O===`granted`?(0,b.jsxs)(`span`,{className:`flex items-center gap-1.5 text-sm text-success`,children:[(0,b.jsx)(u,{className:`size-4`}),` Desktop alerts on`]}):O===`unsupported`?(0,b.jsx)(`span`,{className:`text-sm text-faint`,children:`Notifications unsupported`}):(0,b.jsx)(p,{size:`sm`,onClick:async()=>{k(await s())},children:`Enable desktop notifications`}),(0,b.jsx)(p,{variant:`accent`,size:`sm`,onClick:()=>T(e=>!e),children:`+ Create Alert Rule`})]})}),(0,b.jsx)(`div`,{className:`mb-6 rounded-lg border border-amber-500/20 bg-amber-500/5 px-4 py-3 text-sm text-amber-400/90`,children:`Rules are evaluated in this browser while a tab is open (even backgrounded), raising an in-app toast and — if enabled — a desktop notification. bunqueue OSS has no alerting backend, so email/webhook/slack delivery still needs your own monitoring or hosted bunqueue Cloud.`}),(0,b.jsxs)(`section`,{className:`mb-8`,children:[(0,b.jsx)(`h2`,{className:`mb-3 text-lg font-semibold text-fg`,children:`Triggered Alerts`}),S.length===0?(0,b.jsx)(m,{icon:(0,b.jsx)(u,{}),title:`No triggered alerts`,hint:t.some(e=>e.enabled)?`All enabled rules are within their thresholds.`:`No enabled rules yet. Create one below.`}):(0,b.jsx)(`div`,{className:`overflow-x-auto rounded-xl border border-danger/30 bg-red-500/5`,children:(0,b.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,b.jsx)(`thead`,{children:(0,b.jsxs)(`tr`,{className:`border-b border-line text-left text-[11px] uppercase tracking-wider text-faint`,children:[(0,b.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Rule`}),(0,b.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Condition`}),(0,b.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Queue`}),(0,b.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Current`}),(0,b.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Since`})]})}),(0,b.jsx)(`tbody`,{children:S.map(e=>(0,b.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,b.jsx)(`td`,{className:`px-5 py-3 font-medium text-danger`,children:e.ruleName}),(0,b.jsxs)(`td`,{className:`px-5 py-3 text-muted`,children:[e.metricLabel,` `,e.operator,` `,(0,b.jsx)(`span`,{className:`font-semibold text-fg`,children:e.threshold})]}),(0,b.jsx)(`td`,{className:`px-5 py-3 text-muted`,children:e.queue||`All queues`}),(0,b.jsx)(`td`,{className:`px-5 py-3 text-right tnum font-semibold text-danger`,children:Math.round(e.value*100)/100}),(0,b.jsx)(`td`,{className:`px-5 py-3 text-right text-faint`,children:f(e.at)})]},e.ruleId))})]})})]}),(0,b.jsxs)(`section`,{className:`mb-8`,children:[(0,b.jsx)(`h2`,{className:`mb-3 text-lg font-semibold text-fg`,children:`Notification Channels`}),(0,b.jsxs)(a,{children:[e.length===0?(0,b.jsx)(`p`,{className:`mb-4 text-sm text-faint`,children:`No channels yet. Add one below.`}):(0,b.jsx)(`ul`,{className:`mb-4 divide-y divide-line`,children:e.map(e=>(0,b.jsxs)(`li`,{className:`flex items-center justify-between py-2.5`,children:[(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`div`,{className:`text-sm font-medium capitalize text-fg`,children:e.type}),(0,b.jsx)(`div`,{className:`font-mono text-xs text-faint`,children:e.target})]}),(0,b.jsx)(o,{"aria-label":`Remove channel`,onClick:()=>h(e.id),children:(0,b.jsx)(r,{className:`size-3.5`})})]},e.id))}),(0,b.jsx)(E,{onAdd:n})]})]}),(0,b.jsxs)(`section`,{children:[(0,b.jsx)(`h2`,{className:`mb-3 text-lg font-semibold text-fg`,children:`Alert Rules`}),C&&(0,b.jsx)(a,{className:`mb-4`,children:(0,b.jsx)(D,{onAdd:e=>{g(e),T(!1)}})}),t.length===0?(0,b.jsx)(m,{title:`No alert rules`,hint:`Create a rule to be notified when a threshold is crossed.`}):(0,b.jsx)(`div`,{className:`overflow-x-auto rounded-xl border border-line bg-surface`,children:(0,b.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,b.jsx)(`thead`,{children:(0,b.jsxs)(`tr`,{className:`border-b border-line text-left text-[11px] uppercase tracking-wider text-faint`,children:[(0,b.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Rule`}),(0,b.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Condition`}),(0,b.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Queue`}),(0,b.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Channel`}),(0,b.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Status`}),(0,b.jsx)(`th`,{className:`w-12 px-5 py-3`})]})}),(0,b.jsx)(`tbody`,{children:t.map(e=>(0,b.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,b.jsx)(`td`,{className:`px-5 py-3 font-medium text-fg`,children:e.name}),(0,b.jsxs)(`td`,{className:`px-5 py-3 text-muted`,children:[d[e.metric],` `,e.operator,` `,(0,b.jsx)(`span`,{className:`font-semibold text-accent`,children:e.threshold})]}),(0,b.jsx)(`td`,{className:`px-5 py-3 text-muted`,children:e.queue||`All queues`}),(0,b.jsx)(`td`,{className:`px-5 py-3`,children:(0,b.jsx)(`span`,{className:`rounded-md bg-surface-2 px-2 py-0.5 text-xs capitalize text-muted`,children:e.channel})}),(0,b.jsx)(`td`,{className:`px-5 py-3`,children:(0,b.jsx)(_,{checked:e.enabled,onChange:()=>x(e.id),label:`Enabled`})}),(0,b.jsx)(`td`,{className:`px-5 py-3 text-right`,children:(0,b.jsx)(o,{"aria-label":`Delete rule`,onClick:()=>v(e.id),children:(0,b.jsx)(r,{className:`size-3.5`})})})]},e.id))})]})})]})]})}function E({onAdd:e}){let[t,n]=(0,y.useState)(`email`),[r,i]=(0,y.useState)(``);return(0,b.jsxs)(`div`,{className:`flex flex-wrap items-end gap-3`,children:[(0,b.jsx)(`div`,{className:`w-36`,children:(0,b.jsx)(v,{label:`Type`,children:(0,b.jsx)(h,{value:t,onChange:e=>n(e.target.value),children:x.map(e=>(0,b.jsx)(`option`,{value:e,children:e},e))})})}),(0,b.jsx)(`div`,{className:`min-w-56 flex-1`,children:(0,b.jsx)(v,{label:t===`email`?`Email address`:`URL`,children:(0,b.jsx)(g,{value:r,onChange:e=>i(e.target.value),placeholder:t===`email`?`ops@example.com`:`https://hooks…`})})}),(0,b.jsx)(p,{variant:`accent`,disabled:!r,onClick:()=>{e(t,r),i(``)},children:`Add channel`})]})}function D({onAdd:e}){let[t,n]=(0,y.useState)(``),[r,i]=(0,y.useState)(`error_rate`),[a,o]=(0,y.useState)(`>=`),[s,c]=(0,y.useState)(``),[l,u]=(0,y.useState)(``),[f,m]=(0,y.useState)(`email`);return(0,b.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 md:grid-cols-3 lg:grid-cols-6`,children:[(0,b.jsx)(v,{label:`Name`,children:(0,b.jsx)(g,{value:t,onChange:e=>n(e.target.value),placeholder:`High error rate`})}),(0,b.jsx)(v,{label:`Metric`,children:(0,b.jsx)(h,{value:r,onChange:e=>i(e.target.value),children:S.map(e=>(0,b.jsx)(`option`,{value:e,children:d[e]},e))})}),(0,b.jsx)(v,{label:`Operator`,children:(0,b.jsx)(h,{value:a,onChange:e=>o(e.target.value),children:C.map(e=>(0,b.jsx)(`option`,{value:e,children:e},e))})}),(0,b.jsx)(v,{label:`Threshold`,children:(0,b.jsx)(g,{type:`number`,value:s,onChange:e=>c(e.target.value),placeholder:`55`})}),(0,b.jsx)(v,{label:`Queue (optional)`,children:(0,b.jsx)(g,{value:l,onChange:e=>u(e.target.value),placeholder:`All queues`})}),(0,b.jsx)(v,{label:`Channel`,children:(0,b.jsx)(h,{value:f,onChange:e=>m(e.target.value),children:x.map(e=>(0,b.jsx)(`option`,{value:e,children:e},e))})}),(0,b.jsx)(`div`,{className:`col-span-full`,children:(0,b.jsx)(p,{variant:`accent`,disabled:!t||!s,onClick:()=>e({name:t,metric:r,operator:a,threshold:Number(s),queue:l,channel:f,enabled:!0}),children:`Save rule`})})]})}export{T as Alerts};
|