emailengine-app 2.83.2 → 2.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +20 -0
  3. package/README.md +1 -1
  4. package/SECURITY.md +126 -47
  5. package/data/google-crawlers.json +1 -1
  6. package/lib/api-routes/outbox-routes.js +132 -9
  7. package/lib/api-routes/permission-map.js +11 -1
  8. package/lib/consts.js +0 -4
  9. package/lib/email-client/imap/idle-settings.js +44 -0
  10. package/lib/email-client/imap/mailbox.js +19 -7
  11. package/lib/email-client/imap-client.js +3 -21
  12. package/lib/enum-descriptions.js +7 -0
  13. package/lib/export.js +2 -6
  14. package/lib/field-usage.js +4 -0
  15. package/lib/handlebars-helpers.js +4 -0
  16. package/lib/outbox.js +338 -10
  17. package/lib/queue-browser/definitions.js +132 -0
  18. package/lib/queue-browser/format.js +387 -0
  19. package/lib/queue-browser/index.js +568 -0
  20. package/lib/queue-job-actions.js +75 -0
  21. package/lib/queue-retention.js +53 -1
  22. package/lib/routes-ui.js +5 -0
  23. package/lib/schemas.js +42 -2
  24. package/lib/security-headers.js +2 -24
  25. package/lib/token-permission-view.js +1 -1
  26. package/lib/ui-routes/account-routes.js +6 -0
  27. package/lib/ui-routes/imap-idle-field.js +42 -0
  28. package/lib/ui-routes/queue-routes.js +371 -0
  29. package/lib/utils/status-error.js +21 -0
  30. package/package.json +15 -17
  31. package/prepare-bundle-deps.sh +1 -1
  32. package/sbom.json +1 -1
  33. package/server.js +10 -0
  34. package/static/css/flyonui.css +1 -1
  35. package/static/css/src/app.tailwind.css +2 -0
  36. package/static/js/queues.js +117 -0
  37. package/static/licenses.html +122 -246
  38. package/translations/messages.pot +57 -42
  39. package/views/accounts/account.hbs +31 -0
  40. package/views/accounts/edit.hbs +2 -0
  41. package/views/config/service.hbs +1 -2
  42. package/views/dashboard.hbs +2 -2
  43. package/views/partials/queue_cell_account.hbs +20 -0
  44. package/views/partials/queue_cell_failure.hbs +6 -0
  45. package/views/partials/queue_clean_items.hbs +9 -0
  46. package/views/partials/queue_clean_modal.hbs +9 -0
  47. package/views/partials/queue_entry_actions.hbs +41 -0
  48. package/views/partials/queue_job_actions.hbs +15 -0
  49. package/views/partials/queue_pause_controls.hbs +18 -0
  50. package/views/partials/queue_retention_note.hbs +49 -0
  51. package/views/partials/queue_rows_export.hbs +58 -0
  52. package/views/partials/queue_rows_notify.hbs +73 -0
  53. package/views/partials/queue_rows_submit.hbs +70 -0
  54. package/views/partials/side_menu.hbs +1 -1
  55. package/views/partials/ui/tooltip.hbs +5 -3
  56. package/views/queues/index.hbs +104 -0
  57. package/views/queues/job.hbs +224 -0
  58. package/views/queues/queue.hbs +93 -0
  59. package/views/webhooks/webhook.hbs +3 -0
  60. package/workers/api.js +0 -4
  61. package/workers/submit.js +19 -5
  62. package/workers/webhooks.js +13 -0
  63. package/lib/api-routes/bull-board-routes.js +0 -56
@@ -1,56 +0,0 @@
1
- 'use strict';
2
-
3
- const { createBullBoard } = require('@bull-board/api');
4
- const { BullMQAdapter } = require('@bull-board/api/bullMQAdapter');
5
- const { HapiAdapter } = require('@bull-board/hapi');
6
- const { notifyQueue, submitQueue } = require('../db');
7
- const { BULL_BOARD_BASE_PATH } = require('../consts');
8
-
9
- async function init(args) {
10
- const { server } = args;
11
-
12
- const serverAdapter = new HapiAdapter();
13
-
14
- let queues = [
15
- {
16
- queue: notifyQueue,
17
- prefix: 'Webhooks Queue - ',
18
- description: 'This queue processes all email events that may trigger webhooks. Events that do not trigger a webhook are silently discarded.'
19
- },
20
- {
21
- queue: submitQueue,
22
- prefix: 'Submission Queue - ',
23
- description: 'This queue contains emails that are scheduled to be sent.'
24
- }
25
- ];
26
- let queueAdapters = queues.map(queue => {
27
- let adapter = new BullMQAdapter(queue.queue, {
28
- description: queue.description,
29
- prefix: queue.prefix
30
- });
31
-
32
- //adapter.setFormatter('name', job => `#Queue1 - ${job.name}`);
33
-
34
- return adapter;
35
- });
36
-
37
- createBullBoard({
38
- queues: queueAdapters,
39
- serverAdapter,
40
- options: {
41
- uiConfig: {
42
- boardTitle: 'Bull Board',
43
- boardLogo: { path: '/static/logo.png', width: '28px', height: '28px' },
44
- favIcon: { default: '/static/favicon/android-chrome-512x512.png', alternative: 'static/favicon/favicon-32x32.png' },
45
- miscLinks: [{ text: 'Dashboard', url: '/admin' }]
46
- }
47
- }
48
- });
49
-
50
- serverAdapter.setBasePath(BULL_BOARD_BASE_PATH);
51
- await server.register(serverAdapter.registerPlugin(), {
52
- routes: { prefix: BULL_BOARD_BASE_PATH }
53
- });
54
- }
55
-
56
- module.exports = init;