@geekity/cms 0.45.0 → 0.47.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 (158) hide show
  1. package/admin/pages/federation/followers.njk +1 -1
  2. package/admin/pages/settings/discussion.njk +78 -0
  3. package/admin/pages/users/edit.njk +1 -1
  4. package/admin/static/editor.js +24 -24
  5. package/dist/admin/federation.d.ts +1 -1
  6. package/dist/admin/federation.d.ts.map +1 -1
  7. package/dist/admin/federation.js +1 -1
  8. package/dist/admin/federation.js.map +1 -1
  9. package/dist/admin/index.d.ts +1 -1
  10. package/dist/admin/index.d.ts.map +1 -1
  11. package/dist/admin/index.js +1 -1
  12. package/dist/admin/index.js.map +1 -1
  13. package/dist/admin/settings-discussion.d.ts +9 -0
  14. package/dist/admin/settings-discussion.d.ts.map +1 -1
  15. package/dist/admin/settings-discussion.js +147 -2
  16. package/dist/admin/settings-discussion.js.map +1 -1
  17. package/dist/cli/help.js +2 -2
  18. package/dist/cms/app.d.ts.map +1 -1
  19. package/dist/cms/app.js +4 -1
  20. package/dist/cms/app.js.map +1 -1
  21. package/dist/cms/boot.d.ts.map +1 -1
  22. package/dist/cms/boot.js +4 -3
  23. package/dist/cms/boot.js.map +1 -1
  24. package/dist/cms/services.d.ts.map +1 -1
  25. package/dist/cms/services.js +11 -0
  26. package/dist/cms/services.js.map +1 -1
  27. package/dist/comments/form.d.ts +10 -0
  28. package/dist/comments/form.d.ts.map +1 -1
  29. package/dist/comments/form.js +2 -1
  30. package/dist/comments/form.js.map +1 -1
  31. package/dist/comments/hcaptcha.d.ts +26 -0
  32. package/dist/comments/hcaptcha.d.ts.map +1 -0
  33. package/dist/comments/hcaptcha.js +118 -0
  34. package/dist/comments/hcaptcha.js.map +1 -0
  35. package/dist/comments/index.d.ts +3 -0
  36. package/dist/comments/index.d.ts.map +1 -1
  37. package/dist/comments/index.js +1 -0
  38. package/dist/comments/index.js.map +1 -1
  39. package/dist/comments/intake.d.ts +2 -0
  40. package/dist/comments/intake.d.ts.map +1 -1
  41. package/dist/comments/intake.js +1 -1
  42. package/dist/comments/intake.js.map +1 -1
  43. package/dist/comments/page-form.d.ts +3 -1
  44. package/dist/comments/page-form.d.ts.map +1 -1
  45. package/dist/comments/page-form.js +4 -3
  46. package/dist/comments/page-form.js.map +1 -1
  47. package/dist/comments/submission.d.ts +3 -0
  48. package/dist/comments/submission.d.ts.map +1 -1
  49. package/dist/comments/submission.js +7 -0
  50. package/dist/comments/submission.js.map +1 -1
  51. package/dist/config.d.ts +20 -0
  52. package/dist/config.d.ts.map +1 -1
  53. package/dist/config.js +1 -0
  54. package/dist/config.js.map +1 -1
  55. package/dist/contact/form.d.ts +8 -0
  56. package/dist/contact/form.d.ts.map +1 -1
  57. package/dist/contact/form.js +2 -1
  58. package/dist/contact/form.js.map +1 -1
  59. package/dist/contact/submission.d.ts +3 -0
  60. package/dist/contact/submission.d.ts.map +1 -1
  61. package/dist/contact/submission.js +16 -2
  62. package/dist/contact/submission.js.map +1 -1
  63. package/dist/exports.d.ts +1 -1
  64. package/dist/exports.d.ts.map +1 -1
  65. package/dist/exports.js.map +1 -1
  66. package/dist/federation/actor.d.ts.map +1 -1
  67. package/dist/federation/actor.js +2 -1
  68. package/dist/federation/actor.js.map +1 -1
  69. package/dist/federation/forgotten-deliveries.d.ts +15 -0
  70. package/dist/federation/forgotten-deliveries.d.ts.map +1 -0
  71. package/dist/federation/forgotten-deliveries.js +16 -0
  72. package/dist/federation/forgotten-deliveries.js.map +1 -0
  73. package/dist/federation/retry-job.d.ts.map +1 -1
  74. package/dist/federation/retry-job.js +4 -2
  75. package/dist/federation/retry-job.js.map +1 -1
  76. package/dist/forms/challenge.d.ts +86 -0
  77. package/dist/forms/challenge.d.ts.map +1 -0
  78. package/dist/forms/challenge.js +44 -0
  79. package/dist/forms/challenge.js.map +1 -0
  80. package/dist/mcp/inspect/schemas.d.ts +3 -3
  81. package/dist/mcp/repair/retry.js +2 -2
  82. package/dist/mcp/repair/retry.js.map +1 -1
  83. package/dist/settings/hcaptcha.d.ts +10 -0
  84. package/dist/settings/hcaptcha.d.ts.map +1 -0
  85. package/dist/settings/hcaptcha.js +38 -0
  86. package/dist/settings/hcaptcha.js.map +1 -0
  87. package/dist/settings/names.d.ts +1 -1
  88. package/dist/settings/names.d.ts.map +1 -1
  89. package/dist/settings/names.js +1 -0
  90. package/dist/settings/names.js.map +1 -1
  91. package/dist/settings/registry.d.ts.map +1 -1
  92. package/dist/settings/registry.js +2 -1
  93. package/dist/settings/registry.js.map +1 -1
  94. package/dist/site/authors.d.ts +5 -1
  95. package/dist/site/authors.d.ts.map +1 -1
  96. package/dist/site/authors.js +4 -1
  97. package/dist/site/authors.js.map +1 -1
  98. package/dist/site/bio.d.ts +5 -0
  99. package/dist/site/bio.d.ts.map +1 -0
  100. package/dist/site/bio.js +32 -0
  101. package/dist/site/bio.js.map +1 -0
  102. package/dist/store/deliveries.d.ts +18 -2
  103. package/dist/store/deliveries.d.ts.map +1 -1
  104. package/dist/store/deliveries.js +35 -4
  105. package/dist/store/deliveries.js.map +1 -1
  106. package/dist/store/queue-database.d.ts +6 -0
  107. package/dist/store/queue-database.d.ts.map +1 -1
  108. package/dist/store/queue-database.js +34 -7
  109. package/dist/store/queue-database.js.map +1 -1
  110. package/dist/web/comment-routes.d.ts.map +1 -1
  111. package/dist/web/comment-routes.js +6 -3
  112. package/dist/web/comment-routes.js.map +1 -1
  113. package/dist/web/contact-routes.d.ts.map +1 -1
  114. package/dist/web/contact-routes.js +5 -1
  115. package/dist/web/contact-routes.js.map +1 -1
  116. package/dist/web/document-render.d.ts.map +1 -1
  117. package/dist/web/document-render.js +12 -1
  118. package/dist/web/document-render.js.map +1 -1
  119. package/dist/web/env.d.ts +6 -0
  120. package/dist/web/env.d.ts.map +1 -1
  121. package/dist/web/markdown-chrome.d.ts.map +1 -1
  122. package/dist/web/markdown-chrome.js +27 -4
  123. package/dist/web/markdown-chrome.js.map +1 -1
  124. package/dist/web/markdown-environment.d.ts +3 -0
  125. package/dist/web/markdown-environment.d.ts.map +1 -1
  126. package/dist/web/markdown-environment.js +31 -7
  127. package/dist/web/markdown-environment.js.map +1 -1
  128. package/dist/web/markdown-representation.d.ts.map +1 -1
  129. package/dist/web/markdown-representation.js +49 -9
  130. package/dist/web/markdown-representation.js.map +1 -1
  131. package/dist/web/page-sources.d.ts.map +1 -1
  132. package/dist/web/page-sources.js +3 -1
  133. package/dist/web/page-sources.js.map +1 -1
  134. package/dist/web/render-scope.d.ts +3 -0
  135. package/dist/web/render-scope.d.ts.map +1 -1
  136. package/dist/web/render-scope.js +3 -0
  137. package/dist/web/render-scope.js.map +1 -1
  138. package/dist/web/render.d.ts +19 -0
  139. package/dist/web/render.d.ts.map +1 -1
  140. package/dist/web/render.js.map +1 -1
  141. package/dist/web/theme-templates.d.ts +3 -1
  142. package/dist/web/theme-templates.d.ts.map +1 -1
  143. package/dist/web/theme-templates.js +18 -7
  144. package/dist/web/theme-templates.js.map +1 -1
  145. package/package.json +10 -10
  146. package/templates/site/content/pages/privacy.md +15 -1
  147. package/themes/default/layouts/base.njk +3 -0
  148. package/themes/default/partials/bio.njk +2 -2
  149. package/themes/default/partials/comment-form.njk +4 -1
  150. package/themes/default/partials/contact-form.njk +4 -1
  151. package/themes/default/partials/form-challenge.njk +9 -0
  152. package/themes/default/partials/jsonld.njk +1 -1
  153. package/themes/default/partials/markdown-bio.md.njk +20 -0
  154. package/themes/default/partials/markdown-header.md.njk +7 -12
  155. package/themes/default/partials/markdown-post-list.md.njk +15 -0
  156. package/themes/default/src/style.css +13 -0
  157. package/themes/default/static/hcaptcha.js +31 -0
  158. package/themes/default/static/style.css +16 -0
