nuxt-backend 0.3.0 → 0.4.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/README.md +8 -1
- package/dist/chunks/catalog.mjs +1 -1
- package/dist/chunks/doctor.mjs +102 -8
- package/dist/chunks/email-previews.mjs +1 -1
- package/dist/chunks/health.mjs +2 -2
- package/dist/chunks/index.mjs +3 -3
- package/dist/chunks/install.mjs +4 -4
- package/dist/chunks/run.mjs +1 -1
- package/dist/chunks/server.mjs +6 -6
- package/dist/cli.mjs +285 -140
- package/dist/convex/catalog.d.ts +8 -0
- package/dist/convex/catalog.d.ts.map +1 -1
- package/dist/convex/catalog.js +16 -0
- package/dist/convex/catalog.js.map +1 -1
- package/dist/convex/components/backend/_generated/component.d.ts +21 -1
- package/dist/convex/components/backend/_generated/component.d.ts.map +1 -1
- package/dist/convex/components/backend/billing.d.ts +7 -0
- package/dist/convex/components/backend/billing.d.ts.map +1 -1
- package/dist/convex/components/backend/billing.js +20 -5
- package/dist/convex/components/backend/billing.js.map +1 -1
- package/dist/convex/components/backend/jobs.d.ts +69 -1
- package/dist/convex/components/backend/jobs.d.ts.map +1 -1
- package/dist/convex/components/backend/jobs.js +103 -5
- package/dist/convex/components/backend/jobs.js.map +1 -1
- package/dist/convex/components/backend/schema.d.ts +46 -18
- package/dist/convex/components/backend/schema.d.ts.map +1 -1
- package/dist/convex/components/backend/schema.js +11 -0
- package/dist/convex/components/backend/schema.js.map +1 -1
- package/dist/convex/components/backend/subscriptions.d.ts +3 -3
- package/dist/convex/delivery.d.ts +17 -0
- package/dist/convex/delivery.d.ts.map +1 -1
- package/dist/convex/delivery.js +26 -1
- package/dist/convex/delivery.js.map +1 -1
- package/dist/convex/emails/renewal-reminder.d.ts.map +1 -1
- package/dist/convex/emails/renewal-reminder.js +17 -1
- package/dist/convex/emails/renewal-reminder.js.map +1 -1
- package/dist/convex/errors.d.ts +7 -5
- package/dist/convex/errors.d.ts.map +1 -1
- package/dist/convex/errors.js +24 -9
- package/dist/convex/errors.js.map +1 -1
- package/dist/convex/events.d.ts +10 -0
- package/dist/convex/events.d.ts.map +1 -1
- package/dist/convex/events.js +7 -0
- package/dist/convex/events.js.map +1 -1
- package/dist/convex/integrations/ai/images.d.ts.map +1 -1
- package/dist/convex/integrations/ai/images.js +20 -7
- package/dist/convex/integrations/ai/images.js.map +1 -1
- package/dist/convex/integrations/ai/job-errors.d.ts +32 -4
- package/dist/convex/integrations/ai/job-errors.d.ts.map +1 -1
- package/dist/convex/integrations/ai/job-errors.js +55 -8
- package/dist/convex/integrations/ai/job-errors.js.map +1 -1
- package/dist/convex/integrations/ai/jobs.d.ts +128 -7
- package/dist/convex/integrations/ai/jobs.d.ts.map +1 -1
- package/dist/convex/integrations/ai/jobs.js +395 -63
- package/dist/convex/integrations/ai/jobs.js.map +1 -1
- package/dist/convex/integrations/ai/models.d.ts +1 -1
- package/dist/convex/integrations/ai/models.d.ts.map +1 -1
- package/dist/convex/integrations/ai/moderation.d.ts +9 -3
- package/dist/convex/integrations/ai/moderation.d.ts.map +1 -1
- package/dist/convex/integrations/ai/moderation.js +4 -2
- package/dist/convex/integrations/ai/moderation.js.map +1 -1
- package/dist/convex/integrations/ai.d.ts +2 -2
- package/dist/convex/integrations/ai.d.ts.map +1 -1
- package/dist/convex/integrations/ai.js +1 -1
- package/dist/convex/integrations/ai.js.map +1 -1
- package/dist/convex/integrations/billing/context.d.ts.map +1 -1
- package/dist/convex/integrations/billing/context.js +5 -2
- package/dist/convex/integrations/billing/context.js.map +1 -1
- package/dist/convex/integrations/billing/credits.d.ts +1 -0
- package/dist/convex/integrations/billing/credits.d.ts.map +1 -1
- package/dist/convex/integrations/billing/credits.js +4 -1
- package/dist/convex/integrations/billing/credits.js.map +1 -1
- package/dist/convex/integrations/billing/features.d.ts.map +1 -1
- package/dist/convex/integrations/billing/gifts.d.ts.map +1 -1
- package/dist/convex/integrations/billing/history.d.ts.map +1 -1
- package/dist/convex/integrations/billing/passes.d.ts +2 -2
- package/dist/convex/integrations/billing/passes.d.ts.map +1 -1
- package/dist/convex/integrations/billing/passes.js +3 -11
- package/dist/convex/integrations/billing/passes.js.map +1 -1
- package/dist/convex/integrations/billing/provider-failure.d.ts +17 -0
- package/dist/convex/integrations/billing/provider-failure.d.ts.map +1 -0
- package/dist/convex/integrations/billing/provider-failure.js +52 -0
- package/dist/convex/integrations/billing/provider-failure.js.map +1 -0
- package/dist/convex/integrations/billing/quotas.d.ts.map +1 -1
- package/dist/convex/integrations/billing/subscriptions.d.ts.map +1 -1
- package/dist/convex/integrations/billing/types/setup.d.ts +1 -0
- package/dist/convex/integrations/billing/types/setup.d.ts.map +1 -1
- package/dist/convex/integrations/billing/types/surface.d.ts +9 -1
- package/dist/convex/integrations/billing/types/surface.d.ts.map +1 -1
- package/dist/convex/integrations/email-sync.d.ts +24 -2
- package/dist/convex/integrations/email-sync.d.ts.map +1 -1
- package/dist/convex/integrations/email-sync.js +54 -23
- package/dist/convex/integrations/email-sync.js.map +1 -1
- package/dist/convex/integrations/inbound.d.ts +16 -7
- package/dist/convex/integrations/inbound.d.ts.map +1 -1
- package/dist/convex/integrations/inbound.js +21 -10
- package/dist/convex/integrations/inbound.js.map +1 -1
- package/dist/convex/integrations/launch.d.ts +17 -1
- package/dist/convex/integrations/launch.d.ts.map +1 -1
- package/dist/convex/integrations/launch.js +32 -3
- package/dist/convex/integrations/launch.js.map +1 -1
- package/dist/convex/integrations/referrals.d.ts +20 -0
- package/dist/convex/integrations/referrals.d.ts.map +1 -1
- package/dist/convex/integrations/referrals.js +14 -9
- package/dist/convex/integrations/referrals.js.map +1 -1
- package/dist/convex/integrations/storage.d.ts +67 -0
- package/dist/convex/integrations/storage.d.ts.map +1 -1
- package/dist/convex/integrations/storage.js +42 -1
- package/dist/convex/integrations/storage.js.map +1 -1
- package/dist/convex/label-groups/admin.d.ts +3 -0
- package/dist/convex/label-groups/admin.d.ts.map +1 -1
- package/dist/convex/label-groups/admin.js +3 -0
- package/dist/convex/label-groups/admin.js.map +1 -1
- package/dist/convex/label-groups/audit.d.ts +1 -0
- package/dist/convex/label-groups/audit.d.ts.map +1 -1
- package/dist/convex/label-groups/audit.js +1 -0
- package/dist/convex/label-groups/audit.js.map +1 -1
- package/dist/convex/label-groups/auth.d.ts +7 -0
- package/dist/convex/label-groups/auth.d.ts.map +1 -1
- package/dist/convex/label-groups/auth.js +7 -0
- package/dist/convex/label-groups/auth.js.map +1 -1
- package/dist/convex/label-groups/errors.d.ts +9 -0
- package/dist/convex/label-groups/errors.d.ts.map +1 -1
- package/dist/convex/label-groups/errors.js +12 -0
- package/dist/convex/label-groups/errors.js.map +1 -1
- package/dist/convex/label-groups/gift.d.ts +24 -0
- package/dist/convex/label-groups/gift.d.ts.map +1 -1
- package/dist/convex/label-groups/gift.js +27 -0
- package/dist/convex/label-groups/gift.js.map +1 -1
- package/dist/convex/label-groups/legal.d.ts +1 -1
- package/dist/convex/label-groups/pricing.d.ts +15 -0
- package/dist/convex/label-groups/pricing.d.ts.map +1 -1
- package/dist/convex/label-groups/pricing.js +20 -0
- package/dist/convex/label-groups/pricing.js.map +1 -1
- package/dist/convex/label-groups/referral.d.ts +4 -0
- package/dist/convex/label-groups/referral.d.ts.map +1 -1
- package/dist/convex/label-groups/referral.js +4 -0
- package/dist/convex/label-groups/referral.js.map +1 -1
- package/dist/convex/label-groups/settings.d.ts +34 -0
- package/dist/convex/label-groups/settings.d.ts.map +1 -1
- package/dist/convex/label-groups/settings.js +39 -0
- package/dist/convex/label-groups/settings.js.map +1 -1
- package/dist/convex/label-groups/waitlist.d.ts +5 -0
- package/dist/convex/label-groups/waitlist.d.ts.map +1 -1
- package/dist/convex/label-groups/waitlist.js +7 -2
- package/dist/convex/label-groups/waitlist.js.map +1 -1
- package/dist/convex/labels.d.ts +103 -1
- package/dist/convex/labels.d.ts.map +1 -1
- package/dist/convex/legal.d.ts +18 -1
- package/dist/convex/legal.d.ts.map +1 -1
- package/dist/convex/legal.js +17 -2
- package/dist/convex/legal.js.map +1 -1
- package/dist/convex/log.js +8 -0
- package/dist/convex/log.js.map +1 -1
- package/dist/convex/money.d.ts +10 -0
- package/dist/convex/money.d.ts.map +1 -0
- package/dist/convex/money.js +37 -0
- package/dist/convex/money.js.map +1 -0
- package/dist/convex/report-rules.d.ts +6 -0
- package/dist/convex/report-rules.d.ts.map +1 -1
- package/dist/convex/report-rules.js +15 -0
- package/dist/convex/report-rules.js.map +1 -1
- package/dist/convex/test-billing.d.ts +83 -0
- package/dist/convex/test-billing.d.ts.map +1 -0
- package/dist/convex/test-billing.js +131 -0
- package/dist/convex/test-billing.js.map +1 -0
- package/dist/convex/test-models.d.ts +14 -2
- package/dist/convex/test-models.d.ts.map +1 -1
- package/dist/convex/test-models.js +61 -4
- package/dist/convex/test-models.js.map +1 -1
- package/dist/devtools-client/index.html +1 -1
- package/dist/eslint.d.mts +2 -1
- package/dist/eslint.mjs +2 -1
- package/dist/module.d.ts +45 -2
- package/dist/module.js +2 -2
- package/dist/module.json +1 -1
- package/dist/runtime/chunk-recovery.d.ts +13 -0
- package/dist/runtime/chunk-recovery.js +1 -0
- package/dist/runtime/locales/de.json +113 -7
- package/dist/runtime/locales/en.json +114 -8
- package/dist/runtime/locales/es.json +113 -7
- package/dist/runtime/locales/fr.json +113 -7
- package/dist/runtime/locales/ru.json +113 -7
- package/dist/runtime/server/chunk-recovery.d.ts +49 -0
- package/dist/runtime/server/chunk-recovery.js +44 -0
- package/dist/runtime/server/csp.d.ts +7 -2
- package/dist/runtime/server/csp.js +2 -2
- package/dist/runtime/server/photo-decoder-csp.d.ts +17 -0
- package/dist/runtime/server/photo-decoder-csp.js +9 -0
- package/dist/runtime/vue/components/account/AccountDeletion.css +1 -1
- package/dist/runtime/vue/components/account/ActivationChecklist.css +1 -1
- package/dist/runtime/vue/components/account/ConsentPrompt.css +1 -1
- package/dist/runtime/vue/components/account/EmailUnsubscribe.css +1 -1
- package/dist/runtime/vue/components/account/HowDidYouHear.css +1 -1
- package/dist/runtime/vue/components/account/KeepAccount.css +1 -1
- package/dist/runtime/vue/components/account/OnboardingFlow.css +1 -1
- package/dist/runtime/vue/components/account/ProfileIdentity.css +1 -1
- package/dist/runtime/vue/components/account/ProfilePreferencesSection.css +1 -1
- package/dist/runtime/vue/components/account/ProfileSettings.css +1 -1
- package/dist/runtime/vue/components/account/SecurityAlerts.css +1 -1
- package/dist/runtime/vue/components/account/SecurityPasskeys.css +1 -1
- package/dist/runtime/vue/components/account/SecuritySessions.css +1 -1
- package/dist/runtime/vue/components/account/SecuritySettings.css +1 -1
- package/dist/runtime/vue/components/admin/AdminAccess.css +1 -1
- package/dist/runtime/vue/components/admin/AdminAnnouncements.css +1 -1
- package/dist/runtime/vue/components/admin/AdminBilling.css +1 -1
- package/dist/runtime/vue/components/admin/AdminChart.css +1 -1
- package/dist/runtime/vue/components/admin/AdminConsole.css +1 -1
- package/dist/runtime/vue/components/admin/AdminExperiments.css +1 -1
- package/dist/runtime/vue/components/admin/AdminFlags.css +1 -1
- package/dist/runtime/vue/components/admin/AdminQueue.css +1 -1
- package/dist/runtime/vue/components/admin/AdminQueueJob.vue +5 -2
- package/dist/runtime/vue/components/admin/AdminReferrals.css +1 -1
- package/dist/runtime/vue/components/admin/AdminReports.css +1 -1
- package/dist/runtime/vue/components/admin/AdminRevenue.css +1 -1
- package/dist/runtime/vue/components/admin/AdminUsers.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminUsers.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaces.d.vue.ts +3 -0
- package/dist/runtime/vue/components/admin/AdminWorkspaces.vue.d.ts +3 -0
- package/dist/runtime/vue/components/admin/admin-access-tab.js +2 -1
- package/dist/runtime/vue/components/admin/admin-revenue-tab.js +4 -1
- package/dist/runtime/vue/components/admin/admin.css +1 -1
- package/dist/runtime/vue/components/auth/AuthForm.css +1 -1
- package/dist/runtime/vue/components/auth/AuthForm.d.vue.ts +7 -0
- package/dist/runtime/vue/components/auth/AuthForm.vue +1 -2
- package/dist/runtime/vue/components/auth/AuthForm.vue.d.ts +7 -0
- package/dist/runtime/vue/components/auth/AuthFormChoose.css +1 -1
- package/dist/runtime/vue/components/auth/AuthFormHeader.css +1 -1
- package/dist/runtime/vue/components/auth/AuthFormPasskeyOffer.css +1 -1
- package/dist/runtime/vue/components/auth/InviteRedeem.css +1 -1
- package/dist/runtime/vue/components/auth/InviteRedeem.vue +95 -8
- package/dist/runtime/vue/components/auth/ReauthenticateCode.css +1 -1
- package/dist/runtime/vue/components/auth/ReauthenticateDialog.css +1 -1
- package/dist/runtime/vue/components/auth/ReauthenticatePasskey.css +1 -1
- package/dist/runtime/vue/components/auth/WaitlistForm.css +1 -1
- package/dist/runtime/vue/components/auth/WaitlistForm.d.vue.ts +5 -0
- package/dist/runtime/vue/components/auth/WaitlistForm.vue +3 -5
- package/dist/runtime/vue/components/auth/WaitlistForm.vue.d.ts +5 -0
- package/dist/runtime/vue/components/auth/WaitlistPlace.css +1 -1
- package/dist/runtime/vue/components/auth/WaitlistShare.css +1 -1
- package/dist/runtime/vue/components/auth/WaitlistShare.vue +1 -7
- package/dist/runtime/vue/components/auth/WaitlistStatus.css +1 -1
- package/dist/runtime/vue/components/auth/WaitlistStatus.vue +120 -23
- package/dist/runtime/vue/components/auth/auth-form.d.ts +1 -1
- package/dist/runtime/vue/components/auth/waitlist-form.js +1 -1
- package/dist/runtime/vue/components/billing/BillingHistory.css +1 -1
- package/dist/runtime/vue/components/billing/BillingHistoryOrder.css +1 -1
- package/dist/runtime/vue/components/billing/CancelConfirmGroup.vue +2 -7
- package/dist/runtime/vue/components/billing/CancelFlow.css +1 -1
- package/dist/runtime/vue/components/billing/GiftForm.css +1 -0
- package/dist/runtime/vue/components/billing/GiftForm.d.vue.ts +105 -0
- package/dist/runtime/vue/components/billing/GiftForm.vue +228 -0
- package/dist/runtime/vue/components/billing/GiftForm.vue.d.ts +105 -0
- package/dist/runtime/vue/components/billing/GiftList.css +1 -1
- package/dist/runtime/vue/components/billing/GiftList.d.vue.ts +87 -2
- package/dist/runtime/vue/components/billing/GiftList.vue +7 -4
- package/dist/runtime/vue/components/billing/GiftList.vue.d.ts +87 -2
- package/dist/runtime/vue/components/billing/GiftReceived.vue +11 -3
- package/dist/runtime/vue/components/billing/PlanChangeConfirmGroup.d.vue.ts +7 -0
- package/dist/runtime/vue/components/billing/PlanChangeConfirmGroup.vue +50 -0
- package/dist/runtime/vue/components/billing/PlanChangeConfirmGroup.vue.d.ts +7 -0
- package/dist/runtime/vue/components/billing/PricingChangeConfirm.d.vue.ts +4 -0
- package/dist/runtime/vue/components/billing/PricingChangeConfirm.vue +17 -0
- package/dist/runtime/vue/components/billing/PricingChangeConfirm.vue.d.ts +4 -0
- package/dist/runtime/vue/components/billing/PricingPackCard.css +1 -1
- package/dist/runtime/vue/components/billing/PricingPlanCard.css +1 -1
- package/dist/runtime/vue/components/billing/PricingPlanCard.vue +15 -0
- package/dist/runtime/vue/components/billing/PricingTable.css +1 -1
- package/dist/runtime/vue/components/billing/PricingTable.d.vue.ts +24 -2
- package/dist/runtime/vue/components/billing/PricingTable.vue +84 -17
- package/dist/runtime/vue/components/billing/PricingTable.vue.d.ts +24 -2
- package/dist/runtime/vue/components/billing/ReferralCard.css +1 -1
- package/dist/runtime/vue/components/billing/ReferralCard.d.vue.ts +4 -0
- package/dist/runtime/vue/components/billing/ReferralCard.vue.d.ts +4 -0
- package/dist/runtime/vue/components/billing/ReferralLanding.css +1 -1
- package/dist/runtime/vue/components/billing/ReferralLanding.vue +44 -2
- package/dist/runtime/vue/components/billing/UpgradePrompt.css +1 -1
- package/dist/runtime/vue/components/billing/UsageHistory.css +1 -1
- package/dist/runtime/vue/components/billing/WithdrawalButton.css +1 -1
- package/dist/runtime/vue/components/billing/cancel-flow.js +2 -1
- package/dist/runtime/vue/components/billing/pricing-table.d.ts +10 -0
- package/dist/runtime/vue/components/billing/withdrawal-button.d.ts +3 -2
- package/dist/runtime/vue/components/billing/withdrawal-button.js +13 -33
- package/dist/runtime/vue/components/shared.css +1 -1
- package/dist/runtime/vue/components/shell/AccessDenied.css +1 -1
- package/dist/runtime/vue/components/shell/AiLabel.css +1 -1
- package/dist/runtime/vue/components/shell/AppShell.css +1 -1
- package/dist/runtime/vue/components/shell/ConfirmDialog.css +1 -1
- package/dist/runtime/vue/components/shell/ConnectionStatus.css +1 -1
- package/dist/runtime/vue/components/shell/ContactForm.css +1 -1
- package/dist/runtime/vue/components/shell/Gate.css +1 -1
- package/dist/runtime/vue/components/shell/LegalDocument.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeAnnouncement.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeDeletion.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeGift.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeImpersonation.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeLowCredits.css +1 -1
- package/dist/runtime/vue/components/shell/NoticeMaintenance.css +1 -1
- package/dist/runtime/vue/components/shell/NoticePastDue.css +1 -1
- package/dist/runtime/vue/components/shell/NotificationInbox.css +1 -1
- package/dist/runtime/vue/components/shell/ReportAppeal.vue +16 -13
- package/dist/runtime/vue/components/shell/ReportNotice.css +1 -1
- package/dist/runtime/vue/components/shell/UploadField.css +1 -1
- package/dist/runtime/vue/components/shell/WorkspaceSwitcher.css +1 -1
- package/dist/runtime/vue/components/shell/report-form.js +1 -44
- package/dist/runtime/vue/components/tokens.css +1 -1
- package/dist/runtime/vue/components/workspaces/AuditLog.css +1 -1
- package/dist/runtime/vue/components/workspaces/AuditLog.d.vue.ts +1 -0
- package/dist/runtime/vue/components/workspaces/AuditLog.vue.d.ts +1 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBilling.css +1 -1
- package/dist/runtime/vue/components/workspaces/WorkspaceBilling.vue +29 -50
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingPause.d.vue.ts +3 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingPause.vue +69 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingPause.vue.d.ts +3 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingSwitch.d.vue.ts +3 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingSwitch.vue +54 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceBillingSwitch.vue.d.ts +3 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceCredits.css +1 -1
- package/dist/runtime/vue/components/workspaces/WorkspaceList.css +1 -1
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.d.vue.ts +38 -0
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.vue +32 -1
- package/dist/runtime/vue/components/workspaces/WorkspaceSettings.vue.d.ts +38 -0
- package/dist/runtime/vue/components/workspaces/workspace-billing.d.ts +39 -2
- package/dist/runtime/vue/components/workspaces/workspace-billing.js +94 -2
- package/dist/runtime/vue/components/workspaces/workspace-settings.d.ts +4 -0
- package/dist/runtime/vue/composables/billing-format.d.ts +9 -4
- package/dist/runtime/vue/composables/billing-format.js +17 -9
- package/dist/runtime/vue/composables/billing-provider.js +3 -2
- package/dist/runtime/vue/composables/prepare-photo.d.ts +75 -0
- package/dist/runtime/vue/composables/prepare-photo.js +223 -0
- package/dist/runtime/vue/composables/use-access.d.ts +23 -2
- package/dist/runtime/vue/composables/use-access.js +22 -3
- package/dist/runtime/vue/composables/use-billing.d.ts +76 -5
- package/dist/runtime/vue/composables/use-billing.js +48 -0
- package/dist/runtime/vue/composables/use-gift-form.d.ts +123 -0
- package/dist/runtime/vue/composables/use-gift-form.js +169 -0
- package/dist/runtime/vue/composables/use-gift-list.d.ts +44 -4
- package/dist/runtime/vue/composables/use-gift-list.js +11 -5
- package/dist/runtime/vue/composables/use-install-prompt.d.ts +71 -0
- package/dist/runtime/vue/composables/use-install-prompt.js +53 -0
- package/dist/runtime/vue/composables/use-labels.js +17 -23
- package/dist/runtime/vue/composables/use-login-flow.d.ts +9 -0
- package/dist/runtime/vue/composables/use-login-flow.js +7 -0
- package/dist/runtime/vue/composables/use-orders.d.ts +1 -1
- package/dist/runtime/vue/composables/use-pricing.d.ts +54 -5
- package/dist/runtime/vue/composables/use-pricing.js +37 -10
- package/dist/runtime/vue/composables/use-push-subscription.js +1 -7
- package/dist/runtime/vue/composables/use-referral-invite.d.ts +17 -2
- package/dist/runtime/vue/composables/use-referral-invite.js +10 -1
- package/dist/runtime/vue/composables/use-referrals.js +2 -1
- package/dist/runtime/vue/composables/use-report-appeal.d.ts +86 -0
- package/dist/runtime/vue/composables/use-report-appeal.js +61 -0
- package/dist/runtime/vue/composables/use-return-path.d.ts +5 -4
- package/dist/runtime/vue/composables/use-return-path.js +16 -2
- package/dist/runtime/vue/composables/use-waitlist.d.ts +13 -1
- package/dist/runtime/vue/composables/use-waitlist.js +15 -4
- package/dist/runtime/vue/composables/use-withdrawal.d.ts +63 -0
- package/dist/runtime/vue/composables/use-withdrawal.js +38 -0
- package/dist/runtime/vue/middleware/page-access.js +2 -2
- package/dist/runtime/vue/pages/gifts.vue +2 -0
- package/dist/runtime/vue/pages/login.vue +5 -7
- package/dist/runtime/vue/pages/report.vue +2 -3
- package/dist/runtime/vue/parts.d.ts +5 -0
- package/dist/runtime/vue/plugins/chunk-recovery.client.d.ts +10 -0
- package/dist/runtime/vue/plugins/chunk-recovery.client.js +10 -0
- package/dist/runtime/vue/plugins/install-banner.client.d.ts +7 -0
- package/dist/runtime/vue/plugins/install-banner.client.js +5 -0
- package/dist/runtime/vue/plugins/install-prompt.client.d.ts +7 -0
- package/dist/runtime/vue/plugins/install-prompt.client.js +6 -0
- package/dist/runtime/vue/plugins/session-ended.js +2 -3
- package/dist/runtime/vue/utils/active-locale.js +8 -0
- package/dist/runtime/vue/utils/confirm-group.d.ts +18 -0
- package/dist/runtime/vue/utils/confirm-group.js +17 -0
- package/dist/runtime/vue/utils/display-mode.d.ts +8 -0
- package/dist/runtime/vue/utils/display-mode.js +11 -0
- package/dist/runtime/vue/utils/heic-absent.d.ts +2 -0
- package/dist/runtime/vue/utils/heic-absent.js +3 -0
- package/dist/runtime/vue/utils/intl.d.ts +12 -4
- package/dist/runtime/vue/utils/intl.js +13 -2
- package/dist/runtime/vue/utils/kept-invite.js +6 -29
- package/dist/runtime/vue/utils/page-origin.d.ts +15 -0
- package/dist/runtime/vue/utils/page-origin.js +8 -0
- package/dist/runtime/vue/utils/page-rules.d.ts +9 -0
- package/dist/runtime/vue/utils/page-rules.js +3 -0
- package/dist/runtime/vue/utils/plan-change-confirm.d.ts +76 -0
- package/dist/runtime/vue/utils/plan-change-confirm.js +39 -0
- package/dist/runtime/vue/utils/pricing-bindings.d.ts +7 -1
- package/dist/runtime/vue/utils/pricing-bindings.js +21 -0
- package/dist/runtime/vue/utils/pricing-seo.js +4 -2
- package/dist/runtime/vue/utils/tab-keep.d.ts +17 -0
- package/dist/runtime/vue/utils/tab-keep.js +46 -0
- package/dist/shared/{nuxt-backend.Bq_mhlky.mjs → nuxt-backend.9IVxzzft.mjs} +55 -10
- package/dist/shared/{nuxt-backend.DmZI-QSO.mjs → nuxt-backend.BCjeoX0x.mjs} +2 -26
- package/dist/shared/{nuxt-backend.D9qXcOOI.mjs → nuxt-backend.Baxb382E.mjs} +1 -1
- package/dist/shared/{nuxt-backend.Lk2MQI2u.mjs → nuxt-backend.BjQoqNIu.mjs} +26 -2
- package/dist/shared/{nuxt-backend.G4JryO1q.mjs → nuxt-backend.CbR37s_c.mjs} +255 -49
- package/package.json +6 -1
- package/skills/nuxt-backend/references/api.md +26 -10
- package/skills/nuxt-backend/references/renames.json +104 -0
- package/skills/nuxt-backend/references/surface.json +30 -2
- package/skills/nuxt-backend-ai/references/api.md +2 -1
- package/skills/nuxt-backend-auth/references/api.md +1 -1
- package/skills/nuxt-backend-billing/references/api.md +2 -0
- package/skills/nuxt-backend-data/references/api.md +4 -1
- package/skills/nuxt-backend-email/SKILL.md +5 -2
- package/skills/nuxt-backend-email/references/api.md +1 -0
- package/skills/nuxt-backend-growth/references/api.md +4 -0
- package/skills/nuxt-backend-ship/SKILL.md +1 -1
- package/skills/nuxt-backend-ship/references/api.md +9 -5
- package/skills/nuxt-backend-ui/SKILL.md +10 -5
- package/skills/nuxt-backend-upgrade/SKILL.md +4 -3
- package/skills/nuxt-backend-upgrade/references/upgrade.md +43 -0
- package/src/convex/catalog.ts +17 -0
- package/src/convex/components/backend/_generated/component.ts +30 -2
- package/src/convex/components/backend/billing.ts +19 -5
- package/src/convex/components/backend/jobs.ts +102 -5
- package/src/convex/components/backend/schema.ts +11 -0
- package/src/convex/delivery.ts +26 -1
- package/src/convex/emails/renewal-reminder.ts +19 -1
- package/src/convex/errors.ts +23 -9
- package/src/convex/events.ts +7 -0
- package/src/convex/integrations/ai/images.ts +22 -8
- package/src/convex/integrations/ai/job-errors.ts +64 -9
- package/src/convex/integrations/ai/jobs.ts +509 -64
- package/src/convex/integrations/ai/models.ts +1 -1
- package/src/convex/integrations/ai/moderation.ts +10 -5
- package/src/convex/integrations/ai.ts +6 -1
- package/src/convex/integrations/billing/context.ts +6 -3
- package/src/convex/integrations/billing/credits.ts +4 -1
- package/src/convex/integrations/billing/passes.ts +3 -11
- package/src/convex/integrations/billing/provider-failure.ts +56 -0
- package/src/convex/integrations/billing/types/setup.ts +1 -1
- package/src/convex/integrations/billing/types/surface.ts +9 -2
- package/src/convex/integrations/email-sync.ts +74 -26
- package/src/convex/integrations/inbound.ts +32 -16
- package/src/convex/integrations/launch.ts +52 -5
- package/src/convex/integrations/referrals.ts +25 -7
- package/src/convex/integrations/storage.ts +107 -1
- package/src/convex/label-groups/admin.ts +3 -0
- package/src/convex/label-groups/audit.ts +1 -0
- package/src/convex/label-groups/auth.ts +7 -0
- package/src/convex/label-groups/errors.ts +12 -0
- package/src/convex/label-groups/gift.ts +27 -0
- package/src/convex/label-groups/pricing.ts +20 -0
- package/src/convex/label-groups/referral.ts +4 -0
- package/src/convex/label-groups/settings.ts +39 -0
- package/src/convex/label-groups/waitlist.ts +7 -2
- package/src/convex/legal.ts +23 -2
- package/src/convex/log.ts +8 -0
- package/src/convex/money.ts +40 -0
- package/src/convex/report-rules.ts +16 -0
- package/src/convex/test-billing.ts +189 -0
- package/src/convex/test-models.ts +59 -4
- package/src/convex/test.ts +95 -8
- package/src/runtime/vue/components/account/AccountDeletion.css +1 -1
- package/src/runtime/vue/components/account/ActivationChecklist.css +5 -3
- package/src/runtime/vue/components/account/ConsentPrompt.css +7 -5
- package/src/runtime/vue/components/account/EmailUnsubscribe.css +8 -4
- package/src/runtime/vue/components/account/HowDidYouHear.css +9 -5
- package/src/runtime/vue/components/account/KeepAccount.css +4 -2
- package/src/runtime/vue/components/account/OnboardingFlow.css +6 -4
- package/src/runtime/vue/components/account/ProfileIdentity.css +1 -1
- package/src/runtime/vue/components/account/ProfilePreferencesSection.css +4 -2
- package/src/runtime/vue/components/account/ProfileSettings.css +4 -2
- package/src/runtime/vue/components/account/SecurityAlerts.css +1 -1
- package/src/runtime/vue/components/account/SecurityPasskeys.css +3 -3
- package/src/runtime/vue/components/account/SecuritySessions.css +1 -1
- package/src/runtime/vue/components/account/SecuritySettings.css +1 -1
- package/src/runtime/vue/components/admin/AdminAccess.css +1 -1
- package/src/runtime/vue/components/admin/AdminAnnouncements.css +2 -2
- package/src/runtime/vue/components/admin/AdminBilling.css +1 -1
- package/src/runtime/vue/components/admin/AdminChart.css +1 -1
- package/src/runtime/vue/components/admin/AdminConsole.css +1 -0
- package/src/runtime/vue/components/admin/AdminExperiments.css +1 -1
- package/src/runtime/vue/components/admin/AdminFlags.css +2 -2
- package/src/runtime/vue/components/admin/AdminQueue.css +5 -3
- package/src/runtime/vue/components/admin/AdminQueueJob.vue +6 -2
- package/src/runtime/vue/components/admin/AdminReferrals.css +4 -2
- package/src/runtime/vue/components/admin/AdminReports.css +1 -1
- package/src/runtime/vue/components/admin/AdminRevenue.css +1 -1
- package/src/runtime/vue/components/admin/admin.css +3 -3
- package/src/runtime/vue/components/auth/AuthForm.css +7 -4
- package/src/runtime/vue/components/auth/AuthForm.vue +1 -2
- package/src/runtime/vue/components/auth/AuthFormChoose.css +2 -1
- package/src/runtime/vue/components/auth/AuthFormHeader.css +1 -1
- package/src/runtime/vue/components/auth/AuthFormPasskeyOffer.css +1 -1
- package/src/runtime/vue/components/auth/InviteRedeem.css +56 -2
- package/src/runtime/vue/components/auth/InviteRedeem.vue +110 -9
- package/src/runtime/vue/components/auth/ReauthenticateCode.css +1 -1
- package/src/runtime/vue/components/auth/ReauthenticateDialog.css +6 -3
- package/src/runtime/vue/components/auth/ReauthenticatePasskey.css +1 -1
- package/src/runtime/vue/components/auth/WaitlistForm.css +4 -2
- package/src/runtime/vue/components/auth/WaitlistForm.vue +5 -6
- package/src/runtime/vue/components/auth/WaitlistPlace.css +4 -2
- package/src/runtime/vue/components/auth/WaitlistShare.css +6 -4
- package/src/runtime/vue/components/auth/WaitlistShare.vue +2 -8
- package/src/runtime/vue/components/auth/WaitlistStatus.css +27 -1
- package/src/runtime/vue/components/auth/WaitlistStatus.vue +153 -31
- package/src/runtime/vue/components/billing/BillingHistory.css +2 -2
- package/src/runtime/vue/components/billing/BillingHistoryOrder.css +1 -1
- package/src/runtime/vue/components/billing/CancelConfirmGroup.vue +2 -8
- package/src/runtime/vue/components/billing/CancelFlow.css +6 -4
- package/src/runtime/vue/components/billing/GiftForm.css +89 -0
- package/src/runtime/vue/components/billing/GiftForm.vue +251 -0
- package/src/runtime/vue/components/billing/GiftList.css +5 -3
- package/src/runtime/vue/components/billing/GiftList.vue +21 -9
- package/src/runtime/vue/components/billing/GiftReceived.vue +11 -3
- package/src/runtime/vue/components/billing/PlanChangeConfirmGroup.vue +59 -0
- package/src/runtime/vue/components/billing/PricingChangeConfirm.vue +22 -0
- package/src/runtime/vue/components/billing/PricingPackCard.css +1 -1
- package/src/runtime/vue/components/billing/PricingPlanCard.css +31 -4
- package/src/runtime/vue/components/billing/PricingPlanCard.vue +17 -2
- package/src/runtime/vue/components/billing/PricingTable.css +2 -2
- package/src/runtime/vue/components/billing/PricingTable.vue +141 -28
- package/src/runtime/vue/components/billing/ReferralCard.css +6 -4
- package/src/runtime/vue/components/billing/ReferralLanding.css +14 -3
- package/src/runtime/vue/components/billing/ReferralLanding.vue +54 -3
- package/src/runtime/vue/components/billing/UpgradePrompt.css +6 -4
- package/src/runtime/vue/components/billing/UsageHistory.css +2 -2
- package/src/runtime/vue/components/billing/WithdrawalButton.css +5 -3
- package/src/runtime/vue/components/shared.css +62 -9
- package/src/runtime/vue/components/shell/AccessDenied.css +5 -3
- package/src/runtime/vue/components/shell/AiLabel.css +2 -2
- package/src/runtime/vue/components/shell/AppShell.css +5 -3
- package/src/runtime/vue/components/shell/ConfirmDialog.css +5 -3
- package/src/runtime/vue/components/shell/ConnectionStatus.css +1 -1
- package/src/runtime/vue/components/shell/ContactForm.css +4 -2
- package/src/runtime/vue/components/shell/Gate.css +5 -3
- package/src/runtime/vue/components/shell/LegalDocument.css +1 -1
- package/src/runtime/vue/components/shell/NoticeAnnouncement.css +1 -1
- package/src/runtime/vue/components/shell/NoticeDeletion.css +5 -3
- package/src/runtime/vue/components/shell/NoticeGift.css +1 -1
- package/src/runtime/vue/components/shell/NoticeImpersonation.css +1 -1
- package/src/runtime/vue/components/shell/NoticeLowCredits.css +6 -3
- package/src/runtime/vue/components/shell/NoticeMaintenance.css +1 -1
- package/src/runtime/vue/components/shell/NoticePastDue.css +5 -3
- package/src/runtime/vue/components/shell/NotificationInbox.css +6 -4
- package/src/runtime/vue/components/shell/ReportAppeal.vue +17 -14
- package/src/runtime/vue/components/shell/ReportNotice.css +1 -1
- package/src/runtime/vue/components/shell/UploadField.css +5 -3
- package/src/runtime/vue/components/shell/WorkspaceSwitcher.css +5 -3
- package/src/runtime/vue/components/tokens.css +30 -0
- package/src/runtime/vue/components/workspaces/AuditLog.css +2 -2
- package/src/runtime/vue/components/workspaces/WorkspaceBilling.css +75 -2
- package/src/runtime/vue/components/workspaces/WorkspaceBilling.vue +45 -53
- package/src/runtime/vue/components/workspaces/WorkspaceBillingPause.vue +79 -0
- package/src/runtime/vue/components/workspaces/WorkspaceBillingSwitch.vue +63 -0
- package/src/runtime/vue/components/workspaces/WorkspaceCredits.css +1 -0
- package/src/runtime/vue/components/workspaces/WorkspaceList.css +2 -2
- package/src/runtime/vue/components/workspaces/WorkspaceSettings.vue +47 -4
- package/src/runtime/vue/pages/gifts.vue +12 -7
- package/src/runtime/vue/pages/invite.vue +4 -2
- package/src/runtime/vue/pages/login.vue +8 -8
- package/src/runtime/vue/pages/report.vue +2 -3
- package/src/runtime/vue/pages/waitlist.vue +8 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useLogger, addPlugin, hasNuxtModule, addVitePlugin, addServerHandler, addNitroPlugin, extendRouteRules, extendPages, addTypeTemplate, addPluginTemplate, updateTemplates, addImports, addComponent, addServerImports, addRouteMiddleware, addTemplate, resolveModule, defineNuxtModule, createResolver } from '@nuxt/kit';
|
|
2
2
|
import { defu } from 'defu';
|
|
3
|
-
import { j as resolveFunctionsDir, T as BACKEND_PAGE_DEFS, J as computeDeployment,
|
|
3
|
+
import { j as resolveFunctionsDir, T as BACKEND_PAGE_DEFS, a1 as pagePathShape, J as computeDeployment, a2 as collectPreflightFindings, N as detectCapabilities, K as appMonitoringDsn, L as monitoringSdkInstalled, a3 as OPTIONAL_DEPLOYMENT_ENV, a4 as REQUIRED_DEPLOYMENT_ENV, a5 as deriveDeploymentUrls, a6 as provisionedEnvNames, a7 as appComponentIsStarter, r as readEnvFiles, a8 as resolveSiteUrl, _ as formatPreflightSummary, a9 as needsSetup, aa as AGENT_HINT, ab as HEALTH_ROUTE, ac as LOCAL_LOG_ROUTE, ad as monitoringSdkVersion, ae as MONITORING_SDK, af as TUNNEL_SDK_VERSION, ag as SOURCE_MAP_ENV, ah as sdkServesTunnel, ai as installableProblems, aj as pagesOptionProblems, ak as resolvedBackendPages, al as DEFAULT_AUTH_ROUTE, Q as REGISTERED_UI, am as publishedBackendPages, an as isPageOff, ao as privatePagePaths, ap as collectExistingPagePaths, aq as adoptChildPages, ar as pageRouteRules, as as cachingRulesOver, V as packageDir, z as appBrandOf, A as syncBrandFile, E as brandFileLocation, F as appLabelsOf, G as syncLabelsFile, H as labelsFileLocation, at as PUSH_WORKER_URL, au as ownsManifest, av as MANIFEST_MODULES, aw as namedIconWarnings, ax as installableGaps, ay as installIcons, az as webAppManifest, aA as maskableIcons, aB as MANIFEST_ROUTE, aC as APPLE_TOUCH_ICON, aD as themeColorMeta, w as syncPathsFile, x as backendPathsOf, y as pathsFileLocation, S as uiPath, aE as UI_SHARED_STYLES, aF as UI_ENTRIES, aG as UI_INTERNALS, aH as moduleDir, aI as VISITOR_IP_ROUTE, aJ as resolvePagePath, aK as dependencyRange, aL as runsFromSource, Y as packageVersion } from './nuxt-backend.9IVxzzft.mjs';
|
|
4
4
|
import { backendAppConfigDefaults } from '../../dist/runtime/config.js';
|
|
5
5
|
import { existsSync, readFileSync, readdirSync, realpathSync } from 'node:fs';
|
|
6
6
|
import { join, resolve, extname, dirname } from 'node:path';
|
|
@@ -81,7 +81,7 @@ function backendTypeFallbackContents(hasApi, functionsDir) {
|
|
|
81
81
|
function computeDevtoolsPages(resolved, taken) {
|
|
82
82
|
return BACKEND_PAGE_DEFS.map((def) => {
|
|
83
83
|
const path = resolved[def.key];
|
|
84
|
-
return { key: def.key, path, auth: def.auth, shadowed: taken.has(path) };
|
|
84
|
+
return { key: def.key, path, auth: def.auth, shadowed: taken.has(pagePathShape(path)) };
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
function envTier(isSet) {
|
|
@@ -606,7 +606,7 @@ function protectGuardedPages(nuxt) {
|
|
|
606
606
|
}
|
|
607
607
|
function localizedCopies(pages, files, mounted) {
|
|
608
608
|
return flattenRoutes(pages).flatMap((route) => {
|
|
609
|
-
const def =
|
|
609
|
+
const def = readyMadePage(files, route);
|
|
610
610
|
if (!def || mounted.has(route.path)) return [];
|
|
611
611
|
if (route.path.includes(":")) {
|
|
612
612
|
logger.warn(`The ${def.key} page answers at \`${route.path}\`, a pattern route rules cannot follow: give that path its page's rules (${CACHES_DOCS_URL}).`);
|
|
@@ -635,6 +635,97 @@ function tabbedRoutes(pages, parent = "") {
|
|
|
635
635
|
return [...tab === void 0 ? [] : [{ path, meta }], ...tabbedRoutes(page.children ?? [], path)];
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
|
+
function readyMadePage(files, route) {
|
|
639
|
+
return route.file ? files.get(route.file.replace(/\.(?:vue|[cm]?[jt]s)$/, "")) : void 0;
|
|
640
|
+
}
|
|
641
|
+
const REPLACED_DOCS_URL = "https://nuxt-backend.dev/docs/build/ui/pages#search-engines";
|
|
642
|
+
const INDEX_KEYS = ["robots", "sitemap"];
|
|
643
|
+
const ROBOTS_HEADER = "x-robots-tag";
|
|
644
|
+
function robotsDisallowLine(nuxt, ruleKey) {
|
|
645
|
+
const robots = nuxt.options.robots;
|
|
646
|
+
if (robots?.disallowNonIndexableRoutes !== true) return void 0;
|
|
647
|
+
const line = ruleKey.split("/").map((segment) => segment.startsWith(":") ? "*" : segment).join("/").replaceAll("**", "*");
|
|
648
|
+
const own = [robots.disallow, ...(robots.groups ?? []).map((group) => group.disallow)].flatMap((lines) => lines === void 0 ? [] : [lines].flat());
|
|
649
|
+
return own.includes(line) ? void 0 : line;
|
|
650
|
+
}
|
|
651
|
+
function robotsWildcardGroups(configs) {
|
|
652
|
+
const groups = /* @__PURE__ */ new Set();
|
|
653
|
+
for (const config of configs) {
|
|
654
|
+
for (const robots of [config?.["nuxt-robots"], config?.public?.["nuxt-robots"]]) {
|
|
655
|
+
const list = robots?.groups;
|
|
656
|
+
for (const group of Array.isArray(list) ? list : []) {
|
|
657
|
+
if (Array.isArray(group.userAgent) && group.userAgent.includes("*") && Array.isArray(group.disallow)) groups.add(group);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
return [...groups];
|
|
662
|
+
}
|
|
663
|
+
function robotsHeaderName(headers) {
|
|
664
|
+
return headers && typeof headers === "object" ? Object.keys(headers).find((name) => name.toLowerCase() === ROBOTS_HEADER) : void 0;
|
|
665
|
+
}
|
|
666
|
+
function ownIndexKeys(nuxt, ruleKey) {
|
|
667
|
+
const rule = nuxt.options.routeRules?.[ruleKey];
|
|
668
|
+
if (!rule) return /* @__PURE__ */ new Set();
|
|
669
|
+
return /* @__PURE__ */ new Set([...INDEX_KEYS.filter((key) => key in rule), ...robotsHeaderName(rule.headers) ? [ROBOTS_HEADER] : []]);
|
|
670
|
+
}
|
|
671
|
+
function decideReplacedPrivatePages(nuxt, files, paths) {
|
|
672
|
+
if (paths.length === 0) return;
|
|
673
|
+
let nitro;
|
|
674
|
+
nuxt.hook("nitro:init", (instance) => {
|
|
675
|
+
nitro = instance;
|
|
676
|
+
});
|
|
677
|
+
const warned = /* @__PURE__ */ new Set();
|
|
678
|
+
nuxt.hook("pages:resolved", (pages) => {
|
|
679
|
+
const routes = flattenRoutes(pages);
|
|
680
|
+
const guarded = new Set(guardedPaths(pages).map(pagePathShape));
|
|
681
|
+
const tables = [nuxt.options.routeRules, nitro?.options.routeRules];
|
|
682
|
+
for (const entry of paths) {
|
|
683
|
+
const shape = pagePathShape(entry.path);
|
|
684
|
+
const here = routes.filter((route) => pagePathShape(route.path) === shape);
|
|
685
|
+
const isPublic = here.length > 0 && !here.some((route) => readyMadePage(files, route) === entry.def) && !guarded.has(shape);
|
|
686
|
+
for (const table of tables) {
|
|
687
|
+
if (table) setIndexRules(table, entry, isPublic);
|
|
688
|
+
}
|
|
689
|
+
if (entry.robotsDisallow) setRobotsDisallow(robotsWildcardGroups([nuxt.options.runtimeConfig, nitro?.options.runtimeConfig]), entry, isPublic);
|
|
690
|
+
if (isPublic && nuxt.options.dev && !warned.has(entry.path)) {
|
|
691
|
+
warned.add(entry.path);
|
|
692
|
+
logger.warn(`The app page at \`${entry.path}\` replaces the ready-made ${entry.def.key} page, which asks for a sign-in, and has no \`auth\` rules: it is public, so search engines may index it and sitemaps list it, and it stays out of caches (\`cache-control: private, no-store\`).
|
|
693
|
+
\u21B3 If only signed-in people may open it, add \`definePageMeta({ auth: true })\`, and the path keeps the private page's rules: ${REPLACED_DOCS_URL}`);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
function setIndexRules(table, entry, indexable) {
|
|
699
|
+
const rule = table[entry.ruleKey];
|
|
700
|
+
if (!indexable) {
|
|
701
|
+
const header2 = entry.robotsHeader ? { headers: Object.fromEntries([entry.robotsHeader]) } : {};
|
|
702
|
+
table[entry.ruleKey] = defu(rule, rulesFor(entry.def), header2);
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
if (!rule) return;
|
|
706
|
+
const released = (key) => INDEX_KEYS.includes(key) && !entry.own.has(key) && rule[key] === false;
|
|
707
|
+
const kept = Object.fromEntries(Object.entries(rule).filter(([key]) => !released(key)));
|
|
708
|
+
const header = released("robots") && !entry.own.has(ROBOTS_HEADER) ? robotsHeaderName(kept.headers) : void 0;
|
|
709
|
+
if (header) {
|
|
710
|
+
const { [header]: value, ...headers } = kept.headers;
|
|
711
|
+
entry.robotsHeader = [header, value];
|
|
712
|
+
kept.headers = headers;
|
|
713
|
+
}
|
|
714
|
+
table[entry.ruleKey] = kept;
|
|
715
|
+
}
|
|
716
|
+
function setRobotsDisallow(groups, entry, indexable) {
|
|
717
|
+
const line = entry.robotsDisallow;
|
|
718
|
+
for (const group of groups) {
|
|
719
|
+
const lines = group.disallow;
|
|
720
|
+
if (indexable && lines.includes(line)) {
|
|
721
|
+
group.disallow = lines.filter((other) => other !== line);
|
|
722
|
+
entry.disallowedIn.add(group);
|
|
723
|
+
} else if (!indexable && entry.disallowedIn.has(group) && !lines.includes(line)) {
|
|
724
|
+
group.disallow = [...lines, line];
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
if (!indexable) entry.disallowedIn.clear();
|
|
728
|
+
}
|
|
638
729
|
const SEO_MODULES = ["@nuxtjs/seo", "nuxt-schema-org", "nuxt-seo-utils"];
|
|
639
730
|
function registerModulePages(options, resolver, nuxt) {
|
|
640
731
|
const resolved = resolvedBackendPages(options.pages);
|
|
@@ -655,19 +746,23 @@ function registerModulePages(options, resolver, nuxt) {
|
|
|
655
746
|
seo: SEO_MODULES.some((name) => hasNuxtModule(name, nuxt))
|
|
656
747
|
};
|
|
657
748
|
const mounting = BACKEND_PAGE_DEFS.filter((def) => !isPageOff(options.pages, def.key));
|
|
749
|
+
const privatePaths = [];
|
|
658
750
|
for (const def of mounting) {
|
|
659
|
-
|
|
751
|
+
const ruleKey = rulePattern(resolved[def.key]) ?? resolved[def.key];
|
|
752
|
+
if (def.auth) privatePaths.push({ def, path: resolved[def.key], ruleKey, own: ownIndexKeys(nuxt, ruleKey), robotsDisallow: robotsDisallowLine(nuxt, ruleKey), disallowedIn: /* @__PURE__ */ new Set() });
|
|
753
|
+
extendRouteRules(ruleKey, rulesFor(def));
|
|
660
754
|
}
|
|
661
755
|
warnOnCachedPrivatePages(nuxt, privatePagePaths(options.pages));
|
|
662
756
|
watchAdminTabs(nuxt, resolved.admin);
|
|
663
757
|
const files = new Map(mounting.map((def) => [resolver.resolve(`./runtime/vue/pages/${def.file}`), def]));
|
|
664
758
|
followLocalizedPages(nuxt, files, new Set(mounting.map((def) => resolved[def.key])));
|
|
759
|
+
decideReplacedPrivatePages(nuxt, files, privatePaths);
|
|
665
760
|
extendPages((pages) => {
|
|
666
761
|
const taken = collectExistingPagePaths(pages);
|
|
667
762
|
info.list = computeDevtoolsPages(resolved, taken);
|
|
668
763
|
for (const def of mounting) {
|
|
669
764
|
const path = resolved[def.key];
|
|
670
|
-
if (taken.has(path)) {
|
|
765
|
+
if (taken.has(pagePathShape(path))) {
|
|
671
766
|
logger.info(`App page at \`${path}\` overrides the built-in ${def.key} page`);
|
|
672
767
|
continue;
|
|
673
768
|
}
|
|
@@ -715,7 +810,9 @@ async function appBrandLogoPath(nuxt) {
|
|
|
715
810
|
|
|
716
811
|
function registerInstallable(resolver, nuxt, options = {}) {
|
|
717
812
|
addServerHandler({ route: PUSH_WORKER_URL, method: "get", handler: { nuxt: resolver.resolve("./runtime/server/push-worker") } });
|
|
813
|
+
addPlugin({ src: resolver.resolve("./runtime/vue/plugins/install-prompt.client"), mode: "client" });
|
|
718
814
|
if (options === false) return;
|
|
815
|
+
if (options.browserBanner === false) addPlugin({ src: resolver.resolve("./runtime/vue/plugins/install-banner.client"), mode: "client" });
|
|
719
816
|
const publicDir = resolve(nuxt.options.rootDir, nuxt.options.dir?.public ?? "public");
|
|
720
817
|
nuxt.hook("modules:done", async () => {
|
|
721
818
|
if (ownsManifest(publicDir, MANIFEST_MODULES.filter((name) => hasNuxtModule(name, nuxt)), nuxt.options.app.head.link ?? [])) return;
|
|
@@ -770,6 +867,9 @@ function registerSaasComposables(resolver) {
|
|
|
770
867
|
{ name: "useOrders", from: resolver.resolve("./runtime/vue/composables/use-orders") },
|
|
771
868
|
{ name: "useUsage", from: resolver.resolve("./runtime/vue/composables/use-usage") },
|
|
772
869
|
{ name: "useGifts", from: resolver.resolve("./runtime/vue/composables/use-gifts") },
|
|
870
|
+
{ name: "useGiftList", from: resolver.resolve("./runtime/vue/composables/use-gift-list") },
|
|
871
|
+
{ name: "useGiftForm", from: resolver.resolve("./runtime/vue/composables/use-gift-form") },
|
|
872
|
+
{ name: "useWithdrawal", from: resolver.resolve("./runtime/vue/composables/use-withdrawal") },
|
|
773
873
|
{ name: "useReferrals", from: resolver.resolve("./runtime/vue/composables/use-referrals") },
|
|
774
874
|
{ name: "useReferralInvite", from: resolver.resolve("./runtime/vue/composables/use-referral-invite") },
|
|
775
875
|
{ name: "useReferralAdmin", from: resolver.resolve("./runtime/vue/composables/use-referral-admin") },
|
|
@@ -791,21 +891,27 @@ function registerSaasComposables(resolver) {
|
|
|
791
891
|
{ name: "useWaitlistAdmin", from: resolver.resolve("./runtime/vue/composables/use-waitlist-admin") },
|
|
792
892
|
{ name: "useShareLink", from: resolver.resolve("./runtime/vue/composables/use-share-link") },
|
|
793
893
|
{ name: "useUploadField", from: resolver.resolve("./runtime/vue/composables/use-upload-field") },
|
|
894
|
+
{ name: "preparePhoto", from: resolver.resolve("./runtime/vue/composables/prepare-photo") },
|
|
895
|
+
{ name: "isPhotoFile", from: resolver.resolve("./runtime/vue/composables/prepare-photo") },
|
|
896
|
+
{ name: "PhotoPrepError", from: resolver.resolve("./runtime/vue/composables/prepare-photo") },
|
|
794
897
|
{ name: "useNotifications", from: resolver.resolve("./runtime/vue/composables/use-notifications") },
|
|
795
898
|
{ name: "useNotificationInbox", from: resolver.resolve("./runtime/vue/composables/use-notification-inbox") },
|
|
796
899
|
{ name: "useEmailPreferences", from: resolver.resolve("./runtime/vue/composables/use-email-preferences") },
|
|
797
900
|
{ name: "useEmailLink", from: resolver.resolve("./runtime/vue/composables/use-email-link") },
|
|
798
901
|
{ name: "usePushSubscription", from: resolver.resolve("./runtime/vue/composables/use-push-subscription") },
|
|
902
|
+
{ name: "useInstallPrompt", from: resolver.resolve("./runtime/vue/composables/use-install-prompt") },
|
|
799
903
|
{ name: "useAnnouncements", from: resolver.resolve("./runtime/vue/composables/use-announcements") },
|
|
800
904
|
{ name: "useAnnouncementsAdmin", from: resolver.resolve("./runtime/vue/composables/use-announcements") },
|
|
801
905
|
{ name: "useContactForm", from: resolver.resolve("./runtime/vue/composables/use-contact-form") },
|
|
802
906
|
{ name: "useReportForm", from: resolver.resolve("./runtime/vue/composables/use-report-form") },
|
|
907
|
+
{ name: "useReportAppeal", from: resolver.resolve("./runtime/vue/composables/use-report-appeal") },
|
|
803
908
|
{ name: "useOnboarding", from: resolver.resolve("./runtime/vue/composables/use-onboarding") },
|
|
804
909
|
{ name: "useActivation", from: resolver.resolve("./runtime/vue/composables/use-activation") },
|
|
805
910
|
{ name: "useExperiment", from: resolver.resolve("./runtime/vue/composables/use-experiment") },
|
|
806
911
|
{ name: "useAppShell", from: resolver.resolve("./runtime/vue/composables/use-app-shell") },
|
|
807
912
|
{ name: "useInboxAdmin", from: resolver.resolve("./runtime/vue/composables/use-inbox-admin") },
|
|
808
913
|
{ name: "getBackendError", from: resolver.resolve("./runtime/vue/utils/backend-error") },
|
|
914
|
+
{ name: "formatBillingAmount", from: resolver.resolve("./runtime/vue/composables/billing-format") },
|
|
809
915
|
{ name: "useBackendConfig", from: resolver.resolve("./runtime/vue/composables/use-backend-config") },
|
|
810
916
|
{ name: "useLabels", from: resolver.resolve("./runtime/vue/composables/use-labels") },
|
|
811
917
|
{ name: "useBackendPagePath", from: resolver.resolve("./runtime/vue/composables/use-backend-page-path") },
|
|
@@ -1004,47 +1110,42 @@ function registerStyles(css, resolver, nuxt) {
|
|
|
1004
1110
|
});
|
|
1005
1111
|
}
|
|
1006
1112
|
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
const
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
createRequire(join(rootDir, "package.json")).resolve("botid");
|
|
1014
|
-
return true;
|
|
1015
|
-
} catch {
|
|
1016
|
-
return false;
|
|
1113
|
+
const isConfig = (value) => typeof value === "object" && value !== null;
|
|
1114
|
+
function valueAt(config, path) {
|
|
1115
|
+
let value = config;
|
|
1116
|
+
for (const key of path) {
|
|
1117
|
+
if (!isConfig(value)) return void 0;
|
|
1118
|
+
value = value[key];
|
|
1017
1119
|
}
|
|
1120
|
+
return value;
|
|
1018
1121
|
}
|
|
1019
|
-
function
|
|
1020
|
-
const
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
addNitroPlugin({ nitro2: csp, nitro3: csp });
|
|
1047
|
-
addPlugin({ src: resolver.resolve("./runtime/vue/plugins/protection.client"), mode: "client" });
|
|
1122
|
+
function writtenConfigs(nuxt) {
|
|
1123
|
+
const layers = (nuxt.options._layers ?? []).map((layer) => layer.config);
|
|
1124
|
+
return [nuxt.options, ...layers].filter(isConfig);
|
|
1125
|
+
}
|
|
1126
|
+
function setForDevelopment(nuxt, path) {
|
|
1127
|
+
return writtenConfigs(nuxt).some((config) => [config.$development, valueAt(config, ["$env", "development"])].some((block) => valueAt(block, path) !== void 0));
|
|
1128
|
+
}
|
|
1129
|
+
const NUXT_BUILD_ASSETS_DIR = "/_nuxt/";
|
|
1130
|
+
const DEV_BUILD_ASSETS_DIR = "/_dev/";
|
|
1131
|
+
const DEV_CACHE_CONTROL = "no-cache";
|
|
1132
|
+
function ownsBuildAssetsDir(nuxt) {
|
|
1133
|
+
if (nuxt.options.app.buildAssetsDir !== NUXT_BUILD_ASSETS_DIR || process.env.NUXT_APP_BUILD_ASSETS_DIR) return true;
|
|
1134
|
+
const path = ["app", "buildAssetsDir"];
|
|
1135
|
+
return setForDevelopment(nuxt, path) || writtenConfigs(nuxt).slice(1).some((config) => valueAt(config, path) !== void 0);
|
|
1136
|
+
}
|
|
1137
|
+
function keepDevModulesUncached(nuxt) {
|
|
1138
|
+
if (!nuxt.options.dev) return;
|
|
1139
|
+
const vite = nuxt.options.vite ??= {};
|
|
1140
|
+
const server = vite.server ??= {};
|
|
1141
|
+
const headers = server.headers ??= {};
|
|
1142
|
+
if (!Object.keys(headers).some((name) => name.toLowerCase() === "cache-control")) headers["Cache-Control"] = DEV_CACHE_CONTROL;
|
|
1143
|
+
if (ownsBuildAssetsDir(nuxt)) return;
|
|
1144
|
+
nuxt.options.app.buildAssetsDir = DEV_BUILD_ASSETS_DIR;
|
|
1145
|
+
const runtimeApp = nuxt.options.runtimeConfig.app;
|
|
1146
|
+
if (runtimeApp?.buildAssetsDir === NUXT_BUILD_ASSETS_DIR) runtimeApp.buildAssetsDir = DEV_BUILD_ASSETS_DIR;
|
|
1147
|
+
const build = vite.build;
|
|
1148
|
+
if (build?.assetsDir === NUXT_BUILD_ASSETS_DIR.slice(1)) build.assetsDir = DEV_BUILD_ASSETS_DIR.slice(1);
|
|
1048
1149
|
}
|
|
1049
1150
|
|
|
1050
1151
|
function securityDefaults(dev) {
|
|
@@ -1070,6 +1171,18 @@ function securityDefaults(dev) {
|
|
|
1070
1171
|
}
|
|
1071
1172
|
};
|
|
1072
1173
|
}
|
|
1174
|
+
function securityDevOverrides(nuxt) {
|
|
1175
|
+
const own = (field) => setForDevelopment(nuxt, ["security", ...field]);
|
|
1176
|
+
const headers = nuxt.options.security?.headers;
|
|
1177
|
+
const overrides = own(["rateLimiter"]) ? {} : { rateLimiter: false };
|
|
1178
|
+
if (headers === false) return overrides;
|
|
1179
|
+
const policy = headers?.contentSecurityPolicy;
|
|
1180
|
+
const offHeaders = {
|
|
1181
|
+
...own(["headers", "strictTransportSecurity"]) ? {} : { strictTransportSecurity: false },
|
|
1182
|
+
...policy === false || own(["headers", "contentSecurityPolicy", "upgrade-insecure-requests"]) ? {} : { contentSecurityPolicy: { "upgrade-insecure-requests": false } }
|
|
1183
|
+
};
|
|
1184
|
+
return Object.keys(offHeaders).length ? { ...overrides, headers: offHeaders } : overrides;
|
|
1185
|
+
}
|
|
1073
1186
|
function securityDisabled(nuxt) {
|
|
1074
1187
|
return nuxt.options.security === false;
|
|
1075
1188
|
}
|
|
@@ -1097,6 +1210,93 @@ function registerSecurityRules(resolver, nuxt) {
|
|
|
1097
1210
|
});
|
|
1098
1211
|
}
|
|
1099
1212
|
|
|
1213
|
+
const HEIC_DECODER = "heic-to/csp";
|
|
1214
|
+
function heicDecoderInstalled(rootDir) {
|
|
1215
|
+
try {
|
|
1216
|
+
createRequire(join(rootDir, "package.json")).resolve(HEIC_DECODER);
|
|
1217
|
+
return true;
|
|
1218
|
+
} catch {
|
|
1219
|
+
return false;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
function registerPhotoDecoder(resolver, nuxt) {
|
|
1223
|
+
if (!heicDecoderInstalled(nuxt.options.rootDir)) {
|
|
1224
|
+
nuxt.options.alias ||= {};
|
|
1225
|
+
nuxt.options.alias[HEIC_DECODER] = resolver.resolve("./runtime/vue/utils/heic-absent");
|
|
1226
|
+
return;
|
|
1227
|
+
}
|
|
1228
|
+
if (securityDisabled(nuxt)) return;
|
|
1229
|
+
const plugin = resolver.resolve("./runtime/server/photo-decoder-csp");
|
|
1230
|
+
addNitroPlugin({ nitro2: plugin, nitro3: plugin });
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
function onVercel(nuxt) {
|
|
1234
|
+
return !nuxt.options.dev && process.env.VERCEL === "1";
|
|
1235
|
+
}
|
|
1236
|
+
const BOTID_ENTRIES = ["botid/client/core", "botid/server"];
|
|
1237
|
+
function botIdInstalled(rootDir) {
|
|
1238
|
+
try {
|
|
1239
|
+
createRequire(join(rootDir, "package.json")).resolve("botid");
|
|
1240
|
+
return true;
|
|
1241
|
+
} catch {
|
|
1242
|
+
return false;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
function registerProtection(resolver, nuxt) {
|
|
1246
|
+
const dev = nuxt.options.dev;
|
|
1247
|
+
const files = dev ? readEnvFiles(nuxt.options.rootDir) : {};
|
|
1248
|
+
const backend = nuxt.options.runtimeConfig.public.backend;
|
|
1249
|
+
const botId = botIdInstalled(nuxt.options.rootDir);
|
|
1250
|
+
backend.botDetection = onVercel(nuxt) && botId;
|
|
1251
|
+
if (onVercel(nuxt) && !botId) {
|
|
1252
|
+
logger.warn("This build runs on Vercel without botid installed, so no bot check runs on the app's server. Install it for the check: npm install botid.");
|
|
1253
|
+
}
|
|
1254
|
+
if (!botId) {
|
|
1255
|
+
const absent = resolver.resolve("./runtime/protection/botid-absent");
|
|
1256
|
+
nuxt.options.alias ||= {};
|
|
1257
|
+
const nitro = nitroAliases(nuxt);
|
|
1258
|
+
for (const entry of BOTID_ENTRIES) {
|
|
1259
|
+
nuxt.options.alias[entry] = absent;
|
|
1260
|
+
nitro[entry] = absent;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
backend.challengeSiteKey = process.env.NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY ?? files.NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY ?? "";
|
|
1264
|
+
if (dev && !process.env.PROTECTION_PROOF_SECRET && files.PROTECTION_PROOF_SECRET) {
|
|
1265
|
+
process.env.PROTECTION_PROOF_SECRET = files.PROTECTION_PROOF_SECRET;
|
|
1266
|
+
}
|
|
1267
|
+
if (!dev && !onVercel(nuxt) && process.env.PROTECTION_PROOF_SECRET && !backend.challengeSiteKey) {
|
|
1268
|
+
logger.warn("PROTECTION_PROOF_SECRET is set for a build that is not on Vercel: no bot check runs on this app's server, so it signs no proof, and a deployment that takes proofs only refuses every sign-in code request. Off Vercel, use the challenge keys (NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY, PROTECTION_CHALLENGE_SECRET_KEY).");
|
|
1269
|
+
}
|
|
1270
|
+
addServerHandler({ middleware: true, handler: { nuxt: resolver.resolve("./runtime/server/protection/gate") } });
|
|
1271
|
+
const csp = resolver.resolve("./runtime/server/protection/csp");
|
|
1272
|
+
addNitroPlugin({ nitro2: csp, nitro3: csp });
|
|
1273
|
+
addPlugin({ src: resolver.resolve("./runtime/vue/plugins/protection.client"), mode: "client" });
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
const DEPLOY_SITE_PRIORITY = -4;
|
|
1277
|
+
function deploySiteConfig(env) {
|
|
1278
|
+
const kind = env.VERCEL_ENV;
|
|
1279
|
+
if (!kind || kind === "production") return null;
|
|
1280
|
+
const base = { _context: "nuxt-backend:deploy", _priority: DEPLOY_SITE_PRIORITY };
|
|
1281
|
+
const host = env.VERCEL_BRANCH_URL || env.VERCEL_URL;
|
|
1282
|
+
return { ...base, ...host ? { url: `https://${host}` } : {}, indexable: false };
|
|
1283
|
+
}
|
|
1284
|
+
function registerDeploySiteConfig(nuxt, env = process.env) {
|
|
1285
|
+
if (nuxt.options.dev) return;
|
|
1286
|
+
const entry = deploySiteConfig(env);
|
|
1287
|
+
if (!entry) return;
|
|
1288
|
+
const hook = nuxt.hook;
|
|
1289
|
+
hook("site-config:resolve", () => {
|
|
1290
|
+
nuxt._siteConfig?.push(entry);
|
|
1291
|
+
});
|
|
1292
|
+
}
|
|
1293
|
+
function registerSearchIndexing(resolver, nuxt) {
|
|
1294
|
+
nuxt.hook("modules:done", () => {
|
|
1295
|
+
if (!hasNuxtModule("@nuxtjs/robots", nuxt)) addPlugin(resolver.resolve("./runtime/vue/plugins/noindex"));
|
|
1296
|
+
});
|
|
1297
|
+
registerDeploySiteConfig(nuxt);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1100
1300
|
const lifecycleHooks = {
|
|
1101
1301
|
async onInstall(nuxt) {
|
|
1102
1302
|
const { installProject } = await import('../chunks/install.mjs');
|
|
@@ -1167,8 +1367,9 @@ const module$1 = defineNuxtModule({
|
|
|
1167
1367
|
// set up before the base module looks for it. `security: false` in
|
|
1168
1368
|
// nuxt.config still disables it outright (nuxt-security's own switch).
|
|
1169
1369
|
// Its defaults add the nonce and, in a production build, Trusted Types; in
|
|
1170
|
-
// development
|
|
1171
|
-
|
|
1370
|
+
// development its overrides keep off what breaks a local server, unless the
|
|
1371
|
+
// app turns one on under `$development` (src/nuxt/security.ts).
|
|
1372
|
+
...securityDisabled(nuxt) ? {} : { "nuxt-security": { version: dependencyRange("nuxt-security"), defaults: securityDefaults(nuxt.options.dev), ...nuxt.options.dev ? { overrides: securityDevOverrides(nuxt) } : {} } },
|
|
1172
1373
|
// <NuxtImg provider="backend"> once the app adds @nuxt/image: the
|
|
1173
1374
|
// provider and the deployment's file hosts as its defaults.
|
|
1174
1375
|
...imageDependency(resolver, [backend.url ?? process.env.NUXT_PUBLIC_BACKEND_URL ?? derived?.url, resolveSiteUrl({ url: backend.url, env: process.env, derived })]),
|
|
@@ -1225,6 +1426,7 @@ const module$1 = defineNuxtModule({
|
|
|
1225
1426
|
const resolver = createResolver(moduleDir);
|
|
1226
1427
|
registerBackendAliases(nuxt, resolver.resolve("./runtime"));
|
|
1227
1428
|
registerBackendApi(resolver, nuxt);
|
|
1429
|
+
keepDevModulesUncached(nuxt);
|
|
1228
1430
|
nuxt.options.appConfig.backend = defu(
|
|
1229
1431
|
nuxt.options.appConfig.backend,
|
|
1230
1432
|
backendAppConfigDefaults
|
|
@@ -1236,9 +1438,7 @@ const module$1 = defineNuxtModule({
|
|
|
1236
1438
|
registerI18nMessages(resolver, nuxt);
|
|
1237
1439
|
registerStyles(options.css, resolver, nuxt);
|
|
1238
1440
|
registerPageAccess(resolver, nuxt);
|
|
1239
|
-
|
|
1240
|
-
if (!hasNuxtModule("@nuxtjs/robots", nuxt)) addPlugin(resolver.resolve("./runtime/vue/plugins/noindex"));
|
|
1241
|
-
});
|
|
1441
|
+
registerSearchIndexing(resolver, nuxt);
|
|
1242
1442
|
addPlugin({ src: resolver.resolve("./runtime/vue/plugins/session-ended"), mode: "client" });
|
|
1243
1443
|
if (options.pages?.welcome !== false) addPlugin({ src: resolver.resolve("./runtime/vue/plugins/onboarding-redirect"), mode: "client" });
|
|
1244
1444
|
addPlugin({ src: resolver.resolve("./runtime/vue/plugins/checkout-return"), mode: "client" });
|
|
@@ -1247,6 +1447,11 @@ const module$1 = defineNuxtModule({
|
|
|
1247
1447
|
addPlugin({ src: resolver.resolve("./runtime/vue/plugins/passkey-ceremony"), mode: "client" });
|
|
1248
1448
|
if (!securityDisabled(nuxt)) addPlugin({ src: resolver.resolve("./runtime/vue/plugins/trusted-types.client"), mode: "client" });
|
|
1249
1449
|
registerSecurityRules(resolver, nuxt);
|
|
1450
|
+
if (!nuxt.options.dev && options.chunkRecovery !== false) {
|
|
1451
|
+
const chunkRecovery = resolver.resolve("./runtime/server/chunk-recovery");
|
|
1452
|
+
addNitroPlugin({ nitro2: chunkRecovery, nitro3: chunkRecovery });
|
|
1453
|
+
addPlugin({ src: resolver.resolve("./runtime/vue/plugins/chunk-recovery.client"), mode: "client" });
|
|
1454
|
+
}
|
|
1250
1455
|
registerBaseComponentAliases(resolver, nuxt);
|
|
1251
1456
|
hideBaseBrandNames(nuxt);
|
|
1252
1457
|
const pagesInfo = registerModulePages(options, resolver, nuxt);
|
|
@@ -1254,6 +1459,7 @@ const module$1 = defineNuxtModule({
|
|
|
1254
1459
|
registerAppConfigFiles(nuxt);
|
|
1255
1460
|
registerInstallable(resolver, nuxt, options.installable);
|
|
1256
1461
|
registerProtection(resolver, nuxt);
|
|
1462
|
+
registerPhotoDecoder(resolver, nuxt);
|
|
1257
1463
|
registerMonitoring(resolver, nuxt);
|
|
1258
1464
|
addServerHandler({ route: VISITOR_IP_ROUTE, method: "get", handler: { nuxt: resolver.resolve("./runtime/server/visitor-ip") } });
|
|
1259
1465
|
registerJobs(nuxt);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "nuxt-backend",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "The complete backend for a Nuxt app on Convex: passwordless sign-in with passkeys, workspaces, plans and credits, email, notifications and metered AI, with the pages that use them, in one module.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -212,6 +212,7 @@
|
|
|
212
212
|
"convex": ">=1.46.0 <2",
|
|
213
213
|
"convex-test": ">=0.0.54",
|
|
214
214
|
"eslint": "^9.0.0 || ^10.0.0",
|
|
215
|
+
"heic-to": "^1.6.7",
|
|
215
216
|
"vue": "^3.5.41"
|
|
216
217
|
},
|
|
217
218
|
"devDependencies": {
|
|
@@ -252,6 +253,7 @@
|
|
|
252
253
|
"fast-check": "^4.10.2",
|
|
253
254
|
"h3": "^1.15.11",
|
|
254
255
|
"happy-dom": "^21.0.4",
|
|
256
|
+
"heic-to": "^1.6.7",
|
|
255
257
|
"installed-check": "^11.0.0",
|
|
256
258
|
"lightningcss": "^1.33.0",
|
|
257
259
|
"npm-run-all2": "^9.0.4",
|
|
@@ -314,6 +316,9 @@
|
|
|
314
316
|
},
|
|
315
317
|
"@convex-dev/agent": {
|
|
316
318
|
"optional": true
|
|
319
|
+
},
|
|
320
|
+
"heic-to": {
|
|
321
|
+
"optional": true
|
|
317
322
|
}
|
|
318
323
|
},
|
|
319
324
|
"changelog": {
|