nvent 0.4.4 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.d.mts +4 -185
- package/dist/module.json +3 -3
- package/dist/module.mjs +451 -257
- package/dist/runtime/adapters/base/index.d.ts +6 -0
- package/dist/runtime/adapters/base/index.js +1 -0
- package/dist/runtime/adapters/base/store-validator.d.ts +48 -0
- package/dist/runtime/adapters/base/store-validator.js +147 -0
- package/dist/runtime/adapters/builtin/file-queue.d.ts +67 -0
- package/dist/runtime/adapters/builtin/file-queue.js +499 -0
- package/dist/runtime/adapters/builtin/file-store.d.ts +32 -0
- package/dist/runtime/adapters/builtin/file-store.js +206 -0
- package/dist/runtime/adapters/builtin/file-stream.d.ts +39 -0
- package/dist/runtime/adapters/builtin/file-stream.js +56 -0
- package/dist/runtime/adapters/builtin/index.d.ts +10 -0
- package/dist/runtime/adapters/builtin/index.js +5 -0
- package/dist/runtime/adapters/builtin/memory-queue.d.ts +52 -0
- package/dist/runtime/adapters/builtin/memory-queue.js +243 -0
- package/dist/runtime/adapters/builtin/memory-store.d.ts +68 -0
- package/dist/runtime/adapters/builtin/memory-store.js +333 -0
- package/dist/runtime/adapters/builtin/memory-stream.d.ts +21 -0
- package/dist/runtime/adapters/builtin/memory-stream.js +56 -0
- package/dist/runtime/adapters/factory.d.ts +31 -0
- package/dist/runtime/adapters/factory.js +134 -0
- package/dist/runtime/adapters/index.d.ts +8 -0
- package/dist/runtime/adapters/index.js +3 -0
- package/dist/runtime/adapters/interfaces/index.d.ts +11 -0
- package/dist/runtime/adapters/interfaces/index.js +3 -0
- package/dist/runtime/adapters/interfaces/queue.d.ts +150 -0
- package/dist/runtime/adapters/interfaces/store.d.ts +297 -0
- package/dist/runtime/adapters/interfaces/stream.d.ts +62 -0
- package/dist/runtime/adapters/registry.d.ts +85 -0
- package/dist/runtime/adapters/registry.js +161 -0
- package/dist/runtime/config/index.d.ts +29 -0
- package/dist/runtime/config/index.js +175 -0
- package/dist/runtime/config/types.d.ts +397 -0
- package/dist/runtime/config/types.js +0 -0
- package/dist/runtime/{server-utils/events → events}/eventBus.d.ts +1 -1
- package/dist/runtime/events/types.d.ts +145 -0
- package/dist/runtime/events/types.js +0 -0
- package/dist/runtime/events/utils/scheduleTrigger.d.ts +8 -0
- package/dist/runtime/events/utils/scheduleTrigger.js +69 -0
- package/dist/runtime/events/utils/stallDetector.d.ts +140 -0
- package/dist/runtime/events/utils/stallDetector.js +436 -0
- package/dist/runtime/events/utils/triggerRuntime.d.ts +58 -0
- package/dist/runtime/events/utils/triggerRuntime.js +212 -0
- package/dist/runtime/{server-utils/events → events}/wiring/flowWiring.d.ts +12 -11
- package/dist/runtime/events/wiring/flowWiring.js +1020 -0
- package/dist/runtime/events/wiring/registry.d.ts +19 -0
- package/dist/runtime/events/wiring/registry.js +35 -0
- package/dist/runtime/events/wiring/stateWiring.d.ts +37 -0
- package/dist/runtime/events/wiring/stateWiring.js +92 -0
- package/dist/runtime/events/wiring/streamWiring.d.ts +36 -0
- package/dist/runtime/events/wiring/streamWiring.js +156 -0
- package/dist/runtime/events/wiring/triggerWiring.d.ts +21 -0
- package/dist/runtime/events/wiring/triggerWiring.js +412 -0
- package/dist/runtime/nitro/plugins/00.adapters.d.ts +14 -0
- package/dist/runtime/nitro/plugins/00.adapters.js +73 -0
- package/dist/runtime/nitro/plugins/02.workers.js +63 -0
- package/dist/runtime/nitro/plugins/03.triggers.d.ts +12 -0
- package/dist/runtime/nitro/plugins/03.triggers.js +55 -0
- package/dist/runtime/nitro/routes/webhook.await.d.ts +23 -0
- package/dist/runtime/nitro/routes/webhook.await.js +90 -0
- package/dist/runtime/nitro/routes/webhook.trigger.d.ts +69 -0
- package/dist/runtime/nitro/routes/webhook.trigger.js +64 -0
- package/dist/runtime/nitro/utils/adapters.d.ts +66 -0
- package/dist/runtime/nitro/utils/adapters.js +51 -0
- package/dist/runtime/nitro/utils/awaitPatterns/event.d.ts +15 -0
- package/dist/runtime/nitro/utils/awaitPatterns/event.js +120 -0
- package/dist/runtime/nitro/utils/awaitPatterns/index.d.ts +28 -0
- package/dist/runtime/nitro/utils/awaitPatterns/index.js +55 -0
- package/dist/runtime/nitro/utils/awaitPatterns/schedule.d.ts +16 -0
- package/dist/runtime/nitro/utils/awaitPatterns/schedule.js +78 -0
- package/dist/runtime/nitro/utils/awaitPatterns/time.d.ts +15 -0
- package/dist/runtime/nitro/utils/awaitPatterns/time.js +67 -0
- package/dist/runtime/nitro/utils/awaitPatterns/webhook.d.ts +15 -0
- package/dist/runtime/nitro/utils/awaitPatterns/webhook.js +120 -0
- package/dist/runtime/nitro/utils/defineFunction.d.ts +10 -0
- package/dist/runtime/nitro/utils/defineFunction.js +17 -0
- package/dist/runtime/nitro/utils/defineFunctionConfig.d.ts +310 -0
- package/dist/runtime/nitro/utils/defineFunctionConfig.js +3 -0
- package/dist/runtime/nitro/utils/defineHooks.d.ts +41 -0
- package/dist/runtime/nitro/utils/defineHooks.js +6 -0
- package/dist/runtime/nitro/utils/registerAdapter.d.ts +59 -0
- package/dist/runtime/nitro/utils/registerAdapter.js +13 -0
- package/dist/runtime/nitro/utils/useAwait.d.ts +71 -0
- package/dist/runtime/nitro/utils/useAwait.js +139 -0
- package/dist/runtime/{server-utils → nitro}/utils/useEventManager.d.ts +2 -2
- package/dist/runtime/{server-utils → nitro}/utils/useEventManager.js +1 -1
- package/dist/runtime/nitro/utils/useFlow.d.ts +68 -0
- package/dist/runtime/nitro/utils/useFlow.js +226 -0
- package/dist/runtime/nitro/utils/useHookRegistry.d.ts +34 -0
- package/dist/runtime/nitro/utils/useHookRegistry.js +25 -0
- package/dist/runtime/{server-utils → nitro}/utils/useNventLogger.js +2 -2
- package/dist/runtime/nitro/utils/useRunContext.d.ts +6 -0
- package/dist/runtime/nitro/utils/useRunContext.js +102 -0
- package/dist/runtime/nitro/utils/useStreamTopics.d.ts +83 -0
- package/dist/runtime/nitro/utils/useStreamTopics.js +94 -0
- package/dist/runtime/nitro/utils/useTrigger.d.ts +150 -0
- package/dist/runtime/nitro/utils/useTrigger.js +320 -0
- package/dist/runtime/scheduler/index.d.ts +33 -0
- package/dist/runtime/scheduler/index.js +38 -0
- package/dist/runtime/scheduler/scheduler.d.ts +113 -0
- package/dist/runtime/scheduler/scheduler.js +623 -0
- package/dist/runtime/scheduler/types.d.ts +116 -0
- package/dist/runtime/scheduler/types.js +0 -0
- package/dist/runtime/tsconfig.json +8 -0
- package/dist/runtime/worker/node/runner.d.ts +53 -0
- package/dist/runtime/worker/node/runner.js +327 -0
- package/dist/types.d.mts +2 -2
- package/package.json +16 -46
- package/LICENSE +0 -21
- package/README.md +0 -389
- package/dist/runtime/app/assets/vueflow.css +0 -1
- package/dist/runtime/app/components/ConfirmDialog.d.vue.ts +0 -33
- package/dist/runtime/app/components/ConfirmDialog.vue +0 -121
- package/dist/runtime/app/components/ConfirmDialog.vue.d.ts +0 -33
- package/dist/runtime/app/components/FlowDiagram.d.vue.ts +0 -64
- package/dist/runtime/app/components/FlowDiagram.vue +0 -338
- package/dist/runtime/app/components/FlowDiagram.vue.d.ts +0 -64
- package/dist/runtime/app/components/FlowNodeCard.d.vue.ts +0 -29
- package/dist/runtime/app/components/FlowNodeCard.vue +0 -156
- package/dist/runtime/app/components/FlowNodeCard.vue.d.ts +0 -29
- package/dist/runtime/app/components/FlowRunOverview.d.vue.ts +0 -9
- package/dist/runtime/app/components/FlowRunOverview.vue +0 -291
- package/dist/runtime/app/components/FlowRunOverview.vue.d.ts +0 -9
- package/dist/runtime/app/components/FlowRunStatusBadge.d.vue.ts +0 -14
- package/dist/runtime/app/components/FlowRunStatusBadge.vue +0 -60
- package/dist/runtime/app/components/FlowRunStatusBadge.vue.d.ts +0 -14
- package/dist/runtime/app/components/FlowRunTimeline.d.vue.ts +0 -12
- package/dist/runtime/app/components/FlowRunTimeline.vue +0 -127
- package/dist/runtime/app/components/FlowRunTimeline.vue.d.ts +0 -12
- package/dist/runtime/app/components/FlowScheduleDialog.d.vue.ts +0 -16
- package/dist/runtime/app/components/FlowScheduleDialog.vue +0 -226
- package/dist/runtime/app/components/FlowScheduleDialog.vue.d.ts +0 -16
- package/dist/runtime/app/components/FlowSchedulesList.d.vue.ts +0 -12
- package/dist/runtime/app/components/FlowSchedulesList.vue +0 -99
- package/dist/runtime/app/components/FlowSchedulesList.vue.d.ts +0 -12
- package/dist/runtime/app/components/JobScheduling.d.vue.ts +0 -6
- package/dist/runtime/app/components/JobScheduling.vue +0 -203
- package/dist/runtime/app/components/JobScheduling.vue.d.ts +0 -6
- package/dist/runtime/app/components/ListItem.d.vue.ts +0 -23
- package/dist/runtime/app/components/ListItem.vue +0 -70
- package/dist/runtime/app/components/ListItem.vue.d.ts +0 -23
- package/dist/runtime/app/components/QueueConfigDetails.d.vue.ts +0 -45
- package/dist/runtime/app/components/QueueConfigDetails.vue +0 -412
- package/dist/runtime/app/components/QueueConfigDetails.vue.d.ts +0 -45
- package/dist/runtime/app/components/StatCounter.d.vue.ts +0 -9
- package/dist/runtime/app/components/StatCounter.vue +0 -25
- package/dist/runtime/app/components/StatCounter.vue.d.ts +0 -9
- package/dist/runtime/app/components/TimelineList.d.vue.ts +0 -7
- package/dist/runtime/app/components/TimelineList.vue +0 -210
- package/dist/runtime/app/components/TimelineList.vue.d.ts +0 -7
- package/dist/runtime/app/components/nhealth/component-router.d.vue.ts +0 -46
- package/dist/runtime/app/components/nhealth/component-router.vue +0 -26
- package/dist/runtime/app/components/nhealth/component-router.vue.d.ts +0 -46
- package/dist/runtime/app/components/nhealth/component-shell.d.vue.ts +0 -24
- package/dist/runtime/app/components/nhealth/component-shell.vue +0 -89
- package/dist/runtime/app/components/nhealth/component-shell.vue.d.ts +0 -24
- package/dist/runtime/app/composables/useAnalyzedFlows.d.ts +0 -14
- package/dist/runtime/app/composables/useAnalyzedFlows.js +0 -8
- package/dist/runtime/app/composables/useComponentRouter.d.ts +0 -38
- package/dist/runtime/app/composables/useComponentRouter.js +0 -240
- package/dist/runtime/app/composables/useFlowRunTimeline.d.ts +0 -80
- package/dist/runtime/app/composables/useFlowRunTimeline.js +0 -68
- package/dist/runtime/app/composables/useFlowRuns.d.ts +0 -18
- package/dist/runtime/app/composables/useFlowRuns.js +0 -32
- package/dist/runtime/app/composables/useFlowRunsInfinite.d.ts +0 -24
- package/dist/runtime/app/composables/useFlowRunsInfinite.js +0 -123
- package/dist/runtime/app/composables/useFlowRunsPolling.d.ts +0 -9
- package/dist/runtime/app/composables/useFlowRunsPolling.js +0 -33
- package/dist/runtime/app/composables/useFlowState.d.ts +0 -125
- package/dist/runtime/app/composables/useFlowState.js +0 -211
- package/dist/runtime/app/composables/useFlowWebSocket.d.ts +0 -27
- package/dist/runtime/app/composables/useFlowWebSocket.js +0 -205
- package/dist/runtime/app/composables/useFlowsNavigation.d.ts +0 -10
- package/dist/runtime/app/composables/useFlowsNavigation.js +0 -58
- package/dist/runtime/app/composables/useQueueJobs.d.ts +0 -26
- package/dist/runtime/app/composables/useQueueJobs.js +0 -20
- package/dist/runtime/app/composables/useQueueUpdates.d.ts +0 -26
- package/dist/runtime/app/composables/useQueueUpdates.js +0 -122
- package/dist/runtime/app/composables/useQueues.d.ts +0 -45
- package/dist/runtime/app/composables/useQueues.js +0 -26
- package/dist/runtime/app/composables/useQueuesLive.d.ts +0 -19
- package/dist/runtime/app/composables/useQueuesLive.js +0 -143
- package/dist/runtime/app/pages/flows/index.d.vue.ts +0 -3
- package/dist/runtime/app/pages/flows/index.vue +0 -645
- package/dist/runtime/app/pages/flows/index.vue.d.ts +0 -3
- package/dist/runtime/app/pages/index.d.vue.ts +0 -3
- package/dist/runtime/app/pages/index.vue +0 -34
- package/dist/runtime/app/pages/index.vue.d.ts +0 -3
- package/dist/runtime/app/pages/queues/index.d.vue.ts +0 -3
- package/dist/runtime/app/pages/queues/index.vue +0 -229
- package/dist/runtime/app/pages/queues/index.vue.d.ts +0 -3
- package/dist/runtime/app/pages/queues/job.d.vue.ts +0 -3
- package/dist/runtime/app/pages/queues/job.vue +0 -262
- package/dist/runtime/app/pages/queues/job.vue.d.ts +0 -3
- package/dist/runtime/app/pages/queues/jobs.d.vue.ts +0 -3
- package/dist/runtime/app/pages/queues/jobs.vue +0 -291
- package/dist/runtime/app/pages/queues/jobs.vue.d.ts +0 -3
- package/dist/runtime/app/plugins/vueflow.client.d.ts +0 -2
- package/dist/runtime/app/plugins/vueflow.client.js +0 -11
- package/dist/runtime/constants.d.ts +0 -11
- package/dist/runtime/constants.js +0 -11
- package/dist/runtime/schema.d.ts +0 -37
- package/dist/runtime/schema.js +0 -20
- package/dist/runtime/server/api/_flows/[name]/clear-history.delete.d.ts +0 -10
- package/dist/runtime/server/api/_flows/[name]/clear-history.delete.js +0 -44
- package/dist/runtime/server/api/_flows/[name]/runs.get.d.ts +0 -7
- package/dist/runtime/server/api/_flows/[name]/runs.get.js +0 -53
- package/dist/runtime/server/api/_flows/[name]/schedule.post.js +0 -57
- package/dist/runtime/server/api/_flows/[name]/schedules/[id].delete.d.ts +0 -2
- package/dist/runtime/server/api/_flows/[name]/schedules/[id].delete.js +0 -42
- package/dist/runtime/server/api/_flows/[name]/schedules.get.d.ts +0 -2
- package/dist/runtime/server/api/_flows/[name]/schedules.get.js +0 -48
- package/dist/runtime/server/api/_flows/[name]/start.post.d.ts +0 -2
- package/dist/runtime/server/api/_flows/[name]/start.post.js +0 -9
- package/dist/runtime/server/api/_flows/index.get.d.ts +0 -6
- package/dist/runtime/server/api/_flows/index.get.js +0 -5
- package/dist/runtime/server/api/_flows/ws.d.ts +0 -60
- package/dist/runtime/server/api/_flows/ws.js +0 -188
- package/dist/runtime/server/api/_queues/[name]/job/[id].get.d.ts +0 -2
- package/dist/runtime/server/api/_queues/[name]/job/[id].get.js +0 -9
- package/dist/runtime/server/api/_queues/[name]/job/index.get.d.ts +0 -2
- package/dist/runtime/server/api/_queues/[name]/job/index.get.js +0 -18
- package/dist/runtime/server/api/_queues/index.get.d.ts +0 -2
- package/dist/runtime/server/api/_queues/index.get.js +0 -63
- package/dist/runtime/server/api/_queues/ws.d.ts +0 -48
- package/dist/runtime/server/api/_queues/ws.js +0 -205
- package/dist/runtime/server/plugins/00.event-store.d.ts +0 -13
- package/dist/runtime/server/plugins/00.event-store.js +0 -16
- package/dist/runtime/server/plugins/flow-management.d.ts +0 -13
- package/dist/runtime/server/plugins/flow-management.js +0 -65
- package/dist/runtime/server/plugins/queue-management.d.ts +0 -2
- package/dist/runtime/server/plugins/queue-management.js +0 -27
- package/dist/runtime/server/plugins/state-cleanup.d.ts +0 -11
- package/dist/runtime/server/plugins/state-cleanup.js +0 -93
- package/dist/runtime/server/plugins/worker-management.d.ts +0 -2
- package/dist/runtime/server/plugins/worker-management.js +0 -33
- package/dist/runtime/server/tsconfig.json +0 -3
- package/dist/runtime/server-utils/events/adapters/fileAdapter.d.ts +0 -2
- package/dist/runtime/server-utils/events/adapters/fileAdapter.js +0 -382
- package/dist/runtime/server-utils/events/adapters/memoryAdapter.d.ts +0 -2
- package/dist/runtime/server-utils/events/adapters/memoryAdapter.js +0 -171
- package/dist/runtime/server-utils/events/adapters/redis/redisAdapter.d.ts +0 -2
- package/dist/runtime/server-utils/events/adapters/redis/redisAdapter.js +0 -348
- package/dist/runtime/server-utils/events/adapters/redis/redisPubSubGateway.d.ts +0 -30
- package/dist/runtime/server-utils/events/adapters/redis/redisPubSubGateway.js +0 -82
- package/dist/runtime/server-utils/events/eventStoreFactory.d.ts +0 -19
- package/dist/runtime/server-utils/events/eventStoreFactory.js +0 -44
- package/dist/runtime/server-utils/events/streamNames.d.ts +0 -17
- package/dist/runtime/server-utils/events/streamNames.js +0 -17
- package/dist/runtime/server-utils/events/types.d.ts +0 -63
- package/dist/runtime/server-utils/events/wiring/flowWiring.js +0 -409
- package/dist/runtime/server-utils/events/wiring/registry.d.ts +0 -10
- package/dist/runtime/server-utils/events/wiring/registry.js +0 -24
- package/dist/runtime/server-utils/queue/adapters/bullmq.d.ts +0 -18
- package/dist/runtime/server-utils/queue/adapters/bullmq.js +0 -164
- package/dist/runtime/server-utils/queue/queueFactory.d.ts +0 -3
- package/dist/runtime/server-utils/queue/queueFactory.js +0 -10
- package/dist/runtime/server-utils/queue/types.d.ts +0 -47
- package/dist/runtime/server-utils/state/adapters/redis.d.ts +0 -2
- package/dist/runtime/server-utils/state/adapters/redis.js +0 -42
- package/dist/runtime/server-utils/state/stateFactory.d.ts +0 -3
- package/dist/runtime/server-utils/state/stateFactory.js +0 -17
- package/dist/runtime/server-utils/state/types.d.ts +0 -23
- package/dist/runtime/server-utils/utils/defineQueueConfig.d.ts +0 -154
- package/dist/runtime/server-utils/utils/defineQueueConfig.js +0 -2
- package/dist/runtime/server-utils/utils/defineQueueWorker.d.ts +0 -10
- package/dist/runtime/server-utils/utils/defineQueueWorker.js +0 -17
- package/dist/runtime/server-utils/utils/useEventStore.d.ts +0 -20
- package/dist/runtime/server-utils/utils/useEventStore.js +0 -119
- package/dist/runtime/server-utils/utils/useFlowEngine.d.ts +0 -9
- package/dist/runtime/server-utils/utils/useFlowEngine.js +0 -44
- package/dist/runtime/server-utils/utils/useLogs.d.ts +0 -41
- package/dist/runtime/server-utils/utils/useLogs.js +0 -74
- package/dist/runtime/server-utils/utils/useQueue.d.ts +0 -31
- package/dist/runtime/server-utils/utils/useQueue.js +0 -24
- package/dist/runtime/server-utils/worker/adapter.d.ts +0 -4
- package/dist/runtime/server-utils/worker/adapter.js +0 -66
- package/dist/runtime/server-utils/worker/runner/node.d.ts +0 -27
- package/dist/runtime/server-utils/worker/runner/node.js +0 -196
- package/dist/runtime/types.d.ts +0 -132
- /package/dist/runtime/{server-utils/events/types.js → adapters/interfaces/queue.js} +0 -0
- /package/dist/runtime/{server-utils/queue/types.js → adapters/interfaces/store.js} +0 -0
- /package/dist/runtime/{server-utils/state/types.js → adapters/interfaces/stream.js} +0 -0
- /package/dist/runtime/{server-utils/events → events}/eventBus.js +0 -0
- /package/dist/runtime/{server/plugins/00.ws-lifecycle.d.ts → nitro/plugins/01.ws-lifecycle.d.ts} +0 -0
- /package/dist/runtime/{server/plugins/00.ws-lifecycle.js → nitro/plugins/01.ws-lifecycle.js} +0 -0
- /package/dist/runtime/{server/api/_flows/[name]/schedule.post.d.ts → nitro/plugins/02.workers.d.ts} +0 -0
- /package/dist/runtime/{server-utils → nitro}/utils/useNventLogger.d.ts +0 -0
- /package/dist/runtime/{server-utils → nitro}/utils/wsPeerManager.d.ts +0 -0
- /package/dist/runtime/{server-utils → nitro}/utils/wsPeerManager.js +0 -0
- /package/dist/runtime/{python → worker/python}/get_config.py +0 -0
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="heightClass"
|
|
4
|
-
class="overflow-y-auto overflow-x-hidden"
|
|
5
|
-
>
|
|
6
|
-
<UTimeline
|
|
7
|
-
v-if="timelineItems && timelineItems.length"
|
|
8
|
-
:items="timelineItems"
|
|
9
|
-
size="xs"
|
|
10
|
-
class="px-6 py-4"
|
|
11
|
-
>
|
|
12
|
-
<!-- Custom indicator slot to show icons -->
|
|
13
|
-
<template #indicator="{ item }">
|
|
14
|
-
<UIcon
|
|
15
|
-
:name="item.icon || 'i-lucide-circle'"
|
|
16
|
-
class="size-4"
|
|
17
|
-
/>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<!-- Custom title slot to include kind badge and subject -->
|
|
21
|
-
<template #title="{ item }">
|
|
22
|
-
<div class="flex items-center gap-2 min-w-0">
|
|
23
|
-
<span
|
|
24
|
-
class="font-mono text-xs px-2 py-0.5 rounded bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 flex-shrink-0"
|
|
25
|
-
>
|
|
26
|
-
{{ item.eventType }}
|
|
27
|
-
</span>
|
|
28
|
-
<span
|
|
29
|
-
v-if="item.stepName"
|
|
30
|
-
class="text-xs text-gray-500 dark:text-gray-400 truncate"
|
|
31
|
-
>
|
|
32
|
-
{{ item.stepName }}
|
|
33
|
-
</span>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<!-- Custom description slot for rich content -->
|
|
38
|
-
<template #description="{ item }">
|
|
39
|
-
<!-- Special rendering for log events -->
|
|
40
|
-
<div
|
|
41
|
-
v-if="item.eventType === 'log'"
|
|
42
|
-
class="space-y-2 mt-2"
|
|
43
|
-
>
|
|
44
|
-
<div class="flex items-start gap-2">
|
|
45
|
-
<UBadge
|
|
46
|
-
:color="levelColor(item?.eventData?.level)"
|
|
47
|
-
variant="subtle"
|
|
48
|
-
size="xs"
|
|
49
|
-
class="capitalize mt-0.5 flex-shrink-0"
|
|
50
|
-
>
|
|
51
|
-
{{ item?.eventData?.level || "info" }}
|
|
52
|
-
</UBadge>
|
|
53
|
-
<span class="text-sm text-gray-900 dark:text-gray-100 flex-1 break-words">
|
|
54
|
-
{{ item?.eventData?.message || "" }}
|
|
55
|
-
</span>
|
|
56
|
-
</div>
|
|
57
|
-
<div
|
|
58
|
-
v-if="item?.eventData?.progress"
|
|
59
|
-
class="mt-2"
|
|
60
|
-
>
|
|
61
|
-
<pre class="text-xs bg-gray-50 dark:bg-gray-800 rounded p-2 overflow-x-auto max-h-40 text-gray-700 dark:text-gray-300 font-mono">{{ pretty(item.eventData) }}</pre>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
<!-- Special rendering for flow events -->
|
|
66
|
-
<div
|
|
67
|
-
v-else-if="isFlowEvent(item.eventType)"
|
|
68
|
-
class="text-sm mt-2"
|
|
69
|
-
>
|
|
70
|
-
<div
|
|
71
|
-
v-if="item.eventData"
|
|
72
|
-
class="space-y-1"
|
|
73
|
-
>
|
|
74
|
-
<div
|
|
75
|
-
v-if="item.eventData.input"
|
|
76
|
-
class="flex items-start gap-2"
|
|
77
|
-
>
|
|
78
|
-
<span class="text-xs text-gray-500 dark:text-gray-400 font-medium min-w-[60px] flex-shrink-0">Input:</span>
|
|
79
|
-
<pre class="text-xs bg-gray-50 dark:bg-gray-800 rounded px-2 py-1 overflow-x-auto max-h-20 text-gray-700 dark:text-gray-300 font-mono flex-1 min-w-0">{{ pretty(item.eventData.input) }}</pre>
|
|
80
|
-
</div>
|
|
81
|
-
<div
|
|
82
|
-
v-if="item.eventData.output"
|
|
83
|
-
class="flex items-start gap-2"
|
|
84
|
-
>
|
|
85
|
-
<span class="text-xs text-gray-500 dark:text-gray-400 font-medium min-w-[60px] flex-shrink-0">Output:</span>
|
|
86
|
-
<pre class="text-xs bg-gray-50 dark:bg-gray-800 rounded px-2 py-1 overflow-x-auto max-h-20 text-gray-700 dark:text-gray-300 font-mono flex-1 min-w-0">{{ pretty(item.eventData.output) }}</pre>
|
|
87
|
-
</div>
|
|
88
|
-
<div
|
|
89
|
-
v-if="item.eventData.error"
|
|
90
|
-
class="flex items-start gap-2"
|
|
91
|
-
>
|
|
92
|
-
<span class="text-xs text-red-500 dark:text-red-400 font-medium min-w-[60px] flex-shrink-0">Error:</span>
|
|
93
|
-
<pre class="text-xs bg-red-50 dark:bg-red-900/20 rounded px-2 py-1 overflow-x-auto max-h-20 text-red-700 dark:text-red-300 font-mono flex-1 min-w-0">{{ pretty(item.eventData.error) }}</pre>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
|
|
98
|
-
<!-- Default rendering -->
|
|
99
|
-
<div
|
|
100
|
-
v-else-if="item.eventData && Object.keys(item.eventData).length > 0"
|
|
101
|
-
class="mt-2"
|
|
102
|
-
>
|
|
103
|
-
<pre class="text-xs bg-gray-50 dark:bg-gray-800 rounded p-2 overflow-x-auto max-h-40 text-gray-700 dark:text-gray-300 font-mono">{{ pretty(item.eventData) }}</pre>
|
|
104
|
-
</div>
|
|
105
|
-
</template>
|
|
106
|
-
</UTimeline>
|
|
107
|
-
<div
|
|
108
|
-
v-else
|
|
109
|
-
class="h-full w-full flex flex-col items-center justify-center text-gray-400 dark:text-gray-500"
|
|
110
|
-
>
|
|
111
|
-
<UIcon
|
|
112
|
-
name="i-lucide-inbox"
|
|
113
|
-
class="w-12 h-12 mb-3 opacity-50"
|
|
114
|
-
/>
|
|
115
|
-
<span class="text-sm">No events yet.</span>
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
</template>
|
|
119
|
-
|
|
120
|
-
<script setup>
|
|
121
|
-
import { computed } from "#imports";
|
|
122
|
-
import { UTimeline, UIcon, UBadge } from "#components";
|
|
123
|
-
const props = defineProps({
|
|
124
|
-
items: { type: Array, required: true },
|
|
125
|
-
heightClass: { type: String, required: false }
|
|
126
|
-
});
|
|
127
|
-
const heightClass = computed(() => props.heightClass || "h-96");
|
|
128
|
-
function eventTsMs(e) {
|
|
129
|
-
try {
|
|
130
|
-
const ts = e?.ts;
|
|
131
|
-
if (typeof ts === "number" && Number.isFinite(ts)) return ts;
|
|
132
|
-
if (typeof ts === "string") {
|
|
133
|
-
const n = Number(ts);
|
|
134
|
-
if (Number.isFinite(n)) return n;
|
|
135
|
-
const d = Date.parse(ts);
|
|
136
|
-
if (!Number.isNaN(d)) return d;
|
|
137
|
-
}
|
|
138
|
-
if (typeof e?.id === "string" && e.id.includes("-")) {
|
|
139
|
-
const n = Number(e.id.split("-")[0]);
|
|
140
|
-
if (Number.isFinite(n)) return n;
|
|
141
|
-
}
|
|
142
|
-
} catch {
|
|
143
|
-
}
|
|
144
|
-
return Date.now();
|
|
145
|
-
}
|
|
146
|
-
function formatTs(e) {
|
|
147
|
-
try {
|
|
148
|
-
const t = eventTsMs(e);
|
|
149
|
-
return new Date(t).toLocaleString();
|
|
150
|
-
} catch {
|
|
151
|
-
return "";
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
function eventIcon(type) {
|
|
155
|
-
if (!type) return "i-lucide-circle";
|
|
156
|
-
if (type === "flow.start") return "i-lucide-play-circle";
|
|
157
|
-
if (type === "flow.completed") return "i-lucide-check-circle-2";
|
|
158
|
-
if (type === "flow.failed") return "i-lucide-x-circle";
|
|
159
|
-
if (type === "step.started" || type === "step.running") return "i-lucide-arrow-right-circle";
|
|
160
|
-
if (type === "step.completed") return "i-lucide-check-circle";
|
|
161
|
-
if (type === "step.failed") return "i-lucide-alert-circle";
|
|
162
|
-
if (type === "step.retry") return "i-lucide-rotate-cw";
|
|
163
|
-
if (type === "step.timeout") return "i-lucide-clock";
|
|
164
|
-
if (type === "log") return "i-lucide-file-text";
|
|
165
|
-
if (type === "emit") return "i-lucide-zap";
|
|
166
|
-
return "i-lucide-circle-dot";
|
|
167
|
-
}
|
|
168
|
-
const timelineItems = computed(() => {
|
|
169
|
-
const arr = Array.isArray(props.items) ? [...props.items] : [];
|
|
170
|
-
arr.sort((a, b) => {
|
|
171
|
-
const tb = eventTsMs(b);
|
|
172
|
-
const ta = eventTsMs(a);
|
|
173
|
-
if (tb !== ta) return tb - ta;
|
|
174
|
-
const ai = String(a?.id || "");
|
|
175
|
-
const bi = String(b?.id || "");
|
|
176
|
-
return bi.localeCompare(ai);
|
|
177
|
-
});
|
|
178
|
-
return arr.map((e) => ({
|
|
179
|
-
date: formatTs(e),
|
|
180
|
-
icon: eventIcon(e.type),
|
|
181
|
-
eventType: e.type,
|
|
182
|
-
stepName: e.stepName,
|
|
183
|
-
eventData: e.data
|
|
184
|
-
}));
|
|
185
|
-
});
|
|
186
|
-
function pretty(v) {
|
|
187
|
-
try {
|
|
188
|
-
return JSON.stringify(v, null, 2);
|
|
189
|
-
} catch {
|
|
190
|
-
return String(v);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
function levelColor(level) {
|
|
194
|
-
switch ((level || "").toLowerCase()) {
|
|
195
|
-
case "debug":
|
|
196
|
-
return "neutral";
|
|
197
|
-
case "info":
|
|
198
|
-
return "primary";
|
|
199
|
-
case "warn":
|
|
200
|
-
return "warning";
|
|
201
|
-
case "error":
|
|
202
|
-
return "error";
|
|
203
|
-
default:
|
|
204
|
-
return "neutral";
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
function isFlowEvent(type) {
|
|
208
|
-
return type?.startsWith("flow.") || type?.startsWith("step.");
|
|
209
|
-
}
|
|
210
|
-
</script>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
items: any[];
|
|
3
|
-
heightClass?: string;
|
|
4
|
-
};
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
-
declare const _default: typeof __VLS_export;
|
|
7
|
-
export default _default;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
type ComponentRouteRecord = {
|
|
2
|
-
path: string;
|
|
3
|
-
component: any;
|
|
4
|
-
name?: string;
|
|
5
|
-
};
|
|
6
|
-
type ComponentRouterMode = 'query' | 'hash' | 'memory';
|
|
7
|
-
type __VLS_Props = {
|
|
8
|
-
routes: ComponentRouteRecord[] | Record<string, any>;
|
|
9
|
-
base?: string;
|
|
10
|
-
mode?: ComponentRouterMode;
|
|
11
|
-
initial?: string;
|
|
12
|
-
debug?: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare var __VLS_1: {
|
|
15
|
-
component: any;
|
|
16
|
-
route: any;
|
|
17
|
-
push: any;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_Slots = {} & {
|
|
20
|
-
default?: (props: typeof __VLS_1) => any;
|
|
21
|
-
};
|
|
22
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
23
|
-
push: (path: string) => Promise<void>;
|
|
24
|
-
replace: (path: string) => Promise<void>;
|
|
25
|
-
route: import("vue").ShallowRef<{
|
|
26
|
-
path: string;
|
|
27
|
-
params: Record<string, string>;
|
|
28
|
-
query: Record<string, any>;
|
|
29
|
-
} | undefined, {
|
|
30
|
-
path: string;
|
|
31
|
-
params: Record<string, string>;
|
|
32
|
-
query: Record<string, any>;
|
|
33
|
-
} | undefined>;
|
|
34
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
35
|
-
mode: ComponentRouterMode;
|
|
36
|
-
debug: boolean;
|
|
37
|
-
base: string;
|
|
38
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
|
-
declare const _default: typeof __VLS_export;
|
|
41
|
-
export default _default;
|
|
42
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
43
|
-
new (): {
|
|
44
|
-
$slots: S;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<slot
|
|
3
|
-
:component="component"
|
|
4
|
-
:route="route"
|
|
5
|
-
:push="push"
|
|
6
|
-
/>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script setup>
|
|
10
|
-
import { useComponentRouter } from "#imports";
|
|
11
|
-
const props = defineProps({
|
|
12
|
-
routes: { type: [Array, Object], required: true },
|
|
13
|
-
base: { type: String, required: false, default: "fp" },
|
|
14
|
-
mode: { type: String, required: false, default: "query" },
|
|
15
|
-
initial: { type: String, required: false },
|
|
16
|
-
debug: { type: Boolean, required: false, default: false }
|
|
17
|
-
});
|
|
18
|
-
const { component, route, push, replace } = useComponentRouter({
|
|
19
|
-
routes: props.routes,
|
|
20
|
-
base: props.base,
|
|
21
|
-
mode: props.mode,
|
|
22
|
-
initial: props.initial,
|
|
23
|
-
debug: props.debug
|
|
24
|
-
});
|
|
25
|
-
defineExpose({ push, replace, route });
|
|
26
|
-
</script>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
type ComponentRouteRecord = {
|
|
2
|
-
path: string;
|
|
3
|
-
component: any;
|
|
4
|
-
name?: string;
|
|
5
|
-
};
|
|
6
|
-
type ComponentRouterMode = 'query' | 'hash' | 'memory';
|
|
7
|
-
type __VLS_Props = {
|
|
8
|
-
routes: ComponentRouteRecord[] | Record<string, any>;
|
|
9
|
-
base?: string;
|
|
10
|
-
mode?: ComponentRouterMode;
|
|
11
|
-
initial?: string;
|
|
12
|
-
debug?: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare var __VLS_1: {
|
|
15
|
-
component: any;
|
|
16
|
-
route: any;
|
|
17
|
-
push: any;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_Slots = {} & {
|
|
20
|
-
default?: (props: typeof __VLS_1) => any;
|
|
21
|
-
};
|
|
22
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
23
|
-
push: (path: string) => Promise<void>;
|
|
24
|
-
replace: (path: string) => Promise<void>;
|
|
25
|
-
route: import("vue").ShallowRef<{
|
|
26
|
-
path: string;
|
|
27
|
-
params: Record<string, string>;
|
|
28
|
-
query: Record<string, any>;
|
|
29
|
-
} | undefined, {
|
|
30
|
-
path: string;
|
|
31
|
-
params: Record<string, string>;
|
|
32
|
-
query: Record<string, any>;
|
|
33
|
-
} | undefined>;
|
|
34
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
35
|
-
mode: ComponentRouterMode;
|
|
36
|
-
debug: boolean;
|
|
37
|
-
base: string;
|
|
38
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
|
-
declare const _default: typeof __VLS_export;
|
|
41
|
-
export default _default;
|
|
42
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
43
|
-
new (): {
|
|
44
|
-
$slots: S;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { NavigationMenuItem } from '@nuxt/ui';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
orientation?: 'horizontal' | 'vertical';
|
|
4
|
-
items?: (NavigationMenuItem & {
|
|
5
|
-
path?: string;
|
|
6
|
-
})[][];
|
|
7
|
-
activeMatch?: 'exact' | 'prefix';
|
|
8
|
-
};
|
|
9
|
-
declare var __VLS_6: {};
|
|
10
|
-
type __VLS_Slots = {} & {
|
|
11
|
-
default?: (props: typeof __VLS_6) => any;
|
|
12
|
-
};
|
|
13
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
-
orientation: "horizontal" | "vertical";
|
|
15
|
-
activeMatch: "exact" | "prefix";
|
|
16
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
-
declare const _default: typeof __VLS_export;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section class="h-full">
|
|
3
|
-
<!-- Layout container switches between column (horizontal nav top) and row (vertical nav left) -->
|
|
4
|
-
<div
|
|
5
|
-
:class="
|
|
6
|
-
orientation === 'vertical' ? 'flex h-full' : 'flex h-screen flex-col'
|
|
7
|
-
"
|
|
8
|
-
>
|
|
9
|
-
<!-- Navigation area -->
|
|
10
|
-
<div
|
|
11
|
-
:class="[
|
|
12
|
-
'border-gray-200',
|
|
13
|
-
orientation === 'vertical' ? 'min-w-[256px] border-r' : 'border-b px-4 py-2'
|
|
14
|
-
]"
|
|
15
|
-
>
|
|
16
|
-
<!-- Custom navigation wired via composable router -->
|
|
17
|
-
<nav
|
|
18
|
-
:class="
|
|
19
|
-
orientation === 'vertical' ? 'flex flex-col gap-1' : 'flex items-center gap-4'
|
|
20
|
-
"
|
|
21
|
-
>
|
|
22
|
-
<template
|
|
23
|
-
v-for="(group, gi) in items"
|
|
24
|
-
:key="gi"
|
|
25
|
-
>
|
|
26
|
-
<div
|
|
27
|
-
:class="
|
|
28
|
-
orientation === 'vertical' ? 'flex flex-col gap-1 px-2 py-2' : 'flex flex-1 items-center gap-2'
|
|
29
|
-
"
|
|
30
|
-
>
|
|
31
|
-
<button
|
|
32
|
-
v-for="(it, ii) in group"
|
|
33
|
-
:key="ii"
|
|
34
|
-
type="button"
|
|
35
|
-
:class="[
|
|
36
|
-
'cursor-pointer rounded-md hover:bg-gray-100',
|
|
37
|
-
orientation === 'vertical' ? 'px-2 py-1 text-left' : 'px-1 py-1',
|
|
38
|
-
isActive(it) ? 'text-primary-600' : 'hover:text-gray-900'
|
|
39
|
-
]"
|
|
40
|
-
@click="onItemClick(it)"
|
|
41
|
-
>
|
|
42
|
-
<span class="inline-flex items-center gap-2">
|
|
43
|
-
<UIcon
|
|
44
|
-
v-if="it.icon"
|
|
45
|
-
:name="it.icon"
|
|
46
|
-
/>
|
|
47
|
-
<span>{{ it.label }}</span>
|
|
48
|
-
</span>
|
|
49
|
-
</button>
|
|
50
|
-
</div>
|
|
51
|
-
</template>
|
|
52
|
-
</nav>
|
|
53
|
-
</div>
|
|
54
|
-
|
|
55
|
-
<!-- Main Content -->
|
|
56
|
-
<div
|
|
57
|
-
:class="orientation === 'vertical' ? 'flex-1 min-h-0 overflow-hidden' : 'flex-1 min-h-0 overflow-hidden'"
|
|
58
|
-
>
|
|
59
|
-
<slot />
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
</section>
|
|
63
|
-
</template>
|
|
64
|
-
|
|
65
|
-
<script setup>
|
|
66
|
-
import { useComponentRouter } from "#imports";
|
|
67
|
-
const props = defineProps({
|
|
68
|
-
orientation: { type: String, required: false, default: "horizontal" },
|
|
69
|
-
items: { type: Array, required: false },
|
|
70
|
-
activeMatch: { type: String, required: false, default: "prefix" }
|
|
71
|
-
});
|
|
72
|
-
const router = useComponentRouter();
|
|
73
|
-
function onItemClick(it) {
|
|
74
|
-
if (it.path) {
|
|
75
|
-
router.push(it.path);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function isActive(it) {
|
|
79
|
-
if (!it.path) return false;
|
|
80
|
-
const current = router.route?.value?.path || "";
|
|
81
|
-
if (props.activeMatch === "prefix") return isPrefixActive(current, it.path);
|
|
82
|
-
return current === it.path;
|
|
83
|
-
}
|
|
84
|
-
function isPrefixActive(current, base) {
|
|
85
|
-
if (base === "/") return current === "/";
|
|
86
|
-
if (current === base) return true;
|
|
87
|
-
return current.startsWith(base.endsWith("/") ? base : base + "/");
|
|
88
|
-
}
|
|
89
|
-
</script>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { NavigationMenuItem } from '@nuxt/ui';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
orientation?: 'horizontal' | 'vertical';
|
|
4
|
-
items?: (NavigationMenuItem & {
|
|
5
|
-
path?: string;
|
|
6
|
-
})[][];
|
|
7
|
-
activeMatch?: 'exact' | 'prefix';
|
|
8
|
-
};
|
|
9
|
-
declare var __VLS_6: {};
|
|
10
|
-
type __VLS_Slots = {} & {
|
|
11
|
-
default?: (props: typeof __VLS_6) => any;
|
|
12
|
-
};
|
|
13
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
-
orientation: "horizontal" | "vertical";
|
|
15
|
-
activeMatch: "exact" | "prefix";
|
|
16
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
-
declare const _default: typeof __VLS_export;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { AnalyzedFlows } from '#build/analyzed-flows';
|
|
2
|
-
/**
|
|
3
|
-
* Get pre-analyzed flows with execution levels and dependencies.
|
|
4
|
-
* Flows are analyzed at build time for optimal performance.
|
|
5
|
-
*
|
|
6
|
-
* This returns a reactive ref that will automatically trigger re-renders
|
|
7
|
-
* when flows are updated during development.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useAnalyzedFlows(): any;
|
|
10
|
-
/**
|
|
11
|
-
* Get the raw analyzed flows array directly.
|
|
12
|
-
* Use this when you don't need reactivity.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getAnalyzedFlows(): AnalyzedFlows;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { shallowRef } from '#imports';
|
|
2
|
-
export type ComponentRouteRecord = {
|
|
3
|
-
path: string;
|
|
4
|
-
component: any;
|
|
5
|
-
name?: string;
|
|
6
|
-
};
|
|
7
|
-
export type ComponentRouterMode = 'query' | 'hash' | 'memory';
|
|
8
|
-
export interface UseComponentRouterOptions {
|
|
9
|
-
routes: ComponentRouteRecord[] | Record<string, any>;
|
|
10
|
-
base?: string;
|
|
11
|
-
mode?: ComponentRouterMode;
|
|
12
|
-
initial?: string;
|
|
13
|
-
provideKey?: string;
|
|
14
|
-
debug?: boolean;
|
|
15
|
-
}
|
|
16
|
-
type RouterContext = {
|
|
17
|
-
route: ReturnType<typeof shallowRef<{
|
|
18
|
-
path: string;
|
|
19
|
-
params: Record<string, string>;
|
|
20
|
-
query: Record<string, any>;
|
|
21
|
-
}>>;
|
|
22
|
-
push: (path: string) => Promise<void>;
|
|
23
|
-
replace: (path: string) => Promise<void>;
|
|
24
|
-
makePath: (patternOrPath: string, params?: Record<string, any>) => string;
|
|
25
|
-
makeHref: (patternOrPath: string, params?: Record<string, any>) => string;
|
|
26
|
-
pushTo: (patternOrPath: string, params?: Record<string, any>) => Promise<void>;
|
|
27
|
-
replaceTo: (patternOrPath: string, params?: Record<string, any>) => Promise<void>;
|
|
28
|
-
};
|
|
29
|
-
export declare function useComponentRouter(): RouterContext & {
|
|
30
|
-
component?: any;
|
|
31
|
-
};
|
|
32
|
-
export declare function useComponentRouter(opts: UseComponentRouterOptions): RouterContext & {
|
|
33
|
-
component: any;
|
|
34
|
-
};
|
|
35
|
-
export default useComponentRouter;
|
|
36
|
-
export declare function createComponentRoutes(glob: Record<string, () => Promise<any>>, options?: {
|
|
37
|
-
base?: string;
|
|
38
|
-
}): ComponentRouteRecord[];
|