emdash 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapters-DAAjOID4.d.mts → adapters-u037EnTR.d.mts} +1 -1
- package/dist/{adapters-DAAjOID4.d.mts.map → adapters-u037EnTR.d.mts.map} +1 -1
- package/dist/api/route-utils.mjs +10 -10
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-BMfveMoB.mjs → api-80kycR9o.mjs} +84 -28
- package/dist/api-80kycR9o.mjs.map +1 -0
- package/dist/{apply--IVNSdXn.mjs → apply-DSypk6Iu.mjs} +19 -19
- package/dist/apply-DSypk6Iu.mjs.map +1 -0
- package/dist/astro/index.d.mts +7 -6
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +11 -3
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +6 -5
- package/dist/astro/middleware/auth.d.mts.map +1 -1
- package/dist/astro/middleware/auth.mjs +4 -3
- package/dist/astro/middleware/auth.mjs.map +1 -1
- package/dist/astro/middleware/redirect.mjs +4 -4
- package/dist/astro/middleware.d.mts +1 -8
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +44 -43
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +3 -3
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +3 -3
- 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 +4 -4
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/index.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +6 -6
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +6 -6
- 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/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 +27 -27
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/index.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +26 -26
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +27 -27
- package/dist/astro/routes/api/admin/plugins/updates.mjs +26 -26
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +26 -26
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +26 -26
- 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 +3 -3
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +3 -3
- package/dist/astro/routes/api/auth/dev-bypass.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/index.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/register-options.mjs +3 -3
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +4 -4
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/index.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/verify.mjs +3 -3
- package/dist/astro/routes/api/auth/signup/complete.mjs +3 -3
- package/dist/astro/routes/api/auth/signup/request.mjs +4 -4
- package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +6 -6
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +6 -6
- 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 +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +4 -4
- 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 +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +8 -8
- 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 +4 -4
- package/dist/astro/routes/api/content/_collection_/authors.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/index.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/trash.mjs +4 -4
- 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.d.mts +2 -2
- package/dist/astro/routes/api/import/probe.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +6 -5
- package/dist/astro/routes/api/import/wordpress/execute.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/execute.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/media.d.mts +6 -5
- package/dist/astro/routes/api/import/wordpress/media.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +6 -6
- package/dist/astro/routes/api/manifest.d.mts.map +1 -1
- package/dist/astro/routes/api/manifest.mjs +13 -4
- package/dist/astro/routes/api/manifest.mjs.map +1 -1
- package/dist/astro/routes/api/mcp.mjs +34 -34
- package/dist/astro/routes/api/media/_id_/confirm.mjs +4 -4
- package/dist/astro/routes/api/media/_id_.mjs +4 -4
- 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 +4 -4
- package/dist/astro/routes/api/media.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/items.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/translations.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_.mjs +5 -5
- package/dist/astro/routes/api/menus/index.mjs +5 -5
- 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 +2 -2
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +6 -6
- package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -6
- package/dist/astro/routes/api/redirects/_id_.mjs +7 -7
- package/dist/astro/routes/api/redirects/index.mjs +7 -7
- 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 +26 -26
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +26 -26
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +26 -26
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +26 -26
- package/dist/astro/routes/api/schema/collections/index.mjs +26 -26
- package/dist/astro/routes/api/schema/index.mjs +6 -6
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +26 -26
- package/dist/astro/routes/api/schema/orphans/index.mjs +26 -26
- package/dist/astro/routes/api/search/enable.mjs +7 -7
- package/dist/astro/routes/api/search/index.mjs +6 -6
- package/dist/astro/routes/api/search/rebuild.mjs +7 -7
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +6 -6
- package/dist/astro/routes/api/sections/_slug_.mjs +6 -6
- package/dist/astro/routes/api/sections/index.mjs +6 -6
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings.mjs +8 -8
- package/dist/astro/routes/api/setup/admin-verify.mjs +3 -3
- package/dist/astro/routes/api/setup/admin.mjs +3 -3
- package/dist/astro/routes/api/setup/dev-bypass.d.mts.map +1 -1
- package/dist/astro/routes/api/setup/dev-bypass.mjs +19 -17
- package/dist/astro/routes/api/setup/dev-bypass.mjs.map +1 -1
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +17 -17
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +3 -3
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +8 -8
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +8 -8
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +8 -8
- package/dist/astro/routes/api/taxonomies/index.mjs +8 -8
- package/dist/astro/routes/api/themes/preview.mjs +3 -3
- package/dist/astro/routes/api/typegen.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +4 -4
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +6 -6
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +6 -6
- package/dist/astro/routes/api/widget-areas/_name_.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/index.mjs +6 -6
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +4 -4
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +4 -4
- package/dist/astro/routes/sitemap.xml.mjs +4 -4
- package/dist/astro/types.d.mts +8 -6
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{authorize-BZnOGJFo.mjs → authorize-C3a_zGsM.mjs} +2 -2
- package/dist/{authorize-BZnOGJFo.mjs.map → authorize-C3a_zGsM.mjs.map} +1 -1
- package/dist/{byline-LL8lyqdb.mjs → byline-DEKSVPTy.mjs} +5 -5
- package/dist/{byline-LL8lyqdb.mjs.map → byline-DEKSVPTy.mjs.map} +1 -1
- package/dist/{byline-fields-KD3JFRuH.d.mts → byline-fields-CtQ6blXd.d.mts} +32 -32
- package/dist/{byline-fields-KD3JFRuH.d.mts.map → byline-fields-CtQ6blXd.d.mts.map} +1 -1
- package/dist/{bylines-DE47vP8d.mjs → bylines-CiqgTHWF.mjs} +5 -5
- package/dist/{bylines-DE47vP8d.mjs.map → bylines-CiqgTHWF.mjs.map} +1 -1
- package/dist/{bylines-BmJ7Vg7J.mjs → bylines-Ds4-otXl.mjs} +4 -4
- package/dist/{bylines-BmJ7Vg7J.mjs.map → bylines-Ds4-otXl.mjs.map} +1 -1
- package/dist/{cache-D9jF5bYw.mjs → cache-Ciu3e3AF.mjs} +2 -2
- package/dist/{cache-D9jF5bYw.mjs.map → cache-Ciu3e3AF.mjs.map} +1 -1
- package/dist/{chunks-OCG163rN.mjs → chunks-CZFiauig.mjs} +2 -2
- package/dist/{chunks-OCG163rN.mjs.map → chunks-CZFiauig.mjs.map} +1 -1
- package/dist/cli/index.mjs +15 -15
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/{comment-D9BLDpZI.mjs → comment-CH1IrFFs.mjs} +2 -2
- package/dist/{comment-D9BLDpZI.mjs.map → comment-CH1IrFFs.mjs.map} +1 -1
- package/dist/{comment-reaction-Drl9SkNu.mjs → comment-reaction-kruNY-kP.mjs} +2 -2
- package/dist/{comment-reaction-Drl9SkNu.mjs.map → comment-reaction-kruNY-kP.mjs.map} +1 -1
- package/dist/{comments-BjJ9SKGU.mjs → comments-BUJyXbgq.mjs} +3 -3
- package/dist/{comments-BjJ9SKGU.mjs.map → comments-BUJyXbgq.mjs.map} +1 -1
- package/dist/{content-ncUWWjna.mjs → content-RmfHoWqK.mjs} +3 -3
- package/dist/{content-ncUWWjna.mjs.map → content-RmfHoWqK.mjs.map} +1 -1
- package/dist/{context-C_g-iJVA.mjs → context-CzUU_WzL.mjs} +7 -7
- package/dist/{context-C_g-iJVA.mjs.map → context-CzUU_WzL.mjs.map} +1 -1
- package/dist/{dashboard-CotyqQrW.mjs → dashboard-CVyGhift.mjs} +4 -4
- package/dist/{dashboard-CotyqQrW.mjs.map → dashboard-CVyGhift.mjs.map} +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{error-rVGiqWDt.mjs → error-BHkLZk-w.mjs} +2 -2
- package/dist/{error-rVGiqWDt.mjs.map → error-BHkLZk-w.mjs.map} +1 -1
- package/dist/{field-defs-cache-ljXzJCfc.mjs → field-defs-cache-BA-8ZPiT.mjs} +2 -2
- package/dist/{field-defs-cache-ljXzJCfc.mjs.map → field-defs-cache-BA-8ZPiT.mjs.map} +1 -1
- package/dist/{fts-manager-BbCCbEKA.mjs → fts-manager-Db9jGavf.mjs} +2 -2
- package/dist/{fts-manager-BbCCbEKA.mjs.map → fts-manager-Db9jGavf.mjs.map} +1 -1
- package/dist/{index-BRNabKrx.d.mts → index-CDZZjrLT.d.mts} +2407 -2365
- package/dist/index-CDZZjrLT.d.mts.map +1 -0
- package/dist/{index-Dt0OKJB4.d.mts → index-DGIjmUXQ.d.mts} +2 -2
- package/dist/{index-Dt0OKJB4.d.mts.map → index-DGIjmUXQ.d.mts.map} +1 -1
- package/dist/index.d.mts +11 -10
- package/dist/index.mjs +36 -36
- package/dist/{load-DMjXghbZ.mjs → load-DpHICVPh.mjs} +2 -2
- package/dist/{load-DMjXghbZ.mjs.map → load-DpHICVPh.mjs.map} +1 -1
- package/dist/{loader-BA_zhkS_.mjs → loader-4K37qA-y.mjs} +3 -3
- package/dist/{loader-BA_zhkS_.mjs.map → loader-4K37qA-y.mjs.map} +1 -1
- package/dist/media/local-runtime.d.mts +7 -6
- package/dist/media/local-runtime.d.mts.map +1 -1
- package/dist/media/local-runtime.mjs +4 -4
- package/dist/{media-C5t_eCnk.mjs → media-C0nRRfs1.mjs} +2 -2
- package/dist/{media-C5t_eCnk.mjs.map → media-C0nRRfs1.mjs.map} +1 -1
- package/dist/{menus-CYH09a41.mjs → menus-DzRyC1ID.mjs} +5 -5
- package/dist/{menus-CYH09a41.mjs.map → menus-DzRyC1ID.mjs.map} +1 -1
- package/dist/{menus-CBb6UrMU.mjs → menus-SL2K0xq2.mjs} +2 -2
- package/dist/{menus-CBb6UrMU.mjs.map → menus-SL2K0xq2.mjs.map} +1 -1
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/page/index.d.mts +1 -1
- package/dist/{parse-BwAdS7FZ.mjs → parse-CqyZj3Hp.mjs} +2 -2
- package/dist/{parse-BwAdS7FZ.mjs.map → parse-CqyZj3Hp.mjs.map} +1 -1
- package/dist/plugin-utils.d.mts +6 -5
- package/dist/plugin-utils.d.mts.map +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +6 -5
- package/dist/plugins/adapt-sandbox-entry.d.mts.map +1 -1
- package/dist/{query-BpQb-blG.mjs → query-B0M-9LYR.mjs} +13 -13
- package/dist/{query-BpQb-blG.mjs.map → query-B0M-9LYR.mjs.map} +1 -1
- package/dist/{rate-limit-Dap6HMNM.mjs → rate-limit-BwoUdIpC.mjs} +2 -2
- package/dist/{rate-limit-Dap6HMNM.mjs.map → rate-limit-BwoUdIpC.mjs.map} +1 -1
- package/dist/{redirect-_M0trWoo.mjs → redirect-lMOzG04S.mjs} +2 -2
- package/dist/{redirect-_M0trWoo.mjs.map → redirect-lMOzG04S.mjs.map} +1 -1
- package/dist/{redirects-w0V9vj_j.mjs → redirects-9218MmYl.mjs} +3 -3
- package/dist/{redirects-w0V9vj_j.mjs.map → redirects-9218MmYl.mjs.map} +1 -1
- package/dist/{registry-g8yYt4cC.mjs → registry-DP-iEtdR.mjs} +4 -4
- package/dist/{registry-g8yYt4cC.mjs.map → registry-DP-iEtdR.mjs.map} +1 -1
- package/dist/runner-BbR3DfrL.d.mts.map +1 -1
- package/dist/{runner-DPdt_Wpa.mjs → runner-CFngB4WZ.mjs} +232 -199
- package/dist/runner-CFngB4WZ.mjs.map +1 -0
- package/dist/runtime.d.mts +6 -5
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +2 -2
- package/dist/scheduled-publish-BMljtY5G.d.mts +11 -0
- package/dist/scheduled-publish-BMljtY5G.d.mts.map +1 -0
- package/dist/{schema-DoLd3j2e.mjs → schema-BfJ7bIXH.mjs} +4 -4
- package/dist/{schema-DoLd3j2e.mjs.map → schema-BfJ7bIXH.mjs.map} +1 -1
- package/dist/{search-BR0ZeZmh.mjs → search-C7t3PH1J.mjs} +6 -4
- package/dist/search-C7t3PH1J.mjs.map +1 -0
- package/dist/{sections-5J2YJPqJ.mjs → sections-Dm0CVX23.mjs} +3 -3
- package/dist/{sections-5J2YJPqJ.mjs.map → sections-Dm0CVX23.mjs.map} +1 -1
- package/dist/seed/index.d.mts +1 -1
- package/dist/seed/index.mjs +14 -14
- package/dist/{seo-DKeXHkzE.mjs → seo-Dd3tbY_k.mjs} +2 -2
- package/dist/{seo-DKeXHkzE.mjs.map → seo-Dd3tbY_k.mjs.map} +1 -1
- package/dist/{service-BbO2s8gT.mjs → service-CTrqp_Jy.mjs} +2 -2
- package/dist/{service-BbO2s8gT.mjs.map → service-CTrqp_Jy.mjs.map} +1 -1
- package/dist/{settings-DJeki-97.mjs → settings-BX8cWBus.mjs} +3 -3
- package/dist/{settings-DJeki-97.mjs.map → settings-BX8cWBus.mjs.map} +1 -1
- package/dist/{settings-BMNr9Dmi.mjs → settings-CZ7ZP9cW.mjs} +3 -3
- package/dist/{settings-BMNr9Dmi.mjs.map → settings-CZ7ZP9cW.mjs.map} +1 -1
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/{taxonomies-CM_fUqLU.mjs → taxonomies-DChKcVxf.mjs} +4 -4
- package/dist/{taxonomies-CM_fUqLU.mjs.map → taxonomies-DChKcVxf.mjs.map} +1 -1
- package/dist/{taxonomies-D13i2ctt.mjs → taxonomies-ckPjz-6d.mjs} +5 -5
- package/dist/{taxonomies-D13i2ctt.mjs.map → taxonomies-ckPjz-6d.mjs.map} +1 -1
- package/dist/{taxonomy-BU0LjdVb.mjs → taxonomy-Cru-he6s.mjs} +3 -3
- package/dist/{taxonomy-BU0LjdVb.mjs.map → taxonomy-Cru-he6s.mjs.map} +1 -1
- package/dist/{transport-BZ-03aFT.d.mts → transport-Blrl2k_o.d.mts} +1 -1
- package/dist/{transport-BZ-03aFT.d.mts.map → transport-Blrl2k_o.d.mts.map} +1 -1
- package/dist/{types-BG8_XTLj.d.mts → types-BkZ8DUEI.d.mts} +1 -1
- package/dist/{types-BG8_XTLj.d.mts.map → types-BkZ8DUEI.d.mts.map} +1 -1
- package/dist/{types-DrYMm9s5.d.mts → types-ByChcBgE.d.mts} +1 -1
- package/dist/{types-DrYMm9s5.d.mts.map → types-ByChcBgE.d.mts.map} +1 -1
- package/dist/{types-BWqGVhFn.d.mts → types-CvuKO5Pn.d.mts} +1 -1
- package/dist/{types-BWqGVhFn.d.mts.map → types-CvuKO5Pn.d.mts.map} +1 -1
- package/dist/{types-CZgK3EMW.mjs → types-DU4TSFS5.mjs} +2 -2
- package/dist/{types-CZgK3EMW.mjs.map → types-DU4TSFS5.mjs.map} +1 -1
- package/dist/{types-CUsXGRVj.d.mts → types-Dbqff978.d.mts} +1 -1
- package/dist/{types-CUsXGRVj.d.mts.map → types-Dbqff978.d.mts.map} +1 -1
- package/dist/{types-fS7-VTdR.d.mts → types-Y09-wtyU.d.mts} +1 -1
- package/dist/{types-fS7-VTdR.d.mts.map → types-Y09-wtyU.d.mts.map} +1 -1
- package/dist/{user-DkG2jKCp.mjs → user-DgGbKL9s.mjs} +3 -3
- package/dist/{user-DkG2jKCp.mjs.map → user-DgGbKL9s.mjs.map} +1 -1
- package/dist/{validate-CG0V0wNR.d.mts → validate-9ECmtEpJ.d.mts} +9 -4
- package/dist/{validate-CG0V0wNR.d.mts.map → validate-9ECmtEpJ.d.mts.map} +1 -1
- package/dist/{validate-CuJ1Ps9j.mjs → validate-CRkcYZAR.mjs} +2 -2
- package/dist/{validate-CuJ1Ps9j.mjs.map → validate-CRkcYZAR.mjs.map} +1 -1
- package/dist/{validation-CwUfTdGF.mjs → validation-sR26SOwD.mjs} +5 -5
- package/dist/{validation-CwUfTdGF.mjs.map → validation-sR26SOwD.mjs.map} +1 -1
- package/dist/version-CrqhKGWn.mjs +7 -0
- package/dist/{version-BoNBItP_.mjs.map → version-CrqhKGWn.mjs.map} +1 -1
- package/dist/{widgets-BfOZ-ajY.mjs → widgets-DRgtn7Cl.mjs} +2 -2
- package/dist/{widgets-BfOZ-ajY.mjs.map → widgets-DRgtn7Cl.mjs.map} +1 -1
- package/dist/{zod-generator-gFsRuNNy.mjs → zod-generator-C5JaV--i.mjs} +2 -2
- package/dist/{zod-generator-gFsRuNNy.mjs.map → zod-generator-C5JaV--i.mjs.map} +1 -1
- package/package.json +8 -8
- package/src/api/handlers/content.ts +59 -16
- package/src/api/handlers/plugins.ts +77 -10
- package/src/astro/integration/vite-config.ts +19 -1
- package/src/astro/middleware/auth.ts +1 -0
- package/src/astro/middleware.ts +1 -0
- package/src/astro/routes/api/admin/plugins/[id]/disable.ts +6 -1
- package/src/astro/routes/api/admin/plugins/[id]/enable.ts +6 -1
- package/src/astro/routes/api/admin/plugins/[id]/index.ts +1 -0
- package/src/astro/routes/api/admin/plugins/index.ts +1 -0
- package/src/astro/routes/api/manifest.ts +20 -1
- package/src/astro/routes/api/setup/dev-bypass.ts +7 -2
- package/src/astro/types.ts +4 -0
- package/src/cli/commands/seed.ts +1 -1
- package/src/components/LiveSearch.astro +40 -4
- package/src/components/live-search-routing.ts +30 -0
- package/src/database/migrations/036_i18n_menus_and_taxonomies.ts +23 -18
- package/src/database/migrations/048_restore_content_taxonomies_term_index.ts +32 -0
- package/src/database/migrations/runner.ts +2 -0
- package/src/search/query.ts +3 -0
- package/src/search/types.ts +2 -0
- package/src/seed/apply.ts +2 -2
- package/src/seed/types.ts +6 -1
- package/dist/api-BMfveMoB.mjs.map +0 -1
- package/dist/apply--IVNSdXn.mjs.map +0 -1
- package/dist/index-BRNabKrx.d.mts.map +0 -1
- package/dist/runner-DPdt_Wpa.mjs.map +0 -1
- package/dist/search-BR0ZeZmh.mjs.map +0 -1
- package/dist/version-BoNBItP_.mjs +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-CmWvODNW.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-
|
|
2
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
5
5
|
import { S as allowedDomainUpdateBody } from "../../../../../redirects-Dcbuisoj.mjs";
|
|
6
6
|
import "../../../../../byline-fields-eyJMblSr.mjs";
|
|
7
7
|
import "../../../../../status-vUK0SA17.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-CmWvODNW.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-
|
|
2
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
5
5
|
import { x as allowedDomainCreateBody } from "../../../../../redirects-Dcbuisoj.mjs";
|
|
6
6
|
import "../../../../../byline-fields-eyJMblSr.mjs";
|
|
7
7
|
import "../../../../../status-vUK0SA17.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../../../base64-CmWvODNW.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-
|
|
2
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
|
|
4
4
|
import "../../../../../api-tokens-B4BQybOp.mjs";
|
|
5
5
|
import { i as handleApiTokenRevoke } from "../../../../../api-tokens-D6ppjIVi.mjs";
|
|
6
6
|
import { Role } from "@emdash-cms/auth";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-CmWvODNW.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-DU4TSFS5.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
5
5
|
import { n as VALID_SCOPES } from "../../../../../api-tokens-B4BQybOp.mjs";
|
|
6
6
|
import { n as handleApiTokenCreate, r as handleApiTokenList } from "../../../../../api-tokens-D6ppjIVi.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../../../../base64-CmWvODNW.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
2
|
+
import "../../../../../../types-DU4TSFS5.mjs";
|
|
3
3
|
import "../../../../../../byline-registry-BOjqDOim.mjs";
|
|
4
|
-
import { a as unwrapResult, i as requireDb, t as apiError } from "../../../../../../error-
|
|
5
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
4
|
+
import { a as unwrapResult, i as requireDb, t as apiError } from "../../../../../../error-BHkLZk-w.mjs";
|
|
5
|
+
import { n as requirePerm } from "../../../../../../authorize-C3a_zGsM.mjs";
|
|
6
6
|
import { s as handleBylineFieldUsage } from "../../../../../../byline-fields-DaMKzkhO.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/admin/byline-fields/[slug]/usage.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../../../../base64-CmWvODNW.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
2
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
3
3
|
import "../../../../../byline-registry-BOjqDOim.mjs";
|
|
4
|
-
import { a as unwrapResult, i as requireDb, t as apiError } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
4
|
+
import { a as unwrapResult, i as requireDb, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
6
6
|
import "../../../../../redirects-Dcbuisoj.mjs";
|
|
7
7
|
import { a as bylineFieldUpdateBody } from "../../../../../byline-fields-eyJMblSr.mjs";
|
|
8
8
|
import "../../../../../status-vUK0SA17.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
10
|
+
import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
|
|
11
11
|
import { n as handleBylineFieldDelete, o as handleBylineFieldUpdate, r as handleBylineFieldGet } from "../../../../../byline-fields-DaMKzkhO.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/astro/routes/api/admin/byline-fields/[slug].ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../../../../base64-CmWvODNW.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
2
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
3
3
|
import "../../../../../byline-registry-BOjqDOim.mjs";
|
|
4
|
-
import { a as unwrapResult, i as requireDb } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
4
|
+
import { a as unwrapResult, i as requireDb } from "../../../../../error-BHkLZk-w.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
6
6
|
import "../../../../../redirects-Dcbuisoj.mjs";
|
|
7
7
|
import { t as bylineFieldCreateBody } from "../../../../../byline-fields-eyJMblSr.mjs";
|
|
8
8
|
import "../../../../../status-vUK0SA17.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
10
|
+
import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
|
|
11
11
|
import { i as handleBylineFieldList, t as handleBylineFieldCreate } from "../../../../../byline-fields-DaMKzkhO.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/astro/routes/api/admin/byline-fields/index.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../../../../base64-CmWvODNW.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
2
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
3
3
|
import "../../../../../byline-registry-BOjqDOim.mjs";
|
|
4
|
-
import { a as unwrapResult, i as requireDb } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
4
|
+
import { a as unwrapResult, i as requireDb } from "../../../../../error-BHkLZk-w.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
6
6
|
import "../../../../../redirects-Dcbuisoj.mjs";
|
|
7
7
|
import { i as bylineFieldReorderBody } from "../../../../../byline-fields-eyJMblSr.mjs";
|
|
8
8
|
import "../../../../../status-vUK0SA17.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
10
|
+
import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
|
|
11
11
|
import { a as handleBylineFieldReorder } from "../../../../../byline-fields-DaMKzkhO.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/astro/routes/api/admin/byline-fields/reorder.ts
|
|
@@ -2,22 +2,22 @@ import "../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
|
2
2
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
3
3
|
import "../../../../../../object-cache-CHbHv83-.mjs";
|
|
4
4
|
import "../../../../../../base64-CmWvODNW.mjs";
|
|
5
|
-
import "../../../../../../types-
|
|
5
|
+
import "../../../../../../types-DU4TSFS5.mjs";
|
|
6
6
|
import "../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
7
7
|
import "../../../../../../byline-registry-BOjqDOim.mjs";
|
|
8
|
-
import "../../../../../../field-defs-cache-
|
|
9
|
-
import { t as BylineRepository } from "../../../../../../byline-
|
|
10
|
-
import "../../../../../../loader-
|
|
8
|
+
import "../../../../../../field-defs-cache-BA-8ZPiT.mjs";
|
|
9
|
+
import { t as BylineRepository } from "../../../../../../byline-DEKSVPTy.mjs";
|
|
10
|
+
import "../../../../../../loader-4K37qA-y.mjs";
|
|
11
11
|
import "../../../../../../resolve-C7I0qiR0.mjs";
|
|
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-
|
|
12
|
+
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-BHkLZk-w.mjs";
|
|
13
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-CqyZj3Hp.mjs";
|
|
14
14
|
import { Tn as bylineUpdateBody } from "../../../../../../redirects-Dcbuisoj.mjs";
|
|
15
15
|
import "../../../../../../byline-fields-eyJMblSr.mjs";
|
|
16
16
|
import "../../../../../../status-vUK0SA17.mjs";
|
|
17
17
|
import "../../../../../../api/schemas/index.mjs";
|
|
18
|
-
import { a as invalidateBylineCache } from "../../../../../../bylines-
|
|
19
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
20
|
-
import { i as handleBylineUpdate } from "../../../../../../bylines-
|
|
18
|
+
import { a as invalidateBylineCache } from "../../../../../../bylines-CiqgTHWF.mjs";
|
|
19
|
+
import { n as requirePerm } from "../../../../../../authorize-C3a_zGsM.mjs";
|
|
20
|
+
import { i as handleBylineUpdate } from "../../../../../../bylines-Ds4-otXl.mjs";
|
|
21
21
|
|
|
22
22
|
//#region src/astro/routes/api/admin/bylines/[id]/index.ts
|
|
23
23
|
const prerender = false;
|
|
@@ -2,22 +2,22 @@ import "../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
|
2
2
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
3
3
|
import "../../../../../../object-cache-CHbHv83-.mjs";
|
|
4
4
|
import "../../../../../../base64-CmWvODNW.mjs";
|
|
5
|
-
import "../../../../../../types-
|
|
5
|
+
import "../../../../../../types-DU4TSFS5.mjs";
|
|
6
6
|
import "../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
7
7
|
import "../../../../../../byline-registry-BOjqDOim.mjs";
|
|
8
|
-
import "../../../../../../field-defs-cache-
|
|
9
|
-
import { t as BylineRepository } from "../../../../../../byline-
|
|
10
|
-
import "../../../../../../loader-
|
|
8
|
+
import "../../../../../../field-defs-cache-BA-8ZPiT.mjs";
|
|
9
|
+
import { t as BylineRepository } from "../../../../../../byline-DEKSVPTy.mjs";
|
|
10
|
+
import "../../../../../../loader-4K37qA-y.mjs";
|
|
11
11
|
import "../../../../../../resolve-C7I0qiR0.mjs";
|
|
12
|
-
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../../error-
|
|
13
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
12
|
+
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../../error-BHkLZk-w.mjs";
|
|
13
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-CqyZj3Hp.mjs";
|
|
14
14
|
import { Cn as bylineTranslationCreateBody } from "../../../../../../redirects-Dcbuisoj.mjs";
|
|
15
15
|
import "../../../../../../byline-fields-eyJMblSr.mjs";
|
|
16
16
|
import "../../../../../../status-vUK0SA17.mjs";
|
|
17
17
|
import "../../../../../../api/schemas/index.mjs";
|
|
18
|
-
import { a as invalidateBylineCache } from "../../../../../../bylines-
|
|
19
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
20
|
-
import { n as handleBylineCreate, r as handleBylineTranslations } from "../../../../../../bylines-
|
|
18
|
+
import { a as invalidateBylineCache } from "../../../../../../bylines-CiqgTHWF.mjs";
|
|
19
|
+
import { n as requirePerm } from "../../../../../../authorize-C3a_zGsM.mjs";
|
|
20
|
+
import { n as handleBylineCreate, r as handleBylineTranslations } from "../../../../../../bylines-Ds4-otXl.mjs";
|
|
21
21
|
|
|
22
22
|
//#region src/astro/routes/api/admin/bylines/[id]/translations.ts
|
|
23
23
|
const prerender = false;
|
|
@@ -3,22 +3,22 @@ import { n as getI18nConfig } from "../../../../../config-CVssduLe.mjs";
|
|
|
3
3
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
4
4
|
import "../../../../../object-cache-CHbHv83-.mjs";
|
|
5
5
|
import "../../../../../base64-CmWvODNW.mjs";
|
|
6
|
-
import "../../../../../types-
|
|
6
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
7
7
|
import "../../../../../request-cache-KCNHp_RJ.mjs";
|
|
8
8
|
import "../../../../../byline-registry-BOjqDOim.mjs";
|
|
9
|
-
import "../../../../../field-defs-cache-
|
|
10
|
-
import { t as BylineRepository } from "../../../../../byline-
|
|
11
|
-
import "../../../../../loader-
|
|
9
|
+
import "../../../../../field-defs-cache-BA-8ZPiT.mjs";
|
|
10
|
+
import { t as BylineRepository } from "../../../../../byline-DEKSVPTy.mjs";
|
|
11
|
+
import "../../../../../loader-4K37qA-y.mjs";
|
|
12
12
|
import "../../../../../resolve-C7I0qiR0.mjs";
|
|
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-
|
|
13
|
+
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
|
|
14
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
15
15
|
import { En as bylinesListQuery, yn as bylineCreateBody } from "../../../../../redirects-Dcbuisoj.mjs";
|
|
16
16
|
import "../../../../../byline-fields-eyJMblSr.mjs";
|
|
17
17
|
import "../../../../../status-vUK0SA17.mjs";
|
|
18
18
|
import "../../../../../api/schemas/index.mjs";
|
|
19
|
-
import { a as invalidateBylineCache } from "../../../../../bylines-
|
|
20
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
21
|
-
import { n as handleBylineCreate } from "../../../../../bylines-
|
|
19
|
+
import { a as invalidateBylineCache } from "../../../../../bylines-CiqgTHWF.mjs";
|
|
20
|
+
import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
|
|
21
|
+
import { n as handleBylineCreate } from "../../../../../bylines-Ds4-otXl.mjs";
|
|
22
22
|
|
|
23
23
|
//#region src/astro/routes/api/admin/bylines/index.ts
|
|
24
24
|
const prerender = false;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../../object-cache-CHbHv83-.mjs";
|
|
3
3
|
import "../../../../../../base64-CmWvODNW.mjs";
|
|
4
|
-
import "../../../../../../types-
|
|
5
|
-
import "../../../../../../comment-
|
|
4
|
+
import "../../../../../../types-DU4TSFS5.mjs";
|
|
5
|
+
import "../../../../../../comment-CH1IrFFs.mjs";
|
|
6
6
|
import "../../../../../../options-DTTML-Tx.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-
|
|
7
|
+
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-BHkLZk-w.mjs";
|
|
8
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-CqyZj3Hp.mjs";
|
|
9
9
|
import { vt as commentStatusBody } from "../../../../../../redirects-Dcbuisoj.mjs";
|
|
10
10
|
import "../../../../../../byline-fields-eyJMblSr.mjs";
|
|
11
11
|
import "../../../../../../status-vUK0SA17.mjs";
|
|
12
12
|
import "../../../../../../api/schemas/index.mjs";
|
|
13
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
14
|
-
import { a as handleCommentGet } from "../../../../../../comments-
|
|
13
|
+
import { n as requirePerm } from "../../../../../../authorize-C3a_zGsM.mjs";
|
|
14
|
+
import { a as handleCommentGet } from "../../../../../../comments-BUJyXbgq.mjs";
|
|
15
15
|
import { t as getSiteBaseUrl } from "../../../../../../site-url-BLebyON8.mjs";
|
|
16
|
-
import { i as sendCommentNotification, n as moderateComment, r as lookupContentAuthor } from "../../../../../../service-
|
|
16
|
+
import { i as sendCommentNotification, n as moderateComment, r as lookupContentAuthor } from "../../../../../../service-CTrqp_Jy.mjs";
|
|
17
17
|
|
|
18
18
|
//#region src/astro/routes/api/admin/comments/[id]/status.ts
|
|
19
19
|
const prerender = false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-CHbHv83-.mjs";
|
|
3
3
|
import "../../../../../base64-CmWvODNW.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 { n as requirePerm } from "../../../../../authorize-
|
|
8
|
-
import { a as handleCommentGet, i as handleCommentDelete } from "../../../../../comments-
|
|
4
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
5
|
+
import "../../../../../comment-CH1IrFFs.mjs";
|
|
6
|
+
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
|
|
7
|
+
import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
|
|
8
|
+
import { a as handleCommentGet, i as handleCommentDelete } from "../../../../../comments-BUJyXbgq.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/admin/comments/[id].ts
|
|
11
11
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-CHbHv83-.mjs";
|
|
3
3
|
import "../../../../../base64-CmWvODNW.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-
|
|
4
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
5
|
+
import "../../../../../comment-CH1IrFFs.mjs";
|
|
6
|
+
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-BHkLZk-w.mjs";
|
|
7
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
8
8
|
import { pt as commentBulkBody } from "../../../../../redirects-Dcbuisoj.mjs";
|
|
9
9
|
import "../../../../../byline-fields-eyJMblSr.mjs";
|
|
10
10
|
import "../../../../../status-vUK0SA17.mjs";
|
|
11
11
|
import "../../../../../api/schemas/index.mjs";
|
|
12
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
13
|
-
import { n as handleCommentBulk } from "../../../../../comments-
|
|
12
|
+
import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
|
|
13
|
+
import { n as handleCommentBulk } from "../../../../../comments-BUJyXbgq.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/admin/comments/bulk.ts
|
|
16
16
|
const prerender = false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-CHbHv83-.mjs";
|
|
3
3
|
import "../../../../../base64-CmWvODNW.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import "../../../../../comment-
|
|
6
|
-
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-
|
|
7
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
8
|
-
import { r as handleCommentCounts } from "../../../../../comments-
|
|
4
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
5
|
+
import "../../../../../comment-CH1IrFFs.mjs";
|
|
6
|
+
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-BHkLZk-w.mjs";
|
|
7
|
+
import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
|
|
8
|
+
import { r as handleCommentCounts } from "../../../../../comments-BUJyXbgq.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/admin/comments/counts.ts
|
|
11
11
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../after-B1IIdH3Y.mjs";
|
|
2
2
|
import "../../../../../object-cache-CHbHv83-.mjs";
|
|
3
3
|
import "../../../../../base64-CmWvODNW.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-
|
|
4
|
+
import "../../../../../types-DU4TSFS5.mjs";
|
|
5
|
+
import "../../../../../comment-CH1IrFFs.mjs";
|
|
6
|
+
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-BHkLZk-w.mjs";
|
|
7
|
+
import { i as parseQuery, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
8
8
|
import { gt as commentListQuery } from "../../../../../redirects-Dcbuisoj.mjs";
|
|
9
9
|
import "../../../../../byline-fields-eyJMblSr.mjs";
|
|
10
10
|
import "../../../../../status-vUK0SA17.mjs";
|
|
11
11
|
import "../../../../../api/schemas/index.mjs";
|
|
12
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
13
|
-
import { o as handleCommentInbox } from "../../../../../comments-
|
|
12
|
+
import { n as requirePerm } from "../../../../../authorize-C3a_zGsM.mjs";
|
|
13
|
+
import { o as handleCommentInbox } from "../../../../../comments-BUJyXbgq.mjs";
|
|
14
14
|
|
|
15
15
|
//#region src/astro/routes/api/admin/comments/index.ts
|
|
16
16
|
const prerender = false;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../../../../base64-CmWvODNW.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
2
|
+
import "../../../../../../types-DU4TSFS5.mjs";
|
|
3
3
|
import { t as OptionsRepository } from "../../../../../../options-DTTML-Tx.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 { n as requirePerm } from "../../../../../../authorize-
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-BHkLZk-w.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-CqyZj3Hp.mjs";
|
|
6
|
+
import { n as requirePerm } from "../../../../../../authorize-C3a_zGsM.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-CmWvODNW.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
2
|
+
import "../../../../../../types-DU4TSFS5.mjs";
|
|
3
3
|
import { t as OptionsRepository } from "../../../../../../options-DTTML-Tx.mjs";
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
5
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-BHkLZk-w.mjs";
|
|
5
|
+
import { n as requirePerm } from "../../../../../../authorize-C3a_zGsM.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/astro/routes/api/admin/hooks/exclusive/index.ts
|
|
8
8
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-CmWvODNW.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-DU4TSFS5.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
5
5
|
import { a as handleOAuthClientUpdate, n as handleOAuthClientDelete, r as handleOAuthClientGet } from "../../../../../oauth-clients-C9SYwEbZ.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { Role } from "@emdash-cms/auth";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-CmWvODNW.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-DU4TSFS5.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-BHkLZk-w.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CqyZj3Hp.mjs";
|
|
5
5
|
import { i as handleOAuthClientList, t as handleOAuthClientCreate } from "../../../../../oauth-clients-C9SYwEbZ.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { Role } from "@emdash-cms/auth";
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import "../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
3
3
|
import "../../../../../../object-cache-CHbHv83-.mjs";
|
|
4
|
-
import "../../../../../../content-
|
|
4
|
+
import "../../../../../../content-RmfHoWqK.mjs";
|
|
5
5
|
import "../../../../../../base64-CmWvODNW.mjs";
|
|
6
|
-
import "../../../../../../types-
|
|
7
|
-
import "../../../../../../media-
|
|
8
|
-
import "../../../../../../user-
|
|
9
|
-
import "../../../../../../taxonomy-
|
|
10
|
-
import "../../../../../../comment-
|
|
6
|
+
import "../../../../../../types-DU4TSFS5.mjs";
|
|
7
|
+
import "../../../../../../media-C0nRRfs1.mjs";
|
|
8
|
+
import "../../../../../../user-DgGbKL9s.mjs";
|
|
9
|
+
import "../../../../../../taxonomy-Cru-he6s.mjs";
|
|
10
|
+
import "../../../../../../comment-CH1IrFFs.mjs";
|
|
11
11
|
import "../../../../../../options-DTTML-Tx.mjs";
|
|
12
|
-
import "../../../../../../menus-
|
|
13
|
-
import "../../../../../../redirect-
|
|
12
|
+
import "../../../../../../menus-SL2K0xq2.mjs";
|
|
13
|
+
import "../../../../../../redirect-lMOzG04S.mjs";
|
|
14
14
|
import "../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
15
15
|
import "../../../../../../byline-registry-BOjqDOim.mjs";
|
|
16
|
-
import "../../../../../../field-defs-cache-
|
|
17
|
-
import "../../../../../../byline-
|
|
18
|
-
import "../../../../../../seo-
|
|
19
|
-
import { v as handlePluginDisable } from "../../../../../../api-
|
|
20
|
-
import "../../../../../../dashboard-
|
|
21
|
-
import "../../../../../../fts-manager-
|
|
22
|
-
import "../../../../../../registry-
|
|
23
|
-
import "../../../../../../loader-
|
|
24
|
-
import "../../../../../../schema-
|
|
25
|
-
import "../../../../../../zod-generator-
|
|
16
|
+
import "../../../../../../field-defs-cache-BA-8ZPiT.mjs";
|
|
17
|
+
import "../../../../../../byline-DEKSVPTy.mjs";
|
|
18
|
+
import "../../../../../../seo-Dd3tbY_k.mjs";
|
|
19
|
+
import { v as handlePluginDisable } from "../../../../../../api-80kycR9o.mjs";
|
|
20
|
+
import "../../../../../../dashboard-CVyGhift.mjs";
|
|
21
|
+
import "../../../../../../fts-manager-Db9jGavf.mjs";
|
|
22
|
+
import "../../../../../../registry-DP-iEtdR.mjs";
|
|
23
|
+
import "../../../../../../loader-4K37qA-y.mjs";
|
|
24
|
+
import "../../../../../../schema-BfJ7bIXH.mjs";
|
|
25
|
+
import "../../../../../../zod-generator-C5JaV--i.mjs";
|
|
26
26
|
import "../../../../../../seo-BkhuuaaE.mjs";
|
|
27
|
-
import "../../../../../../sections-
|
|
28
|
-
import "../../../../../../settings-
|
|
29
|
-
import "../../../../../../settings-
|
|
27
|
+
import "../../../../../../sections-Dm0CVX23.mjs";
|
|
28
|
+
import "../../../../../../settings-BX8cWBus.mjs";
|
|
29
|
+
import "../../../../../../settings-CZ7ZP9cW.mjs";
|
|
30
30
|
import "../../../../../../resolve-C7I0qiR0.mjs";
|
|
31
|
-
import "../../../../../../taxonomies-
|
|
32
|
-
import "../../../../../../taxonomies-
|
|
31
|
+
import "../../../../../../taxonomies-ckPjz-6d.mjs";
|
|
32
|
+
import "../../../../../../taxonomies-DChKcVxf.mjs";
|
|
33
33
|
import "../../../../../../manifest-schema-kPGX7VS-.mjs";
|
|
34
34
|
import "../../../../../../types-BvbeGEtr.mjs";
|
|
35
35
|
import "../../../../../../ssrf-BRKb343l.mjs";
|
|
36
|
-
import { a as unwrapResult, t as apiError } from "../../../../../../error-
|
|
37
|
-
import "../../../../../../parse-
|
|
36
|
+
import { a as unwrapResult, t as apiError } from "../../../../../../error-BHkLZk-w.mjs";
|
|
37
|
+
import "../../../../../../parse-CqyZj3Hp.mjs";
|
|
38
38
|
import "../../../../../../redirects-Dcbuisoj.mjs";
|
|
39
39
|
import "../../../../../../byline-fields-eyJMblSr.mjs";
|
|
40
40
|
import "../../../../../../status-vUK0SA17.mjs";
|
|
41
41
|
import { r as setCronTasksEnabled } from "../../../../../../cron-C5LVoNmP.mjs";
|
|
42
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
42
|
+
import { n as requirePerm } from "../../../../../../authorize-C3a_zGsM.mjs";
|
|
43
43
|
|
|
44
44
|
//#region src/astro/routes/api/admin/plugins/[id]/disable.ts
|
|
45
45
|
const prerender = false;
|
|
@@ -50,7 +50,7 @@ const POST = async ({ params, locals }) => {
|
|
|
50
50
|
const denied = requirePerm(user, "plugins:manage");
|
|
51
51
|
if (denied) return denied;
|
|
52
52
|
if (!id) return apiError("INVALID_REQUEST", "Plugin ID required", 400);
|
|
53
|
-
const result = await handlePluginDisable(emdash.db, emdash.configuredPlugins, id);
|
|
53
|
+
const result = await handlePluginDisable(emdash.db, emdash.configuredPlugins, emdash.sandboxedPluginEntries, id);
|
|
54
54
|
if (!result.success) return unwrapResult(result);
|
|
55
55
|
await emdash.setPluginStatus(id, "inactive");
|
|
56
56
|
await setCronTasksEnabled(emdash.db, id, false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable.mjs","names":[],"sources":["../../../../../../../src/astro/routes/api/admin/plugins/[id]/disable.ts"],"sourcesContent":["/**\n * Plugin disable endpoint\n *\n * POST /_emdash/api/admin/plugins/:id/disable - Disable a plugin\n */\n\nimport type { APIRoute } from \"astro\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, unwrapResult } from \"#api/error.js\";\nimport { handlePluginDisable } from \"#api/index.js\";\nimport { setCronTasksEnabled } from \"#plugins/cron.js\";\n\nexport const prerender = false;\n\nexport const POST: APIRoute = async ({ params, locals }) => {\n\tconst { emdash, user } = locals;\n\tconst { id } = params;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"plugins:manage\");\n\tif (denied) return denied;\n\n\tif (!id) {\n\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t}\n\n\tconst result = await handlePluginDisable(
|
|
1
|
+
{"version":3,"file":"disable.mjs","names":[],"sources":["../../../../../../../src/astro/routes/api/admin/plugins/[id]/disable.ts"],"sourcesContent":["/**\n * Plugin disable endpoint\n *\n * POST /_emdash/api/admin/plugins/:id/disable - Disable a plugin\n */\n\nimport type { APIRoute } from \"astro\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, unwrapResult } from \"#api/error.js\";\nimport { handlePluginDisable } from \"#api/index.js\";\nimport { setCronTasksEnabled } from \"#plugins/cron.js\";\n\nexport const prerender = false;\n\nexport const POST: APIRoute = async ({ params, locals }) => {\n\tconst { emdash, user } = locals;\n\tconst { id } = params;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"plugins:manage\");\n\tif (denied) return denied;\n\n\tif (!id) {\n\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t}\n\n\tconst result = await handlePluginDisable(\n\t\temdash.db,\n\t\temdash.configuredPlugins,\n\t\temdash.sandboxedPluginEntries,\n\t\tid,\n\t);\n\n\tif (!result.success) return unwrapResult(result);\n\n\tawait emdash.setPluginStatus(id, \"inactive\");\n\tawait setCronTasksEnabled(emdash.db, id, false);\n\n\treturn unwrapResult(result);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAa,YAAY;AAEzB,MAAa,OAAiB,OAAO,EAAE,QAAQ,aAAa;CAC3D,MAAM,EAAE,QAAQ,SAAS;CACzB,MAAM,EAAE,OAAO;AAEf,KAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;CAGpE,MAAM,SAAS,YAAY,MAAM,iBAAiB;AAClD,KAAI,OAAQ,QAAO;AAEnB,KAAI,CAAC,GACJ,QAAO,SAAS,mBAAmB,sBAAsB,IAAI;CAG9D,MAAM,SAAS,MAAM,oBACpB,OAAO,IACP,OAAO,mBACP,OAAO,wBACP,GACA;AAED,KAAI,CAAC,OAAO,QAAS,QAAO,aAAa,OAAO;AAEhD,OAAM,OAAO,gBAAgB,IAAI,WAAW;AAC5C,OAAM,oBAAoB,OAAO,IAAI,IAAI,MAAM;AAE/C,QAAO,aAAa,OAAO"}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import "../../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import "../../../../../../after-B1IIdH3Y.mjs";
|
|
3
3
|
import "../../../../../../object-cache-CHbHv83-.mjs";
|
|
4
|
-
import "../../../../../../content-
|
|
4
|
+
import "../../../../../../content-RmfHoWqK.mjs";
|
|
5
5
|
import "../../../../../../base64-CmWvODNW.mjs";
|
|
6
|
-
import "../../../../../../types-
|
|
7
|
-
import "../../../../../../media-
|
|
8
|
-
import "../../../../../../user-
|
|
9
|
-
import "../../../../../../taxonomy-
|
|
10
|
-
import "../../../../../../comment-
|
|
6
|
+
import "../../../../../../types-DU4TSFS5.mjs";
|
|
7
|
+
import "../../../../../../media-C0nRRfs1.mjs";
|
|
8
|
+
import "../../../../../../user-DgGbKL9s.mjs";
|
|
9
|
+
import "../../../../../../taxonomy-Cru-he6s.mjs";
|
|
10
|
+
import "../../../../../../comment-CH1IrFFs.mjs";
|
|
11
11
|
import "../../../../../../options-DTTML-Tx.mjs";
|
|
12
|
-
import "../../../../../../menus-
|
|
13
|
-
import "../../../../../../redirect-
|
|
12
|
+
import "../../../../../../menus-SL2K0xq2.mjs";
|
|
13
|
+
import "../../../../../../redirect-lMOzG04S.mjs";
|
|
14
14
|
import "../../../../../../request-cache-KCNHp_RJ.mjs";
|
|
15
15
|
import "../../../../../../byline-registry-BOjqDOim.mjs";
|
|
16
|
-
import "../../../../../../field-defs-cache-
|
|
17
|
-
import "../../../../../../byline-
|
|
18
|
-
import "../../../../../../seo-
|
|
19
|
-
import { y as handlePluginEnable } from "../../../../../../api-
|
|
20
|
-
import "../../../../../../dashboard-
|
|
21
|
-
import "../../../../../../fts-manager-
|
|
22
|
-
import "../../../../../../registry-
|
|
23
|
-
import "../../../../../../loader-
|
|
24
|
-
import "../../../../../../schema-
|
|
25
|
-
import "../../../../../../zod-generator-
|
|
16
|
+
import "../../../../../../field-defs-cache-BA-8ZPiT.mjs";
|
|
17
|
+
import "../../../../../../byline-DEKSVPTy.mjs";
|
|
18
|
+
import "../../../../../../seo-Dd3tbY_k.mjs";
|
|
19
|
+
import { y as handlePluginEnable } from "../../../../../../api-80kycR9o.mjs";
|
|
20
|
+
import "../../../../../../dashboard-CVyGhift.mjs";
|
|
21
|
+
import "../../../../../../fts-manager-Db9jGavf.mjs";
|
|
22
|
+
import "../../../../../../registry-DP-iEtdR.mjs";
|
|
23
|
+
import "../../../../../../loader-4K37qA-y.mjs";
|
|
24
|
+
import "../../../../../../schema-BfJ7bIXH.mjs";
|
|
25
|
+
import "../../../../../../zod-generator-C5JaV--i.mjs";
|
|
26
26
|
import "../../../../../../seo-BkhuuaaE.mjs";
|
|
27
|
-
import "../../../../../../sections-
|
|
28
|
-
import "../../../../../../settings-
|
|
29
|
-
import "../../../../../../settings-
|
|
27
|
+
import "../../../../../../sections-Dm0CVX23.mjs";
|
|
28
|
+
import "../../../../../../settings-BX8cWBus.mjs";
|
|
29
|
+
import "../../../../../../settings-CZ7ZP9cW.mjs";
|
|
30
30
|
import "../../../../../../resolve-C7I0qiR0.mjs";
|
|
31
|
-
import "../../../../../../taxonomies-
|
|
32
|
-
import "../../../../../../taxonomies-
|
|
31
|
+
import "../../../../../../taxonomies-ckPjz-6d.mjs";
|
|
32
|
+
import "../../../../../../taxonomies-DChKcVxf.mjs";
|
|
33
33
|
import "../../../../../../manifest-schema-kPGX7VS-.mjs";
|
|
34
34
|
import "../../../../../../types-BvbeGEtr.mjs";
|
|
35
35
|
import "../../../../../../ssrf-BRKb343l.mjs";
|
|
36
|
-
import { a as unwrapResult, t as apiError } from "../../../../../../error-
|
|
37
|
-
import "../../../../../../parse-
|
|
36
|
+
import { a as unwrapResult, t as apiError } from "../../../../../../error-BHkLZk-w.mjs";
|
|
37
|
+
import "../../../../../../parse-CqyZj3Hp.mjs";
|
|
38
38
|
import "../../../../../../redirects-Dcbuisoj.mjs";
|
|
39
39
|
import "../../../../../../byline-fields-eyJMblSr.mjs";
|
|
40
40
|
import "../../../../../../status-vUK0SA17.mjs";
|
|
41
41
|
import { r as setCronTasksEnabled } from "../../../../../../cron-C5LVoNmP.mjs";
|
|
42
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
42
|
+
import { n as requirePerm } from "../../../../../../authorize-C3a_zGsM.mjs";
|
|
43
43
|
|
|
44
44
|
//#region src/astro/routes/api/admin/plugins/[id]/enable.ts
|
|
45
45
|
const prerender = false;
|
|
@@ -50,7 +50,7 @@ const POST = async ({ params, locals }) => {
|
|
|
50
50
|
const denied = requirePerm(user, "plugins:manage");
|
|
51
51
|
if (denied) return denied;
|
|
52
52
|
if (!id) return apiError("INVALID_REQUEST", "Plugin ID required", 400);
|
|
53
|
-
const result = await handlePluginEnable(emdash.db, emdash.configuredPlugins, id);
|
|
53
|
+
const result = await handlePluginEnable(emdash.db, emdash.configuredPlugins, emdash.sandboxedPluginEntries, id);
|
|
54
54
|
if (!result.success) return unwrapResult(result);
|
|
55
55
|
const source = result.data.item.source;
|
|
56
56
|
if (source === "registry") await emdash.syncRegistryPlugins();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.mjs","names":[],"sources":["../../../../../../../src/astro/routes/api/admin/plugins/[id]/enable.ts"],"sourcesContent":["/**\n * Plugin enable endpoint\n *\n * POST /_emdash/api/admin/plugins/:id/enable - Enable a plugin\n */\n\nimport type { APIRoute } from \"astro\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, unwrapResult } from \"#api/error.js\";\nimport { handlePluginEnable } from \"#api/index.js\";\nimport { setCronTasksEnabled } from \"#plugins/cron.js\";\n\nexport const prerender = false;\n\nexport const POST: APIRoute = async ({ params, locals }) => {\n\tconst { emdash, user } = locals;\n\tconst { id } = params;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"plugins:manage\");\n\tif (denied) return denied;\n\n\tif (!id) {\n\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t}\n\n\tconst result = await handlePluginEnable(
|
|
1
|
+
{"version":3,"file":"enable.mjs","names":[],"sources":["../../../../../../../src/astro/routes/api/admin/plugins/[id]/enable.ts"],"sourcesContent":["/**\n * Plugin enable endpoint\n *\n * POST /_emdash/api/admin/plugins/:id/enable - Enable a plugin\n */\n\nimport type { APIRoute } from \"astro\";\n\nimport { requirePerm } from \"#api/authorize.js\";\nimport { apiError, unwrapResult } from \"#api/error.js\";\nimport { handlePluginEnable } from \"#api/index.js\";\nimport { setCronTasksEnabled } from \"#plugins/cron.js\";\n\nexport const prerender = false;\n\nexport const POST: APIRoute = async ({ params, locals }) => {\n\tconst { emdash, user } = locals;\n\tconst { id } = params;\n\n\tif (!emdash?.db) {\n\t\treturn apiError(\"NOT_CONFIGURED\", \"EmDash is not initialized\", 500);\n\t}\n\n\tconst denied = requirePerm(user, \"plugins:manage\");\n\tif (denied) return denied;\n\n\tif (!id) {\n\t\treturn apiError(\"INVALID_REQUEST\", \"Plugin ID required\", 400);\n\t}\n\n\tconst result = await handlePluginEnable(\n\t\temdash.db,\n\t\temdash.configuredPlugins,\n\t\temdash.sandboxedPluginEntries,\n\t\tid,\n\t);\n\n\tif (!result.success) return unwrapResult(result);\n\n\t// If this is a runtime-installed plugin (marketplace or registry),\n\t// the sandbox bundle may not be in memory yet -- a sync reloads it\n\t// from R2 so the just-enabled plugin can actually run hooks.\n\tconst source = result.data.item.source;\n\tif (source === \"registry\") {\n\t\tawait emdash.syncRegistryPlugins();\n\t} else if (source === \"marketplace\") {\n\t\tawait emdash.syncMarketplacePlugins();\n\t}\n\n\tawait emdash.setPluginStatus(id, \"active\");\n\tawait setCronTasksEnabled(emdash.db, id, true);\n\n\treturn unwrapResult(result);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,MAAa,YAAY;AAEzB,MAAa,OAAiB,OAAO,EAAE,QAAQ,aAAa;CAC3D,MAAM,EAAE,QAAQ,SAAS;CACzB,MAAM,EAAE,OAAO;AAEf,KAAI,CAAC,QAAQ,GACZ,QAAO,SAAS,kBAAkB,6BAA6B,IAAI;CAGpE,MAAM,SAAS,YAAY,MAAM,iBAAiB;AAClD,KAAI,OAAQ,QAAO;AAEnB,KAAI,CAAC,GACJ,QAAO,SAAS,mBAAmB,sBAAsB,IAAI;CAG9D,MAAM,SAAS,MAAM,mBACpB,OAAO,IACP,OAAO,mBACP,OAAO,wBACP,GACA;AAED,KAAI,CAAC,OAAO,QAAS,QAAO,aAAa,OAAO;CAKhD,MAAM,SAAS,OAAO,KAAK,KAAK;AAChC,KAAI,WAAW,WACd,OAAM,OAAO,qBAAqB;UACxB,WAAW,cACrB,OAAM,OAAO,wBAAwB;AAGtC,OAAM,OAAO,gBAAgB,IAAI,SAAS;AAC1C,OAAM,oBAAoB,OAAO,IAAI,IAAI,KAAK;AAE9C,QAAO,aAAa,OAAO"}
|