chore: making changes

This commit is contained in:
sriram veeraghanta 2023-12-11 15:48:59 +05:30
parent d0688e5287
commit 2c043b24de
3 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,6 @@
import { observable, action, makeObservable, runInAction } from "mobx"; import { observable, action, makeObservable, runInAction } from "mobx";
// types // types
import { RootStore } from "./root"; import { RootStore } from "../root.store";
import { IAppConfig } from "types/app"; import { IAppConfig } from "types/app";
// services // services
import { AppConfigService } from "services/app_config.service"; import { AppConfigService } from "services/app_config.service";

View File

@ -1,3 +1,5 @@
import { RootStore } from "../root.store";
export class AppRootStore { export class AppRootStore {
config; config;
commandPalette; commandPalette;
@ -5,11 +7,11 @@ export class AppRootStore {
instance; instance;
theme; theme;
constructor() { constructor(rootStore: RootStore) {
this.config = new ConfigStore(); this.config = new ConfigStore(rootStore);
this.commandPalette = new CommandPaletteStore(); this.commandPalette = new CommandPaletteStore(rootStore);
this.eventTracker = new EventTrackerStore(); this.eventTracker = new EventTrackerStore(rootStore);
this.instance = new InstanceStore(); this.instance = new InstanceStore(rootStore);
this.theme = new ThemeStore(); this.theme = new ThemeStore(rootStore);
} }
} }

View File

@ -5,7 +5,7 @@ import { AppRootStore } from "./application";
enableStaticRendering(typeof window === "undefined"); enableStaticRendering(typeof window === "undefined");
export class RootStore { export class RootStore {
app; app: AppRootStore;
user; user;
workspace; workspace;
project; project;