qarpeo 0.1.35 → 0.2.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 +114 -26
- package/dist/apps/cms.d.ts +4 -0
- package/dist/apps/comments.d.ts +4 -0
- package/dist/apps/payments.d.ts +4 -0
- package/dist/apps/store.d.ts +4 -0
- package/dist/chunks/auth-schema.mjs +169 -30
- package/dist/chunks/tools.mjs +1680 -0
- package/dist/cli/index.mjs +1256 -221
- package/dist/core/aliases.d.ts +5 -0
- package/dist/core/context.d.ts +10 -0
- package/dist/core/cross-drive.d.ts +2 -0
- package/dist/core/d1-migrate.d.ts +4 -0
- package/dist/core/devtools.d.ts +4 -0
- package/dist/core/nitro.d.ts +4 -0
- package/dist/core/schema.d.ts +4 -0
- package/dist/core/server-utils.d.ts +4 -0
- package/dist/core/wrangler.d.ts +4 -0
- package/dist/dev/wrangler.d.ts +1 -0
- package/dist/fate/index.d.ts +8 -8
- package/dist/features/agents.d.ts +4 -0
- package/dist/features/auth.d.ts +4 -0
- package/dist/features/bots.d.ts +4 -0
- package/dist/features/fate.d.ts +4 -0
- package/dist/features/mail.d.ts +4 -0
- package/dist/features/mcp.d.ts +4 -0
- package/dist/features/multitenant.d.ts +4 -0
- package/dist/features/notifications.d.ts +4 -0
- package/dist/features/realtime.d.ts +4 -0
- package/dist/module.d.ts +10 -2
- package/dist/module.mjs +6313 -5118
- package/dist/primitives/ai.d.ts +4 -0
- package/dist/primitives/analytics.d.ts +4 -0
- package/dist/primitives/blob.d.ts +4 -0
- package/dist/primitives/browser.d.ts +4 -0
- package/dist/primitives/cache.d.ts +4 -0
- package/dist/primitives/d1.d.ts +4 -0
- package/dist/primitives/do.d.ts +4 -0
- package/dist/primitives/email.d.ts +4 -0
- package/dist/primitives/hyperdrive.d.ts +4 -0
- package/dist/primitives/kv.d.ts +4 -0
- package/dist/primitives/queue.d.ts +4 -0
- package/dist/primitives/ratelimit.d.ts +4 -0
- package/dist/primitives/vectorize.d.ts +4 -0
- package/dist/primitives/workflows.d.ts +4 -0
- package/dist/runtime/ai.d.ts +3 -3
- package/dist/runtime/ai.mjs +8 -1
- package/dist/runtime/app/components/RealtimeCursors.vue +2 -2
- package/dist/runtime/app/composables/ai.d.ts +56 -29
- package/dist/runtime/app/composables/analytics.d.ts +26 -106
- package/dist/runtime/app/composables/api-tokens.d.ts +31 -34
- package/dist/runtime/app/composables/auth.d.ts +147 -51
- package/dist/runtime/app/composables/auth.mjs +0 -7
- package/dist/runtime/app/composables/chat.d.ts +38 -35
- package/dist/runtime/app/composables/cms-preview.d.ts +30 -25
- package/dist/runtime/app/composables/cms.d.ts +57 -282
- package/dist/runtime/app/composables/cms.mjs +0 -35
- package/dist/runtime/app/composables/comments.d.ts +32 -5
- package/dist/runtime/app/composables/comments.mjs +29 -1
- package/dist/runtime/app/composables/docs-version.d.ts +25 -28
- package/dist/runtime/app/composables/impersonation.d.ts +22 -5
- package/dist/runtime/app/composables/organization.d.ts +38 -91
- package/dist/runtime/app/composables/passkey.d.ts +22 -6
- package/dist/runtime/app/composables/passwordless.d.ts +24 -7
- package/dist/runtime/app/composables/payments.d.ts +50 -34
- package/dist/runtime/app/composables/payments.mjs +1 -0
- package/dist/runtime/app/composables/sse.d.ts +76 -0
- package/dist/runtime/app/composables/sse.mjs +152 -0
- package/dist/runtime/app/composables/storage.d.ts +53 -65
- package/dist/runtime/app/composables/storage.mjs +17 -0
- package/dist/runtime/app/composables/store.d.ts +198 -0
- package/dist/runtime/app/composables/store.mjs +414 -0
- package/dist/runtime/app/composables/tenant.d.ts +31 -72
- package/dist/runtime/app/composables/turnstile.d.ts +16 -3
- package/dist/runtime/app/composables/two-factor.d.ts +23 -6
- package/dist/runtime/app/pages/devtools/notifications.vue +30 -27
- package/dist/runtime/app/pages/devtools/realtime.vue +19 -31
- package/dist/runtime/app/pages/devtools.vue +0 -7
- package/dist/runtime/auth.d.ts +9 -9
- package/dist/runtime/blob.d.ts +10 -1
- package/dist/runtime/blob.mjs +83 -0
- package/dist/runtime/cache.d.ts +48 -0
- package/dist/runtime/cache.mjs +92 -0
- package/dist/runtime/comments.d.ts +4 -0
- package/dist/runtime/comments.mjs +2 -0
- package/dist/runtime/db.d.ts +21 -1
- package/dist/runtime/db.mjs +54 -0
- package/dist/runtime/drizzle.d.ts +4 -2
- package/dist/runtime/drizzle.mjs +68 -1
- package/dist/runtime/durable-object.d.ts +2 -0
- package/dist/runtime/durable-object.mjs +2 -0
- package/dist/runtime/email.d.ts +1 -1
- package/dist/runtime/email.mjs +1 -1
- package/dist/runtime/kv.mjs +50 -1
- package/dist/runtime/mcp.d.ts +2 -0
- package/dist/runtime/mcp.mjs +2 -0
- package/dist/runtime/queue.d.ts +12 -2
- package/dist/runtime/queue.mjs +19 -1
- package/dist/runtime/ratelimit.d.ts +1 -0
- package/dist/runtime/ratelimit.mjs +7 -0
- package/dist/runtime/schema.d.ts +313 -0
- package/dist/runtime/schema.mjs +259 -0
- package/dist/runtime/server/db/cms-schema.d.ts +1225 -171
- package/dist/runtime/server/db/cms-schema.mjs +69 -70
- package/dist/runtime/server/db/store-schema.d.ts +4344 -0
- package/dist/runtime/server/db/store-schema.mjs +266 -0
- package/dist/runtime/server/durable-objects/agent.mjs +35 -0
- package/dist/runtime/server/durable-objects/room.mjs +0 -1
- package/dist/runtime/server/middleware/ratelimit.mjs +10 -8
- package/dist/runtime/server/plugins/comments.d.ts +7 -0
- package/dist/runtime/server/plugins/comments.mjs +7 -0
- package/dist/runtime/server/plugins/email-inbound.d.ts +5 -0
- package/dist/runtime/server/plugins/email-inbound.mjs +17 -0
- package/dist/runtime/server/plugins/store.d.ts +7 -0
- package/dist/runtime/server/plugins/store.mjs +7 -0
- package/dist/runtime/server/routes/__qarpeo/db/tables.get.mjs +2 -2
- package/dist/runtime/server/routes/atom.xml.get.mjs +3 -1
- package/dist/runtime/server/routes/auth/2fa/disable.post.mjs +13 -2
- package/dist/runtime/server/routes/auth/2fa/setup.post.mjs +9 -3
- package/dist/runtime/server/routes/auth/2fa/verify.post.mjs +11 -3
- package/dist/runtime/server/routes/auth/account.delete.mjs +2 -1
- package/dist/runtime/server/routes/auth/audit-logs.get.mjs +1 -1
- package/dist/runtime/server/routes/auth/magic-link/send.post.d.ts +1 -9
- package/dist/runtime/server/routes/auth/magic-link/send.post.mjs +8 -0
- package/dist/runtime/server/routes/auth/organization/sso/[id].delete.mjs +1 -1
- package/dist/runtime/server/routes/auth/organization/sso/index.get.mjs +1 -1
- package/dist/runtime/server/routes/auth/organization/sso/index.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/otp/send.post.d.ts +1 -9
- package/dist/runtime/server/routes/auth/otp/send.post.mjs +8 -0
- package/dist/runtime/server/routes/auth/sso/login.get.mjs +3 -3
- package/dist/runtime/server/routes/auth/sso/oidc/callback.get.mjs +1 -1
- package/dist/runtime/server/routes/auth/sso/saml/acs.post.mjs +2 -2
- package/dist/runtime/server/routes/auth/webauthn/login/options.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/webauthn/login/verify.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/webauthn/register/options.post.mjs +2 -2
- package/dist/runtime/server/routes/auth/webauthn/register/verify.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/[collection]/[id]/preview-token.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/[collection]/atom.xml.get.mjs +3 -1
- package/dist/runtime/server/routes/cms/[collection]/feed.xml.get.mjs +3 -1
- package/dist/runtime/server/routes/cms/bookmarks/[id].delete.mjs +1 -1
- package/dist/runtime/server/routes/cms/bookmarks/check.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/bookmarks/index.get.mjs +1 -1
- package/dist/runtime/server/routes/cms/bookmarks/index.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/deploy.post.mjs +1 -1
- package/dist/runtime/server/routes/cms/export.post.mjs +4 -3
- package/dist/runtime/server/routes/cms/search.get.mjs +7 -5
- package/dist/runtime/server/routes/cms/sync.post.mjs +2 -1
- package/dist/runtime/server/routes/comments/[id]/react.post.mjs +1 -2
- package/dist/runtime/server/routes/comments/[id]/report.post.d.ts +1 -1
- package/dist/runtime/server/routes/comments/[id]/report.post.mjs +0 -2
- package/dist/runtime/server/routes/comments/[id].delete.mjs +8 -4
- package/dist/runtime/server/routes/comments/[id].get.d.ts +1 -1
- package/dist/runtime/server/routes/comments/[id].get.mjs +1 -2
- package/dist/runtime/server/routes/comments/[id].patch.d.ts +1 -1
- package/dist/runtime/server/routes/comments/[id].patch.mjs +6 -3
- package/dist/runtime/server/routes/comments/batch.post.d.ts +2 -0
- package/dist/runtime/server/routes/comments/batch.post.mjs +33 -0
- package/dist/runtime/server/routes/comments/index.get.d.ts +1 -1
- package/dist/runtime/server/routes/comments/index.get.mjs +6 -4
- package/dist/runtime/server/routes/comments/index.post.d.ts +1 -1
- package/dist/runtime/server/routes/comments/index.post.mjs +6 -2
- package/dist/runtime/server/routes/feed.xml.get.mjs +3 -1
- package/dist/runtime/server/routes/sitemap.xml.get.mjs +3 -1
- package/dist/runtime/server/routes/storage/presigned-r2.post.d.ts +17 -0
- package/dist/runtime/server/routes/storage/presigned-r2.post.mjs +29 -0
- package/dist/runtime/server/routes/store/cart/index.delete.d.ts +6 -0
- package/dist/runtime/server/routes/store/cart/index.delete.mjs +11 -0
- package/dist/runtime/server/routes/store/cart/index.get.d.ts +5 -0
- package/dist/runtime/server/routes/store/cart/index.get.mjs +14 -0
- package/dist/runtime/server/routes/store/cart/items/[id].delete.d.ts +6 -0
- package/dist/runtime/server/routes/store/cart/items/[id].delete.mjs +25 -0
- package/dist/runtime/server/routes/store/cart/items/[id].patch.d.ts +6 -0
- package/dist/runtime/server/routes/store/cart/items/[id].patch.mjs +29 -0
- package/dist/runtime/server/routes/store/cart/items.post.d.ts +6 -0
- package/dist/runtime/server/routes/store/cart/items.post.mjs +36 -0
- package/dist/runtime/server/routes/store/categories/index.get.d.ts +2 -0
- package/dist/runtime/server/routes/store/categories/index.get.mjs +8 -0
- package/dist/runtime/server/routes/store/checkout.post.d.ts +6 -0
- package/dist/runtime/server/routes/store/checkout.post.mjs +21 -0
- package/dist/runtime/server/routes/store/coupons/apply.post.d.ts +7 -0
- package/dist/runtime/server/routes/store/coupons/apply.post.mjs +18 -0
- package/dist/runtime/server/routes/store/currencies.get.d.ts +15 -0
- package/dist/runtime/server/routes/store/currencies.get.mjs +13 -0
- package/dist/runtime/server/routes/store/orders/[id].get.d.ts +2 -0
- package/dist/runtime/server/routes/store/orders/[id].get.mjs +26 -0
- package/dist/runtime/server/routes/store/orders/download/[token].get.d.ts +7 -0
- package/dist/runtime/server/routes/store/orders/download/[token].get.mjs +57 -0
- package/dist/runtime/server/routes/store/orders/index.get.d.ts +5 -0
- package/dist/runtime/server/routes/store/orders/index.get.mjs +30 -0
- package/dist/runtime/server/routes/store/products/[slug].get.d.ts +2 -0
- package/dist/runtime/server/routes/store/products/[slug].get.mjs +18 -0
- package/dist/runtime/server/routes/store/products/index.get.d.ts +5 -0
- package/dist/runtime/server/routes/store/products/index.get.mjs +33 -0
- package/dist/runtime/server/routes/store/tax/calculate.post.d.ts +9 -0
- package/dist/runtime/server/routes/store/tax/calculate.post.mjs +18 -0
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.mjs +14 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.mjs +14 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.mjs +24 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.mjs +6 -0
- package/dist/runtime/server/utils/ai.d.ts +146 -21
- package/dist/runtime/server/utils/ai.mjs +406 -11
- package/dist/runtime/server/utils/analytics-query.d.ts +13 -58
- package/dist/runtime/server/utils/audit.d.ts +5 -4
- package/dist/runtime/server/utils/audit.mjs +25 -14
- package/dist/runtime/server/utils/auth.d.ts +29 -12
- package/dist/runtime/server/utils/auth.mjs +88 -70
- package/dist/runtime/server/utils/bots.d.ts +20 -4
- package/dist/runtime/server/utils/bots.mjs +7 -3
- package/dist/runtime/server/utils/browser-utils.d.ts +23 -23
- package/dist/runtime/server/utils/cache.d.ts +3 -3
- package/dist/runtime/server/utils/cms/collections.d.ts +23 -0
- package/dist/runtime/server/utils/cms/collections.mjs +143 -0
- package/dist/runtime/server/utils/cms/common.d.ts +9 -0
- package/dist/runtime/server/utils/cms/common.mjs +28 -0
- package/dist/runtime/server/utils/cms/git.mjs +2 -2
- package/dist/runtime/server/utils/cms/navigation.d.ts +46 -0
- package/dist/runtime/server/utils/cms/navigation.mjs +683 -0
- package/dist/runtime/server/utils/cms/preview.d.ts +11 -0
- package/dist/runtime/server/utils/cms/preview.mjs +50 -0
- package/dist/runtime/server/utils/cms/search.d.ts +1 -1
- package/dist/runtime/server/utils/cms/search.mjs +11 -7
- package/dist/runtime/server/utils/cms/sync.d.ts +34 -0
- package/dist/runtime/server/utils/cms/sync.mjs +1082 -0
- package/dist/runtime/server/utils/cms/taxonomy.d.ts +103 -0
- package/dist/runtime/server/utils/cms/taxonomy.mjs +348 -0
- package/dist/runtime/server/utils/cms.d.ts +13 -249
- package/dist/runtime/server/utils/cms.mjs +108 -2350
- package/dist/runtime/server/utils/comments-filter.d.ts +45 -0
- package/dist/runtime/server/utils/comments-filter.mjs +541 -0
- package/dist/runtime/server/utils/comments.d.ts +71 -0
- package/dist/runtime/server/utils/comments.mjs +137 -61
- package/dist/runtime/server/utils/config.d.ts +4 -3
- package/dist/runtime/server/utils/config.mjs +7 -6
- package/dist/runtime/server/utils/context.d.ts +14 -0
- package/dist/runtime/server/utils/context.mjs +2 -2
- package/dist/runtime/server/utils/crypto.d.ts +44 -5
- package/dist/runtime/server/utils/crypto.mjs +18 -0
- package/dist/runtime/server/utils/domains.mjs +9 -5
- package/dist/runtime/server/utils/drizzle.d.ts +35 -3
- package/dist/runtime/server/utils/drizzle.mjs +115 -6
- package/dist/runtime/server/utils/durable-object.d.ts +106 -0
- package/dist/runtime/server/utils/durable-object.mjs +628 -0
- package/dist/runtime/server/utils/email-inbound.d.ts +29 -0
- package/dist/runtime/server/utils/email-inbound.mjs +76 -0
- package/dist/runtime/server/utils/impersonation.d.ts +32 -2
- package/dist/runtime/server/utils/impersonation.mjs +16 -13
- package/dist/runtime/server/utils/lock.d.ts +71 -0
- package/dist/runtime/server/utils/lock.mjs +139 -0
- package/dist/runtime/server/utils/mail-suppression.mjs +7 -7
- package/dist/runtime/server/utils/mail.d.ts +30 -19
- package/dist/runtime/server/utils/mcp.d.ts +44 -0
- package/dist/runtime/server/utils/mcp.mjs +308 -0
- package/dist/runtime/server/utils/notifications.d.ts +72 -7
- package/dist/runtime/server/utils/notifications.mjs +67 -55
- package/dist/runtime/server/utils/oauth.d.ts +27 -4
- package/dist/runtime/server/utils/organization.d.ts +63 -7
- package/dist/runtime/server/utils/organization.mjs +26 -21
- package/dist/runtime/server/utils/passwordless.d.ts +62 -33
- package/dist/runtime/server/utils/payments.d.ts +51 -12
- package/dist/runtime/server/utils/payments.mjs +472 -282
- package/dist/runtime/server/utils/queue.d.ts +106 -13
- package/dist/runtime/server/utils/queue.mjs +313 -28
- package/dist/runtime/server/utils/rag.d.ts +42 -14
- package/dist/runtime/server/utils/rag.mjs +169 -4
- package/dist/runtime/server/utils/ratelimit.d.ts +34 -5
- package/dist/runtime/server/utils/ratelimit.mjs +95 -14
- package/dist/runtime/server/utils/realtime.d.ts +68 -52
- package/dist/runtime/server/utils/scheduled-task.d.ts +42 -1
- package/dist/runtime/server/utils/scheduled-task.mjs +29 -0
- package/dist/runtime/server/utils/schema-fallback.d.ts +1 -1
- package/dist/runtime/server/utils/schema-fallback.mjs +1 -1
- package/dist/runtime/server/utils/session.d.ts +84 -10
- package/dist/runtime/server/utils/session.mjs +12 -10
- package/dist/runtime/server/utils/sse.d.ts +75 -0
- package/dist/runtime/server/utils/sse.mjs +147 -0
- package/dist/runtime/server/utils/sso.d.ts +1 -1
- package/dist/runtime/server/utils/storage.d.ts +53 -4
- package/dist/runtime/server/utils/storage.mjs +15 -11
- package/dist/runtime/server/utils/store-localization.d.ts +51 -0
- package/dist/runtime/server/utils/store-localization.mjs +417 -0
- package/dist/runtime/server/utils/store.d.ts +207 -0
- package/dist/runtime/server/utils/store.mjs +2227 -0
- package/dist/runtime/server/utils/table-names.d.ts +51 -0
- package/dist/runtime/server/utils/table-names.mjs +69 -0
- package/dist/runtime/server/utils/tenant.d.ts +26 -2
- package/dist/runtime/server/utils/tenant.mjs +16 -12
- package/dist/runtime/server/utils/tools-registry-fallback.d.ts +1 -0
- package/dist/runtime/server/utils/tools-registry-fallback.mjs +1 -0
- package/dist/runtime/server/utils/totp.d.ts +45 -2
- package/dist/runtime/server/utils/tracker.d.ts +10 -11
- package/dist/runtime/server/utils/turnstile.d.ts +16 -1
- package/dist/runtime/server/utils/workflows.d.ts +92 -0
- package/dist/runtime/server/utils/workflows.mjs +299 -0
- package/dist/runtime/server.d.ts +8 -1
- package/dist/runtime/server.mjs +8 -5
- package/dist/runtime/service.d.ts +10 -10
- package/dist/runtime/storage.d.ts +1 -0
- package/dist/runtime/storage.mjs +1 -0
- package/dist/runtime/store.d.ts +4 -0
- package/dist/runtime/store.mjs +2 -0
- package/dist/runtime/test-utils.d.ts +11 -10
- package/dist/runtime/test-utils.mjs +64 -4
- package/dist/runtime/types/ai.d.ts +21 -2
- package/dist/runtime/types/d1.d.ts +17 -0
- package/dist/runtime/types/drizzle.d.ts +2 -2
- package/dist/runtime/types/durable-object.d.ts +62 -2
- package/dist/runtime/types/email.d.ts +46 -0
- package/dist/runtime/types/imports.d.ts +6 -1
- package/dist/runtime/types/index.d.ts +58 -0
- package/dist/runtime/types/index.mjs +3 -0
- package/dist/runtime/types/mcp.d.ts +83 -0
- package/dist/runtime/types/mcp.mjs +0 -0
- package/dist/runtime/types/queue.d.ts +36 -0
- package/dist/runtime/types/r2.d.ts +41 -0
- package/dist/runtime/types/store.d.ts +313 -0
- package/dist/runtime/types/store.mjs +0 -0
- package/dist/runtime/types/workflows.d.ts +98 -0
- package/dist/runtime/types/workflows.mjs +0 -0
- package/dist/runtime/workflows.d.ts +5 -0
- package/dist/runtime/workflows.mjs +2 -0
- package/dist/types/ai.d.ts +721 -0
- package/dist/types/cms.d.ts +710 -0
- package/dist/types.d.ts +406 -1288
- package/dist/utils/auth-schema.d.ts +3 -2
- package/dist/utils/bots.d.ts +20 -0
- package/dist/utils/comments-schema.d.ts +5 -4
- package/dist/utils/drizzle.d.ts +83 -3
- package/dist/utils/durable-objects.d.ts +10 -0
- package/dist/utils/email-inbound.d.ts +10 -0
- package/dist/utils/local-db.d.ts +1 -3
- package/dist/utils/mcp.d.ts +24 -0
- package/dist/utils/notifications-schema.d.ts +5 -4
- package/dist/utils/payments-schema.d.ts +4 -3
- package/dist/utils/store-schema.d.ts +14 -0
- package/dist/utils/table-names.d.ts +1 -0
- package/dist/utils/tenants-schema.d.ts +4 -3
- package/dist/utils/tools.d.ts +20 -0
- package/dist/utils/workflows.d.ts +8 -0
- package/package.json +34 -4
- package/dist/chunks/wrangler.mjs +0 -897
- package/dist/runtime/app/components/AuthRegister.vue +0 -306
- package/dist/runtime/app/components/AuthSessionsList.vue +0 -137
- package/dist/runtime/app/components/AuthSignIn.vue +0 -298
- package/dist/runtime/app/components/CMSBookmarkButton.vue +0 -59
- package/dist/runtime/app/components/CMSImage.vue +0 -47
- package/dist/runtime/app/components/CMSLocaleSwitcher.vue +0 -110
- package/dist/runtime/app/components/CMSNewsletter.vue +0 -81
- package/dist/runtime/app/components/CMSPreviewBanner.vue +0 -83
- package/dist/runtime/app/components/CMSTableOfContents.vue +0 -84
- package/dist/runtime/app/components/CMSVersionBanner.vue +0 -53
- package/dist/runtime/app/components/CMSVersionSwitcher.vue +0 -140
- package/dist/runtime/app/components/Comments.vue +0 -411
- package/dist/runtime/app/components/FileUpload.vue +0 -200
- package/dist/runtime/app/components/ImpersonationBanner.vue +0 -61
- package/dist/runtime/app/components/NotificationBell.vue +0 -263
- package/dist/runtime/app/components/NotificationList.vue +0 -205
- package/dist/runtime/app/components/NotificationPrompt.vue +0 -133
- package/dist/runtime/app/components/PricingGated.vue +0 -81
- package/dist/runtime/app/components/PricingTable.vue +0 -274
- package/dist/runtime/app/components/RealtimeChat.vue +0 -164
- package/dist/runtime/app/components/RealtimePresence.vue +0 -129
- package/dist/runtime/app/components/RealtimeStatus.vue +0 -79
- package/dist/runtime/app/components/SubscriptionCard.vue +0 -207
- package/dist/runtime/app/components/UserProfile.vue +0 -558
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { navigateTo, useRuntimeConfig } from "nuxt/app"
|
|
3
|
-
import { computed, ref } from "vue"
|
|
4
|
-
|
|
5
|
-
import { useAuth } from "../composables/auth"
|
|
6
|
-
import { usePasskey } from "../composables/passkey"
|
|
7
|
-
import { usePasswordless } from "../composables/passwordless"
|
|
8
|
-
|
|
9
|
-
interface Props {
|
|
10
|
-
title?: string
|
|
11
|
-
description?: string
|
|
12
|
-
redirect?: string
|
|
13
|
-
signInUrl?: string
|
|
14
|
-
providers?: string[]
|
|
15
|
-
allowMagicLink?: boolean
|
|
16
|
-
allowPasskey?: boolean
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const props = withDefaults(defineProps<Props>(), {
|
|
20
|
-
title: "Create an account",
|
|
21
|
-
description: "Sign up to get started",
|
|
22
|
-
redirect: "/",
|
|
23
|
-
signInUrl: "/login",
|
|
24
|
-
providers: () => ["github", "google"],
|
|
25
|
-
allowMagicLink: true,
|
|
26
|
-
allowPasskey: true,
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
const emit = defineEmits<{
|
|
30
|
-
success: [session: any]
|
|
31
|
-
error: [err: any]
|
|
32
|
-
}>()
|
|
33
|
-
|
|
34
|
-
const runtimeConfig = useRuntimeConfig()
|
|
35
|
-
const authConfig = (runtimeConfig.public as any)?.qarpeo?.auth || {}
|
|
36
|
-
const authPrefix = authConfig.prefix || "/api/auth"
|
|
37
|
-
|
|
38
|
-
const { signUp, fetch: refreshSession } = useAuth()
|
|
39
|
-
const { registerPasskey, loading: passkeyLoading } = usePasskey()
|
|
40
|
-
const { sendMagicLink, loading: magicLinkLoading } = usePasswordless()
|
|
41
|
-
|
|
42
|
-
// Form mode: 'password' | 'magic-link'
|
|
43
|
-
const mode = ref<"password" | "magic-link">("password")
|
|
44
|
-
const name = ref("")
|
|
45
|
-
const email = ref("")
|
|
46
|
-
const password = ref("")
|
|
47
|
-
const loading = ref(false)
|
|
48
|
-
const errorMessage = ref("")
|
|
49
|
-
const successMessage = ref("")
|
|
50
|
-
|
|
51
|
-
const isLoading = computed(() => loading.value || passkeyLoading.value || magicLinkLoading.value)
|
|
52
|
-
|
|
53
|
-
async function handleRegister() {
|
|
54
|
-
if (!name.value || !email.value || !password.value) {
|
|
55
|
-
errorMessage.value = "Please fill in all fields"
|
|
56
|
-
return
|
|
57
|
-
}
|
|
58
|
-
loading.value = true
|
|
59
|
-
errorMessage.value = ""
|
|
60
|
-
try {
|
|
61
|
-
const res = await signUp.email({
|
|
62
|
-
name: name.value,
|
|
63
|
-
email: email.value,
|
|
64
|
-
password: password.value,
|
|
65
|
-
})
|
|
66
|
-
if ((res as any)?.error) {
|
|
67
|
-
throw new Error((res as any).error.message || "Failed to register")
|
|
68
|
-
}
|
|
69
|
-
await refreshSession()
|
|
70
|
-
emit("success", res)
|
|
71
|
-
if (props.redirect) {
|
|
72
|
-
await navigateTo(props.redirect)
|
|
73
|
-
}
|
|
74
|
-
} catch (err: any) {
|
|
75
|
-
errorMessage.value = err?.data?.message || err?.message || "Registration failed"
|
|
76
|
-
emit("error", err)
|
|
77
|
-
} finally {
|
|
78
|
-
loading.value = false
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
async function handleMagicLinkRegister() {
|
|
83
|
-
if (!email.value) {
|
|
84
|
-
errorMessage.value = "Please enter your email"
|
|
85
|
-
return
|
|
86
|
-
}
|
|
87
|
-
errorMessage.value = ""
|
|
88
|
-
successMessage.value = ""
|
|
89
|
-
try {
|
|
90
|
-
await sendMagicLink(email.value)
|
|
91
|
-
successMessage.value = "Check your email for the sign-in link!"
|
|
92
|
-
} catch (err: any) {
|
|
93
|
-
errorMessage.value = err?.data?.message || err?.message || "Failed to send magic link"
|
|
94
|
-
emit("error", err)
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
async function handlePasskeyRegister() {
|
|
99
|
-
if (!name.value || !email.value) {
|
|
100
|
-
errorMessage.value = "Please enter your name and email first"
|
|
101
|
-
return
|
|
102
|
-
}
|
|
103
|
-
errorMessage.value = ""
|
|
104
|
-
try {
|
|
105
|
-
const res = await registerPasskey()
|
|
106
|
-
await refreshSession()
|
|
107
|
-
emit("success", res)
|
|
108
|
-
if (props.redirect) {
|
|
109
|
-
await navigateTo(props.redirect)
|
|
110
|
-
}
|
|
111
|
-
} catch (err: any) {
|
|
112
|
-
errorMessage.value =
|
|
113
|
-
err?.data?.message || err?.message || "Passkey registration cancelled or failed"
|
|
114
|
-
emit("error", err)
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function handleOAuthSignUp(provider: string) {
|
|
119
|
-
if (typeof window !== "undefined") {
|
|
120
|
-
const callbackUrl = encodeURIComponent(window.location.origin + props.redirect)
|
|
121
|
-
window.location.href = `${authPrefix}/sign-in/social?provider=${provider}&callbackURL=${callbackUrl}`
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
</script>
|
|
125
|
-
|
|
126
|
-
<template>
|
|
127
|
-
<div
|
|
128
|
-
class="mx-auto w-full max-w-md rounded-2xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900"
|
|
129
|
-
>
|
|
130
|
-
<div class="mb-6 text-center">
|
|
131
|
-
<h2 class="text-2xl font-bold tracking-tight text-neutral-900 dark:text-neutral-50">
|
|
132
|
-
{{ title }}
|
|
133
|
-
</h2>
|
|
134
|
-
<p class="mt-1 text-sm text-neutral-500 dark:text-neutral-400">
|
|
135
|
-
{{ description }}
|
|
136
|
-
</p>
|
|
137
|
-
</div>
|
|
138
|
-
|
|
139
|
-
<!-- Error & Success Banners -->
|
|
140
|
-
<div
|
|
141
|
-
v-if="errorMessage"
|
|
142
|
-
class="mb-4 rounded-lg bg-red-50 p-3 text-sm text-red-700 dark:bg-red-950/50 dark:text-red-400"
|
|
143
|
-
>
|
|
144
|
-
{{ errorMessage }}
|
|
145
|
-
</div>
|
|
146
|
-
<div
|
|
147
|
-
v-if="successMessage"
|
|
148
|
-
class="mb-4 rounded-lg bg-emerald-50 p-3 text-sm text-emerald-700 dark:bg-emerald-950/50 dark:text-emerald-400"
|
|
149
|
-
>
|
|
150
|
-
{{ successMessage }}
|
|
151
|
-
</div>
|
|
152
|
-
|
|
153
|
-
<!-- Social OAuth Providers -->
|
|
154
|
-
<div v-if="providers.length > 0" class="space-y-3">
|
|
155
|
-
<div class="grid grid-cols-1 gap-2" :class="providers.length > 1 ? 'sm:grid-cols-2' : ''">
|
|
156
|
-
<button
|
|
157
|
-
v-for="provider in providers"
|
|
158
|
-
:key="provider"
|
|
159
|
-
type="button"
|
|
160
|
-
class="flex items-center justify-center gap-2 rounded-lg border border-neutral-200 bg-white px-4 py-2 text-sm font-medium text-neutral-700 hover:bg-neutral-50 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-200 dark:hover:bg-neutral-700"
|
|
161
|
-
@click="handleOAuthSignUp(provider)"
|
|
162
|
-
>
|
|
163
|
-
<span class="capitalize">{{ provider }}</span>
|
|
164
|
-
</button>
|
|
165
|
-
</div>
|
|
166
|
-
|
|
167
|
-
<div class="relative my-4 flex items-center justify-center">
|
|
168
|
-
<div class="w-full border-t border-neutral-200 dark:border-neutral-700" />
|
|
169
|
-
<span class="absolute bg-white px-3 text-xs text-neutral-400 dark:bg-neutral-900"
|
|
170
|
-
>or continue with</span
|
|
171
|
-
>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
|
|
175
|
-
<!-- Form Mode Tabs (Password vs Magic Link) -->
|
|
176
|
-
<div v-if="allowMagicLink" class="mb-4 flex rounded-lg bg-neutral-100 p-1 dark:bg-neutral-800">
|
|
177
|
-
<button
|
|
178
|
-
type="button"
|
|
179
|
-
class="flex-1 rounded-md py-1.5 text-xs font-semibold transition"
|
|
180
|
-
:class="
|
|
181
|
-
mode === 'password'
|
|
182
|
-
? 'bg-white shadow text-neutral-900 dark:bg-neutral-700 dark:text-white'
|
|
183
|
-
: 'text-neutral-500 hover:text-neutral-700 dark:text-neutral-400'
|
|
184
|
-
"
|
|
185
|
-
@click="mode = 'password'"
|
|
186
|
-
>
|
|
187
|
-
Password
|
|
188
|
-
</button>
|
|
189
|
-
<button
|
|
190
|
-
type="button"
|
|
191
|
-
class="flex-1 rounded-md py-1.5 text-xs font-semibold transition"
|
|
192
|
-
:class="
|
|
193
|
-
mode === 'magic-link'
|
|
194
|
-
? 'bg-white shadow text-neutral-900 dark:bg-neutral-700 dark:text-white'
|
|
195
|
-
: 'text-neutral-500 hover:text-neutral-700 dark:text-neutral-400'
|
|
196
|
-
"
|
|
197
|
-
@click="mode = 'magic-link'"
|
|
198
|
-
>
|
|
199
|
-
Magic Link
|
|
200
|
-
</button>
|
|
201
|
-
</div>
|
|
202
|
-
|
|
203
|
-
<!-- Password Register Form -->
|
|
204
|
-
<form v-if="mode === 'password'" class="space-y-4" @submit.prevent="handleRegister">
|
|
205
|
-
<div>
|
|
206
|
-
<label class="block text-xs font-medium text-neutral-700 dark:text-neutral-300"
|
|
207
|
-
>Full Name</label
|
|
208
|
-
>
|
|
209
|
-
<input
|
|
210
|
-
v-model="name"
|
|
211
|
-
type="text"
|
|
212
|
-
required
|
|
213
|
-
autocomplete="name"
|
|
214
|
-
placeholder="Jane Smith"
|
|
215
|
-
class="mt-1 block w-full rounded-lg border border-neutral-200 bg-white px-3 py-2 text-sm text-neutral-900 placeholder:text-neutral-400 focus:border-neutral-900 focus:outline-none dark:border-neutral-700 dark:bg-neutral-800 dark:text-white dark:focus:border-neutral-400"
|
|
216
|
-
/>
|
|
217
|
-
</div>
|
|
218
|
-
|
|
219
|
-
<div>
|
|
220
|
-
<label class="block text-xs font-medium text-neutral-700 dark:text-neutral-300"
|
|
221
|
-
>Email Address</label
|
|
222
|
-
>
|
|
223
|
-
<input
|
|
224
|
-
v-model="email"
|
|
225
|
-
type="email"
|
|
226
|
-
required
|
|
227
|
-
autocomplete="email"
|
|
228
|
-
placeholder="you@example.com"
|
|
229
|
-
class="mt-1 block w-full rounded-lg border border-neutral-200 bg-white px-3 py-2 text-sm text-neutral-900 placeholder:text-neutral-400 focus:border-neutral-900 focus:outline-none dark:border-neutral-700 dark:bg-neutral-800 dark:text-white dark:focus:border-neutral-400"
|
|
230
|
-
/>
|
|
231
|
-
</div>
|
|
232
|
-
|
|
233
|
-
<div>
|
|
234
|
-
<label class="block text-xs font-medium text-neutral-700 dark:text-neutral-300"
|
|
235
|
-
>Password</label
|
|
236
|
-
>
|
|
237
|
-
<input
|
|
238
|
-
v-model="password"
|
|
239
|
-
type="password"
|
|
240
|
-
required
|
|
241
|
-
autocomplete="new-password"
|
|
242
|
-
placeholder="••••••••"
|
|
243
|
-
class="mt-1 block w-full rounded-lg border border-neutral-200 bg-white px-3 py-2 text-sm text-neutral-900 placeholder:text-neutral-400 focus:border-neutral-900 focus:outline-none dark:border-neutral-700 dark:bg-neutral-800 dark:text-white dark:focus:border-neutral-400"
|
|
244
|
-
/>
|
|
245
|
-
</div>
|
|
246
|
-
|
|
247
|
-
<button
|
|
248
|
-
type="submit"
|
|
249
|
-
:disabled="isLoading"
|
|
250
|
-
class="flex w-full items-center justify-center rounded-lg bg-neutral-900 py-2.5 text-sm font-medium text-white transition hover:bg-neutral-800 disabled:opacity-50 dark:bg-neutral-100 dark:text-neutral-900 dark:hover:bg-white"
|
|
251
|
-
>
|
|
252
|
-
<span v-if="loading">Creating account...</span>
|
|
253
|
-
<span v-else>Create Account</span>
|
|
254
|
-
</button>
|
|
255
|
-
</form>
|
|
256
|
-
|
|
257
|
-
<!-- Magic Link Register Form -->
|
|
258
|
-
<form v-else class="space-y-4" @submit.prevent="handleMagicLinkRegister">
|
|
259
|
-
<div>
|
|
260
|
-
<label class="block text-xs font-medium text-neutral-700 dark:text-neutral-300"
|
|
261
|
-
>Email Address</label
|
|
262
|
-
>
|
|
263
|
-
<input
|
|
264
|
-
v-model="email"
|
|
265
|
-
type="email"
|
|
266
|
-
required
|
|
267
|
-
autocomplete="email"
|
|
268
|
-
placeholder="you@example.com"
|
|
269
|
-
class="mt-1 block w-full rounded-lg border border-neutral-200 bg-white px-3 py-2 text-sm text-neutral-900 placeholder:text-neutral-400 focus:border-neutral-900 focus:outline-none dark:border-neutral-700 dark:bg-neutral-800 dark:text-white dark:focus:border-neutral-400"
|
|
270
|
-
/>
|
|
271
|
-
</div>
|
|
272
|
-
|
|
273
|
-
<button
|
|
274
|
-
type="submit"
|
|
275
|
-
:disabled="isLoading"
|
|
276
|
-
class="flex w-full items-center justify-center rounded-lg bg-neutral-900 py-2.5 text-sm font-medium text-white transition hover:bg-neutral-800 disabled:opacity-50 dark:bg-neutral-100 dark:text-neutral-900 dark:hover:bg-white"
|
|
277
|
-
>
|
|
278
|
-
<span v-if="magicLinkLoading">Sending link...</span>
|
|
279
|
-
<span v-else>Send Magic Sign-up Link</span>
|
|
280
|
-
</button>
|
|
281
|
-
</form>
|
|
282
|
-
|
|
283
|
-
<!-- Passkey Register Button -->
|
|
284
|
-
<div v-if="allowPasskey" class="mt-4 border-t border-neutral-100 pt-4 dark:border-neutral-800">
|
|
285
|
-
<button
|
|
286
|
-
type="button"
|
|
287
|
-
:disabled="isLoading"
|
|
288
|
-
class="flex w-full items-center justify-center gap-2 rounded-lg border border-neutral-200 bg-neutral-50 py-2 text-xs font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-300 dark:hover:bg-neutral-700"
|
|
289
|
-
@click="handlePasskeyRegister"
|
|
290
|
-
>
|
|
291
|
-
<span>Register with Passkey / Biometrics</span>
|
|
292
|
-
</button>
|
|
293
|
-
</div>
|
|
294
|
-
|
|
295
|
-
<!-- Sign in footer -->
|
|
296
|
-
<div v-if="signInUrl" class="mt-6 text-center text-xs text-neutral-500 dark:text-neutral-400">
|
|
297
|
-
Already have an account?
|
|
298
|
-
<a
|
|
299
|
-
:href="signInUrl"
|
|
300
|
-
class="font-medium text-neutral-900 underline hover:text-neutral-700 dark:text-neutral-100"
|
|
301
|
-
>
|
|
302
|
-
Sign in
|
|
303
|
-
</a>
|
|
304
|
-
</div>
|
|
305
|
-
</div>
|
|
306
|
-
</template>
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { onMounted, ref } from "vue"
|
|
3
|
-
|
|
4
|
-
import { useAuth } from "../composables/auth"
|
|
5
|
-
|
|
6
|
-
const { sessions, fetchSessions, revokeSession, revokeOtherSessions } = useAuth()
|
|
7
|
-
|
|
8
|
-
const loading = ref(false)
|
|
9
|
-
const revokingId = ref<string | null>(null)
|
|
10
|
-
const revokingAll = ref(false)
|
|
11
|
-
const errorMessage = ref("")
|
|
12
|
-
|
|
13
|
-
onMounted(async () => {
|
|
14
|
-
loading.value = true
|
|
15
|
-
try {
|
|
16
|
-
await fetchSessions()
|
|
17
|
-
} catch (err: any) {
|
|
18
|
-
errorMessage.value = err?.message || "Failed to load sessions"
|
|
19
|
-
} finally {
|
|
20
|
-
loading.value = false
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
async function handleRevoke(id: string) {
|
|
25
|
-
revokingId.value = id
|
|
26
|
-
errorMessage.value = ""
|
|
27
|
-
try {
|
|
28
|
-
await revokeSession(id)
|
|
29
|
-
await fetchSessions()
|
|
30
|
-
} catch (err: any) {
|
|
31
|
-
errorMessage.value = err?.message || "Failed to revoke session"
|
|
32
|
-
} finally {
|
|
33
|
-
revokingId.value = null
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
async function handleRevokeAll() {
|
|
38
|
-
revokingAll.value = true
|
|
39
|
-
errorMessage.value = ""
|
|
40
|
-
try {
|
|
41
|
-
await revokeOtherSessions()
|
|
42
|
-
await fetchSessions()
|
|
43
|
-
} catch (err: any) {
|
|
44
|
-
errorMessage.value = err?.message || "Failed to revoke sessions"
|
|
45
|
-
} finally {
|
|
46
|
-
revokingAll.value = false
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function formatDate(ts: number | string | undefined) {
|
|
51
|
-
if (!ts) return "—"
|
|
52
|
-
return new Date(ts).toLocaleString(undefined, {
|
|
53
|
-
dateStyle: "medium",
|
|
54
|
-
timeStyle: "short",
|
|
55
|
-
})
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function getDeviceLabel(session: any) {
|
|
59
|
-
const ua = session.userAgent || ""
|
|
60
|
-
if (!ua) return "Unknown device"
|
|
61
|
-
if (/mobile/i.test(ua)) return "Mobile browser"
|
|
62
|
-
if (/tablet/i.test(ua)) return "Tablet"
|
|
63
|
-
return "Desktop browser"
|
|
64
|
-
}
|
|
65
|
-
</script>
|
|
66
|
-
|
|
67
|
-
<template>
|
|
68
|
-
<div class="w-full space-y-4">
|
|
69
|
-
<div class="flex items-center justify-between">
|
|
70
|
-
<h3 class="text-sm font-semibold text-neutral-900 dark:text-neutral-100">Active Sessions</h3>
|
|
71
|
-
<button
|
|
72
|
-
v-if="sessions && sessions.length > 1"
|
|
73
|
-
type="button"
|
|
74
|
-
:disabled="revokingAll"
|
|
75
|
-
class="rounded-md px-3 py-1 text-xs font-medium text-red-600 hover:bg-red-50 disabled:opacity-50 dark:text-red-400 dark:hover:bg-red-950/30"
|
|
76
|
-
@click="handleRevokeAll"
|
|
77
|
-
>
|
|
78
|
-
{{ revokingAll ? "Revoking..." : "Revoke all others" }}
|
|
79
|
-
</button>
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
<div
|
|
83
|
-
v-if="errorMessage"
|
|
84
|
-
class="rounded-lg bg-red-50 p-3 text-xs text-red-700 dark:bg-red-950/50 dark:text-red-400"
|
|
85
|
-
>
|
|
86
|
-
{{ errorMessage }}
|
|
87
|
-
</div>
|
|
88
|
-
|
|
89
|
-
<div v-if="loading" class="py-6 text-center text-sm text-neutral-400">Loading sessions...</div>
|
|
90
|
-
|
|
91
|
-
<div
|
|
92
|
-
v-else-if="!sessions || sessions.length === 0"
|
|
93
|
-
class="py-6 text-center text-sm text-neutral-400"
|
|
94
|
-
>
|
|
95
|
-
No active sessions found.
|
|
96
|
-
</div>
|
|
97
|
-
|
|
98
|
-
<ul
|
|
99
|
-
v-else
|
|
100
|
-
class="divide-y divide-neutral-100 rounded-xl border border-neutral-200 dark:divide-neutral-800 dark:border-neutral-700"
|
|
101
|
-
>
|
|
102
|
-
<li
|
|
103
|
-
v-for="session in sessions"
|
|
104
|
-
:key="session.id"
|
|
105
|
-
class="flex items-center justify-between gap-4 px-4 py-3"
|
|
106
|
-
>
|
|
107
|
-
<div class="min-w-0 flex-1">
|
|
108
|
-
<p class="text-xs font-medium text-neutral-800 dark:text-neutral-200">
|
|
109
|
-
{{ getDeviceLabel(session) }}
|
|
110
|
-
</p>
|
|
111
|
-
<p class="mt-0.5 truncate text-xs text-neutral-400">
|
|
112
|
-
{{ session.ipAddress || "IP unknown" }} · Last active
|
|
113
|
-
{{ formatDate(session.updatedAt) }}
|
|
114
|
-
</p>
|
|
115
|
-
<p
|
|
116
|
-
v-if="session.current"
|
|
117
|
-
class="mt-0.5 text-xs font-semibold text-emerald-600 dark:text-emerald-400"
|
|
118
|
-
>
|
|
119
|
-
Current session
|
|
120
|
-
</p>
|
|
121
|
-
</div>
|
|
122
|
-
<button
|
|
123
|
-
v-if="!session.current"
|
|
124
|
-
type="button"
|
|
125
|
-
:disabled="revokingId === session.id"
|
|
126
|
-
class="shrink-0 rounded-md px-2 py-1 text-xs font-medium text-red-600 hover:bg-red-50 disabled:opacity-50 dark:text-red-400 dark:hover:bg-red-950/30"
|
|
127
|
-
@click="handleRevoke(session.id)"
|
|
128
|
-
>
|
|
129
|
-
{{ revokingId === session.id ? "Revoking..." : "Revoke" }}
|
|
130
|
-
</button>
|
|
131
|
-
<span v-else class="shrink-0 rounded-md px-2 py-1 text-xs font-medium text-neutral-400">
|
|
132
|
-
This device
|
|
133
|
-
</span>
|
|
134
|
-
</li>
|
|
135
|
-
</ul>
|
|
136
|
-
</div>
|
|
137
|
-
</template>
|