@geekity/cms 0.52.0 → 0.53.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 (223) hide show
  1. package/admin/components/badge.njk +1 -0
  2. package/admin/components/cited-card.njk +32 -0
  3. package/admin/components/cited-preview.njk +2 -0
  4. package/admin/components/dashboard-widget-fill.njk +2 -0
  5. package/admin/components/dashboard-widget.njk +28 -0
  6. package/admin/pages/dashboard/home.njk +17 -19
  7. package/admin/pages/documents/editor.njk +6 -20
  8. package/admin/pages/federation/followers.njk +8 -4
  9. package/admin/pages/federation/resend.njk +2 -2
  10. package/admin/static/admin.css +68 -37
  11. package/admin/static/dashboard.js +44 -0
  12. package/admin/static/editor.js +23 -23
  13. package/dist/admin/cited-preview.d.ts +22 -0
  14. package/dist/admin/cited-preview.d.ts.map +1 -0
  15. package/dist/admin/cited-preview.js +41 -0
  16. package/dist/admin/cited-preview.js.map +1 -0
  17. package/dist/admin/dashboard.d.ts +7 -0
  18. package/dist/admin/dashboard.d.ts.map +1 -1
  19. package/dist/admin/dashboard.js +77 -15
  20. package/dist/admin/dashboard.js.map +1 -1
  21. package/dist/admin/documents.d.ts.map +1 -1
  22. package/dist/admin/documents.js +8 -12
  23. package/dist/admin/documents.js.map +1 -1
  24. package/dist/admin/federation.d.ts +4 -4
  25. package/dist/admin/federation.d.ts.map +1 -1
  26. package/dist/admin/federation.js +31 -16
  27. package/dist/admin/federation.js.map +1 -1
  28. package/dist/admin/indieauth-consent.js +1 -1
  29. package/dist/admin/indieauth-consent.js.map +1 -1
  30. package/dist/admin/routes.d.ts.map +1 -1
  31. package/dist/admin/routes.js +6 -0
  32. package/dist/admin/routes.js.map +1 -1
  33. package/dist/admin/taxonomy.d.ts.map +1 -1
  34. package/dist/admin/taxonomy.js +28 -19
  35. package/dist/admin/taxonomy.js.map +1 -1
  36. package/dist/admin/templates.d.ts +2 -0
  37. package/dist/admin/templates.d.ts.map +1 -1
  38. package/dist/admin/templates.js +2 -0
  39. package/dist/admin/templates.js.map +1 -1
  40. package/dist/admin/users.d.ts.map +1 -1
  41. package/dist/admin/users.js +11 -1
  42. package/dist/admin/users.js.map +1 -1
  43. package/dist/admin/widgets.d.ts +5 -0
  44. package/dist/admin/widgets.d.ts.map +1 -1
  45. package/dist/admin/widgets.js +31 -18
  46. package/dist/admin/widgets.js.map +1 -1
  47. package/dist/cli/commands.js +1 -1
  48. package/dist/cli/commands.js.map +1 -1
  49. package/dist/cli/resend.d.ts.map +1 -1
  50. package/dist/cli/resend.js +26 -5
  51. package/dist/cli/resend.js.map +1 -1
  52. package/dist/cli/run-job.d.ts +1 -1
  53. package/dist/cli/run-job.d.ts.map +1 -1
  54. package/dist/cli/run-job.js +2 -2
  55. package/dist/cli/run-job.js.map +1 -1
  56. package/dist/cli/user.js +5 -1
  57. package/dist/cli/user.js.map +1 -1
  58. package/dist/cms/services.d.ts.map +1 -1
  59. package/dist/cms/services.js +41 -15
  60. package/dist/cms/services.js.map +1 -1
  61. package/dist/config.d.ts +20 -0
  62. package/dist/config.d.ts.map +1 -1
  63. package/dist/config.js +8 -0
  64. package/dist/config.js.map +1 -1
  65. package/dist/content/authors.d.ts +6 -0
  66. package/dist/content/authors.d.ts.map +1 -1
  67. package/dist/content/authors.js +9 -0
  68. package/dist/content/authors.js.map +1 -1
  69. package/dist/content/reconcile.d.ts.map +1 -1
  70. package/dist/content/reconcile.js +20 -14
  71. package/dist/content/reconcile.js.map +1 -1
  72. package/dist/content/save.d.ts +33 -0
  73. package/dist/content/save.d.ts.map +1 -1
  74. package/dist/content/save.js +84 -5
  75. package/dist/content/save.js.map +1 -1
  76. package/dist/content/schedule.d.ts.map +1 -1
  77. package/dist/content/schedule.js +30 -6
  78. package/dist/content/schedule.js.map +1 -1
  79. package/dist/content/sync.d.ts +7 -0
  80. package/dist/content/sync.d.ts.map +1 -1
  81. package/dist/content/sync.js +41 -9
  82. package/dist/content/sync.js.map +1 -1
  83. package/dist/content/trash.d.ts.map +1 -1
  84. package/dist/content/trash.js +24 -17
  85. package/dist/content/trash.js.map +1 -1
  86. package/dist/content/write.d.ts.map +1 -1
  87. package/dist/content/write.js +64 -41
  88. package/dist/content/write.js.map +1 -1
  89. package/dist/federation/article.d.ts +27 -13
  90. package/dist/federation/article.d.ts.map +1 -1
  91. package/dist/federation/article.js +44 -33
  92. package/dist/federation/article.js.map +1 -1
  93. package/dist/federation/backfill.d.ts.map +1 -1
  94. package/dist/federation/backfill.js +3 -3
  95. package/dist/federation/backfill.js.map +1 -1
  96. package/dist/federation/citations.d.ts +1 -1
  97. package/dist/federation/citations.d.ts.map +1 -1
  98. package/dist/federation/citations.js +74 -19
  99. package/dist/federation/citations.js.map +1 -1
  100. package/dist/federation/delivery-plan.d.ts +17 -2
  101. package/dist/federation/delivery-plan.d.ts.map +1 -1
  102. package/dist/federation/delivery-plan.js +66 -6
  103. package/dist/federation/delivery-plan.js.map +1 -1
  104. package/dist/federation/delivery.d.ts +24 -18
  105. package/dist/federation/delivery.d.ts.map +1 -1
  106. package/dist/federation/delivery.js +202 -121
  107. package/dist/federation/delivery.js.map +1 -1
  108. package/dist/federation/federation.d.ts.map +1 -1
  109. package/dist/federation/federation.js +1 -3
  110. package/dist/federation/federation.js.map +1 -1
  111. package/dist/federation/handles.d.ts.map +1 -1
  112. package/dist/federation/handles.js +22 -1
  113. package/dist/federation/handles.js.map +1 -1
  114. package/dist/federation/keys.d.ts +5 -0
  115. package/dist/federation/keys.d.ts.map +1 -1
  116. package/dist/federation/keys.js +26 -1
  117. package/dist/federation/keys.js.map +1 -1
  118. package/dist/federation/object-ids.d.ts.map +1 -1
  119. package/dist/federation/object-ids.js +32 -13
  120. package/dist/federation/object-ids.js.map +1 -1
  121. package/dist/federation/ordered-queue.d.ts +16 -0
  122. package/dist/federation/ordered-queue.d.ts.map +1 -0
  123. package/dist/federation/ordered-queue.js +77 -0
  124. package/dist/federation/ordered-queue.js.map +1 -0
  125. package/dist/federation/outbox-observer.d.ts +3 -1
  126. package/dist/federation/outbox-observer.d.ts.map +1 -1
  127. package/dist/federation/outbox-observer.js +18 -6
  128. package/dist/federation/outbox-observer.js.map +1 -1
  129. package/dist/federation/paths.d.ts +3 -4
  130. package/dist/federation/paths.d.ts.map +1 -1
  131. package/dist/federation/paths.js +3 -4
  132. package/dist/federation/paths.js.map +1 -1
  133. package/dist/federation/profiles.d.ts.map +1 -1
  134. package/dist/federation/profiles.js +5 -4
  135. package/dist/federation/profiles.js.map +1 -1
  136. package/dist/federation/queue.d.ts +9 -4
  137. package/dist/federation/queue.d.ts.map +1 -1
  138. package/dist/federation/queue.js +12 -6
  139. package/dist/federation/queue.js.map +1 -1
  140. package/dist/federation/records.d.ts.map +1 -1
  141. package/dist/federation/records.js +17 -1
  142. package/dist/federation/records.js.map +1 -1
  143. package/dist/federation/relays.d.ts +20 -11
  144. package/dist/federation/relays.d.ts.map +1 -1
  145. package/dist/federation/relays.js +108 -83
  146. package/dist/federation/relays.js.map +1 -1
  147. package/dist/federation/reply-targets.d.ts +5 -2
  148. package/dist/federation/reply-targets.d.ts.map +1 -1
  149. package/dist/federation/reply-targets.js +24 -14
  150. package/dist/federation/reply-targets.js.map +1 -1
  151. package/dist/federation/resend-job.d.ts +10 -4
  152. package/dist/federation/resend-job.d.ts.map +1 -1
  153. package/dist/federation/resend-job.js +27 -19
  154. package/dist/federation/resend-job.js.map +1 -1
  155. package/dist/federation/retry-job.d.ts +26 -8
  156. package/dist/federation/retry-job.d.ts.map +1 -1
  157. package/dist/federation/retry-job.js +114 -45
  158. package/dist/federation/retry-job.js.map +1 -1
  159. package/dist/federation/send-deadline.d.ts +13 -0
  160. package/dist/federation/send-deadline.d.ts.map +1 -0
  161. package/dist/federation/send-deadline.js +30 -0
  162. package/dist/federation/send-deadline.js.map +1 -0
  163. package/dist/jobs/queue.d.ts.map +1 -1
  164. package/dist/jobs/queue.js +5 -4
  165. package/dist/jobs/queue.js.map +1 -1
  166. package/dist/jobs/types.d.ts +8 -2
  167. package/dist/jobs/types.d.ts.map +1 -1
  168. package/dist/jobs/types.js.map +1 -1
  169. package/dist/mcp/authoring/shared.d.ts.map +1 -1
  170. package/dist/mcp/authoring/shared.js +2 -3
  171. package/dist/mcp/authoring/shared.js.map +1 -1
  172. package/dist/mcp/repair/resend.js +1 -1
  173. package/dist/mcp/repair/resend.js.map +1 -1
  174. package/dist/mcp/repair/retry.d.ts.map +1 -1
  175. package/dist/mcp/repair/retry.js +20 -8
  176. package/dist/mcp/repair/retry.js.map +1 -1
  177. package/dist/micropub/endpoint.d.ts.map +1 -1
  178. package/dist/micropub/endpoint.js +3 -6
  179. package/dist/micropub/endpoint.js.map +1 -1
  180. package/dist/privacy/retention.d.ts.map +1 -1
  181. package/dist/privacy/retention.js +9 -0
  182. package/dist/privacy/retention.js.map +1 -1
  183. package/dist/site/setting-values.d.ts +3 -2
  184. package/dist/site/setting-values.d.ts.map +1 -1
  185. package/dist/site/setting-values.js +7 -4
  186. package/dist/site/setting-values.js.map +1 -1
  187. package/dist/site/users.d.ts +19 -1
  188. package/dist/site/users.d.ts.map +1 -1
  189. package/dist/site/users.js +31 -3
  190. package/dist/site/users.js.map +1 -1
  191. package/dist/store/deliveries.d.ts +24 -5
  192. package/dist/store/deliveries.d.ts.map +1 -1
  193. package/dist/store/deliveries.js +86 -31
  194. package/dist/store/deliveries.js.map +1 -1
  195. package/dist/store/queue-database.d.ts +19 -2
  196. package/dist/store/queue-database.d.ts.map +1 -1
  197. package/dist/store/queue-database.js +69 -4
  198. package/dist/store/queue-database.js.map +1 -1
  199. package/dist/store/queue-order.d.ts +17 -0
  200. package/dist/store/queue-order.d.ts.map +1 -0
  201. package/dist/store/queue-order.js +33 -0
  202. package/dist/store/queue-order.js.map +1 -0
  203. package/dist/store/relays.d.ts +5 -3
  204. package/dist/store/relays.d.ts.map +1 -1
  205. package/dist/store/relays.js +1 -1
  206. package/dist/store/relays.js.map +1 -1
  207. package/dist/store/schema.d.ts.map +1 -1
  208. package/dist/store/schema.js +12 -0
  209. package/dist/store/schema.js.map +1 -1
  210. package/dist/util/errors.d.ts +6 -0
  211. package/dist/util/errors.d.ts.map +1 -1
  212. package/dist/util/errors.js +11 -0
  213. package/dist/util/errors.js.map +1 -1
  214. package/dist/webmention/reply-contexts.d.ts +21 -3
  215. package/dist/webmention/reply-contexts.d.ts.map +1 -1
  216. package/dist/webmention/reply-contexts.js +93 -8
  217. package/dist/webmention/reply-contexts.js.map +1 -1
  218. package/dist/webmention/service.d.ts +2 -2
  219. package/dist/webmention/service.d.ts.map +1 -1
  220. package/dist/webmention/service.js +3 -16
  221. package/dist/webmention/service.js.map +1 -1
  222. package/package.json +10 -10
  223. package/themes/default/static/style.css +8 -8
