@geekity/cms 0.42.1 → 0.43.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/federation/followers.njk +1 -1
- package/admin/static/editor.js +22 -21
- package/dist/admin/admin-bar.d.ts +2 -3
- package/dist/admin/admin-bar.d.ts.map +1 -1
- package/dist/admin/admin-bar.js +4 -5
- package/dist/admin/admin-bar.js.map +1 -1
- package/dist/admin/app-activity.d.ts +1 -1
- package/dist/admin/appearance.d.ts +5 -5
- package/dist/admin/appearance.js +5 -5
- package/dist/admin/comments.d.ts +3 -3
- package/dist/admin/comments.js +2 -2
- package/dist/admin/comments.js.map +1 -1
- package/dist/admin/connected-apps.d.ts +1 -1
- package/dist/admin/connected-apps.js +1 -1
- package/dist/admin/credentials.d.ts +3 -3
- package/dist/admin/credentials.js +3 -3
- package/dist/admin/dashboard.js +2 -2
- package/dist/admin/dashboard.js.map +1 -1
- package/dist/admin/documents.d.ts +4 -4
- package/dist/admin/documents.d.ts.map +1 -1
- package/dist/admin/documents.js +150 -144
- package/dist/admin/documents.js.map +1 -1
- package/dist/admin/editor-actions.d.ts +1 -1
- package/dist/admin/editor-actions.js +1 -1
- package/dist/admin/federation.d.ts +11 -11
- package/dist/admin/federation.d.ts.map +1 -1
- package/dist/admin/federation.js +10 -10
- package/dist/admin/flash.d.ts +8 -0
- package/dist/admin/flash.d.ts.map +1 -1
- package/dist/admin/flash.js +11 -0
- package/dist/admin/flash.js.map +1 -1
- package/dist/admin/indieauth-consent.d.ts +1 -1
- package/dist/admin/indieauth-consent.js +1 -1
- package/dist/admin/legacy-migrations.d.ts +20 -19
- package/dist/admin/legacy-migrations.d.ts.map +1 -1
- package/dist/admin/legacy-migrations.js +14 -13
- package/dist/admin/legacy-migrations.js.map +1 -1
- package/dist/admin/list-indent.d.ts +19 -0
- package/dist/admin/list-indent.d.ts.map +1 -0
- package/dist/admin/list-indent.js +73 -0
- package/dist/admin/list-indent.js.map +1 -0
- package/dist/admin/media.js +1 -1
- package/dist/admin/menu.d.ts +1 -1
- package/dist/admin/menu.js +4 -4
- package/dist/admin/menu.js.map +1 -1
- package/dist/admin/messages.d.ts +2 -2
- package/dist/admin/messages.js +2 -2
- package/dist/admin/navigation.d.ts +3 -3
- package/dist/admin/navigation.js +3 -3
- package/dist/admin/personal-data.d.ts +1 -1
- package/dist/admin/personal-data.js +1 -1
- package/dist/admin/plugins.d.ts +1 -1
- package/dist/admin/plugins.js +1 -1
- package/dist/admin/preview.js +3 -3
- package/dist/admin/preview.js.map +1 -1
- package/dist/admin/recovery.d.ts +1 -1
- package/dist/admin/recovery.js +1 -1
- package/dist/admin/routes.d.ts +3 -3
- package/dist/admin/routes.js +14 -14
- package/dist/admin/routes.js.map +1 -1
- package/dist/admin/settings-discussion.d.ts +3 -3
- package/dist/admin/settings-discussion.js +3 -3
- package/dist/admin/settings-federation.d.ts +2 -2
- package/dist/admin/settings-federation.js +5 -5
- package/dist/admin/settings-federation.js.map +1 -1
- package/dist/admin/settings-general.d.ts +1 -1
- package/dist/admin/settings-general.js +2 -2
- package/dist/admin/settings-general.js.map +1 -1
- package/dist/admin/settings-page.d.ts +2 -2
- package/dist/admin/settings-page.js +1 -1
- package/dist/admin/settings-pages.d.ts +1 -1
- package/dist/admin/settings-pages.js +1 -1
- package/dist/admin/settings-reading.d.ts +2 -2
- package/dist/admin/settings-reading.js +2 -2
- package/dist/admin/syndication-targets.d.ts +2 -2
- package/dist/admin/syndication-targets.js +2 -2
- package/dist/admin/taxonomy.d.ts +4 -4
- package/dist/admin/taxonomy.js +4 -4
- package/dist/admin/templates.d.ts +2 -2
- package/dist/admin/templates.js +2 -2
- package/dist/admin/tools.d.ts +1 -1
- package/dist/admin/tools.js +1 -1
- package/dist/admin/users.d.ts +0 -159
- package/dist/admin/users.d.ts.map +1 -1
- package/dist/admin/users.js +204 -498
- package/dist/admin/users.js.map +1 -1
- package/dist/avatars/avatars.d.ts +2 -2
- package/dist/avatars/avatars.js +2 -2
- package/dist/cache.d.ts +1 -1
- package/dist/cache.js +1 -1
- package/dist/cli/args.d.ts +20 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +138 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/commands.d.ts +10 -0
- package/dist/cli/commands.d.ts.map +1 -0
- package/dist/cli/commands.js +261 -0
- package/dist/cli/commands.js.map +1 -0
- package/dist/cli/database-in-use.d.ts +9 -0
- package/dist/cli/database-in-use.d.ts.map +1 -0
- package/dist/cli/database-in-use.js +38 -0
- package/dist/cli/database-in-use.js.map +1 -0
- package/dist/cli/dev-mode.d.ts +3 -0
- package/dist/cli/dev-mode.d.ts.map +1 -0
- package/dist/cli/dev-mode.js +31 -0
- package/dist/cli/dev-mode.js.map +1 -0
- package/dist/cli/export.d.ts +3 -0
- package/dist/cli/export.d.ts.map +1 -0
- package/dist/cli/export.js +53 -0
- package/dist/cli/export.js.map +1 -0
- package/dist/cli/format.d.ts +3 -0
- package/dist/cli/format.d.ts.map +1 -0
- package/dist/cli/format.js +10 -0
- package/dist/cli/format.js.map +1 -0
- package/dist/cli/gemini.d.ts +3 -0
- package/dist/cli/gemini.d.ts.map +1 -0
- package/dist/cli/gemini.js +34 -0
- package/dist/cli/gemini.js.map +1 -0
- package/dist/cli/help.d.ts +2 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/help.js +111 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/import.d.ts +3 -0
- package/dist/cli/import.d.ts.map +1 -0
- package/dist/cli/import.js +84 -0
- package/dist/cli/import.js.map +1 -0
- package/dist/cli/init.d.ts +3 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +21 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/maintenance.d.ts +3 -0
- package/dist/cli/maintenance.d.ts.map +1 -0
- package/dist/cli/maintenance.js +57 -0
- package/dist/cli/maintenance.js.map +1 -0
- package/dist/cli/options.d.ts +16 -0
- package/dist/cli/options.d.ts.map +1 -0
- package/dist/cli/options.js +27 -0
- package/dist/cli/options.js.map +1 -0
- package/dist/cli/password.d.ts +21 -0
- package/dist/cli/password.d.ts.map +1 -0
- package/dist/cli/password.js +52 -0
- package/dist/cli/password.js.map +1 -0
- package/dist/cli/plugin-commands.d.ts +11 -0
- package/dist/cli/plugin-commands.d.ts.map +1 -0
- package/dist/cli/plugin-commands.js +79 -0
- package/dist/cli/plugin-commands.js.map +1 -0
- package/dist/cli/plugin-folder.d.ts +3 -0
- package/dist/cli/plugin-folder.d.ts.map +1 -0
- package/dist/cli/plugin-folder.js +93 -0
- package/dist/cli/plugin-folder.js.map +1 -0
- package/dist/cli/rebuild.d.ts +5 -0
- package/dist/cli/rebuild.d.ts.map +1 -0
- package/dist/cli/rebuild.js +44 -0
- package/dist/cli/rebuild.js.map +1 -0
- package/dist/cli/resend.d.ts +3 -0
- package/dist/cli/resend.d.ts.map +1 -0
- package/dist/cli/resend.js +36 -0
- package/dist/cli/resend.js.map +1 -0
- package/dist/cli/run-job.d.ts +5 -0
- package/dist/cli/run-job.d.ts.map +1 -0
- package/dist/cli/run-job.js +29 -0
- package/dist/cli/run-job.js.map +1 -0
- package/dist/cli/serve.d.ts +3 -0
- package/dist/cli/serve.d.ts.map +1 -0
- package/dist/cli/serve.js +65 -0
- package/dist/cli/serve.js.map +1 -0
- package/dist/cli/settings.d.ts +5 -0
- package/dist/cli/settings.d.ts.map +1 -0
- package/dist/cli/settings.js +144 -0
- package/dist/cli/settings.js.map +1 -0
- package/dist/cli/site-plugins.d.ts +5 -0
- package/dist/cli/site-plugins.d.ts.map +1 -0
- package/dist/cli/site-plugins.js +7 -0
- package/dist/cli/site-plugins.js.map +1 -0
- package/dist/cli/strip-metadata.d.ts +3 -0
- package/dist/cli/strip-metadata.d.ts.map +1 -0
- package/dist/cli/strip-metadata.js +20 -0
- package/dist/cli/strip-metadata.js.map +1 -0
- package/dist/cli/sync.d.ts +3 -0
- package/dist/cli/sync.d.ts.map +1 -0
- package/dist/cli/sync.js +22 -0
- package/dist/cli/sync.js.map +1 -0
- package/dist/cli/user.d.ts +3 -0
- package/dist/cli/user.d.ts.map +1 -0
- package/dist/cli/user.js +54 -0
- package/dist/cli/user.js.map +1 -0
- package/dist/cli.d.ts +0 -62
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +6 -1566
- package/dist/cli.js.map +1 -1
- package/dist/cms/app.js +10 -10
- package/dist/cms/app.js.map +1 -1
- package/dist/cms/boot.js +5 -5
- package/dist/cms/boot.js.map +1 -1
- package/dist/cms/create.d.ts +17 -17
- package/dist/cms/create.d.ts.map +1 -1
- package/dist/cms/create.js +1 -1
- package/dist/cms/create.js.map +1 -1
- package/dist/cms/server-error.d.ts +1 -1
- package/dist/cms/server-error.js +1 -1
- package/dist/cms/services.d.ts.map +1 -1
- package/dist/cms/services.js +33 -16
- package/dist/cms/services.js.map +1 -1
- package/dist/comments/akismet.d.ts +4 -4
- package/dist/comments/akismet.js +6 -6
- package/dist/comments/akismet.js.map +1 -1
- package/dist/comments/conversation.d.ts +29 -29
- package/dist/comments/conversation.d.ts.map +1 -1
- package/dist/comments/conversation.js +2 -2
- package/dist/comments/conversation.js.map +1 -1
- package/dist/comments/form.d.ts +3 -3
- package/dist/comments/form.d.ts.map +1 -1
- package/dist/comments/intake.d.ts +4 -4
- package/dist/comments/intake.d.ts.map +1 -1
- package/dist/comments/intake.js +1 -1
- package/dist/comments/migrations.d.ts +3 -3
- package/dist/comments/migrations.js +3 -3
- package/dist/comments/moderate.d.ts +2 -2
- package/dist/comments/moderate.js +2 -2
- package/dist/comments/page-form.d.ts +1 -1
- package/dist/comments/page-form.js +1 -1
- package/dist/comments/records.d.ts +9 -9
- package/dist/comments/records.d.ts.map +1 -1
- package/dist/comments/records.js +11 -10
- package/dist/comments/records.js.map +1 -1
- package/dist/comments/reply-notices.d.ts +2 -2
- package/dist/comments/reply-post.d.ts +2 -2
- package/dist/comments/submission.d.ts +8 -8
- package/dist/comments/submission.d.ts.map +1 -1
- package/dist/comments/submission.js +9 -9
- package/dist/comments/submission.js.map +1 -1
- package/dist/config.d.ts +27 -27
- package/dist/config.js +3 -3
- package/dist/contact/index.d.ts +1 -1
- package/dist/contact/index.js +1 -1
- package/dist/contact/records.d.ts +7 -7
- package/dist/contact/records.js +7 -7
- package/dist/content/alt-text.d.ts +2 -2
- package/dist/content/alt-text.js +2 -2
- package/dist/content/authors.d.ts +6 -6
- package/dist/content/authors.d.ts.map +1 -1
- package/dist/content/authors.js +6 -6
- package/dist/content/authors.js.map +1 -1
- package/dist/content/citation.d.ts +1 -1
- package/dist/content/content-tree.d.ts +5 -0
- package/dist/content/content-tree.d.ts.map +1 -0
- package/dist/content/content-tree.js +54 -0
- package/dist/content/content-tree.js.map +1 -0
- package/dist/content/content-watcher.d.ts +15 -0
- package/dist/content/content-watcher.d.ts.map +1 -0
- package/dist/content/content-watcher.js +104 -0
- package/dist/content/content-watcher.js.map +1 -0
- package/dist/content/document-form.d.ts +25 -24
- package/dist/content/document-form.d.ts.map +1 -1
- package/dist/content/document-form.js +7 -7
- package/dist/content/document-form.js.map +1 -1
- package/dist/content/document-kind.d.ts +6 -6
- package/dist/content/document.d.ts +1 -1
- package/dist/content/enclosure-form.js +1 -1
- package/dist/content/enclosure.js +1 -1
- package/dist/content/event-form.d.ts +2 -2
- package/dist/content/event.d.ts +3 -3
- package/dist/content/event.js +3 -3
- package/dist/content/guids.d.ts +6 -6
- package/dist/content/guids.d.ts.map +1 -1
- package/dist/content/guids.js +7 -7
- package/dist/content/guids.js.map +1 -1
- package/dist/content/handles.d.ts +1 -1
- package/dist/content/handles.js +1 -1
- package/dist/content/html-to-markdown.js +2 -2
- package/dist/content/language.d.ts +1 -1
- package/dist/content/language.js +1 -1
- package/dist/content/locale.d.ts +1 -1
- package/dist/content/locale.js +1 -1
- package/dist/content/markdown.d.ts +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/parser.d.ts +1 -1
- package/dist/content/parser.d.ts.map +1 -1
- package/dist/content/permalinks.d.ts +4 -4
- package/dist/content/permalinks.js +4 -4
- package/dist/content/photo-form.js +2 -2
- package/dist/content/photo.d.ts +2 -2
- package/dist/content/photo.js +1 -1
- package/dist/content/pinned.d.ts +3 -3
- package/dist/content/pinned.js +3 -3
- package/dist/content/post-fields.js +2 -2
- package/dist/content/post-fields.js.map +1 -1
- package/dist/content/post-type.d.ts +4 -4
- package/dist/content/post-type.js +1 -1
- package/dist/content/reconcile.d.ts +15 -0
- package/dist/content/reconcile.d.ts.map +1 -0
- package/dist/content/reconcile.js +106 -0
- package/dist/content/reconcile.js.map +1 -0
- package/dist/content/redirects.d.ts +2 -3
- package/dist/content/redirects.d.ts.map +1 -1
- package/dist/content/redirects.js +2 -3
- package/dist/content/redirects.js.map +1 -1
- package/dist/content/rsvp.d.ts +1 -1
- package/dist/content/rsvp.js +1 -1
- package/dist/content/sanitize.js +1 -1
- package/dist/content/save.d.ts +3 -3
- package/dist/content/save.js +4 -4
- package/dist/content/scan.d.ts +12 -0
- package/dist/content/scan.d.ts.map +1 -0
- package/dist/content/scan.js +58 -0
- package/dist/content/scan.js.map +1 -0
- package/dist/content/search.d.ts +3 -3
- package/dist/content/search.js +3 -3
- package/dist/content/served.d.ts +5 -5
- package/dist/content/served.js +4 -4
- package/dist/content/site-links.d.ts +3 -4
- package/dist/content/site-links.d.ts.map +1 -1
- package/dist/content/site-links.js +1 -2
- package/dist/content/site-links.js.map +1 -1
- package/dist/content/sqlite/clauses.d.ts +1 -1
- package/dist/content/sqlite/clauses.js +1 -1
- package/dist/content/sqlite/rows.d.ts +1 -1
- package/dist/content/sqlite/rows.js +1 -1
- package/dist/content/store.d.ts +26 -26
- package/dist/content/sync.d.ts +3 -3
- package/dist/content/sync.d.ts.map +1 -1
- package/dist/content/sync.js +65 -382
- package/dist/content/sync.js.map +1 -1
- package/dist/content/taxonomy.d.ts +9 -8
- package/dist/content/taxonomy.d.ts.map +1 -1
- package/dist/content/taxonomy.js +9 -8
- package/dist/content/taxonomy.js.map +1 -1
- package/dist/content/time.d.ts +1 -1
- package/dist/content/time.js +1 -1
- package/dist/content/trash.d.ts +4 -5
- package/dist/content/trash.d.ts.map +1 -1
- package/dist/content/trash.js +4 -5
- package/dist/content/trash.js.map +1 -1
- package/dist/content/write.d.ts +4 -4
- package/dist/content/write.js +19 -19
- package/dist/content/write.js.map +1 -1
- package/dist/drain.d.ts +1 -1
- package/dist/drain.js +1 -1
- package/dist/federation/actor.d.ts +9 -9
- package/dist/federation/actor.js +10 -10
- package/dist/federation/article.d.ts +14 -14
- package/dist/federation/article.js +27 -27
- package/dist/federation/article.js.map +1 -1
- package/dist/federation/backfill.d.ts +2 -2
- package/dist/federation/backfill.js +2 -2
- package/dist/federation/citations.d.ts +1 -1
- package/dist/federation/citations.js +1 -1
- package/dist/federation/cited-post.d.ts +1 -1
- package/dist/federation/cited-post.js +1 -1
- package/dist/federation/delivery-plan.d.ts +1 -1
- package/dist/federation/delivery.d.ts +3 -3
- package/dist/federation/delivery.d.ts.map +1 -1
- package/dist/federation/delivery.js +25 -15
- package/dist/federation/delivery.js.map +1 -1
- package/dist/federation/federation.d.ts +3 -3
- package/dist/federation/federation.d.ts.map +1 -1
- package/dist/federation/federation.js +7 -8
- package/dist/federation/federation.js.map +1 -1
- package/dist/federation/handles.d.ts +1 -1
- package/dist/federation/handles.js +1 -1
- package/dist/federation/inbox.d.ts +6 -6
- package/dist/federation/inbox.js +9 -9
- package/dist/federation/keys.d.ts +3 -3
- package/dist/federation/keys.js +3 -3
- package/dist/federation/object-ids.d.ts +1 -1
- package/dist/federation/outbox-observer.d.ts +17 -0
- package/dist/federation/outbox-observer.d.ts.map +1 -0
- package/dist/federation/outbox-observer.js +98 -0
- package/dist/federation/outbox-observer.js.map +1 -0
- package/dist/federation/paths.d.ts +8 -8
- package/dist/federation/paths.js +8 -8
- package/dist/federation/profiles.d.ts +2 -3
- package/dist/federation/profiles.d.ts.map +1 -1
- package/dist/federation/profiles.js +2 -3
- package/dist/federation/profiles.js.map +1 -1
- package/dist/federation/quotes.d.ts +1 -1
- package/dist/federation/records.d.ts +24 -24
- package/dist/federation/records.js +23 -23
- package/dist/federation/records.js.map +1 -1
- package/dist/federation/refusals.d.ts +1 -1
- package/dist/federation/relays.d.ts +1 -1
- package/dist/federation/relays.d.ts.map +1 -1
- package/dist/federation/relays.js +38 -13
- package/dist/federation/relays.js.map +1 -1
- package/dist/federation/webfinger.d.ts +2 -2
- package/dist/federation/webfinger.js +2 -2
- package/dist/files/atomic.d.ts +2 -2
- package/dist/files/atomic.js +1 -1
- package/dist/forms/checker.d.ts +2 -2
- package/dist/forms/checker.d.ts.map +1 -1
- package/dist/forms/protection.d.ts +1 -1
- package/dist/forms/protection.js +1 -1
- package/dist/gemini/certificate.js +1 -1
- package/dist/images/markup.d.ts +2 -2
- package/dist/images/variants.d.ts +8 -8
- package/dist/images/variants.js +1 -1
- package/dist/indexnow.d.ts +1 -1
- package/dist/indieauth/grants.d.ts +2 -2
- package/dist/indieauth/identity.d.ts +3 -5
- package/dist/indieauth/identity.d.ts.map +1 -1
- package/dist/indieauth/identity.js +3 -5
- package/dist/indieauth/identity.js.map +1 -1
- package/dist/indieauth/redeem.d.ts +2 -2
- package/dist/indieauth/redeem.js +2 -2
- package/dist/indieauth/request.d.ts +2 -2
- package/dist/indieauth/request.js +2 -2
- package/dist/indieauth/tokens.d.ts +3 -5
- package/dist/indieauth/tokens.d.ts.map +1 -1
- package/dist/indieauth/tokens.js +3 -5
- package/dist/indieauth/tokens.js.map +1 -1
- package/dist/jobs/file-records.d.ts +1 -1
- package/dist/jobs/file-records.js +1 -1
- package/dist/jobs/in-process.d.ts +1 -1
- package/dist/jobs/in-process.js +1 -1
- package/dist/jobs/queue.d.ts +1 -1
- package/dist/jobs/queue.js +1 -1
- package/dist/mail/provider.d.ts +2 -2
- package/dist/mail/provider.js +2 -2
- package/dist/media/library.d.ts +2 -2
- package/dist/media/uploads.js +2 -2
- package/dist/media/uploads.js.map +1 -1
- package/dist/micropub/create.d.ts +1 -1
- package/dist/micropub/endpoint.d.ts +7 -7
- package/dist/micropub/endpoint.js +8 -8
- package/dist/micropub/endpoint.js.map +1 -1
- package/dist/micropub/media.d.ts +4 -4
- package/dist/micropub/media.js +4 -4
- package/dist/micropub/update.d.ts +1 -1
- package/dist/micropub/update.js +1 -1
- package/dist/notifications/comments.d.ts +1 -1
- package/dist/notifications/comments.js +2 -2
- package/dist/notifications/comments.js.map +1 -1
- package/dist/notifications/digest.d.ts +7 -7
- package/dist/notifications/digest.js +7 -7
- package/dist/notifications/mail-service.d.ts +4 -4
- package/dist/notifications/mail-service.d.ts.map +1 -1
- package/dist/notifications/mail-service.js +3 -3
- package/dist/notifications/mail-templates.d.ts +3 -3
- package/dist/notifications/optouts.d.ts +1 -1
- package/dist/notifications/optouts.js +1 -1
- package/dist/notifications/tokens.d.ts +2 -2
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.js +5 -5
- package/dist/plugins/changes.js +2 -2
- package/dist/plugins/folder.d.ts +2 -2
- package/dist/plugins/folder.js +2 -2
- package/dist/plugins/install.d.ts +1 -1
- package/dist/plugins/install.js +1 -1
- package/dist/plugins/registry.d.ts +1 -1
- package/dist/plugins/registry.js +1 -1
- package/dist/plugins/site.d.ts +1 -1
- package/dist/plugins/site.js +1 -1
- package/dist/privacy/erase.d.ts +1 -1
- package/dist/privacy/erase.js +1 -1
- package/dist/privacy/retention.d.ts +2 -2
- package/dist/privacy/retention.js +2 -2
- package/dist/site/admin-paths.d.ts +2 -2
- package/dist/site/admin-paths.js +2 -2
- package/dist/site/authors.d.ts +6 -6
- package/dist/site/authors.js +5 -5
- package/dist/site/dashboard-layout.d.ts +1 -1
- package/dist/site/indexnow-key.js +1 -1
- package/dist/site/namespace.d.ts +1 -1
- package/dist/site/namespace.js +1 -1
- package/dist/site/navigation.d.ts +10 -10
- package/dist/site/navigation.js +10 -10
- package/dist/site/notification-preferences.d.ts +3 -3
- package/dist/site/notification-preferences.js +2 -2
- package/dist/site/retention-policy.d.ts +1 -1
- package/dist/site/retention-policy.js +1 -1
- package/dist/site/users.d.ts +23 -24
- package/dist/site/users.d.ts.map +1 -1
- package/dist/site/users.js +6 -6
- package/dist/site/users.js.map +1 -1
- package/dist/store/admin-store.d.ts +3 -3
- package/dist/store/admin-store.d.ts.map +1 -1
- package/dist/store/comments.d.ts +17 -17
- package/dist/store/comments.d.ts.map +1 -1
- package/dist/store/comments.js +14 -21
- package/dist/store/comments.js.map +1 -1
- package/dist/store/conversation.d.ts +2 -2
- package/dist/store/deliveries.d.ts +13 -5
- package/dist/store/deliveries.d.ts.map +1 -1
- package/dist/store/deliveries.js +18 -16
- package/dist/store/deliveries.js.map +1 -1
- package/dist/store/followers.d.ts +5 -5
- package/dist/store/followers.d.ts.map +1 -1
- package/dist/store/followers.js +7 -10
- package/dist/store/followers.js.map +1 -1
- package/dist/store/inbox-replies.d.ts +4 -4
- package/dist/store/inbox-replies.js +4 -4
- package/dist/store/inbox.d.ts +5 -5
- package/dist/store/inbox.d.ts.map +1 -1
- package/dist/store/inbox.js +21 -34
- package/dist/store/inbox.js.map +1 -1
- package/dist/store/profiles.d.ts +5 -5
- package/dist/store/profiles.d.ts.map +1 -1
- package/dist/store/profiles.js +4 -5
- package/dist/store/profiles.js.map +1 -1
- package/dist/store/relays.d.ts.map +1 -1
- package/dist/store/relays.js +7 -9
- package/dist/store/relays.js.map +1 -1
- package/dist/store/rows.d.ts +6 -20
- package/dist/store/rows.d.ts.map +1 -1
- package/dist/store/rows.js +10 -15
- package/dist/store/rows.js.map +1 -1
- package/dist/store/schema.js +35 -35
- package/dist/store/schema.js.map +1 -1
- package/dist/store/sessions.d.ts +1 -1
- package/dist/store/sessions.d.ts.map +1 -1
- package/dist/store/sessions.js +10 -10
- package/dist/store/sessions.js.map +1 -1
- package/dist/store/state.d.ts.map +1 -1
- package/dist/store/state.js +2 -2
- package/dist/store/state.js.map +1 -1
- package/dist/store/tokens.d.ts +1 -1
- package/dist/store/tokens.d.ts.map +1 -1
- package/dist/store/tokens.js +5 -5
- package/dist/store/tokens.js.map +1 -1
- package/dist/store/webmentions.d.ts +2 -2
- package/dist/store/webmentions.d.ts.map +1 -1
- package/dist/store/webmentions.js +11 -11
- package/dist/store/webmentions.js.map +1 -1
- package/dist/supervisor/plugin-watcher.d.ts +26 -0
- package/dist/supervisor/plugin-watcher.d.ts.map +1 -0
- package/dist/supervisor/plugin-watcher.js +90 -0
- package/dist/supervisor/plugin-watcher.js.map +1 -0
- package/dist/supervisor/primary.d.ts +4 -7
- package/dist/supervisor/primary.d.ts.map +1 -1
- package/dist/supervisor/primary.js +37 -94
- package/dist/supervisor/primary.js.map +1 -1
- package/dist/supervisor/protocol.d.ts +1 -1
- package/dist/supervisor/protocol.js +1 -1
- package/dist/supervisor/reload-queue.d.ts +10 -0
- package/dist/supervisor/reload-queue.d.ts.map +1 -0
- package/dist/supervisor/reload-queue.js +28 -0
- package/dist/supervisor/reload-queue.js.map +1 -0
- package/dist/supervisor/supervision.d.ts +2 -2
- package/dist/supervisor/supervision.js +2 -2
- package/dist/supervisor/worker.d.ts +1 -1
- package/dist/supervisor/worker.js +1 -1
- package/dist/theme/site-data.d.ts +3 -3
- package/dist/theme/site-data.js +2 -2
- package/dist/theme/templates.d.ts +3 -3
- package/dist/theme/templates.js +16 -16
- package/dist/theme/templates.js.map +1 -1
- package/dist/theme/themes.d.ts +11 -13
- package/dist/theme/themes.d.ts.map +1 -1
- package/dist/theme/themes.js +8 -9
- package/dist/theme/themes.js.map +1 -1
- package/dist/web/activity-folding.d.ts +33 -0
- package/dist/web/activity-folding.d.ts.map +1 -0
- package/dist/web/activity-folding.js +238 -0
- package/dist/web/activity-folding.js.map +1 -0
- package/dist/web/archive.d.ts +2 -3
- package/dist/web/archive.d.ts.map +1 -1
- package/dist/web/archive.js +2 -3
- package/dist/web/archive.js.map +1 -1
- package/dist/web/asset-routes.d.ts +1 -1
- package/dist/web/asset-routes.js +1 -1
- package/dist/web/comment-routes.js +2 -2
- package/dist/web/comment-routes.js.map +1 -1
- package/dist/web/compression.d.ts +1 -1
- package/dist/web/compression.js +1 -1
- package/dist/web/context.d.ts +21 -21
- package/dist/web/context.d.ts.map +1 -1
- package/dist/web/context.js +7 -7
- package/dist/web/conversation-context.d.ts +15 -0
- package/dist/web/conversation-context.d.ts.map +1 -0
- package/dist/web/conversation-context.js +2 -0
- package/dist/web/conversation-context.js.map +1 -0
- package/dist/web/conversation-feed.d.ts +18 -0
- package/dist/web/conversation-feed.d.ts.map +1 -0
- package/dist/web/conversation-feed.js +53 -0
- package/dist/web/conversation-feed.js.map +1 -0
- package/dist/web/conversation-gather.d.ts +12 -0
- package/dist/web/conversation-gather.d.ts.map +1 -0
- package/dist/web/conversation-gather.js +189 -0
- package/dist/web/conversation-gather.js.map +1 -0
- package/dist/web/conversation-lookup.d.ts +15 -0
- package/dist/web/conversation-lookup.d.ts.map +1 -0
- package/dist/web/conversation-lookup.js +101 -0
- package/dist/web/conversation-lookup.js.map +1 -0
- package/dist/web/conversation-threads.d.ts +12 -0
- package/dist/web/conversation-threads.d.ts.map +1 -0
- package/dist/web/conversation-threads.js +144 -0
- package/dist/web/conversation-threads.js.map +1 -0
- package/dist/web/conversation.d.ts +25 -61
- package/dist/web/conversation.d.ts.map +1 -1
- package/dist/web/conversation.js +14 -854
- package/dist/web/conversation.js.map +1 -1
- package/dist/web/document-page.js +4 -4
- package/dist/web/document-page.js.map +1 -1
- package/dist/web/document-render.d.ts +9 -0
- package/dist/web/document-render.d.ts.map +1 -0
- package/dist/web/document-render.js +130 -0
- package/dist/web/document-render.js.map +1 -0
- package/dist/web/document-site.d.ts +1 -1
- package/dist/web/document-site.d.ts.map +1 -1
- package/dist/web/document-site.js +1 -1
- package/dist/web/document-site.js.map +1 -1
- package/dist/web/env.d.ts +19 -19
- package/dist/web/env.d.ts.map +1 -1
- package/dist/web/federation-routes.d.ts +2 -2
- package/dist/web/federation-routes.d.ts.map +1 -1
- package/dist/web/federation-routes.js +22 -21
- package/dist/web/federation-routes.js.map +1 -1
- package/dist/web/feed-atom.d.ts +3 -3
- package/dist/web/feed-atom.js +3 -3
- package/dist/web/feed-item.d.ts +15 -16
- package/dist/web/feed-item.d.ts.map +1 -1
- package/dist/web/feed-item.js +1 -1
- package/dist/web/feed-item.js.map +1 -1
- package/dist/web/feed-json.d.ts +4 -4
- package/dist/web/feed-json.d.ts.map +1 -1
- package/dist/web/feed-json.js +2 -2
- package/dist/web/feed-routes.d.ts +3 -3
- package/dist/web/feed-routes.js +4 -4
- package/dist/web/feed-routes.js.map +1 -1
- package/dist/web/feed-rss.d.ts +2 -2
- package/dist/web/feed-rss.js +4 -4
- package/dist/web/feed-rss.js.map +1 -1
- package/dist/web/feed-source.d.ts +5 -5
- package/dist/web/feed-source.d.ts.map +1 -1
- package/dist/web/feed-source.js +2 -2
- package/dist/web/feed-source.js.map +1 -1
- package/dist/web/feed-xml.d.ts +4 -4
- package/dist/web/feed-xml.d.ts.map +1 -1
- package/dist/web/feed-xml.js +4 -4
- package/dist/web/feed-xml.js.map +1 -1
- package/dist/web/font-routes.d.ts +1 -1
- package/dist/web/font-routes.js +1 -1
- package/dist/web/health.d.ts +1 -1
- package/dist/web/index.d.ts +5 -3
- package/dist/web/index.d.ts.map +1 -1
- package/dist/web/index.js +4 -2
- package/dist/web/index.js.map +1 -1
- package/dist/web/indieauth-activity-log.js +1 -1
- package/dist/web/indieauth-bearer.d.ts +2 -2
- package/dist/web/indieauth-discovery.d.ts +12 -12
- package/dist/web/indieauth-discovery.d.ts.map +1 -1
- package/dist/web/indieauth-discovery.js +12 -12
- package/dist/web/indieauth-discovery.js.map +1 -1
- package/dist/web/indieauth-token.d.ts +2 -2
- package/dist/web/indieauth-token.js +2 -2
- package/dist/web/listing-render.d.ts +11 -0
- package/dist/web/listing-render.d.ts.map +1 -0
- package/dist/web/listing-render.js +76 -0
- package/dist/web/listing-render.js.map +1 -0
- package/dist/web/listing-subject.js +1 -1
- package/dist/web/listing-subject.js.map +1 -1
- package/dist/web/llms.d.ts +1 -1
- package/dist/web/llms.js +1 -1
- package/dist/web/maintenance.d.ts +1 -1
- package/dist/web/maintenance.js +1 -1
- package/dist/web/manifest.d.ts +1 -1
- package/dist/web/manifest.js +1 -1
- package/dist/web/markdown-chrome.d.ts +11 -0
- package/dist/web/markdown-chrome.d.ts.map +1 -0
- package/dist/web/markdown-chrome.js +178 -0
- package/dist/web/markdown-chrome.js.map +1 -0
- package/dist/web/markdown-conversation.d.ts +1 -1
- package/dist/web/markdown-conversation.d.ts.map +1 -1
- package/dist/web/markdown-environment.d.ts +10 -0
- package/dist/web/markdown-environment.d.ts.map +1 -0
- package/dist/web/markdown-environment.js +56 -0
- package/dist/web/markdown-environment.js.map +1 -0
- package/dist/web/markdown-representation.d.ts +1 -1
- package/dist/web/markdown-representation.d.ts.map +1 -1
- package/dist/web/markdown-representation.js +2 -2
- package/dist/web/markdown-representation.js.map +1 -1
- package/dist/web/negotiate.d.ts +5 -5
- package/dist/web/negotiate.d.ts.map +1 -1
- package/dist/web/negotiate.js +3 -3
- package/dist/web/negotiate.js.map +1 -1
- package/dist/web/oembed.d.ts +3 -3
- package/dist/web/oembed.js +3 -3
- package/dist/web/opensearch.d.ts +1 -1
- package/dist/web/opensearch.js +1 -1
- package/dist/web/page-context.d.ts +29 -0
- package/dist/web/page-context.d.ts.map +1 -0
- package/dist/web/page-context.js +126 -0
- package/dist/web/page-context.js.map +1 -0
- package/dist/web/page-tags.js +1 -1
- package/dist/web/page-tags.js.map +1 -1
- package/dist/web/paths.d.ts +1 -1
- package/dist/web/paths.js +3 -3
- package/dist/web/plugin-federation.d.ts +1 -1
- package/dist/web/plugin-federation.js +1 -1
- package/dist/web/render-scope.d.ts +20 -0
- package/dist/web/render-scope.d.ts.map +1 -0
- package/dist/web/render-scope.js +36 -0
- package/dist/web/render-scope.js.map +1 -0
- package/dist/web/render.d.ts +21 -363
- package/dist/web/render.d.ts.map +1 -1
- package/dist/web/render.js +46 -899
- package/dist/web/render.js.map +1 -1
- package/dist/web/request.d.ts +1 -1
- package/dist/web/request.js +1 -1
- package/dist/web/robots.d.ts +1 -1
- package/dist/web/robots.js +1 -1
- package/dist/web/routes.js +19 -19
- package/dist/web/routes.js.map +1 -1
- package/dist/web/search.d.ts +1 -1
- package/dist/web/search.js +1 -1
- package/dist/web/session.d.ts +8 -8
- package/dist/web/session.js +8 -8
- package/dist/web/share-image.d.ts +2 -3
- package/dist/web/share-image.d.ts.map +1 -1
- package/dist/web/share-image.js +1 -1
- package/dist/web/share-image.js.map +1 -1
- package/dist/web/site-view.d.ts +2 -2
- package/dist/web/status-pages.d.ts +1 -1
- package/dist/web/status-pages.d.ts.map +1 -1
- package/dist/web/theme-environment.d.ts +14 -0
- package/dist/web/theme-environment.d.ts.map +1 -0
- package/dist/web/theme-environment.js +112 -0
- package/dist/web/theme-environment.js.map +1 -0
- package/dist/web/theme-templates.d.ts +67 -0
- package/dist/web/theme-templates.d.ts.map +1 -0
- package/dist/web/theme-templates.js +65 -0
- package/dist/web/theme-templates.js.map +1 -0
- package/dist/webmention/microformats.d.ts +5 -5
- package/dist/webmention/microformats.d.ts.map +1 -1
- package/dist/webmention/receive.d.ts +7 -7
- package/dist/webmention/receive.d.ts.map +1 -1
- package/dist/webmention/receive.js +4 -4
- package/dist/webmention/receive.js.map +1 -1
- package/dist/webmention/reply-context/oembed.js +1 -1
- package/dist/webmention/reply-context.d.ts +10 -10
- package/dist/webmention/reply-context.d.ts.map +1 -1
- package/dist/webmention/reply-context.js +5 -5
- package/dist/webmention/reply-contexts.d.ts +6 -6
- package/dist/webmention/reply-contexts.d.ts.map +1 -1
- package/dist/webmention/reply-contexts.js +2 -2
- package/dist/webmention/service.d.ts +13 -13
- package/dist/webmention/service.js +9 -9
- package/dist/webmention/syndication.d.ts +6 -6
- package/dist/webmention/syndication.d.ts.map +1 -1
- package/dist/webmention/syndication.js +6 -6
- package/dist/webmention/syndication.js.map +1 -1
- package/package.json +4 -2
package/dist/content/served.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { Document } from './document.ts';
|
|
|
6
6
|
* matter, a date that has not arrived yet, and a `visibility` the site does
|
|
7
7
|
* not recognize. All four stay indexed so the admin can find them; none is
|
|
8
8
|
* ever listed or fed, and only the first is never shown to anybody: the other
|
|
9
|
-
* three are the author's to read at the permalink while signed in
|
|
9
|
+
* three are the author's to read at the permalink while signed in.
|
|
10
10
|
*/
|
|
11
11
|
export type HiddenReason = {
|
|
12
12
|
readonly kind: 'trashed';
|
|
@@ -29,16 +29,16 @@ export declare function hiddenReason(document: Document, now: Date): HiddenReaso
|
|
|
29
29
|
export declare function isServed(document: Document, now?: Date): boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Whether a document was deleted from the public site: it is in the trash, and
|
|
32
|
-
* would be served if it were not
|
|
32
|
+
* would be served if it were not.
|
|
33
33
|
*
|
|
34
|
-
* The trash file is the record of the deletion
|
|
34
|
+
* The trash file is the record of the deletion, so a restore and
|
|
35
35
|
* a new document at the URL both end it with no second record to clear. A
|
|
36
36
|
* trashed draft was never public, so its URL stays a 404 rather than telling
|
|
37
37
|
* anybody something used to be there.
|
|
38
38
|
*/
|
|
39
39
|
export declare function isGone(document: Document, now: Date): boolean;
|
|
40
40
|
/**
|
|
41
|
-
* Whether the site lists a document: served, and not unlisted
|
|
41
|
+
* Whether the site lists a document: served, and not unlisted.
|
|
42
42
|
*
|
|
43
43
|
* What every list the site publishes asks — the listings, the feeds, the
|
|
44
44
|
* sitemap, search, `llms.txt`, IndexNow — about a document in hand. The
|
|
@@ -48,7 +48,7 @@ export declare function isListed(document: Document, now?: Date): boolean;
|
|
|
48
48
|
/**
|
|
49
49
|
* Whether a document is one of the objects this site federates.
|
|
50
50
|
*
|
|
51
|
-
*
|
|
51
|
+
* The site federates published posts and nothing else: pages are standing
|
|
52
52
|
* content with no place in a timeline, and a draft, a trashed post or one
|
|
53
53
|
* whose date has not arrived is not public at all. This is the one rule, so
|
|
54
54
|
* the object dispatcher, the outbox and the permalink all agree about what
|
package/dist/content/served.js
CHANGED
|
@@ -30,9 +30,9 @@ export function isServed(document, now = systemClock()) {
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Whether a document was deleted from the public site: it is in the trash, and
|
|
33
|
-
* would be served if it were not
|
|
33
|
+
* would be served if it were not.
|
|
34
34
|
*
|
|
35
|
-
* The trash file is the record of the deletion
|
|
35
|
+
* The trash file is the record of the deletion, so a restore and
|
|
36
36
|
* a new document at the URL both end it with no second record to clear. A
|
|
37
37
|
* trashed draft was never public, so its URL stays a 404 rather than telling
|
|
38
38
|
* anybody something used to be there.
|
|
@@ -41,7 +41,7 @@ export function isGone(document, now) {
|
|
|
41
41
|
return isTrashedPath(document.path) && withheldReason(document, now) === undefined;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Whether the site lists a document: served, and not unlisted
|
|
44
|
+
* Whether the site lists a document: served, and not unlisted.
|
|
45
45
|
*
|
|
46
46
|
* What every list the site publishes asks — the listings, the feeds, the
|
|
47
47
|
* sitemap, search, `llms.txt`, IndexNow — about a document in hand. The
|
|
@@ -53,7 +53,7 @@ export function isListed(document, now = systemClock()) {
|
|
|
53
53
|
/**
|
|
54
54
|
* Whether a document is one of the objects this site federates.
|
|
55
55
|
*
|
|
56
|
-
*
|
|
56
|
+
* The site federates published posts and nothing else: pages are standing
|
|
57
57
|
* content with no place in a timeline, and a draft, a trashed post or one
|
|
58
58
|
* whose date has not arrived is not public at all. This is the one rule, so
|
|
59
59
|
* the object dispatcher, the outbox and the permalink all agree about what
|
|
@@ -3,15 +3,14 @@ import type { RedirectTable } from './redirects.ts';
|
|
|
3
3
|
* One link to a page of this site, as the index keeps it: the path, spelled
|
|
4
4
|
* as {@link siteLinkKey} spells a permalink, and the query sorted as a
|
|
5
5
|
* redirect source's is, or `''`. The query is kept because the site answers
|
|
6
|
-
* `/?p=7` with a redirect rather than with
|
|
6
|
+
* `/?p=7` with a redirect rather than with `/`.
|
|
7
7
|
*/
|
|
8
8
|
export interface SiteLink {
|
|
9
9
|
readonly path: string;
|
|
10
10
|
readonly query: string;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Every page of this site a rendered body links to, each named once
|
|
14
|
-
* (TASK-322).
|
|
13
|
+
* Every page of this site a rendered body links to, each named once.
|
|
15
14
|
*/
|
|
16
15
|
export declare function ownSiteLinks(html: string, pageUrl: string, baseUrl: string): SiteLink[];
|
|
17
16
|
/**
|
|
@@ -30,7 +29,7 @@ export declare function siteLinkKey(sitePath: string): string;
|
|
|
30
29
|
export declare function spelling(link: SiteLink): string;
|
|
31
30
|
/**
|
|
32
31
|
* The links that land on one document, as the site resolves a request for
|
|
33
|
-
* them
|
|
32
|
+
* them.
|
|
34
33
|
*/
|
|
35
34
|
export interface LinksInto {
|
|
36
35
|
/** Paths a link lands here through, whatever query it carries. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-links.d.ts","sourceRoot":"","sources":["../../src/content/site-links.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED
|
|
1
|
+
{"version":3,"file":"site-links.d.ts","sourceRoot":"","sources":["../../src/content/site-links.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,QAAQ,EAAE,CAUvF;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,QAAQ,GAAG,SAAS,CAMtB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,qEAAqE;AACrE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAE/C;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,kEAAkE;IAClE,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACzB,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,CAAC;CAChC;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,aAAa,EACpB,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,GACrC,SAAS,CAuBX;AAKD;;;;;GAKG;AACH,wBAAgB,OAAO,CACrB,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,GACrC,MAAM,GAAG,SAAS,CAiBpB;AAwED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAaxF"}
|
|
@@ -2,8 +2,7 @@ import { elementsIn, parseHtml } from '../util/html-tree.js';
|
|
|
2
2
|
import { absoluteUrl, withoutTrailingSlash } from '../util/url.js';
|
|
3
3
|
import { decodedPath, findPathRedirect, findQueryRedirect, redirectLocation, sortedQuery, } from './redirects.js';
|
|
4
4
|
/**
|
|
5
|
-
* Every page of this site a rendered body links to, each named once
|
|
6
|
-
* (TASK-322).
|
|
5
|
+
* Every page of this site a rendered body links to, each named once.
|
|
7
6
|
*/
|
|
8
7
|
export function ownSiteLinks(html, pageUrl, baseUrl) {
|
|
9
8
|
const found = new Map();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-links.js","sourceRoot":"","sources":["../../src/content/site-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAcxB
|
|
1
|
+
{"version":3,"file":"site-links.js","sourceRoot":"","sources":["../../src/content/site-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAcxB;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,OAAe,EAAE,OAAe;IACzE,MAAM,KAAK,GAAG,IAAI,GAAG,EAAoB,CAAC;IAE1C,KAAK,MAAM,OAAO,IAAI,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QAClD,IAAI,OAAO,CAAC,IAAI,KAAK,GAAG;YAAE,SAAS;QACnC,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACtE,IAAI,IAAI,KAAK,SAAS;YAAE,KAAK,CAAC,GA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K,OAAO,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAC5E,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC;IACd,OAAO,GAAG,CAAC,IAAI,CAAC;AAClB,CAAC"}
|
|
@@ -27,7 +27,7 @@ export declare const PINNED_CLAUSE = "COALESCE(json_extract(extra, '$.pinned'),
|
|
|
27
27
|
* The clause that picks out a document some follower holds a copy of: one
|
|
28
28
|
* whose `activitypub` block records when it was announced.
|
|
29
29
|
*
|
|
30
|
-
* `published` rather than `id`, because
|
|
30
|
+
* `published` rather than `id`, because a post's id is its
|
|
31
31
|
* permalink and is never written into the file: the announcement date is the
|
|
32
32
|
* only mark a delivery leaves, and it is the one thing that says a follower
|
|
33
33
|
* was ever told. The block is stored as JSON rather than shredded into
|
|
@@ -32,7 +32,7 @@ export const PINNED_CLAUSE = `COALESCE(json_extract(extra, '$.${PINNED_FRONT_MAT
|
|
|
32
32
|
* The clause that picks out a document some follower holds a copy of: one
|
|
33
33
|
* whose `activitypub` block records when it was announced.
|
|
34
34
|
*
|
|
35
|
-
* `published` rather than `id`, because
|
|
35
|
+
* `published` rather than `id`, because a post's id is its
|
|
36
36
|
* permalink and is never written into the file: the announcement date is the
|
|
37
37
|
* only mark a delivery leaves, and it is the one thing that says a follower
|
|
38
38
|
* was ever told. The block is stored as JSON rather than shredded into
|
|
@@ -10,7 +10,7 @@ export declare function toRow(document: Document): Record<string, string | numbe
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function toDocument(row: Row, tags: string[], categories: string[]): Document;
|
|
12
12
|
/**
|
|
13
|
-
* The `/replies/` keys of a document
|
|
13
|
+
* The `/replies/` keys of a document: its feed guid's, and for a
|
|
14
14
|
* reply post its object id's, which is what it is named by in the thread it
|
|
15
15
|
* answers. The two differ only for a reply post with a stored `guid`. Both are
|
|
16
16
|
* worked out against `baseUrl`, which is recorded beside them so a change of
|
|
@@ -53,7 +53,7 @@ export function toDocument(row, tags, categories) {
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* The `/replies/` keys of a document
|
|
56
|
+
* The `/replies/` keys of a document: its feed guid's, and for a
|
|
57
57
|
* reply post its object id's, which is what it is named by in the thread it
|
|
58
58
|
* answers. The two differ only for a reply post with a stored `guid`. Both are
|
|
59
59
|
* worked out against `baseUrl`, which is recorded beside them so a change of
|
package/dist/content/store.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface OpenContentStoreOptions {
|
|
|
14
14
|
now?: Clock | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The site's base URL, which the `/replies/` keys of a document are worked
|
|
17
|
-
* out against
|
|
17
|
+
* out against. Opening with a different one than last time works
|
|
18
18
|
* every key out again; opening with none leaves new rows without keys.
|
|
19
19
|
*/
|
|
20
20
|
baseUrl?: string | undefined;
|
|
@@ -45,7 +45,7 @@ export interface DocumentLookup {
|
|
|
45
45
|
* The document a URL resolves to, or `undefined`.
|
|
46
46
|
*
|
|
47
47
|
* Permalinks are unique among live documents only: a trashed document keeps
|
|
48
|
-
* its URL so that it can answer 410 Gone
|
|
48
|
+
* its URL so that it can answer 410 Gone, until a live one takes
|
|
49
49
|
* the URL over. The live document wins; a trashed one answers only when
|
|
50
50
|
* nothing live holds the URL.
|
|
51
51
|
*/
|
|
@@ -53,8 +53,8 @@ export interface DocumentLookup {
|
|
|
53
53
|
/**
|
|
54
54
|
* The post whose front matter names this ActivityStreams id, or `undefined`.
|
|
55
55
|
*
|
|
56
|
-
* Only a migrated post
|
|
57
|
-
*
|
|
56
|
+
* Only a migrated post or one moved after it was published
|
|
57
|
+
* has one: any other post is named by its permalink and
|
|
58
58
|
* carries no `activitypub.id` at all. This is how
|
|
59
59
|
* the id its followers already hold keeps answering — with the `Article` for
|
|
60
60
|
* a peer and a redirect to the permalink for a browser — so the match is on
|
|
@@ -65,7 +65,7 @@ export interface DocumentLookup {
|
|
|
65
65
|
* The published document whose `redirect_from` names this URL, or
|
|
66
66
|
* `undefined`.
|
|
67
67
|
*
|
|
68
|
-
* What a URL a document used to live at resolves to
|
|
68
|
+
* What a URL a document used to live at resolves to. Only a
|
|
69
69
|
* public document answers, so an old URL of something since drafted or
|
|
70
70
|
* trashed 404s rather than redirecting to a 404. Should two claim one URL,
|
|
71
71
|
* the one updated most recently wins.
|
|
@@ -104,7 +104,7 @@ export interface ArchiveReader {
|
|
|
104
104
|
/**
|
|
105
105
|
* Published, untrashed documents carrying a tag in any casing, newest first.
|
|
106
106
|
*
|
|
107
|
-
* Tags match without regard to case
|
|
107
|
+
* Tags match without regard to case: a document hydrated from
|
|
108
108
|
* the index carries each of its tags in the site's spelling, which
|
|
109
109
|
* {@link TaxonomyReader.tagSpelling} names.
|
|
110
110
|
*/
|
|
@@ -113,15 +113,15 @@ export interface ArchiveReader {
|
|
|
113
113
|
listByCategory(category: string, options?: ListByTagOptions): Document[];
|
|
114
114
|
/**
|
|
115
115
|
* Published, untrashed, already-due posts whose `author` is one of `names`,
|
|
116
|
-
* newest first: one user's archive
|
|
116
|
+
* newest first: one user's archive.
|
|
117
117
|
*
|
|
118
118
|
* A list of names rather than one, because more than one string can read as
|
|
119
|
-
* the same person:
|
|
120
|
-
* before
|
|
121
|
-
* answering to it. `content/authors.ts` decides which names those
|
|
122
|
-
* them here, so the index matches strings and never has to know
|
|
123
|
-
* is. An empty list matches nothing, which is what a user whose
|
|
124
|
-
* resolves to should get.
|
|
119
|
+
* the same person: a post's `author` holds a username, and a file written
|
|
120
|
+
* before every user became an actor holds a display name that reads as the
|
|
121
|
+
* one user answering to it. `content/authors.ts` decides which names those
|
|
122
|
+
* are and hands them here, so the index matches strings and never has to know
|
|
123
|
+
* what a user is. An empty list matches nothing, which is what a user whose
|
|
124
|
+
* name nothing resolves to should get.
|
|
125
125
|
*
|
|
126
126
|
* Posts only: an author archive is what somebody wrote, and a page is part
|
|
127
127
|
* of the furniture of the site rather than of anybody's body of work.
|
|
@@ -129,8 +129,8 @@ export interface ArchiveReader {
|
|
|
129
129
|
listByAuthor(names: readonly string[], options?: ListOptions): Document[];
|
|
130
130
|
/**
|
|
131
131
|
* The posts of one user's archive that carry a `pinned` key, most recently
|
|
132
|
-
* pinned first and capped at `PINNED_POST_LIMIT`: their featured collection
|
|
133
|
-
*
|
|
132
|
+
* pinned first and capped at `PINNED_POST_LIMIT`: their featured collection.
|
|
133
|
+
* The same archive {@link ArchiveReader.listByAuthor} reads, so a
|
|
134
134
|
* draft, a trashed post or a scheduled one is never featured.
|
|
135
135
|
*/
|
|
136
136
|
listPinnedByAuthor(names: readonly string[]): Document[];
|
|
@@ -175,14 +175,14 @@ export interface TaxonomyReader {
|
|
|
175
175
|
export interface ReplyReader {
|
|
176
176
|
/**
|
|
177
177
|
* Served posts whose `in-reply-to` is exactly one of these URLs, unlisted
|
|
178
|
-
* ones included, newest first
|
|
178
|
+
* ones included, newest first: the reply posts a thread shows.
|
|
179
179
|
* Naming nothing returns nothing.
|
|
180
180
|
*/
|
|
181
181
|
listRepliesTo(targets: readonly string[]): Document[];
|
|
182
182
|
/** Served posts with an `in-reply-to`, unlisted ones included, newest first. */
|
|
183
183
|
listReplyPosts(options?: ListOptions): Document[];
|
|
184
184
|
/**
|
|
185
|
-
* The served documents a `/replies/` key names
|
|
185
|
+
* The served documents a `/replies/` key names: the ones whose
|
|
186
186
|
* feed guid has that key, and the reply posts whose object id has it. One
|
|
187
187
|
* indexed lookup, so a key that names nothing costs nothing else.
|
|
188
188
|
*/
|
|
@@ -190,14 +190,14 @@ export interface ReplyReader {
|
|
|
190
190
|
}
|
|
191
191
|
export interface BacklinkReader {
|
|
192
192
|
/**
|
|
193
|
-
* The listed posts and pages whose body links to `document`, newest first
|
|
194
|
-
*
|
|
193
|
+
* The listed posts and pages whose body links to `document`, newest first:
|
|
194
|
+
* its backlinks.
|
|
195
195
|
*
|
|
196
196
|
* A link names a path rather than a document, and is matched to one here,
|
|
197
197
|
* on read: a link to the document's permalink, or to a `redirect_from` of it
|
|
198
198
|
* that still leads to it, whichever way the link was spelled; to `/` when
|
|
199
199
|
* `home` says the document is the homepage; and to any URL the site answers
|
|
200
|
-
* with a redirect that ends on one of those
|
|
200
|
+
* with a redirect that ends on one of those. So a link written
|
|
201
201
|
* before its target existed counts once the target does, a post that
|
|
202
202
|
* becomes public later counts from then, and an edited redirect file moves
|
|
203
203
|
* a backlink, with nothing rewritten. A document linking to itself is not
|
|
@@ -208,7 +208,7 @@ export interface BacklinkReader {
|
|
|
208
208
|
export interface SearchReader {
|
|
209
209
|
/**
|
|
210
210
|
* Published, untrashed, already-due posts and pages matching a reader's
|
|
211
|
-
* query, best match first
|
|
211
|
+
* query, best match first.
|
|
212
212
|
*
|
|
213
213
|
* `query` is what somebody typed, not FTS5 syntax: see `searchExpression`
|
|
214
214
|
* for what it understands. A query with nothing searchable in it finds
|
|
@@ -285,10 +285,10 @@ export interface IndexWriter {
|
|
|
285
285
|
/**
|
|
286
286
|
* Empty the index: every document, its terms and its words.
|
|
287
287
|
*
|
|
288
|
-
* What a rebuild does before it reads the files again
|
|
288
|
+
* What a rebuild does before it reads the files again, and the
|
|
289
289
|
* counterpart of the `DELETE FROM documents` three migrations run for the
|
|
290
|
-
* same reason. The index is derived and the files are the source of truth
|
|
291
|
-
*
|
|
290
|
+
* same reason. The index is derived and the files are the source of truth,
|
|
291
|
+
* so this loses nothing a scan cannot work out again — and it
|
|
292
292
|
* is the whole point: a row whose hash matches its file is a row a scan
|
|
293
293
|
* leaves alone, so nothing short of emptying the index makes it read
|
|
294
294
|
* everything.
|
|
@@ -307,7 +307,7 @@ export interface IndexConnection {
|
|
|
307
307
|
/**
|
|
308
308
|
* Refuse every write on this connection while on, with SQLite's
|
|
309
309
|
* `query_only`. A worker handing over to a new one under `geekity serve`
|
|
310
|
-
* turns it on, so the new worker's boot migrations run alone
|
|
310
|
+
* turns it on, so the new worker's boot migrations run alone.
|
|
311
311
|
*/
|
|
312
312
|
setReadOnly(readOnly: boolean): void;
|
|
313
313
|
/** Close the database. Safe to call twice. */
|
|
@@ -316,7 +316,7 @@ export interface IndexConnection {
|
|
|
316
316
|
/**
|
|
317
317
|
* The derived index over the Markdown files.
|
|
318
318
|
*
|
|
319
|
-
* Files are the source of truth
|
|
319
|
+
* Files are the source of truth; this is a queryable copy that
|
|
320
320
|
* answers the questions a directory walk cannot answer cheaply. Deleting the
|
|
321
321
|
* database is safe because the next boot rebuilds it.
|
|
322
322
|
*/
|
package/dist/content/sync.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type DocumentChangeType = 'created' | 'updated' | 'deleted';
|
|
|
9
9
|
* `scan` is a full walk of the content directory, the boot scan included;
|
|
10
10
|
* `watch` is a file that changed under the running watcher; `admin` is a write
|
|
11
11
|
* the CMS made itself and announced, because the admin corrects the index as
|
|
12
|
-
* soon as the bytes land
|
|
12
|
+
* soon as the bytes land and the watcher's later re-read of that file
|
|
13
13
|
* is a hash no-op that would otherwise emit nothing at all.
|
|
14
14
|
*
|
|
15
15
|
* `schedule` is the odd one out: nothing was written at all, and the file is
|
|
@@ -119,7 +119,7 @@ export interface ContentSync {
|
|
|
119
119
|
* finish with it.
|
|
120
120
|
*
|
|
121
121
|
* The admin writes a file and corrects the index in the same request rather
|
|
122
|
-
* than waiting for the watcher
|
|
122
|
+
* than waiting for the watcher, which means the watcher's re-read
|
|
123
123
|
* finds a hash that already matches and emits nothing. Without this, no
|
|
124
124
|
* subscriber would ever hear about an admin save. The promise settles once
|
|
125
125
|
* every listener has, so a caller that has to know the change was seen — the
|
|
@@ -148,7 +148,7 @@ export interface ContentSync {
|
|
|
148
148
|
/**
|
|
149
149
|
* Build the sync for one content directory.
|
|
150
150
|
*
|
|
151
|
-
* Files are the source of truth
|
|
151
|
+
* Files are the source of truth. A scan parses every document
|
|
152
152
|
* under `content/`, writes the ones whose hash differs from the indexed row,
|
|
153
153
|
* and drops rows whose file has gone. Nothing else in the directory is
|
|
154
154
|
* touched: uploads, directory data files and every underscore-prefixed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/content/sync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/content/sync.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,qCAAqC;AACrC,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAEnE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;AAEnE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,IAAI,EAAE,kBAAkB,CAAC;IACzB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,+EAA+E;IAC/E,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B,wEAAwE;IACxE,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B,4DAA4D;IAC5D,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,4BAA4B;AAC5B,MAAM,WAAW,UAAU;IACzB,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,mFAAmF;IACnF,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oFAAoF;AACpF,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,OAAO,EAAE,M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