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.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/SECURITY.md +126 -47
- package/data/google-crawlers.json +1 -1
- package/lib/api-routes/outbox-routes.js +132 -9
- package/lib/api-routes/permission-map.js +11 -1
- package/lib/consts.js +0 -4
- package/lib/email-client/imap/idle-settings.js +44 -0
- package/lib/email-client/imap/mailbox.js +19 -7
- package/lib/email-client/imap-client.js +3 -21
- package/lib/enum-descriptions.js +7 -0
- package/lib/export.js +2 -6
- package/lib/field-usage.js +4 -0
- package/lib/handlebars-helpers.js +4 -0
- package/lib/outbox.js +338 -10
- package/lib/queue-browser/definitions.js +132 -0
- package/lib/queue-browser/format.js +387 -0
- package/lib/queue-browser/index.js +568 -0
- package/lib/queue-job-actions.js +75 -0
- package/lib/queue-retention.js +53 -1
- package/lib/routes-ui.js +5 -0
- package/lib/schemas.js +42 -2
- package/lib/security-headers.js +2 -24
- package/lib/token-permission-view.js +1 -1
- package/lib/ui-routes/account-routes.js +6 -0
- package/lib/ui-routes/imap-idle-field.js +42 -0
- package/lib/ui-routes/queue-routes.js +371 -0
- package/lib/utils/status-error.js +21 -0
- package/package.json +15 -17
- package/prepare-bundle-deps.sh +1 -1
- package/sbom.json +1 -1
- package/server.js +10 -0
- package/static/css/flyonui.css +1 -1
- package/static/css/src/app.tailwind.css +2 -0
- package/static/js/queues.js +117 -0
- package/static/licenses.html +122 -246
- package/translations/messages.pot +57 -42
- package/views/accounts/account.hbs +31 -0
- package/views/accounts/edit.hbs +2 -0
- package/views/config/service.hbs +1 -2
- package/views/dashboard.hbs +2 -2
- package/views/partials/queue_cell_account.hbs +20 -0
- package/views/partials/queue_cell_failure.hbs +6 -0
- package/views/partials/queue_clean_items.hbs +9 -0
- package/views/partials/queue_clean_modal.hbs +9 -0
- package/views/partials/queue_entry_actions.hbs +41 -0
- package/views/partials/queue_job_actions.hbs +15 -0
- package/views/partials/queue_pause_controls.hbs +18 -0
- package/views/partials/queue_retention_note.hbs +49 -0
- package/views/partials/queue_rows_export.hbs +58 -0
- package/views/partials/queue_rows_notify.hbs +73 -0
- package/views/partials/queue_rows_submit.hbs +70 -0
- package/views/partials/side_menu.hbs +1 -1
- package/views/partials/ui/tooltip.hbs +5 -3
- package/views/queues/index.hbs +104 -0
- package/views/queues/job.hbs +224 -0
- package/views/queues/queue.hbs +93 -0
- package/views/webhooks/webhook.hbs +3 -0
- package/workers/api.js +0 -4
- package/workers/submit.js +19 -5
- package/workers/webhooks.js +13 -0
- 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;
|