@@ -53,6 +53,7 @@
53
53
  rejected: 'badge-error',
54
54
  spam: 'badge-error',
55
55
  hidden: 'badge-ghost',
56
+ leaving: 'badge-ghost',
56
57
  trashed: 'badge-ghost',
57
58
  disconnected: 'badge-ghost'
58
59
  } %}
@@ -0,0 +1,32 @@
1
+ {% import "components/fields.njk" as field %}
2
+ {% from "components/card.njk" import card %}
3
+
4
+ {% macro citedCard(property) %}
5
+ {% set found = citedPreviews[property] %}
6
+ {% if found and found.unread %}
7
+ <p class="label whitespace-normal">This page could not be read. The post will call it {{ found.name }}.</p>
8
+ {% elif found %}
9
+ {% call card(size='sm', style='border') %}
10
+ {% if found.picture %}
11
+ {# First: Tailwind's `peer-*` variants reach later siblings only. #}
12
+ <input class="peer sr-only" type="checkbox" id="editor-preview-{{ property }}" name="preview" value="hide"{% if form.previewHidden %} checked{% endif %}>
13
+ <label class="btn btn-circle btn-xs absolute end-2 top-2 peer-checked:btn-neutral peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-base-content" for="editor-preview-{{ property }}"><span aria-hidden="true">×</span><span class="sr-only">Remove the preview of {{ found.name }}</span></label>
14
+ <img class="h-auto max-h-32 w-full rounded-box object-cover peer-checked:opacity-40" src="{{ found.picture.src }}" alt="" width="{{ found.picture.width }}" height="{{ found.picture.height }}" loading="lazy">
15
+ {% endif %}
16
+ <p class="break-words pe-8 peer-checked:opacity-40">{{ found.name }}</p>
17
+ {% if found.author %}
18
+ <p class="text-sm text-base-content/70 peer-checked:opacity-40">By {{ found.author }}</p>
19
+ {% endif %}
20
+ {% if found.picture %}
21
+ <p class="label hidden whitespace-normal peer-checked:block">Removed. The post shows the plain citation until you select the X again.</p>
22
+ {% endif %}
23
+ {% if found.described %}
24
+ {{ field.text('editor-cited-alt', 'cited-alt', 'Alt text of the reposted image', value=(form.citedAlt or form.title), error=(error if errorField == 'editor-cited-alt' else ''), hint='What the image shows, for readers who cannot see it. It starts as the post’s title.', hintId='editor-cited-alt-hint') }}
25
+ {% endif %}
26
+ {% endcall %}
27
+ {% endif %}
28
+ {% endmacro %}
29
+
30
+ {% macro citedSlot(fieldId, property) %}
31
+ <div data-cited-for="{{ fieldId }}" data-cited-property="{{ property }}" aria-live="polite">{{ citedCard(property) }}</div>
32
+ {% endmacro %}
@@ -0,0 +1,2 @@
1
+ {% import "components/cited-card.njk" as cited with context %}
2
+ {{ cited.citedCard(property) }}
@@ -0,0 +1,2 @@
1
+ {% from "components/dashboard-widget.njk" import widgetBody, alertCard %}
2
+ {% if widget.placement == 'alerts' %}{{ alertCard(widget) }}{% else %}{{ widgetBody(widget) }}{% endif %}
@@ -0,0 +1,28 @@
1
+ {% from "components/badge.njk" import badge %}
2
+ {% from "components/blocks.njk" import block %}
3
+ {% from "components/card.njk" import card %}
4
+
5
+ {% macro widgetBody(widget) -%}
6
+ {% if widget.status == 'stale' %}
7
+ <p class="text-sm">{{ badge('Stale', color='warning') }} The latest load failed. These figures are from {{ widget.loadedAt }}.</p>
8
+ {% elif widget.status == 'unavailable' %}
9
+ <p>These stats are unavailable right now.</p>
10
+ {% endif %}
11
+ {% for data in widget.blocks %}{{ block(data) }}{% endfor %}
12
+ {%- endmacro %}
13
+
14
+ {% macro alertCard(widget) -%}
15
+ {% call card(title=widget.title, tone='warning') %}
16
+ {{ widgetBody(widget) }}
17
+ {% endcall %}
18
+ {%- endmacro %}
19
+
20
+ {% macro widgetSkeleton() -%}
21
+ <div class="flex flex-col gap-3">
22
+ <div class="skeleton h-4 w-2/3"></div>
23
+ <div class="skeleton h-4 w-full"></div>
24
+ <div class="skeleton h-4 w-5/6"></div>
25
+ <div class="skeleton h-24 w-full"></div>
26
+ </div>
27
+ <span class="sr-only">Loading</span>
28
+ {%- endmacro %}
@@ -1,27 +1,16 @@
1
1
  {% extends "layouts/shell.njk" %}
2
2
  {% from "components/stat.njk" import stats, stat %}
3
- {% from "components/card.njk" import card %}
4
- {% from "components/badge.njk" import badge %}
5
- {% from "components/blocks.njk" import block %}
3
+ {% from "components/dashboard-widget.njk" import widgetBody, alertCard, widgetSkeleton %}
6
4
  {% from "components/tabs.njk" import tabs %}
7
5
  {% from "components/button.njk" import button %}
8
6
  {% from "components/dropdown.njk" import dropdown %}
9
7
 
10
8
  {% block title %}Dashboard{% endblock %}
11
9
 
12
- {% macro widgetBody(widget) -%}
13
- {% if widget.status == 'stale' %}
14
- <p class="text-sm">{{ badge('Stale', color='warning') }} The latest load failed. These figures are from {{ widget.loadedAt }}.</p>
15
- {% elif widget.status == 'unavailable' %}
16
- <p>These stats are unavailable right now.</p>
17
- {% endif %}
18
- {% for data in widget.blocks %}{{ block(data) }}{% endfor %}
19
- {%- endmacro %}
20
-
21
- {% macro widgetCard(widget, tone=none) -%}
22
- {% call card(title=widget.title, tone=tone) %}
23
- {{ widgetBody(widget) }}
24
- {% endcall %}
10
+ {% macro widgetSlot(widget) -%}
11
+ <div class="contents"{% if widget.loadUrl %} data-widget-url="{{ widget.loadUrl }}" aria-busy="true"{% endif %}>
12
+ {% if widget.loading %}{{ widgetSkeleton() }}{% else %}{{ widgetBody(widget) }}{% endif %}
13
+ </div>
25
14
  {%- endmacro %}
26
15
 
27
16
  {% macro arrangedCard(widget) -%}
@@ -33,6 +22,7 @@
33
22
  <input type="hidden" name="csrf_token" value="{{ csrfToken }}" />
34
23
  <input type="hidden" name="widget" value="{{ widget.key }}" />
35
24
  {% if period %}<input type="hidden" name="period" value="{{ period }}" />{% endif %}
25
+ {% if wait %}<input type="hidden" name="wait" value="1" />{% endif %}
36
26
  {% for key in widget.shown %}<input type="hidden" name="shown" value="{{ key }}" />{% endfor %}
37
27
  {{ button('↑', type='submit', name='action', value='earlier', style='ghost', size='xs', shape='square', ariaLabel='Move ' + widget.title + ' earlier', disabled=widget.first) }}
38
28
  {{ button('↓', type='submit', name='action', value='later', style='ghost', size='xs', shape='square', ariaLabel='Move ' + widget.title + ' later', disabled=widget.last) }}
@@ -47,7 +37,7 @@
47
37
  </form>
48
38
  </div>
49
39
  {% if not widget.collapsed %}
50
- {{ widgetBody(widget) }}
40
+ {{ widgetSlot(widget) }}
51
41
  {% endif %}
52
42
  </div>
53
43
  </div>
@@ -55,6 +45,11 @@
55
45
 
56
46
  {% block content %}
57
47
  <h1 class="mb-6 text-2xl font-bold">Dashboard</h1>
48
+ {% if waitUrl %}
49
+ <noscript>
50
+ <p class="mb-6">Some cards load once the page is open, which needs JavaScript. <a class="link" href="{{ waitUrl }}">Show the dashboard with every card loaded</a>.</p>
51
+ </noscript>
52
+ {% endif %}
58
53
 
59
54
  {% set glance = [
60
55
  { label: 'Published posts', value: counts.posts },
@@ -76,7 +71,9 @@
76
71
  </section>
77
72
 
78
73
  {% for widget in alerts %}
79
- <section class="mb-8">{{ widgetCard(widget, tone='warning') }}</section>
74
+ <section class="mb-8"{% if widget.loadUrl %} data-widget-url="{{ widget.loadUrl }}"{% endif %}{% if widget.loading %} hidden{% endif %}>
75
+ {% if not widget.loading %}{{ alertCard(widget) }}{% endif %}
76
+ </section>
80
77
  {% endfor %}
81
78
 
82
79
  {% if arrangeable %}
@@ -96,6 +93,7 @@
96
93
  <input type="hidden" name="csrf_token" value="{{ csrfToken }}" />
97
94
  <input type="hidden" name="widget" value="{{ card.key }}" />
98
95
  {% if period %}<input type="hidden" name="period" value="{{ period }}" />{% endif %}
96
+ {% if wait %}<input type="hidden" name="wait" value="1" />{% endif %}
99
97
  <span class="min-w-0 text-sm">{{ card.title }}</span>
100
98
  {{ button('Add back', type='submit', name='action', value='restore', size='xs', ariaLabel='Add back ' + card.title) }}
101
99
  </form>
@@ -121,6 +119,6 @@
121
119
  {% endfor %}
122
120
  </div>
123
121
  </div>
124
- <script defer src="{{ adminAsset('dashboard.js') }}"></script>
125
122
  {% endif %}
123
+ <script defer src="{{ adminAsset('dashboard.js') }}"></script>
126
124
  {% endblock %}
@@ -14,6 +14,7 @@
14
14
  {% from "components/collapse.njk" import collapse %}
15
15
  {% from "components/dropdown.njk" import dropdown %}
16
16
  {% from "components/upload.njk" import uploadControl %}
17
+ {% import "components/cited-card.njk" as cited with context %}
17
18
 
18
19
  {% set ACTION_COLORS = { 'publish': 'primary', 'update': 'primary', 'trash': 'error' } %}
19
20
  {% set ACTION_STYLES = { 'trash': 'ghost' } %}
@@ -62,22 +63,6 @@
62
63
  {% endif %}
63
64
  {% endmacro %}
64
65
 
65
- {% macro citedCard(property) %}
66
- {% set cited = citedPreviews[property] %}
67
- {% if cited %}
68
- {% call card(size='sm', style='border') %}
69
- {# First: Tailwind's `peer-*` variants reach later siblings only. #}
70
- <input class="peer sr-only" type="checkbox" id="editor-preview-{{ property }}" name="preview" value="hide"{% if form.previewHidden %} checked{% endif %}>
71
- <label class="btn btn-circle btn-xs absolute end-2 top-2 peer-checked:btn-neutral peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-base-content" for="editor-preview-{{ property }}"><span aria-hidden="true">×</span><span class="sr-only">Remove the preview of {{ cited.name }}</span></label>
72
- <img class="h-auto max-h-32 w-full rounded-box object-cover peer-checked:opacity-40" src="{{ cited.picture.src }}" alt="" width="{{ cited.picture.width }}" height="{{ cited.picture.height }}" loading="lazy">
73
- <p class="break-words pe-8 peer-checked:opacity-40">{{ cited.name }}</p>
74
- <p class="label hidden whitespace-normal peer-checked:block">Removed. The post shows the plain citation until you select the X again.</p>
75
- {% if cited.described %}
76
- {{ field.text('editor-cited-alt', 'cited-alt', 'Alt text of the reposted image', value=(form.citedAlt or form.title), error=(error if errorField == 'editor-cited-alt' else ''), hint='What the image shows, for readers who cannot see it. It starts as the post’s title.', hintId='editor-cited-alt-hint') }}
77
- {% endif %}
78
- {% endcall %}
79
- {% endif %}
80
- {% endmacro %}
81
66
 
82
67
  {% macro pluginActions(fieldId, buttons) %}
83
68
  {% if buttons %}
@@ -192,15 +177,15 @@
192
177
  </div>
193
178
  </fieldset>
194
179
  {{ field.text('editor-' + link.chosen, 'link-url', 'Address', value=link.url, type='url', error=(error if errorField == ('editor-' + link.chosen) else ''), hint='The page is fetched for its title and picture, and sent a webmention when you publish. Leave it empty for a post that cites nothing.') }}
195
- {{ citedCard(link.chosen) }}
180
+ {{ cited.citedSlot('editor-' + link.chosen, link.chosen) }}
196
181
  {% for other in link.others %}
197
182
  {{ field.text('editor-' + other.property, other.property, other.also, value=other.url, type='url', error=(error if errorField == ('editor-' + other.property) else ''), hint='Empty it to take it out.') }}
198
- {{ citedCard(other.property) }}
183
+ {{ cited.citedSlot('editor-' + other.property, other.property) }}
199
184
  {% endfor %}
200
185
 
201
186
  {% elif name == 'rsvp' %}
202
187
  {{ field.text('editor-in-reply-to', 'in-reply-to', 'Event address', value=form.inReplyTo, type='url', error=(error if errorField == 'editor-in-reply-to' else ''), hint='The event’s page. It is sent a webmention when you publish.') }}
203
- {{ citedCard('in-reply-to') }}
188
+ {{ cited.citedSlot('editor-in-reply-to', 'in-reply-to') }}
204
189
  <fieldset class="fieldset">
205
190
  <legend class="fieldset-legend">Going?</legend>
206
191
  <div class="join flex-wrap">
@@ -513,6 +498,7 @@
513
498
  class="flex flex-wrap items-center gap-2"
514
499
  id="editor-enhance"
515
500
  data-preview-url="{{ previewUrl }}"
501
+ data-cited-preview-url="{{ citedPreviewUrl }}"
516
502
  data-upload-url="{{ uploadsUrl }}"
517
503
  data-kind="{{ kind.type }}"
518
504
  data-wiki-slugs="{{ wikiSlugs | dump }}"
@@ -543,7 +529,7 @@
543
529
  <option value="{{ url }}"></option>
544
530
  {% endfor %}
545
531
  </datalist>
546
- {% if form.previewHidden and not (citedPreviews | length) %}
532
+ {% if form.previewHidden and not previewToggled %}
547
533
  <input type="hidden" name="preview" value="hide">
548
534
  {% endif %}
549
535
  {% if form.citedAlt and not describesCitedImage %}
@@ -98,6 +98,8 @@
98
98
  <a class="link link-hover font-medium" href="{{ failure.post.editUrl }}">{{ failure.post.title }}</a>
99
99
  {% elif failure.slug %}
100
100
  <code class="break-all">{{ failure.slug }}</code>
101
+ {% elif failure.activityType == 'Follow' or failure.activityType == 'Undo' %}
102
+ A relay subscription
101
103
  {% else %}
102
104
  The profile
103
105
  {% endif %}
@@ -106,10 +108,10 @@
106
108
  <td class="break-all">{{ failure.inboxId }}</td>
107
109
  <td class="break-all text-sm">{{ failure.error or 'No reason given.' }}</td>
108
110
  <td>
109
- {% if failure.slug and not (retry and retry.active) %}
111
+ {% if failure.path and not (retry and retry.active) %}
110
112
  <form method="post" action="{{ retryUrl }}">
111
113
  <input type="hidden" name="csrf_token" value="{{ csrfToken }}" />
112
- <input type="hidden" name="{{ fields.slug }}" value="{{ failure.slug }}" />
114
+ <input type="hidden" name="{{ fields.path }}" value="{{ failure.path }}" />
113
115
  <input type="hidden" name="{{ fields.inbox }}" value="{{ failure.inboxId }}" />
114
116
  {{ button('Retry', type='submit', style='outline', size='xs') }}
115
117
  </form>
@@ -124,6 +126,8 @@
124
126
  inbox since. Retry sends the post again, as it now reads, to that inbox
125
127
  alone. A failure leaves this list once the post goes to that inbox
126
128
  again, or after seven days. If that fails too, the new failure is listed.
129
+ A relay subscription has no Retry here: retry it from the Relays panel.
130
+ Nor does the profile: its next change goes to every follower.
127
131
  </p>
128
132
  {% else %}
129
133
  <p>No delivery has failed in the last seven days.</p>
@@ -136,7 +140,7 @@
136
140
  <ul class="list-disc pl-6">
137
141
  {% for post in retryResult.posts %}
138
142
  <li>
139
- <code class="break-all">{{ post.slug }}</code>:
143
+ <code class="break-all">{{ post.path }}</code>:
140
144
  {% if post.activity %}
141
145
  {{ post.activity.activityType }} reached {{ post.activity.reached }} of {{ post.activity.inboxes }} {% if post.activity.inboxes == 1 %}inbox{% else %}inboxes{% endif %}{% if post.activity.queued %}, {{ post.activity.queued }} queued{% endif %}{% if post.activity.failed %}, {{ status('failed', post.activity.failed + ' failed') }}{% endif %}.
142
146
  {% else %}
@@ -300,7 +304,7 @@
300
304
  <td>
301
305
  <form method="post" action="{{ resendUrl }}">
302
306
  <input type="hidden" name="csrf_token" value="{{ csrfToken }}" />
303
- <input type="hidden" name="{{ fields.slug }}" value="{{ row.slug }}" />
307
+ <input type="hidden" name="{{ fields.path }}" value="{{ row.path }}" />
304
308
  {{ button('Resend', type='submit', style='ghost', size='xs') }}
305
309
  </form>
306
310
  </td>
@@ -32,7 +32,7 @@
32
32
  <ul class="mt-2 list-disc pl-6">
33
33
  {% for post in resendResult.sent %}
34
34
  <li>
35
- <code class="break-all">{{ post.slug }}</code>:
35
+ <code class="break-all">{{ post.path }}</code>:
36
36
  {% if post.activity and post.activity.heldByDevMode %}
37
37
  dev mode held the {{ post.activity.activityType }}, nothing was sent.
38
38
  {% elif post.activity and post.activity.inboxes == 0 %}
@@ -51,7 +51,7 @@
51
51
  </details>
52
52
  {% endif %}
53
53
  {% if resendResult.nothing.length %}
54
- <p>Nothing to resend: {% for slug in resendResult.nothing %}<code class="break-all">{{ slug }}</code>{% if not loop.last %}, {% endif %}{% endfor %}. No announced post has that slug.</p>
54
+ <p>Nothing to resend: {% for path in resendResult.nothing %}<code class="break-all">{{ path }}</code>{% if not loop.last %}, {% endif %}{% endfor %}. No announced post is at that path.</p>
55
55
  {% endif %}
56
56
  {% endif %}
57
57
  {% endcall %}
@@ -1,6 +1,6 @@
1
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
2
  @layer properties {
3
- @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
3
+ @supports (((-webkit-hyphens: none)) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
4
4
  *, :before, :after, ::backdrop {
5
5
  --tw-translate-x: 0;
6
6
  --tw-translate-y: 0;
@@ -3092,7 +3092,7 @@
3092
3092
  color: var(--step-fg);
3093
3093
  background-color: var(--step-bg);
3094
3094
  border: 1px solid var(--step-bg);
3095
- border-radius: 3.40282e38px;
3095
+ border-radius: 2147483647px;
3096
3096
  grid-row-start: 1;
3097
3097
  grid-column-start: 1;
3098
3098
  place-self: center;
@@ -3374,7 +3374,7 @@
3374
3374
 
3375
3375
  .avatar-group .avatar {
3376
3376
  border: 4px solid var(--color-base-100);
3377
- border-radius: 3.40282e38px;
3377
+ border-radius: 2147483647px;
3378
3378
  overflow: hidden;
3379
3379
  }
3380
3380
 
@@ -3564,7 +3564,7 @@
3564
3564
  appearance: none;
3565
3565
  vertical-align: middle;
3566
3566
  border: var(--border) solid var(--input-color, currentColor);
3567
- border-radius: 3.40282e38px;
3567
+ border-radius: 2147483647px;
3568
3568
  flex-shrink: 0;
3569
3569
  padding: .25rem;
3570
3570
  display: inline-block;
@@ -3590,7 +3590,7 @@
3590
3590
  content: var(--tw-content);
3591
3591
  background-size: auto, calc(var(--noise) * 100%);
3592
3592
  background-image: none, var(--fx-noise);
3593
- border-radius: 3.40282e38px;
3593
+ border-radius: 2147483647px;
3594
3594
  width: 100%;
3595
3595
  height: 100%;
3596
3596
  display: block;
@@ -4451,6 +4451,31 @@
4451
4451
  rotate: 45deg;
4452
4452
  }
4453
4453
 
4454
+ .skeleton {
4455
+ border-radius: var(--radius-box);
4456
+ background-color: var(--color-base-300);
4457
+ will-change: background-position;
4458
+ background-image: linear-gradient(105deg, #0000 0% 40%, var(--color-base-100) 50%, #0000 60% 100%);
4459
+ background-position-x: -50%;
4460
+ background-size: 200%;
4461
+ }
4462
+
4463
+ @media (prefers-reduced-motion: reduce) {
4464
+ .skeleton {
4465
+ transition-duration: 15s;
4466
+ }
4467
+ }
4468
+
4469
+ @media (prefers-reduced-motion: no-preference) {
4470
+ .skeleton {
4471
+ animation: 1.8s ease-in-out infinite skeleton;
4472
+ }
4473
+
4474
+ .skeleton:dir(rtl) {
4475
+ animation-direction: reverse;
4476
+ }
4477
+ }
4478
+
4454
4479
  .link {
4455
4480
  cursor: pointer;
4456
4481
  text-decoration-line: underline;
@@ -6047,7 +6072,7 @@
6047
6072
  .btn-circle {
6048
6073
  width: var(--size);
6049
6074
  height: var(--size);
6050
- border-radius: 3.40282e38px;
6075
+ border-radius: 2147483647px;
6051
6076
  padding-inline: 0;
6052
6077
  }
6053
6078
 
@@ -6736,7 +6761,7 @@
6736
6761
  --size: var(--size-selector, .25rem) * 6;
6737
6762
  }
6738
6763
 
6739
- .peer-checked\:btn-neutral:is(:where(.peer):checked ~ *) {
6764
+ :is(:where(.peer):checked ~ .peer-checked\:btn-neutral) {
6740
6765
  --btn-color: var(--color-neutral);
6741
6766
  --btn-fg: var(--color-neutral-content);
6742
6767
  --btn-soft-bg: var(--color-neutral-content) 80%;
@@ -7113,38 +7138,28 @@
7113
7138
  }
7114
7139
 
7115
7140
  @scope (.join) {
7116
- :scope > :where(:focus, :has(:focus)) {
7117
- z-index: 2;
7118
- }
7119
-
7120
- @media (hover: hover) {
7121
- :scope > :where(.btn:hover, :has(.btn:hover)) {
7122
- z-index: 1;
7123
- }
7124
- }
7125
-
7126
- :scope :where(:scope > :first-child) {
7141
+ :where(:scope > :first-child) {
7127
7142
  --join-ss: var(--radius-field);
7128
7143
  --join-se: calc(var(--radius-field) * var(--join-v));
7129
7144
  --join-es: calc(var(--radius-field) * var(--join-h));
7130
7145
  --join-ee: 0;
7131
7146
  }
7132
7147
 
7133
- :scope :where(:scope > :last-child) {
7148
+ :where(:scope > :last-child) {
7134
7149
  --join-ss: 0;
7135
7150
  --join-se: calc(var(--radius-field) * var(--join-h));
7136
7151
  --join-es: calc(var(--radius-field) * var(--join-v));
7137
7152
  --join-ee: var(--radius-field);
7138
7153
  }
7139
7154
 
7140
- :scope :where(:scope > :only-child) {
7155
+ :where(:scope > :only-child) {
7141
7156
  --join-ss: var(--radius-field);
7142
7157
  --join-se: var(--radius-field);
7143
7158
  --join-es: var(--radius-field);
7144
7159
  --join-ee: var(--radius-field);
7145
7160
  }
7146
7161
 
7147
- :scope :where(:scope > :not(:first-child)) {
7162
+ :where(:scope > :not(:first-child)) {
7148
7163
  --join-ml: calc(var(--border, 1px) * -1 * var(--join-h));
7149
7164
  --join-mt: calc(var(--border, 1px) * -1 * var(--join-v));
7150
7165
  }
@@ -7299,6 +7314,10 @@
7299
7314
  display: block;
7300
7315
  }
7301
7316
 
7317
+ .contents {
7318
+ display: contents;
7319
+ }
7320
+
7302
7321
  .flex {
7303
7322
  display: flex;
7304
7323
  }
@@ -7370,6 +7389,10 @@
7370
7389
  height: calc(var(--spacing) * 3);
7371
7390
  }
7372
7391
 
7392
+ .h-4 {
7393
+ height: calc(var(--spacing) * 4);
7394
+ }
7395
+
7373
7396
  .h-12 {
7374
7397
  height: calc(var(--spacing) * 12);
7375
7398
  }
@@ -7422,6 +7445,14 @@
7422
7445
  min-height: 100vh;
7423
7446
  }
7424
7447
 
7448
+ .w-2\/3 {
7449
+ width: 66.6667%;
7450
+ }
7451
+
7452
+ .w-5\/6 {
7453
+ width: 83.3333%;
7454
+ }
7455
+
7425
7456
  .w-7 {
7426
7457
  width: calc(var(--spacing) * 7);
7427
7458
  }
@@ -7714,7 +7745,7 @@
7714
7745
  }
7715
7746
 
7716
7747
  .rounded-full {
7717
- border-radius: 3.40282e38px;
7748
+ border-radius: 2147483647px;
7718
7749
  }
7719
7750
 
7720
7751
  .rounded-none\! {
@@ -8251,59 +8282,59 @@
8251
8282
  vertical-align: top;
8252
8283
  }
8253
8284
 
8254
- .group-focus-within\:opacity-100:is(:where(.group):focus-within *) {
8285
+ :is(:where(.group):focus-within .group-focus-within\:opacity-100) {
8255
8286
  opacity: 1;
8256
8287
  }
8257
8288
 
8258
8289
  @media (hover: hover) {
8259
- .group-hover\:opacity-100:is(:where(.group):hover *) {
8290
+ :is(:where(.group):hover .group-hover\:opacity-100) {
8260
8291
  opacity: 1;
8261
8292
  }
8262
8293
  }
8263
8294
 
8264
- .group-has-open\:mt-1:is(:where(.group):has(:is([open], :popover-open, :open)) *) {
8295
+ :is(:where(.group):has(:is([open], :popover-open, :open)) .group-has-open\:mt-1) {
8265
8296
  margin-top: var(--spacing);
8266
8297
  }
8267
8298
 
8268
- .group-has-open\:rotate-225:is(:where(.group):has(:is([open], :popover-open, :open)) *) {
8299
+ :is(:where(.group):has(:is([open], :popover-open, :open)) .group-has-open\:rotate-225) {
8269
8300
  rotate: 225deg;
8270
8301
  }
8271
8302
 
8272
- .group-has-\[\[data-as-other\]\:checked\]\/editor\:block:is(:where(.group\/editor):has([data-as-other]:checked) *), .group-has-\[\[name\=item-kind\]\[value\=album\]\:checked\]\/editor\:block:is(:where(.group\/editor):has([name="item-kind"][value="album"]:checked) *), .group-has-\[\[name\=item-kind\]\[value\=book\]\:checked\]\/editor\:block:is(:where(.group\/editor):has([name="item-kind"][value="book"]:checked) *), .group-has-\[\[name\=item-kind\]\[value\=movie\]\:checked\]\/editor\:block:is(:where(.group\/editor):has([name="item-kind"][value="movie"]:checked) *), .group-has-\[\[name\=item-kind\]\[value\=place\]\:checked\]\/editor\:block:is(:where(.group\/editor):has([name="item-kind"][value="place"]:checked) *), .group-has-\[\[name\=item-kind\]\[value\=tv\]\:checked\]\/editor\:block:is(:where(.group\/editor):has([name="item-kind"][value="tv"]:checked) *) {
8303
+ :is(:where(.group\/editor):has([data-as-other]:checked) .group-has-\[\[data-as-other\]\:checked\]\/editor\:block), :is(:where(.group\/editor):has([name="item-kind"][value="album"]:checked) .group-has-\[\[name\=item-kind\]\[value\=album\]\:checked\]\/editor\:block), :is(:where(.group\/editor):has([name="item-kind"][value="book"]:checked) .group-has-\[\[name\=item-kind\]\[value\=book\]\:checked\]\/editor\:block), :is(:where(.group\/editor):has([name="item-kind"][value="movie"]:checked) .group-has-\[\[name\=item-kind\]\[value\=movie\]\:checked\]\/editor\:block), :is(:where(.group\/editor):has([name="item-kind"][value="place"]:checked) .group-has-\[\[name\=item-kind\]\[value\=place\]\:checked\]\/editor\:block), :is(:where(.group\/editor):has([name="item-kind"][value="tv"]:checked) .group-has-\[\[name\=item-kind\]\[value\=tv\]\:checked\]\/editor\:block) {
8273
8304
  display: block;
8274
8305
  }
8275
8306
 
8276
- .group-has-\[\[name\=resource\]\[value\=mcp\]\:checked\]\/token\:grid:is(:where(.group\/token):has([name="resource"][value="mcp"]:checked) *), .group-has-\[\[name\=resource\]\[value\=micropub\]\:checked\]\/token\:grid:is(:where(.group\/token):has([name="resource"][value="micropub"]:checked) *) {
8307
+ :is(:where(.group\/token):has([name="resource"][value="mcp"]:checked) .group-has-\[\[name\=resource\]\[value\=mcp\]\:checked\]\/token\:grid), :is(:where(.group\/token):has([name="resource"][value="micropub"]:checked) .group-has-\[\[name\=resource\]\[value\=micropub\]\:checked\]\/token\:grid) {
8277
8308
  display: grid;
8278
8309
  }
8279
8310
 
8280
- .peer-checked\:block:is(:where(.peer):checked ~ *) {
8311
+ :is(:where(.peer):checked ~ .peer-checked\:block) {
8281
8312
  display: block;
8282
8313
  }
8283
8314
 
8284
- .peer-checked\:inline-flex:is(:where(.peer):checked ~ *) {
8315
+ :is(:where(.peer):checked ~ .peer-checked\:inline-flex) {
8285
8316
  display: inline-flex;
8286
8317
  }
8287
8318
 
8288
- .peer-checked\:opacity-40:is(:where(.peer):checked ~ *) {
8319
+ :is(:where(.peer):checked ~ .peer-checked\:opacity-40) {
8289
8320
  opacity: .4;
8290
8321
  }
8291
8322
 
8292
- .peer-checked\:ring-2:is(:where(.peer):checked ~ *) {
8323
+ :is(:where(.peer):checked ~ .peer-checked\:ring-2) {
8293
8324
  --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
8294
8325
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
8295
8326
  }
8296
8327
 
8297
- .peer-focus-visible\:outline-2:is(:where(.peer):focus-visible ~ *) {
8328
+ :is(:where(.peer):focus-visible ~ .peer-focus-visible\:outline-2) {
8298
8329
  outline-style: var(--tw-outline-style);
8299
8330
  outline-width: 2px;
8300
8331
  }
8301
8332
 
8302
- .peer-focus-visible\:outline-offset-2:is(:where(.peer):focus-visible ~ *) {
8333
+ :is(:where(.peer):focus-visible ~ .peer-focus-visible\:outline-offset-2) {
8303
8334
  outline-offset: 2px;
8304
8335
  }
8305
8336
 
8306
- .peer-focus-visible\:outline-base-content:is(:where(.peer):focus-visible ~ *) {
8337
+ :is(:where(.peer):focus-visible ~ .peer-focus-visible\:outline-base-content) {
8307
8338
  outline-color: var(--color-base-content);
8308
8339
  }
8309
8340
 
@@ -8427,7 +8458,7 @@
8427
8458
  border-bottom-width: 1px;
8428
8459
  }
8429
8460
 
8430
- .max-lg\:group-has-open\:flex:is(:where(.group):has(:is([open], :popover-open, :open)) *) {
8461
+ :is(:where(.group):has(:is([open], :popover-open, :open)) .max-lg\:group-has-open\:flex) {
8431
8462
  display: flex;
8432
8463
  }
8433
8464
 
@@ -1,5 +1,6 @@
1
1
  (function () {
2
2
  var grid = document.querySelector('[data-dashboard-cards]');
3
+ Array.prototype.forEach.call(document.querySelectorAll('[data-widget-url]'), loadWidget);
3
4
  if (!grid) return;
4
5
  var url = grid.getAttribute('data-layout-url');
5
6
 
@@ -122,6 +123,49 @@
122
123
  });
123
124
  }
124
125
 
126
+ function loadWidget(slot) {
127
+ fetch(slot.getAttribute('data-widget-url'), {
128
+ credentials: 'same-origin',
129
+ redirect: 'manual',
130
+ })
131
+ .then(function (response) {
132
+ if (response.status === 204) return '';
133
+ if (!response.ok) throw new Error(String(response.status));
134
+ return response.text();
135
+ })
136
+ .then(function (html) {
137
+ if (html === '') {
138
+ dropWidget(slot);
139
+ return;
140
+ }
141
+ slot.innerHTML = html;
142
+ slot.hidden = false;
143
+ slot.removeAttribute('aria-busy');
144
+ })
145
+ .catch(function () {
146
+ slot.removeAttribute('aria-busy');
147
+ if (slot.hidden) {
148
+ slot.remove();
149
+ } else if (slot.querySelector('.skeleton')) {
150
+ slot.innerHTML = '<p>These stats are unavailable right now.</p>';
151
+ }
152
+ });
153
+ }
154
+
155
+ function dropWidget(slot) {
156
+ var card = slot.closest('[data-dashboard-card]');
157
+ if (!card) {
158
+ slot.remove();
159
+ return;
160
+ }
161
+ var key = card.getAttribute('data-dashboard-card');
162
+ card.remove();
163
+ Array.prototype.forEach.call(grid.querySelectorAll('input[name="shown"]'), function (input) {
164
+ if (input.value === key) input.remove();
165
+ });
166
+ moveButtons();
167
+ }
168
+
125
169
  function moveButtons() {
126
170
  columns().forEach(function (column) {
127
171
  var side = column.getAttribute('data-dashboard-column');