2020-11-05 06:09:45 +13:00
|
|
|
// import { getStore } from "./store"
|
|
|
|
import { getFrontendStore } from "./store/frontend"
|
2020-03-21 07:47:01 +13:00
|
|
|
import { getBackendUiStore } from "./store/backend"
|
2020-09-22 00:49:34 +12:00
|
|
|
import { getAutomationStore } from "./store/automation/"
|
2020-10-31 02:23:49 +13:00
|
|
|
import { getThemeStore } from "./store/theme"
|
2020-09-30 03:26:56 +13:00
|
|
|
import analytics from "analytics"
|
2019-07-13 21:35:57 +12:00
|
|
|
|
2020-11-05 06:09:45 +13:00
|
|
|
// export const store = getStore()
|
|
|
|
export const store = getFrontendStore()
|
2020-03-21 07:47:01 +13:00
|
|
|
export const backendUiStore = getBackendUiStore()
|
2020-09-22 00:49:34 +12:00
|
|
|
export const automationStore = getAutomationStore()
|
2020-10-31 02:23:49 +13:00
|
|
|
export const themeStore = getThemeStore()
|
2019-07-13 21:35:57 +12:00
|
|
|
|
|
|
|
export const initialise = async () => {
|
2020-02-03 22:24:25 +13:00
|
|
|
try {
|
2020-10-13 09:35:10 +13:00
|
|
|
await analytics.activate()
|
2020-09-30 03:26:56 +13:00
|
|
|
analytics.captureEvent("Builder Started")
|
2020-02-03 22:24:25 +13:00
|
|
|
} catch (err) {
|
|
|
|
console.log(err)
|
|
|
|
}
|
2020-05-07 21:53:34 +12:00
|
|
|
}
|