emdash 0.30.0 → 0.31.1
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/api/route-utils.mjs +13 -13
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-b8WIiGU4.mjs → api-BkqFzIu4.mjs} +23 -23
- package/dist/api-BkqFzIu4.mjs.map +1 -0
- package/dist/{apply-CmIJK9j8.mjs → apply-DuXsqll7.mjs} +26 -25
- package/dist/apply-DuXsqll7.mjs.map +1 -0
- package/dist/astro/index.d.mts +2 -2
- package/dist/astro/index.mjs +1 -1
- package/dist/astro/middleware/auth.d.mts +2 -2
- package/dist/astro/middleware/auth.mjs +2 -2
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.mjs +1 -1
- package/dist/astro/middleware.d.mts +2 -2
- package/dist/astro/middleware.mjs +146 -70
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +6 -6
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +6 -6
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +3 -3
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +3 -3
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +7 -7
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +7 -7
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +7 -7
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +14 -14
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +14 -14
- package/dist/astro/routes/api/admin/bylines/index.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/bylines/index.mjs +18 -17
- package/dist/astro/routes/api/admin/bylines/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +9 -9
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +4 -4
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
- package/dist/astro/routes/api/admin/media-usage/repair.mjs +10 -10
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +4 -4
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/index.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/updates.mjs +34 -34
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +34 -34
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +34 -34
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +6 -6
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +6 -6
- package/dist/astro/routes/api/auth/dev-bypass.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/index.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/register-options.mjs +6 -6
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +7 -7
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +7 -7
- package/dist/astro/routes/api/auth/mode.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/index.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +7 -7
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/request.mjs +7 -7
- package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +10 -10
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +14 -14
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +14 -14
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +13 -13
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/authors.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/index.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/trash.mjs +7 -7
- package/dist/astro/routes/api/dashboard.mjs +7 -7
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/import/probe.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/execute.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress/media.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/media.mjs +7 -7
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +19 -19
- package/dist/astro/routes/api/manifest.mjs +3 -3
- package/dist/astro/routes/api/mcp.mjs +39 -39
- package/dist/astro/routes/api/media/_id_/confirm.mjs +7 -7
- package/dist/astro/routes/api/media/_id_/usage.mjs +11 -11
- package/dist/astro/routes/api/media/_id_.mjs +10 -10
- package/dist/astro/routes/api/media/file/_...key_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +3 -3
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +3 -3
- package/dist/astro/routes/api/media/providers/index.mjs +3 -3
- package/dist/astro/routes/api/media/upload-url.mjs +7 -7
- package/dist/astro/routes/api/media.mjs +10 -10
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +8 -8
- package/dist/astro/routes/api/menus/_name_/items.mjs +8 -8
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +8 -8
- package/dist/astro/routes/api/menus/_name_/translations.mjs +8 -8
- package/dist/astro/routes/api/menus/_name_.mjs +8 -8
- package/dist/astro/routes/api/menus/index.mjs +8 -8
- package/dist/astro/routes/api/oauth/authorize.d.mts.map +1 -1
- package/dist/astro/routes/api/oauth/authorize.mjs +23 -9
- package/dist/astro/routes/api/oauth/authorize.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/device/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/code.mjs +4 -4
- package/dist/astro/routes/api/oauth/device/token.mjs +4 -4
- package/dist/astro/routes/api/oauth/register.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/refresh.mjs +3 -3
- package/dist/astro/routes/api/oauth/token/revoke.mjs +3 -3
- package/dist/astro/routes/api/oauth/token.mjs +2 -2
- package/dist/astro/routes/api/openapi.json.mjs +4 -4
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +10 -10
- package/dist/astro/routes/api/redirects/404s/summary.mjs +10 -10
- package/dist/astro/routes/api/redirects/_id_.mjs +11 -11
- package/dist/astro/routes/api/redirects/index.mjs +11 -11
- package/dist/astro/routes/api/relations/_id_/index.mjs +14 -14
- package/dist/astro/routes/api/relations/_id_/translations.mjs +10 -10
- package/dist/astro/routes/api/relations/index.mjs +14 -14
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +3 -3
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/index.mjs +34 -34
- package/dist/astro/routes/api/schema/index.mjs +8 -8
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +34 -34
- package/dist/astro/routes/api/schema/orphans/index.mjs +34 -34
- package/dist/astro/routes/api/search/enable.mjs +11 -11
- package/dist/astro/routes/api/search/index.mjs +10 -10
- package/dist/astro/routes/api/search/rebuild.mjs +11 -11
- package/dist/astro/routes/api/search/stats.mjs +7 -7
- package/dist/astro/routes/api/search/suggest.mjs +10 -10
- package/dist/astro/routes/api/sections/_slug_.mjs +10 -10
- package/dist/astro/routes/api/sections/index.mjs +10 -10
- package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +4 -4
- package/dist/astro/routes/api/settings/backups/archives/index.mjs +4 -4
- package/dist/astro/routes/api/settings/backups/export.mjs +4 -4
- package/dist/astro/routes/api/settings/backups/index.mjs +5 -5
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings.mjs +12 -12
- package/dist/astro/routes/api/setup/admin-verify.mjs +6 -6
- package/dist/astro/routes/api/setup/admin.mjs +6 -6
- package/dist/astro/routes/api/setup/dev-bypass.mjs +18 -18
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +22 -22
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +4 -4
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +13 -13
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +13 -13
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +13 -13
- package/dist/astro/routes/api/taxonomies/index.mjs +13 -13
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +7 -7
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +10 -10
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +10 -10
- package/dist/astro/routes/api/widget-areas/_name_.mjs +6 -6
- package/dist/astro/routes/api/widget-areas/index.mjs +10 -10
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +5 -5
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +7 -7
- package/dist/astro/routes/sitemap.xml.mjs +5 -5
- package/dist/astro/types.d.mts +2 -2
- package/dist/{authorize-WxsiePzy.mjs → authorize-6WPZa1xZ.mjs} +2 -2
- package/dist/{authorize-WxsiePzy.mjs.map → authorize-6WPZa1xZ.mjs.map} +1 -1
- package/dist/{backup-S8kFWtwD.mjs → backup-DoW-H0r4.mjs} +2 -2
- package/dist/{backup-S8kFWtwD.mjs.map → backup-DoW-H0r4.mjs.map} +1 -1
- package/dist/{byline-XEjchwzZ.mjs → byline-BTOxUlFF.mjs} +6 -6
- package/dist/{byline-XEjchwzZ.mjs.map → byline-BTOxUlFF.mjs.map} +1 -1
- package/dist/{bylines-czseViYo.mjs → bylines-Bc-3xtpz.mjs} +6 -6
- package/dist/{bylines-czseViYo.mjs.map → bylines-Bc-3xtpz.mjs.map} +1 -1
- package/dist/{bylines-BJbT4gKS.mjs → bylines-oVN0iPwX.mjs} +12 -8
- package/dist/bylines-oVN0iPwX.mjs.map +1 -0
- package/dist/{cache-CGCd6AVM.mjs → cache-DDwy3JDW.mjs} +2 -2
- package/dist/{cache-CGCd6AVM.mjs.map → cache-DDwy3JDW.mjs.map} +1 -1
- package/dist/{chunks-BxXyunY-.mjs → chunks-Bq-5DPrD.mjs} +2 -2
- package/dist/{chunks-BxXyunY-.mjs.map → chunks-Bq-5DPrD.mjs.map} +1 -1
- package/dist/cli/index.mjs +18 -18
- package/dist/{comment-DPT0WKyd.mjs → comment-B9cUud8H.mjs} +2 -2
- package/dist/{comment-DPT0WKyd.mjs.map → comment-B9cUud8H.mjs.map} +1 -1
- package/dist/{comment-reaction-C65MldIB.mjs → comment-reaction-VUXO981F.mjs} +2 -2
- package/dist/{comment-reaction-C65MldIB.mjs.map → comment-reaction-VUXO981F.mjs.map} +1 -1
- package/dist/{comments-Bz6sCbgD.mjs → comments-PXj1E9Si.mjs} +3 -3
- package/dist/{comments-Bz6sCbgD.mjs.map → comments-PXj1E9Si.mjs.map} +1 -1
- package/dist/{config-CVssduLe.mjs → config-B6b_BobR.mjs} +6 -2
- package/dist/config-B6b_BobR.mjs.map +1 -0
- package/dist/{content-Ci04z2z-.mjs → content-BC43pICM.mjs} +4 -4
- package/dist/{content-Ci04z2z-.mjs.map → content-BC43pICM.mjs.map} +1 -1
- package/dist/{content-refresh-D4khvC0R.mjs → content-refresh-CPMSauD3.mjs} +4 -4
- package/dist/{content-refresh-D4khvC0R.mjs.map → content-refresh-CPMSauD3.mjs.map} +1 -1
- package/dist/{context-B6hc7zJL.mjs → context-DOurRIrb.mjs} +10 -10
- package/dist/{context-B6hc7zJL.mjs.map → context-DOurRIrb.mjs.map} +1 -1
- package/dist/{dashboard-C5NkXFbi.mjs → dashboard-CBm4zhc3.mjs} +4 -4
- package/dist/{dashboard-C5NkXFbi.mjs.map → dashboard-CBm4zhc3.mjs.map} +1 -1
- package/dist/database/pg-migration-lock.d.mts.map +1 -1
- package/dist/database/pg-migration-lock.mjs +1 -4
- package/dist/database/pg-migration-lock.mjs.map +1 -1
- package/dist/db/index.mjs +2 -2
- package/dist/{dialect-helpers-HxEQGl_1.mjs → dialect-helpers-BtOwo2us.mjs} +4 -4
- package/dist/dialect-helpers-BtOwo2us.mjs.map +1 -0
- package/dist/{error-CEGF6UZb.mjs → error-DJ98TRbQ.mjs} +2 -2
- package/dist/{error-CEGF6UZb.mjs.map → error-DJ98TRbQ.mjs.map} +1 -1
- package/dist/{field-defs-cache-DvmlgP-D.mjs → field-defs-cache-KfNJ_qLQ.mjs} +2 -2
- package/dist/{field-defs-cache-DvmlgP-D.mjs.map → field-defs-cache-KfNJ_qLQ.mjs.map} +1 -1
- package/dist/{fts-manager-DzqIBrrW.mjs → fts-manager-hyCU9OOp.mjs} +3 -3
- package/dist/{fts-manager-DzqIBrrW.mjs.map → fts-manager-hyCU9OOp.mjs.map} +1 -1
- package/dist/{hreflang-db2Tpb2o.mjs → hreflang-CbYeCzl9.mjs} +7 -7
- package/dist/{hreflang-db2Tpb2o.mjs.map → hreflang-CbYeCzl9.mjs.map} +1 -1
- package/dist/{import-Dmkm8S1W.mjs → import-oDYCgNYQ.mjs} +2 -2
- package/dist/{import-Dmkm8S1W.mjs.map → import-oDYCgNYQ.mjs.map} +1 -1
- package/dist/{index-wYnC6u4o.d.mts → index-BZJ_5FOX.d.mts} +50 -4
- package/dist/index-BZJ_5FOX.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +48 -48
- package/dist/{load-Cx27ki1l.mjs → load-Dg5gtWma.mjs} +2 -2
- package/dist/{load-Cx27ki1l.mjs.map → load-Dg5gtWma.mjs.map} +1 -1
- package/dist/{loader-Be3ouI5L.mjs → loader-D4rigvjR.mjs} +4 -4
- package/dist/{loader-Be3ouI5L.mjs.map → loader-D4rigvjR.mjs.map} +1 -1
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/media/local-runtime.mjs +5 -5
- package/dist/{media-kIV1IxFf.mjs → media-BJ6SRY3g.mjs} +8 -4
- package/dist/media-BJ6SRY3g.mjs.map +1 -0
- package/dist/{media-BjhhENaJ.mjs → media-its1WLYv.mjs} +2 -2
- package/dist/{media-BjhhENaJ.mjs.map → media-its1WLYv.mjs.map} +1 -1
- package/dist/{media-upload-D2wk3EIt.mjs → media-upload-DNu3QySc.mjs} +4 -4
- package/dist/{media-upload-D2wk3EIt.mjs.map → media-upload-DNu3QySc.mjs.map} +1 -1
- package/dist/{media-usage-CljdO1mc.mjs → media-usage-DPQ3K4xB.mjs} +6 -6
- package/dist/{media-usage-CljdO1mc.mjs.map → media-usage-DPQ3K4xB.mjs.map} +1 -1
- package/dist/{menus-CZyG6rvx.mjs → menus-BMGzWyWH.mjs} +15 -8
- package/dist/menus-BMGzWyWH.mjs.map +1 -0
- package/dist/{menus-BcyElFtI.mjs → menus-CPf_SW7u.mjs} +86 -8
- package/dist/menus-CPf_SW7u.mjs.map +1 -0
- package/dist/{parse-C_-6klII.mjs → parse-53zyxlpv.mjs} +2 -2
- package/dist/{parse-C_-6klII.mjs.map → parse-53zyxlpv.mjs.map} +1 -1
- package/dist/plugin-utils.d.mts +2 -2
- package/dist/plugins/adapt-sandbox-entry.d.mts +2 -2
- package/dist/{query-DR73ZNfm.mjs → query-Bz9bWZfm.mjs} +14 -14
- package/dist/{query-DR73ZNfm.mjs.map → query-Bz9bWZfm.mjs.map} +1 -1
- package/dist/{query-Di7DOmPV.mjs → query-DdFGHzQF.mjs} +3 -3
- package/dist/{query-Di7DOmPV.mjs.map → query-DdFGHzQF.mjs.map} +1 -1
- package/dist/{rate-limit-CMj83JNW.mjs → rate-limit-D3IEiUi2.mjs} +2 -2
- package/dist/{rate-limit-CMj83JNW.mjs.map → rate-limit-D3IEiUi2.mjs.map} +1 -1
- package/dist/{redirect-CgLPYflR.mjs → redirect-BoUac4NT.mjs} +3 -3
- package/dist/{redirect-CgLPYflR.mjs.map → redirect-BoUac4NT.mjs.map} +1 -1
- package/dist/{redirects-B7t9bKsL.mjs → redirects-ChbpqKiS.mjs} +3 -3
- package/dist/{redirects-B7t9bKsL.mjs.map → redirects-ChbpqKiS.mjs.map} +1 -1
- package/dist/{redirects-BBq3n2Rj.mjs → redirects-D457qwt0.mjs} +8 -8
- package/dist/redirects-D457qwt0.mjs.map +1 -0
- package/dist/{registry-FV15nLge.mjs → registry-y21kjhfG.mjs} +6 -6
- package/dist/{registry-FV15nLge.mjs.map → registry-y21kjhfG.mjs.map} +1 -1
- package/dist/{relation-9M9j_UWo.mjs → relation-Du0r04E0.mjs} +3 -3
- package/dist/{relation-9M9j_UWo.mjs.map → relation-Du0r04E0.mjs.map} +1 -1
- package/dist/{relations-5_avdrN_.mjs → relations-CZMpBqEd.mjs} +3 -3
- package/dist/{relations-5_avdrN_.mjs.map → relations-CZMpBqEd.mjs.map} +1 -1
- package/dist/{relations-BKvO39-9.mjs → relations-DtX1UMBH.mjs} +13 -7
- package/dist/relations-DtX1UMBH.mjs.map +1 -0
- package/dist/{relations-Bh8jlFsU.d.mts → relations-qKmSj9KM.d.mts} +27 -23
- package/dist/relations-qKmSj9KM.d.mts.map +1 -0
- package/dist/{resolve-Cd9dzclN.mjs → resolve-DFr4kq72.mjs} +2 -2
- package/dist/{resolve-Cd9dzclN.mjs.map → resolve-DFr4kq72.mjs.map} +1 -1
- package/dist/{runner-DfnZ5eUr.mjs → runner-BdeLEgad.mjs} +3 -3
- package/dist/{runner-DfnZ5eUr.mjs.map → runner-BdeLEgad.mjs.map} +1 -1
- package/dist/runtime.d.mts +2 -2
- package/dist/runtime.mjs +3 -3
- package/dist/{schema-BXxlHeAf.mjs → schema-BH8P8vaC.mjs} +3 -3
- package/dist/{schema-BXxlHeAf.mjs.map → schema-BH8P8vaC.mjs.map} +1 -1
- package/dist/{scopes-Bl4IwHA-.mjs → scopes-DTIkIaGA.mjs} +2 -2
- package/dist/{scopes-Bl4IwHA-.mjs.map → scopes-DTIkIaGA.mjs.map} +1 -1
- package/dist/{search-Bff-7jFt.mjs → search-D-Yhpmvs.mjs} +8 -7
- package/dist/search-D-Yhpmvs.mjs.map +1 -0
- package/dist/{secrets-CSwQIl4q.mjs → secrets-CQ-69kF9.mjs} +23 -17
- package/dist/secrets-CQ-69kF9.mjs.map +1 -0
- package/dist/{sections-CwW4s1al.mjs → sections-CzVBAKjw.mjs} +3 -3
- package/dist/{sections-CwW4s1al.mjs.map → sections-CzVBAKjw.mjs.map} +1 -1
- package/dist/seed/index.mjs +16 -16
- package/dist/seo/index.mjs +12 -12
- package/dist/{seo-2cmFHZns.mjs → seo-kJzVAmmu.mjs} +2 -2
- package/dist/{seo-2cmFHZns.mjs.map → seo-kJzVAmmu.mjs.map} +1 -1
- package/dist/{service-DkGTWGIi.mjs → service-CQnc276a.mjs} +2 -2
- package/dist/{service-DkGTWGIi.mjs.map → service-CQnc276a.mjs.map} +1 -1
- package/dist/{settings-CpA4lQFt.mjs → settings-C2PaBS49.mjs} +3 -3
- package/dist/{settings-CpA4lQFt.mjs.map → settings-C2PaBS49.mjs.map} +1 -1
- package/dist/{settings-C4s8hFQm.mjs → settings-Dtc0DU31.mjs} +3 -3
- package/dist/{settings-C4s8hFQm.mjs.map → settings-Dtc0DU31.mjs.map} +1 -1
- package/dist/{taxonomies-Ce49uIzY.mjs → taxonomies-BN6M9Nrv.mjs} +26 -17
- package/dist/taxonomies-BN6M9Nrv.mjs.map +1 -0
- package/dist/{taxonomies-DjSKBZpq.mjs → taxonomies-r7pqLBCn.mjs} +53 -24
- package/dist/taxonomies-r7pqLBCn.mjs.map +1 -0
- package/dist/{taxonomy-DfVooU4W.mjs → taxonomy-0mCI25HN.mjs} +3 -3
- package/dist/{taxonomy-DfVooU4W.mjs.map → taxonomy-0mCI25HN.mjs.map} +1 -1
- package/dist/{types-D1iJ3DpO.mjs → types-CrRUFdej.mjs} +2 -2
- package/dist/{types-D1iJ3DpO.mjs.map → types-CrRUFdej.mjs.map} +1 -1
- package/dist/{user-Bh-L1qo6.mjs → user-aTXqmXBz.mjs} +3 -3
- package/dist/{user-Bh-L1qo6.mjs.map → user-aTXqmXBz.mjs.map} +1 -1
- package/dist/{validate-V9nCwq_-.mjs → validate-CDT1jl6_.mjs} +11 -6
- package/dist/validate-CDT1jl6_.mjs.map +1 -0
- package/dist/validate-DULfgpJP.d.mts.map +1 -1
- package/dist/{validation-BsVUJfsP.mjs → validation-DlD0E35W.mjs} +8 -8
- package/dist/{validation-BsVUJfsP.mjs.map → validation-DlD0E35W.mjs.map} +1 -1
- package/dist/version-BRMngh9I.mjs +7 -0
- package/dist/{version-907opKac.mjs.map → version-BRMngh9I.mjs.map} +1 -1
- package/dist/{widgets-DGv1Z04V.mjs → widgets-5fipNkMT.mjs} +2 -2
- package/dist/{widgets-DGv1Z04V.mjs.map → widgets-5fipNkMT.mjs.map} +1 -1
- package/dist/{wxr-taxonomies-Cs1N6O8z.mjs → wxr-taxonomies-DrihupaC.mjs} +4 -4
- package/dist/{wxr-taxonomies-Cs1N6O8z.mjs.map → wxr-taxonomies-DrihupaC.mjs.map} +1 -1
- package/dist/{zod-generator-B5prQ5M4.mjs → zod-generator-CwkHWz4f.mjs} +2 -2
- package/dist/{zod-generator-B5prQ5M4.mjs.map → zod-generator-CwkHWz4f.mjs.map} +1 -1
- package/package.json +7 -7
- package/src/api/handlers/bylines.ts +5 -4
- package/src/api/handlers/content.ts +25 -7
- package/src/api/handlers/menus.ts +11 -6
- package/src/api/handlers/relations.ts +7 -2
- package/src/api/handlers/taxonomies.ts +22 -14
- package/src/api/schemas/bylines.ts +4 -4
- package/src/api/schemas/common.ts +7 -6
- package/src/api/schemas/menus.ts +2 -1
- package/src/api/schemas/relations.ts +3 -1
- package/src/api/schemas/taxonomies.ts +4 -2
- package/src/astro/prefetch.ts +7 -2
- package/src/astro/routes/api/admin/bylines/index.ts +5 -8
- package/src/astro/routes/api/oauth/authorize.ts +42 -10
- package/src/components/Gallery.astro +141 -26
- package/src/components/widgets/Categories.astro +1 -1
- package/src/components/widgets/Tags.astro +1 -1
- package/src/config/secrets.ts +25 -19
- package/src/content/converters/gallery.ts +61 -0
- package/src/content/converters/portable-text-to-prosemirror.ts +19 -0
- package/src/content/converters/prosemirror-to-portable-text.ts +18 -0
- package/src/content/converters/types.ts +36 -0
- package/src/database/dialect-helpers.ts +3 -4
- package/src/database/pg-migration-lock.ts +1 -4
- package/src/emdash-runtime.ts +55 -17
- package/src/i18n/config.ts +8 -0
- package/src/i18n/repair-locale-casing.ts +51 -0
- package/src/search/query.ts +3 -2
- package/src/seed/apply.ts +9 -7
- package/src/seed/validate.ts +15 -4
- package/src/taxonomies/index.ts +64 -23
- package/dist/api-b8WIiGU4.mjs.map +0 -1
- package/dist/apply-CmIJK9j8.mjs.map +0 -1
- package/dist/bylines-BJbT4gKS.mjs.map +0 -1
- package/dist/config-CVssduLe.mjs.map +0 -1
- package/dist/dialect-helpers-HxEQGl_1.mjs.map +0 -1
- package/dist/index-wYnC6u4o.d.mts.map +0 -1
- package/dist/media-kIV1IxFf.mjs.map +0 -1
- package/dist/menus-BcyElFtI.mjs.map +0 -1
- package/dist/menus-CZyG6rvx.mjs.map +0 -1
- package/dist/redirects-BBq3n2Rj.mjs.map +0 -1
- package/dist/relations-BKvO39-9.mjs.map +0 -1
- package/dist/relations-Bh8jlFsU.d.mts.map +0 -1
- package/dist/search-Bff-7jFt.mjs.map +0 -1
- package/dist/secrets-CSwQIl4q.mjs.map +0 -1
- package/dist/taxonomies-Ce49uIzY.mjs.map +0 -1
- package/dist/taxonomies-DjSKBZpq.mjs.map +0 -1
- package/dist/validate-V9nCwq_-.mjs.map +0 -1
- package/dist/version-907opKac.mjs +0 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import "../../../../../media-
|
|
6
|
-
import { S as allowedDomainUpdateBody } from "../../../../../redirects-
|
|
7
|
-
import "../../../../../relations-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
5
|
+
import "../../../../../media-BJ6SRY3g.mjs";
|
|
6
|
+
import { S as allowedDomainUpdateBody } from "../../../../../redirects-D457qwt0.mjs";
|
|
7
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
8
8
|
import "../../../../../status-COfycGIU.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
10
|
import { Role, roleFromLevel } from "@emdash-cms/auth";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import "../../../../../media-
|
|
6
|
-
import { x as allowedDomainCreateBody } from "../../../../../redirects-
|
|
7
|
-
import "../../../../../relations-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
5
|
+
import "../../../../../media-BJ6SRY3g.mjs";
|
|
6
|
+
import { x as allowedDomainCreateBody } from "../../../../../redirects-D457qwt0.mjs";
|
|
7
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
8
8
|
import "../../../../../status-COfycGIU.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
10
|
import { Role, roleFromLevel } from "@emdash-cms/auth";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
4
4
|
import "../../../../../api-tokens-Cvmixds7.mjs";
|
|
5
5
|
import { i as handleApiTokenRevoke } from "../../../../../api-tokens-uPt8UDpx.mjs";
|
|
6
6
|
import { Role } from "@emdash-cms/auth";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
5
5
|
import { o as isValidScope } from "../../../../../api-tokens-Cvmixds7.mjs";
|
|
6
6
|
import { n as handleApiTokenCreate, r as handleApiTokenList } from "../../../../../api-tokens-uPt8UDpx.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
2
|
+
import "../../../../../../types-CrRUFdej.mjs";
|
|
3
3
|
import "../../../../../../byline-registry-BCuOp4UF.mjs";
|
|
4
|
-
import { a as unwrapResult, i as requireDb, t as apiError } from "../../../../../../error-
|
|
5
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
4
|
+
import { a as unwrapResult, i as requireDb, t as apiError } from "../../../../../../error-DJ98TRbQ.mjs";
|
|
5
|
+
import { r as requirePerm } from "../../../../../../authorize-6WPZa1xZ.mjs";
|
|
6
6
|
import { s as handleBylineFieldUsage } from "../../../../../../byline-fields-CdU_LTF1.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/admin/byline-fields/[slug]/usage.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
3
|
import "../../../../../byline-registry-BCuOp4UF.mjs";
|
|
4
|
-
import { a as unwrapResult, i as requireDb, t as apiError } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import "../../../../../media-
|
|
7
|
-
import "../../../../../redirects-
|
|
8
|
-
import { h as bylineFieldUpdateBody } from "../../../../../relations-
|
|
4
|
+
import { a as unwrapResult, i as requireDb, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
6
|
+
import "../../../../../media-BJ6SRY3g.mjs";
|
|
7
|
+
import "../../../../../redirects-D457qwt0.mjs";
|
|
8
|
+
import { h as bylineFieldUpdateBody } from "../../../../../relations-CZMpBqEd.mjs";
|
|
9
9
|
import "../../../../../status-COfycGIU.mjs";
|
|
10
10
|
import "../../../../../api/schemas/index.mjs";
|
|
11
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
11
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
12
12
|
import { n as handleBylineFieldDelete, o as handleBylineFieldUpdate, r as handleBylineFieldGet } from "../../../../../byline-fields-CdU_LTF1.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/astro/routes/api/admin/byline-fields/[slug].ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
3
|
import "../../../../../byline-registry-BCuOp4UF.mjs";
|
|
4
|
-
import { a as unwrapResult, i as requireDb } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import "../../../../../media-
|
|
7
|
-
import "../../../../../redirects-
|
|
8
|
-
import { d as bylineFieldCreateBody } from "../../../../../relations-
|
|
4
|
+
import { a as unwrapResult, i as requireDb } from "../../../../../error-DJ98TRbQ.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
6
|
+
import "../../../../../media-BJ6SRY3g.mjs";
|
|
7
|
+
import "../../../../../redirects-D457qwt0.mjs";
|
|
8
|
+
import { d as bylineFieldCreateBody } from "../../../../../relations-CZMpBqEd.mjs";
|
|
9
9
|
import "../../../../../status-COfycGIU.mjs";
|
|
10
10
|
import "../../../../../api/schemas/index.mjs";
|
|
11
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
11
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
12
12
|
import { i as handleBylineFieldList, t as handleBylineFieldCreate } from "../../../../../byline-fields-CdU_LTF1.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/astro/routes/api/admin/byline-fields/index.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
3
|
import "../../../../../byline-registry-BCuOp4UF.mjs";
|
|
4
|
-
import { a as unwrapResult, i as requireDb } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import "../../../../../media-
|
|
7
|
-
import "../../../../../redirects-
|
|
8
|
-
import { m as bylineFieldReorderBody } from "../../../../../relations-
|
|
4
|
+
import { a as unwrapResult, i as requireDb } from "../../../../../error-DJ98TRbQ.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
6
|
+
import "../../../../../media-BJ6SRY3g.mjs";
|
|
7
|
+
import "../../../../../redirects-D457qwt0.mjs";
|
|
8
|
+
import { m as bylineFieldReorderBody } from "../../../../../relations-CZMpBqEd.mjs";
|
|
9
9
|
import "../../../../../status-COfycGIU.mjs";
|
|
10
10
|
import "../../../../../api/schemas/index.mjs";
|
|
11
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
11
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
12
12
|
import { a as handleBylineFieldReorder } from "../../../../../byline-fields-CdU_LTF1.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/astro/routes/api/admin/byline-fields/reorder.ts
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import "../../../../../../dialect-helpers-
|
|
1
|
+
import "../../../../../../dialect-helpers-BtOwo2us.mjs";
|
|
2
2
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
3
3
|
import "../../../../../../object-cache-Bok5j2ae.mjs";
|
|
4
4
|
import "../../../../../../base64-B-PsqheR.mjs";
|
|
5
|
-
import "../../../../../../types-
|
|
5
|
+
import "../../../../../../types-CrRUFdej.mjs";
|
|
6
6
|
import "../../../../../../request-cache-BSUptuJR.mjs";
|
|
7
7
|
import "../../../../../../byline-registry-BCuOp4UF.mjs";
|
|
8
|
-
import "../../../../../../field-defs-cache-
|
|
9
|
-
import { t as BylineRepository } from "../../../../../../byline-
|
|
10
|
-
import "../../../../../../resolve-
|
|
11
|
-
import "../../../../../../loader-
|
|
12
|
-
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
13
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
14
|
-
import "../../../../../../media-
|
|
15
|
-
import { fn as bylineUpdateBody } from "../../../../../../redirects-
|
|
16
|
-
import "../../../../../../relations-
|
|
8
|
+
import "../../../../../../field-defs-cache-KfNJ_qLQ.mjs";
|
|
9
|
+
import { t as BylineRepository } from "../../../../../../byline-BTOxUlFF.mjs";
|
|
10
|
+
import "../../../../../../resolve-DFr4kq72.mjs";
|
|
11
|
+
import "../../../../../../loader-D4rigvjR.mjs";
|
|
12
|
+
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DJ98TRbQ.mjs";
|
|
13
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-53zyxlpv.mjs";
|
|
14
|
+
import "../../../../../../media-BJ6SRY3g.mjs";
|
|
15
|
+
import { fn as bylineUpdateBody } from "../../../../../../redirects-D457qwt0.mjs";
|
|
16
|
+
import "../../../../../../relations-CZMpBqEd.mjs";
|
|
17
17
|
import "../../../../../../status-COfycGIU.mjs";
|
|
18
18
|
import "../../../../../../api/schemas/index.mjs";
|
|
19
|
-
import { a as invalidateBylineCache } from "../../../../../../bylines-
|
|
20
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
21
|
-
import { i as handleBylineUpdate } from "../../../../../../bylines-
|
|
19
|
+
import { a as invalidateBylineCache } from "../../../../../../bylines-Bc-3xtpz.mjs";
|
|
20
|
+
import { r as requirePerm } from "../../../../../../authorize-6WPZa1xZ.mjs";
|
|
21
|
+
import { i as handleBylineUpdate } from "../../../../../../bylines-oVN0iPwX.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/astro/routes/api/admin/bylines/[id]/index.ts
|
|
24
24
|
const prerender = false;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import "../../../../../../dialect-helpers-
|
|
1
|
+
import "../../../../../../dialect-helpers-BtOwo2us.mjs";
|
|
2
2
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
3
3
|
import "../../../../../../object-cache-Bok5j2ae.mjs";
|
|
4
4
|
import "../../../../../../base64-B-PsqheR.mjs";
|
|
5
|
-
import "../../../../../../types-
|
|
5
|
+
import "../../../../../../types-CrRUFdej.mjs";
|
|
6
6
|
import "../../../../../../request-cache-BSUptuJR.mjs";
|
|
7
7
|
import "../../../../../../byline-registry-BCuOp4UF.mjs";
|
|
8
|
-
import "../../../../../../field-defs-cache-
|
|
9
|
-
import { t as BylineRepository } from "../../../../../../byline-
|
|
10
|
-
import "../../../../../../resolve-
|
|
11
|
-
import "../../../../../../loader-
|
|
12
|
-
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../../error-
|
|
13
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
14
|
-
import "../../../../../../media-
|
|
15
|
-
import { un as bylineTranslationCreateBody } from "../../../../../../redirects-
|
|
16
|
-
import "../../../../../../relations-
|
|
8
|
+
import "../../../../../../field-defs-cache-KfNJ_qLQ.mjs";
|
|
9
|
+
import { t as BylineRepository } from "../../../../../../byline-BTOxUlFF.mjs";
|
|
10
|
+
import "../../../../../../resolve-DFr4kq72.mjs";
|
|
11
|
+
import "../../../../../../loader-D4rigvjR.mjs";
|
|
12
|
+
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../../error-DJ98TRbQ.mjs";
|
|
13
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-53zyxlpv.mjs";
|
|
14
|
+
import "../../../../../../media-BJ6SRY3g.mjs";
|
|
15
|
+
import { un as bylineTranslationCreateBody } from "../../../../../../redirects-D457qwt0.mjs";
|
|
16
|
+
import "../../../../../../relations-CZMpBqEd.mjs";
|
|
17
17
|
import "../../../../../../status-COfycGIU.mjs";
|
|
18
18
|
import "../../../../../../api/schemas/index.mjs";
|
|
19
|
-
import { a as invalidateBylineCache } from "../../../../../../bylines-
|
|
20
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
21
|
-
import { n as handleBylineCreate, r as handleBylineTranslations } from "../../../../../../bylines-
|
|
19
|
+
import { a as invalidateBylineCache } from "../../../../../../bylines-Bc-3xtpz.mjs";
|
|
20
|
+
import { r as requirePerm } from "../../../../../../authorize-6WPZa1xZ.mjs";
|
|
21
|
+
import { n as handleBylineCreate, r as handleBylineTranslations } from "../../../../../../bylines-oVN0iPwX.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/astro/routes/api/admin/bylines/[id]/translations.ts
|
|
24
24
|
const prerender = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../../../src/astro/routes/api/admin/bylines/index.ts"],"mappings":";;;cAYa,SAAA;AAAA,cAEA,GAAA,EAAK,QAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../../../../src/astro/routes/api/admin/bylines/index.ts"],"mappings":";;;cAYa,SAAA;AAAA,cAEA,GAAA,EAAK,QAAA;AAAA,cAoCL,IAAA,EAAM,QAAA"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import "../../../../../dialect-helpers-
|
|
2
|
-
import { n as getI18nConfig } from "../../../../../config-
|
|
1
|
+
import "../../../../../dialect-helpers-BtOwo2us.mjs";
|
|
2
|
+
import { i as resolveConfiguredLocale, n as getI18nConfig } from "../../../../../config-B6b_BobR.mjs";
|
|
3
3
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
4
4
|
import "../../../../../object-cache-Bok5j2ae.mjs";
|
|
5
5
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
6
|
-
import "../../../../../types-
|
|
6
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
7
7
|
import "../../../../../request-cache-BSUptuJR.mjs";
|
|
8
8
|
import "../../../../../byline-registry-BCuOp4UF.mjs";
|
|
9
|
-
import "../../../../../field-defs-cache-
|
|
10
|
-
import { t as BylineRepository } from "../../../../../byline-
|
|
11
|
-
import "../../../../../resolve-
|
|
12
|
-
import "../../../../../loader-
|
|
13
|
-
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
14
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-
|
|
15
|
-
import "../../../../../media-
|
|
16
|
-
import { on as bylineCreateBody, pn as bylinesListQuery } from "../../../../../redirects-
|
|
17
|
-
import "../../../../../relations-
|
|
9
|
+
import "../../../../../field-defs-cache-KfNJ_qLQ.mjs";
|
|
10
|
+
import { t as BylineRepository } from "../../../../../byline-BTOxUlFF.mjs";
|
|
11
|
+
import "../../../../../resolve-DFr4kq72.mjs";
|
|
12
|
+
import "../../../../../loader-D4rigvjR.mjs";
|
|
13
|
+
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
14
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
15
|
+
import "../../../../../media-BJ6SRY3g.mjs";
|
|
16
|
+
import { on as bylineCreateBody, pn as bylinesListQuery } from "../../../../../redirects-D457qwt0.mjs";
|
|
17
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
18
18
|
import "../../../../../status-COfycGIU.mjs";
|
|
19
19
|
import "../../../../../api/schemas/index.mjs";
|
|
20
|
-
import { a as invalidateBylineCache } from "../../../../../bylines-
|
|
21
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
22
|
-
import { n as handleBylineCreate } from "../../../../../bylines-
|
|
20
|
+
import { a as invalidateBylineCache } from "../../../../../bylines-Bc-3xtpz.mjs";
|
|
21
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
22
|
+
import { n as handleBylineCreate } from "../../../../../bylines-oVN0iPwX.mjs";
|
|
23
23
|
|
|
24
24
|
//#region src/astro/routes/api/admin/bylines/index.ts
|
|
25
25
|
const prerender = false;
|
|
@@ -30,14 +30,15 @@ const GET = async ({ url, locals }) => {
|
|
|
30
30
|
if (denied) return denied;
|
|
31
31
|
const query = parseQuery(url, bylinesListQuery);
|
|
32
32
|
if (isParseError(query)) return query;
|
|
33
|
+
const locale = query.locale ? resolveConfiguredLocale(query.locale) : void 0;
|
|
33
34
|
const i18n = getI18nConfig();
|
|
34
|
-
if (
|
|
35
|
+
if (locale && i18n && !i18n.locales.includes(locale)) return apiError("VALIDATION_ERROR", `Locale "${locale}" is not configured for this site`, 400);
|
|
35
36
|
try {
|
|
36
37
|
return apiSuccess(await new BylineRepository(emdash.db).findMany({
|
|
37
38
|
search: query.search,
|
|
38
39
|
isGuest: query.isGuest,
|
|
39
40
|
userId: query.userId,
|
|
40
|
-
locale
|
|
41
|
+
locale,
|
|
41
42
|
cursor: query.cursor,
|
|
42
43
|
limit: query.limit
|
|
43
44
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../src/astro/routes/api/admin/bylines/index.ts"],"sourcesContent":["import type { APIRoute } from \"astro\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, apiSuccess, handleError, unwrapResult } from \"#api/error.js\";\nimport { handleBylineCreate } from \"#api/handlers/bylines.js\";\nimport { isParseError, parseBody, parseQuery } from \"#api/parse.js\";\nimport { bylineCreateBody, bylinesListQuery } from \"#api/schemas.js\";\nimport { invalidateBylineCache } from \"#bylines/index.js\";\nimport { BylineRepository } from \"#db/repositories/byline.js\";\n\nimport { getI18nConfig } from \"../../../../../i18n/config.js\";\n\nexport const prerender = false;\n\nexport const GET: APIRoute = async ({ url, locals }) => {\n\tconst { emdash, user } = locals;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"bylines:read\");\n\tif (denied) return denied;\n\n\tconst query = parseQuery(url, bylinesListQuery);\n\tif (isParseError(query)) return query;\n\n\tconst i18n = getI18nConfig();\n\tif (
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../src/astro/routes/api/admin/bylines/index.ts"],"sourcesContent":["import type { APIRoute } from \"astro\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, apiSuccess, handleError, unwrapResult } from \"#api/error.js\";\nimport { handleBylineCreate } from \"#api/handlers/bylines.js\";\nimport { isParseError, parseBody, parseQuery } from \"#api/parse.js\";\nimport { bylineCreateBody, bylinesListQuery } from \"#api/schemas.js\";\nimport { invalidateBylineCache } from \"#bylines/index.js\";\nimport { BylineRepository } from \"#db/repositories/byline.js\";\n\nimport { getI18nConfig, resolveConfiguredLocale } from \"../../../../../i18n/config.js\";\n\nexport const prerender = false;\n\nexport const GET: APIRoute = async ({ url, locals }) => {\n\tconst { emdash, user } = locals;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"bylines:read\");\n\tif (denied) return denied;\n\n\tconst query = parseQuery(url, bylinesListQuery);\n\tif (isParseError(query)) return query;\n\n\tconst locale = query.locale ? resolveConfiguredLocale(query.locale) : undefined;\n\tconst i18n = getI18nConfig();\n\tif (locale && i18n && !i18n.locales.includes(locale)) {\n\t\treturn apiError(\"VALIDATION_ERROR\", `Locale \"${locale}\" is not configured for this site`, 400);\n\t}\n\n\ttry {\n\t\tconst repo = new BylineRepository(emdash.db);\n\t\tconst result = await repo.findMany({\n\t\t\tsearch: query.search,\n\t\t\tisGuest: query.isGuest,\n\t\t\tuserId: query.userId,\n\t\t\tlocale,\n\t\t\tcursor: query.cursor,\n\t\t\tlimit: query.limit,\n\t\t});\n\n\t\treturn apiSuccess(result);\n\t} catch (error) {\n\t\treturn handleError(error, \"Failed to list bylines\", \"BYLINE_LIST_ERROR\");\n\t}\n};\n\nexport const POST: APIRoute = async ({ request, locals }) => {\n\tconst { emdash, user } = locals;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"bylines:manage\");\n\tif (denied) return denied;\n\n\tconst body = await parseBody(request, bylineCreateBody);\n\tif (isParseError(body)) return body;\n\n\ttry {\n\t\tconst result = await handleBylineCreate(emdash.db, {\n\t\t\tslug: body.slug,\n\t\t\tdisplayName: body.displayName,\n\t\t\tbio: body.bio ?? null,\n\t\t\tavatarMediaId: body.avatarMediaId ?? null,\n\t\t\twebsiteUrl: body.websiteUrl ?? null,\n\t\t\tuserId: body.userId ?? null,\n\t\t\tisGuest: body.isGuest,\n\t\t\tlocale: body.locale,\n\t\t\ttranslationOf: body.translationOf,\n\t\t\tcustomFields: body.customFields,\n\t\t});\n\n\t\tif (result.success) invalidateBylineCache();\n\t\treturn unwrapResult(result, 201);\n\t} catch (error) {\n\t\treturn handleError(error, \"Failed to create byline\", \"BYLINE_CREATE_ERROR\");\n\t}\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAa,YAAY;AAEzB,MAAa,MAAgB,OAAO,EAAE,KAAK,aAAa;CACvD,MAAM,EAAE,QAAQ,SAAS;AAEzB,KAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;CAGpE,MAAM,SAAS,YAAY,MAAM,eAAe;AAChD,KAAI,OAAQ,QAAO;CAEnB,MAAM,QAAQ,WAAW,KAAK,iBAAiB;AAC/C,KAAI,aAAa,MAAM,CAAE,QAAO;CAEhC,MAAM,SAAS,MAAM,SAAS,wBAAwB,MAAM,OAAO,GAAG;CACtE,MAAM,OAAO,eAAe;AAC5B,KAAI,UAAU,QAAQ,CAAC,KAAK,QAAQ,SAAS,OAAO,CACnD,QAAO,SAAS,oBAAoB,WAAW,OAAO,oCAAoC,IAAI;AAG/F,KAAI;AAWH,SAAO,WATQ,MADF,IAAI,iBAAiB,OAAO,GAAG,CAClB,SAAS;GAClC,QAAQ,MAAM;GACd,SAAS,MAAM;GACf,QAAQ,MAAM;GACd;GACA,QAAQ,MAAM;GACd,OAAO,MAAM;GACb,CAAC,CAEuB;UACjB,OAAO;AACf,SAAO,YAAY,OAAO,0BAA0B,oBAAoB;;;AAI1E,MAAa,OAAiB,OAAO,EAAE,SAAS,aAAa;CAC5D,MAAM,EAAE,QAAQ,SAAS;AAEzB,KAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;CAGpE,MAAM,SAAS,YAAY,MAAM,iBAAiB;AAClD,KAAI,OAAQ,QAAO;CAEnB,MAAM,OAAO,MAAM,UAAU,SAAS,iBAAiB;AACvD,KAAI,aAAa,KAAK,CAAE,QAAO;AAE/B,KAAI;EACH,MAAM,SAAS,MAAM,mBAAmB,OAAO,IAAI;GAClD,MAAM,KAAK;GACX,aAAa,KAAK;GAClB,KAAK,KAAK,OAAO;GACjB,eAAe,KAAK,iBAAiB;GACrC,YAAY,KAAK,cAAc;GAC/B,QAAQ,KAAK,UAAU;GACvB,SAAS,KAAK;GACd,QAAQ,KAAK;GACb,eAAe,KAAK;GACpB,cAAc,KAAK;GACnB,CAAC;AAEF,MAAI,OAAO,QAAS,wCAAuB;AAC3C,SAAO,aAAa,QAAQ,IAAI;UACxB,OAAO;AACf,SAAO,YAAY,OAAO,2BAA2B,sBAAsB"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../../object-cache-Bok5j2ae.mjs";
|
|
3
3
|
import "../../../../../../base64-B-PsqheR.mjs";
|
|
4
|
-
import "../../../../../../types-
|
|
5
|
-
import "../../../../../../comment-
|
|
4
|
+
import "../../../../../../types-CrRUFdej.mjs";
|
|
5
|
+
import "../../../../../../comment-B9cUud8H.mjs";
|
|
6
6
|
import "../../../../../../options-BlmBHTvX.mjs";
|
|
7
|
-
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
8
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
9
|
-
import "../../../../../../media-
|
|
10
|
-
import { vt as commentStatusBody } from "../../../../../../redirects-
|
|
11
|
-
import "../../../../../../relations-
|
|
7
|
+
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DJ98TRbQ.mjs";
|
|
8
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-53zyxlpv.mjs";
|
|
9
|
+
import "../../../../../../media-BJ6SRY3g.mjs";
|
|
10
|
+
import { vt as commentStatusBody } from "../../../../../../redirects-D457qwt0.mjs";
|
|
11
|
+
import "../../../../../../relations-CZMpBqEd.mjs";
|
|
12
12
|
import "../../../../../../status-COfycGIU.mjs";
|
|
13
13
|
import "../../../../../../api/schemas/index.mjs";
|
|
14
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
15
|
-
import { a as handleCommentGet } from "../../../../../../comments-
|
|
14
|
+
import { r as requirePerm } from "../../../../../../authorize-6WPZa1xZ.mjs";
|
|
15
|
+
import { a as handleCommentGet } from "../../../../../../comments-PXj1E9Si.mjs";
|
|
16
16
|
import { t as getSiteBaseUrl } from "../../../../../../site-url-NGJT6NTU.mjs";
|
|
17
|
-
import { i as sendCommentNotification, n as moderateComment, r as lookupContentAuthor } from "../../../../../../service-
|
|
17
|
+
import { i as sendCommentNotification, n as moderateComment, r as lookupContentAuthor } from "../../../../../../service-CQnc276a.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/astro/routes/api/admin/comments/[id]/status.ts
|
|
20
20
|
const prerender = false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-Bok5j2ae.mjs";
|
|
3
3
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import "../../../../../comment-
|
|
6
|
-
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../error-
|
|
7
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
8
|
-
import { a as handleCommentGet, i as handleCommentDelete } from "../../../../../comments-
|
|
4
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
5
|
+
import "../../../../../comment-B9cUud8H.mjs";
|
|
6
|
+
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
8
|
+
import { a as handleCommentGet, i as handleCommentDelete } from "../../../../../comments-PXj1E9Si.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/admin/comments/[id].ts
|
|
11
11
|
const prerender = false;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-Bok5j2ae.mjs";
|
|
3
3
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import "../../../../../comment-
|
|
6
|
-
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-
|
|
7
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
8
|
-
import "../../../../../media-
|
|
9
|
-
import { pt as commentBulkBody } from "../../../../../redirects-
|
|
10
|
-
import "../../../../../relations-
|
|
4
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
5
|
+
import "../../../../../comment-B9cUud8H.mjs";
|
|
6
|
+
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
8
|
+
import "../../../../../media-BJ6SRY3g.mjs";
|
|
9
|
+
import { pt as commentBulkBody } from "../../../../../redirects-D457qwt0.mjs";
|
|
10
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
11
11
|
import "../../../../../status-COfycGIU.mjs";
|
|
12
12
|
import "../../../../../api/schemas/index.mjs";
|
|
13
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
14
|
-
import { n as handleCommentBulk } from "../../../../../comments-
|
|
13
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
14
|
+
import { n as handleCommentBulk } from "../../../../../comments-PXj1E9Si.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/astro/routes/api/admin/comments/bulk.ts
|
|
17
17
|
const prerender = false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-Bok5j2ae.mjs";
|
|
3
3
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import "../../../../../comment-
|
|
6
|
-
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-
|
|
7
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
8
|
-
import { r as handleCommentCounts } from "../../../../../comments-
|
|
4
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
5
|
+
import "../../../../../comment-B9cUud8H.mjs";
|
|
6
|
+
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
8
|
+
import { r as handleCommentCounts } from "../../../../../comments-PXj1E9Si.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/admin/comments/counts.ts
|
|
11
11
|
const prerender = false;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-Bok5j2ae.mjs";
|
|
3
3
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import "../../../../../comment-
|
|
6
|
-
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-
|
|
7
|
-
import { i as parseQuery, t as isParseError } from "../../../../../parse-
|
|
8
|
-
import "../../../../../media-
|
|
9
|
-
import { gt as commentListQuery } from "../../../../../redirects-
|
|
10
|
-
import "../../../../../relations-
|
|
4
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
5
|
+
import "../../../../../comment-B9cUud8H.mjs";
|
|
6
|
+
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { i as parseQuery, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
8
|
+
import "../../../../../media-BJ6SRY3g.mjs";
|
|
9
|
+
import { gt as commentListQuery } from "../../../../../redirects-D457qwt0.mjs";
|
|
10
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
11
11
|
import "../../../../../status-COfycGIU.mjs";
|
|
12
12
|
import "../../../../../api/schemas/index.mjs";
|
|
13
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
14
|
-
import { o as handleCommentInbox } from "../../../../../comments-
|
|
13
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
14
|
+
import { o as handleCommentInbox } from "../../../../../comments-PXj1E9Si.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/astro/routes/api/admin/comments/index.ts
|
|
17
17
|
const prerender = false;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
2
|
+
import "../../../../../../types-CrRUFdej.mjs";
|
|
3
3
|
import { t as OptionsRepository } from "../../../../../../options-BlmBHTvX.mjs";
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
6
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DJ98TRbQ.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-53zyxlpv.mjs";
|
|
6
|
+
import { r as requirePerm } from "../../../../../../authorize-6WPZa1xZ.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/astro/routes/api/admin/hooks/exclusive/[hookName].ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
2
|
+
import "../../../../../../types-CrRUFdej.mjs";
|
|
3
3
|
import { t as OptionsRepository } from "../../../../../../options-BlmBHTvX.mjs";
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
5
|
-
import { r as requirePerm } from "../../../../../../authorize-
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DJ98TRbQ.mjs";
|
|
5
|
+
import { r as requirePerm } from "../../../../../../authorize-6WPZa1xZ.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/astro/routes/api/admin/hooks/exclusive/index.ts
|
|
8
8
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import "../../../../../media-
|
|
4
|
-
import "../../../../../content-refresh-
|
|
5
|
-
import { n as handleMediaUsageRepair } from "../../../../../media-usage-
|
|
6
|
-
import { a as unwrapResult, i as requireDb } from "../../../../../error-
|
|
7
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
8
|
-
import { E as mediaUsageRepairBody } from "../../../../../media-
|
|
9
|
-
import "../../../../../redirects-
|
|
10
|
-
import "../../../../../relations-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import "../../../../../media-its1WLYv.mjs";
|
|
4
|
+
import "../../../../../content-refresh-CPMSauD3.mjs";
|
|
5
|
+
import { n as handleMediaUsageRepair } from "../../../../../media-usage-DPQ3K4xB.mjs";
|
|
6
|
+
import { a as unwrapResult, i as requireDb } from "../../../../../error-DJ98TRbQ.mjs";
|
|
7
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
8
|
+
import { E as mediaUsageRepairBody } from "../../../../../media-BJ6SRY3g.mjs";
|
|
9
|
+
import "../../../../../redirects-D457qwt0.mjs";
|
|
10
|
+
import "../../../../../relations-CZMpBqEd.mjs";
|
|
11
11
|
import "../../../../../status-COfycGIU.mjs";
|
|
12
12
|
import "../../../../../api/schemas/index.mjs";
|
|
13
|
-
import { r as requirePerm } from "../../../../../authorize-
|
|
13
|
+
import { r as requirePerm } from "../../../../../authorize-6WPZa1xZ.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/admin/media-usage/repair.ts
|
|
16
16
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
5
5
|
import { a as handleOAuthClientUpdate, n as handleOAuthClientDelete, r as handleOAuthClientGet } from "../../../../../oauth-clients-BlrUHAsf.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { Role } from "@emdash-cms/auth";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-B-PsqheR.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
2
|
+
import "../../../../../types-CrRUFdej.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-DJ98TRbQ.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-53zyxlpv.mjs";
|
|
5
5
|
import { i as handleOAuthClientList, t as handleOAuthClientCreate } from "../../../../../oauth-clients-BlrUHAsf.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { Role } from "@emdash-cms/auth";
|