Something went wrong. Try again.
🔥 🔥 🔥 A Free & Self-hostable Airtable Alternative nocodb.com
Something went wrong. Try again.
630 B · 26 lines
TypeScript
at develop
123456789101112131415161718192021222324252627export 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, }})