qarpeo 0.1.18 → 0.1.21
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 +96 -96
- package/dist/chunks/auth-schema.mjs +3 -1
- package/dist/chunks/wrangler.mjs +22 -3
- package/dist/cli/index.mjs +448 -221
- package/dist/fate/index.d.ts +29 -22
- package/dist/fate/index.mjs +1 -3
- package/dist/module.d.ts +1 -1
- package/dist/module.mjs +103 -82
- package/dist/runtime/ai.d.ts +2 -2
- package/dist/runtime/app/components/BlobImage.vue +119 -107
- package/dist/runtime/app/components/CMSBlocks.vue +104 -93
- package/dist/runtime/app/components/CMSContent.vue +24 -23
- package/dist/runtime/app/components/CMSImage.vue +49 -49
- package/dist/runtime/app/components/CMSLocaleSwitcher.vue +110 -110
- package/dist/runtime/app/components/CMSPreviewBanner.vue +83 -79
- package/dist/runtime/app/components/CMSVersionBanner.vue +53 -49
- package/dist/runtime/app/components/CMSVersionSwitcher.vue +140 -140
- package/dist/runtime/app/components/ContentRenderer.vue +83 -80
- package/dist/runtime/app/components/FileUpload.vue +200 -196
- package/dist/runtime/app/components/ImpersonationBanner.vue +61 -57
- package/dist/runtime/app/components/QarpeoWelcome.vue +84 -84
- package/dist/runtime/app/components/SignedIn.vue +13 -13
- package/dist/runtime/app/components/SignedOut.vue +13 -13
- package/dist/runtime/app/components/shiki.css +34 -34
- package/dist/runtime/app/composables/ai.d.ts +22 -22
- package/dist/runtime/app/composables/ai.mjs +3 -7
- package/dist/runtime/app/composables/analytics.mjs +1 -1
- package/dist/runtime/app/composables/api-tokens.mjs +1 -1
- package/dist/runtime/app/composables/auth.d.ts +6 -7
- package/dist/runtime/app/composables/auth.mjs +6 -3
- package/dist/runtime/app/composables/chat.mjs +3 -7
- package/dist/runtime/app/composables/cms-preview.d.ts +3 -3
- package/dist/runtime/app/composables/cms-preview.mjs +1 -1
- package/dist/runtime/app/composables/cms.d.ts +3 -5
- package/dist/runtime/app/composables/cms.mjs +2 -2
- package/dist/runtime/app/composables/docs-version.d.ts +8 -7
- package/dist/runtime/app/composables/docs-version.mjs +3 -3
- package/dist/runtime/app/composables/impersonation.mjs +1 -1
- package/dist/runtime/app/composables/notifications.d.ts +5 -5
- package/dist/runtime/app/composables/notifications.mjs +4 -5
- package/dist/runtime/app/composables/organization.mjs +1 -1
- package/dist/runtime/app/composables/passkey.mjs +1 -1
- package/dist/runtime/app/composables/passwordless.mjs +1 -1
- package/dist/runtime/app/composables/payments.d.ts +2 -1
- package/dist/runtime/app/composables/payments.mjs +1 -1
- package/dist/runtime/app/composables/realtime.d.ts +13 -13
- package/dist/runtime/app/composables/realtime.mjs +2 -2
- package/dist/runtime/app/composables/resumable-upload.d.ts +11 -11
- package/dist/runtime/app/composables/resumable-upload.mjs +1 -1
- package/dist/runtime/app/composables/site.mjs +1 -1
- package/dist/runtime/app/composables/storage.d.ts +151 -11
- package/dist/runtime/app/composables/storage.mjs +291 -33
- package/dist/runtime/app/composables/turnstile.mjs +1 -1
- package/dist/runtime/app/composables/two-factor.mjs +1 -1
- package/dist/runtime/app/pages/devtools/agents.vue +716 -716
- package/dist/runtime/app/pages/devtools/analytics.vue +616 -616
- package/dist/runtime/app/pages/devtools/auth.vue +381 -350
- package/dist/runtime/app/pages/devtools/blob.vue +743 -744
- package/dist/runtime/app/pages/devtools/db.vue +545 -545
- package/dist/runtime/app/pages/devtools/domains.vue +771 -771
- package/dist/runtime/app/pages/devtools/kv.vue +827 -828
- package/dist/runtime/app/pages/devtools/logs.vue +649 -653
- package/dist/runtime/app/pages/devtools/mail.vue +388 -388
- package/dist/runtime/app/pages/devtools/overview.vue +391 -389
- package/dist/runtime/app/pages/devtools/realtime.vue +89 -27
- package/dist/runtime/app/pages/devtools/security.vue +20 -5
- package/dist/runtime/app/pages/devtools/settings.vue +559 -559
- package/dist/runtime/app/pages/devtools/tasks.vue +26 -10
- package/dist/runtime/app/pages/devtools.vue +176 -176
- package/dist/runtime/app/plugins/seo.mjs +1 -1
- package/dist/runtime/app/plugins/shortcuts.client.d.ts +1 -4
- package/dist/runtime/app/public/sw-notifications.mjs +47 -52
- package/dist/runtime/blob.mjs +11 -4
- package/dist/runtime/browser.d.ts +1 -1
- package/dist/runtime/browser.mjs +12 -2
- package/dist/runtime/cache.d.ts +2 -1
- package/dist/runtime/kv.mjs +4 -1
- package/dist/runtime/providers/qarpeo.d.ts +3 -3
- package/dist/runtime/server/durable-objects/agent.mjs +1 -1
- package/dist/runtime/server/durable-objects/room.d.ts +2 -2
- package/dist/runtime/server/durable-objects/room.mjs +5 -5
- package/dist/runtime/server/middleware/devtools.mjs +6 -2
- package/dist/runtime/server/plugins/cms.d.ts +4 -2
- package/dist/runtime/server/plugins/dev-proxy.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/agents/chat.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/agents/chat.post.mjs +4 -1
- package/dist/runtime/server/routes/__qarpeo/analytics/events.get.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/analytics/summary.get.mjs +5 -1
- package/dist/runtime/server/routes/__qarpeo/db/tables.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/db/tables.get.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/logs.get.d.ts +4 -1
- package/dist/runtime/server/routes/__qarpeo/mail/track/click/[id].get.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/mail/track/open/[id].get.mjs +2 -2
- package/dist/runtime/server/routes/__qarpeo/overview.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/realtime/broadcast.post.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/realtime/broadcast.post.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/realtime/clear.post.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/realtime/clear.post.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/realtime/disconnect.post.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/realtime/disconnect.post.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/realtime/room.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/realtime/rooms.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/security/analytics.get.d.ts +2 -2
- package/dist/runtime/server/routes/__qarpeo/security/ban.post.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/security/clear.post.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/security/unban.post.d.ts +1 -4
- package/dist/runtime/server/routes/__qarpeo/settings.get.mjs +1 -1
- package/dist/runtime/server/routes/__qarpeo/tasks/run.post.mjs +3 -1
- package/dist/runtime/server/routes/agents/[agent]/chat.post.mjs +8 -2
- package/dist/runtime/server/routes/agents/[agent]/clear.post.mjs +8 -2
- package/dist/runtime/server/routes/agents/[agent]/history.get.mjs +8 -2
- package/dist/runtime/server/routes/ai/embed.post.d.ts +1 -4
- package/dist/runtime/server/routes/ai/search.post.d.ts +2 -2
- package/dist/runtime/server/routes/auth/account.delete.mjs +1 -1
- package/dist/runtime/server/routes/auth/handler.mjs +6 -1
- package/dist/runtime/server/routes/auth/magic-link/verify.get.mjs +1 -1
- package/dist/runtime/server/routes/auth/organization/members/[id].delete.mjs +7 -1
- package/dist/runtime/server/routes/auth/otp/verify.post.mjs +1 -1
- package/dist/runtime/server/routes/auth/sso/login.get.mjs +7 -1
- package/dist/runtime/server/routes/auth/sso/oidc/callback.get.mjs +8 -2
- package/dist/runtime/server/routes/auth/sso/saml/acs.post.mjs +7 -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 +7 -2
- package/dist/runtime/server/routes/auth/webauthn/register/options.post.mjs +6 -1
- package/dist/runtime/server/routes/auth/webauthn/register/verify.post.mjs +6 -1
- package/dist/runtime/server/routes/browser/crawl.post.d.ts +1 -2
- package/dist/runtime/server/routes/browser/invoice.post.d.ts +1 -2
- package/dist/runtime/server/routes/browser/og-image.post.d.ts +2 -2
- package/dist/runtime/server/routes/browser/pdf.post.d.ts +1 -2
- package/dist/runtime/server/routes/browser/pdf.post.mjs +6 -1
- package/dist/runtime/server/routes/browser/screenshot.post.d.ts +2 -2
- package/dist/runtime/server/routes/browser/screenshot.post.mjs +5 -1
- package/dist/runtime/server/routes/cms/components/index.get.d.ts +2 -2
- package/dist/runtime/server/routes/cms/preview/disable.get.d.ts +4 -3
- package/dist/runtime/server/routes/cms/preview/enable.get.d.ts +8 -8
- package/dist/runtime/server/routes/cms/search.get.mjs +1 -1
- package/dist/runtime/server/routes/cms/webhooks/[provider].post.d.ts +7 -7
- package/dist/runtime/server/routes/cms/webhooks/[provider].post.mjs +9 -2
- package/dist/runtime/server/routes/docs/search.get.d.ts +9 -9
- package/dist/runtime/server/routes/fate.mjs +5 -8
- package/dist/runtime/server/routes/mail/bounce.post.d.ts +2 -2
- package/dist/runtime/server/routes/mail/unsubscribe.d.ts +2 -2
- package/dist/runtime/server/routes/mail/webhooks.post.d.ts +2 -2
- package/dist/runtime/server/routes/mail/webhooks.post.mjs +7 -1
- package/dist/runtime/server/routes/payments/usage.get.d.ts +8 -8
- package/dist/runtime/server/routes/payments/usage.post.d.ts +2 -2
- package/dist/runtime/server/routes/realtime/history.delete.d.ts +4 -3
- package/dist/runtime/server/routes/realtime/history.get.d.ts +7 -6
- package/dist/runtime/server/routes/realtime/ws.get.mjs +6 -1
- package/dist/runtime/server/routes/robots.txt.get.mjs +1 -1
- package/dist/runtime/server/routes/sitemap.xml.get.mjs +2 -1
- package/dist/runtime/server/routes/storage/multipart/abort.post.d.ts +2 -2
- package/dist/runtime/server/routes/storage/multipart/complete.post.d.ts +2 -2
- package/dist/runtime/server/routes/storage/multipart/complete.post.mjs +2 -2
- package/dist/runtime/server/routes/storage/multipart/create.post.d.ts +2 -2
- package/dist/runtime/server/routes/storage/multipart/create.post.mjs +7 -3
- package/dist/runtime/server/routes/storage/multipart/part.put.d.ts +2 -2
- package/dist/runtime/server/routes/storage/multipart/part.put.mjs +1 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/index.delete.mjs +2 -4
- package/dist/runtime/server/routes/tenants/[tenant]/domains/[domain]/verify.post.mjs +2 -4
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.get.mjs +1 -1
- package/dist/runtime/server/routes/tenants/[tenant]/domains/index.post.mjs +2 -4
- package/dist/runtime/server/tasks/cms/publish.mjs +1 -1
- package/dist/runtime/server/utils/ai.d.ts +9 -9
- package/dist/runtime/server/utils/ai.mjs +3 -3
- package/dist/runtime/server/utils/auth.d.ts +12 -16
- package/dist/runtime/server/utils/auth.mjs +15 -9
- package/dist/runtime/server/utils/bots.mjs +21 -7
- package/dist/runtime/server/utils/browser-utils.d.ts +44 -41
- package/dist/runtime/server/utils/browser-utils.mjs +14 -4
- package/dist/runtime/server/utils/cache.d.ts +5 -5
- package/dist/runtime/server/utils/cms/common.d.ts +26 -0
- package/dist/runtime/server/utils/cms/common.mjs +68 -0
- package/dist/runtime/server/utils/cms/git.d.ts +24 -0
- package/dist/runtime/server/utils/cms/git.mjs +240 -0
- package/dist/runtime/server/utils/cms/markdown.d.ts +22 -0
- package/dist/runtime/server/utils/cms/markdown.mjs +92 -0
- package/dist/runtime/server/utils/cms/path.d.ts +51 -0
- package/dist/runtime/server/utils/cms/path.mjs +127 -0
- package/dist/runtime/server/utils/cms/search.d.ts +22 -0
- package/dist/runtime/server/utils/cms/search.mjs +221 -0
- package/dist/runtime/server/utils/cms-events.d.ts +1 -1
- package/dist/runtime/server/utils/cms-events.mjs +2 -2
- package/dist/runtime/server/utils/cms-filter.mjs +2 -2
- package/dist/runtime/server/utils/cms.d.ts +17 -149
- package/dist/runtime/server/utils/cms.mjs +52 -761
- package/dist/runtime/server/utils/config.d.ts +5 -4
- package/dist/runtime/server/utils/domains.mjs +7 -4
- package/dist/runtime/server/utils/email-templates.d.ts +10 -7
- package/dist/runtime/server/utils/email-templates.mjs +20 -5
- package/dist/runtime/server/utils/feed.d.ts +2 -2
- package/dist/runtime/server/utils/feed.mjs +3 -1
- package/dist/runtime/server/utils/mail-suppression.d.ts +8 -24
- package/dist/runtime/server/utils/mail-suppression.mjs +2 -2
- package/dist/runtime/server/utils/mail.d.ts +7 -8
- package/dist/runtime/server/utils/mail.mjs +17 -12
- package/dist/runtime/server/utils/multipart-store.d.ts +2 -2
- package/dist/runtime/server/utils/notifications.d.ts +9 -23
- package/dist/runtime/server/utils/organization.mjs +4 -12
- package/dist/runtime/server/utils/passwordless.mjs +1 -1
- package/dist/runtime/server/utils/payments.d.ts +2 -6
- package/dist/runtime/server/utils/payments.mjs +1 -1
- package/dist/runtime/server/utils/queue.d.ts +21 -31
- package/dist/runtime/server/utils/rag.d.ts +4 -4
- package/dist/runtime/server/utils/rag.mjs +8 -8
- package/dist/runtime/server/utils/realtime-store.d.ts +2 -2
- package/dist/runtime/server/utils/realtime.d.ts +26 -28
- package/dist/runtime/server/utils/scheduled-task.d.ts +1 -3
- package/dist/runtime/server/utils/security-store.d.ts +2 -2
- package/dist/runtime/server/utils/session.d.ts +9 -11
- package/dist/runtime/server/utils/sso.d.ts +9 -15
- package/dist/runtime/server/utils/sso.mjs +4 -8
- package/dist/runtime/server/utils/storage.d.ts +19 -2
- package/dist/runtime/server/utils/storage.mjs +36 -7
- package/dist/runtime/server/utils/tenant.mjs +3 -1
- package/dist/runtime/server/utils/turnstile.d.ts +3 -5
- package/dist/runtime/server/utils/vapid.d.ts +5 -8
- package/dist/runtime/server/utils/vapid.mjs +26 -13
- package/dist/runtime/service.d.ts +13 -13
- package/dist/runtime/service.mjs +4 -2
- package/dist/runtime/test-utils.d.ts +20 -30
- package/dist/runtime/test-utils.mjs +5 -4
- package/dist/runtime/types/auth-globals.d.ts +14 -14
- package/dist/runtime/types/imports.d.ts +82 -82
- package/dist/runtime/types/index.d.ts +2 -2
- package/dist/runtime/types/r2.d.ts +5 -0
- package/dist/runtime/types/service.d.ts +11 -18
- package/dist/types.d.ts +100 -107
- package/dist/utils/auth-schema.d.ts +2 -2
- package/dist/utils/cms-sources.d.ts +3 -3
- package/dist/utils/local-db.d.ts +3 -3
- package/dist/utils/notifications-schema.d.ts +1 -3
- package/dist/utils/pkg.d.ts +7 -0
- package/dist/utils/queue.d.ts +3 -3
- package/dist/utils/tasks.d.ts +3 -2
- package/package.json +11 -8
|
@@ -39,22 +39,26 @@ const filteredTasks = computed(() => {
|
|
|
39
39
|
|
|
40
40
|
// Per-task run state
|
|
41
41
|
const runningTask = ref<string | null>(null)
|
|
42
|
-
const lastRunResult = ref<{ task: string; ok: boolean; result?: unknown; error?: string } | null>(
|
|
42
|
+
const lastRunResult = ref<{ task: string; ok: boolean; result?: unknown; error?: string } | null>(
|
|
43
|
+
null,
|
|
44
|
+
)
|
|
43
45
|
const showResultModal = ref(false)
|
|
44
46
|
|
|
45
47
|
async function triggerTask(taskName: string) {
|
|
46
48
|
runningTask.value = taskName
|
|
47
49
|
lastRunResult.value = null
|
|
48
50
|
try {
|
|
49
|
-
const result = await $fetch<{ ok: boolean; task: string; result?: unknown }>(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
const result = await $fetch<{ ok: boolean; task: string; result?: unknown }>(
|
|
52
|
+
"/_qarpeo/tasks/run",
|
|
53
|
+
{
|
|
54
|
+
method: "POST",
|
|
55
|
+
body: { task: taskName, payload: {} },
|
|
56
|
+
},
|
|
57
|
+
)
|
|
53
58
|
lastRunResult.value = { task: taskName, ok: true, result: result.result }
|
|
54
59
|
showResultModal.value = true
|
|
55
60
|
} catch (err: any) {
|
|
56
|
-
const msg =
|
|
57
|
-
err?.data?.statusMessage || err?.message || `Failed to trigger task "${taskName}"`
|
|
61
|
+
const msg = err?.data?.statusMessage || err?.message || `Failed to trigger task "${taskName}"`
|
|
58
62
|
lastRunResult.value = { task: taskName, ok: false, error: msg }
|
|
59
63
|
showResultModal.value = true
|
|
60
64
|
} finally {
|
|
@@ -231,7 +235,11 @@ onMounted(() => {
|
|
|
231
235
|
<!-- Task Result Modal -->
|
|
232
236
|
<UModal
|
|
233
237
|
v-model:open="showResultModal"
|
|
234
|
-
:title="
|
|
238
|
+
:title="
|
|
239
|
+
lastRunResult?.ok
|
|
240
|
+
? `✅ Task ran: ${lastRunResult?.task}`
|
|
241
|
+
: `❌ Task failed: ${lastRunResult?.task}`
|
|
242
|
+
"
|
|
235
243
|
>
|
|
236
244
|
<template #body>
|
|
237
245
|
<div class="space-y-3">
|
|
@@ -245,7 +253,9 @@ onMounted(() => {
|
|
|
245
253
|
</div>
|
|
246
254
|
<div v-else>
|
|
247
255
|
<div class="text-xs font-semibold text-error uppercase tracking-wider mb-2">Error</div>
|
|
248
|
-
<p
|
|
256
|
+
<p
|
|
257
|
+
class="text-xs text-default font-mono bg-error/10 border border-error/20 rounded-xl p-4"
|
|
258
|
+
>
|
|
249
259
|
{{ lastRunResult?.error }}
|
|
250
260
|
</p>
|
|
251
261
|
</div>
|
|
@@ -253,7 +263,13 @@ onMounted(() => {
|
|
|
253
263
|
</template>
|
|
254
264
|
<template #footer>
|
|
255
265
|
<div class="flex justify-end">
|
|
256
|
-
<UButton
|
|
266
|
+
<UButton
|
|
267
|
+
label="Close"
|
|
268
|
+
color="neutral"
|
|
269
|
+
variant="ghost"
|
|
270
|
+
size="xs"
|
|
271
|
+
@click="showResultModal = false"
|
|
272
|
+
/>
|
|
257
273
|
</div>
|
|
258
274
|
</template>
|
|
259
275
|
</UModal>
|
|
@@ -1,176 +1,176 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { useRoute, useFetch } from "nuxt/app"
|
|
3
|
-
import { computed } from "vue"
|
|
4
|
-
|
|
5
|
-
const route = useRoute()
|
|
6
|
-
|
|
7
|
-
const { data: settingsData } = useFetch<any>("/_qarpeo/api/settings", {
|
|
8
|
-
default: () => null,
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
// DevTools dock base path
|
|
12
|
-
const basePath = computed(() => "/_qarpeo/devtools")
|
|
13
|
-
|
|
14
|
-
// ─── Navigation with Module Activation Guards ────────────────────────────────
|
|
15
|
-
const allNavItems = computed(() => [
|
|
16
|
-
{
|
|
17
|
-
id: "overview",
|
|
18
|
-
label: "Overview",
|
|
19
|
-
icon: "i-lucide-layout-dashboard",
|
|
20
|
-
to: `${basePath.value}/overview`,
|
|
21
|
-
always: true,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: "auth",
|
|
25
|
-
label: "Auth & Users",
|
|
26
|
-
icon: "i-lucide-users",
|
|
27
|
-
to: `${basePath.value}/auth`,
|
|
28
|
-
moduleKey: "auth",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
id: "db",
|
|
32
|
-
label: "Database (D1)",
|
|
33
|
-
icon: "i-lucide-database",
|
|
34
|
-
to: `${basePath.value}/db`,
|
|
35
|
-
moduleKey: "db",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
id: "kv",
|
|
39
|
-
label: "KV Store",
|
|
40
|
-
icon: "i-lucide-zap",
|
|
41
|
-
to: `${basePath.value}/kv`,
|
|
42
|
-
moduleKey: "kv",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: "blob",
|
|
46
|
-
label: "Blob Storage",
|
|
47
|
-
icon: "i-lucide-box",
|
|
48
|
-
to: `${basePath.value}/blob`,
|
|
49
|
-
moduleKey: "blob",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
id: "domains",
|
|
53
|
-
label: "Domains & Tenants",
|
|
54
|
-
icon: "i-lucide-globe",
|
|
55
|
-
to: `${basePath.value}/domains`,
|
|
56
|
-
moduleKey: "multitenant",
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
id: "analytics",
|
|
60
|
-
label: "Analytics",
|
|
61
|
-
icon: "i-lucide-bar-chart-3",
|
|
62
|
-
to: `${basePath.value}/analytics`,
|
|
63
|
-
moduleKey: "analytics",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: "mail",
|
|
67
|
-
label: "Dev Mailbox",
|
|
68
|
-
icon: "i-lucide-mail",
|
|
69
|
-
to: `${basePath.value}/mail`,
|
|
70
|
-
moduleKey: "mail",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
id: "agents",
|
|
74
|
-
label: "Edge Agents",
|
|
75
|
-
icon: "i-lucide-bot",
|
|
76
|
-
to: `${basePath.value}/agents`,
|
|
77
|
-
moduleKey: "agents",
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: "realtime",
|
|
81
|
-
label: "Realtime & Rooms",
|
|
82
|
-
icon: "i-lucide-radio",
|
|
83
|
-
to: `${basePath.value}/realtime`,
|
|
84
|
-
always: true,
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
id: "security",
|
|
88
|
-
label: "Security & Bots",
|
|
89
|
-
icon: "i-lucide-shield-alert",
|
|
90
|
-
to: `${basePath.value}/security`,
|
|
91
|
-
always: true,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
id: "tasks",
|
|
95
|
-
label: "Scheduled Tasks",
|
|
96
|
-
icon: "i-lucide-clock",
|
|
97
|
-
to: `${basePath.value}/tasks`,
|
|
98
|
-
always: true,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
id: "logs",
|
|
102
|
-
label: "Tail Logs",
|
|
103
|
-
icon: "i-lucide-terminal",
|
|
104
|
-
to: `${basePath.value}/logs`,
|
|
105
|
-
always: true,
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
id: "settings",
|
|
109
|
-
label: "Settings & Config",
|
|
110
|
-
icon: "i-lucide-settings",
|
|
111
|
-
to: `${basePath.value}/settings`,
|
|
112
|
-
always: true,
|
|
113
|
-
},
|
|
114
|
-
])
|
|
115
|
-
|
|
116
|
-
const navItems = computed(() => allNavItems.value)
|
|
117
|
-
|
|
118
|
-
const navMenuItems = computed(() =>
|
|
119
|
-
navItems.value.map((item) => ({
|
|
120
|
-
label: item.label,
|
|
121
|
-
icon: item.icon,
|
|
122
|
-
to: item.to,
|
|
123
|
-
badge: (item as any).badge,
|
|
124
|
-
})),
|
|
125
|
-
)
|
|
126
|
-
</script>
|
|
127
|
-
|
|
128
|
-
<template>
|
|
129
|
-
<UDashboardGroup>
|
|
130
|
-
<!-- ── Left Dashboard Sidebar ────────────────────────────────────── -->
|
|
131
|
-
<UDashboardSidebar
|
|
132
|
-
resizable
|
|
133
|
-
collapsible
|
|
134
|
-
:ui="{ header: 'border-b border-default', footer: 'border-t border-default' }"
|
|
135
|
-
>
|
|
136
|
-
<template #header="{ collapsed }">
|
|
137
|
-
<div class="flex items-center gap-2.5 px-3 py-2 w-full overflow-hidden">
|
|
138
|
-
<div
|
|
139
|
-
class="w-7 h-7 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center text-primary shrink-0"
|
|
140
|
-
>
|
|
141
|
-
<UIcon name="i-lucide-layers" class="w-4 h-4" />
|
|
142
|
-
</div>
|
|
143
|
-
<div v-if="!collapsed" class="flex items-center gap-2 truncate">
|
|
144
|
-
<span class="font-bold text-sm tracking-tight text-highlighted">Qarpeo</span>
|
|
145
|
-
<UBadge color="primary" variant="subtle" size="xs">DevTools</UBadge>
|
|
146
|
-
</div>
|
|
147
|
-
</div>
|
|
148
|
-
</template>
|
|
149
|
-
|
|
150
|
-
<!-- Navigation items -->
|
|
151
|
-
<UNavigationMenu
|
|
152
|
-
:items="navMenuItems"
|
|
153
|
-
orientation="vertical"
|
|
154
|
-
highlight
|
|
155
|
-
highlight-color="primary"
|
|
156
|
-
color="neutral"
|
|
157
|
-
/>
|
|
158
|
-
|
|
159
|
-
<template #footer="{ collapsed }">
|
|
160
|
-
<div class="p-3 space-y-2">
|
|
161
|
-
<div v-if="!collapsed" class="flex items-center justify-between text-[11px] text-muted">
|
|
162
|
-
<span class="flex items-center gap-1.5">
|
|
163
|
-
<span class="w-2 h-2 rounded-full bg-success"></span>
|
|
164
|
-
Development
|
|
165
|
-
</span>
|
|
166
|
-
<span class="font-mono text-[10px] bg-muted px-1.5 py-0.5 rounded text-muted"
|
|
167
|
-
>Alt + Q</span
|
|
168
|
-
>
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
</template>
|
|
172
|
-
</UDashboardSidebar>
|
|
173
|
-
|
|
174
|
-
<NuxtPage />
|
|
175
|
-
</UDashboardGroup>
|
|
176
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useRoute, useFetch } from "nuxt/app"
|
|
3
|
+
import { computed } from "vue"
|
|
4
|
+
|
|
5
|
+
const route = useRoute()
|
|
6
|
+
|
|
7
|
+
const { data: settingsData } = useFetch<any>("/_qarpeo/api/settings", {
|
|
8
|
+
default: () => null,
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
// DevTools dock base path
|
|
12
|
+
const basePath = computed(() => "/_qarpeo/devtools")
|
|
13
|
+
|
|
14
|
+
// ─── Navigation with Module Activation Guards ────────────────────────────────
|
|
15
|
+
const allNavItems = computed(() => [
|
|
16
|
+
{
|
|
17
|
+
id: "overview",
|
|
18
|
+
label: "Overview",
|
|
19
|
+
icon: "i-lucide-layout-dashboard",
|
|
20
|
+
to: `${basePath.value}/overview`,
|
|
21
|
+
always: true,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: "auth",
|
|
25
|
+
label: "Auth & Users",
|
|
26
|
+
icon: "i-lucide-users",
|
|
27
|
+
to: `${basePath.value}/auth`,
|
|
28
|
+
moduleKey: "auth",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "db",
|
|
32
|
+
label: "Database (D1)",
|
|
33
|
+
icon: "i-lucide-database",
|
|
34
|
+
to: `${basePath.value}/db`,
|
|
35
|
+
moduleKey: "db",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "kv",
|
|
39
|
+
label: "KV Store",
|
|
40
|
+
icon: "i-lucide-zap",
|
|
41
|
+
to: `${basePath.value}/kv`,
|
|
42
|
+
moduleKey: "kv",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: "blob",
|
|
46
|
+
label: "Blob Storage",
|
|
47
|
+
icon: "i-lucide-box",
|
|
48
|
+
to: `${basePath.value}/blob`,
|
|
49
|
+
moduleKey: "blob",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "domains",
|
|
53
|
+
label: "Domains & Tenants",
|
|
54
|
+
icon: "i-lucide-globe",
|
|
55
|
+
to: `${basePath.value}/domains`,
|
|
56
|
+
moduleKey: "multitenant",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "analytics",
|
|
60
|
+
label: "Analytics",
|
|
61
|
+
icon: "i-lucide-bar-chart-3",
|
|
62
|
+
to: `${basePath.value}/analytics`,
|
|
63
|
+
moduleKey: "analytics",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "mail",
|
|
67
|
+
label: "Dev Mailbox",
|
|
68
|
+
icon: "i-lucide-mail",
|
|
69
|
+
to: `${basePath.value}/mail`,
|
|
70
|
+
moduleKey: "mail",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "agents",
|
|
74
|
+
label: "Edge Agents",
|
|
75
|
+
icon: "i-lucide-bot",
|
|
76
|
+
to: `${basePath.value}/agents`,
|
|
77
|
+
moduleKey: "agents",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: "realtime",
|
|
81
|
+
label: "Realtime & Rooms",
|
|
82
|
+
icon: "i-lucide-radio",
|
|
83
|
+
to: `${basePath.value}/realtime`,
|
|
84
|
+
always: true,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "security",
|
|
88
|
+
label: "Security & Bots",
|
|
89
|
+
icon: "i-lucide-shield-alert",
|
|
90
|
+
to: `${basePath.value}/security`,
|
|
91
|
+
always: true,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: "tasks",
|
|
95
|
+
label: "Scheduled Tasks",
|
|
96
|
+
icon: "i-lucide-clock",
|
|
97
|
+
to: `${basePath.value}/tasks`,
|
|
98
|
+
always: true,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "logs",
|
|
102
|
+
label: "Tail Logs",
|
|
103
|
+
icon: "i-lucide-terminal",
|
|
104
|
+
to: `${basePath.value}/logs`,
|
|
105
|
+
always: true,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: "settings",
|
|
109
|
+
label: "Settings & Config",
|
|
110
|
+
icon: "i-lucide-settings",
|
|
111
|
+
to: `${basePath.value}/settings`,
|
|
112
|
+
always: true,
|
|
113
|
+
},
|
|
114
|
+
])
|
|
115
|
+
|
|
116
|
+
const navItems = computed(() => allNavItems.value)
|
|
117
|
+
|
|
118
|
+
const navMenuItems = computed(() =>
|
|
119
|
+
navItems.value.map((item) => ({
|
|
120
|
+
label: item.label,
|
|
121
|
+
icon: item.icon,
|
|
122
|
+
to: item.to,
|
|
123
|
+
badge: (item as any).badge,
|
|
124
|
+
})),
|
|
125
|
+
)
|
|
126
|
+
</script>
|
|
127
|
+
|
|
128
|
+
<template>
|
|
129
|
+
<UDashboardGroup>
|
|
130
|
+
<!-- ── Left Dashboard Sidebar ────────────────────────────────────── -->
|
|
131
|
+
<UDashboardSidebar
|
|
132
|
+
resizable
|
|
133
|
+
collapsible
|
|
134
|
+
:ui="{ header: 'border-b border-default', footer: 'border-t border-default' }"
|
|
135
|
+
>
|
|
136
|
+
<template #header="{ collapsed }">
|
|
137
|
+
<div class="flex items-center gap-2.5 px-3 py-2 w-full overflow-hidden">
|
|
138
|
+
<div
|
|
139
|
+
class="w-7 h-7 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center text-primary shrink-0"
|
|
140
|
+
>
|
|
141
|
+
<UIcon name="i-lucide-layers" class="w-4 h-4" />
|
|
142
|
+
</div>
|
|
143
|
+
<div v-if="!collapsed" class="flex items-center gap-2 truncate">
|
|
144
|
+
<span class="font-bold text-sm tracking-tight text-highlighted">Qarpeo</span>
|
|
145
|
+
<UBadge color="primary" variant="subtle" size="xs">DevTools</UBadge>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</template>
|
|
149
|
+
|
|
150
|
+
<!-- Navigation items -->
|
|
151
|
+
<UNavigationMenu
|
|
152
|
+
:items="navMenuItems"
|
|
153
|
+
orientation="vertical"
|
|
154
|
+
highlight
|
|
155
|
+
highlight-color="primary"
|
|
156
|
+
color="neutral"
|
|
157
|
+
/>
|
|
158
|
+
|
|
159
|
+
<template #footer="{ collapsed }">
|
|
160
|
+
<div class="p-3 space-y-2">
|
|
161
|
+
<div v-if="!collapsed" class="flex items-center justify-between text-[11px] text-muted">
|
|
162
|
+
<span class="flex items-center gap-1.5">
|
|
163
|
+
<span class="w-2 h-2 rounded-full bg-success"></span>
|
|
164
|
+
Development
|
|
165
|
+
</span>
|
|
166
|
+
<span class="font-mono text-[10px] bg-muted px-1.5 py-0.5 rounded text-muted"
|
|
167
|
+
>Alt + Q</span
|
|
168
|
+
>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</template>
|
|
172
|
+
</UDashboardSidebar>
|
|
173
|
+
|
|
174
|
+
<NuxtPage />
|
|
175
|
+
</UDashboardGroup>
|
|
176
|
+
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
1
|
import { defineNuxtPlugin, useHead, useRoute, useRuntimeConfig, useSeoMeta } from "nuxt/app";
|
|
2
|
+
import { computed } from "vue";
|
|
3
3
|
export default defineNuxtPlugin(() => {
|
|
4
4
|
const runtimeConfig = useRuntimeConfig();
|
|
5
5
|
const site = runtimeConfig.public?.qarpeo?.site || {};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Qarpeo keyboard shortcuts plugin.
|
|
3
|
-
* Alt+Q -> Open /_qarpeo/devtools (Qarpeo DevTools)
|
|
4
|
-
*/
|
|
1
|
+
/** Qarpeo keyboard shortcuts plugin. Alt+Q -> Open /_qarpeo/devtools (Qarpeo DevTools) */
|
|
5
2
|
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
|
|
6
3
|
export default _default;
|
|
@@ -1,52 +1,47 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
self.addEventListener("install", () => self.skipWaiting())
|
|
52
|
-
self.addEventListener("activate", (event) => event.waitUntil(clients.claim()))
|
|
1
|
+
/** Qarpeo Notifications Service Worker Handles Web Push events and shows browser notifications. */
|
|
2
|
+
|
|
3
|
+
self.addEventListener("push", (event) => {
|
|
4
|
+
if (!event.data) return
|
|
5
|
+
|
|
6
|
+
let payload
|
|
7
|
+
try {
|
|
8
|
+
payload = event.data.json()
|
|
9
|
+
} catch {
|
|
10
|
+
payload = { title: "New notification", body: event.data.text() }
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const title = payload.title || "Notification"
|
|
14
|
+
const options = {
|
|
15
|
+
body: payload.body || "",
|
|
16
|
+
icon: payload.icon || "/icon.png",
|
|
17
|
+
badge: "/badge.png",
|
|
18
|
+
data: payload.data || {},
|
|
19
|
+
requireInteraction: false,
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
event.waitUntil(self.registration.showNotification(title, options))
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
self.addEventListener("notificationclick", (event) => {
|
|
26
|
+
event.notification.close()
|
|
27
|
+
|
|
28
|
+
const actionUrl = event.notification.data?.actionUrl
|
|
29
|
+
|
|
30
|
+
if (actionUrl) {
|
|
31
|
+
event.waitUntil(
|
|
32
|
+
clients.matchAll({ type: "window", includeUncontrolled: true }).then((windowClients) => {
|
|
33
|
+
for (const client of windowClients) {
|
|
34
|
+
if (client.url === actionUrl && "focus" in client) {
|
|
35
|
+
return client.focus()
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (clients.openWindow) {
|
|
39
|
+
return clients.openWindow(actionUrl)
|
|
40
|
+
}
|
|
41
|
+
}),
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
self.addEventListener("install", () => self.skipWaiting())
|
|
47
|
+
self.addEventListener("activate", (event) => event.waitUntil(clients.claim()))
|
package/dist/runtime/blob.mjs
CHANGED
|
@@ -301,16 +301,23 @@ export function createBlob(bindingName, event) {
|
|
|
301
301
|
pathname = options.pathname;
|
|
302
302
|
} else {
|
|
303
303
|
const safeName = targetFile.name?.replace(/[^a-zA-Z0-9._-]/g, "_") || "file";
|
|
304
|
-
const prefix = options?.prefix || "";
|
|
305
|
-
|
|
304
|
+
const prefix = options?.prefix || options?.put?.prefix || "";
|
|
305
|
+
const cleanPrefix = prefix ? prefix.endsWith("/") ? prefix : `${prefix}/` : "";
|
|
306
|
+
pathname = `${cleanPrefix}${Date.now()}-${safeName}`;
|
|
306
307
|
}
|
|
308
|
+
const mergedMeta = {
|
|
309
|
+
...options?.customMetadata,
|
|
310
|
+
...options?.put?.customMetadata
|
|
311
|
+
};
|
|
307
312
|
const r2Object = await createBlob(bindingName, event2).put(pathname, targetFile, {
|
|
308
313
|
contentType: targetFile.type || void 0,
|
|
309
|
-
customMetadata:
|
|
314
|
+
customMetadata: Object.keys(mergedMeta).length > 0 ? mergedMeta : void 0
|
|
310
315
|
});
|
|
316
|
+
const storageUrl = `/api/storage/file/${pathname}`;
|
|
311
317
|
return {
|
|
312
318
|
...r2Object,
|
|
313
|
-
pathname
|
|
319
|
+
pathname,
|
|
320
|
+
url: storageUrl
|
|
314
321
|
};
|
|
315
322
|
},
|
|
316
323
|
createMultipartUpload: async (pathname, options) => {
|
|
@@ -19,5 +19,5 @@ export declare function createBrowser(bindingName?: string, event?: CFEvent): Qa
|
|
|
19
19
|
export declare const useBrowser: (bindingName?: string, event?: CFEvent) => QarpeoBrowser;
|
|
20
20
|
/** Auto-imported `browser` instance for Cloudflare Browser Rendering operations. */
|
|
21
21
|
export declare const browser: QarpeoBrowser;
|
|
22
|
-
export { captureScreenshot, generatePdf, crawlPage, renderOgSocialCard, generateInvoicePdf } from "./server/utils/browser-utils";
|
|
22
|
+
export { captureScreenshot, generatePdf, crawlPage, renderOgSocialCard, generateInvoicePdf, } from "./server/utils/browser-utils";
|
|
23
23
|
export type { ImageFormat, ScreenshotOptions, ScreenshotResult, PdfOptions, PdfResult, CrawlOptions, CrawledPage, CrawlResult, OgSocialCardOptions, InvoiceItem, GenerateInvoiceOptions, } from "./server/utils/browser-utils";
|
package/dist/runtime/browser.mjs
CHANGED
|
@@ -12,7 +12,11 @@ export function getBrowserBinding(bindingName, event) {
|
|
|
12
12
|
}
|
|
13
13
|
async function loadPuppeteer() {
|
|
14
14
|
try {
|
|
15
|
-
const
|
|
15
|
+
const modName = "@cloudflare/puppeteer";
|
|
16
|
+
const puppeteer = await import(
|
|
17
|
+
/* @vite-ignore */
|
|
18
|
+
modName
|
|
19
|
+
);
|
|
16
20
|
return puppeteer.default || puppeteer;
|
|
17
21
|
} catch {
|
|
18
22
|
return null;
|
|
@@ -62,4 +66,10 @@ export const browser = new Proxy({}, {
|
|
|
62
66
|
return val;
|
|
63
67
|
}
|
|
64
68
|
});
|
|
65
|
-
export {
|
|
69
|
+
export {
|
|
70
|
+
captureScreenshot,
|
|
71
|
+
generatePdf,
|
|
72
|
+
crawlPage,
|
|
73
|
+
renderOgSocialCard,
|
|
74
|
+
generateInvoicePdf
|
|
75
|
+
} from "./server/utils/browser-utils.mjs";
|
package/dist/runtime/cache.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ export interface EdgeCacheInterface {
|
|
|
12
12
|
* Access the native Cloudflare Workers Edge Cache (`caches.default`).
|
|
13
13
|
*
|
|
14
14
|
* Provides direct access to Cloudflare's Cache API for caching Response objects by Request at the
|
|
15
|
-
* edge with typed match, put, and delete helpers. Returns `undefined` if running outside a
|
|
15
|
+
* edge with typed match, put, and delete helpers. Returns `undefined` if running outside a
|
|
16
|
+
* Cloudflare Workers environment.
|
|
16
17
|
*
|
|
17
18
|
* @see https://developers.cloudflare.com/workers/runtime-apis/cache/
|
|
18
19
|
*/
|
package/dist/runtime/kv.mjs
CHANGED
|
@@ -107,7 +107,10 @@ export function createKV(bindingName, event) {
|
|
|
107
107
|
const type = options?.type ?? "json";
|
|
108
108
|
const cacheTtl = options?.cacheTtl;
|
|
109
109
|
if (type === "json") {
|
|
110
|
-
const { value: raw, metadata: metadata2 } = await kv2.getWithMetadata(key, {
|
|
110
|
+
const { value: raw, metadata: metadata2 } = await kv2.getWithMetadata(key, {
|
|
111
|
+
type: "text",
|
|
112
|
+
cacheTtl
|
|
113
|
+
});
|
|
111
114
|
return { value: deserialize(raw), metadata: metadata2 };
|
|
112
115
|
}
|
|
113
116
|
const { value, metadata } = await kv2.getWithMetadata(key, { type, cacheTtl });
|
|
@@ -10,9 +10,9 @@ export interface ProviderModifiers {
|
|
|
10
10
|
/**
|
|
11
11
|
* Official `@nuxt/image` provider for Qarpeo Cloudflare R2 Blob Storage.
|
|
12
12
|
*
|
|
13
|
-
* Automatically resolves R2 storage keys into Cloudflare Image Resizing CDN URLs
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* Automatically resolves R2 storage keys into Cloudflare Image Resizing CDN URLs (in production /
|
|
14
|
+
* when cdnURL is set) or local Qarpeo storage API endpoints (in development), with no external
|
|
15
|
+
* runtime dependencies.
|
|
16
16
|
*/
|
|
17
17
|
export declare function getImage(src: string, { modifiers, baseURL, cdnURL, }?: {
|
|
18
18
|
modifiers?: ProviderModifiers;
|