@geekity/cms 0.56.1 → 0.58.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/admin/pages/settings/discussion.njk +22 -2
- package/admin/pages/settings/notifications.njk +45 -0
- package/admin/pages/tools/export.njk +6 -0
- package/admin/pages/tools/personal-data.njk +9 -0
- package/admin/pages/users/edit.njk +6 -77
- package/admin/static/admin.css +811 -1409
- package/admin/static/editor.js +26 -26
- package/dist/admin/comments.d.ts.map +1 -1
- package/dist/admin/comments.js +3 -0
- package/dist/admin/comments.js.map +1 -1
- package/dist/admin/federation.d.ts.map +1 -1
- package/dist/admin/federation.js +2 -1
- package/dist/admin/federation.js.map +1 -1
- package/dist/admin/indieauth-consent.js +1 -1
- package/dist/admin/indieauth-consent.js.map +1 -1
- package/dist/admin/menu.d.ts.map +1 -1
- package/dist/admin/menu.js +2 -1
- package/dist/admin/menu.js.map +1 -1
- package/dist/admin/personal-data.d.ts.map +1 -1
- package/dist/admin/personal-data.js +11 -2
- package/dist/admin/personal-data.js.map +1 -1
- package/dist/admin/settings-discussion.d.ts.map +1 -1
- package/dist/admin/settings-discussion.js +1 -0
- package/dist/admin/settings-discussion.js.map +1 -1
- package/dist/admin/settings-fields.d.ts.map +1 -1
- package/dist/admin/settings-fields.js +2 -0
- package/dist/admin/settings-fields.js.map +1 -1
- package/dist/admin/settings-notifications.d.ts +15 -0
- package/dist/admin/settings-notifications.d.ts.map +1 -0
- package/dist/admin/settings-notifications.js +66 -0
- package/dist/admin/settings-notifications.js.map +1 -0
- package/dist/admin/settings-page.d.ts +4 -3
- package/dist/admin/settings-page.d.ts.map +1 -1
- package/dist/admin/settings-page.js +4 -2
- package/dist/admin/settings-page.js.map +1 -1
- package/dist/admin/settings-pages.d.ts +2 -2
- package/dist/admin/settings-pages.d.ts.map +1 -1
- package/dist/admin/settings-pages.js +4 -2
- package/dist/admin/settings-pages.js.map +1 -1
- package/dist/admin/templates.d.ts +1 -0
- package/dist/admin/templates.d.ts.map +1 -1
- package/dist/admin/templates.js +1 -0
- package/dist/admin/templates.js.map +1 -1
- package/dist/admin/users.d.ts +0 -5
- package/dist/admin/users.d.ts.map +1 -1
- package/dist/admin/users.js +3 -51
- package/dist/admin/users.js.map +1 -1
- package/dist/cli/export.d.ts.map +1 -1
- package/dist/cli/export.js +5 -1
- package/dist/cli/export.js.map +1 -1
- package/dist/cms/app.d.ts.map +1 -1
- package/dist/cms/app.js +2 -0
- package/dist/cms/app.js.map +1 -1
- package/dist/cms/create.d.ts +2 -2
- package/dist/cms/services.d.ts +4 -0
- package/dist/cms/services.d.ts.map +1 -1
- package/dist/cms/services.js +42 -11
- package/dist/cms/services.js.map +1 -1
- package/dist/comments/conversation.d.ts +6 -5
- package/dist/comments/conversation.d.ts.map +1 -1
- package/dist/comments/conversation.js +2 -2
- package/dist/comments/index.d.ts +1 -1
- package/dist/comments/index.d.ts.map +1 -1
- package/dist/comments/index.js.map +1 -1
- package/dist/comments/intake.d.ts +32 -12
- package/dist/comments/intake.d.ts.map +1 -1
- package/dist/comments/intake.js +50 -17
- package/dist/comments/intake.js.map +1 -1
- package/dist/comments/migrations.d.ts.map +1 -1
- package/dist/comments/migrations.js +16 -2
- package/dist/comments/migrations.js.map +1 -1
- package/dist/comments/records.d.ts +24 -11
- package/dist/comments/records.d.ts.map +1 -1
- package/dist/comments/records.js +168 -63
- package/dist/comments/records.js.map +1 -1
- package/dist/config-entry.d.ts +1 -1
- package/dist/config-entry.d.ts.map +1 -1
- package/dist/config.d.ts +47 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -2
- package/dist/config.js.map +1 -1
- package/dist/content/image-tags.js +2 -2
- package/dist/content/image-tags.js.map +1 -1
- package/dist/content/sanitize.d.ts.map +1 -1
- package/dist/content/sanitize.js +27 -13
- package/dist/content/sanitize.js.map +1 -1
- package/dist/content/search.d.ts.map +1 -1
- package/dist/content/search.js +1 -28
- package/dist/content/search.js.map +1 -1
- package/dist/content/sqlite/catalog.js +3 -0
- package/dist/content/sqlite/catalog.js.map +1 -1
- package/dist/content/sqlite/schema.d.ts.map +1 -1
- package/dist/content/sqlite/schema.js +13 -0
- package/dist/content/sqlite/schema.js.map +1 -1
- package/dist/content/store.d.ts +2 -0
- package/dist/content/store.d.ts.map +1 -1
- package/dist/content/store.js.map +1 -1
- package/dist/export/site-export.d.ts +1 -0
- package/dist/export/site-export.d.ts.map +1 -1
- package/dist/export/site-export.js +2 -0
- package/dist/export/site-export.js.map +1 -1
- package/dist/export/site-import.d.ts.map +1 -1
- package/dist/export/site-import.js +1 -0
- package/dist/export/site-import.js.map +1 -1
- package/dist/exports.d.ts +1 -1
- package/dist/exports.d.ts.map +1 -1
- package/dist/exports.js.map +1 -1
- package/dist/federation/activity-notices.d.ts +22 -0
- package/dist/federation/activity-notices.d.ts.map +1 -0
- package/dist/federation/activity-notices.js +119 -0
- package/dist/federation/activity-notices.js.map +1 -0
- package/dist/federation/backfill.d.ts +2 -0
- package/dist/federation/backfill.d.ts.map +1 -1
- package/dist/federation/backfill.js +3 -1
- package/dist/federation/backfill.js.map +1 -1
- package/dist/federation/federation.d.ts +16 -0
- package/dist/federation/federation.d.ts.map +1 -1
- package/dist/federation/federation.js +5 -2
- package/dist/federation/federation.js.map +1 -1
- package/dist/federation/inbox.d.ts +8 -7
- package/dist/federation/inbox.d.ts.map +1 -1
- package/dist/federation/inbox.js +46 -12
- package/dist/federation/inbox.js.map +1 -1
- package/dist/federation/profiles.d.ts.map +1 -1
- package/dist/federation/profiles.js +5 -1
- package/dist/federation/profiles.js.map +1 -1
- package/dist/federation/public-loaders.d.ts +14 -0
- package/dist/federation/public-loaders.d.ts.map +1 -0
- package/dist/federation/public-loaders.js +41 -0
- package/dist/federation/public-loaders.js.map +1 -0
- package/dist/federation/quotes.d.ts +5 -2
- package/dist/federation/quotes.d.ts.map +1 -1
- package/dist/federation/quotes.js +9 -5
- package/dist/federation/quotes.js.map +1 -1
- package/dist/federation/reply-review.d.ts +21 -0
- package/dist/federation/reply-review.d.ts.map +1 -0
- package/dist/federation/reply-review.js +152 -0
- package/dist/federation/reply-review.js.map +1 -0
- package/dist/files/data-files.d.ts +2 -0
- package/dist/files/data-files.d.ts.map +1 -1
- package/dist/files/data-files.js +12 -0
- package/dist/files/data-files.js.map +1 -1
- package/dist/following/list.d.ts.map +1 -1
- package/dist/following/list.js +4 -3
- package/dist/following/list.js.map +1 -1
- package/dist/forms/protection.d.ts +8 -0
- package/dist/forms/protection.d.ts.map +1 -1
- package/dist/forms/protection.js +8 -0
- package/dist/forms/protection.js.map +1 -1
- package/dist/indieauth/client.js +2 -2
- package/dist/indieauth/client.js.map +1 -1
- package/dist/mcp/endpoint.d.ts.map +1 -1
- package/dist/mcp/endpoint.js +3 -0
- package/dist/mcp/endpoint.js.map +1 -1
- package/dist/mcp/inspect/remote.js +2 -2
- package/dist/mcp/inspect/remote.js.map +1 -1
- package/dist/mcp/profile.d.ts +3 -0
- package/dist/mcp/profile.d.ts.map +1 -0
- package/dist/mcp/profile.js +143 -0
- package/dist/mcp/profile.js.map +1 -0
- package/dist/mcp/tools.d.ts +1 -1
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js.map +1 -1
- package/dist/notifications/activity.d.ts +19 -0
- package/dist/notifications/activity.d.ts.map +1 -0
- package/dist/notifications/activity.js +48 -0
- package/dist/notifications/activity.js.map +1 -0
- package/dist/notifications/comments.d.ts +14 -5
- package/dist/notifications/comments.d.ts.map +1 -1
- package/dist/notifications/comments.js +59 -11
- package/dist/notifications/comments.js.map +1 -1
- package/dist/notifications/digest.d.ts +8 -39
- package/dist/notifications/digest.d.ts.map +1 -1
- package/dist/notifications/digest.js +95 -65
- package/dist/notifications/digest.js.map +1 -1
- package/dist/notifications/index.d.ts +5 -1
- package/dist/notifications/index.d.ts.map +1 -1
- package/dist/notifications/index.js +3 -1
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications/notice-log.d.ts +49 -0
- package/dist/notifications/notice-log.d.ts.map +1 -0
- package/dist/notifications/notice-log.js +109 -0
- package/dist/notifications/notice-log.js.map +1 -0
- package/dist/privacy/erase.d.ts +6 -1
- package/dist/privacy/erase.d.ts.map +1 -1
- package/dist/privacy/erase.js +24 -9
- package/dist/privacy/erase.js.map +1 -1
- package/dist/privacy/retention.d.ts.map +1 -1
- package/dist/privacy/retention.js +7 -2
- package/dist/privacy/retention.js.map +1 -1
- package/dist/site/fediverse-replies.d.ts +4 -0
- package/dist/site/fediverse-replies.d.ts.map +1 -0
- package/dist/site/fediverse-replies.js +5 -0
- package/dist/site/fediverse-replies.js.map +1 -0
- package/dist/site/namespace.d.ts +1 -0
- package/dist/site/namespace.d.ts.map +1 -1
- package/dist/site/namespace.js +8 -0
- package/dist/site/namespace.js.map +1 -1
- package/dist/site/notification-preferences.d.ts +30 -42
- package/dist/site/notification-preferences.d.ts.map +1 -1
- package/dist/site/notification-preferences.js +72 -41
- package/dist/site/notification-preferences.js.map +1 -1
- package/dist/site/users.d.ts +26 -3
- package/dist/site/users.d.ts.map +1 -1
- package/dist/site/users.js +35 -1
- package/dist/site/users.js.map +1 -1
- package/dist/store/admin-store.d.ts +1 -1
- package/dist/store/admin-store.d.ts.map +1 -1
- package/dist/store/admin-store.js +1 -1
- package/dist/store/admin-store.js.map +1 -1
- package/dist/store/comments.d.ts +21 -4
- package/dist/store/comments.d.ts.map +1 -1
- package/dist/store/comments.js +48 -2
- package/dist/store/comments.js.map +1 -1
- package/dist/store/inbox-replies.d.ts +4 -0
- package/dist/store/inbox-replies.d.ts.map +1 -1
- package/dist/store/inbox-replies.js +9 -0
- package/dist/store/inbox-replies.js.map +1 -1
- package/dist/store/schema.d.ts.map +1 -1
- package/dist/store/schema.js +4 -0
- package/dist/store/schema.js.map +1 -1
- package/dist/util/html-entities.d.ts +5 -0
- package/dist/util/html-entities.d.ts.map +1 -0
- package/dist/util/html-entities.js +2239 -0
- package/dist/util/html-entities.js.map +1 -0
- package/dist/util/html-tree.d.ts +13 -6
- package/dist/util/html-tree.d.ts.map +1 -1
- package/dist/util/html-tree.js +171 -44
- package/dist/util/html-tree.js.map +1 -1
- package/dist/util/html.d.ts +7 -0
- package/dist/util/html.d.ts.map +1 -1
- package/dist/util/html.js +68 -19
- package/dist/util/html.js.map +1 -1
- package/dist/util/public-address.d.ts +11 -2
- package/dist/util/public-address.d.ts.map +1 -1
- package/dist/util/public-address.js +86 -13
- package/dist/util/public-address.js.map +1 -1
- package/dist/util/queue.d.ts +5 -0
- package/dist/util/queue.d.ts.map +1 -1
- package/dist/util/queue.js +18 -0
- package/dist/util/queue.js.map +1 -1
- package/dist/util/url.d.ts +11 -0
- package/dist/util/url.d.ts.map +1 -1
- package/dist/util/url.js +23 -0
- package/dist/util/url.js.map +1 -1
- package/dist/web/activity-folding.d.ts.map +1 -1
- package/dist/web/activity-folding.js +7 -3
- package/dist/web/activity-folding.js.map +1 -1
- package/dist/web/bounded-body.d.ts +12 -0
- package/dist/web/bounded-body.d.ts.map +1 -0
- package/dist/web/bounded-body.js +55 -0
- package/dist/web/bounded-body.js.map +1 -0
- package/dist/web/comment-routes.d.ts.map +1 -1
- package/dist/web/comment-routes.js +8 -2
- package/dist/web/comment-routes.js.map +1 -1
- package/dist/web/contact-routes.d.ts.map +1 -1
- package/dist/web/contact-routes.js +7 -1
- package/dist/web/contact-routes.js.map +1 -1
- package/dist/web/conversation-gather.d.ts.map +1 -1
- package/dist/web/conversation-gather.js +9 -3
- package/dist/web/conversation-gather.js.map +1 -1
- package/dist/web/conversation.d.ts.map +1 -1
- package/dist/web/conversation.js +15 -7
- package/dist/web/conversation.js.map +1 -1
- package/dist/web/document-render.js +6 -2
- package/dist/web/document-render.js.map +1 -1
- package/dist/web/env.d.ts +6 -0
- package/dist/web/env.d.ts.map +1 -1
- package/dist/web/federation-routes.d.ts +1 -1
- package/dist/web/federation-routes.d.ts.map +1 -1
- package/dist/web/federation-routes.js +2 -0
- package/dist/web/federation-routes.js.map +1 -1
- package/dist/web/markdown-chrome.d.ts.map +1 -1
- package/dist/web/markdown-chrome.js +8 -2
- package/dist/web/markdown-chrome.js.map +1 -1
- package/dist/web/markdown-page.d.ts +3 -1
- package/dist/web/markdown-page.d.ts.map +1 -1
- package/dist/web/markdown-page.js +2 -1
- package/dist/web/markdown-page.js.map +1 -1
- package/dist/web/markdown-representation.d.ts.map +1 -1
- package/dist/web/markdown-representation.js +6 -10
- package/dist/web/markdown-representation.js.map +1 -1
- package/dist/web/notification-routes.d.ts.map +1 -1
- package/dist/web/notification-routes.js +5 -1
- package/dist/web/notification-routes.js.map +1 -1
- package/dist/web/pingback-routes.d.ts +2 -1
- package/dist/web/pingback-routes.d.ts.map +1 -1
- package/dist/web/pingback-routes.js +59 -34
- package/dist/web/pingback-routes.js.map +1 -1
- package/dist/web/render.d.ts +2 -1
- package/dist/web/render.d.ts.map +1 -1
- package/dist/web/render.js.map +1 -1
- package/dist/web/request.d.ts +0 -5
- package/dist/web/request.d.ts.map +1 -1
- package/dist/web/request.js +2 -13
- package/dist/web/request.js.map +1 -1
- package/dist/web/routes.d.ts.map +1 -1
- package/dist/web/routes.js +5 -3
- package/dist/web/routes.js.map +1 -1
- package/dist/web/site-view.d.ts +15 -0
- package/dist/web/site-view.d.ts.map +1 -1
- package/dist/web/site-view.js +1 -1
- package/dist/web/site-view.js.map +1 -1
- package/dist/web/throttle.d.ts +6 -0
- package/dist/web/throttle.d.ts.map +1 -1
- package/dist/web/throttle.js +1 -1
- package/dist/web/throttle.js.map +1 -1
- package/dist/web/webmention-routes.d.ts +14 -2
- package/dist/web/webmention-routes.d.ts.map +1 -1
- package/dist/web/webmention-routes.js +65 -19
- package/dist/web/webmention-routes.js.map +1 -1
- package/dist/webmention/checks.d.ts +43 -0
- package/dist/webmention/checks.d.ts.map +1 -0
- package/dist/webmention/checks.js +103 -0
- package/dist/webmention/checks.js.map +1 -0
- package/dist/webmention/discovery.js +2 -2
- package/dist/webmention/discovery.js.map +1 -1
- package/dist/webmention/endpoint.d.ts +2 -0
- package/dist/webmention/endpoint.d.ts.map +1 -1
- package/dist/webmention/endpoint.js +2 -0
- package/dist/webmention/endpoint.js.map +1 -1
- package/dist/webmention/fetch-public.d.ts +5 -0
- package/dist/webmention/fetch-public.d.ts.map +1 -1
- package/dist/webmention/fetch-public.js +19 -1
- package/dist/webmention/fetch-public.js.map +1 -1
- package/dist/webmention/index.d.ts +2 -1
- package/dist/webmention/index.d.ts.map +1 -1
- package/dist/webmention/index.js.map +1 -1
- package/dist/webmention/links.d.ts.map +1 -1
- package/dist/webmention/links.js +4 -11
- package/dist/webmention/links.js.map +1 -1
- package/dist/webmention/microformats.d.ts +32 -9
- package/dist/webmention/microformats.d.ts.map +1 -1
- package/dist/webmention/microformats.js +341 -110
- package/dist/webmention/microformats.js.map +1 -1
- package/dist/webmention/pingback.d.ts +7 -0
- package/dist/webmention/pingback.d.ts.map +1 -1
- package/dist/webmention/pingback.js +108 -34
- package/dist/webmention/pingback.js.map +1 -1
- package/dist/webmention/receive.d.ts +28 -21
- package/dist/webmention/receive.d.ts.map +1 -1
- package/dist/webmention/receive.js +289 -65
- package/dist/webmention/receive.js.map +1 -1
- package/dist/webmention/reply-context/feed.js +2 -2
- package/dist/webmention/reply-context/feed.js.map +1 -1
- package/dist/webmention/reply-context/page.js +2 -2
- package/dist/webmention/reply-context/page.js.map +1 -1
- package/dist/webmention/service.d.ts +51 -12
- package/dist/webmention/service.d.ts.map +1 -1
- package/dist/webmention/service.js +202 -38
- package/dist/webmention/service.js.map +1 -1
- package/dist/webmention/syndication.d.ts +2 -0
- package/dist/webmention/syndication.d.ts.map +1 -1
- package/dist/webmention/syndication.js +57 -20
- package/dist/webmention/syndication.js.map +1 -1
- package/package.json +5 -5
- package/themes/default/mail/comment-digest.html.njk +28 -5
- package/themes/default/mail/comment-digest.subject.njk +3 -2
- package/themes/default/mail/comment-digest.txt.njk +42 -13
- package/themes/default/mail/comment-pending.html.njk +20 -0
- package/themes/default/mail/comment-pending.txt.njk +31 -4
- package/themes/default/mail/comment-published.html.njk +18 -0
- package/themes/default/mail/comment-published.subject.njk +1 -0
- package/themes/default/mail/comment-published.txt.njk +18 -0
- package/themes/default/mail/comment-reply.txt.njk +1 -1
- package/themes/default/mail/contact-message.txt.njk +4 -2
- package/themes/default/mail/fediverse-notice.html.njk +15 -0
- package/themes/default/mail/fediverse-notice.subject.njk +1 -0
- package/themes/default/mail/fediverse-notice.txt.njk +22 -0
- package/themes/default/mail/password-changed.txt.njk +1 -1
- package/themes/default/mail/password-reset.txt.njk +1 -1
- package/themes/default/mail/test.txt.njk +1 -1
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
{% block settingsProblems %}
|
|
20
20
|
{{ field.problem('settings-comments-close', problems.comments_close_after_days) }}
|
|
21
|
+
{{ field.problem('settings-fediverse-replies', problems.fediverse_replies) }}
|
|
21
22
|
{{ field.problem('settings-comment-email-retention', problems.comment_email_retention_days) }}
|
|
22
23
|
{{ field.problem('settings-address-hash-retention', problems.address_hash_retention_days) }}
|
|
23
24
|
{{ field.problem('settings-contact-message-retention', problems.contact_message_retention_days) }}
|
|
@@ -28,8 +29,8 @@
|
|
|
28
29
|
|
|
29
30
|
{% set commentsHint %}
|
|
30
31
|
Clear this and nothing shows a comment form and every submission is
|
|
31
|
-
refused. What was already said stays under its post or page. Fediverse replies keep arriving
|
|
32
|
-
a remote server sends those, and
|
|
32
|
+
refused. What was already said stays under its post or page. Fediverse replies keep arriving either way:
|
|
33
|
+
a remote server sends those, and the rule under Fediverse replies decides which of them show.
|
|
33
34
|
{% endset %}
|
|
34
35
|
{{ field.checkbox('settings-comments', fields.comments, 'Take comments on this site',
|
|
35
36
|
checked=form.comments, hintHtml=commentsHint) }}
|
|
@@ -78,6 +79,25 @@
|
|
|
78
79
|
{{ field.checkbox('settings-webmentions-receive', fields.webmentions_receive,
|
|
79
80
|
'Accept webmentions sent here', checked=form.webmentions_receive, hintHtml=receiveHint) }}
|
|
80
81
|
|
|
82
|
+
<h2 class="mt-6 text-lg font-semibold">Fediverse replies</h2>
|
|
83
|
+
|
|
84
|
+
{% set fediverseHint %}
|
|
85
|
+
A reply that waits goes into the comment queue and sends the waiting for
|
|
86
|
+
review notice, with the same approve, spam and delete links as a comment.
|
|
87
|
+
Under the middle choice, an account whose reply was approved, or is
|
|
88
|
+
already on a page, has its later replies shown at once. The rule applies to replies that
|
|
89
|
+
arrive from now on: a reply already on a page stays there.
|
|
90
|
+
{% endset %}
|
|
91
|
+
{% call field.select('settings-fediverse-replies', fields.fediverse_replies, 'Show fediverse replies',
|
|
92
|
+
error=problems.fediverse_replies, hintHtml=fediverseHint) %}
|
|
93
|
+
{% for option in [
|
|
94
|
+
['show', 'Show every reply at once'],
|
|
95
|
+
['known', 'Show replies from followers and accounts already shown or approved; hold the rest'],
|
|
96
|
+
['hold', 'Hold every reply for review']] %}
|
|
97
|
+
<option value="{{ option[0] }}"{% if option[0] == form.fediverse_replies %} selected{% endif %}>{{ option[1] }}</option>
|
|
98
|
+
{% endfor %}
|
|
99
|
+
{% endcall %}
|
|
100
|
+
|
|
81
101
|
<h2 class="mt-6 text-lg font-semibold">Keeping personal data</h2>
|
|
82
102
|
|
|
83
103
|
<p class="max-w-prose text-sm">
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{% extends "layouts/settings-page.njk" %}
|
|
2
|
+
{% import "components/fields.njk" as field %}
|
|
3
|
+
{% from "components/alert.njk" import alert %}
|
|
4
|
+
|
|
5
|
+
{% block settingsFields %}
|
|
6
|
+
<p class="max-w-prose text-sm">
|
|
7
|
+
What this site emails you about{% if noticeEmail %}, at <code>{{ noticeEmail }}</code>{% endif %}.
|
|
8
|
+
These are your own choices; every other user picks theirs here when signed in.
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
{% if not mailConfigured %}
|
|
12
|
+
{% call alert(color='warning', style='soft') %}
|
|
13
|
+
<p>
|
|
14
|
+
This site has no mail provider, so nothing below is sent. Choose one on
|
|
15
|
+
<a class="link" href="{{ adminUrl }}/settings/email">Settings › Email</a>.
|
|
16
|
+
</p>
|
|
17
|
+
{% endcall %}
|
|
18
|
+
{% endif %}
|
|
19
|
+
{% if not noticeEmail %}
|
|
20
|
+
{% call alert(color='warning', style='soft') %}
|
|
21
|
+
<p>
|
|
22
|
+
You have no email address, so there is nowhere to send these. Add one on
|
|
23
|
+
<a class="link" href="{{ accountUrl }}">your account</a>.
|
|
24
|
+
</p>
|
|
25
|
+
{% endcall %}
|
|
26
|
+
{% endif %}
|
|
27
|
+
|
|
28
|
+
<input type="hidden" name="{{ eventsField }}" value="{% for notice in notices %}{{ notice.name }}{% if not loop.last %} {% endif %}{% endfor %}" />
|
|
29
|
+
|
|
30
|
+
{% for notice in notices %}
|
|
31
|
+
<div class="mt-4 flex flex-col gap-1 border-t border-base-300 pt-4">
|
|
32
|
+
<h2 class="text-lg font-semibold">{{ notice.label }}</h2>
|
|
33
|
+
{{ field.checkbox('notice-' + notice.name, notice.onField, 'Email me about this',
|
|
34
|
+
checked=notice.on, hint=notice.description) }}
|
|
35
|
+
{% if notice.batched %}
|
|
36
|
+
{% call field.select('notice-mode-' + notice.name, notice.modeField, 'How often',
|
|
37
|
+
hint='A digest sends one message a window listing what happened, and nothing when nothing did.') %}
|
|
38
|
+
{% for choice in notice.modes %}
|
|
39
|
+
<option value="{{ choice.value }}"{% if choice.chosen %} selected{% endif %}>{{ choice.label }}</option>
|
|
40
|
+
{% endfor %}
|
|
41
|
+
{% endcall %}
|
|
42
|
+
{% endif %}
|
|
43
|
+
</div>
|
|
44
|
+
{% endfor %}
|
|
45
|
+
{% endblock %}
|
|
@@ -28,6 +28,12 @@
|
|
|
28
28
|
waiting in <code>data/queue.sqlite</code>. They are not exported: before moving the
|
|
29
29
|
site, wait until none are, and look again here.
|
|
30
30
|
</p>
|
|
31
|
+
{% if pending.webmentionChecks %}
|
|
32
|
+
<p id="export-pending-webmentions" class="max-w-prose">
|
|
33
|
+
{% if pending.webmentionChecks == 1 %}1 webmention check is{% else %}{{ pending.webmentionChecks }} webmention checks are{% endif %}
|
|
34
|
+
waiting in <code>data/webmention-checks.json</code>. They are not exported either.
|
|
35
|
+
</p>
|
|
36
|
+
{% endif %}
|
|
31
37
|
|
|
32
38
|
<div class="flex flex-col gap-6" data-job-region>
|
|
33
39
|
{% if job %}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
{% import "components/fields.njk" as field %}
|
|
5
5
|
{% from "components/button.njk" import button, buttonLink %}
|
|
6
6
|
{% from "components/card.njk" import card, cardActions %}
|
|
7
|
+
{% from "components/alert.njk" import alert %}
|
|
7
8
|
|
|
8
9
|
{% block title %}{{ heading }}{% endblock %}
|
|
9
10
|
|
|
@@ -36,6 +37,14 @@
|
|
|
36
37
|
</li>
|
|
37
38
|
</ul>
|
|
38
39
|
|
|
40
|
+
{% if found.unreadable %}
|
|
41
|
+
<div class="mt-4">
|
|
42
|
+
{% call alert(color='warning', style='soft') %}
|
|
43
|
+
<span>{{ found.unreadable }}</span>
|
|
44
|
+
{% endcall %}
|
|
45
|
+
</div>
|
|
46
|
+
{% endif %}
|
|
47
|
+
|
|
39
48
|
{% if found.anything %}
|
|
40
49
|
<p class="mt-4">
|
|
41
50
|
Erasing cannot be undone. A copy of a comment file in git history or in a
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{% extends "layouts/shell.njk" %}
|
|
14
14
|
{% import "components/fields.njk" as field %}
|
|
15
15
|
{% from "components/alert.njk" import alert %}
|
|
16
|
-
{% from "components/badge.njk" import badge
|
|
16
|
+
{% from "components/badge.njk" import badge %}
|
|
17
17
|
{% from "components/button.njk" import button %}
|
|
18
18
|
{% from "components/card.njk" import card, cardActions %}
|
|
19
19
|
{% from "components/upload.njk" import uploadControl %}
|
|
@@ -171,84 +171,13 @@
|
|
|
171
171
|
</form>
|
|
172
172
|
{% endcall %}
|
|
173
173
|
|
|
174
|
-
{
|
|
175
|
-
|
|
176
|
-
an address, or without a mail provider on Settings > Email, every one of
|
|
177
|
-
them could be on and the site would still send this person nothing. The
|
|
178
|
-
lines below say which is missing where the panel would have been, rather
|
|
179
|
-
than letting it vanish without explanation. #}
|
|
180
|
-
{% if account.email and mailConfigured %}
|
|
181
|
-
{% call card(title='Email ' + account.username + ' about') %}
|
|
182
|
-
|
|
183
|
-
<p class="text-sm">
|
|
184
|
-
What this site writes to {{ account.username }} at <code>{{ account.email }}</code>.
|
|
185
|
-
</p>
|
|
186
|
-
|
|
187
|
-
{# One form per switch, not one form with a checkbox each: a browser sends
|
|
188
|
-
no field for an unticked box, so a single form could not tell "turned
|
|
189
|
-
this off" from "left it alone". Adding a notice is one entry in the
|
|
190
|
-
registry and no change here. #}
|
|
191
|
-
{% for notice in account.notifications %}
|
|
192
|
-
<div class="flex flex-col gap-2 border-t border-base-300 pt-4">
|
|
193
|
-
<h3 class="font-semibold">{{ notice.label }}</h3>
|
|
194
|
-
<p class="text-sm">{{ notice.description }}</p>
|
|
195
|
-
|
|
196
|
-
<form class="flex flex-wrap items-center gap-2" method="post" action="{{ userNotificationsUrl }}">
|
|
197
|
-
<input type="hidden" name="csrf_token" value="{{ csrfToken }}" />
|
|
198
|
-
<input type="hidden" name="{{ fields.userId }}" value="{{ account.id }}" />
|
|
199
|
-
<input type="hidden" name="{{ fields.event }}" value="{{ notice.name }}" />
|
|
200
|
-
<input type="hidden" name="{{ fields.on }}" value="{% if notice.on %}{% else %}1{% endif %}" />
|
|
201
|
-
{% if notice.on %}
|
|
202
|
-
{{ status('active', 'On') }}
|
|
203
|
-
{{ button('Turn off', type='submit', style='outline', size='xs') }}
|
|
204
|
-
{% else %}
|
|
205
|
-
{{ status('hidden', 'Off') }}
|
|
206
|
-
{{ button('Turn on', type='submit', style='outline', size='xs') }}
|
|
207
|
-
{% endif %}
|
|
208
|
-
</form>
|
|
209
|
-
|
|
210
|
-
{# And, for a notice the registry says can be batched, how often it
|
|
211
|
-
should arrive. A second form because a select needs a Save beside
|
|
212
|
-
it and the switch above is a button; the registry decides which
|
|
213
|
-
notices get one. #}
|
|
214
|
-
{% if notice.batched %}
|
|
215
|
-
<form class="flex flex-wrap items-end gap-2" method="post" action="{{ userNotificationModeUrl }}">
|
|
216
|
-
<input type="hidden" name="csrf_token" value="{{ csrfToken }}" />
|
|
217
|
-
<input type="hidden" name="{{ fields.userId }}" value="{{ account.id }}" />
|
|
218
|
-
<input type="hidden" name="{{ fields.event }}" value="{{ notice.name }}" />
|
|
219
|
-
{% call field.select('notice-mode-' + notice.name, fields.mode, 'How often') %}
|
|
220
|
-
{% for choice in notice.modes %}
|
|
221
|
-
<option value="{{ choice.value }}"{% if choice.chosen %} selected{% endif %}>{{ choice.label }}</option>
|
|
222
|
-
{% endfor %}
|
|
223
|
-
{% endcall %}
|
|
224
|
-
<div class="pb-1">{{ button('Save', type='submit') }}</div>
|
|
225
|
-
</form>
|
|
226
|
-
<p class="text-sm">
|
|
227
|
-
On an hourly or a daily digest nothing is sent as they arrive;
|
|
228
|
-
instead one message a window lists everything still waiting, and
|
|
229
|
-
no message goes at all when nothing is.
|
|
230
|
-
</p>
|
|
231
|
-
{% endif %}
|
|
232
|
-
</div>
|
|
233
|
-
{% endfor %}
|
|
234
|
-
{% endcall %}
|
|
235
|
-
{% else %}
|
|
236
|
-
{% call card(title='Email ' + account.username + ' about') %}
|
|
237
|
-
|
|
238
|
-
{% if not mailConfigured %}
|
|
239
|
-
<p class="text-sm">
|
|
240
|
-
Nothing, while this site has no mail provider: there is nothing to send
|
|
241
|
-
with. Choose one on <a class="link" href="{{ adminUrl }}/settings/email">Settings
|
|
242
|
-
› Email</a> and what to send comes back here.
|
|
243
|
-
</p>
|
|
244
|
-
{% else %}
|
|
174
|
+
{% if account.you %}
|
|
175
|
+
{% call card(title='Notifications') %}
|
|
245
176
|
<p class="text-sm">
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
address and what to send comes back here.
|
|
177
|
+
What this site emails you about, and how often, is chosen on
|
|
178
|
+
<a class="link" href="{{ notificationsUrl }}">Settings › Notifications</a>.
|
|
249
179
|
</p>
|
|
250
|
-
{%
|
|
251
|
-
{% endcall %}
|
|
180
|
+
{% endcall %}
|
|
252
181
|
{% endif %}
|
|
253
182
|
|
|
254
183
|
{# Only on your own page: it asks for the current password, so it is about
|