plane/web/store/application/index.ts

26 lines
903 B
TypeScript
Raw Normal View History

2023-12-11 10:18:59 +00:00
import { RootStore } from "../root.store";
2023-12-11 14:45:07 +00:00
import { AppConfigStore } from "./app-config.store";
import { CommandPaletteStore } from "./command-palette.store";
import { EventTrackerStore } from "./event-tracker.store";
import { InstanceStore } from "./instance.store";
import { RouterStore } from "./router.store";
import { ThemeStore } from "./theme.store";
2023-12-11 10:18:59 +00:00
2023-12-11 09:25:05 +00:00
export class AppRootStore {
2023-12-11 14:45:07 +00:00
config: AppConfigStore;
commandPalette: CommandPaletteStore;
eventTracker: EventTrackerStore;
instance: InstanceStore;
theme: ThemeStore;
router: RouterStore;
2023-12-11 09:25:05 +00:00
2023-12-11 10:18:59 +00:00
constructor(rootStore: RootStore) {
2023-12-11 14:45:07 +00:00
this.config = new AppConfigStore(rootStore);
2023-12-11 10:18:59 +00:00
this.commandPalette = new CommandPaletteStore(rootStore);
this.eventTracker = new EventTrackerStore(rootStore);
this.instance = new InstanceStore(rootStore);
this.theme = new ThemeStore(rootStore);
2023-12-11 14:45:07 +00:00
this.router = new RouterStore();
2023-12-11 09:25:05 +00:00
}
}