plane/web/store/application/index.ts

34 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-12-11 18:02:21 +00:00
import { AppConfigStore, IAppConfigStore } from "./app-config.store";
import { CommandPaletteStore, ICommandPaletteStore } from "./command-palette.store";
2023-12-12 20:33:29 +00:00
// import { EventTrackerStore, IEventTrackerStore } from "./event-tracker.store";
2023-12-11 18:02:21 +00:00
import { InstanceStore, IInstanceStore } from "./instance.store";
import { RouterStore, IRouterStore } from "./router.store";
import { ThemeStore, IThemeStore } from "./theme.store";
2023-12-11 10:18:59 +00:00
2023-12-11 18:02:21 +00:00
export interface IAppRootStore {
config: IAppConfigStore;
commandPalette: ICommandPaletteStore;
2023-12-12 20:33:29 +00:00
// eventTracker: IEventTrackerStore;
2023-12-11 18:02:21 +00:00
instance: IInstanceStore;
theme: IThemeStore;
router: IRouterStore;
}
export class AppRootStore implements IAppRootStore {
config: IAppConfigStore;
commandPalette: ICommandPaletteStore;
2023-12-12 20:33:29 +00:00
// eventTracker: IEventTrackerStore;
2023-12-11 18:02:21 +00:00
instance: IInstanceStore;
theme: IThemeStore;
router: IRouterStore;
2023-12-11 09:25:05 +00:00
2023-12-12 20:33:29 +00:00
constructor() {
2023-12-11 14:45:07 +00:00
this.router = new RouterStore();
2023-12-12 20:33:29 +00:00
this.config = new AppConfigStore();
this.commandPalette = new CommandPaletteStore();
// this.eventTracker = new EventTrackerStore(this.router);
this.instance = new InstanceStore();
this.theme = new ThemeStore();
2023-12-11 09:25:05 +00:00
}
}