plane/web/store/application/index.ts
2023-12-13 02:03:29 +05:30

34 lines
1.1 KiB
TypeScript

import { AppConfigStore, IAppConfigStore } from "./app-config.store";
import { CommandPaletteStore, ICommandPaletteStore } from "./command-palette.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;
// eventTracker: IEventTrackerStore;
instance: IInstanceStore;
theme: IThemeStore;
router: IRouterStore;
}
export class AppRootStore implements IAppRootStore {
config: IAppConfigStore;
commandPalette: ICommandPaletteStore;
// eventTracker: IEventTrackerStore;
instance: IInstanceStore;
theme: IThemeStore;
router: IRouterStore;
constructor() {
this.router = new RouterStore();
this.config = new AppConfigStore();
this.commandPalette = new CommandPaletteStore();
// this.eventTracker = new EventTrackerStore(this.router);
this.instance = new InstanceStore();
this.theme = new ThemeStore();
}
}