budibase/packages/builder/src/builderStore/index.js

20 lines
572 B
JavaScript
Raw Normal View History

import { getStore } from "./store"
import { getBackendUiStore } from "./store/backend"
import { getAutomationStore } from "./store/automation/"
import { getThemeStore } from "./store/theme"
import analytics from "analytics"
2019-07-13 11:35:57 +02:00
export const store = getStore()
export const backendUiStore = getBackendUiStore()
export const automationStore = getAutomationStore()
export const themeStore = getThemeStore()
2019-07-13 11:35:57 +02:00
export const initialise = async () => {
try {
await analytics.activate()
analytics.captureEvent("Builder Started")
} catch (err) {
console.log(err)
}
2020-05-07 11:53:34 +02:00
}