emailengine-app 2.80.0 → 2.81.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/.dockerignore +44 -0
- package/.github/docker-smoke-test.sh +16 -0
- package/.github/workflows/deploy.yml +4 -0
- package/.github/workflows/release.yaml +4 -0
- package/.github/workflows/test.yml +2 -0
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +56 -0
- package/Dockerfile +17 -9
- package/README.md +6 -0
- package/data/google-crawlers.json +1 -1
- package/docker-compose.yml +7 -1
- package/lib/api-routes/account-routes.js +239 -73
- package/lib/api-routes/blocklist-routes.js +24 -0
- package/lib/api-routes/delivery-test-routes.js +6 -0
- package/lib/api-routes/gateway-routes.js +30 -0
- package/lib/api-routes/license-routes.js +10 -0
- package/lib/api-routes/mcp-oauth-routes.js +3 -3
- package/lib/api-routes/mcp-routes.js +39 -21
- package/lib/api-routes/oauth2-app-routes.js +38 -1
- package/lib/api-routes/outbox-routes.js +6 -0
- package/lib/api-routes/permission-map.js +212 -42
- package/lib/api-routes/pubsub-routes.js +8 -0
- package/lib/api-routes/route-helpers.js +58 -11
- package/lib/api-routes/settings-routes.js +50 -4
- package/lib/api-routes/stats-routes.js +6 -0
- package/lib/api-routes/template-routes.js +21 -0
- package/lib/api-routes/token-routes.js +34 -2
- package/lib/api-routes/webhook-route-routes.js +13 -0
- package/lib/autodetect-imap-settings.js +4 -4
- package/lib/email-client/base-client.js +6 -3
- package/lib/email-client/credential-errors.js +4 -0
- package/lib/email-client/imap/login-failure.js +52 -0
- package/lib/email-client/imap/subconnection.js +2 -1
- package/lib/email-client/imap-client.js +3 -6
- package/lib/enum-descriptions.js +12 -2
- package/lib/imapproxy/imap-server.js +1 -1
- package/lib/mcp/oauth.js +46 -8
- package/lib/mcp/protocol.js +78 -35
- package/lib/mcp/tools.js +53 -17
- package/lib/privileged-settings.js +147 -0
- package/lib/schemas.js +60 -16
- package/lib/sentry.js +13 -2
- package/lib/settings.js +13 -0
- package/lib/tls/catalog.js +428 -0
- package/lib/tls/context.js +87 -161
- package/lib/tls/listeners.js +62 -0
- package/lib/tls/provision.js +1 -1
- package/lib/tls/status.js +128 -79
- package/lib/tls/store.js +3 -2
- package/lib/token-permission-view.js +253 -102
- package/lib/token-permissions.js +176 -26
- package/lib/tokens.js +7 -6
- package/lib/tools.js +5 -3
- package/lib/ui-routes/account-routes.js +195 -61
- package/lib/ui-routes/admin-config-routes.js +41 -21
- package/lib/ui-routes/admin-entities-routes.js +32 -22
- package/lib/ui-routes/mcp-consent-routes.js +72 -31
- package/lib/ui-routes/tls-config-routes.js +121 -74
- package/package.json +16 -16
- package/sbom.json +1 -1
- package/server.js +7 -1
- package/static/css/flyonui.css +1 -1
- package/static/css/public.css +41 -0
- package/static/css/src/app.tailwind.css +135 -4
- package/static/js/public.js +218 -0
- package/static/js/ui.js +89 -36
- package/static/licenses.html +55 -37
- package/translations/README.md +4 -3
- package/translations/de.mo +0 -0
- package/translations/de.po +296 -185
- package/translations/en.po +220 -128
- package/translations/es.mo +0 -0
- package/translations/es.po +558 -0
- package/translations/et.mo +0 -0
- package/translations/et.po +288 -181
- package/translations/fr.mo +0 -0
- package/translations/fr.po +295 -183
- package/translations/it.mo +0 -0
- package/translations/it.po +558 -0
- package/translations/ja.mo +0 -0
- package/translations/ja.po +268 -192
- package/translations/locales.json +24 -0
- package/translations/messages.pot +179 -127
- package/translations/nl.mo +0 -0
- package/translations/nl.po +288 -175
- package/translations/pl.mo +0 -0
- package/translations/pl.po +294 -181
- package/translations/sv.mo +0 -0
- package/translations/sv.po +555 -0
- package/translations/tr.mo +0 -0
- package/translations/tr.po +555 -0
- package/update-info.sh +12 -6
- package/views/account/login-redirect.hbs +6 -5
- package/views/account/passkeys.hbs +8 -8
- package/views/account/security.hbs +2 -2
- package/views/accounts/account.hbs +19 -21
- package/views/accounts/browse.hbs +1 -1
- package/views/accounts/edit.hbs +15 -15
- package/views/accounts/index.hbs +3 -3
- package/views/accounts/register/imap-server.hbs +27 -173
- package/views/accounts/register/validating.hbs +139 -0
- package/views/config/ai.hbs +15 -17
- package/views/config/branding.hbs +7 -7
- package/views/config/document-store/chat.hbs +9 -8
- package/views/config/document-store/index.hbs +14 -15
- package/views/config/document-store/mappings/index.hbs +5 -6
- package/views/config/document-store/mappings/new.hbs +1 -2
- package/views/config/document-store/pre-processing/index.hbs +4 -4
- package/views/config/email-processing.hbs +6 -6
- package/views/config/imap-proxy.hbs +7 -8
- package/views/config/license.hbs +9 -9
- package/views/config/logging.hbs +5 -7
- package/views/config/mcp.hbs +90 -58
- package/views/config/network.hbs +4 -4
- package/views/config/oauth/app.hbs +12 -12
- package/views/config/oauth/index.hbs +6 -6
- package/views/config/oauth/subscriptions.hbs +9 -9
- package/views/config/security.hbs +5 -7
- package/views/config/service.hbs +11 -10
- package/views/config/smtp.hbs +9 -12
- package/views/config/tls-upload.hbs +3 -3
- package/views/config/tls.hbs +281 -182
- package/views/config/webhooks.hbs +12 -15
- package/views/dashboard.hbs +9 -8
- package/views/gateways/edit.hbs +3 -3
- package/views/gateways/gateway.hbs +3 -3
- package/views/gateways/index.hbs +6 -6
- package/views/gateways/new.hbs +3 -3
- package/views/internals/index.hbs +15 -13
- package/views/layout/app.hbs +6 -6
- package/views/layout/login.hbs +32 -19
- package/views/layout/main.hbs +2 -2
- package/views/layout/prompt.hbs +15 -18
- package/views/layout/public.hbs +1 -1
- package/views/mcp/authorize.hbs +47 -45
- package/views/partials/accounts_table.hbs +5 -5
- package/views/partials/ace_assets.hbs +1 -1
- package/views/partials/add_account_modal.hbs +4 -4
- package/views/partials/address_list.hbs +4 -4
- package/views/partials/filter_editor_js.hbs +2 -2
- package/views/partials/gateway_form.hbs +5 -5
- package/views/partials/gateway_js.hbs +1 -1
- package/views/partials/mcp_access_levels.hbs +16 -9
- package/views/partials/mcp_account_limit.hbs +2 -2
- package/views/partials/mcp_tool_count.hbs +15 -14
- package/views/partials/oauth_config_header.hbs +2 -2
- package/views/partials/oauth_form.hbs +37 -42
- package/views/partials/public_alerts.hbs +1 -1
- package/views/partials/public_test_labels.hbs +15 -0
- package/views/partials/public_theme_init.hbs +1 -1
- package/views/partials/security_header.hbs +2 -2
- package/views/partials/template_form.hbs +4 -4
- package/views/partials/theme_init.hbs +1 -1
- package/views/partials/tls_security_card.hbs +4 -1
- package/views/partials/ui/form-field.hbs +6 -1
- package/views/partials/ui/setting-ref.hbs +12 -7
- package/views/partials/ui/stat-card.hbs +4 -1
- package/views/partials/ui/tabs.hbs +3 -7
- package/views/partials/webhook_form.hbs +9 -12
- package/views/partials/webhooks_editor_functions.hbs +1 -1
- package/views/reference/index.hbs +3 -3
- package/views/reference/redirect.hbs +1 -1
- package/views/reference/tag.hbs +1 -1
- package/views/reference/token.hbs +4 -4
- package/views/suppression-lists/index.hbs +8 -6
- package/views/suppression-lists/list.hbs +13 -8
- package/views/templates/edit.hbs +1 -1
- package/views/templates/index.hbs +10 -11
- package/views/templates/template.hbs +5 -5
- package/views/tokens/index.hbs +17 -17
- package/views/tokens/new.hbs +190 -93
- package/views/unsubscribe.hbs +1 -1
- package/views/webhooks/edit.hbs +1 -1
- package/views/webhooks/index.hbs +10 -11
- package/views/webhooks/new.hbs +1 -1
- package/views/webhooks/webhook.hbs +5 -6
- package/workers/api.js +9 -8
- package/workers/smtp.js +1 -1
|
@@ -3,8 +3,8 @@ badgeLabel=(when values.webhooksEnabled "enabled" "disabled")
|
|
|
3
3
|
badgeVariant=(when values.webhooksEnabled "success" "warning")
|
|
4
4
|
class="mb-1"}}
|
|
5
5
|
|
|
6
|
-
<p class="mb-6">
|
|
7
|
-
|
|
6
|
+
<p class="mb-6">Receive email event notifications as HTTP POST requests. Choose a destination, select events,
|
|
7
|
+
and configure the data included in each webhook.</p>
|
|
8
8
|
|
|
9
9
|
{{#if values.webhooksEnabled}}
|
|
10
10
|
{{#if webhookErrorFlag}}
|
|
@@ -38,7 +38,7 @@ class="mb-1"}}
|
|
|
38
38
|
<h6 class="card-title text-primary">Webhook Processing</h6>
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
|
-
<div class="px-6 py-4 flex items-start justify-between gap-4">
|
|
41
|
+
<div class="px-6 py-4 ee-toggle-row flex items-start justify-between gap-4">
|
|
42
42
|
{{> ui/checkbox id="webhooks_enabled" name="webhooksEnabled" label="Enable Webhooks"
|
|
43
43
|
checked=values.webhooksEnabled error=errors.webhooksEnabled
|
|
44
44
|
hint="Turn on webhook notifications for email events."}}
|
|
@@ -50,7 +50,7 @@ class="mb-1"}}
|
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
53
|
-
<div class="card-header flex items-center justify-between">
|
|
53
|
+
<div class="card-header flex flex-wrap items-center justify-between gap-3">
|
|
54
54
|
<h6 class="card-title text-primary">Default Webhook</h6>
|
|
55
55
|
{{!-- keeps the webhooks-status hook: the or-else-all rule on the
|
|
56
56
|
URL input disables this button while the URL is empty --}}
|
|
@@ -71,8 +71,7 @@ class="mb-1"}}
|
|
|
71
71
|
</div>
|
|
72
72
|
|
|
73
73
|
<p><strong>Event Types</strong><br>
|
|
74
|
-
<small>Choose which events
|
|
75
|
-
issues.</small>
|
|
74
|
+
<small>Choose which events go to the default webhook URL or account-specific URLs. Webhook routes use their own filters.</small>
|
|
76
75
|
</p>
|
|
77
76
|
|
|
78
77
|
<div>
|
|
@@ -94,7 +93,7 @@ class="mb-1"}}
|
|
|
94
93
|
<div class="ps-6">
|
|
95
94
|
{{> ui/setting-ref name="inboxNewOnly"}}
|
|
96
95
|
{{> ui/checkbox id="inboxNewOnly" name="inboxNewOnly"
|
|
97
|
-
label="
|
|
96
|
+
label="Limit new-message notifications to the Inbox" checked=../values.inboxNewOnly
|
|
98
97
|
error=../errors.inboxNewOnly}}
|
|
99
98
|
</div>
|
|
100
99
|
|
|
@@ -173,7 +172,7 @@ class="mb-1"}}
|
|
|
173
172
|
{{> ui/checkbox id="settingsNotifyWebSafeHtml" name="notifyWebSafeHtml"
|
|
174
173
|
label="Sanitize HTML for web display" class="text-list" checked=values.notifyWebSafeHtml
|
|
175
174
|
error=errors.notifyWebSafeHtml
|
|
176
|
-
hint="
|
|
175
|
+
hint="Remove unsafe HTML, convert plain text to HTML when needed, and collapse quoted thread history."}}
|
|
177
176
|
</div>
|
|
178
177
|
|
|
179
178
|
<div>
|
|
@@ -182,8 +181,7 @@ class="mb-1"}}
|
|
|
182
181
|
<input type="text" class="input text-list{{#if errors.notifyTextSize}} is-invalid{{/if}}"
|
|
183
182
|
id="settingsNotifyTextSize" min="0" name="notifyTextSize" value="{{values.notifyTextSize}}"
|
|
184
183
|
placeholder="1MB" />
|
|
185
|
-
<span class="helper-text">Maximum size
|
|
186
|
-
truncated.</span>
|
|
184
|
+
<span class="helper-text">Maximum size of each text or HTML body. Content above this limit is truncated.</span>
|
|
187
185
|
{{/ui/form-field}}
|
|
188
186
|
</div>
|
|
189
187
|
|
|
@@ -222,8 +220,7 @@ class="mb-1"}}
|
|
|
222
220
|
<input type="text" class="input attachment-list{{#if errors.notifyAttachmentSize}} is-invalid{{/if}}"
|
|
223
221
|
id="settingsNotifyAttachmentSize" min="0" name="notifyAttachmentSize"
|
|
224
222
|
value="{{values.notifyAttachmentSize}}" placeholder="2MB" />
|
|
225
|
-
<span class="helper-text">
|
|
226
|
-
can consume Redis memory quickly.</span>
|
|
223
|
+
<span class="helper-text">Include attachment content only when it fits this limit. Larger limits increase Redis memory use.</span>
|
|
227
224
|
{{/ui/form-field}}
|
|
228
225
|
</div>
|
|
229
226
|
</div>
|
|
@@ -261,15 +258,15 @@ class="mb-1"}}
|
|
|
261
258
|
{{/ui/card}}
|
|
262
259
|
|
|
263
260
|
<div class="mb-6">
|
|
264
|
-
{{> ui/btn label="Save
|
|
261
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--settings]"}}
|
|
265
262
|
</div>
|
|
266
263
|
|
|
267
264
|
</form>
|
|
268
265
|
|
|
269
266
|
{{> ace_assets}}
|
|
270
|
-
<script src="/static/js/ace/ext-language_tools.js"></script>
|
|
267
|
+
<script data-cfasync="false" src="/static/js/ace/ext-language_tools.js"></script>
|
|
271
268
|
|
|
272
|
-
<script nonce="{{cspNonce}}">
|
|
269
|
+
<script data-cfasync="false" nonce="{{cspNonce}}">
|
|
273
270
|
document.addEventListener('DOMContentLoaded', () => {
|
|
274
271
|
|
|
275
272
|
const sendTestPayload = async () => {
|
package/views/dashboard.hbs
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{{/ui/tooltip}}
|
|
18
18
|
</div>
|
|
19
19
|
<div class="text-xl font-semibold text-base-content">
|
|
20
|
-
{{#> ui/tooltip text="
|
|
20
|
+
{{#> ui/tooltip text="Total queue entries"}}{{formatInteger queue.total userLocale}}{{/ui/tooltip}} /
|
|
21
21
|
{{#> ui/tooltip text=delayedTooltip}}{{formatInteger queue.delayed userLocale}}{{/ui/tooltip}}
|
|
22
22
|
</div>
|
|
23
23
|
{{/ui/stat-card}}
|
|
@@ -68,8 +68,7 @@
|
|
|
68
68
|
|
|
69
69
|
{{#unless hasAccounts}}
|
|
70
70
|
{{#> ui/stat-card variant="success" title="Welcome to EmailEngine!" icon="icon-[tabler--info-circle]" class="mt-6"}}
|
|
71
|
-
<p class="mb-2">
|
|
72
|
-
and receive emails through the <a href="/admin/reference" class="link link-animated">API</a>.
|
|
71
|
+
<p class="mb-2">Connect your first email account to send email and access mailbox data through the <a href="/admin/reference" class="link link-animated">API</a>.
|
|
73
72
|
</p>
|
|
74
73
|
<p class="mb-4 text-sm text-base-content/60">You can also add accounts programmatically via the <a
|
|
75
74
|
href="https://learn.emailengine.app/docs/api/post-v-1-account" target="_blank" rel="noopener noreferrer"
|
|
@@ -83,7 +82,7 @@
|
|
|
83
82
|
|
|
84
83
|
{{> ui/section-title label="Accounts" class="mt-6 mb-3"}}
|
|
85
84
|
|
|
86
|
-
<div class="grid grid-cols-
|
|
85
|
+
<div class="grid grid-cols-2 gap-4 md:grid-cols-3">
|
|
87
86
|
|
|
88
87
|
{{#> ui/stat-card variant="primary" icon="icon-[tabler--users]"}}
|
|
89
88
|
<div class="text-sm font-medium text-base-content/60 mb-1">
|
|
@@ -131,12 +130,12 @@
|
|
|
131
130
|
</div>
|
|
132
131
|
{{/ui/section-title}}
|
|
133
132
|
|
|
134
|
-
<div class="grid grid-cols-
|
|
133
|
+
<div class="grid grid-cols-2 gap-4 xl:grid-cols-4">
|
|
135
134
|
|
|
136
135
|
{{> activityCard cardIcon="icon-[tabler--mail]" cardTip="Detected new emails in synced mailboxes"
|
|
137
136
|
cardLabel="New emails" okValue=activity.messageNew}}
|
|
138
137
|
|
|
139
|
-
{{> activityCard cardIcon="icon-[tabler--mail-forward]" cardTip="Emails accepted by
|
|
138
|
+
{{> activityCard cardIcon="icon-[tabler--mail-forward]" cardTip="Emails accepted by the sending server or provider for delivery"
|
|
140
139
|
cardLabel="Emails sent" okValue=activity.submitSuccess failValue=activity.submitFail failLabel="rejected"}}
|
|
141
140
|
|
|
142
141
|
{{> activityCard cardIcon="icon-[tabler--webhook]" cardTip="Successfully delivered webhook notifications"
|
|
@@ -150,11 +149,13 @@
|
|
|
150
149
|
|
|
151
150
|
{{> ui/section-title label="System" class="mt-8 mb-3"}}
|
|
152
151
|
|
|
153
|
-
|
|
152
|
+
{{!-- auto-fit, so the tiles fill the row whether or not the Document Store adds a third
|
|
153
|
+
queue - a fixed four-column track left a quarter-width hole at the end without it --}}
|
|
154
|
+
<div class="grid grid-cols-2 gap-4 xl:grid-cols-[repeat(auto-fit,minmax(15rem,1fr))]">
|
|
154
155
|
|
|
155
156
|
{{> queueCard queue=stats.queues.notify href="/admin/bull-board/queue/Webhooks%20Queue%20-%20notify" label="Webhooks queue" tooltip="This queue processes webhook notifications" delayedTooltip="Delayed queue entries"}}
|
|
156
157
|
|
|
157
|
-
{{> queueCard queue=stats.queues.submit href="/admin/bull-board/queue/Submission%20Queue%20-%20submit" label="Submission queue" tooltip="This queue processes emails
|
|
158
|
+
{{> queueCard queue=stats.queues.submit href="/admin/bull-board/queue/Submission%20Queue%20-%20submit" label="Submission queue" tooltip="This queue processes outgoing emails" delayedTooltip="Delayed queue entries, including emails scheduled to be sent later"}}
|
|
158
159
|
|
|
159
160
|
{{#if showDocumentStore}}
|
|
160
161
|
{{> queueCard queue=stats.queues.documents href="/admin/bull-board/queue/Document%20Queue%20-%20documents" label="Documents queue" tooltip="This queue indexes mailbox changes to Elasticsearch" delayedTooltip="Delayed queue entries"}}
|
package/views/gateways/edit.hbs
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
10
10
|
|
|
11
|
-
<div class="card-header flex items-center justify-between">
|
|
11
|
+
<div class="card-header flex flex-wrap items-center justify-between gap-3">
|
|
12
12
|
<h6 class="card-title text-primary">Gateway Configuration</h6>
|
|
13
|
-
{{> ui/btn label="Test
|
|
13
|
+
{{> ui/btn label="Test connection" variant="neutral" style="soft" size="sm" id="test-verify-btn"
|
|
14
14
|
icon="icon-[tabler--send]"}}
|
|
15
15
|
</div>
|
|
16
16
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
24
|
<div class="mb-6">
|
|
25
|
-
{{> ui/btn label="Save
|
|
25
|
+
{{> ui/btn label="Save changes" type="submit" icon="icon-[tabler--device-floppy]"}}
|
|
26
26
|
</div>
|
|
27
27
|
</form>
|
|
28
28
|
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
{{/if}}
|
|
61
61
|
|
|
62
62
|
<dt>Encryption</dt>
|
|
63
|
-
<dd>{{#if gateway.secure}}TLS
|
|
63
|
+
<dd>{{#if gateway.secure}}Direct TLS{{else}}STARTTLS (when available){{/if}}
|
|
64
64
|
</dd>
|
|
65
65
|
</dl>
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
{{/ui/card}}
|
|
69
69
|
|
|
70
|
-
{{#> ui/confirm-modal id="deleteModal" title="Delete
|
|
71
|
-
submitLabel="Delete
|
|
70
|
+
{{#> ui/confirm-modal id="deleteModal" title="Delete gateway" action=(concat "/admin/gateways/delete/" (urlpart gateway.gateway))
|
|
71
|
+
submitLabel="Delete gateway"}}
|
|
72
72
|
<p>Delete gateway "{{gateway.name}}"? This action cannot be undone.</p>
|
|
73
73
|
{{/ui/confirm-modal}}
|
package/views/gateways/index.hbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{#> ui/page-header title="Gateways" icon="icon-[tabler--send]" subtitle="Route outgoing email through your own SMTP servers or third-party providers." badgeLabel=total badgeVariant="neutral" class="mb-6"}}
|
|
2
|
-
{{> ui/btn href="/admin/gateways/new" label="Add
|
|
2
|
+
{{> ui/btn href="/admin/gateways/new" label="Add gateway" icon="icon-[tabler--plus]"}}
|
|
3
3
|
{{/ui/page-header}}
|
|
4
4
|
|
|
5
5
|
{{> ui/search-crumb parentHref="/admin/gateways" parentLabel="Gateways" query=query}}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
10
10
|
|
|
11
11
|
<div class="overflow-x-auto">
|
|
12
|
-
<table class="table">
|
|
12
|
+
<table class="table ee-table-stack">
|
|
13
13
|
<thead>
|
|
14
14
|
<tr>
|
|
15
15
|
<th>Name</th>
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
<div><strong>{{name}}</strong></div>
|
|
29
29
|
{{> ui/entity-id id=gateway label="Gateway ID"}}
|
|
30
30
|
</td>
|
|
31
|
-
<td class="relative">
|
|
31
|
+
<td class="relative" data-label="Emails Sent">
|
|
32
32
|
{{> ui/row-link href=(concat "/admin/gateways/gateway/" (urlpart gateway))}}{{deliveries}}
|
|
33
33
|
</td>
|
|
34
34
|
|
|
35
|
-
<td class="relative">
|
|
35
|
+
<td class="relative" data-label="Last Activity">
|
|
36
36
|
{{> ui/row-link href=(concat "/admin/gateways/gateway/" (urlpart gateway))}}
|
|
37
37
|
{{#if timeStr}}
|
|
38
38
|
<span class="relative-time" data-time="{{timeStr}}"></span>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
{{/if}}
|
|
42
42
|
</td>
|
|
43
43
|
|
|
44
|
-
<td class="relative w-32">
|
|
44
|
+
<td class="relative w-32" data-label="Status">
|
|
45
45
|
{{> ui/row-link href=(concat "/admin/gateways/gateway/" (urlpart gateway))}}
|
|
46
46
|
{{!-- live state badge with an error tooltip; wrapping link
|
|
47
47
|
lifts the badge above the row overlay --}}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</a>
|
|
51
51
|
</td>
|
|
52
52
|
|
|
53
|
-
<td class="relative text-end">
|
|
53
|
+
<td class="ee-stack-actions relative text-end">
|
|
54
54
|
{{> ui/row-actions openHref=(concat "/admin/gateways/gateway/" (urlpart gateway)) label="Gateway actions"
|
|
55
55
|
deleteModal="#deleteGateway" deleteName=name deleteAction=(concat "/admin/gateways/delete/" (urlpart gateway))}}
|
|
56
56
|
</td>
|
package/views/gateways/new.hbs
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
<div class="card bg-base-100 shadow-md mb-6">
|
|
9
9
|
|
|
10
|
-
<div class="card-header flex items-center justify-between">
|
|
10
|
+
<div class="card-header flex flex-wrap items-center justify-between gap-3">
|
|
11
11
|
<h6 class="card-title text-primary">New Gateway</h6>
|
|
12
|
-
{{> ui/btn label="Test
|
|
12
|
+
{{> ui/btn label="Test connection" variant="neutral" style="soft" size="sm" id="test-verify-btn"
|
|
13
13
|
icon="icon-[tabler--send]"}}
|
|
14
14
|
</div>
|
|
15
15
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
25
|
<div class="mb-6">
|
|
26
|
-
{{> ui/btn label="Create
|
|
26
|
+
{{> ui/btn label="Create gateway" type="submit" icon="icon-[tabler--send]"}}
|
|
27
27
|
</div>
|
|
28
28
|
</form>
|
|
29
29
|
|
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
{{/if}}
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
36
|
-
|
|
36
|
+
{{!-- wraps: the count badge and a 26-character env var name together outrun a phone-width
|
|
37
|
+
card, and the nowrap on the name is there so it never breaks mid-identifier --}}
|
|
38
|
+
<div class="flex flex-wrap items-center justify-end gap-3">
|
|
37
39
|
{{#if hasExpected}}
|
|
38
40
|
{{#> ui/tooltip text="Worker threads running vs. the number configured to run"}}
|
|
39
41
|
{{> ui/badge label=countLabel variant=countVariant}}
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
</div>
|
|
49
51
|
|
|
50
52
|
<div class="overflow-x-auto">
|
|
51
|
-
<table class="table">
|
|
53
|
+
<table class="table ee-table-stack">
|
|
52
54
|
|
|
53
55
|
<thead>
|
|
54
56
|
<tr>
|
|
@@ -86,11 +88,11 @@
|
|
|
86
88
|
{{/if}}
|
|
87
89
|
</span>
|
|
88
90
|
</td>
|
|
89
|
-
<td><span class="text-base-content/60 font-mono text-sm">#{{formatInteger threadId userLocale}}</span></td>
|
|
90
|
-
<td>
|
|
91
|
+
<td data-label="ID"><span class="text-base-content/60 font-mono text-sm">#{{formatInteger threadId userLocale}}</span></td>
|
|
92
|
+
<td data-label="Uptime">
|
|
91
93
|
<span class="relative-time" data-time="{{timeStr}}"></span>
|
|
92
94
|
</td>
|
|
93
|
-
<td class="text-end">
|
|
95
|
+
<td class="text-end" data-label="Memory">
|
|
94
96
|
{{#if isUnresponsive}}
|
|
95
97
|
<span class="text-base-content/40">-</span>
|
|
96
98
|
{{else}}
|
|
@@ -98,7 +100,7 @@
|
|
|
98
100
|
{{/if}}
|
|
99
101
|
</td>
|
|
100
102
|
{{#if ../showAccounts}}
|
|
101
|
-
<td class="text-end">
|
|
103
|
+
<td class="text-end" data-label="Accounts">
|
|
102
104
|
{{#if accounts}}
|
|
103
105
|
<a href="/admin/internals/thread/{{threadId}}"
|
|
104
106
|
class="link link-animated">{{formatInteger accounts userLocale}}</a>
|
|
@@ -107,7 +109,7 @@
|
|
|
107
109
|
{{/if}}
|
|
108
110
|
</td>
|
|
109
111
|
{{/if}}
|
|
110
|
-
<td class="relative text-end">
|
|
112
|
+
<td class="ee-stack-actions relative text-end">
|
|
111
113
|
{{#> ui/row-actions label="Worker actions"}}
|
|
112
114
|
<li>
|
|
113
115
|
<button type="button" class="dropdown-item snapshot-thread-btn" data-thread="{{threadId}}">
|
|
@@ -117,7 +119,7 @@
|
|
|
117
119
|
{{#unless isMain}}
|
|
118
120
|
<li>
|
|
119
121
|
<button type="button" class="dropdown-item text-error kill-thread-btn" data-thread="{{threadId}}">
|
|
120
|
-
Restart
|
|
122
|
+
Restart worker
|
|
121
123
|
</button>
|
|
122
124
|
</li>
|
|
123
125
|
{{/unless}}
|
|
@@ -152,18 +154,18 @@
|
|
|
152
154
|
</div>
|
|
153
155
|
{{/ui/details}}
|
|
154
156
|
|
|
155
|
-
{{#> ui/confirm-modal id="killThread" title="Restart
|
|
156
|
-
fieldName="thread" fieldId="kill-thread" submitLabel="Restart
|
|
157
|
-
Restart this
|
|
157
|
+
{{#> ui/confirm-modal id="killThread" title="Restart worker" action="/admin/internals/kill"
|
|
158
|
+
fieldName="thread" fieldId="kill-thread" submitLabel="Restart worker"}}
|
|
159
|
+
Restart this worker? Its current operations will be interrupted.
|
|
158
160
|
{{/ui/confirm-modal}}
|
|
159
161
|
|
|
160
162
|
{{#> ui/confirm-modal id="snapshotThread" title="Memory Snapshot" action="/admin/internals/snapshot"
|
|
161
163
|
formId="snapshot-form" formTarget="_blank" fieldName="thread" fieldId="snapshot-thread"
|
|
162
164
|
submitLabel="Download Snapshot" submitVariant="info"}}
|
|
163
|
-
Generate a memory snapshot for debugging? This may briefly affect
|
|
165
|
+
Generate a memory snapshot for debugging? This may briefly affect the worker's performance.
|
|
164
166
|
{{/ui/confirm-modal}}
|
|
165
167
|
|
|
166
|
-
<script nonce="{{cspNonce}}">
|
|
168
|
+
<script data-cfasync="false" nonce="{{cspNonce}}">
|
|
167
169
|
document.addEventListener('DOMContentLoaded', () => {
|
|
168
170
|
for (let elm of document.querySelectorAll('.kill-thread-btn')) {
|
|
169
171
|
elm.addEventListener('click', e => {
|
package/views/layout/app.hbs
CHANGED
|
@@ -334,12 +334,12 @@
|
|
|
334
334
|
</div>
|
|
335
335
|
<!-- End of content column -->
|
|
336
336
|
|
|
337
|
-
<script src="/static/js/flyonui.js"></script>
|
|
338
|
-
<script src="/static/js/ui.js"></script>
|
|
337
|
+
<script data-cfasync="false" src="/static/js/flyonui.js"></script>
|
|
338
|
+
<script data-cfasync="false" src="/static/js/ui.js"></script>
|
|
339
339
|
|
|
340
|
-
<script src="/static/js/highlight.min.js"></script>
|
|
340
|
+
<script data-cfasync="false" src="/static/js/highlight.min.js"></script>
|
|
341
341
|
|
|
342
|
-
<script src="/static/js/app.js"></script>
|
|
342
|
+
<script data-cfasync="false" src="/static/js/app.js"></script>
|
|
343
343
|
|
|
344
344
|
{{!-- global #crumb element for page scripts that post with fetch();
|
|
345
345
|
must render unconditionally - converted pages rely on it instead of
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
Provisioning a trial license, please wait <span class="loading loading-spinner loading-sm align-middle"></span>
|
|
353
353
|
</div>
|
|
354
354
|
{{/ui/modal}}
|
|
355
|
-
<script nonce="{{cspNonce}}">
|
|
355
|
+
<script data-cfasync="false" nonce="{{cspNonce}}">
|
|
356
356
|
document.addEventListener('DOMContentLoaded', () => {
|
|
357
357
|
let trialBtn = document.getElementById('start-trial-btn');
|
|
358
358
|
if (!trialBtn) {
|
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
|
|
393
393
|
{{#if updateBrowserInfo}}
|
|
394
394
|
<input type="hidden" id="browser-info-crumb" value="{{crumb}}" />
|
|
395
|
-
<script nonce="{{cspNonce}}">
|
|
395
|
+
<script data-cfasync="false" nonce="{{cspNonce}}">
|
|
396
396
|
document.addEventListener('DOMContentLoaded', () => {
|
|
397
397
|
let sendBrowserInfo = async () => {
|
|
398
398
|
let timezone = false;
|
package/views/layout/login.hbs
CHANGED
|
@@ -12,6 +12,20 @@
|
|
|
12
12
|
<title>{{#if pageTitleFull}}{{pageTitleFull}}{{else}}{{pageBrandName}}{{#if pageTitle}} -
|
|
13
13
|
{{pageTitle}}{{/if}}{{/if}}</title>
|
|
14
14
|
|
|
15
|
+
{{!-- The forced-SSO hand-off starts its navigation here, above the stylesheets, rather than
|
|
16
|
+
from the page body. An inline script cannot run until the stylesheets declared before it
|
|
17
|
+
have loaded, and this layout pulls in the font sheet plus a 236 KB flyonui.css, so a
|
|
18
|
+
script placed after them only runs once the card has already painted - which is a visible
|
|
19
|
+
flash of login chrome on every forced-SSO sign-in. Nothing has painted this early.
|
|
20
|
+
|
|
21
|
+
Only views/account/login-redirect.hbs sets ssoRedirectUrl, and it is a fixed path chosen
|
|
22
|
+
in lib/ui-routes/auth-routes.js rather than anything a request carries, so the ordinary
|
|
23
|
+
login form never emits this and no user input reaches the string. Why that page navigates
|
|
24
|
+
itself instead of the server answering a redirect is the whole story in the view. --}}
|
|
25
|
+
{{#if ssoRedirectUrl}}
|
|
26
|
+
<script data-cfasync="false" nonce="{{cspNonce}}">window.location.replace('{{ssoRedirectUrl}}');</script>
|
|
27
|
+
{{/if}}
|
|
28
|
+
|
|
15
29
|
{{> head_assets}}
|
|
16
30
|
|
|
17
31
|
<link href="/static/css/flyonui.css" rel="stylesheet">
|
|
@@ -20,40 +34,39 @@
|
|
|
20
34
|
|
|
21
35
|
<body class="from-primary to-secondary min-h-screen bg-gradient-to-br">
|
|
22
36
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
37
|
+
{{!-- centered in the viewport, not pinned to the top: the card is short and the page is
|
|
38
|
+
otherwise a full screen of gradient under it. min-h-screen on the flex container
|
|
39
|
+
rather than a fixed height, so a card taller than the screen grows the page instead
|
|
40
|
+
of having its top cut off. --}}
|
|
41
|
+
<div class="container mx-auto flex min-h-screen items-center justify-center px-4 py-12">
|
|
26
42
|
|
|
27
|
-
|
|
43
|
+
<div class="w-full max-w-4xl">
|
|
28
44
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
<div class="card bg-base-100 overflow-hidden shadow-lg">
|
|
46
|
+
<div class="grid grid-cols-1 lg:grid-cols-2">
|
|
47
|
+
<div class="bg-login-page-image hidden lg:block"></div>
|
|
48
|
+
<div class="alert-margin">
|
|
49
|
+
{{> alerts}}
|
|
34
50
|
|
|
35
|
-
|
|
51
|
+
<div class="p-12">
|
|
36
52
|
|
|
37
|
-
|
|
38
|
-
</div>
|
|
53
|
+
{{{content}}}
|
|
39
54
|
</div>
|
|
40
55
|
</div>
|
|
41
56
|
</div>
|
|
42
|
-
|
|
43
57
|
</div>
|
|
44
|
-
|
|
45
58
|
</div>
|
|
46
59
|
|
|
47
60
|
</div>
|
|
48
61
|
|
|
49
|
-
<script src="/static/js/flyonui.js"></script>
|
|
50
|
-
<script src="/static/js/ui.js"></script>
|
|
62
|
+
<script data-cfasync="false" src="/static/js/flyonui.js"></script>
|
|
63
|
+
<script data-cfasync="false" src="/static/js/ui.js"></script>
|
|
51
64
|
|
|
52
|
-
<script src="/static/js/app.js"></script>
|
|
65
|
+
<script data-cfasync="false" src="/static/js/app.js"></script>
|
|
53
66
|
|
|
54
67
|
{{#if passkeysAvailable}}
|
|
55
|
-
<script src="/static/vendor/simplewebauthn/browser.min.js"></script>
|
|
56
|
-
<script src="/static/js/login-passkey.js"></script>
|
|
68
|
+
<script data-cfasync="false" src="/static/vendor/simplewebauthn/browser.min.js"></script>
|
|
69
|
+
<script data-cfasync="false" src="/static/js/login-passkey.js"></script>
|
|
57
70
|
{{/if}}
|
|
58
71
|
|
|
59
72
|
</body>
|
package/views/layout/main.hbs
CHANGED
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
</div>
|
|
45
45
|
</footer>
|
|
46
46
|
|
|
47
|
-
<script src="/static/js/flyonui.js"></script>
|
|
48
|
-
<script src="/static/js/ui.js"></script>
|
|
47
|
+
<script data-cfasync="false" src="/static/js/flyonui.js"></script>
|
|
48
|
+
<script data-cfasync="false" src="/static/js/ui.js"></script>
|
|
49
49
|
</body>
|
|
50
50
|
|
|
51
51
|
</html>
|
package/views/layout/prompt.hbs
CHANGED
|
@@ -25,37 +25,34 @@
|
|
|
25
25
|
|
|
26
26
|
<body class="from-primary to-secondary min-h-screen bg-gradient-to-br">
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
{{!-- centered in the viewport rather than pinned to the top, same as the login layout this
|
|
29
|
+
mirrors - see views/layout/login.hbs for why min-h-screen sits on the flex container --}}
|
|
30
|
+
<div class="container mx-auto flex min-h-screen items-center justify-center px-4 py-12">
|
|
29
31
|
|
|
30
|
-
<div class="
|
|
32
|
+
<div class="w-full max-w-xl">
|
|
31
33
|
|
|
32
|
-
<div class="
|
|
34
|
+
<div class="card bg-base-100 overflow-hidden shadow-lg">
|
|
35
|
+
<div class="alert-margin">
|
|
36
|
+
{{> alerts}}
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
<div class="alert-margin">
|
|
36
|
-
{{> alerts}}
|
|
38
|
+
<div class="p-8 sm:p-10">
|
|
37
39
|
|
|
38
|
-
<div class="
|
|
39
|
-
|
|
40
|
-
<div class="mb-8 flex justify-center">
|
|
41
|
-
<img src="/static/logo/EmailEngine_logo_horiz.png" alt="EmailEngine" class="max-h-7">
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
{{{content}}}
|
|
40
|
+
<div class="mb-8 flex justify-center">
|
|
41
|
+
<img src="/static/logo/EmailEngine_logo_horiz.png" alt="EmailEngine" class="max-h-7">
|
|
45
42
|
</div>
|
|
43
|
+
|
|
44
|
+
{{{content}}}
|
|
46
45
|
</div>
|
|
47
46
|
</div>
|
|
48
|
-
|
|
49
47
|
</div>
|
|
50
|
-
|
|
51
48
|
</div>
|
|
52
49
|
|
|
53
50
|
</div>
|
|
54
51
|
|
|
55
|
-
<script src="/static/js/flyonui.js"></script>
|
|
56
|
-
<script src="/static/js/ui.js"></script>
|
|
52
|
+
<script data-cfasync="false" src="/static/js/flyonui.js"></script>
|
|
53
|
+
<script data-cfasync="false" src="/static/js/ui.js"></script>
|
|
57
54
|
|
|
58
|
-
<script src="/static/js/app.js"></script>
|
|
55
|
+
<script data-cfasync="false" src="/static/js/app.js"></script>
|
|
59
56
|
|
|
60
57
|
</body>
|
|
61
58
|
|