@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.
Files changed (372) hide show
  1. package/admin/pages/settings/discussion.njk +22 -2
  2. package/admin/pages/settings/notifications.njk +45 -0
  3. package/admin/pages/tools/export.njk +6 -0
  4. package/admin/pages/tools/personal-data.njk +9 -0
  5. package/admin/pages/users/edit.njk +6 -77
  6. package/admin/static/admin.css +811 -1409
  7. package/admin/static/editor.js +26 -26
  8. package/dist/admin/comments.d.ts.map +1 -1
  9. package/dist/admin/comments.js +3 -0
  10. package/dist/admin/comments.js.map +1 -1
  11. package/dist/admin/federation.d.ts.map +1 -1
  12. package/dist/admin/federation.js +2 -1
  13. package/dist/admin/federation.js.map +1 -1
  14. package/dist/admin/indieauth-consent.js +1 -1
  15. package/dist/admin/indieauth-consent.js.map +1 -1
  16. package/dist/admin/menu.d.ts.map +1 -1
  17. package/dist/admin/menu.js +2 -1
  18. package/dist/admin/menu.js.map +1 -1
  19. package/dist/admin/personal-data.d.ts.map +1 -1
  20. package/dist/admin/personal-data.js +11 -2
  21. package/dist/admin/personal-data.js.map +1 -1
  22. package/dist/admin/settings-discussion.d.ts.map +1 -1
  23. package/dist/admin/settings-discussion.js +1 -0
  24. package/dist/admin/settings-discussion.js.map +1 -1
  25. package/dist/admin/settings-fields.d.ts.map +1 -1
  26. package/dist/admin/settings-fields.js +2 -0
  27. package/dist/admin/settings-fields.js.map +1 -1
  28. package/dist/admin/settings-notifications.d.ts +15 -0
  29. package/dist/admin/settings-notifications.d.ts.map +1 -0
  30. package/dist/admin/settings-notifications.js +66 -0
  31. package/dist/admin/settings-notifications.js.map +1 -0
  32. package/dist/admin/settings-page.d.ts +4 -3
  33. package/dist/admin/settings-page.d.ts.map +1 -1
  34. package/dist/admin/settings-page.js +4 -2
  35. package/dist/admin/settings-page.js.map +1 -1
  36. package/dist/admin/settings-pages.d.ts +2 -2
  37. package/dist/admin/settings-pages.d.ts.map +1 -1
  38. package/dist/admin/settings-pages.js +4 -2
  39. package/dist/admin/settings-pages.js.map +1 -1
  40. package/dist/admin/templates.d.ts +1 -0
  41. package/dist/admin/templates.d.ts.map +1 -1
  42. package/dist/admin/templates.js +1 -0
  43. package/dist/admin/templates.js.map +1 -1
  44. package/dist/admin/users.d.ts +0 -5
  45. package/dist/admin/users.d.ts.map +1 -1
  46. package/dist/admin/users.js +3 -51
  47. package/dist/admin/users.js.map +1 -1
  48. package/dist/cli/export.d.ts.map +1 -1
  49. package/dist/cli/export.js +5 -1
  50. package/dist/cli/export.js.map +1 -1
  51. package/dist/cms/app.d.ts.map +1 -1
  52. package/dist/cms/app.js +2 -0
  53. package/dist/cms/app.js.map +1 -1
  54. package/dist/cms/create.d.ts +2 -2
  55. package/dist/cms/services.d.ts +4 -0
  56. package/dist/cms/services.d.ts.map +1 -1
  57. package/dist/cms/services.js +42 -11
  58. package/dist/cms/services.js.map +1 -1
  59. package/dist/comments/conversation.d.ts +6 -5
  60. package/dist/comments/conversation.d.ts.map +1 -1
  61. package/dist/comments/conversation.js +2 -2
  62. package/dist/comments/index.d.ts +1 -1
  63. package/dist/comments/index.d.ts.map +1 -1
  64. package/dist/comments/index.js.map +1 -1
  65. package/dist/comments/intake.d.ts +32 -12
  66. package/dist/comments/intake.d.ts.map +1 -1
  67. package/dist/comments/intake.js +50 -17
  68. package/dist/comments/intake.js.map +1 -1
  69. package/dist/comments/migrations.d.ts.map +1 -1
  70. package/dist/comments/migrations.js +16 -2
  71. package/dist/comments/migrations.js.map +1 -1
  72. package/dist/comments/records.d.ts +24 -11
  73. package/dist/comments/records.d.ts.map +1 -1
  74. package/dist/comments/records.js +168 -63
  75. package/dist/comments/records.js.map +1 -1
  76. package/dist/config-entry.d.ts +1 -1
  77. package/dist/config-entry.d.ts.map +1 -1
  78. package/dist/config.d.ts +47 -0
  79. package/dist/config.d.ts.map +1 -1
  80. package/dist/config.js +16 -2
  81. package/dist/config.js.map +1 -1
  82. package/dist/content/image-tags.js +2 -2
  83. package/dist/content/image-tags.js.map +1 -1
  84. package/dist/content/sanitize.d.ts.map +1 -1
  85. package/dist/content/sanitize.js +27 -13
  86. package/dist/content/sanitize.js.map +1 -1
  87. package/dist/content/search.d.ts.map +1 -1
  88. package/dist/content/search.js +1 -28
  89. package/dist/content/search.js.map +1 -1
  90. package/dist/content/sqlite/catalog.js +3 -0
  91. package/dist/content/sqlite/catalog.js.map +1 -1
  92. package/dist/content/sqlite/schema.d.ts.map +1 -1
  93. package/dist/content/sqlite/schema.js +13 -0
  94. package/dist/content/sqlite/schema.js.map +1 -1
  95. package/dist/content/store.d.ts +2 -0
  96. package/dist/content/store.d.ts.map +1 -1
  97. package/dist/content/store.js.map +1 -1
  98. package/dist/export/site-export.d.ts +1 -0
  99. package/dist/export/site-export.d.ts.map +1 -1
  100. package/dist/export/site-export.js +2 -0
  101. package/dist/export/site-export.js.map +1 -1
  102. package/dist/export/site-import.d.ts.map +1 -1
  103. package/dist/export/site-import.js +1 -0
  104. package/dist/export/site-import.js.map +1 -1
  105. package/dist/exports.d.ts +1 -1
  106. package/dist/exports.d.ts.map +1 -1
  107. package/dist/exports.js.map +1 -1
  108. package/dist/federation/activity-notices.d.ts +22 -0
  109. package/dist/federation/activity-notices.d.ts.map +1 -0
  110. package/dist/federation/activity-notices.js +119 -0
  111. package/dist/federation/activity-notices.js.map +1 -0
  112. package/dist/federation/backfill.d.ts +2 -0
  113. package/dist/federation/backfill.d.ts.map +1 -1
  114. package/dist/federation/backfill.js +3 -1
  115. package/dist/federation/backfill.js.map +1 -1
  116. package/dist/federation/federation.d.ts +16 -0
  117. package/dist/federation/federation.d.ts.map +1 -1
  118. package/dist/federation/federation.js +5 -2
  119. package/dist/federation/federation.js.map +1 -1
  120. package/dist/federation/inbox.d.ts +8 -7
  121. package/dist/federation/inbox.d.ts.map +1 -1
  122. package/dist/federation/inbox.js +46 -12
  123. package/dist/federation/inbox.js.map +1 -1
  124. package/dist/federation/profiles.d.ts.map +1 -1
  125. package/dist/federation/profiles.js +5 -1
  126. package/dist/federation/profiles.js.map +1 -1
  127. package/dist/federation/public-loaders.d.ts +14 -0
  128. package/dist/federation/public-loaders.d.ts.map +1 -0
  129. package/dist/federation/public-loaders.js +41 -0
  130. package/dist/federation/public-loaders.js.map +1 -0
  131. package/dist/federation/quotes.d.ts +5 -2
  132. package/dist/federation/quotes.d.ts.map +1 -1
  133. package/dist/federation/quotes.js +9 -5
  134. package/dist/federation/quotes.js.map +1 -1
  135. package/dist/federation/reply-review.d.ts +21 -0
  136. package/dist/federation/reply-review.d.ts.map +1 -0
  137. package/dist/federation/reply-review.js +152 -0
  138. package/dist/federation/reply-review.js.map +1 -0
  139. package/dist/files/data-files.d.ts +2 -0
  140. package/dist/files/data-files.d.ts.map +1 -1
  141. package/dist/files/data-files.js +12 -0
  142. package/dist/files/data-files.js.map +1 -1
  143. package/dist/following/list.d.ts.map +1 -1
  144. package/dist/following/list.js +4 -3
  145. package/dist/following/list.js.map +1 -1
  146. package/dist/forms/protection.d.ts +8 -0
  147. package/dist/forms/protection.d.ts.map +1 -1
  148. package/dist/forms/protection.js +8 -0
  149. package/dist/forms/protection.js.map +1 -1
  150. package/dist/indieauth/client.js +2 -2
  151. package/dist/indieauth/client.js.map +1 -1
  152. package/dist/mcp/endpoint.d.ts.map +1 -1
  153. package/dist/mcp/endpoint.js +3 -0
  154. package/dist/mcp/endpoint.js.map +1 -1
  155. package/dist/mcp/inspect/remote.js +2 -2
  156. package/dist/mcp/inspect/remote.js.map +1 -1
  157. package/dist/mcp/profile.d.ts +3 -0
  158. package/dist/mcp/profile.d.ts.map +1 -0
  159. package/dist/mcp/profile.js +143 -0
  160. package/dist/mcp/profile.js.map +1 -0
  161. package/dist/mcp/tools.d.ts +1 -1
  162. package/dist/mcp/tools.d.ts.map +1 -1
  163. package/dist/mcp/tools.js.map +1 -1
  164. package/dist/notifications/activity.d.ts +19 -0
  165. package/dist/notifications/activity.d.ts.map +1 -0
  166. package/dist/notifications/activity.js +48 -0
  167. package/dist/notifications/activity.js.map +1 -0
  168. package/dist/notifications/comments.d.ts +14 -5
  169. package/dist/notifications/comments.d.ts.map +1 -1
  170. package/dist/notifications/comments.js +59 -11
  171. package/dist/notifications/comments.js.map +1 -1
  172. package/dist/notifications/digest.d.ts +8 -39
  173. package/dist/notifications/digest.d.ts.map +1 -1
  174. package/dist/notifications/digest.js +95 -65
  175. package/dist/notifications/digest.js.map +1 -1
  176. package/dist/notifications/index.d.ts +5 -1
  177. package/dist/notifications/index.d.ts.map +1 -1
  178. package/dist/notifications/index.js +3 -1
  179. package/dist/notifications/index.js.map +1 -1
  180. package/dist/notifications/notice-log.d.ts +49 -0
  181. package/dist/notifications/notice-log.d.ts.map +1 -0
  182. package/dist/notifications/notice-log.js +109 -0
  183. package/dist/notifications/notice-log.js.map +1 -0
  184. package/dist/privacy/erase.d.ts +6 -1
  185. package/dist/privacy/erase.d.ts.map +1 -1
  186. package/dist/privacy/erase.js +24 -9
  187. package/dist/privacy/erase.js.map +1 -1
  188. package/dist/privacy/retention.d.ts.map +1 -1
  189. package/dist/privacy/retention.js +7 -2
  190. package/dist/privacy/retention.js.map +1 -1
  191. package/dist/site/fediverse-replies.d.ts +4 -0
  192. package/dist/site/fediverse-replies.d.ts.map +1 -0
  193. package/dist/site/fediverse-replies.js +5 -0
  194. package/dist/site/fediverse-replies.js.map +1 -0
  195. package/dist/site/namespace.d.ts +1 -0
  196. package/dist/site/namespace.d.ts.map +1 -1
  197. package/dist/site/namespace.js +8 -0
  198. package/dist/site/namespace.js.map +1 -1
  199. package/dist/site/notification-preferences.d.ts +30 -42
  200. package/dist/site/notification-preferences.d.ts.map +1 -1
  201. package/dist/site/notification-preferences.js +72 -41
  202. package/dist/site/notification-preferences.js.map +1 -1
  203. package/dist/site/users.d.ts +26 -3
  204. package/dist/site/users.d.ts.map +1 -1
  205. package/dist/site/users.js +35 -1
  206. package/dist/site/users.js.map +1 -1
  207. package/dist/store/admin-store.d.ts +1 -1
  208. package/dist/store/admin-store.d.ts.map +1 -1
  209. package/dist/store/admin-store.js +1 -1
  210. package/dist/store/admin-store.js.map +1 -1
  211. package/dist/store/comments.d.ts +21 -4
  212. package/dist/store/comments.d.ts.map +1 -1
  213. package/dist/store/comments.js +48 -2
  214. package/dist/store/comments.js.map +1 -1
  215. package/dist/store/inbox-replies.d.ts +4 -0
  216. package/dist/store/inbox-replies.d.ts.map +1 -1
  217. package/dist/store/inbox-replies.js +9 -0
  218. package/dist/store/inbox-replies.js.map +1 -1
  219. package/dist/store/schema.d.ts.map +1 -1
  220. package/dist/store/schema.js +4 -0
  221. package/dist/store/schema.js.map +1 -1
  222. package/dist/util/html-entities.d.ts +5 -0
  223. package/dist/util/html-entities.d.ts.map +1 -0
  224. package/dist/util/html-entities.js +2239 -0
  225. package/dist/util/html-entities.js.map +1 -0
  226. package/dist/util/html-tree.d.ts +13 -6
  227. package/dist/util/html-tree.d.ts.map +1 -1
  228. package/dist/util/html-tree.js +171 -44
  229. package/dist/util/html-tree.js.map +1 -1
  230. package/dist/util/html.d.ts +7 -0
  231. package/dist/util/html.d.ts.map +1 -1
  232. package/dist/util/html.js +68 -19
  233. package/dist/util/html.js.map +1 -1
  234. package/dist/util/public-address.d.ts +11 -2
  235. package/dist/util/public-address.d.ts.map +1 -1
  236. package/dist/util/public-address.js +86 -13
  237. package/dist/util/public-address.js.map +1 -1
  238. package/dist/util/queue.d.ts +5 -0
  239. package/dist/util/queue.d.ts.map +1 -1
  240. package/dist/util/queue.js +18 -0
  241. package/dist/util/queue.js.map +1 -1
  242. package/dist/util/url.d.ts +11 -0
  243. package/dist/util/url.d.ts.map +1 -1
  244. package/dist/util/url.js +23 -0
  245. package/dist/util/url.js.map +1 -1
  246. package/dist/web/activity-folding.d.ts.map +1 -1
  247. package/dist/web/activity-folding.js +7 -3
  248. package/dist/web/activity-folding.js.map +1 -1
  249. package/dist/web/bounded-body.d.ts +12 -0
  250. package/dist/web/bounded-body.d.ts.map +1 -0
  251. package/dist/web/bounded-body.js +55 -0
  252. package/dist/web/bounded-body.js.map +1 -0
  253. package/dist/web/comment-routes.d.ts.map +1 -1
  254. package/dist/web/comment-routes.js +8 -2
  255. package/dist/web/comment-routes.js.map +1 -1
  256. package/dist/web/contact-routes.d.ts.map +1 -1
  257. package/dist/web/contact-routes.js +7 -1
  258. package/dist/web/contact-routes.js.map +1 -1
  259. package/dist/web/conversation-gather.d.ts.map +1 -1
  260. package/dist/web/conversation-gather.js +9 -3
  261. package/dist/web/conversation-gather.js.map +1 -1
  262. package/dist/web/conversation.d.ts.map +1 -1
  263. package/dist/web/conversation.js +15 -7
  264. package/dist/web/conversation.js.map +1 -1
  265. package/dist/web/document-render.js +6 -2
  266. package/dist/web/document-render.js.map +1 -1
  267. package/dist/web/env.d.ts +6 -0
  268. package/dist/web/env.d.ts.map +1 -1
  269. package/dist/web/federation-routes.d.ts +1 -1
  270. package/dist/web/federation-routes.d.ts.map +1 -1
  271. package/dist/web/federation-routes.js +2 -0
  272. package/dist/web/federation-routes.js.map +1 -1
  273. package/dist/web/markdown-chrome.d.ts.map +1 -1
  274. package/dist/web/markdown-chrome.js +8 -2
  275. package/dist/web/markdown-chrome.js.map +1 -1
  276. package/dist/web/markdown-page.d.ts +3 -1
  277. package/dist/web/markdown-page.d.ts.map +1 -1
  278. package/dist/web/markdown-page.js +2 -1
  279. package/dist/web/markdown-page.js.map +1 -1
  280. package/dist/web/markdown-representation.d.ts.map +1 -1
  281. package/dist/web/markdown-representation.js +6 -10
  282. package/dist/web/markdown-representation.js.map +1 -1
  283. package/dist/web/notification-routes.d.ts.map +1 -1
  284. package/dist/web/notification-routes.js +5 -1
  285. package/dist/web/notification-routes.js.map +1 -1
  286. package/dist/web/pingback-routes.d.ts +2 -1
  287. package/dist/web/pingback-routes.d.ts.map +1 -1
  288. package/dist/web/pingback-routes.js +59 -34
  289. package/dist/web/pingback-routes.js.map +1 -1
  290. package/dist/web/render.d.ts +2 -1
  291. package/dist/web/render.d.ts.map +1 -1
  292. package/dist/web/render.js.map +1 -1
  293. package/dist/web/request.d.ts +0 -5
  294. package/dist/web/request.d.ts.map +1 -1
  295. package/dist/web/request.js +2 -13
  296. package/dist/web/request.js.map +1 -1
  297. package/dist/web/routes.d.ts.map +1 -1
  298. package/dist/web/routes.js +5 -3
  299. package/dist/web/routes.js.map +1 -1
  300. package/dist/web/site-view.d.ts +15 -0
  301. package/dist/web/site-view.d.ts.map +1 -1
  302. package/dist/web/site-view.js +1 -1
  303. package/dist/web/site-view.js.map +1 -1
  304. package/dist/web/throttle.d.ts +6 -0
  305. package/dist/web/throttle.d.ts.map +1 -1
  306. package/dist/web/throttle.js +1 -1
  307. package/dist/web/throttle.js.map +1 -1
  308. package/dist/web/webmention-routes.d.ts +14 -2
  309. package/dist/web/webmention-routes.d.ts.map +1 -1
  310. package/dist/web/webmention-routes.js +65 -19
  311. package/dist/web/webmention-routes.js.map +1 -1
  312. package/dist/webmention/checks.d.ts +43 -0
  313. package/dist/webmention/checks.d.ts.map +1 -0
  314. package/dist/webmention/checks.js +103 -0
  315. package/dist/webmention/checks.js.map +1 -0
  316. package/dist/webmention/discovery.js +2 -2
  317. package/dist/webmention/discovery.js.map +1 -1
  318. package/dist/webmention/endpoint.d.ts +2 -0
  319. package/dist/webmention/endpoint.d.ts.map +1 -1
  320. package/dist/webmention/endpoint.js +2 -0
  321. package/dist/webmention/endpoint.js.map +1 -1
  322. package/dist/webmention/fetch-public.d.ts +5 -0
  323. package/dist/webmention/fetch-public.d.ts.map +1 -1
  324. package/dist/webmention/fetch-public.js +19 -1
  325. package/dist/webmention/fetch-public.js.map +1 -1
  326. package/dist/webmention/index.d.ts +2 -1
  327. package/dist/webmention/index.d.ts.map +1 -1
  328. package/dist/webmention/index.js.map +1 -1
  329. package/dist/webmention/links.d.ts.map +1 -1
  330. package/dist/webmention/links.js +4 -11
  331. package/dist/webmention/links.js.map +1 -1
  332. package/dist/webmention/microformats.d.ts +32 -9
  333. package/dist/webmention/microformats.d.ts.map +1 -1
  334. package/dist/webmention/microformats.js +341 -110
  335. package/dist/webmention/microformats.js.map +1 -1
  336. package/dist/webmention/pingback.d.ts +7 -0
  337. package/dist/webmention/pingback.d.ts.map +1 -1
  338. package/dist/webmention/pingback.js +108 -34
  339. package/dist/webmention/pingback.js.map +1 -1
  340. package/dist/webmention/receive.d.ts +28 -21
  341. package/dist/webmention/receive.d.ts.map +1 -1
  342. package/dist/webmention/receive.js +289 -65
  343. package/dist/webmention/receive.js.map +1 -1
  344. package/dist/webmention/reply-context/feed.js +2 -2
  345. package/dist/webmention/reply-context/feed.js.map +1 -1
  346. package/dist/webmention/reply-context/page.js +2 -2
  347. package/dist/webmention/reply-context/page.js.map +1 -1
  348. package/dist/webmention/service.d.ts +51 -12
  349. package/dist/webmention/service.d.ts.map +1 -1
  350. package/dist/webmention/service.js +202 -38
  351. package/dist/webmention/service.js.map +1 -1
  352. package/dist/webmention/syndication.d.ts +2 -0
  353. package/dist/webmention/syndication.d.ts.map +1 -1
  354. package/dist/webmention/syndication.js +57 -20
  355. package/dist/webmention/syndication.js.map +1 -1
  356. package/package.json +5 -5
  357. package/themes/default/mail/comment-digest.html.njk +28 -5
  358. package/themes/default/mail/comment-digest.subject.njk +3 -2
  359. package/themes/default/mail/comment-digest.txt.njk +42 -13
  360. package/themes/default/mail/comment-pending.html.njk +20 -0
  361. package/themes/default/mail/comment-pending.txt.njk +31 -4
  362. package/themes/default/mail/comment-published.html.njk +18 -0
  363. package/themes/default/mail/comment-published.subject.njk +1 -0
  364. package/themes/default/mail/comment-published.txt.njk +18 -0
  365. package/themes/default/mail/comment-reply.txt.njk +1 -1
  366. package/themes/default/mail/contact-message.txt.njk +4 -2
  367. package/themes/default/mail/fediverse-notice.html.njk +15 -0
  368. package/themes/default/mail/fediverse-notice.subject.njk +1 -0
  369. package/themes/default/mail/fediverse-notice.txt.njk +22 -0
  370. package/themes/default/mail/password-changed.txt.njk +1 -1
  371. package/themes/default/mail/password-reset.txt.njk +1 -1
  372. 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 and keep being shown either way:
32
- a remote server sends those, and nothing here can stop it.
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 &rsaquo; 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, status %}
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
- {# Only once there is both somewhere to write to and something to write
175
- with. These switches decide what is sent to the address above, so without
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
- &rsaquo; 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
- Nothing, while the box above is empty: there is nowhere to write to.
247
- Give {% if account.you %}yourself{% else %}this account{% endif %} an
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 &rsaquo; Notifications</a>.
249
179
  </p>
250
- {% endif %}
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