diff --git a/src/store/Store.ts b/src/store/Store.ts index d8fa03136..c85a45904 100644 --- a/src/store/Store.ts +++ b/src/store/Store.ts @@ -1,30 +1,15 @@ -import now from "lodash/now"; import { RootContext, Participants, GroupContext, ParticipantContext, -} from "../parser/index.js"; +} from "@/parser"; import WidthProviderOnBrowser from "../positioning/WidthProviderFunc"; -import { Coordinates } from "../positioning/Coordinates"; -import { CodeRange } from "../parser/CodeRange"; +import { Coordinates } from "@/positioning/Coordinates"; +import { CodeRange } from "@/parser/CodeRange"; import { StoreOptions } from "vuex"; -let storeInitiationTime: number = 0; -setTimeout(function () { - if (!storeInitiationTime) { - console.warn( - "[@zenuml/core] Store is a function and is not initiated in 1 second.", - ); - } -}, 1000); - -export interface Warning { - title: string; - message: string; -} - /* * RenderMode * Static: Compatible with Mermaid renderind which renders once and never update. It also disables sticky participants and hides the footer @@ -36,7 +21,6 @@ export const enum RenderMode { } export interface StoreState { - warning: Warning | undefined; code: string; scale: number; selected: any[]; @@ -48,11 +32,8 @@ export interface StoreState { } // vuex 101: Deal with sync in mutation, async in actions const Store = (): StoreOptions => { - // TODO: remove state any type - storeInitiationTime = now(); return { state: { - warning: undefined, code: "", theme: "theme-default", enableScopedTheming: false,