Files
nocodb/packages/nc-gui/composables/useScriptExecutor.ts
mertmit 36299e0d39 chore: sync changes
Signed-off-by: mertmit <mertmit99@gmail.com>
2025-08-21 12:54:10 +03:00

28 lines
644 B
TypeScript

export const useScriptExecutor = createSharedComposable(() => {
const libCode = ref('')
const isRunning = ref(false)
const isFinished = ref(false)
const activeExecutions = ref<Map<string, unknown>>(new Map())
const fieldIDRowMapping = computed(() => new Map<string, string>())
const runScript = async (..._args: any) => {}
const stopExecution = (_args?: string) => {}
const eventBus = useEventBus<SmartsheetScriptActions>(EventBusEnum.SmartsheetScript)
return {
runScript,
stopExecution,
eventBus,
isRunning,
isFinished,
activeExecutions,
libCode,
fieldIDRowMapping,
eventBus,
}
})