emailengine-app 2.78.0 → 2.79.1
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/.ncurc.js +23 -13
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +68 -0
- package/config/e2e.toml +2 -1
- package/config/test.toml +2 -1
- package/data/google-crawlers.json +1 -1
- package/lib/account.js +112 -36
- package/lib/api-reference/format.js +91 -4
- package/lib/api-reference/model.js +144 -19
- package/lib/api-reference/schema-tree.js +282 -28
- package/lib/api-routes/account-routes.js +80 -34
- package/lib/api-routes/blocklist-routes.js +21 -47
- package/lib/api-routes/chat-routes.js +10 -12
- package/lib/api-routes/delivery-test-routes.js +6 -26
- package/lib/api-routes/export-routes.js +2 -0
- package/lib/api-routes/gateway-routes.js +52 -11
- package/lib/api-routes/license-routes.js +2 -0
- package/lib/api-routes/mailbox-routes.js +29 -26
- package/lib/api-routes/message-routes.js +27 -21
- package/lib/api-routes/oauth2-app-routes.js +11 -29
- package/lib/api-routes/operation-impact.js +80 -0
- package/lib/api-routes/outbox-routes.js +15 -5
- package/lib/api-routes/permission-map.js +401 -0
- package/lib/api-routes/route-helpers.js +294 -9
- package/lib/api-routes/route-metadata.js +28 -0
- package/lib/api-routes/settings-routes.js +66 -38
- package/lib/api-routes/stats-routes.js +2 -2
- package/lib/api-routes/submit-routes.js +53 -31
- package/lib/api-routes/template-routes.js +3 -0
- package/lib/api-routes/token-routes.js +526 -72
- package/lib/api-routes/webhook-route-routes.js +14 -4
- package/lib/arf-detect.js +17 -4
- package/lib/auth-token.js +80 -8
- package/lib/bounce-detect.js +28 -17
- package/lib/consts.js +16 -0
- package/lib/db.js +26 -2
- package/lib/delivery-error.js +30 -1
- package/lib/email-client/base-client.js +27 -41
- package/lib/email-client/gmail-client.js +23 -17
- package/lib/email-client/imap/mailbox.js +58 -59
- package/lib/email-client/imap/subconnection.js +10 -7
- package/lib/email-client/imap/sync-operations.js +46 -46
- package/lib/email-client/imap-client.js +85 -28
- package/lib/email-client/message-builder.js +3 -3
- package/lib/email-client/notification-handler.js +1 -1
- package/lib/email-client/outlook/graph-api.js +10 -4
- package/lib/email-client/outlook-client.js +56 -64
- package/lib/email-client/smtp-pool-manager.js +1 -1
- package/lib/enum-descriptions.js +92 -2
- package/lib/export.js +1 -1
- package/lib/field-usage.js +133 -0
- package/lib/gateway.js +1 -1
- package/lib/imapproxy/imap-core/lib/commands/authenticate-plain.js +3 -3
- package/lib/imapproxy/imap-core/lib/commands/id.js +2 -13
- package/lib/imapproxy/imap-core/lib/commands/starttls.js +1 -1
- package/lib/imapproxy/imap-core/lib/imap-command.js +21 -5
- package/lib/imapproxy/imap-core/lib/imap-connection.js +15 -5
- package/lib/imapproxy/imap-server.js +27 -7
- package/lib/license-beacon.js +4 -9
- package/lib/lists.js +49 -1
- package/lib/llm-pre-process.js +5 -5
- package/lib/logger.js +5 -1
- package/lib/lua/h-set-new-mark.lua +36 -0
- package/lib/message-port-stream.js +84 -1
- package/lib/metrics-collector.js +2 -2
- package/lib/oauth/gmail.js +9 -12
- package/lib/oauth/mail-ru.js +5 -7
- package/lib/oauth/outlook.js +9 -9
- package/lib/oauth/pubsub/google.js +25 -10
- package/lib/oauth/scope-checker.js +1 -1
- package/lib/oauth2-apps.js +290 -292
- package/lib/openapi/build-document.js +20 -8
- package/lib/openapi/joi-schema.js +20 -0
- package/lib/outbox.js +85 -17
- package/lib/pre-process.js +8 -8
- package/lib/queue-stats.js +49 -0
- package/lib/read-env-value.js +1 -1
- package/lib/reconnection-manager.js +2 -2
- package/lib/rewrite-text-nodes.js +4 -3
- package/lib/routes-ui.js +4 -0
- package/lib/schemas.js +218 -162
- package/lib/settings.js +98 -5
- package/lib/sub-script.js +2 -1
- package/lib/swagger-options.js +2 -1
- package/lib/templates.js +4 -4
- package/lib/threads.js +2 -2
- package/lib/token-audit-log.js +231 -0
- package/lib/token-permission-view.js +219 -0
- package/lib/token-permissions.js +172 -0
- package/lib/tokens.js +247 -66
- package/lib/tools.js +142 -37
- package/lib/ui-routes/account-routes.js +42 -15
- package/lib/ui-routes/admin-config-routes.js +18 -10
- package/lib/ui-routes/admin-entities-routes.js +117 -38
- package/lib/ui-routes/auth-routes.js +30 -24
- package/lib/ui-routes/export-routes.js +10 -4
- package/lib/ui-routes/oauth-config-routes.js +12 -12
- package/lib/ui-routes/reference-routes.js +3 -3
- package/lib/ui-routes/route-helpers.js +78 -2
- package/lib/ui-routes/settings-page.js +1 -1
- package/lib/ui-routes/smtp-test-routes.js +1 -1
- package/lib/ui-routes/suppression-list-routes.js +299 -0
- package/lib/ui-routes/unsubscribe-routes.js +19 -29
- package/lib/utils/decode-headers.js +42 -0
- package/lib/utils/header-map.js +48 -0
- package/lib/utils/network.js +2 -2
- package/lib/utils/unsafe-key.js +59 -0
- package/lib/web-safe-html.js +1 -1
- package/lib/webhook-routing.js +84 -0
- package/lib/webhooks.js +48 -14
- package/package.json +11 -10
- package/sbom.json +1 -1
- package/server.js +116 -55
- package/static/css/flyonui.css +1 -1
- package/static/css/src/app.tailwind.css +136 -9
- package/static/js/reference.js +456 -10
- package/static/js/ui.js +43 -0
- package/static/licenses.html +51 -41
- package/translations/messages.pot +59 -59
- package/views/accounts/account.hbs +75 -13
- package/views/accounts/browse.hbs +19 -36
- package/views/accounts/edit.hbs +2 -2
- package/views/config/logging.hbs +6 -0
- package/views/config/oauth/app.hbs +0 -2
- package/views/config/security.hbs +13 -0
- package/views/gateways/edit.hbs +1 -1
- package/views/gateways/gateway.hbs +2 -2
- package/views/gateways/index.hbs +7 -7
- package/views/partials/accounts_table.hbs +7 -7
- package/views/partials/oauth_form.hbs +0 -15
- package/views/partials/reference/disclosure.hbs +8 -2
- package/views/partials/reference/operation.hbs +47 -13
- package/views/partials/reference/params.hbs +17 -1
- package/views/partials/reference/schema-node.hbs +110 -52
- package/views/partials/reference/schema-tools.hbs +25 -0
- package/views/partials/reference/try-it.hbs +84 -11
- package/views/partials/side_menu.hbs +1 -0
- package/views/partials/ui/checkbox.hbs +2 -2
- package/views/partials/ui/tabs.hbs +7 -1
- package/views/reference/token.hbs +4 -0
- package/views/suppression-lists/index.hbs +85 -0
- package/views/suppression-lists/list.hbs +87 -0
- package/views/templates/index.hbs +10 -4
- package/views/templates/template.hbs +1 -1
- package/views/tokens/index.hbs +53 -6
- package/views/tokens/new.hbs +334 -5
- package/workers/api.js +185 -102
- package/workers/documents.js +46 -26
- package/workers/export.js +20 -8
- package/workers/imap-proxy.js +2 -2
- package/workers/imap.js +77 -78
- package/workers/smtp.js +13 -7
- package/workers/submit.js +40 -30
- package/workers/webhooks.js +80 -26
- package/lib/feature-flags.js +0 -48
|
@@ -6,12 +6,25 @@
|
|
|
6
6
|
(depth-capped, with $ref cycles marked instead of followed).
|
|
7
7
|
|
|
8
8
|
Also rendered directly for operation parameters (reference/params) - the parameter
|
|
9
|
-
view models from buildParameter() carry the same field names and simply
|
|
10
|
-
children or variants, so the nested blocks below render nothing for them.
|
|
9
|
+
view models from buildParameter() carry the same field names as a tree node and simply
|
|
10
|
+
have no children or variants, so the nested blocks below render nothing for them.
|
|
11
11
|
|
|
12
12
|
Context is a node from buildSchemaTree(): name, anchor, typeLabel, required, nullable,
|
|
13
|
-
deprecated, constraints[], enumValues[], defaultValue, descriptionHtml,
|
|
14
|
-
variants[], openByDefault,
|
|
13
|
+
deprecated, constraints[], enumValues[], alsoAccepts[], defaultValue, descriptionHtml,
|
|
14
|
+
usageHtml, example, children[], variants[], openByDefault, childLabel, childPreview,
|
|
15
|
+
truncated, circular, unresolved.
|
|
16
|
+
|
|
17
|
+
The row is a two-column grid (.ee-ref-prop-row in app.tailwind.css): the name, type and
|
|
18
|
+
constraint chips sit in a rail on the left, the prose in a column beside it capped at a
|
|
19
|
+
readable measure. Before that the name sat above its own description at the same left
|
|
20
|
+
edge and the description ran the full content width - about 120 characters - so a
|
|
21
|
+
128-property response read as one undifferentiated field. The grid collapses back to a
|
|
22
|
+
single stacked column when the row is too narrow to split.
|
|
23
|
+
|
|
24
|
+
A cut example carries the whole value twice, in two forms: `title` is the raw value for
|
|
25
|
+
the native tooltip, and `data-example` is the JSON form the try-it autocompleter inserts,
|
|
26
|
+
so the completion is never reconstructed from the rendered text - and never inserts an
|
|
27
|
+
unquoted string into a JSON body. Only the 54 cut rows in the document emit either.
|
|
15
28
|
|
|
16
29
|
`anchor` is the dotted id of this property within its operation, e.g.
|
|
17
30
|
"accountCreate.body.imap.tls.rejectUnauthorized", so a single field can be linked to
|
|
@@ -23,59 +36,104 @@
|
|
|
23
36
|
--}}
|
|
24
37
|
<li class="ee-ref-prop min-w-0"{{#if anchor}} id="{{anchor}}"{{/if}}>
|
|
25
38
|
|
|
26
|
-
<div class="ee-ref-prop-
|
|
27
|
-
{{#if name}}<code class="text-sm font-semibold break-all">{{name}}</code>{{/if}}
|
|
28
|
-
<span class="text-primary text-xs font-medium">{{typeLabel}}</span>
|
|
29
|
-
{{#if required}}<span class="text-error text-2xs font-semibold tracking-wide uppercase">required</span>{{/if}}
|
|
30
|
-
{{#if nullable}}<span class="ee-chip">nullable</span>{{/if}}
|
|
31
|
-
{{#if deprecated}}{{> ui/badge label="deprecated" variant="warning" soft=true icon="" class=""}}{{/if}}
|
|
32
|
-
{{#each constraints}}<span class="ee-chip">{{this}}</span>{{/each}}
|
|
33
|
-
{{#if anchor}}
|
|
34
|
-
{{> reference/anchor-link target=anchor label=(concat "Link to the " name " property") small=true class="ee-ref-prop-anchor"}}
|
|
35
|
-
{{/if}}
|
|
36
|
-
</div>
|
|
39
|
+
<div class="ee-ref-prop-row">
|
|
37
40
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
<div class="ee-ref-prop-rail">
|
|
42
|
+
<div class="ee-ref-prop-line">
|
|
43
|
+
{{#if name}}<code class="text-sm font-semibold break-all">{{name}}</code>{{/if}}
|
|
44
|
+
{{#if anchor}}
|
|
45
|
+
{{> reference/anchor-link target=anchor label=(concat "Link to the " name " property") small=true class="ee-ref-prop-anchor"}}
|
|
46
|
+
{{/if}}
|
|
47
|
+
</div>
|
|
48
|
+
<div class="ee-ref-prop-line">
|
|
49
|
+
<span class="text-primary text-xs font-medium">{{typeLabel}}</span>
|
|
50
|
+
{{#if required}}<span class="text-error text-2xs font-semibold tracking-wide uppercase">required</span>{{/if}}
|
|
51
|
+
{{#if nullable}}<span class="ee-chip">nullable</span>{{/if}}
|
|
52
|
+
{{#if deprecated}}{{> ui/badge label="deprecated" variant="warning" soft=true icon="" class=""}}{{/if}}
|
|
53
|
+
{{#each constraints}}<span class="ee-chip">{{this}}</span>{{/each}}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
41
56
|
|
|
42
|
-
|
|
43
|
-
{{#if enumDocumented}}
|
|
44
|
-
{{!-- documented values get a row each; joi .meta({enumDescriptions}) is the source --}}
|
|
45
|
-
<div class="mt-1">
|
|
46
|
-
<span class="text-base-content/50 text-2xs tracking-wide uppercase">Allowed values</span>
|
|
47
|
-
<ul class="ee-ref-nest mt-1 space-y-1">
|
|
48
|
-
{{#each enumValues}}
|
|
49
|
-
<li class="flex flex-wrap items-baseline gap-x-2 text-sm">
|
|
50
|
-
<code class="ee-chip">{{value}}</code>
|
|
51
|
-
{{#if description}}<span class="text-base-content/70">{{description}}</span>{{/if}}
|
|
52
|
-
</li>
|
|
53
|
-
{{/each}}
|
|
54
|
-
</ul>
|
|
55
|
-
</div>
|
|
56
|
-
{{else}}
|
|
57
|
-
<div class="mt-1 flex flex-wrap items-baseline gap-1">
|
|
58
|
-
<span class="text-base-content/50 text-2xs tracking-wide uppercase">Allowed</span>
|
|
59
|
-
{{#each enumValues}}<code class="ee-chip">{{value}}</code>{{/each}}
|
|
60
|
-
</div>
|
|
61
|
-
{{/if}}
|
|
62
|
-
{{/if}}
|
|
57
|
+
<div class="ee-ref-prop-body">
|
|
63
58
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
{{!-- The example rides the end of the description rather than taking a line of
|
|
60
|
+
its own. The prose column is 34rem, the median description is 41 characters
|
|
61
|
+
and the median example 15, so 86% of these land on a line that already
|
|
62
|
+
exists; a line each would have added about 12,500px across five tag pages
|
|
63
|
+
that already run to 90,000. Which rows get one is decided by rowExample()
|
|
64
|
+
in lib/api-reference/schema-tree.js, not here. --}}
|
|
65
|
+
{{#if descriptionHtml}}
|
|
66
|
+
<div class="text-base-content/70 text-sm"><p>{{{descriptionHtml}}}{{#if example}} <code
|
|
67
|
+
class="ee-ref-example-value" {{#if example.title}}title="{{example.title}}" data-example="{{example.full}}"
|
|
68
|
+
{{/if}}>{{example.text}}</code>{{/if}}</p>
|
|
69
|
+
</div>
|
|
70
|
+
{{else if example}}
|
|
71
|
+
<div class="text-sm"><code class="ee-ref-example-value" {{#if example.title}}title="{{example.title}}"
|
|
72
|
+
data-example="{{example.full}}" {{/if}}>{{example.text}}</code></div>
|
|
73
|
+
{{/if}}
|
|
67
74
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
{{!-- Long-form guidance, closed. A field without one is unchanged; a field with
|
|
76
|
+
one costs a single summary line until someone wants the answer. The
|
|
77
|
+
seventeen fields that used to cram this into the description are why the
|
|
78
|
+
slot exists - see lib/field-usage.js. --}}
|
|
79
|
+
{{#if usageHtml}}
|
|
80
|
+
{{#> reference/disclosure label="When to use this" class="mt-1"}}
|
|
81
|
+
<div class="ee-ref-usage text-base-content/70 mt-1 text-sm"><p>{{{usageHtml}}}</p></div>
|
|
82
|
+
{{/reference/disclosure}}
|
|
83
|
+
{{/if}}
|
|
71
84
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
85
|
+
{{#if enumValues}}
|
|
86
|
+
{{#if enumDocumented}}
|
|
87
|
+
{{!-- documented values get a row each; joi .meta({enumDescriptions}) is the source --}}
|
|
88
|
+
<div class="mt-1">
|
|
89
|
+
<span class="text-base-content/50 text-2xs tracking-wide uppercase">Allowed values</span>
|
|
90
|
+
<ul class="ee-ref-nest mt-1 space-y-1">
|
|
91
|
+
{{#each enumValues}}
|
|
92
|
+
<li class="flex flex-wrap items-baseline gap-x-2 text-sm">
|
|
93
|
+
<code class="ee-chip">{{value}}</code>
|
|
94
|
+
{{#if description}}<span class="text-base-content/70">{{description}}</span>{{/if}}
|
|
95
|
+
</li>
|
|
96
|
+
{{/each}}
|
|
97
|
+
</ul>
|
|
98
|
+
</div>
|
|
99
|
+
{{else}}
|
|
100
|
+
<div class="mt-1 flex flex-wrap items-baseline gap-1">
|
|
101
|
+
<span class="text-base-content/50 text-2xs tracking-wide uppercase">Allowed</span>
|
|
102
|
+
{{#each enumValues}}<code class="ee-chip">{{value}}</code>{{/each}}
|
|
103
|
+
</div>
|
|
104
|
+
{{/if}}
|
|
105
|
+
{{/if}}
|
|
75
106
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
107
|
+
{{!-- Sentinels the schema accepts beside its own type - joi .allow(false) on a
|
|
108
|
+
string, an integer or an object. Deliberately not the "Allowed" row above:
|
|
109
|
+
that reads as the whole value domain, which claimed an IMAP configuration
|
|
110
|
+
object accepted nothing but `false`. --}}
|
|
111
|
+
{{#if alsoAccepts}}
|
|
112
|
+
<div class="text-base-content/50 mt-1 flex flex-wrap items-baseline gap-1 text-xs">
|
|
113
|
+
<span>Also accepts</span>
|
|
114
|
+
{{#each alsoAccepts}}<code class="ee-chip">{{this}}</code>{{/each}}
|
|
115
|
+
</div>
|
|
116
|
+
{{/if}}
|
|
117
|
+
|
|
118
|
+
{{#if defaultValue}}
|
|
119
|
+
<div class="text-base-content/50 mt-1 text-xs">Default <code class="ee-chip">{{defaultValue}}</code></div>
|
|
120
|
+
{{/if}}
|
|
121
|
+
|
|
122
|
+
{{#if circular}}
|
|
123
|
+
<div class="text-warning mt-1 text-xs">Recursive reference - see the parent definition</div>
|
|
124
|
+
{{/if}}
|
|
125
|
+
|
|
126
|
+
{{#if truncated}}
|
|
127
|
+
<div class="text-warning mt-1 text-xs">Nesting too deep to display</div>
|
|
128
|
+
{{/if}}
|
|
129
|
+
|
|
130
|
+
{{#if unresolved}}
|
|
131
|
+
<div class="text-warning mt-1 text-xs">Unresolved reference {{unresolved}}</div>
|
|
132
|
+
{{/if}}
|
|
133
|
+
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
</div>
|
|
79
137
|
|
|
80
138
|
{{#if variants.length}}
|
|
81
139
|
<div class="ee-ref-nest mt-2 space-y-2">
|
|
@@ -89,7 +147,7 @@
|
|
|
89
147
|
{{/if}}
|
|
90
148
|
|
|
91
149
|
{{#if children.length}}
|
|
92
|
-
{{#> reference/disclosure label=childLabel open=openByDefault class="mt-
|
|
150
|
+
{{#> reference/disclosure label=childLabel preview=childPreview open=openByDefault class="mt-1"}}
|
|
93
151
|
<ul class="ee-ref-props ee-ref-nest mt-2">
|
|
94
152
|
{{#each children}}{{> reference/schema-node}}{{/each}}
|
|
95
153
|
</ul>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{{!--
|
|
2
|
+
reference/schema-tools - the filter box and expand/collapse pair that sit beside a
|
|
3
|
+
large schema's heading.
|
|
4
|
+
|
|
5
|
+
Params:
|
|
6
|
+
scope - id of the element holding the property rows these act on (required)
|
|
7
|
+
label - what is being filtered, used as the placeholder and the accessible name,
|
|
8
|
+
e.g. "Filter response fields" (required)
|
|
9
|
+
|
|
10
|
+
Rendered only for schemas past a size threshold (see reference/operation): on a
|
|
11
|
+
three-property body a filter is noise, and a tag page would otherwise carry two dozen
|
|
12
|
+
of them. Behavior lives in static/js/reference.js, keyed off data-schema-tools and the
|
|
13
|
+
data-schema-scope id - the page itself is server-rendered and works without it, which
|
|
14
|
+
is why the controls degrade to a plain input and two buttons that simply do nothing if
|
|
15
|
+
the script never loads.
|
|
16
|
+
|
|
17
|
+
The script finds the input and the buttons by their position inside this container
|
|
18
|
+
rather than by hook attributes, so the shared ui/* partials can be used unchanged.
|
|
19
|
+
--}}
|
|
20
|
+
<div class="flex flex-wrap items-center gap-2" data-schema-tools data-schema-scope="{{scope}}">
|
|
21
|
+
{{> ui/search-input placeholder=label class="w-48" id="" name="" value="" type="" shortcut="" shortcutMac=""}}
|
|
22
|
+
{{> ui/btn label="Expand all" bare=true style="text" size="xs" icon="" id="" class="" type=""}}
|
|
23
|
+
{{> ui/btn label="Collapse all" bare=true style="text" size="xs" icon="" id="" class="" type=""}}
|
|
24
|
+
<span class="text-base-content/50 text-xs" data-schema-count role="status" aria-live="polite"></span>
|
|
25
|
+
</div>
|
|
@@ -6,21 +6,36 @@
|
|
|
6
6
|
Requests go to this same instance, so they need a real access token - the shared
|
|
7
7
|
token field at the top of the page feeds every panel.
|
|
8
8
|
|
|
9
|
-
The request body
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
The request body textarea stays in the server-rendered HTML and remains the value
|
|
10
|
+
everything downstream reads - the submit path, "Copy as curl" and the JSON validation.
|
|
11
|
+
static/js/reference.js upgrades it to an ACE editor and syncs back into it, so the panel
|
|
12
|
+
works unchanged with no JS and the editor is purely additive.
|
|
13
|
+
|
|
14
|
+
That upgrade is deliberately lazy on both axes. ace.js is 127 KB gzipped and no
|
|
15
|
+
reference page loads it otherwise, so it is fetched only once someone opens a Try it
|
|
16
|
+
panel that has a body; and the editor is mounted per panel on first open, because these
|
|
17
|
+
disclosures start closed and ACE cannot size itself in a container with no layout box.
|
|
18
|
+
Between them a tag page mounts one or two editors rather than the seven its bodies would
|
|
19
|
+
suggest, and a reader who never opens Try it pays nothing.
|
|
12
20
|
|
|
13
21
|
Context is an operation view model from lib/api-reference/model.js.
|
|
14
22
|
--}}
|
|
15
23
|
{{#> reference/disclosure label="Try it" primary=true elId=(concat "try-" id) class="mt-4"}}
|
|
16
24
|
|
|
17
|
-
<form class="ee-ref-try border-base-content/20 mt-3 rounded-box border p-4" data-method="{{method}}" data-path="{{path}}"
|
|
25
|
+
<form class="ee-ref-try border-base-content/20 mt-3 rounded-box border p-4" data-method="{{method}}" data-path="{{path}}"
|
|
26
|
+
{{#if tryImpact.confirm}}data-confirm="ee-ref-confirm-{{id}}" {{/if}}>
|
|
18
27
|
|
|
28
|
+
{{!-- Weight tracks consequence - see tryImpact() in lib/api-reference/model.js. A read
|
|
29
|
+
says nothing, an ordinary write gets one muted line, and only the operations that
|
|
30
|
+
destroy data or send mail get a warning box. The same warning on all 82 operations
|
|
31
|
+
is what taught readers to skim past the fourteen where it mattered. --}}
|
|
32
|
+
{{#if tryImpact.warn}}
|
|
19
33
|
{{#> ui/alert-banner variant="warning"}}
|
|
20
|
-
<div class="text-sm">
|
|
21
|
-
<code class="ee-code">{{methodLabel}}</code> here has the same effect as calling the API directly.
|
|
22
|
-
</div>
|
|
34
|
+
<div class="text-sm">{{tryImpact.text}}</div>
|
|
23
35
|
{{/ui/alert-banner}}
|
|
36
|
+
{{else if tryImpact}}
|
|
37
|
+
<p class="text-base-content/50 mb-3 text-xs">{{tryImpact.text}}</p>
|
|
38
|
+
{{/if}}
|
|
24
39
|
|
|
25
40
|
{{#if pathParams.length}}
|
|
26
41
|
<div class="mb-3 grid gap-3 sm:grid-cols-2">
|
|
@@ -46,11 +61,28 @@
|
|
|
46
61
|
</div>
|
|
47
62
|
{{/if}}
|
|
48
63
|
|
|
64
|
+
{{!-- Not a <label> wrapper: reference.js replaces the textarea with an ACE mount, which a
|
|
65
|
+
label cannot legitimately wrap. The heading is tied to the field by aria-label
|
|
66
|
+
instead, which survives the swap. data-schema names the rendered property tree the
|
|
67
|
+
completer harvests field names from - already on the page, so nothing is duplicated
|
|
68
|
+
into the markup for it. --}}
|
|
49
69
|
{{#if body}}
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
70
|
+
<div class="mb-3" data-body-field data-schema="{{body.scopeId}}" {{#if body.completeJson}}data-complete-source="{{body.completeTabId}}" {{/if}}>
|
|
71
|
+
<div class="flex flex-wrap items-baseline justify-between gap-2">
|
|
72
|
+
{{> reference/section-heading label="Request body" suffix=body.contentType class=""}}
|
|
73
|
+
{{!-- The field starts on the typical payload, which is what most calls are. This
|
|
74
|
+
swaps in the complete one, because the panel is exactly where you find out
|
|
75
|
+
what else the endpoint takes: the reader is already editing the body.
|
|
76
|
+
Reads the JSON back out of the rendered tab panel above rather than
|
|
77
|
+
carrying a second copy of it in an attribute. --}}
|
|
78
|
+
{{#if body.completeJson}}
|
|
79
|
+
{{> ui/btn label="Fill in every field" bare=true style="text" size="xs" icon="icon-[tabler--list-details]"
|
|
80
|
+
class="ee-ref-try-fill" id=""}}
|
|
81
|
+
{{/if}}
|
|
82
|
+
</div>
|
|
83
|
+
<textarea class="textarea mt-1 font-mono text-xs" rows="10" data-body spellcheck="false"
|
|
84
|
+
aria-label="Request body">{{body.exampleJson}}</textarea>
|
|
85
|
+
</div>
|
|
54
86
|
{{/if}}
|
|
55
87
|
|
|
56
88
|
{{!-- id="" on both: ui/btn reads `id`, and Handlebars merges a partial's hash params into
|
|
@@ -75,4 +107,45 @@
|
|
|
75
107
|
|
|
76
108
|
</form>
|
|
77
109
|
|
|
110
|
+
{{!-- Sits after the form rather than inside it, so the dialog is not a descendant of the
|
|
111
|
+
thing it is confirming. Nothing breaks if it moves; it just reads wrong.
|
|
112
|
+
|
|
113
|
+
Both buttons dismiss through ui/btn's `overlay` param, which is FlyonUI's own
|
|
114
|
+
data-overlay path and what every other modal in the admin UI uses. "Run it" carries a
|
|
115
|
+
class as well, so static/js/reference.js can tell an answer from a dismissal without
|
|
116
|
+
closing the overlay itself - see the note there. A class rather than an id because
|
|
117
|
+
ui/modal neutralizes `id` inside its block.
|
|
118
|
+
|
|
119
|
+
No neutralizing hash params on these three calls: ui/modal already neutralizes its own
|
|
120
|
+
for the block, reference/disclosure neutralizes `class`, and nothing else ui/btn reads
|
|
121
|
+
exists on the operation view model. The `id=""` on the buttons inside the form above is
|
|
122
|
+
a different case - the operation's own `id` is in context there.
|
|
123
|
+
|
|
124
|
+
static=true so neither Escape nor a stray backdrop click dismisses a confirmation; the
|
|
125
|
+
corner close button remains, and reads as declining like Cancel does. --}}
|
|
126
|
+
{{#if tryImpact.confirm}}
|
|
127
|
+
{{#> ui/modal id=(concat "ee-ref-confirm-" id) title="Run this request?" static=true}}
|
|
128
|
+
<div class="modal-body space-y-3">
|
|
129
|
+
<p class="text-sm">{{tryImpact.text}}</p>
|
|
130
|
+
<div>
|
|
131
|
+
<div class="text-base-content/50 text-2xs mb-1 tracking-wide uppercase">Request</div>
|
|
132
|
+
<pre class="ee-code-block text-xs"><code class="ee-ref-confirm-request"></code></pre>
|
|
133
|
+
</div>
|
|
134
|
+
{{!-- Deleting messages by search, flushing an account, submitting a message: these carry
|
|
135
|
+
what they act on in the body, so a dialog showing only the path would be confirming
|
|
136
|
+
the wrong half. Filled and unhidden by static/js/reference.js when the request has
|
|
137
|
+
one, and capped like the example payloads so a large body cannot outgrow the
|
|
138
|
+
dialog. --}}
|
|
139
|
+
<div class="ee-ref-confirm-body-wrap hidden">
|
|
140
|
+
<div class="text-base-content/50 text-2xs mb-1 tracking-wide uppercase">Body</div>
|
|
141
|
+
<pre class="ee-code-block ee-ref-example text-xs"><code class="ee-ref-confirm-body"></code></pre>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="modal-footer">
|
|
145
|
+
{{> ui/btn label="Cancel" variant="neutral" style="soft" overlay=closeOverlay}}
|
|
146
|
+
{{> ui/btn label="Run it" variant="error" icon="icon-[tabler--alert-triangle]" class="ee-ref-confirm-run" overlay=closeOverlay}}
|
|
147
|
+
</div>
|
|
148
|
+
{{/ui/modal}}
|
|
149
|
+
{{/if}}
|
|
150
|
+
|
|
78
151
|
{{/reference/disclosure}}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
{{> ui/menu-item href="/admin/accounts" label="Accounts" icon="icon-[tabler--users] size-4.5" active=menuAccounts}}
|
|
10
10
|
{{> ui/menu-item href="/admin/gateways" label="Gateways" icon="icon-[tabler--send] size-4.5" active=menuGateways}}
|
|
11
11
|
{{> ui/menu-item href="/admin/templates" label="Templates" icon="icon-[tabler--template] size-4.5" active=menuTemplates}}
|
|
12
|
+
{{> ui/menu-item href="/admin/suppression-lists" label="Suppression Lists" icon="icon-[tabler--mail-off] size-4.5" active=menuSuppressionLists}}
|
|
12
13
|
|
|
13
14
|
{{> ui/menu-title label="Integrations"}}
|
|
14
15
|
{{> ui/menu-item href="/admin/reference" label="API Reference" icon="icon-[tabler--file-code] size-4.5" active=menuReference}}
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
<div class="flex items-center gap-2">
|
|
30
30
|
<input type="checkbox" class="checkbox checkbox-sm{{#if error}} is-invalid{{/if}}{{#if class}} {{class}}{{/if}}"
|
|
31
31
|
id="{{id}}" {{#unless noName}}name="{{#if name}}{{name}}{{else}}{{id}}{{/if}}" {{/unless}}{{#if checked}}checked {{/if}}{{#if
|
|
32
|
-
dataTarget}}data-target="{{dataTarget}}" {{/if}}{{#if dataReverse}}data-reverse="true" {{/if}}{{#if disabled}}disabled {{/if}}>
|
|
32
|
+
dataTarget}}data-target="{{dataTarget}}" {{/if}}{{#if dataValue}}data-value="{{dataValue}}" {{/if}}{{#if dataReverse}}data-reverse="true" {{/if}}{{#if disabled}}disabled {{/if}}>
|
|
33
33
|
<label class="label-text p-0" for="{{id}}" {{#if labelTitle}}title="{{labelTitle}}" {{/if}}>{{label}}</label>
|
|
34
34
|
{{#if @partial-block}}
|
|
35
35
|
{{!-- own hash params are neutralized so they cannot fall through into nested ui/* calls inside the block --}}
|
|
36
|
-
{{> @partial-block id="" label="" name="" noName="" labelTitle="" checked="" tooltip="" hint="" error="" dataTarget="" dataReverse="" disabled="" class=""}}
|
|
36
|
+
{{> @partial-block id="" label="" name="" noName="" labelTitle="" checked="" tooltip="" hint="" error="" dataTarget="" dataValue="" dataReverse="" disabled="" class=""}}
|
|
37
37
|
{{/if}}
|
|
38
38
|
{{#if tooltip}}
|
|
39
39
|
{{!-- class="" blocks this partial's own class param (meant for the
|
|
@@ -8,12 +8,18 @@
|
|
|
8
8
|
label - aria-label describing the strip (required)
|
|
9
9
|
elId - element id (optional; see ui/badge for why it is not called `id`)
|
|
10
10
|
class - extra classes on the nav, e.g. "mb-4" (optional)
|
|
11
|
+
flex-wrap because FlyonUI lays the strip out as a nowrap flex row with no overflow
|
|
12
|
+
handling, so one wider than its column pushes the whole page sideways instead of
|
|
13
|
+
adapting: an API reference operation documents up to eight status codes, which is 464px
|
|
14
|
+
of tabs against a 390px phone. Wrapping rather than scrolling because these are
|
|
15
|
+
navigation - a second row keeps every tab reachable, where a scroller hides some behind
|
|
16
|
+
an interaction with no affordance for it. No strip in the app wraps at desktop width.
|
|
11
17
|
Panels are the caller's responsibility: each ui/tab target must match a
|
|
12
18
|
tabpanel element with that id (role="tabpanel" aria-labelledby="<target>-tab").
|
|
13
19
|
The auth-method tabs in oauth_form.hbs intentionally do NOT use this partial -
|
|
14
20
|
they run a custom script instead of the FlyonUI data-tabs plugin.
|
|
15
21
|
--}}
|
|
16
|
-
<nav class="tabs tabs-bordered{{#if class}} {{class}}{{/if}}" aria-label="{{label}}" role="tablist"{{#if elId}} id="{{elId}}"{{/if}} data-tabs>
|
|
22
|
+
<nav class="tabs tabs-bordered flex-wrap{{#if class}} {{class}}{{/if}}" aria-label="{{label}}" role="tablist"{{#if elId}} id="{{elId}}"{{/if}} data-tabs>
|
|
17
23
|
{{!-- own hash params neutralized against fallthrough into the block --}}
|
|
18
24
|
{{> @partial-block label="" id="" class=""}}
|
|
19
25
|
</nav>
|
|
@@ -35,6 +35,10 @@ subtitle="Enables the Try it panels on the endpoint pages."}}
|
|
|
35
35
|
<span id="ref-token-clear-wrap" class="hidden">
|
|
36
36
|
{{> ui/btn id="ref-token-clear" variant="neutral" style="text" size="sm" icon="icon-[tabler--x]" label="Clear"}}
|
|
37
37
|
</span>
|
|
38
|
+
{{!-- How much of a minted token's hour is left, filled in and counted down by
|
|
39
|
+
static/js/reference.js. Deliberately not a live region: it changes every
|
|
40
|
+
minute, and announcing that each time is noise, not news. --}}
|
|
41
|
+
{{> ui/badge elId="ref-token-expiry" variant="primary" soft=true class="badge-sm hidden" label="" icon=""}}
|
|
38
42
|
</div>
|
|
39
43
|
<p class="text-base-content/50 mt-2 text-xs">Creates an API-scoped token that expires in one hour and activates it
|
|
40
44
|
here. It is a real token until then - it appears on the
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{{#> ui/page-header title="Suppression Lists" icon="icon-[tabler--mail-off]" subtitle="Recipients excluded from list-based sending. Only messages submitted with a listId are checked against these lists - the send skips every listed address. Messages without a listId are not affected." badgeLabel=total badgeVariant="neutral" class="mb-6"}}
|
|
2
|
+
{{> ui/btn label="Add address" icon="icon-[tabler--plus]" overlay="#addAddressModal"}}
|
|
3
|
+
{{/ui/page-header}}
|
|
4
|
+
|
|
5
|
+
{{#if suppressionLists}}
|
|
6
|
+
<div class="card bg-base-100 shadow-md mb-6">
|
|
7
|
+
<div class="overflow-x-auto">
|
|
8
|
+
<table class="table">
|
|
9
|
+
<thead>
|
|
10
|
+
<tr>
|
|
11
|
+
<th>List ID</th>
|
|
12
|
+
<th>Addresses</th>
|
|
13
|
+
<th class="w-12"><span class="sr-only">Actions</span></th>
|
|
14
|
+
</tr>
|
|
15
|
+
</thead>
|
|
16
|
+
|
|
17
|
+
<tbody>
|
|
18
|
+
{{#each suppressionLists}}
|
|
19
|
+
<tr class="hover:bg-base-200/60">
|
|
20
|
+
<td class="relative">
|
|
21
|
+
{{> ui/row-link href=(concat "/admin/suppression-lists/list/" listId) label="Open suppression list"}}
|
|
22
|
+
<strong>{{listId}}</strong>
|
|
23
|
+
</td>
|
|
24
|
+
|
|
25
|
+
<td class="relative">
|
|
26
|
+
{{> ui/row-link href=(concat "/admin/suppression-lists/list/" listId)}}{{count}}
|
|
27
|
+
</td>
|
|
28
|
+
|
|
29
|
+
<td class="relative text-end">
|
|
30
|
+
{{> ui/row-actions openHref=(concat "/admin/suppression-lists/list/" listId) label="Suppression list actions"
|
|
31
|
+
deleteModal="#deleteList" deleteId=listId deleteName=listId}}
|
|
32
|
+
</td>
|
|
33
|
+
</tr>
|
|
34
|
+
{{/each}}
|
|
35
|
+
</tbody>
|
|
36
|
+
</table>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
{{> ui/pagination showPaging=showPaging prevPage=prevPage nextPage=nextPage pageLinks=pageLinks}}
|
|
40
|
+
</div>
|
|
41
|
+
{{else}}
|
|
42
|
+
{{> ui/list-empty noun="suppression lists" firstPage=firstPage createOverlay="#addAddressModal" createLabel="Add your first suppressed address"}}
|
|
43
|
+
{{/if}}
|
|
44
|
+
|
|
45
|
+
{{#> ui/details summary="How suppression lists work" class="card bg-base-100 shadow-md mb-6"}}
|
|
46
|
+
<div>
|
|
47
|
+
<p class="mb-2">
|
|
48
|
+
Suppression lists collect addresses that must not receive further emails. An address is
|
|
49
|
+
added when a recipient unsubscribes through the hosted subscription management page or
|
|
50
|
+
the one-click <em>List-Unsubscribe</em> action, through the <em>Blocklists</em> API, or
|
|
51
|
+
manually from this page. When a message is submitted with a <code>listId</code>,
|
|
52
|
+
recipients on that list are skipped; messages submitted without a
|
|
53
|
+
<code>listId</code> are never checked against these lists.
|
|
54
|
+
</p>
|
|
55
|
+
<p class="mb-2">
|
|
56
|
+
Lists are registered on first use: adding an address to a new list ID creates the list,
|
|
57
|
+
and removing the last address deletes it.
|
|
58
|
+
</p>
|
|
59
|
+
<p class="mb-2">
|
|
60
|
+
Each listed address links to its public subscription management page, the same page the
|
|
61
|
+
<em>List-Unsubscribe</em> link in emails opens. Use it to preview the page or send the
|
|
62
|
+
link to a recipient who wants to re-subscribe themselves.
|
|
63
|
+
</p>
|
|
64
|
+
<p class="mb-0"><a href="https://learn.emailengine.app/docs/advanced/virtual-lists" target="_blank"
|
|
65
|
+
rel="noopener noreferrer" referrerpolicy="no-referrer" class="link link-animated">Learn more about virtual
|
|
66
|
+
lists and sending with a listId</a>.</p>
|
|
67
|
+
</div>
|
|
68
|
+
{{/ui/details}}
|
|
69
|
+
|
|
70
|
+
{{#> ui/modal id="addAddressModal" title="Add suppressed address"}}
|
|
71
|
+
<form method="post" action="/admin/suppression-lists/add">
|
|
72
|
+
<input type="hidden" name="crumb" value="{{crumb}}">
|
|
73
|
+
<div class="modal-body space-y-4">
|
|
74
|
+
{{> ui/form-field id="add-list-id" name="listId" label="List ID" required=true placeholder="e.g. newsletter" hint="Subdomain name format. An unknown ID registers a new list."}}
|
|
75
|
+
{{> ui/form-field id="add-recipient" name="recipient" label="Email address" type="email" required=true placeholder="user@example.com"}}
|
|
76
|
+
{{> ui/form-field id="add-reason" name="reason" label="Reason" placeholder="block" hint="Optional identifier stored with the entry (default: block)."}}
|
|
77
|
+
</div>
|
|
78
|
+
<div class="modal-footer">
|
|
79
|
+
{{> ui/btn label="Cancel" variant="neutral" style="soft" overlay=closeOverlay}}
|
|
80
|
+
{{> ui/btn label="Add address" variant="primary" type="submit" icon="icon-[tabler--plus]"}}
|
|
81
|
+
</div>
|
|
82
|
+
</form>
|
|
83
|
+
{{/ui/modal}}
|
|
84
|
+
|
|
85
|
+
{{> ui/delete-modal id="deleteList" noun="suppression list" action="/admin/suppression-lists/delete" fieldName="listId"}}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{{> ui/breadcrumb parentHref="/admin/suppression-lists" parentLabel="Suppression Lists" current=listId class="mb-6"}}
|
|
2
|
+
|
|
3
|
+
{{#> ui/card}}
|
|
4
|
+
|
|
5
|
+
{{#> ui/detail-toolbar label="Suppression list actions"}}
|
|
6
|
+
{{> ui/btn variant="primary" style="outline" size="sm" icon="icon-[tabler--plus]" label="Add address" overlay="#addAddressModal"}}
|
|
7
|
+
{{> ui/btn variant="error" style="outline" size="sm" icon="icon-[tabler--trash]" label="Delete list" overlay="#deleteListModal"}}
|
|
8
|
+
{{/ui/detail-toolbar}}
|
|
9
|
+
|
|
10
|
+
<h6 class="card-title">{{listId}}</h6>
|
|
11
|
+
<h6 class="mb-6 text-base-content/60">{{total}} suppressed {{#equals total 1}}address{{else}}addresses{{/equals}}</h6>
|
|
12
|
+
|
|
13
|
+
<div class="overflow-x-auto">
|
|
14
|
+
<table class="table">
|
|
15
|
+
<thead>
|
|
16
|
+
<tr>
|
|
17
|
+
<th>Address</th>
|
|
18
|
+
<th>Reason</th>
|
|
19
|
+
<th>Source</th>
|
|
20
|
+
<th>Account</th>
|
|
21
|
+
<th>Added</th>
|
|
22
|
+
<th class="w-12"><span class="sr-only">Actions</span></th>
|
|
23
|
+
</tr>
|
|
24
|
+
</thead>
|
|
25
|
+
|
|
26
|
+
<tbody>
|
|
27
|
+
{{#each addresses}}
|
|
28
|
+
<tr class="hover:bg-base-200/60">
|
|
29
|
+
<td><strong>{{recipient}}</strong></td>
|
|
30
|
+
<td>{{reason}}</td>
|
|
31
|
+
<td>{{source}}</td>
|
|
32
|
+
<td>
|
|
33
|
+
{{#if account}}
|
|
34
|
+
<a href="/admin/accounts/{{urlpart account}}" class="link link-primary">{{account}}</a>
|
|
35
|
+
{{else}}
|
|
36
|
+
<span class="text-base-content/60">-</span>
|
|
37
|
+
{{/if}}
|
|
38
|
+
</td>
|
|
39
|
+
<td><span class="text-base-content/60">{{created}}</span></td>
|
|
40
|
+
<td class="relative text-end">
|
|
41
|
+
{{!-- The condition sits OUTSIDE the ui/row-actions block on purpose: a partial
|
|
42
|
+
block whose content is nothing but a {{#if}} wrapper loses its content to a
|
|
43
|
+
Handlebars program-association bug (the menu rendered without the items).
|
|
44
|
+
Keep the block's first content token a static element. --}}
|
|
45
|
+
{{#if unsubscribeUrl}}
|
|
46
|
+
{{#> ui/row-actions label="Address actions" deleteModal="#deleteEntry" deleteId=recipient deleteName=recipient}}
|
|
47
|
+
<li><a class="dropdown-item" href="{{unsubscribeUrl}}" target="_blank" rel="noopener noreferrer">
|
|
48
|
+
<span class="icon-[tabler--external-link] size-4"></span>
|
|
49
|
+
Subscription page</a></li>
|
|
50
|
+
<li><button type="button" class="dropdown-item copy-btn" data-copy-value="{{unsubscribeUrl}}">
|
|
51
|
+
<span class="icon-[tabler--copy] size-4"></span>
|
|
52
|
+
Copy page link</button></li>
|
|
53
|
+
{{/ui/row-actions}}
|
|
54
|
+
{{else}}
|
|
55
|
+
{{> ui/row-actions label="Address actions" deleteModal="#deleteEntry" deleteId=recipient deleteName=recipient}}
|
|
56
|
+
{{/if}}
|
|
57
|
+
</td>
|
|
58
|
+
</tr>
|
|
59
|
+
{{/each}}
|
|
60
|
+
</tbody>
|
|
61
|
+
</table>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
{{> ui/pagination showPaging=showPaging prevPage=prevPage nextPage=nextPage pageLinks=pageLinks}}
|
|
65
|
+
|
|
66
|
+
{{/ui/card}}
|
|
67
|
+
|
|
68
|
+
{{#> ui/modal id="addAddressModal" title="Add suppressed address"}}
|
|
69
|
+
<form method="post" action="/admin/suppression-lists/add">
|
|
70
|
+
<input type="hidden" name="crumb" value="{{crumb}}">
|
|
71
|
+
<input type="hidden" name="listId" value="{{listId}}">
|
|
72
|
+
<div class="modal-body space-y-4">
|
|
73
|
+
{{> ui/form-field id="add-recipient" name="recipient" label="Email address" type="email" required=true placeholder="user@example.com"}}
|
|
74
|
+
{{> ui/form-field id="add-reason" name="reason" label="Reason" placeholder="block" hint="Optional identifier stored with the entry (default: block)."}}
|
|
75
|
+
</div>
|
|
76
|
+
<div class="modal-footer">
|
|
77
|
+
{{> ui/btn label="Cancel" variant="neutral" style="soft" overlay=closeOverlay}}
|
|
78
|
+
{{> ui/btn label="Add address" variant="primary" type="submit" icon="icon-[tabler--plus]"}}
|
|
79
|
+
</div>
|
|
80
|
+
</form>
|
|
81
|
+
{{/ui/modal}}
|
|
82
|
+
|
|
83
|
+
{{> ui/delete-modal id="deleteEntry" noun="address" action=(concat "/admin/suppression-lists/list/" listId "/remove") fieldName="recipient"}}
|
|
84
|
+
|
|
85
|
+
{{#> ui/confirm-modal id="deleteListModal" title="Delete suppression list" action="/admin/suppression-lists/delete" fieldName="listId" fieldValue=listId submitLabel="Delete list"}}
|
|
86
|
+
Are you sure you want to delete <strong>{{listId}}</strong> with all of its addresses? Everyone on this list becomes reachable again. This action cannot be undone.
|
|
87
|
+
{{/ui/confirm-modal}}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{{#if account}}
|
|
14
14
|
<div class="card-body">
|
|
15
15
|
<div>
|
|
16
|
-
Currently showing email templates for <strong><a href="/admin/accounts/{{account.account}}"
|
|
16
|
+
Currently showing email templates for <strong><a href="/admin/accounts/{{urlpart account.account}}"
|
|
17
17
|
class="link link-animated">{{account.name}}</a></strong>. These templates cannot be
|
|
18
18
|
used by other accounts.
|
|
19
19
|
</div>
|
|
@@ -57,15 +57,21 @@
|
|
|
57
57
|
{{> ui/pagination showPaging=showPaging prevPage=prevPage nextPage=nextPage pageLinks=pageLinks}}
|
|
58
58
|
</div>
|
|
59
59
|
{{else}}
|
|
60
|
-
{{
|
|
60
|
+
{{!-- The condition sits OUTSIDE the ui/list-empty block on purpose: a partial block whose
|
|
61
|
+
content is nothing but a {{#if}} wrapper loses its content to a Handlebars
|
|
62
|
+
program-association bug (the account note never rendered). Keep the block's first
|
|
63
|
+
content token a static element. --}}
|
|
61
64
|
{{#if account}}
|
|
65
|
+
{{#> ui/list-empty noun="templates" query=query firstPage=firstPage createHref=newLink createLabel="Create your first template" clearHref="/admin/templates"}}
|
|
62
66
|
<div class="mb-2">
|
|
63
|
-
Currently showing email templates for <strong><a href="/admin/accounts/{{account.account}}"
|
|
67
|
+
Currently showing email templates for <strong><a href="/admin/accounts/{{urlpart account.account}}"
|
|
64
68
|
class="link link-animated">{{#if account.name}}{{account.name}}{{else}}{{account.email}}{{/if}}</a></strong>.
|
|
65
69
|
These templates cannot be used by other accounts.
|
|
66
70
|
</div>
|
|
67
|
-
{{/if}}
|
|
68
71
|
{{/ui/list-empty}}
|
|
72
|
+
{{else}}
|
|
73
|
+
{{> ui/list-empty noun="templates" query=query firstPage=firstPage createHref=newLink createLabel="Create your first template" clearHref="/admin/templates"}}
|
|
74
|
+
{{/if}}
|
|
69
75
|
{{/if}}
|
|
70
76
|
|
|
71
77
|
{{> ui/delete-modal id="deleteTemplate" noun="template" action="/admin/templates/delete" fieldName="template"}}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
{{#if account}}
|
|
39
39
|
|
|
40
40
|
<dt>Account</dt>
|
|
41
|
-
<dd><a href="/admin/accounts/{{account.account}}" class="link link-animated">{{account.name}}</a></dd>
|
|
41
|
+
<dd><a href="/admin/accounts/{{urlpart account.account}}" class="link link-animated">{{account.name}}</a></dd>
|
|
42
42
|
|
|
43
43
|
{{/if}}
|
|
44
44
|
|