forked from github/plane
0165abab3e
* chore: events naming convention changed * chore: track element added for project related events * chore: track element added for cycle related events * chore: track element added for module related events * chore: issue related events updated * refactor: event tracker store * refactor: event-tracker store * fix: posthog changes --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { RootStore } from "store/root.store";
|
|
import { AppConfigStore, IAppConfigStore } from "./app-config.store";
|
|
import { CommandPaletteStore, ICommandPaletteStore } from "./command-palette.store";
|
|
import { EventTrackerStore, IEventTrackerStore } from "../event-tracker.store";
|
|
// import { EventTrackerStore, IEventTrackerStore } from "./event-tracker.store";
|
|
import { InstanceStore, IInstanceStore } from "./instance.store";
|
|
import { RouterStore, IRouterStore } from "./router.store";
|
|
import { ThemeStore, IThemeStore } from "./theme.store";
|
|
|
|
export interface IAppRootStore {
|
|
config: IAppConfigStore;
|
|
commandPalette: ICommandPaletteStore;
|
|
instance: IInstanceStore;
|
|
theme: IThemeStore;
|
|
router: IRouterStore;
|
|
}
|
|
|
|
export class AppRootStore implements IAppRootStore {
|
|
config: IAppConfigStore;
|
|
commandPalette: ICommandPaletteStore;
|
|
instance: IInstanceStore;
|
|
theme: IThemeStore;
|
|
router: IRouterStore;
|
|
|
|
constructor(_rootStore: RootStore) {
|
|
this.router = new RouterStore();
|
|
this.config = new AppConfigStore();
|
|
this.commandPalette = new CommandPaletteStore();
|
|
this.instance = new InstanceStore();
|
|
this.theme = new ThemeStore();
|
|
}
|
|
}
|