plane/web/store/root.store.ts
2023-12-11 23:32:21 +05:30

38 lines
1.1 KiB
TypeScript

import { enableStaticRendering } from "mobx-react-lite";
// root stores
import { AppRootStore, IAppRootStore } from "./application";
import { ProjectRootStore } from "./project";
import { CycleStore } from "./cycle.store";
import { ProjectViewsStore } from "./project-view.store";
import { ModulesStore } from "./module.store";
import { UserStore, IUserStore } from "./user";
import { LabelStore, ILabelStore } from "./label.store";
enableStaticRendering(typeof window === "undefined");
export class RootStore {
app: IAppRootStore;
user: IUserStore;
// workspace;
project;
cycle;
module;
projectView;
label: ILabelStore;
constructor() {
this.app = new AppRootStore(this);
this.user = new UserStore(this);
// this.workspace = new WorkspaceRootStore();
this.project = new ProjectRootStore(this);
this.cycle = new CycleStore(this);
this.module = new ModulesStore(this);
this.projectView = new ProjectViewsStore(this);
// this.page = new PageRootStore();
// this.issue = new IssueRootStore();
// independent stores
this.label = new LabelStore(this);
// this.state = new stateStore();
}
}