|
|
@ -6,7 +6,6 @@ import { derived, writable } from "svelte/store" |
|
|
import analytics from "analytics" |
|
|
import analytics from "analytics" |
|
|
import { FrontendTypes, LAYOUT_NAMES } from "../constants" |
|
|
import { FrontendTypes, LAYOUT_NAMES } from "../constants" |
|
|
import { findComponent } from "./storeUtils" |
|
|
import { findComponent } from "./storeUtils" |
|
|
// import { getBuilderCookie } from "./api"
|
|
|
|
|
|
|
|
|
|
|
|
export const store = getFrontendStore() |
|
|
export const store = getFrontendStore() |
|
|
export const automationStore = getAutomationStore() |
|
|
export const automationStore = getAutomationStore() |
|
|
@ -58,8 +57,6 @@ export const selectedAccessRole = writable("BASIC") |
|
|
|
|
|
|
|
|
export const initialise = async () => { |
|
|
export const initialise = async () => { |
|
|
try { |
|
|
try { |
|
|
// TODO this needs to be replaced by a real login
|
|
|
|
|
|
// await getBuilderCookie()
|
|
|
|
|
|
await analytics.activate() |
|
|
await analytics.activate() |
|
|
analytics.captureEvent("Builder Started") |
|
|
analytics.captureEvent("Builder Started") |
|
|
} catch (err) { |
|
|
} catch (err) { |
|
|
|