@@ -252,7 +252,7 @@
252
252
  <td>{% if row.author %}@{{ row.author }}{% else %}—{% endif %}</td>
253
253
  {% if row.lastActivity %}
254
254
  <td>{{ row.lastActivity.activityType }} <span class="whitespace-nowrap text-sm">{{ row.lastActivity.attemptedAt | date('html') }}</span></td>
255
- <td>{{ row.lastActivity.counts.sent }}</td>
255
+ <td>{{ row.lastActivity.counts.sent }}{% if row.lastActivity.counts.unknown %}, {{ row.lastActivity.counts.unknown }} outcome unknown{% endif %}</td>
256
256
  <td>{{ row.lastActivity.counts.queued }}{% if row.lastActivity.counts.retrying %}, {{ row.lastActivity.counts.retrying }} retrying{% endif %}</td>
257
257
  <td class="whitespace-nowrap">{% if row.lastActivity.counts.failed %}{{ status('failed', row.lastActivity.counts.failed + ' failed') }}{% else %}0{% endif %}</td>
258
258
  {% else %}
@@ -186,4 +186,82 @@
186
186
  </form>
187
187
  {% endif %}
188
188
  {% endcall %}
189
+
190
+ {% call card(title='hCaptcha') %}
191
+ <p>
192
+ {% if hcaptchaState == 'valid' %}
193
+ {{ status('connected', 'Connected') }} Site key <code>{{ hcaptchaSiteKey }}</code>, checked {{ hcaptchaCheckedAt }}.
194
+ {% elif hcaptchaState == 'invalid' %}
195
+ {{ status('rejected', 'Refused') }} hCaptcha refused site key <code>{{ hcaptchaSiteKey }}</code> or its secret, checked {{ hcaptchaCheckedAt }}.
196
+ {% elif hcaptchaState == 'unchecked' %}
197
+ {{ status('unreachable', 'Not checked') }} hCaptcha could not be reached to check site key <code>{{ hcaptchaSiteKey }}</code>.
198
+ {% elif hcaptchaState == 'incomplete' %}
199
+ {{ status('missing', 'Incomplete') }} {% if hcaptchaSiteKey %}There is a site key but no secret.{% else %}There is a secret but no site key.{% endif %}
200
+ {% else %}
201
+ {{ status('disconnected', 'Not connected') }} This site has no hCaptcha site key and secret.
202
+ {% endif %}
203
+ </p>
204
+ <p class="text-sm">{{ hcaptchaHint }}</p>
205
+
206
+ {% if hcaptchaSiteKeySetBy %}
207
+ <p class="text-sm">The site key is set by <code>{{ hcaptchaSiteKeySetBy }}</code> and cannot be changed here.</p>
208
+ {% endif %}
209
+ {% if hcaptchaSecretSetBy %}
210
+ <p class="text-sm">The secret is set by <code>{{ hcaptchaSecretSetBy }}</code> and cannot be changed here.</p>
211
+ {% endif %}
212
+
213
+ {% if not (hcaptchaSiteKeySetBy and hcaptchaSecretSetBy) %}
214
+ <form method="post" action="{{ hcaptchaUrl }}">
215
+ <input type="hidden" name="csrf_token" value="{{ csrfToken }}" />
216
+ {% if not hcaptchaSiteKeySetBy %}
217
+ {{ field.text('settings-hcaptcha-site-key', hcaptchaFields.siteKey, 'Site key',
218
+ hcaptchaSiteKey, autocomplete='off', spellcheck='false',
219
+ hint='Printed in every page that shows the challenge, so it is not a secret.') }}
220
+ {% endif %}
221
+ {% if not hcaptchaSecretSetBy %}
222
+ {% if hcaptchaSecretPresent %}
223
+ {% set hcaptchaSecretPlaceholder = 'Leave blank to keep the stored secret' %}
224
+ {% else %}
225
+ {% set hcaptchaSecretPlaceholder = 'Paste your secret' %}
226
+ {% endif %}
227
+ {{ field.password('settings-hcaptcha-secret', hcaptchaFields.secret, 'Secret',
228
+ autocomplete='off', spellcheck='false', placeholder=hcaptchaSecretPlaceholder) }}
229
+ {% endif %}
230
+ <div class="mt-2">
231
+ {{ button('Save hCaptcha', type='submit', color='primary') }}
232
+ </div>
233
+ </form>
234
+ {% endif %}
235
+
236
+ {% if hcaptchaPresent %}
237
+ <form method="post" action="{{ hcaptchaUrl }}">
238
+ <input type="hidden" name="csrf_token" value="{{ csrfToken }}" />
239
+ <input type="hidden" name="{{ hcaptchaFields.action }}" value="{{ hcaptchaVerify }}" />
240
+ <div class="mt-2">{{ button('Check with hCaptcha', type='submit') }}</div>
241
+ </form>
242
+ {% endif %}
243
+
244
+ <p class="text-sm">
245
+ A site key and a secret from
246
+ <a class="link" href="https://dashboard.hcaptcha.com/">the hCaptcha dashboard</a>
247
+ put a challenge on the contact form and on the comment form as a visitor
248
+ who is not signed in sees it. They are checked with hCaptcha when they
249
+ are saved and kept in <code>data/hcaptcha.json</code>, never in
250
+ <code>site.json</code>. A deployment can set them instead with
251
+ <code>GEEKITY_HCAPTCHA__SITE_KEY</code> and
252
+ <code>GEEKITY_HCAPTCHA__SECRET</code>. Without a solved challenge
253
+ hCaptcha checks only the site key, so a wrong secret shows up when the
254
+ first visitor's form is checked.
255
+ </p>
256
+
257
+ {% if hcaptchaStored %}
258
+ <form method="post" action="{{ hcaptchaUrl }}">
259
+ <input type="hidden" name="csrf_token" value="{{ csrfToken }}" />
260
+ <input type="hidden" name="{{ hcaptchaFields.action }}" value="{{ hcaptchaRemove }}" />
261
+ {% call cardActions() %}
262
+ {{ button('Remove hCaptcha', type='submit', color='error', style='ghost') }}
263
+ {% endcall %}
264
+ </form>
265
+ {% endif %}
266
+ {% endcall %}
189
267
  {% endblock %}
@@ -93,7 +93,7 @@
93
93
  hint='Printed instead of the login: it heads the archive and is the byline under their posts.') }}
94
94
 
95
95
  {{ field.textarea('profile-bio', fields.bio, 'Bio', account.profile.bio, rows='4',
96
- hint='A line or two about them, shown on the archive under the name.') }}
96
+ hint='A line or two about them, in Markdown: [words](url) makes a link. Shown under their posts and on their archive, and as their fediverse profile.') }}
97
97
 
98
98
  {% set avatarHint %}A path such as <code>/uploads/2026/09/me.jpg</code>, or a full URL.{% endset %}
99
99
  {{ field.text('profile-avatar', fields.avatar, 'Avatar', account.profile.avatar,