@geekity/cms 0.42.1 → 0.42.2
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/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/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.js +14 -14
- 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 +11 -12
- 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/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.js +6 -6
- 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 +2 -2
- 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 +1 -1
- package/dist/store/deliveries.d.ts.map +1 -1
- package/dist/store/deliveries.js +10 -15
- 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 +2 -2
package/dist/admin/taxonomy.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Managing the terms themselves: renaming a tag, merging one into another, and
|
|
3
3
|
* deleting one.
|
|
4
4
|
*
|
|
5
|
-
* The files are the truth
|
|
5
|
+
* The files are the truth, so every one of those is a rewrite of the
|
|
6
6
|
* front matter of every file carrying the term rather than an edit of a row.
|
|
7
7
|
* The whole of the change to one file's term list is
|
|
8
8
|
* {@link applyTermChange}; everything else here is what turns that into a
|
|
@@ -127,7 +127,7 @@ export function mountTaxonomyScreens(app, options) {
|
|
|
127
127
|
* is `undefined`, so it carries neither.
|
|
128
128
|
*
|
|
129
129
|
* Each file is read and re-parsed from disk rather than taken out of the index
|
|
130
|
-
* (
|
|
130
|
+
* (the files are the truth). The index can be a moment behind — a hand
|
|
131
131
|
* edit the watcher has not seen yet — and a bulk rewrite that trusted it would
|
|
132
132
|
* quietly put that edit back. A file that has gone or will not parse is
|
|
133
133
|
* skipped and reported rather than overwritten with what the index remembers.
|
|
@@ -259,8 +259,8 @@ export function changedTerms(document, taxonomy, from, to) {
|
|
|
259
259
|
* already had rather than jumping to the source's; a `to` of `undefined` is a
|
|
260
260
|
* delete. A list that does not carry `from` comes back as it was.
|
|
261
261
|
*
|
|
262
|
-
* `keyOf` says which spellings are one term: every casing of a tag is one
|
|
263
|
-
*
|
|
262
|
+
* `keyOf` says which spellings are one term: every casing of a tag is one,
|
|
263
|
+
* so a rename reaches all of them.
|
|
264
264
|
*/
|
|
265
265
|
export function applyTermChange(terms, from, to, keyOf = (term) => term) {
|
|
266
266
|
const is = (a, b) => keyOf(a) === keyOf(b);
|
|
@@ -6,7 +6,7 @@ import { Environment } from 'nunjucks';
|
|
|
6
6
|
*
|
|
7
7
|
* They are a set of their own, not part of the theme search path: the theme a
|
|
8
8
|
* site wears may override any public template, and must not be able to shadow
|
|
9
|
-
* the login form or the CSRF field inside it
|
|
9
|
+
* the login form or the CSRF field inside it.
|
|
10
10
|
*
|
|
11
11
|
* A template is in exactly one of three folders under it:
|
|
12
12
|
*
|
|
@@ -18,7 +18,7 @@ import { Environment } from 'nunjucks';
|
|
|
18
18
|
* component, and what a page includes: the flash and the admin bar.
|
|
19
19
|
*
|
|
20
20
|
* Beside them, `static/` holds what a browser fetches and `src/` the stylesheet
|
|
21
|
-
* source that `pnpm build` compiles into `static/admin.css
|
|
21
|
+
* source that `pnpm build` compiles into `static/admin.css`.
|
|
22
22
|
*/
|
|
23
23
|
export declare const PACKAGED_ADMIN_DIR: string;
|
|
24
24
|
/**
|
package/dist/admin/templates.js
CHANGED
|
@@ -12,7 +12,7 @@ import { drawBlock } from './blocks.js';
|
|
|
12
12
|
*
|
|
13
13
|
* They are a set of their own, not part of the theme search path: the theme a
|
|
14
14
|
* site wears may override any public template, and must not be able to shadow
|
|
15
|
-
* the login form or the CSRF field inside it
|
|
15
|
+
* the login form or the CSRF field inside it.
|
|
16
16
|
*
|
|
17
17
|
* A template is in exactly one of three folders under it:
|
|
18
18
|
*
|
|
@@ -24,7 +24,7 @@ import { drawBlock } from './blocks.js';
|
|
|
24
24
|
* component, and what a page includes: the flash and the admin bar.
|
|
25
25
|
*
|
|
26
26
|
* Beside them, `static/` holds what a browser fetches and `src/` the stylesheet
|
|
27
|
-
* source that `pnpm build` compiles into `static/admin.css
|
|
27
|
+
* source that `pnpm build` compiles into `static/admin.css`.
|
|
28
28
|
*/
|
|
29
29
|
export const PACKAGED_ADMIN_DIR = fileURLToPath(new URL('../../admin/', import.meta.url));
|
|
30
30
|
/**
|
package/dist/admin/tools.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export interface MountToolsOptions {
|
|
|
103
103
|
* what it did on the flash. There is no progress bar and nothing to poll:
|
|
104
104
|
* `node:sqlite` is synchronous, so a rebuild moved off the request would block
|
|
105
105
|
* the same event loop from somewhere nobody can see, and progress would need
|
|
106
|
-
* state the database is not allowed to keep
|
|
106
|
+
* state the database is not allowed to keep. A site whose scan
|
|
107
107
|
* takes long enough for that to matter is one that should be told, which is
|
|
108
108
|
* what the screen does.
|
|
109
109
|
*/
|
package/dist/admin/tools.js
CHANGED
|
@@ -86,7 +86,7 @@ export async function rebuildContentIndex(options) {
|
|
|
86
86
|
* what it did on the flash. There is no progress bar and nothing to poll:
|
|
87
87
|
* `node:sqlite` is synchronous, so a rebuild moved off the request would block
|
|
88
88
|
* the same event loop from somewhere nobody can see, and progress would need
|
|
89
|
-
* state the database is not allowed to keep
|
|
89
|
+
* state the database is not allowed to keep. A site whose scan
|
|
90
90
|
* takes long enough for that to matter is one that should be told, which is
|
|
91
91
|
* what the screen does.
|
|
92
92
|
*/
|
package/dist/admin/users.d.ts
CHANGED
|
@@ -2,61 +2,18 @@ import type { Hono } from 'hono';
|
|
|
2
2
|
import type { GeekityEnv } from '../web/env.ts';
|
|
3
3
|
import type { ProfileLink, User } from '../site/users.ts';
|
|
4
4
|
import type { AdminRender } from './documents.ts';
|
|
5
|
-
/**
|
|
6
|
-
* Where the add form lives, and where it posts.
|
|
7
|
-
*
|
|
8
|
-
* A screen of its own rather than a panel under the table, because the menu
|
|
9
|
-
* says Users > Add new and a menu entry has to be somewhere to go. It is also
|
|
10
|
-
* what keeps a refused add on a page about adding somebody instead of at the
|
|
11
|
-
* top of a list of everybody.
|
|
12
|
-
*/
|
|
13
5
|
export declare const ADD_USER_PATH = "/admin/users/new";
|
|
14
|
-
/**
|
|
15
|
-
* Users > Connected apps: the apps holding a token for whoever is signed in
|
|
16
|
-
* (TASK-162). Mounted by `admin/connected-apps.ts`; named here so the
|
|
17
|
-
* menu can link it without importing the IndieAuth side.
|
|
18
|
-
*/
|
|
19
6
|
export declare const CONNECTED_APPS_PATH = "/admin/users/apps";
|
|
20
|
-
/** The child of Users the connected apps screen is. */
|
|
21
7
|
export declare const CONNECTED_APPS_CHILD = "apps";
|
|
22
|
-
/**
|
|
23
|
-
* Users > App activity: what apps sent to the IndieAuth and Micropub
|
|
24
|
-
* endpoints, and what they were answered (TASK-221). Mounted by
|
|
25
|
-
* `admin/app-activity.ts`; named here for the same reason as Connected apps.
|
|
26
|
-
*/
|
|
27
8
|
export declare const APP_ACTIVITY_PATH = "/admin/users/activity";
|
|
28
|
-
/** The child of Users the app activity screen is. */
|
|
29
9
|
export declare const APP_ACTIVITY_CHILD = "activity";
|
|
30
|
-
/** Where the signed-in admin's change-password form posts. */
|
|
31
10
|
export declare const CHANGE_PASSWORD_PATH = "/admin/users/password";
|
|
32
|
-
/** Where a delete button posts, on the list or on the user's own screen. */
|
|
33
11
|
export declare const DELETE_USER_PATH = "/admin/users/delete";
|
|
34
|
-
/** Where the email address on the Account panel posts. */
|
|
35
12
|
export declare const USER_EMAIL_PATH = "/admin/users/email";
|
|
36
|
-
/**
|
|
37
|
-
* Where the Profile panel posts.
|
|
38
|
-
*
|
|
39
|
-
* A path of its own rather than a second half of the email form, because the
|
|
40
|
-
* two are about different audiences: an email address is private to the site
|
|
41
|
-
* and a profile is the public face decision-14 puts at the author URL. One
|
|
42
|
-
* form that saved both would mean an admin correcting a colleague's address
|
|
43
|
-
* also republishing their bio.
|
|
44
|
-
*/
|
|
45
13
|
export declare const USER_PROFILE_PATH = "/admin/users/profile";
|
|
46
|
-
/** Where the notice switches post. */
|
|
47
14
|
export declare const USER_NOTIFICATIONS_PATH = "/admin/users/notifications";
|
|
48
|
-
/**
|
|
49
|
-
* Where the how-often selects post.
|
|
50
|
-
*
|
|
51
|
-
* A path of its own rather than a second field on the switch, because the two
|
|
52
|
-
* forms answer different questions and a switch is a button while a mode is a
|
|
53
|
-
* select and a Save: one handler that had to work out which of the two it had
|
|
54
|
-
* been given would be guessing at something the URL can simply say.
|
|
55
|
-
*/
|
|
56
15
|
export declare const USER_NOTIFICATION_MODE_PATH = "/admin/users/notifications/mode";
|
|
57
|
-
/** Where the Theme panel posts; it sets the signed-in user's own theme and names nobody. */
|
|
58
16
|
export declare const USER_THEME_PATH = "/admin/users/theme";
|
|
59
|
-
/** The fields the forms on these screens submit. */
|
|
60
17
|
export declare const USER_FIELDS: {
|
|
61
18
|
readonly username: 'username';
|
|
62
19
|
readonly password: 'password';
|
|
@@ -66,166 +23,50 @@ export declare const USER_FIELDS: {
|
|
|
66
23
|
readonly newPassword: 'new_password';
|
|
67
24
|
readonly newPasswordConfirmation: 'new_password_confirmation';
|
|
68
25
|
readonly userId: 'user_id';
|
|
69
|
-
/** Which notice a switch is about, by its name in the registry. */
|
|
70
26
|
readonly event: 'event';
|
|
71
|
-
/**
|
|
72
|
-
* Whether that notice is wanted.
|
|
73
|
-
*
|
|
74
|
-
* A checkbox, so a form that turns one off submits nothing at all under this
|
|
75
|
-
* name — which is why the switch is a form of its own per event rather than
|
|
76
|
-
* one form with a checkbox per event: a browser sends no field for an
|
|
77
|
-
* unticked box, and one form could not tell "turned this off" from "did not
|
|
78
|
-
* mention it".
|
|
79
|
-
*/
|
|
80
27
|
readonly on: 'on';
|
|
81
|
-
/** How often that notice should arrive, for an event that offers a choice. */
|
|
82
28
|
readonly mode: 'mode';
|
|
83
|
-
/** The name to print instead of the login (TASK-67). */
|
|
84
29
|
readonly displayName: 'display_name';
|
|
85
|
-
/** A few sentences about this person. */
|
|
86
30
|
readonly bio: 'bio';
|
|
87
|
-
/** Their picture, as a path or a URL. */
|
|
88
31
|
readonly avatar: 'avatar';
|
|
89
|
-
/** What they do, printed beside the name in a bio (TASK-79). */
|
|
90
32
|
readonly jobTitle: 'job_title';
|
|
91
|
-
/** Where they are, as they write it. */
|
|
92
33
|
readonly location: 'location';
|
|
93
|
-
/** Somewhere else they are: one `Label | URL` per line. */
|
|
94
34
|
readonly links: 'links';
|
|
95
|
-
/** The admin's theme: a built-in DaisyUI theme's name, or empty to follow the system. */
|
|
96
35
|
readonly adminTheme: 'admin_theme';
|
|
97
36
|
};
|
|
98
|
-
/** What {@link mountUsers} needs from the admin around it. */
|
|
99
37
|
export interface MountUsersOptions {
|
|
100
|
-
/** The admin's renderer, which injects the chrome, the CSRF token and the flash. */
|
|
101
38
|
render: AdminRender;
|
|
102
39
|
}
|
|
103
|
-
/**
|
|
104
|
-
* Register the users screens: the list, the add form, and one screen per user
|
|
105
|
-
* where everything about that person is edited.
|
|
106
|
-
*
|
|
107
|
-
* The same split documents.ts makes (TASK-97). The table says who there is;
|
|
108
|
-
* a person's own screen holds their email address, their public profile, what
|
|
109
|
-
* they are emailed about, and — where the account can go — the delete. Every
|
|
110
|
-
* save lands back on that screen, so it shows its own result.
|
|
111
|
-
*
|
|
112
|
-
* One thing is still only ever your own: the password. Changing somebody
|
|
113
|
-
* else's is deliberately not offered — resetting a colleague's password from
|
|
114
|
-
* under them is what `geekity user add` and a fresh account are for, and it
|
|
115
|
-
* keeps the current-password check honest.
|
|
116
|
-
*/
|
|
117
40
|
export declare function mountUsers(app: Hono<GeekityEnv>, options: MountUsersOptions): void;
|
|
118
|
-
/**
|
|
119
|
-
* Take a user out of the file. Returns `false` when there was nothing to take.
|
|
120
|
-
*
|
|
121
|
-
* Their IndieAuth tokens go with them (TASK-160): a token is a file in
|
|
122
|
-
* `data/` too, so it is revoked here, where every caller deletes a user.
|
|
123
|
-
*
|
|
124
|
-
* Their sessions are not ended here: sessions are in the database, and the
|
|
125
|
-
* screen that deletes a user ends them itself. A session that outlives this —
|
|
126
|
-
* one in a database restored from a backup, say — names a user the file no
|
|
127
|
-
* longer holds, and the admin guard turns that into no session at all.
|
|
128
|
-
*/
|
|
129
41
|
export declare function deleteUser(input: {
|
|
130
42
|
dataDir: string;
|
|
131
43
|
userId: number;
|
|
132
44
|
now: Date;
|
|
133
45
|
}): Promise<boolean>;
|
|
134
|
-
/**
|
|
135
|
-
* Delete a user.
|
|
136
|
-
*
|
|
137
|
-
* Two refusals, in this order. The last remaining user cannot go, because a
|
|
138
|
-
* site with no users falls back into first-run setup and anybody who reaches
|
|
139
|
-
* it becomes its admin. And nobody may delete their own account: it would end
|
|
140
|
-
* the session doing the deleting, and there is no undo. Both are a flash and a
|
|
141
|
-
* redirect rather than a 400, because nothing was typed to send back.
|
|
142
|
-
*/
|
|
143
46
|
export declare function deleteUserRefusal(input: {
|
|
144
|
-
/** The user the form named, or `undefined` when there is no such row. */
|
|
145
47
|
target: User | undefined;
|
|
146
|
-
/** Who is asking. */
|
|
147
48
|
signedInAs: number | null;
|
|
148
|
-
/** How many users the site has. */
|
|
149
49
|
total: number;
|
|
150
50
|
}): string | undefined;
|
|
151
|
-
/** One message per field of the change-password form that is wrong. */
|
|
152
51
|
export type ChangePasswordProblems = {
|
|
153
52
|
currentPassword?: string;
|
|
154
53
|
newPassword?: string;
|
|
155
54
|
};
|
|
156
|
-
/**
|
|
157
|
-
* What is wrong with a proposed password change, one message per field.
|
|
158
|
-
*
|
|
159
|
-
* The current password is taken as already checked, rather than checked here,
|
|
160
|
-
* so this stays a pure function over what the store said.
|
|
161
|
-
*/
|
|
162
55
|
export declare function changePasswordProblems(input: {
|
|
163
|
-
/** Whether the current password the form carried is this user's. */
|
|
164
56
|
correct: boolean;
|
|
165
57
|
next: string;
|
|
166
58
|
confirmation: string;
|
|
167
59
|
}): ChangePasswordProblems;
|
|
168
|
-
/** One message per field of the add form that is wrong. */
|
|
169
60
|
export type AddUserProblems = {
|
|
170
61
|
username?: string;
|
|
171
62
|
password?: string;
|
|
172
63
|
email?: string;
|
|
173
64
|
};
|
|
174
|
-
/**
|
|
175
|
-
* What is wrong with a proposed user, one message per field.
|
|
176
|
-
*
|
|
177
|
-
* The rules are the shared ones, so an account made here is one
|
|
178
|
-
* `/admin/setup` and `geekity user add` would both have accepted. A generated
|
|
179
|
-
* password is not checked against them — it is made to satisfy them — and the
|
|
180
|
-
* password field is not read at all when the box is ticked, so a stale value
|
|
181
|
-
* left in it cannot be what is refused. An empty email is not a problem: it is
|
|
182
|
-
* an optional field, and most users will never have one.
|
|
183
|
-
*/
|
|
184
65
|
export declare function addUserProblems(username: string, password: string, generate?: boolean, email?: string): AddUserProblems;
|
|
185
|
-
/**
|
|
186
|
-
* The alphabet a generated password is drawn from: no `0`/`O` and no `1`/`l`,
|
|
187
|
-
* because a generated password is read off a screen and typed somewhere else.
|
|
188
|
-
*/
|
|
189
66
|
export declare const GENERATED_PASSWORD_ALPHABET = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789";
|
|
190
|
-
/** How many characters a generated password has. 20 is about 116 bits here. */
|
|
191
67
|
export declare const GENERATED_PASSWORD_LENGTH = 20;
|
|
192
|
-
/** A password nobody chose, from `randomInt` rather than `Math.random`. */
|
|
193
68
|
export declare function generatePassword(): string;
|
|
194
|
-
/**
|
|
195
|
-
* A textarea of links as the list a profile stores: one per line, `Label |
|
|
196
|
-
* URL`, or a bare URL that labels itself.
|
|
197
|
-
*
|
|
198
|
-
* A textarea rather than a repeating fieldset because a profile has two or
|
|
199
|
-
* three links and a table row has no space for a widget; the separator is a
|
|
200
|
-
* pipe because it is the one character nobody puts in a link label by
|
|
201
|
-
* accident. Blank lines are skipped and the empties are dropped inside
|
|
202
|
-
* `setUserProfile`, so a list somebody emptied leaves no key behind.
|
|
203
|
-
*/
|
|
204
69
|
export declare function parseProfileLinks(value: string): ProfileLink[];
|
|
205
|
-
/**
|
|
206
|
-
* What is wrong with a typed list of profile links, or `undefined` when
|
|
207
|
-
* nothing is.
|
|
208
|
-
*
|
|
209
|
-
* The check the box never had (TASK-112). A URL goes through
|
|
210
|
-
* {@link isLinkUrl}, the rule the Navigation screen's menu box already used,
|
|
211
|
-
* so `Elsewhere | not a url` is refused in both places and for the same
|
|
212
|
-
* reason. One message naming the first bad line, for the reason the menu box's
|
|
213
|
-
* message names one: a box is fixed a line at a time, and the line to fix is
|
|
214
|
-
* the useful half of the sentence.
|
|
215
|
-
*
|
|
216
|
-
* The same line as a menu item's, down to the `rel` values it may end in
|
|
217
|
-
* (TASK-114): somebody who learns one box has learned the other, and a
|
|
218
|
-
* trailing `| me` — the line that started all this — is a link rather than a
|
|
219
|
-
* mistake. A profile link is published `rel="me"` either way, so typing it is
|
|
220
|
-
* a no-op; typing `| me nofollow author` is three values on the rendered
|
|
221
|
-
* attribute.
|
|
222
|
-
*
|
|
223
|
-
* Tolerant on the way out and strict on the way in: {@link parseProfileLinks}
|
|
224
|
-
* and the file's own reader still take anything, so a link stored before this
|
|
225
|
-
* check existed still renders and still comes back in the box. Refusing a save
|
|
226
|
-
* is not refusing a read.
|
|
227
|
-
*/
|
|
228
70
|
export declare function profileLinkLineProblem(value: string): string | undefined;
|
|
229
|
-
/** A stored list of links back as the textarea shows it. */
|
|
230
71
|
export declare function formatProfileLinks(links: readonly ProfileLink[] | undefined): string;
|
|
231
72
|
//# sourceMappingURL=users.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/admin/users.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAW,IAAI,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAgBhD,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/admin/users.ts"],"names":[],"mappings":"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"}
|